1 2015-10-26 Richard Biener <rguenther@suse.de>
2 Dominik Vogt <vogt@linux.vnet.ibm.com>
5 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
6 Properly prune ref->ref for accesses outside of ref.
8 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
11 new statements to be inserted if inplace. Allow calls to have
14 2015-10-26 Richard Biener <rguenther@suse.de>
16 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
17 (do_valueize): New function.
18 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
20 * tree-ssa-threadedge.c: Remove builtins.h include, include
22 (fold_assignment_stmt): Remove.
23 (threadedge_valueize): New function.
24 (record_temporary_equivalences_from_stmts): Use
25 gimple_fold_stmt_to_constant_1, note additional cleanup
28 2015-10-26 Richard Biener <rguenther@suse.de>
30 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
31 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
33 2015-10-26 Alan Hayward <alan.hayward@arm.com>
35 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
38 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40 * auto-inc-dec.c (insert_move_insn_before): Delete.
41 (attempt_change): Remember to cost the simple move in the
42 FORM_PRE_ADD and FORM_POST_ADD cases.
44 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
47 * config/sh/sh.c (sh_vector_mode_supported_p): Use
48 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
50 2015-10-26 Tom de Vries <tom@codesourcery.com>
52 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
54 (intra_create_variable_infos): ... here.
56 2015-10-26 Tom de Vries <tom@codesourcery.com>
58 * tree-ssa-structalias.c (intra_create_variable_infos): Add
59 restrict_pointer_p and recursive_restrict_p variables.
61 2015-10-26 Tom de Vries <tom@codesourcery.com>
63 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
66 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
69 * optabs.c (expand_atomic_compare_and_swap): Handle case when
70 ptarget_oval or ptarget_bool are const0_rtx.
72 2015-10-26 Christian Bruel <christian.bruel@st.com>
74 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
75 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
76 * cp/method.c (implicitly_declare_fn): Likewise.
77 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
78 * java/class.c (add_method_1): Likewise.
80 2015-10-26 Richard Biener <rguenther@suse.de>
82 * alloc-pool.h (base_pool_allocator): Use placement new.
83 (base_pool_allocator::remove): Likewise. Compute size outside of
86 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
88 * builtins.c (do_real_to_int_conversion): New function.
89 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
90 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
92 * match.pd: Add rules previously handled by fold_fixed_mathfn
93 and fold_builtin_int_roundingfn.
95 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
97 * match.pd: Use macros to define built-in operator lists.
99 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
100 Richard Biener <rguenther@suse.de>
102 * genmatch.c (dt_simplify::gen): Skip captures that are
104 (parser::parse_expr): Allow captures in results too.
105 * builtins.c (fold_builtin_cexp): Delete.
106 (fold_builtin_1): Handle constant cexp arguments here.
107 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
109 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
111 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
112 conditional compilation.
113 (base_pool_allocator::remove): Use flag_checking.
115 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
117 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
120 * dojump.c (do_compare_and_jump): Canonicalize both function and
123 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
126 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
129 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
132 * ipa-polymorphic-call.c
133 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
134 instance offset with offset of outer type.
136 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
138 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
140 2015-10-23 Caroline Tice <cmtice@google.com>
143 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
144 call to iterative_hash_host_wide_int.
146 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
148 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
151 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
153 * tree-vect-generic.c (expand_vector_operations_1): Check
154 optab exists before use it.
156 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
158 * tree-vect-generic.c (expand_vector_condition): Avoid
159 uninitialized variable warning.
161 2015-10-23 Jeff Law <law@redhat.com>
163 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
165 (execute_todo): Call it here.
166 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
168 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
170 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
171 Szabolcs Nagy <szabolcs.nagy@arm.com>
173 * config.gcc (enable_secureplt): Add *-linux*-musl*.
175 2015-10-23 Jeff Law <law@redhat.com>
177 PR tree-optimization/67830
178 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
179 Explicitly verify the mask has no bits outside the type of
180 the innermost operands.
182 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
183 Szabolcs Nagy <szabolcs.nagy@arm.com>
185 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
186 (MUSL_DYNAMIC_LINKER64): Define.
187 (GNU_USER_DYNAMIC_LINKER32): Update.
188 (GNU_USER_DYNAMIC_LINKER64): Update.
189 (CHOOSE_DYNAMIC_LINKER): Update.
191 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
192 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
193 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
194 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
195 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
196 (CHOOSE_DYNAMIC_LINKER): Update.
197 (INCLUDE_DEFAULTS): Redefine.
199 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
201 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
203 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
206 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
208 * fold-const.c (operand_equal_p): Handle matching of vector
211 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
213 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
215 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
216 Andrew Pinski <apinski@cavium.com>
218 PR rtl-optimization/67736
219 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
222 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
225 * tree.c (build_truth_vector_type): Support BLK mode
226 returned for boolean vector.
228 2015-10-23 Alan Hayward <alan.hayward@arm.com>
230 PR tree-optimization/65947
232 (vect_is_simple_reduction_1): Find condition reductions.
233 (vect_model_reduction_cost): Add condition reduction costs.
234 (get_initial_def_for_reduction): Add condition reduction initial var.
235 (vect_create_epilog_for_reduction): Add condition reduction epilog.
236 (vectorizable_reduction): Condition reduction support.
237 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
238 * doc/sourcebuild.texi (Vector-specific attributes): Document
241 2015-10-23 Richard Biener <rguenther@suse.de>
243 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
246 2015-10-23 Richard Biener <rguenther@suse.de>
247 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
249 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
250 into (A ^ B) - B to match.pd
251 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
253 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
255 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
257 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
259 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
261 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
262 INTEGER_CST@1)): New simplifier.
264 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
266 * builtins.c (integer_valued_real_p): Move to fold-const.c.
267 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
268 (fold_builtin_ceil, fold_builtin_round): Delete.
269 (fold_builtin_1): Handle constant trunc, floor, ceil and round
271 * convert.c (convert_to_real): Remove narrowing of rounding
273 * fold-const.h (integer_valued_real_unary_p)
274 (integer_valued_real_binary_p, integer_valued_real_call_p)
275 (integer_valued_real_single_p, integer_valued_real_p): Declare.
276 * fold-const.c (tree_single_nonnegative_warnv_p): Move
277 name_registered_for_update_p check to SSA_NAME case statement.
278 Don't call tree_simple_nonnegative_warnv_p for SSA names.
279 (integer_valued_real_unary_p, integer_valued_real_binary_p)
280 (integer_valued_real_call_p, integer_valued_real_single_p)
281 (integer_valued_real_invalid_p): New functions.
282 (integer_valued_real_p): Move from fold-const.c and rework
283 to call the functions above. Handle SSA names.
284 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
285 * gimple-fold.c (gimple_assign_integer_valued_real_p)
286 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
287 (gimple_stmt_integer_valued_real_p): New functions.
288 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
289 Fold f(x)->x for the same f if x is known to be integer-valued.
290 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
291 the result. Canonicalize floor(x) as trunc(x) if x is
294 2015-10-23 Tom de Vries <tom@codesourcery.com>
296 * tree-ssa-structalias.c (intra_create_variable_infos): Use
297 make_constraint_from.
299 2015-10-23 Tom de Vries <tom@codesourcery.com>
301 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
302 setting of is_full_var in case of a single field.
304 2015-10-22 Martin Sebor <msebor@redhat.com>
307 * config/i386/i386.opt: Add missing periods to the ends of sentences.
308 * config/msp430/msp430.opt: Same.
310 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
312 * doc/extend.exp (Global Register Variables): Rewrite.
314 2015-10-22 Jeff Law <law@redhat.com>
316 * genattrtab.c (main): If we do not have any annul-true or annul-false
317 slots, then write out a dummy eligible_for_annul_true or
318 eligible_for_annul_false as needed.
320 2015-10-22 Nick Clifton <nickc@redhat.com>
322 * config/msp430/msp430.opt: Add -msilicon-errata and
323 -msilicon-errata-warn.
324 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
326 * doc/invoke.texi: Document new options.
328 2015-10-22 Richard Biener <rguenther@suse.de>
330 PR tree-optimization/58497
331 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
332 (expand_vector_operations_1): Use it. Lower operations on
333 all uniform vectors to scalar operations if the HW supports it.
335 2015-10-22 Richard Biener <rguenther@suse.de>
337 PR tree-optimization/19049
338 PR tree-optimization/65962
339 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
340 to strided accesses if single-element interleaving doesn't work.
342 2015-10-22 Richard Biener <rguenther@suse.de>
346 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
347 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
348 (expand_unop): Likewise.
350 2015-10-22 Richard Biener <rguenther@suse.de>
352 * fold-const.c (fold_addr_of_array_ref_difference): Properly
353 convert operands before folding a MINUS_EXPR.
354 (fold_binary_loc): Move simplification of MINUS_EXPR on
355 converted POINTER_PLUS_EXPRs ...
356 * match.pd: ... here.
358 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
360 * builtins.c (fold_builtin_tan): Delete.
361 (fold_builtin_1): Handle constant tan arguments here.
362 * match.pd: Simplify (tan (atan x)) to x.
364 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
366 * builtins.c (fold_builtin_cproj): Delete.
367 (fold_builtin_1): Handle constant arguments here.
368 (build_complex_cproj): Move and rename to...
369 * tree.c: (build_complex_inf): ...this.
370 * tree.h (build_complex_inf): Declare.
371 * match.pd: Fold cproj(x)->x if x has no infinity.
372 Use build_complex_inf for existing cproj rules.
374 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
377 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
378 already have a comparison result.
380 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
383 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
384 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
385 (aarch64_classify_address): Likewise.
386 (aarch64_secondary_reload): Likewise.
387 (aarch64_override_options_after_change_1): Adjust.
388 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
389 Use aarch64_nopcrelative_literal_loads.
390 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
391 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
394 2015-10-21 Martin Sebor <msebor@redhat.com>
397 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
398 (print_filtered_help): Reference aliased option's name and encourage
399 readers to use it in preference to the alias if the former is not
400 documented. Mention when using an option is diagnosed.
401 * gcc.c (display_help): End each sentence with a period.
403 * common.opt: End each sentence that describes an option with
405 * config/aarch64/aarch64.opt: Same.
406 * config/alpha/alpha.opt: Same.
407 * config/arc/arc.opt: Same.
408 * config/arm/arm.opt: Same.
409 * config/avr/avr.opt: Same.
410 * config/bfin/bfin.opt: Same.
411 * config/c6x/c6x.opt: Same.
412 * config/cr16/cr16.opt: Same.
413 * config/cris/cris.opt: Same.
414 * config/cris/linux.opt: Same.
415 * config/darwin.opt: Same.
416 * config/epiphany/epiphany.opt: Same.
417 * config/fr30/fr30.opt: Same.
418 * config/frv/frv.opt: Same.
419 * config/ft32/ft32.opt: Same.
420 * config/g.opt: Same.
421 * config/h8300/h8300.opt: Same.
422 * config/i386/cygming.opt: Same.
423 * config/i386/djgpp.opt: Same.
424 * config/i386/i386.opt: Same.
425 * config/i386/interix.opt: Same.
426 * config/i386/mingw-w64.opt: Same.
427 * config/i386/mingw.opt: Same.
428 * config/ia64/ia64.opt: Same.
429 * config/ia64/ilp32.opt: Same.
430 * config/iq2000/iq2000.opt: Same.
431 * config/linux.opt: Same.
432 * config/lm32/lm32.opt: Same.
433 * config/lynx.opt: Same.
434 * config/m32c/m32c.opt: Same.
435 * config/m32r/m32r.opt: Same.
436 * config/m68k/ieee.opt: Same.
437 * config/m68k/m68k.opt: Same.
438 * config/mcore/mcore.opt: Same.
439 * config/mep/mep.opt: Same.
440 * config/microblaze/microblaze.opt: Same.
441 * config/mips/mips.opt: Same.
442 * config/mmix/mmix.opt: Same.
443 * config/mn10300/mn10300.opt: Same.
444 * config/moxie/moxie.opt: Same.
445 * config/msp430/msp430.opt: Same.
446 * config/nios2/elf.opt: Same.
447 * config/nios2/nios2.opt: Same.
448 * config/nvptx/nvptx.opt: Same.
449 * config/pa/pa-hpux.opt: Same.
450 * config/pa/pa-hpux1010.opt: Same.
451 * config/pa/pa-hpux1111.opt: Same.
452 * config/pa/pa-hpux1131.opt: Same.
453 * config/pa/pa.opt: Same.
454 * config/pa/pa64-hpux.opt: Same.
455 * config/pdp11/pdp11.opt: Same.
456 * config/rl78/rl78.opt: Same.
457 * config/rs6000/476.opt: Same.
458 * config/rs6000/aix64.opt: Same.
459 * config/rs6000/darwin.opt: Same.
460 * config/rs6000/linux64.opt: Same.
461 * config/rs6000/rs6000.opt: Same.
462 * config/rs6000/sysv4.opt: Same.
463 * config/s390/s390.opt: Same.
464 * config/s390/tpf.opt: Same.
465 * config/sh/sh.opt: Same.
466 * config/sol2.opt: Same.
467 * config/sparc/long-double-switch.opt: Same.
468 * config/sparc/sparc.opt: Same.
469 * config/spu/spu.opt: Same.
470 * config/stormy16/stormy16.opt: Same.
471 * config/tilegx/tilegx.opt: Same.
472 * config/tilepro/tilepro.opt: Same.
473 * config/v850/v850.opt: Same.
474 * config/vax/vax.opt: Same.
475 * config/visium/visium.opt: Same.
476 * config/vms/vms.opt: Same.
477 * config/vxworks.opt: Same.
478 * config/xtensa/xtensa.opt: Same.
480 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
481 Sebastian Pop <s.pop@samsung.com>
483 * graphite-scop-detection.c (parameter_index_in_region): Update call to
484 invariant_in_sese_p_rec.
485 * graphite-sese-to-poly.c (extract_affine): Same.
486 * sese.c (invariant_in_sese_p_rec): Pass in an extra
488 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
489 variable depends on virtual definitions in the current region.
490 * sese.h (invariant_in_sese_p_rec): Update declaration.
492 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
493 Sebastian Pop <s.pop@samsung.com>
495 * graphite-scop-detection.c (build_scops): Do not handle scops
496 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
497 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
499 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
501 * config.in: Regenerate.
502 * configure: Regenerate.
503 * configure.ac (CHECKING_P): Define.
504 * system.h: Use CHECKING_P.
506 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
509 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
510 is negative we don't know the type.
511 (check_stmt_for_type_change): Skip constructors of non-polymorphic
512 types as those won't help devirutalization.
514 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
516 * fold-const.c (operand_equal_p): Add code matching empty constructors.
518 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
520 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
522 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
523 Add comments on sign of the result.
524 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
525 Recurse on operand #1 instead of operand #0.
526 <CEIL_MOD_EXPR>: Do not recurse.
527 <ROUND_MOD_EXPR>: Likewise.
529 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
531 * cfgrtl.c (pass_free_cfg::execute): Adjust.
532 * final.c (dbr_sequence_length): Always define.
533 (shorten_branches): Adjust.
534 * genattr-common.c (main): Always define DELAY_SLOTS.
535 * genattr.c (main): Unconditionally declare functions and define
536 macros related to delay slots.
537 * genattrtab.c (write_eligible_delay): Adjust.
538 (main): Always write out delay slot functions.
539 * opts.c (default_options_table): Adjust.
540 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
541 (redirect_with_delay_list_safe_p): Likewise.
542 (fill_simple_delay_slots): Likewise.
543 (fill_slots_from_thread): Likewise.
544 (make_return_insns): Likewise.
545 (dbr_schedule): Likewise.
546 (rest_of_handle_delay_slots): Likewise.
547 (pass_delay_slots::gate): Likewise.
548 * toplev.c (process_options): Likewise.
550 2015-10-21 Richard Henderson <rth@redhat.com>
552 * targhooks.c (default_addr_space_pointer_mode): Remove check
553 for generic address space.
554 (default_addr_space_address_mode): Likewise.
555 (default_addr_space_valid_pointer_mode): Likewise.
556 (default_addr_space_legitimate_address_p): Likewise.
557 (default_addr_space_legitimize_address): Likewise.
558 * target.def (addr_space.pointer_mode): Update documentation
560 (addr_space.address_mode): Likewise.
563 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
566 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
568 * builtins.c (fold_builtin_cabs): Delete.
569 (fold_builtin_1): Update accordingly. Handle constant arguments here.
570 * match.pd: Add rules previously handled by fold_builtin_cabs.
572 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
574 * fold-const.h (fold_strip_sign_ops): Delete.
575 * fold-const.c (fold_strip_sign_ops): Likewise.
576 (fold_unary_loc, fold_binary_loc): Remove calls to it.
577 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
578 (fold_builtin_ccos): Delete.
579 (fold_builtin_pow): Don't call fold_strip_sign_ops.
580 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
581 Remove fndecl argument.
582 (fold_builtin_1): Update calls accordingly. Handle constant
583 cos, cosh, ccos and ccosh here.
585 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
587 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
588 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
589 * common.opt (fssa-backprop): New option.
590 * fold-const.h (negate_mathfn_p): Declare.
591 * fold-const.c (negate_mathfn_p): Make public.
592 * timevar.def (TV_TREE_BACKPROP): New.
593 * tree-pass.h (make_pass_backprop): Declare.
594 * passes.def (pass_backprop): Add.
595 * gimple-ssa-backprop.c: New file.
597 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
598 Sebastian Pop <s.pop@samsung.com>
600 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
601 Do not call create_empty_if_region_on_edge when cond_expr is true.
602 (translate_isl_ast_node_for): Check whether a guard has been generated.
604 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
606 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
607 (operator=): Removed.
608 (dr_info): Make alias_set number the last argument with default
609 value of invalid_alias_set.
610 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
612 (rewrite_reductions_out_of_ssa): Iterate only through the
613 basic blocks which are inside region.
614 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
615 * sese.h (struct sese_l): Removed assignment operator.
616 (split_region_for_bb): Removed dead code.
618 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
620 * graphite-poly.h (struct dr_info): Removed conversion constructor.
621 (struct scop): Renamed scop::region to scop::scop_info
622 (scop_set_region): Same.
623 (SCOP_REGION): Removed
624 (SCOP_CONTEXT): Removed.
625 (POLY_SCOP_P): Removed.
626 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
627 Rename scop->region to scop->scop_info.
628 (add_parameters_to_ivs_params): Same.
629 (graphite_regenerate_ast_isl): Same.
630 * graphite-poly.c (new_scop): Same.
632 (print_scop_params): Same.
633 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
634 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
635 (dot_all_scops_1): Rename scop->region to scop->scop_info.
636 (scop_detection::nb_pbbs_in_loops): Same.
637 (find_scop_parameters): Same.
638 (try_generate_gimple_bb): Same.
639 (gather_bbs::before_dom_children): Same.
640 (gather_bbs::after_dom_children): Same.
642 * graphite-sese-to-poly.c (build_scop_scattering): Same.
643 (extract_affine_chrec): Same.
644 (extract_affine): Same.
645 (set_scop_parameter_dim): Same.
646 (build_loop_iteration_domains): Same.
647 (create_pw_aff_from_tree): Same.
648 (add_param_constraints): Same.
649 (build_scop_iteration_domain): Same.
650 (build_scop_drs): Same.
651 (analyze_drs_in_stmts): Same.
652 (insert_out_of_ssa_copy_on_edge): Same.
653 (rewrite_close_phi_out_of_ssa):Same.
654 (rewrite_reductions_out_of_ssa):Same.
655 (handle_scalar_deps_crossing_scop_limits):Same.
656 (rewrite_cross_bb_scalar_deps):Same.
657 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
658 (build_poly_scop):Same.
659 (build_alias_set): Use pointer to dr_info.
660 * graphite.c (print_graphite_scop_statistics):
661 (graphite_transform_loops):
662 * sese.h (struct sese_l): Remove conversion constructor.
664 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
667 * tree.c (verify_type): Verify that TYPE_MODE match
668 between TYPE_CANONICAL and type.
669 * expr.c (store_expr_with_bounds): Revert my previous change.
670 * expmed.c (store_bit_field_1): Revert prevoius change.
671 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
672 to match for all types.
674 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
676 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
679 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
681 * doc/tm.texi: Regenerated.
682 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
683 * stor-layout.c (layout_type): Use mode to get vector mask size.
684 * target.def (get_mask_mode): New.
685 * targhooks.c (default_get_mask_mode): New.
686 * targhooks.h (default_get_mask_mode): New.
687 * gcc/tree-vect-stmts.c (get_same_sized_vectype): Add special case
689 * tree.c (MAX_BOOL_CACHED_PREC): New.
690 (nonstandard_boolean_type_cache): New.
691 (build_nonstandard_boolean_type): New.
692 (make_vector_type): Vector mask has no canonical type.
693 (build_truth_vector_type): New.
694 (build_same_sized_truth_vector_type): New.
695 (truth_type_for): Support vector masks.
696 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
697 (build_truth_vector_type): New.
698 (build_same_sized_truth_vector_type): New.
699 (build_nonstandard_boolean_type): New.
700 * tree-cfg.c (verify_gimple_comparison) Require boolean
701 vector type for vector comparison.
702 (verify_gimple_assign_ternary): Likewise.
703 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
705 * tree-vect-stmts.c (vectorizable_condition): Use boolean
706 vector type for vector comparison.
707 * tree-vect-generic.c (elem_op_func): Add new operand to hold
709 (do_unop): Adjust to modified function type.
710 (do_binop): Likewise.
711 (do_plus_minus): Likewise.
712 (do_negate); Likewise.
713 (expand_vector_piecewise): Likewise.
715 (do_compare): Use comparison instead of condition.
716 (expand_vector_divmod): Use boolean vector type for comparison.
717 (expand_vector_operations_1): Skip scalar mask operations.
719 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
721 * omp-low.c (simd_clone_create): Set in_other_partition
724 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
726 * doc/extend.exp (Local Register Variables): Rewrite.
728 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
730 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
731 and x*x in cases where the operands are sign ops. Extend these
732 rules to handle copysign as a sign op (including for cos, cosh
733 and pow, which already treated negate and abs as sign ops).
735 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
738 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
739 for 64-bit MS_ABI targets also when default incoming stack boundary
742 2015-10-21 Richard Biener <rguenther@suse.de>
744 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
745 cond stmts, enhanced and split out from ...
746 (vn_phi_eq): ... here.
748 2015-10-21 Richard Biener <rguenther@suse.de>
751 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
752 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
753 (tree_single_nonnegative_warnv_p): ... here. For SSA names
754 make sure they are not registered for update.
756 2015-10-21 Richard Biener <rguenther@suse.de>
758 PR tree-optimization/68026
759 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
760 unsigned VARYING values.
762 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
764 * asan.c (asan_emit_stack_protection): Don't pass local stack to
765 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
766 NULL and use local stack than.
767 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
768 in addition to __asan_init.
769 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
770 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
771 * asan.h (asan_intercepted_p): Handle new string builtins.
772 * ubsan.c (ubsan_use_new_style_p): New function.
773 (ubsan_instrument_float_cast): If location is unknown, assign
774 input_location to loc. Propagate loc to ubsan_create_data if
775 ubsan_use_new_style_p returned true.
777 2015-10-21 Jeff Law <law@redhat.com>
779 * Makefile.in (OBJS): Remove sched-vis.c
780 * sched-vis.c: Removed. Code moved into...
781 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
782 * rtl.h: Remove prototypes for functions now living in print-rtl.c
783 * print-rtl.h Add prototypes for new functions in print-rtl.c.
784 * auto-inc-dec.c: Include print-rtl.h
785 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
786 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
788 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
791 2015-10-21 Richard Biener <rguenther@suse.de>
792 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
794 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
796 Move (a * (1 << b)) is (a << b) to match.pd.
797 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
798 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
799 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
801 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
803 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
804 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
805 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
807 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
809 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
811 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
812 Szabolcs Nagy <szabolcs.nagy@arm.com>
813 Alan Modra <amodra@gmail.com>
815 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
816 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
817 (LINK_SPEC): Add %(link_secure_plt).
818 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
819 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
821 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
822 Szabolcs Nagy <szabolcs.nagy@arm.com>
824 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
825 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
827 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
829 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
831 (fusion_load_store): Use it.
832 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
833 ldp and stp in VD modes.
834 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
835 (store_pair<mode>, VD): Likewise.
837 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
839 PR rtl-optimization/67609
840 * lra-splill.c (lra_final_code_change): Don't remove all
843 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
845 * simplify-rtx.c (simplify_binary_operation): If either operand was
846 a constant pool reference use them if all other simplifications failed.
848 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
850 * config/aarch64/aarch64.md
851 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
852 * config/aarch64/aarch64-simd.md
853 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
854 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
855 (aarch64_fpconst_pow_of_2): New function.
856 (aarch64_vec_fpconst_pow_of_2): Likewise.
857 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
859 (aarch64_vec_fpconst_pow_of_2): Likewise.
860 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
861 (aarch64_fp_vec_pow2): Likewise.
863 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
865 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
866 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
867 * config/alpha/alpha.c (alpha_function_arg_advance): Update
868 ALPHA_ARG_SIZE usage.
869 (alpha_arg_partial_bytes): Ditto.
871 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
874 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
875 error_mark_node decls.
877 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
881 * common/config/i386/i386-common.c (ix86_handle_option): Remove
883 * config/i386/i386.c (PTA_NO_80387): New macro.
884 (processor_alias_table): Add PTA_NO_80387 to lakemont.
885 (ix86_option_override_internal): Update MASK_80387 from
886 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
887 SSE math only if 80387 is supported. Don't change
889 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
891 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
892 if TARGET_80387 is true and TARGET_IAMCU is false.
893 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
894 is true and TARGET_IAMCU_P is false.
896 2015-10-20 Richard Biener <rguenther@suse.de>
898 PR tree-optimization/68017
899 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
901 2015-10-20 Martin Liska <mliska@suse.cz>
903 * cgraphclones.c (cgraph_node::create_virtual_clone):
904 Verify cgraph_node.local.versionable instead of calling
905 tree_versionable_function_p.
906 * ipa-cp.c (determine_versionability): Save the information
907 to ipa_node_params summary.
908 (ipcp_versionable_function_p): Use it.
909 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
910 (ipcp_generate_summary): Do not compute cgraph_node
912 * ipa-inline-analysis.c (inline_generate_summary): Compute
913 versionability for all cgraph nodes.
914 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
915 ipa_node_params::versionability.
916 * ipa-prop.h (struct ipa_node_params): Declare it.
918 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
921 * varasm.c (assemble_variable): Move special vtv handling to..
922 (handle_vtv_comdat_sections): .. here. New function.
923 (output_object_block): Handle vtv sections.
925 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
928 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
930 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
932 * doc/extend.texi: Update documentation WRT inline functions.
934 2015-10-20 Alan Modra <amodra@gmail.com>
937 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
938 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
939 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
941 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
943 PR rtl-optimization/66790
944 * df.h (DF_MIR): New macro.
945 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
946 (DF_MIR_INFO_BB): New macro.
947 (DF_MIR_IN, DF_MIR_OUT): New macros.
948 (struct df_mir_bb_info): New.
950 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
952 (df_mir_get_bb_info): New.
953 * df-problems.c (struct df_mir_problem_data): New.
954 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
955 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
956 df_mir_confluence_0, df_mir_confluence_n,
957 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
958 df_mir_bottom_dump, df_mir_verify_solution_start,
959 df_mir_verify_solution_end): New.
961 (df_mir_add_problem, df_mir_simulate_one_insn): New.
962 * timevar.def (TV_DF_MIR): New.
963 * ree.c: Include bitmap.h
964 (add_removable_extension): Add an INIT_REGS parameter. Use it
965 to skip zero-extensions that may get an uninitialized register.
966 (find_removable_extensions): Compute must-initialized registers
967 using the MIR dataflow problem. Update the call to
968 add_removable_extension.
969 (find_and_remove_re): Call df_mir_add_problem.
971 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
973 * common/config/mn10300/mn10300-common.c
974 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
975 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
977 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
979 * doc/extend.texi (Explicit Register Variables): Simplify and
980 avoid unnecessary and confusion abbreviations. Update cross
982 doc/implement-c.tex: Update cross reference.
984 2015-10-19 Jeff Law <law@redhat.com>
986 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
987 that create irreducible loops unless the path elimiantes a multiway
990 2015-10-19 Richard Biener <rguenther@suse.de>
992 PR tree-optimization/67975
993 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
994 * tree-cfg.c (extract_true_false_controlled_edges): Split out
996 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
997 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
998 instead of block number for PHIs with two or one args.
999 (vn_phi_eq): Compare edge predicates of PHIs that are in different
1002 2015-10-19 Richard Biener <rguenther@suse.de>
1004 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
1005 (gimple_stmt_nonnegative_warnv_p): Use it.
1006 * match.pd (CPROJ): New operator list.
1007 (cproj (complex ...)): Move simplifications from ...
1008 * builtins.c (fold_builtin_cproj): ... here.
1010 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1012 * config/i386/i386.c (ix86_expand_vector_move): Use
1013 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
1016 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1018 * doc/invoke.texi: Replace @optindex with @opindex.
1020 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
1023 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
1024 arch= is set, clear all bits in x_ix86_isa_flags, except for
1025 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
1027 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
1030 * common.opt (fkeep-static-functions): New option.
1031 * doc/invoke.texi: Document it.
1032 * cgraphunit.c (cgraph_node::finalize_function): Use it.
1034 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1036 * sched-int.h (struct autopref_multipass_data_): Remove offset
1037 field. Add min_offset, max_offset, multi_mem_insn_p fields.
1038 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
1039 (autopref_multipass_init): Use it. Handle PARALLEL sets.
1040 (autopref_rank_data): New function.
1041 (autopref_rank_for_schedule): Use it.
1042 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
1044 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
1047 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
1049 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1051 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
1052 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
1053 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
1054 (STANDARD_STARTFILE_PREFIX_1): New.
1055 (STANDARD_STARTFILE_PREFIX_2): New.
1057 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1059 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
1060 (darwin_driver_init): Note a version-min when provided on the c/l.
1061 * config/darwin.h (%darwin_minversion): Remove.
1062 * config/i386/darwin.h: Likewise.
1063 * config/rs6000/darwin.h: Likewise.
1064 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
1065 rather than an arbitrary constant.
1067 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1069 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
1070 PPC, detect conflicts between -arch and multilib settings. Detect
1071 and warn about conflicts between multiple -arch definitions.
1073 2015-10-18 Iain Sandoe <iain@codesourcery.com>
1075 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
1077 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1079 * lra-constraints.c (add_next_usage_insn): Change argument type
1080 from rtx to rtx_insn *.
1082 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
1084 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
1087 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
1089 * config/tilepro/gen-mul-tables.cc: Adjust include files.
1090 * config/tilegx/mul-tables.c: Regenerate.
1091 * config/tilepro/mul-tables.c: Regenerate.
1093 * config/tilegx/tilegx-c.c: Adjust include files.
1094 * config/tilegx/tilegx.c: Likewise.
1095 * config/tilepro/tilepro-c.c: Likewise.
1096 * config/tilepro/tilepro.c: Likewise.
1097 * config/aarch64/aarch64-builtins.c: Likewise.
1098 * config/aarch64/aarch64.c: Likewise.
1099 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
1100 * config/alpha/alpha.c: Likewise.
1101 * config/arc/arc.c: Likewise.
1102 * config/arm/aarch-common.c: Likewise.
1103 * config/arm/arm-builtins.c: Likewise.
1104 * config/arm/arm-c.c: Likewise.
1105 * config/arm/arm.c: Likewise.
1106 * config/avr/avr-c.c: Likewise.
1107 * config/avr/avr-devices.c: Likewise.
1108 * config/avr/avr-log.c: Likewise.
1109 * config/avr/avr.c: Likewise.
1110 * config/bfin/bfin.c: Likewise.
1111 * config/c6x/c6x.c: Likewise.
1112 * config/cr16/cr16.c: Likewise.
1113 * config/cris/cris.c: Likewise.
1114 * config/darwin-c.c: Likewise.
1115 * config/darwin-driver.c: Likewise.
1116 * config/darwin.c: Likewise.
1117 * config/default-c.c: Likewise.
1118 * config/epiphany/epiphany.c: Likewise.
1119 * config/epiphany/mode-switch-use.c: Likewise.
1120 * config/epiphany/resolve-sw-modes.c: Likewise.
1121 * config/fr30/fr30.c: Likewise.
1122 * config/frv/frv.c: Likewise.
1123 * config/ft32/ft32.c: Likewise.
1124 * config/glibc-c.c: Likewise.
1125 * config/h8300/h8300.c: Likewise.
1126 * config/i386/host-cygwin.c: Likewise.
1127 * config/i386/host-mingw32.c: Likewise.
1128 * config/i386/i386-c.c: Likewise.
1129 * config/i386/i386.c: Likewise.
1130 * config/i386/msformat-c.c: Likewise.
1131 * config/i386/winnt-cxx.c: Likewise.
1132 * config/i386/winnt-stubs.c: Likewise.
1133 * config/i386/winnt.c: Likewise.
1134 * config/ia64/ia64-c.c: Likewise.
1135 * config/ia64/ia64.c: Likewise.
1136 * config/iq2000/iq2000.c: Likewise.
1137 * config/lm32/lm32.c: Likewise.
1138 * config/m32c/m32c-pragma.c: Likewise.
1139 * config/m32c/m32c.c: Likewise.
1140 * config/m32r/m32r.c: Likewise.
1141 * config/mcore/mcore.c: Likewise.
1142 * config/mep/mep-pragma.c: Likewise.
1143 * config/mep/mep.c: Likewise.
1144 * config/microblaze/microblaze-c.c: Likewise.
1145 * config/microblaze/microblaze.c: Likewise.
1146 * config/mips/mips-tables.opt
1147 * config/mips/mips.c: Likewise.
1148 * config/mmix/mmix.c: Likewise.
1149 * config/mn10300/mn10300.c: Likewise.
1150 * config/moxie/moxie.c: Likewise.
1151 * config/msp430/msp430-c.c: Likewise.
1152 * config/msp430/msp430.c: Likewise.
1153 * config/nds32/nds32-cost.c: Likewise.
1154 * config/nds32/nds32-fp-as-gp.c: Likewise.
1155 * config/nds32/nds32-intrinsic.c: Likewise.
1156 * config/nds32/nds32-isr.c: Likewise.
1157 * config/nds32/nds32-md-auxiliary.c: Likewise.
1158 * config/nds32/nds32-memory-manipulation.c: Likewise.
1159 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
1160 * config/nds32/nds32-predicates.c: Likewise.
1161 * config/nds32/nds32.c: Likewise.
1162 * config/nios2/nios2.c: Likewise.
1163 * config/nvptx/mkoffload.c: Likewise.
1164 * config/nvptx/nvptx.c: Likewise.
1165 * config/pa/pa.c: Likewise.
1166 * config/pdp11/pdp11.c: Likewise.
1167 * config/rl78/rl78-c.c: Likewise.
1168 * config/rl78/rl78.c: Likewise.
1169 * config/rs6000/host-darwin.c: Likewise.
1170 * config/rs6000/rs6000-c.c: Likewise.
1171 * config/rs6000/rs6000-linux.c: Likewise.
1172 * config/rs6000/rs6000.c: Likewise.
1173 * config/rx/rx.c: Likewise.
1174 * config/s390/s390-c.c: Likewise.
1175 * config/s390/s390.c: Likewise.
1176 * config/sh/sh-c.c: Likewise.
1177 * config/sh/sh-mem.cc: Likewise.
1178 * config/sh/sh.c: Likewise.
1179 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
1180 * config/sh/sh_treg_combine.cc: Likewise.
1181 * config/sol2-c.c: Likewise.
1182 * config/sol2-cxx.c: Likewise.
1183 * config/sol2-stubs.c: Likewise.
1184 * config/sol2.c: Likewise.
1185 * config/sparc/sparc-c.c: Likewise.
1186 * config/sparc/sparc.c: Likewise.
1187 * config/spu/spu-c.c: Likewise.
1188 * config/spu/spu.c: Likewise.
1189 * config/stormy16/stormy16.c: Likewise.
1190 * config/v850/v850-c.c: Likewise.
1191 * config/v850/v850.c: Likewise.
1192 * config/vax/vax.c: Likewise.
1193 * config/visium/visium.c: Likewise.
1194 * config/vms/vms-c.c: Likewise.
1195 * config/vms/vms.c: Likewise.
1196 * config/vxworks.c: Likewise.
1197 * config/winnt-c.c: Likewise.
1198 * config/xtensa/xtensa.c: Likewise.
1200 2015-10-16 Christian Bruel <christian.bruel@st.com>
1203 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
1204 (FUNCTION_BOUNDARY_P): New macro:
1205 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
1207 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
1208 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
1209 * gcc/target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
1210 * gcc/function.c (allocate_struct_function): Call
1211 relayout_function hook.
1212 * gcc/passes.c (rest_of_decl_compilation): Likewise.
1214 2015-10-16 Christian Bruel <christian.bruel@st.com>
1217 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
1218 * config/arm/arm.c (arm_option_override_internal): Call
1219 arm_override_options_after_change_1.
1220 (arm_override_options_after_change): New function.
1221 (arm_override_options_after_change_1): Likewise.
1222 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
1224 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1227 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1230 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
1232 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
1233 argument is an ADDR_EXPR.
1235 2015-10-16 Richard Biener <rguenther@suse.de>
1237 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
1238 and get rid of force_gimple_operand_gsi.
1239 (gimple_fold_builtin_memory_chk): Likewise.
1240 (gimple_fold_builtin_stxcpy_chk): Likewise.
1241 (rewrite_to_defined_overflow): Likewise.
1242 (gimple_convert_to_ptrofftype): New function.
1243 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
1245 2015-10-16 Richard Biener <rguenther@suse.de>
1247 * tree-nested.h (build_addr): Adjust prototype.
1248 * tree-nested.c (build_addr): Remove context argument and use
1250 (get_static_chain): Adjust calls to build_addr.
1251 (convert_nl_goto_reference): Likewise.
1252 (convert_tramp_reference_op): Likewise.
1253 (finalize_nesting_tree_1): Likewise.
1254 * value-prof.c (gimple_ic): Likewise.
1255 * gimple-low.c (lower_builtin_setjmp): Likewise.
1256 * tree-parloops.c (take_address_of): Likewise.
1257 (create_call_for_reduction_1): Likewise.
1258 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
1259 (gimple_gen_ic_func_profiler): Likewise.
1261 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1263 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
1266 2015-10-16 Michael Collison <michael.collison@linaro.org>
1267 Andrew Pinski <andrew.pinski@caviumnetworks.com>
1269 * match.pd ((x < y) && (x < z) -> x < min (y,z),
1270 (x > y) and (x > z) -> x > max (y,z))
1272 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
1273 Szabolcs Nagy <szabolcs.nagy@arm.com>
1275 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
1276 (DYNAMIC_LINKER): Renamed to ...
1277 (GLIBC_DYNAMIC_LINKER): This.
1278 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
1280 2015-10-15 Marek Polacek <polacek@redhat.com>
1282 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
1283 gimple_call_builtin instead of is_gimple_call.
1285 2015-10-15 Richard Biener <rguenther@suse.de>
1287 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
1289 2015-10-15 Richard Biener <rguenther@suse.de>
1291 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
1292 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
1293 * tree-vect-loop.c (get_initial_def_for_induction): Drop
1294 use of force_gimple_operand in favor of gimple_build.
1295 Use vect_get_new_ssa_name.
1296 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
1297 (vectorizable_mask_load_store): Likewise.
1298 (vectorizable_call): Likewise.
1299 (vectorizable_store): Likewise.
1300 (vectorizable_load): Likewise.
1301 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
1303 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
1305 PR tree-optimization/67945
1306 * tree-pass.h (PROP_gimple_opt_math): New property flag.
1307 * generic-match-head.c (canonicalize_math_p): New function.
1308 * gimple-match-head.c: Include tree-pass.h.
1309 (canonicalize_math_p): New function.
1310 * match.pd: Group math built-in rules into simplifications
1311 and canonicalizations. Guard the latter with canonicalize_math_p.
1312 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
1313 PROP_gimple_opt_math property.
1315 2015-10-15 Marek Polacek <polacek@redhat.com>
1317 PR tree-optimization/67953
1318 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
1320 2015-10-15 Jiong Wang <jiong.wang@arm.com>
1322 * config.gcc: Recognize "." in architecture base name for AArch64.
1324 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
1326 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
1328 * config/mips/mips.c (mips_setup_incoming_varargs): Use
1329 ROUND_DOWN to calculate off.
1330 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
1331 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
1334 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
1336 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
1338 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
1339 Torvald Riegel <triegel@redhat.com>
1342 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
1343 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1344 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
1345 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
1346 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
1347 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
1348 trechkpt, treclaim, tsr, ttest): New define_expands.
1349 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1350 __TM_FENCE__ for htm.
1351 * doc/extend.texi: Update documentation for htm builtins.
1353 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
1356 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
1357 REG_CFA_EXPRESSION to aligned SSE stores.
1359 2015-10-14 Jeff Law <law@redhat.com>
1361 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
1362 num_threaded_edges for successful FSM threads too.
1364 2015-10-14 Richard Biener <rguenther@suse.de>
1366 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
1367 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
1368 (vect_get_vec_def_for_operand): Remove unused parameter.
1369 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
1370 (vect_create_epilog_for_reduction): Likewise.
1371 (vectorizable_reduction): Likewise.
1372 (vectorizable_live_operation): Likewise.
1373 * tree-vect-patterns.c (type_conversion_p): Likewise.
1374 (vect_recog_vector_vector_shift_pattern): Likewise.
1375 (check_bool_pattern): Likewise.
1376 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
1377 (vect_analyze_slp_cost_1): Likewise.
1378 * tree-vect-stmts.c (process_use): Likewise.
1379 (vect_get_vec_def_for_operand): Do not handle reductions.
1380 (vect_get_vec_defs): Adjust.
1381 (vectorizable_mask_load_store): Likewise.
1382 (vectorizable_call): Likewise.
1383 (vectorizable_simd_clone_call): Likewise.
1384 (vect_get_loop_based_defs): Likewise.
1385 (vectorizable_conversion): Likewise.
1386 (vectorizable_assignment): Likewise.
1387 (vectorizable_shift): Likewise.
1388 (vectorizable_operation): Likewise.
1389 (vectorizable_store): Likewise.
1390 (vectorizable_load): Likewise.
1391 (vect_is_simple_cond): Likewise.
1392 (vectorizable_condition): Likewise.
1393 (vect_is_simple_use): Remove unused parameters.
1394 (vect_is_simple_use_1): Adjust and rename.
1396 2015-10-14 Richard Biener <rguenther@suse.de>
1398 PR tree-optimization/67915
1399 * match.pd: Handle comparisons of addresses of STRING_CSTs.
1400 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
1401 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
1402 stmt folding in favor of GIMPLE one.
1404 2015-10-14 Marek Polacek <polacek@redhat.com>
1406 PR tree-optimization/67815
1407 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
1408 (reassociate_bb): Call it.
1410 2015-10-14 Richard Biener <rguenther@suse.de>
1412 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
1413 Reset info at start.
1414 (vect_analyze_group_access_1): Add debug print.
1415 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
1416 (vect_compute_single_scalar_iteration_cost): ... to this.
1417 (vect_analyze_loop_2): Adjust.
1418 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
1419 * tree-vectorizer.h: ... here.
1420 (add_stmt_info_to_vec): Remove.
1421 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
1423 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
1425 * targhooks.c (default_target_option_pragma_parse): Do not warn if
1426 called on behalf of "#pragma GCC pop_options".
1428 2015-10-14 Tom de Vries <tom@codesourcery.com>
1430 * cfganal.c (verify_no_unreachable_blocks): New function.
1431 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
1432 verify_no_unreachable_blocks.
1433 cfganal.h (verify_no_unreachable_blocks): Declare.
1435 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
1437 * common.opt: Add flag_checking.
1438 * system.h (CHECKING_P): Define.
1440 2015-10-13 Jakub Jelinek <jakub@redhat.com>
1441 Aldy Hernandez <aldyh@redhat.com>
1442 Ilya Verbin <ilya.verbin@intel.com>
1444 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
1445 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
1446 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
1447 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
1448 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
1449 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
1450 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
1451 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
1452 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
1453 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
1454 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
1455 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
1456 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
1457 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1458 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
1459 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1460 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1461 (struct cgraph_simd_clone_arg): Adjust comment.
1462 * coretypes.h (struct gomp_ordered): New forward decl.
1463 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
1464 set critical clauses to it.
1465 (gimple_build_omp_ordered): Return gomp_ordered * instead of
1466 gimple *. Add CLAUSES argument, set ordered clauses to it.
1467 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
1469 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
1470 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
1471 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
1472 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
1473 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
1474 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
1475 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
1476 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
1478 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
1479 (gomp_critical): Add clauses field.
1480 (gomp_ordered): New struct.
1481 (is_a_helper <gomp_ordered *>::test): New inline.
1482 (gimple_build_omp_critical): Add CLAUSES argument.
1483 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
1484 instead of gimple *.
1485 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
1486 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
1487 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
1488 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
1490 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
1491 (dump_gimple_omp_target): Handle enter data and exit data.
1492 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
1493 (dump_gimple_omp_critical): Print clauses.
1494 (dump_gimple_omp_ordered): New function.
1495 (dump_gimple_omp_task): Handle taskloop.
1496 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
1498 * gimple-walk.c (walk_gimple_op): Walk clauses on
1499 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
1500 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
1501 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
1502 (struct gimplify_omp_ctx): Add loop_iter_var,
1503 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
1504 and target_firstprivatize_array_bases fields.
1505 (delete_omp_context): Release loop_iter_var.
1506 (gimplify_bind_expr): Handle ORT_NONE.
1507 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
1508 ORT_COMBINED_TARGET.
1509 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
1510 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
1511 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
1512 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
1513 ctx->target_map_scalars_firstprivate.
1514 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
1515 data sharing clauses. For data sharing clause with VLA decl
1516 on omp target/target data don't add firstprivate for the pointer.
1517 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
1518 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
1519 the addition of ORT_COMBINED_TARGET.
1520 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
1521 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
1522 pointers as zero length array sections and
1523 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
1525 (omp_check_private): Handle omp_member_access_dummy_var vars.
1526 (find_decl_expr): New function.
1527 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
1528 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
1529 Handle OMP_CLAUSE_GANG separately. Handle
1530 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1531 clauses. Diagnose linear clause on combined
1532 distribute {, parallel for} simd construct, unless it is the loop
1533 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
1534 Handle map clauses with COMPONENT_REF. Initialize
1535 ctx->target_map_scalars_firstprivate,
1536 ctx->target_firstprivatize_array_bases and
1537 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
1538 linear clause even to target region if combined. Remove
1539 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
1540 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
1541 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
1542 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
1543 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
1544 For linear clause on worksharing loop combined with parallel add
1545 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
1546 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
1547 omp_member_access_dummy_var vars. Add lastprivate clause to outer
1549 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
1550 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
1551 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
1553 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
1554 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
1555 in target body. Handle removal of struct mapping if struct is not
1556 seen in target body. Remove GOMP_MAP_STRUCT map clause on
1557 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
1558 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
1559 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
1560 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
1561 clause appear together. Handle
1562 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
1563 clause if it has map-type-modifier always. Handle
1564 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
1566 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
1567 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
1569 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
1570 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
1571 iterators in doacross loops.
1572 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
1573 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
1574 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
1575 for the addition of ORT_COMBINED_TARGET.
1576 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
1577 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
1578 and OMP_TARGET_EXIT_DATA.
1579 (gimplify_omp_ordered): New function.
1580 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
1581 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
1582 Gimplify clauses on OMP_CRITICAL.
1583 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
1584 expand_GOMP_SIMD_ORDERED_END): New functions.
1585 * internal-fn.def (GOMP_SIMD_ORDERED_START,
1586 GOMP_SIMD_ORDERED_END): New internal functions.
1587 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
1588 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
1589 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
1590 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
1591 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
1592 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
1593 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
1594 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
1595 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
1596 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
1597 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
1598 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
1599 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
1600 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
1602 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
1603 GOMP_target_data_41, adjust type.
1604 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
1605 GOMP_target_update_41, adjust type.
1606 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
1608 (struct omp_for_data): Add ordered and simd_schedule fields.
1609 (omp_member_access_dummy_var, unshare_and_remap_1,
1610 unshare_and_remap, is_taskloop_ctx): New functions.
1611 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
1612 (extract_omp_for_data): Handle taskloops and doacross loops
1613 and simd schedule modifier.
1614 (omp_adjust_chunk_size): New function.
1615 (get_ws_args_for): Use it.
1616 (lookup_sfield): Change first argument to splay_tree_key,
1617 add overload with first argument tree.
1618 (maybe_lookup_field): Likewise.
1619 (use_pointer_for_field): Handle omp_member_access_dummy_var.
1620 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
1621 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
1622 (build_outer_var_ref): Add LASTPRIVATE argument, handle
1623 taskloops and omp_member_access_dummy_var vars.
1624 (build_sender_ref): Change first argument to splay_tree_key,
1625 add overload with first argument tree.
1626 (install_var_field): For mask & 8 use &DECL_UID as key instead
1628 (fixup_child_record_type): Const qualify *.omp_data_i.
1629 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
1630 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
1631 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
1632 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
1633 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
1634 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
1635 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
1637 (add_taskreg_looptemp_clauses): New function.
1638 (scan_omp_parallel): Use it.
1639 (scan_omp_task): Likewise.
1640 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1641 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
1642 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1643 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
1644 sandwiched taskloop constructs. Type check
1645 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
1646 region. Diagnose depend(source) or depend(sink:...) on
1647 target constructs or task/taskloop.
1648 (handle_simd_reference): Use get_name.
1649 (lower_rec_input_clauses): Likewise. Ignore all
1650 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
1651 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
1652 before passing it to omp_clause_{default,copy}_ctor. Handle
1653 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
1654 lastprivate_firstprivate flag for linear that needs copyin and
1655 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
1656 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
1657 on taskloop lookup decl in outer context. Pass true to
1658 build_outer_var_ref lastprivate argument. Handle
1659 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
1660 outside of outer taskloop for.
1661 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
1663 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
1664 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
1665 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
1666 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
1667 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
1668 abstract origin. Handle omp_member_access_dummy_var vars.
1669 (expand_parallel_call): Use expand_omp_build_assign.
1670 (expand_task_call): Handle taskloop construct expansion. Add
1671 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
1672 integers. Add priority argument to GOMP_task* calls. Or in
1673 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
1675 (expand_omp_build_assign): Add prototype. Add AFTER
1676 argument, if true emit statements after *GSI_P and continue linking.
1677 (expand_omp_taskreg): Adjust expand_task_call caller.
1678 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
1679 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
1680 zero_iter2_bb and first_zero_iter2 arguments, handle computation
1681 of counts even for ordered loops.
1682 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
1683 (expand_omp_ordered_source, expand_omp_ordered_sink,
1684 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
1686 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
1687 clauses on worksharing loop. Handle DOACROSS loop expansion.
1688 (expand_omp_for_static_nochunk): Handle linear clauses on
1689 worksharing loop. Adjust expand_omp_for_init_counts
1691 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
1692 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
1693 expand_omp_for_init_counts callers.
1694 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
1696 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
1697 Handle doacross loops.
1698 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1699 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
1700 GOMP_target_{41,update_41,enter_exit_data} libcalls.
1701 (expand_omp): Don't expand ordered depend constructs here, record
1702 ord_stmt instead for later expand_omp_for_generic.
1703 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1704 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
1705 clause as stand-alone directive.
1706 (lower_omp_ordered_clauses): New function.
1707 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
1708 don't lower anything.
1709 (lower_omp_for_lastprivate): Use last _looptemp_ clause
1710 on taskloop for comparison.
1711 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
1712 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
1713 expansion for linear adjustments.
1714 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
1715 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
1716 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
1717 to tree * pointing to the stmt's clauses.
1718 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
1719 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
1720 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
1721 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
1722 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
1723 clauses. Always use short kind and 8-bit align shift.
1724 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
1725 (struct lower_omp_regimplify_operands_data): New type.
1726 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
1728 (lower_omp_1): Use lower_omp_regimplify_operands instead of
1729 gimple_regimplify_operands.
1730 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
1731 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
1732 clause as stand-alone directive.
1733 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
1734 (simd_clone_mangle): Mangle the various linear kinds
1736 (simd_clone_adjust_argument_types): Handle
1737 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
1738 (simd_clone_init_simd_arrays): Don't do anything for uval.
1739 (simd_clone_adjust): Handle
1740 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
1741 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
1742 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
1743 * omp-low.h (omp_member_access_dummy_var): New prototype.
1744 * passes.def (pass_simduid_cleanup): Schedule another copy of the
1745 pass after all optimizations.
1746 * tree.c (omp_clause_code_name): Add entries for
1747 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1748 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1749 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
1750 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
1751 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
1752 OMP_CLAUSE_REDUCTION 5 arguments. Handle
1753 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1754 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
1756 * tree-core.h (enum omp_clause_linear_kind): New.
1757 (struct tree_omp_clause): Change type of map_kind
1758 from unsigned char to unsigned int. Add subcode.if_modifier
1759 and subcode.linear_kind fields.
1760 (enum omp_clause_code): Add
1761 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
1762 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
1763 (OMP_CLAUSE_REDUCTION): Document
1764 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1765 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
1766 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
1767 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
1769 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
1771 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
1773 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
1774 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
1776 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
1777 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
1778 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
1779 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
1780 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
1781 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
1782 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
1783 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
1784 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
1785 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
1786 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
1787 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
1788 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
1789 * tree-inline.c (remap_gimple_stmt): Handle clauses on
1790 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
1791 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
1792 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
1793 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1794 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1795 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
1796 (convert_local_omp_clauses): Likewise.
1797 * tree-pretty-print.c (dump_omp_clause): Handle
1798 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
1799 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
1800 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
1801 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
1802 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
1803 GOMP_MAP_FORCE_DEALLOC. Handle
1804 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
1805 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
1806 and clauses on OMP_ORDERED and OMP_CRITICAL.
1807 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
1808 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
1809 (vectorize_loops): Adjust comments.
1810 (pass_simduid_cleanup::execute): Likewise.
1811 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
1812 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
1813 * wide-int.h (wi::gcd): New.
1815 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
1817 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
1818 (ix86_function_arg_advance): Ditto.
1819 (ix86_function_arg): Ditto.
1820 (ix86_gimplify_va_arg): Ditto.
1821 (ix86_class_max_nregs): Ditto.
1822 (inline_memory_move_cost): Ditto.
1823 (ix86_set_reg_reg_cost): Ditto.
1824 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
1826 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
1829 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
1831 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
1833 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
1834 ROUND_UP macro and UNITS_PER_WORD * 2.
1835 * config/sparc/sparc.c (sparc_compute_frame_size):
1836 Use ROUND_UP and ROUND_DOWN macros where applicable.
1837 (function_arg_record_value, function_arg_record_value_1)
1838 (function_arg_record_value_1): Ditto.
1839 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
1840 alignment to double-word.
1841 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
1842 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
1845 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
1847 * gcc/rtl.h (print_insn): Fix prototype.
1849 2015-10-13 Tom de Vries <tom@codesourcery.com>
1851 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
1852 -1. Add assert that returned entry matches phi argument.
1853 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
1854 free_stmt_vec_info_vec ...
1855 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
1858 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
1860 PR tree-optimization/67909, 67947
1861 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
1862 really skip the inner loop.
1864 2015-10-13 Jeff Law <law@redhat.com>
1866 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
1867 Allow single block jump threading paths.
1869 2015-10-13 Tom de Vries <tom@codesourcery.com>
1871 PR tree-optimization/67476
1872 * doc/invoke.texi (@item parloops-schedule): New item.
1873 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
1874 * tree-parloops.c: Include params-enum.h.
1875 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
1877 2015-10-13 Tom de Vries <tom@codesourcery.com>
1879 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
1880 * params-enum.h: New file.
1881 * opts.c (handle_param): Handle case that param arg is a string.
1882 * params-list.h: Handle DEFPARAMENUM5 in params.def.
1883 * params.c (find_param): New function, factored out of ...
1884 (set_param_value): ... here.
1885 (param_string_value_p): New function.
1886 * params.h (struct param_info): Add value_names field.
1887 (find_param, param_string_value_p): Declare.
1889 2015-10-13 Tom de Vries <tom@codesourcery.com>
1891 PR tree-optimization/67476
1892 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
1894 2015-10-13 Richard Biener <rguenther@suse.de>
1896 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
1897 the data dependence vector.
1898 (vect_peeling_hash_insert): Get the peeling hash table as argument.
1899 (vect_peeling_hash_get_lowest_cost): Likewise.
1900 (vect_enhance_data_refs_alignment): Adjust.
1901 (struct _vect_peel_info, struct _vect_peel_extended_info,
1902 struct peel_info_hasher): Move from ...
1903 * tree-vectorizer.h: ... here.
1904 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
1905 (LOOP_VINFO_PEELING_HTAB): Likewise.
1906 (struct _loop_vec_info): Remove min_profitable_iters and
1907 peeling_htab members.
1908 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
1910 (destroy_loop_vec_info): Adjust.
1911 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
1912 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
1913 to estimate alias versioning cost.
1914 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
1916 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
1918 * real.h (real_isinteger): Declare.
1919 * real.c (real_isinteger): New function.
1920 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
1921 if y is an even integer.
1923 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1926 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
1927 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
1928 counts when these are more informative.
1930 2015-10-12 Jeff Law <law@redhat.com>
1932 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
1933 (fsm_find_control_stmt_paths): Change name of first argument to
1934 more accurately relfect what it really is. Handle simplification
1935 of GIMPLE_COND after finding a thread path for NAME.
1936 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
1937 nontrivial conditions to be handled by FSM threader.
1938 (thread_through_normal_block): Extract the name to looup via
1939 FSM threader from COND_EXPR.
1941 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
1942 restriction that traced SSA_NAME is a user variable.
1944 2015-10-12 Tom de Vries <tom@codesourcery.com>
1946 PR tree-optimization/67476
1947 * omp-low.c (expand_omp_for_generic): Add missing phis.
1949 2015-10-12 Tom de Vries <tom@codesourcery.com>
1951 PR tree-optimization/67476
1952 * omp-low.c (expand_omp_for_generic): Handle simple latch.
1954 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
1956 * config/aarch64/aarch64-simd-builtins.def: Update builtins
1957 tables: add tbl3 and tbx4.
1958 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
1959 (aarch64_tbx4v8qi): New.
1960 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
1961 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
1962 Rewrite using builtin functions.
1963 * config/aarch64/iterators.md (UNSPEC_TBX): New.
1965 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
1967 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
1969 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
1970 Use ROUND_UP and ROUND_DOWN macros where applicable.
1971 (rs6000_darwin64_record_arg_flush): Ditto.
1972 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
1973 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
1976 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
1978 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
1979 (AARCH64_ROUND_DOWN): Ditto.
1980 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
1982 2015-10-12 Richard Biener <rguenther@suse.de>
1985 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
1986 code that analyzes IVs on each stmt but in a cheaper way avoiding
1989 2015-10-12 Nick Clifton <nickc@redhat.com>
1991 * config/msp430/msp430.c (msp430_mcu_names): Rename to
1992 msp430_mcu_data, add fields for ISA and hardware multiply
1993 support. Import latest data from the devices.csv file.
1994 (msp430_override_option): Use the data from the new array.
1995 (msp430_use_f5_series_hwmult): Likewise.
1996 (use_32bit_hwmult): Likewise.
1997 (msp430_no_hwmult): Likewise.
1998 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
2000 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
2001 not recognised then no hardware multiply support is assumed and
2002 that only the MSP430 ISA is allowed.
2004 2015-10-12 Richard Biener <rguenther@suse.de>
2006 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
2008 (vect_analyze_loop_2): ... here.
2010 2015-10-11 Jason Merrill <jason@redhat.com>
2013 * expr.c (store_field): Call store_constructor directly when
2014 storing a CONSTRUCTOR into a target smaller than its type.
2015 Guard against unsafe bitwise copy.
2017 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2019 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
2020 counts when these are more informative.
2022 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2024 * tree-profile.c (tree_profiling): Do not clear
2025 pure/const when not instrumenting.
2026 (pass tree_profile): Add dump of symtab.
2028 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
2030 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
2032 (fold_addr_of_array_ref_difference): Likewise.
2034 2015-10-11 Jeff Law <law@redhat.com>
2036 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
2037 tree-ssa-threadbackward.c.
2038 (fsm_find_control_statement_thread_paths): Likewise.
2039 (thread_through_normal_block): Break out FSM bits and move them
2040 into a new function in tree-ssa-threadbackward.c. Call new function
2042 Minimize header file usage.
2043 * tree-ssa-threadbackward.h: New file.
2044 * tree-ssa-threadbackward.c: Likewise.
2045 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
2047 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
2049 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
2051 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
2053 PR rtl-optimization/67864
2054 * gcc/bb-reorder (reorder_basic_blocks_simple): Prefer existing
2055 fallthrough edges for conditional jumps. Don't sort candidate
2056 edges if not optimizing for speed.
2058 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2060 * defaults.h (REVERSE_CONDITION): New default definition.
2061 * jump.c (reversed_comparison_code_parts): Adjust.
2063 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2065 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
2066 check HARD_FRAME_POINTER_IS_ARG_POINTER.
2068 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2070 * defaults.h (FRAME_ADDR_RTX): New default definition.
2071 * builtins.c (expand_builtin_return_addr): Adjust.
2073 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2075 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
2076 * builtins.c (expand_builtin_return_addr): Adjust.
2078 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2080 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
2081 * builtins.c (expand_builtin_return_addr): Adjust.
2082 * doc/tm.texi: Likewise.
2083 * doc/tm.texi.in: Likewise.
2084 * except.c (expand_builtin_unwind_init): Likewise.
2086 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2088 * builtins.c (expand_builtin_return_addr): Adjust.
2089 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
2091 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2093 * tree.c (type_with_interoperable_signedness): New.
2094 (gimple_canonical_types_compatible_p): Use it.
2095 * tree.h (type_with_interoperable_signedness): Declare
2097 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
2099 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
2100 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
2101 when OEP_ADDRESS_OF is se.
2103 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2104 Sebastian Pop <s.pop@samsung.com>
2106 * graphite-dependences.c (scop_get_dependences): Add dump of the
2107 data dependence graph.
2108 * graphite-poly.c (print_isl_union_map): New.
2109 (debug_isl_union_map): New.
2110 * graphite-poly.h (print_isl_union_map): Declare.
2111 (debug_isl_union_map): Declare.
2113 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
2114 Sebastian Pop <s.pop@samsung.com>
2116 * graphite-poly.c (print_iteration_domain): Remove verbosity.
2117 Remove OpenScop formatting.
2118 (print_iteration_domains): Same.
2119 (debug_iteration_domain): Same.
2120 (debug_iteration_domains): Same.
2123 (dump_gbb_cases): Same.
2124 (dump_gbb_conditions): Same.
2127 (print_pbb_body): Same.
2129 (print_scop_params): Same.
2130 (print_scop_context): Same.
2132 (debug_pbb_domain): Same.
2134 (debug_scop_context): Same.
2136 (debug_scop_params): Same.
2137 * graphite-poly.h: Same.
2138 * graphite.c (graphite_transform_loops): Same.
2140 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2142 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
2143 call that isn't needed.
2145 2015-10-09 Jeff Law <law@redhat.com>
2147 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
2148 rather than moving each name to the freelist individually.
2150 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
2152 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
2153 * frame-header-opt.c: New file.
2154 * config/mips/mips-proto.h (mips_register_frame_header_opt):
2156 * config/mips/mips.c (mips_compute_frame_info): Check
2157 optimize_call_stack flag.
2158 (mips_option_override): Register new frame_header_opt pass.
2159 (mips_frame_info, mips_int_mask, mips_shadow_set,
2160 machine_function): Move these types to...
2161 * config/mips/mips.h: here.
2162 (machine_function): Add does_not_use_frame_header and
2163 optimize_call_stack fields.
2164 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
2165 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
2167 * config/mips/mips.opt (mframe-header-opt): Add new option.
2169 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
2171 * config/i386/i386.c
2172 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
2173 ROUND_DOWN where applicable.
2175 2015-10-09 Jeff Law <law@redhat.com>
2177 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
2180 2015-10-09 Renlin Li <renlin.li@arm.com>
2182 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
2183 operands[0] and operands[2].
2184 (neon_vtrn<mode>_insn): Likewise.
2185 (neon_vzip<mode>_insn): Likewise.
2187 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
2189 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
2190 ((X & C2) << C1): Expand to...
2191 (X {&,^,|} C2 << C1): ...This.
2192 ((X & C2) >> C1): Expand to...
2193 (X {&,^,|} C2 >> C1): ...This.
2195 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
2198 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
2199 Adjust embedded rounding/SAE specifier position.
2200 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
2201 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
2202 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
2203 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
2204 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
2206 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
2208 2015-10-09 Martin Jambor <mjambor@suse.cz>
2210 tree-optimization/67794
2211 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
2212 between types of state,ents but accept original definitions as a
2214 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
2215 iterate over definitions.
2217 2015-10-09 James Norris <jnorris@codesourcery.com>
2219 * config/rs6000/rs6000.c (rs6000_offload_options): New.
2220 (TARGET_OFFLOAD_OPTIONS): New.
2222 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
2225 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
2228 * function.c (expand_function_end): Move return value
2229 promotion past the handling of PARALLELs and CONCATs.
2231 PR rtl-optimization/67828
2232 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
2233 (tree_may_unswitch_on): Don't unswitch on expressions
2234 involving undefined values.
2236 2015-10-09 Richard Biener <rguenther@suse.de>
2238 * genmatch.c (print_operand): Fix formatting.
2239 (dt_node::append_simplify): Warn for multiple simplifiers
2240 that match the same pattern.
2241 * match.pd (log (exp @0)): Remove duplicates.
2243 2015-10-09 Richard Biener <rguenth@suse.de>
2246 * gimple-fold.c (optabs-query.h): Include
2247 (gimple_fold_builtin_memory_op): Allow unaligned stores
2248 when movmisalign_optabs are available.
2250 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2253 * config/arm/arm.md (movmisalign<mode>): New.
2254 * config/arm/iterators.md (HSI): New.
2256 2015-10-09 Richard Biener <rguenther@suse.de>
2258 PR tree-optimization/67891
2259 * gimple-match.h (gimple_simplified_result_is_gimple_val):
2261 (gimple_resimplify1): Declare.
2262 (gimple_resimplify2): Likewise.
2263 (gimple_resimplify3): Likewise.
2264 * gimple-match-head.c (gimple_resimplify1): Export.
2265 (gimple_resimplify2): Likewise.
2266 (gimple_resimplify3): Likewise.
2267 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
2268 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
2269 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
2270 to avoid creating stmts without VN info.
2272 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
2274 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
2277 2015-10-08 Jeff Law <law@redhat.com>
2279 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
2280 and release_ssa_name in two places.
2281 (gimple_stringop_fixed_value): Similarly.
2283 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
2286 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
2287 unlink_stmt_vdef and release_ssa_name_fn.
2289 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
2292 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
2294 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
2295 SSE register save area to 16 bytes only if the incoming stack
2296 boundary is no less than 16 bytes.
2298 2015-10-08 Jeff Law <law@redhat.com>
2300 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
2301 release_ssa_name. Fix typo in comment.
2303 2015-10-08 Nathan Sidwell <nathan@acm.org>
2305 * config/nvptx/nvptx.h (struct machine_function): Add comment.
2306 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
2307 may return pointer as well as in memory.
2308 (nvptx_output_return): Likewise.
2310 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
2312 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
2313 (fold_builtin_1): Update accordingly. Handle constant arguments here.
2314 * match.pd: Add rules previously handled by fold_builtin_sqrt
2315 and fold_builtin_cbrt.
2317 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
2319 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
2320 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
2321 * fold-const.h (tree_unary_nonnegative_warnv_p)
2322 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2323 (tree_expr_nonnegative_warnv_p): Add depth parameters.
2324 * fold-const.c: Include gimple-fold.h and params.h.
2325 (tree_ssa_name_nonnegative_warnv_p): New function.
2326 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
2327 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
2328 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
2329 Add a depth parameter and increment it for recursive calls to
2330 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
2331 to handle SSA names.
2332 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
2333 (gimple_stmt_nonnegative_warnv_p): Declare.
2334 * tree-vrp.c (remove_range_assertions): Remove assert that condition
2335 cannot be proven false.
2336 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
2337 (gimple_stmt_nonnegative_warnv_p): Move to...
2338 * gimple-fold.c: ...here. Add depth parameters and pass them
2339 down to the tree routines. Accept statements that aren't
2340 assignments or calls but just return false for them.
2341 (gimple_val_nonnegative_real_p): Delete.
2342 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
2343 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
2344 Check HONOR_NANs first.
2346 2015-10-08 Martin Jambor <mjambor@suse.cz>
2348 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
2351 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
2353 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
2354 in the tail of outer-loop.
2356 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
2358 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
2361 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
2363 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
2364 "cfghooks.h", add prototypes for introduced new functions.
2365 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
2366 checks on ability of loop unswitching to tree_unswitch_single_loop;
2367 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
2368 on innermost loop check.
2369 (tree_unswitch_single_loop): Add all required checks on ability of
2370 loop unswitching under zero recursive level guard.
2371 (tree_unswitch_outer_loop): New function.
2372 (find_loop_guard): Likewise.
2373 (empty_bb_without_guard_p): Likewise.
2374 (used_outside_loop_p): Likewise.
2375 (get_vop_from_header): Likewise.
2376 (hoist_guard): Likewise.
2377 (check_exit_phi): Likewise.
2379 2015-10-08 Marek Polacek <polacek@redhat.com>
2381 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
2384 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2387 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
2388 create_tmp_var_raw instead of create_tmp_var.
2390 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
2392 * expr.c (store_expr_with_bounds): Handle aggregate moves from
2394 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
2395 to define gimple type system; compare aggregates only by size.
2397 2015-10-07 Jeff Law <law@redhat.com>
2399 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
2400 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
2401 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
2404 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
2405 Sebastian Pop <s.pop@samsung.com>
2407 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
2408 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
2409 (generate_isl_schedule): Same.
2410 * graphite-optimize-isl.c (scop_get_domains): Same.
2411 (apply_schedule_map_to_scop): Same.
2412 * graphite-poly.c (print_iteration_domains): Same.
2413 (remove_gbbs_in_scop): Same.
2417 * graphite-poly.h (struct scop): Rename bbs to pbbs.
2419 * graphite-scop-detection.c (compare_bb_depths): Remove.
2420 (graphite_sort_dominated_info): Remove.
2421 (try_generate_gimple_bb): Move out of scop_detection.
2422 (all_non_dominated_preds_marked_p): Remove.
2423 (build_scop_bbs_1): Remove.
2424 (build_scop_bbs): Remove.
2425 (nb_pbbs_in_loops): Do not use SCOP_BBS.
2426 (find_scop_parameters): Same.
2427 (sese_dom_walker): Rename gather_bbs.
2428 (before_dom_children): Call try_generate_gimple_bb and collect gbb
2430 (build_scops): Call gather_bbs.
2431 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
2432 (add_conditions_to_constraints): Same.
2433 (build_scop_iteration_domain): Same.
2434 (build_scop_drs): Same.
2435 (new_pbb_from_pbb): Same.
2436 * sese.c (new_sese_info): Create bbs.
2437 * sese.h (struct sese_info_t): Add bbs.
2439 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
2441 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
2442 encoding in 64-bit mode.
2444 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
2447 * config/i386/i386.c (ix86_option_override_internal): Always use
2448 8-byte minimum stack boundary in 64-bit mode.
2449 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
2450 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
2451 Add a REG_CFA_EXPRESSION note if needed.
2452 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
2453 (ix86_handle_force_align_arg_pointer_attribute): New.
2454 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
2455 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
2456 with ix86_handle_force_align_arg_pointer_attribute.
2457 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
2459 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
2460 Sebastian Pop <s.pop@samsung.com>
2462 * graphite-scop-detection.c (parameter_index_in_region): Remove
2463 use of SESE_ADD_PARAMS.
2464 (find_scop_parameters): Same.
2465 * sese.c (new_sese_info): Same.
2466 * sese.h (struct sese_info_t): Remove add_params.
2467 (SESE_ADD_PARAMS): Remove.
2469 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
2470 Sebastian Pop <s.pop@samsung.com>
2472 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
2475 (copy_internal_parameters): Same.
2476 (translate_isl_ast_to_gimple): Use an sese_l.
2477 (build_iv_mapping): Same.
2478 * graphite-poly.c (new_sese): Rename new_sese_info.
2479 (free_sese): Rename free_sese_info.
2480 * graphite-poly.h (struct scop): Use an sese_info_p.
2481 (scop_set_region): Same.
2482 * graphite-scop-detection.c (struct sese_l): Moved...
2483 (get_entry_bb): Moved...
2484 (get_exit_bb): Moved...
2485 (parameter_index_in_region_1): Use an sese_info_p.
2486 (parameter_index_in_region): Same.
2487 (scan_tree_for_params): Same.
2488 (find_params_in_bb): Same.
2489 (sese_dom_walker): Use an sese_l.
2490 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
2491 (reduction_phi_p): Same.
2492 (parameter_index_in_region_1): Use an sese_info_p.
2493 (propagate_expr_outside_region): Use an sese_l.
2494 * graphite.c: Replace uses of SCOP_REGION.
2495 * sese.c (sese_record_loop): Use an sese_info_p.
2496 (build_sese_loop_nests): Same.
2497 (sese_build_liveouts_use): Same.
2498 (sese_build_liveouts_bb): Same.
2499 (sese_build_liveouts_bb): Same.
2500 (sese_bad_liveouts_use): Same.
2501 (sese_reset_debug_liveouts_bb): Same.
2502 (sese_build_liveouts): Same.
2503 (new_sese): Renamed new_sese_info.
2504 (free_sese): Renamed free_sese_info.
2505 (set_rename): Use an sese_info_p.
2506 (graphite_copy_stmts_from_block): Same.
2507 (copy_bb_and_scalar_dependences): Same.
2508 (outermost_loop_in_sese_1): Use an sese_l.
2509 (outermost_loop_in_sese): Same.
2510 (if_region_set_false_region): Use an sese_info_p.
2511 (move_sese_in_condition): Same.
2512 (scalar_evolution_in_region): Use an sese_l.
2513 * sese.h (struct sese_l): ... here.
2514 (SESE_ENTRY): Remove.
2515 (SESE_ENTRY_BB): Remove.
2516 (SESE_EXIT): Remove.
2517 (SESE_EXIT_BB): Remove.
2518 (sese_contains_loop): Use an sese_info_p.
2519 (sese_nb_params): Same.
2520 (bb_in_sese_p): Use an sese_l.
2521 (stmt_in_sese_p): Same.
2522 (defined_in_sese_p): Same.
2523 (loop_in_sese_p): Same.
2524 (sese_loop_depth): Same.
2525 (struct ifsese_s): Use an sese_info_p.
2526 (gbb_loop_at_index): Use an sese_l.
2527 (nb_common_loops): Same.
2528 (scev_analyzable_p): Same.
2530 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
2532 * config/i386/i386.c (ix86_conditional_register_usage): Use
2533 CALL_USED_REGISTERS_MASK.
2534 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
2536 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
2539 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
2540 * configure: Regenerated.
2542 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
2545 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
2546 (ix86_set_current_function): This.
2547 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
2549 2015-10-07 Richard Biener <rguenther@suse.de>
2551 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
2552 (vinfo_for_stmt): Adjust.
2553 (set_vinfo_for_stmt): Likewise.
2554 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
2555 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
2556 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
2558 (vect_analyze_loop_1): Remove.
2559 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
2560 inner loop when vectorizing an outer loop by splitting out from ...
2561 (vect_analyze_loop_form): ... here.
2563 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2566 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
2567 Use create_tmp_var_raw instead of create_tmp_var.
2569 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
2571 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
2572 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
2573 * real.c (CACHED_FRACTION): New helper macro.
2574 (dconst_third_ptr): Use it.
2575 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
2576 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
2578 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
2580 2015-10-06 Jeff Law <law@redhat.com>
2582 PR tree-optimization/67816
2583 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
2584 from remove_jump_threads_starting_at. Accept an edge rather than
2586 * tree-ssa-threadupdate.c (removed_edges): New hash table.
2587 (remove_jump_threads_including): Note edges that get removed from
2588 the CFG for later pruning of jump threading paths including them.
2589 (thread_through_all_blocks): Remove paths which include edges that
2591 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
2592 on each outgoing edges when optimizing away a control statement.
2594 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2596 * reorg.c (emit_delay_sequence): Store list of delay slot insns
2597 in a vector instead of rtx_insn_list.
2598 (add_to_delay_list): Likewise.
2599 (delete_from_delay_slot): Likewise.
2600 (optimize_skip): Likewise.
2601 (redirect_with_delay_list_safe_p): Likewise.
2602 (check_annul_list_true_false): Likewise.
2603 (steal_delay_list_from_target): Likewise.
2604 (steal_delay_list_from_fallthrough): Likewise.
2605 (redundant_insn): Likewise.
2606 (fill_simple_delay_slots): Likewise.
2607 (fill_slots_from_thread): Likewise.
2608 (fill_eager_delay_slots): Likewise.
2609 (relax_delay_slots): Likewise.
2611 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
2613 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
2614 For -mgpopt=local, also exclude unintialized common symbols.
2615 * doc/invoke.texi (Nios II Options): Document the change.
2617 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
2619 * config/aarch64/iterators.md (vwcore): Add missing cases for
2622 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2623 Sebastian Pop <s.pop@samsung.com>
2625 * graphite-poly.c (new_scop): Initialize drs.
2626 * graphite-poly.h (struct dr_info): New.
2627 (struct scop): Add drs.
2628 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
2629 (pdr_add_memory_accesses): Same.
2630 (build_poly_dr): Same.
2631 (build_alias_set): Same.
2632 (build_scop_drs): Same.
2633 (build_pbb_drs): Remove.
2634 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
2635 * tree-data-ref.h (data_reference): Remove alias_set.
2637 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2638 Sebastian Pop <s.pop@samsung.com>
2640 * graphite-poly.c (free_data_refs_aux): Remove.
2641 (free_gimple_poly_bb): Do not call free_data_refs_aux.
2642 * graphite-poly.h (struct base_alias_pair): Remove.
2643 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
2644 base_alias_pair and dr->aux.
2645 (build_alias_set): Same.
2646 * tree-data-ref.c (create_data_ref): Initialize alias_set.
2647 * tree-data-ref.h (data_reference): Add alias_set.
2649 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
2650 Sebastian Pop <s.pop@samsung.com>
2652 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
2653 Do not set PDR_BASE_OBJECT_SET.
2654 * graphite-poly.h (poly_dr): Same.
2655 (PDR_BASE_OBJECT_SET): Remove.
2656 (new_poly_dr): Update decl.
2657 * graphite-sese-to-poly.c (build_poly_dr): Update call to
2659 (write_alias_graph_to_ascii_dimacs): Remove.
2660 (write_alias_graph_to_ascii_dot): Remove.
2661 (write_alias_graph_to_ascii_ecc): Remove.
2662 (dr_same_base_object_p): Remove.
2663 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
2665 (build_base_obj_set_for_drs): Remove.
2666 (dump_alias_graphs): Remove.
2667 (build_scop_drs): Remove dead code.
2669 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
2670 Peter Bergner <bergner@vnet.ibm.com>
2673 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
2674 allow registers, but provide insns for the combiner to create for
2675 loads from memory. Separate VSX code from non-VSX code. For
2676 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
2677 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
2678 so that registers come before memory operations. Drop support from
2679 converting DFmode to TFmode, if the DFmode value is in a GPR
2681 (extenddftf2_fprs): Likewise.
2682 (extenddftf2_internal): Likewise.
2683 (extenddftf2_vsx): Likewise.
2684 (extendsftf2): In the expander, only allow registers, but provide
2685 insns for the combiner to create for stores and loads.
2687 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2689 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
2690 from the decl parameter.
2692 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
2695 * gimple-fold.c (gimple_fold_builtin): Add break after
2696 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
2698 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
2700 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
2701 to scop->isl_context.
2703 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
2705 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
2706 (output_probe_stack_range): Rotate the loop and simplify.
2707 (thumb1_expand_prologue): Tweak sorry message.
2708 * config/arm/arm.md (probe_stack): Use bare string.
2710 2015-10-06 Nick Clifton <nickc@redhat.com>
2712 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
2714 2015-10-06 Nick Clifton <nickc@redhat.com>
2716 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
2717 (ATTR_PERSIST): New constant.
2718 (msp430_data_attr): New function - verifies an attribute that only
2719 applies to variables.
2720 (msp430_attributes): Add noinit and persistent attributes.
2721 (noinit_section): New variable.
2722 (presis_section): New variable.
2723 (TARGET_ASM_INIT_SECTIONS): Define.
2724 (msp430_init_sections): New function - initialises the noinit and
2725 persist section variables.
2726 (msp430_select_section): Add support for noinit and persist
2728 (msp430_section_type_flags): Likewise.
2729 * doc/extend.texi: Document the reent, critical, wakeup, noinit
2730 and persistent attributes.
2732 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2733 Sebastian Pop <s.pop@samsung.com>
2735 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
2736 (no_violations): Remove.
2737 (subtract_commutative_associative_deps): Remove.
2738 (compute_deps): Do not call subtract_commutative_associative_deps.
2739 (transform_is_safe): Remove.
2740 (graphite_legal_transform): Remove.
2741 * graphite-poly.h (graphite_legal_transform): Remove.
2743 2015-10-05 Aditya Kumar <hiraditya@msn.com>
2745 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
2746 which are in this region are passed so gcc_assert and remove redundant
2748 * sese.c (sese_build_liveouts): Pass only those bbs which are not
2750 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
2751 gcc_assert on that and remove unnecessary computation.
2752 (sese_build_liveouts_use): Same.
2754 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2756 * graphite-dependences.c (scop_get_reads): Renamed scop->context
2757 to scop->param_context.
2758 (scop_get_must_writes): Same.
2759 (scop_get_may_writes): Same.
2760 (scop_get_original_schedule): Same.
2761 (scop_get_transformed_schedule): Same.
2762 (subtract_commutative_associative_deps): Same.
2763 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
2764 (generate_isl_context): Same.
2765 (generate_isl_schedule): Same.
2766 (scop_to_isl_ast): Same.
2767 (graphite_regenerate_ast_isl): Same.
2768 * graphite-optimize-isl.c (scop_get_domains): Same.
2769 (optimize_isl): Renamed scop->context to scop->param_context.
2770 * graphite-poly.c (new_poly_bb): Change the type of argument to
2772 (new_scop): Renamed scop->context to scop->param_context.
2774 (print_scop_context): Same.
2775 * graphite-poly.h (new_poly_dr): Change the type of argument from
2776 void* to data_reference_p.
2777 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
2778 (new_poly_bb): Change the type of argument from void* to
2780 (pbb_set_black_box): Same.
2781 (struct scop): Rename context to param_context, ctx to isl_context.
2782 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
2783 Move declarations closer to assignment.
2784 (find_params_in_bb): Same.
2785 (find_scop_parameters): Same.
2786 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
2787 Global to be used for statement IDs.
2788 (isl_id_for_pbb): Use ssa_name_version_typesize.
2789 (simple_copy_phi_p): Move declarations closer to assignment.
2790 (build_pbb_scattering_polyhedrons): Same.
2791 (build_scop_scattering): Same.
2792 (isl_id_for_ssa_name): Same.
2793 (extract_affine_name): Same.
2794 (extract_affine_int): Same.
2795 (extract_affine): Same.
2796 (set_scop_parameter_dim): Use renamed member.
2797 (build_loop_iteration_domains): Same.
2798 (add_param_constraints): Same.
2799 (build_scop_iteration_domain): Same.
2800 (pdr_add_data_dimensions): Same.
2801 (build_poly_dr): Same.
2802 (build_scop_drs): Move declarations closer to assignment.
2803 (analyze_drs_in_stmts): Same.
2804 (insert_out_of_ssa_copy): Same.
2805 (insert_out_of_ssa_copy_on_edge): Same.
2806 (propagate_expr_outside_region): Same.
2807 (rewrite_phi_out_of_ssa): Same.
2808 (rewrite_degenerate_phi): Same.
2809 (rewrite_reductions_out_of_ssa): Same.
2810 (rewrite_cross_bb_scalar_dependence): Same.
2811 (handle_scalar_deps_crossing_scop_limits): Same.
2812 (rewrite_cross_bb_scalar_deps): Same.
2813 * graphite.c (graphite_transform_loops): Use renamed member.
2815 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
2818 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
2819 create_tmp_var_raw instead of create_tmp_var.
2821 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2824 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
2825 Use create_tmp_var_raw instead of create_tmp_var.
2827 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
2830 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
2831 split for upper-bank registers when target does not support
2833 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
2834 split when target does not support AVX512VL.
2836 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
2839 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
2840 Adjust to use create_tmp_var_raw instead of create_tmp_var.
2842 2015-10-06 Nick Clifton <nickc@redhat.com>
2844 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
2847 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
2849 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
2850 (case ${target}): Add znver1.
2851 * config/i386/cpuid.h(bit_CLZERO): Define.
2852 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
2853 -march=native recognize znver1 processors.
2854 * config/i386/i386-c.c (ix86_target_macros_internal): Add
2855 znver1, clzero def_and_undef.
2856 * config/i386/i386.c (struct processor_costs znver1_cost): New.
2857 (m_znver1): New definition.
2858 (m_AMD_MULTIPLE): Includes m_znver1.
2859 (processor_target_table): Add znver1 entry.
2860 (ix86_target_string) : Add clzero entry.
2861 (static const char *const cpu_names): Add znver1 entry.
2862 (ix86_option_override_internal): Add znver1 instruction sets.
2863 (PTA_CLZERO) : New definition.
2864 (ix86_option_override_internal): Handle new clzerooption.
2865 (ix86_issue_rate): Add znver1.
2866 (ix86_adjust_cost): Add znver1.
2867 (ia32_multipass_dfa_lookahead): Add znver1.
2868 (has_dispatch): Add znver1.
2869 * config/i386/i386.h (TARGET_znver1): New definition.
2870 (TARGET_CLZERO): Define.
2871 (TARGET_CLZERO_P): Define.
2872 (struct ix86_size_cost): Add TARGET_ZNVER1.
2873 (enum processor_type): Add PROCESSOR_znver1.
2874 * config/i386/i386.md (define_attr "cpu"): Add znver1.
2875 (set_attr znver1_decode): New definitions for znver1.
2876 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
2878 * config/i386/mmx.md (set_attr znver1_decode): New definitions
2880 * config/i386/sse.md (set_attr znver1_decode): Likewise.
2881 * config/i386/x86-tune.def: Add znver1 tunings.
2882 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
2883 * gcc/doc/invoke.texi: Add details about znver1
2885 2015-10-06 Richard Biener <rguenther@suse.de>
2887 PR tree-optimization/67859
2888 * tree-ssa-pre.c (create_expression_by_pieces): Properly
2889 discard not inserted stmts.
2891 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
2893 * doc/extend.texi (Template Instantiation): Reorder options and
2894 de-emphasize -frepo.
2895 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
2896 example instead of -frepo.
2898 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
2901 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
2902 use create_tmp_var_raw rather than create_tmp_var.
2904 2015-10-06 Richard Biener <rguenther@suse.de>
2906 * tree-vectorizer.h (vec_info): New base class for...
2907 (_loop_vec_info): ... this and ...
2908 (_bb_vec_info): ... this.
2909 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
2910 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
2911 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
2912 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
2913 vect_destroy_datarefs): Adjust interface to take a vec_info *
2914 rather than both a loop_vec_info and a bb_vec_info argument.
2915 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
2916 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
2917 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
2918 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
2920 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
2921 (destroy_loop_vec_info, vect_analyze_loop_2,
2922 vect_is_simple_reduction_1, get_initial_def_for_induction,
2923 vect_create_epilog_for_reduction, vectorizable_reduction,
2924 vectorizable_live_operation, vect_transform_loop): Adjust.
2925 * tree-vect-patterns.c (type_conversion_p,
2926 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
2927 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
2928 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
2929 check_bool_pattern, vect_recog_bool_pattern,
2930 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
2931 * tree-vect-slp.c (vect_get_and_check_slp_defs,
2932 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
2933 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
2934 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
2935 (new_bb_vec_info): Initialize base classs.
2936 * tree-vect-stmts.c (record_stmt_cost, process_use,
2937 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
2938 vectorizable_mask_load_store, vectorizable_call,
2939 vectorizable_simd_clone_call, vectorizable_conversion,
2940 vectorizable_assignment, vectorizable_shift,
2941 vectorizable_operation, vectorizable_store,
2942 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
2943 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
2944 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
2946 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
2949 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
2950 create_tmp_var_raw rather than create_tmp_var.
2952 2015-10-05 Marek Polacek <polacek@redhat.com>
2954 * tree-ssa-loop-im.c
2955 (move_computations_dom_walker::before_dom_children): Don't set
2956 SSA_NAME_ANTI_RANGE_P.
2957 * tree-ssa-phiopt.c (value_replacement): Likewise.
2959 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2960 Sebastian Pop <s.pop@samsung.com>
2962 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
2964 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2965 Sebastian Pop <s.pop@samsung.com>
2967 * graphite-poly.c (new_gimple_poly_bb): ... here.
2968 (free_data_refs_aux): ... here.
2969 (free_gimple_poly_bb): ... here.
2970 (remove_gbbs_in_scop): ... here.
2971 (new_scop): Call new_sese.
2972 (free_scop): Call remove_gbbs_in_scop and free_sese.
2973 * graphite-poly.h (base_alias_pair): ... here.
2974 (new_gimple_poly_bb): Declare.
2975 (free_gimple_poly_bb): Declare.
2976 * graphite-scop-detection.c (parameter_index_in_region_1):
2977 (parameter_index_in_region): ... here.
2978 (scan_tree_for_params): ... here.
2979 (find_params_in_bb): ... here.
2980 (find_scop_parameters): ... here.
2981 (build_scops): Call find_scop_parameters.
2982 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
2983 (free_scops): Move...
2984 (single_pred_cond_non_loop_exit): Move...
2985 (sese_dom_walker::before_dom_children): Move...
2986 (sese_dom_walker::after_dom_children): Move...
2987 (build_poly_scop): Move...
2988 * graphite-sese-to-poly.h (base_alias_pair): Move...
2989 * graphite.c (free_scops): ... here.
2991 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
2992 Sebastian Pop <s.pop@samsung.com>
2994 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
2995 (trivially_empty_bb_p): Move...
2996 (same_close_phi_node): Move...
2997 (new_gimple_poly_bb): Move...
2998 (compare_bb_depths): Move...
2999 (graphite_sort_dominated_info): Move...
3000 (remove_duplicate_close_phi): Move...
3001 (make_close_phi_nodes_unique): Move...
3002 (canonicalize_loop_closed_ssa): Move...
3003 (canonicalize_loop_closed_ssa_form): Move...
3004 (loop_ivs_can_be_represented): Move...
3005 (single_pred_cond_non_loop_exit): Move...
3006 (graphite_can_represent_init): Move...
3007 (graphite_can_represent_scev): Move...
3008 (stmt_has_simple_data_refs_p): Move...
3009 (stmt_has_side_effects): Move...
3010 (graphite_can_represent_stmt): Move...
3011 (scop_detection): ... here.
3012 (sese_dom_walker): ... and here.
3013 (build_scops): Call all moved functions.
3014 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
3015 (all_non_dominated_preds_marked_p): Move...
3016 (build_scop_bbs_1): Move...
3017 (build_scop_bbs): Move...
3018 (set_scop_parameter_dim): Move...
3019 (nb_pbbs_in_loops): Move...
3020 (build_poly_scop): Do not call all the moved functions.
3022 2015-10-05 Martin Jambor <mjambor@suse.cz>
3023 Jan Hubicka <hubicka@ucw.cz>
3025 * ipa-cp.c (ipcp_alignment_lattice): New type.
3026 (ipcp_param_lattices): Use the above to represent alignment.
3027 (ipcp_alignment_lattice::print): New function.
3028 (print_all_lattices): Use it to print alignment information.
3029 (ipcp_alignment_lattice::top_p): New function.
3030 (ipcp_alignment_lattice::bottom_p): Likewise.
3031 (ipcp_alignment_lattice::set_to_bottom): Likewise.
3032 (ipcp_alignment_lattice::meet_with_1): Likewise.
3033 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
3034 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
3035 (initialize_node_lattices): Likewise.
3036 (propagate_alignment_accross_jump_function): Work with the new class
3037 for alignment lattices.
3038 (propagate_constants_accross_call): Pass only the alignment lattice to
3039 propagate_alignment_accross_jump_function.
3040 (ipcp_store_alignment_results): Work with the new class for alignment
3043 2015-10-05 Marek Polacek <polacek@redhat.com>
3045 PR tree-optimization/67821
3046 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
3048 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
3051 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
3053 (mkoffload_cleanup): ... this. Adjust all users.
3054 (maybe_unlink): Look at save_temps and verbose flags instead of
3056 (main): Parse "-save-temps" flag.
3057 (generate_target_descr_file, generate_target_offloadend_file)
3058 (generate_host_descr_file, prepare_target_image): Pass it on.
3059 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
3060 (mkoffload_cleanup): New function.
3061 (maybe_unlink): Look at save_temps and verbose flags instead of
3063 (main): Instead of calling utils_cleanup, register atexit handler
3064 for mkoffload_cleanup.
3065 (main): Parse "-save-temps" flag.
3066 (compile_native, main): Pass it on.
3067 * lto-wrapper.c (compile_offload_image): Likewise.
3069 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3071 * gimple.h (gimple_op_ptr): Require a non const gimple *.
3072 (gimple_assign_lhs_ptr): Likewise.
3073 (gimple_assign_rhs1_ptr): Likewise.
3074 (gimple_assign_rhs2_ptr): Likewise.
3075 (gimple_assign_rhs3_ptr): Likewise.
3076 (gimple_call_lhs_ptr): Likewise.
3077 (gimple_call_fn_ptr): Likewise.
3078 (gimple_call_chain_ptr): Likewise.
3079 (gimple_call_arg_ptr): Likewise.
3080 (gimple_cond_lhs_ptr): Likewise.
3081 (gimple_cond_rhs_ptr): Likewise.
3082 (gimple_switch_index_ptr): Likewise.
3083 (gimple_return_retval_ptr): Likewise.
3085 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3087 * gimple.h (gimple_asm_input_op_ptr): Remove.
3088 (gimple_asm_output_op_ptr): Likewise.
3090 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3092 * gimple.h (gimple_location_ptr): Remove.
3093 * tree-vrp.c (check_all_array_refs): Adjust.
3095 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3097 * tree-ssa-operands.c (build_uses): store tree * instead of
3099 (finalize_ssa_uses): Adjust.
3100 (append_use): Likewise.
3101 (verify_ssa_operands): Likewise.
3103 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3105 * real.h (build_real_truncate): Declare.
3106 * tree.c (build_real_truncate): New function.
3107 (strip_float_extensions): Use it.
3108 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
3109 (fold_builtin_hypot, fold_builtin_pow): Likewise.
3110 * match.pd: Likewise.
3112 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
3113 Jiong Wang <jiong.wang@arm.com>
3115 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
3117 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3119 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
3120 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
3121 (aarch64_print_operand, aarch64_float_const_representable_p)
3122 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
3123 instead of REAL_VALUE_FROM_CONST_DOUBLE.
3124 * config/arc/arc.c (arc_print_operand): Likewise.
3125 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
3126 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
3127 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
3129 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
3130 (consttable_16): Likewise.
3131 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
3132 * config/avr/avr.c (avr_print_operand): Likewise.
3133 * config/bfin/bfin.md: Likewise (in a define_split).
3134 * config/c6x/c6x.md: Likewise (in a define_split).
3135 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
3136 (cr16_print_operand): Likewise.
3137 * config/cris/cris.c (cris_print_operand): Likewise.
3138 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
3139 * config/fr30/fr30.c (fr30_print_operand): Likewise.
3140 (fr30_const_double_is_zero): Likewise.
3141 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
3142 * config/frv/frv.md: Likewise (in a define_split).
3143 * config/frv/predicates.md (int_2word_operand): Likewise.
3144 * config/h8300/h8300.c (h8300_print_operand): Likewise.
3145 * config/i386/i386.c (standard_80387_constant_p): Likewise.
3146 (ix86_print_operand, ix86_split_to_parts): Likewise.
3147 * config/i386/i386.md: Likewise (in a define_split).
3148 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
3149 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
3150 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
3151 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
3152 (print_operand): Likewise.
3153 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
3154 * config/mep/mep.md: Likewise (in define_split).
3155 * config/microblaze/microblaze.c (microblaze_const_double_ok)
3156 (print_operand): Likewise.
3157 * config/mips/mips.md (consttable_float): Likewise.
3158 * config/mmix/mmix.c (mmix_intval): Likewise.
3159 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
3160 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
3161 * config/pa/pa.c (pa_singlemove_string): Likewise.
3162 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
3163 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
3164 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
3165 (output_toc): Likewise.
3166 * config/rs6000/rs6000.md: Likewise (in define_splits).
3167 * config/rx/rx.c (rx_print_operand): Likewise.
3168 * config/s390/s390.c (s390_output_pool_entry): Likewise.
3169 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3170 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
3171 (and also in define_splits).
3172 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
3173 (fp_high_losum_p): Likewise.
3174 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
3175 (*movsf_high): Likewise.
3176 * config/spu/spu.c (const_double_to_hwint): Likewise.
3177 * config/v850/v850.c (const_double_split): Likewise.
3178 * config/vax/vax.c (vax_float_literal): Likewise.
3179 * config/visium/visium.c (visium_expand_copysign): Likewise.
3180 * config/visium/visium.md: Likewise (in define_split).
3181 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3182 * config/xtensa/xtensa.c (print_operand): Likewise.
3183 (xtensa_output_literal): Likewise.
3184 * cprop.c (implicit_set_cond_p): Likewise.
3185 * dwarf2out.c (insert_float): Likewise.
3186 * expmed.c (expand_mult, make_tree): Likewise.
3187 * expr.c (compress_float_constant): Likewise.
3188 * rtlanal.c (split_double): Likewise.
3189 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3190 (simplify_const_unary_operation, simplify_binary_operation_1)
3191 (simplify_const_binary_operation): Likewise.
3192 (simplify_const_relational_operation): Likewise.
3193 * varasm.c (output_constant_pool_2): Likewise.
3195 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3197 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
3198 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3199 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
3200 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
3201 instead of CONST_DOUBLE_FROM_REAL_VALUE.
3202 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
3203 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
3204 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
3205 (ix86_emit_swsqrtsf): Likewise.
3206 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
3207 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
3208 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
3209 * config/pa/pa.c (pa_expand_builtin): Likewise.
3210 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
3211 (rs6000_scale_v2df): Likewise.
3212 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
3213 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
3214 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
3215 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
3216 (vec_ctul): Likewise.
3217 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
3218 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
3219 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
3220 * cse.c (fold_rtx): Likewise.
3221 * emit-rtl.c (immed_double_const): Likewise (in comments).
3222 (init_emit_once): Likewise.
3223 * expr.c (compress_float_constant, expand_expr_real_1)
3224 (const_vector_from_tree): Likewise.
3225 * optabs.c (expand_float, expand_fix): Likewise.
3226 * reg-stack.c (reg_to_stack): Likewise.
3227 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
3228 (simplify_const_unary_operation, simplify_binary_operation_1)
3229 (simplify_const_binary_operation, simplify_relational_operation)
3230 (simplify_immed_subreg): Likewise.
3232 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3234 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
3235 * doc/tm.texi: Regenerate.
3236 * real.h (REAL_ARITHMETIC): Delete.
3237 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
3238 (ix86_expand_round_sse4): Use real_arithmetic instead of
3240 * config/i386/sse.md (round<mode>2): Likewise.
3241 * rtl.h (rtx_to_tree_code): Likewise (in comment).
3242 * explow.c (rtx_to_tree_code): Likewise (in comment).
3243 * match.pd: Likewise.
3244 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3245 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3246 (expand_pow_as_sqrts): Likewise.
3247 * tree-pretty-print.c (dump_generic_node): Remove code that
3248 was conditional on REAL_ARITHMETIC being undefined.
3250 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3252 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
3253 * doc/tm.texi: Regenerate.
3254 * real.h (real_less): Declare.
3255 (REAL_VALUES_LESS): Delete.
3256 * real.c (real_less): New function.
3257 (real_compare): Use it.
3258 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
3259 of REAL_VALUES_LESS.
3260 * config/microblaze/microblaze.c (microblaze_const_double_ok):
3262 * fold-const.c (fold_convert_const_int_from_real): Likewise.
3263 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
3264 (simplify_const_relational_operation): Likewise.
3265 * tree-call-cdce.c (check_pow): Likewise.
3266 (gen_conditions_for_pow_cst_base): Likewise.
3268 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3270 * real.h (REAL_VALUES_IDENTICAL): Delete.
3271 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
3272 instead of REAL_VALUES_IDENTICAL.
3273 * fold-const.c (operand_equal_p): Likewise.
3274 * ipa-icf.c (sem_variable::equals): Likewise.
3275 * tree-complex.c (some_nonzerop): Likewise.
3276 (expand_complex_multiplication): Likewise.
3277 * tree.c (simple_cst_equal): Likewise.
3278 * varasm.c (compare_constant): Likewise.
3280 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
3282 * real.h (real_equal): Declare.
3283 (REAL_VALUES_EQUAL): Delete.
3284 * real.c (real_equal): New function.
3285 (real_compare): Use it.
3286 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
3287 * doc/tm.texi: Regenerate.
3288 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
3289 real_equal instead of REAL_VALUES_EQUAL.
3290 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
3291 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
3292 (fp_const_from_val): Likewise.
3293 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
3294 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
3295 (floating_exact_log2): Likewise.
3296 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
3297 * config/vax/vax.c (vax_float_literal): Likewise.
3298 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
3299 * cprop.c (implicit_set_cond_p): Likewise.
3300 * expmed.c (expand_mult): Likewise.
3301 * fold-const.c (const_binop): Likewise.
3302 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
3303 (simplify_const_binary_operation): Likewise.
3304 (simplify_const_relational_operation): Likewise.
3305 * tree-call-cdce.c (check_pow): Likewise.
3306 (gen_conditions_for_pow_cst_base): Likewise.
3307 * tree-inline.c (estimate_num_insns): Likewise.
3308 * tree-ssa-dom.c (record_equality): Likewise.
3309 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
3310 (gimple_expand_builtin_pow): Likewise.
3311 (pass_optimize_widening_mul::execute): Likewise.
3312 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
3313 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3314 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
3316 2015-10-05 Richard Biener <rguenther@suse.de>
3319 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
3320 consider loop header PHI defs as IVs.
3322 2015-10-05 Richard Biener <rguenther@suse.de>
3324 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
3326 (create_expression_by_pieces): ... here and build GIMPLE
3327 calls directly. Use gimple_build API and avoid force_gimple_operand.
3328 (insert_into_preds_of_block): Simplify.
3329 (do_regular_insertion): Add comment.
3331 2015-10-04 Jason Merrill <jason@redhat.com>
3333 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
3335 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
3337 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
3338 check for general register.
3339 (ix86_emit_save_regs): Ditto.
3340 (ix86_emit_save_regs_using_mov): Ditto.
3341 (ix86_emit_restore_regs_using_pop): Ditto.
3342 (ix86_emit_restore_regs_using_mov): Ditto.
3344 2015-10-03 Marek Polacek <polacek@redhat.com>
3346 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
3347 (insn-dfatab.o): Likewise.
3349 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
3351 * config.gcc (xtensa*-*-uclinux*): New configuration.
3352 * config/xtensa/uclinux.h: New file.
3353 * config/xtensa/uclinux.opt: New file.
3355 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
3357 * doc/cpp.texi (Standard Predefined Macros): Document value of
3358 __cplusplus for C++14.
3360 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
3362 * gcc.c (process_command): Use spec_machine rather than
3363 spec_host_machine to build tooldir_prefix2.
3365 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
3366 Bernd Schmidt <bernds@codesourcery.com>
3368 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
3369 (Token, Stmt): Remove structs.
3370 (decls, vars, fns): Remove variables.
3371 (alloc_comment, append_stmt, is_keyword): Remove macros.
3372 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
3373 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
3374 (parse_init, parse_file): Remove functions.
3375 (read_file): Accept a pointer to a length and store into it.
3376 (process): Don't try to parse the input file, just write it out as
3377 a string, but looking for maps. Also write out the length.
3378 (main): Don't use "-S" to compile PTX code.
3380 2015-10-02 Jeff Law <law@redhat.com>
3382 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
3385 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
3388 * config/nvptx/mkoffload.c (main): Scan the argument vector for
3389 -fopenmp, and skip generating an offloading image if specified.
3391 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
3393 * system.h (ROUND_UP): New macro definition.
3394 (ROUND_DOWN): Ditto.
3395 * ggc-page.c (ROUND_UP): Remove local macro definition.
3396 (PAGE_ALIGN): Implement using ROUND_UP macro.
3398 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
3399 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
3401 (ix86_compute_frame_layout): Ditto.
3402 (ix86_expand_prologue): Ditto.
3403 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
3404 to round down values.
3405 (expand_set_or_movmem_via_rep): Ditto.
3407 2015-10-02 Marek Polacek <polacek@redhat.com>
3409 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
3411 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
3413 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
3414 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
3415 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
3416 (free_gimple_bb): Renamed free_gimple_poly_bb.
3417 (try_generate_gimple_bb): Hoist loop invariant code.
3418 (analyze_drs_in_stmts): Same.
3419 (build_scop_drs): Call renamed functions.
3420 (new_pbb_from_pbb): Same.
3421 (scop_ivs_can_be_represented): Delete as functionality now moved to
3422 graphite-scop-detection.c
3423 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
3425 2015-10-02 Aditya Kumar <hiraditya@msn.com>
3427 * graphite-scop-detection.c (stmt_has_side_effects): New function
3428 outlined from stmt_simple_for_scop_p.
3429 (graphite_can_represent_stmt): Same.
3430 (stmt_simple_for_scop_p): Moved code out of this function for better
3433 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
3435 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
3437 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
3439 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3441 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
3443 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
3445 PR rtl-optimization/67756
3446 * lra-constraints.c (match_reload): Add a new parameter. Use it
3447 for creating a pseudo with the same value.
3448 (curr_insn_transform): Pass a new argument to match_reload.
3450 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
3452 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
3453 (expand_vec_perm_even_odd_1): Handle V64QImode.
3454 (ix86_expand_vec_perm_const_1): Try expansion with
3455 expand_vec_perm_even_odd_trunc as well.
3456 * config/i386/sse.md (VI124_AVX512F): Rename to ...
3457 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
3459 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
3460 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
3462 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
3463 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
3464 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
3465 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
3466 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
3467 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
3469 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
3471 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
3472 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
3474 2015-10-02 Jason Merrill <jason@redhat.com>
3477 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
3478 (diagnose_tm_1_op): Also diagnose volatile accesses in
3479 transaction_safe function.
3481 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
3483 * system.h (malloc.h): Don't include obsolete header.
3485 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3487 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
3488 (TLS_SECTION_ASM_FLAG): Delete.
3490 2015-10-02 Marek Polacek <polacek@redhat.com>
3493 * doc/invoke.texi: Document -Wduplicated-cond.
3494 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
3495 (insn-dfatab.o): Likewise.
3496 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
3499 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
3501 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
3504 2015-10-02 Renlin Li <renlin.li@arm.com>
3506 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
3508 2015-10-02 Renlin Li <renlin.li@arm.com>
3511 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
3513 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3515 PR rtl-optimization/67786
3516 PR rtl-optimization/67787
3517 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
3518 it modifies a reg used in the condition calculation.
3520 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
3522 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
3523 alternatives for reads from memory and moves from general-purpose
3525 (*aarch64_combinez_be<mode>): Likewise.
3527 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
3530 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
3531 selectany within this function without need to keep attribute.
3532 (i386_pe_encode_section_info): Remove selectany-code.
3534 2015-10-02 Richard Biener <rguenther@suse.de>
3536 * tree-ssa-sccvn.c (has_VN_INFO): New function.
3537 (free_scc_vn): Use it.
3538 (visit_use): Remove dead code and refactor to use gassign
3539 and use less indentation.
3541 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3545 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
3546 (rs6000_cannot_copy_insn_p): New function.
3547 * config/rs6000/rs6000.md (cannot_copy): New attribute.
3548 (load_toc_v4_PIC_1_normal): Set cannot_copy.
3549 (load_toc_v4_PIC_1_476): Ditto.
3551 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
3553 * graphite-scop-detection.c (struct sese_l): New conversion constructor
3554 so that this type can be pushed into a vec.
3555 (class scop_builder): use sese_l to collect scops.
3556 (get_scops): New getter function.
3557 (remove_intersecting_scops): Use sese_l instead of scops_p.
3561 (remove_subscops): Same.
3562 (build_scops): Add scops to vec<scops_p> once all the scops have been
3565 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
3567 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
3568 Renamed type from gimple_bb_p to gimple_poly_bb_p.
3569 (translate_isl_ast_node_user): Same.
3570 * graphite-poly.c (new_poly_bb): Same.
3571 * graphite-poly.h (gbb_from_bb): Same.
3573 * graphite-sese-to-poly.c (new_gimple_bb):
3574 gimple_bb_p -> gimple_poly_bb_p
3575 (build_scop_scattering): Same.
3576 (find_params_in_bb): Same.
3577 (add_conditions_to_domain): Same.
3578 (sese_dom_walker::before_dom_children): Same.
3579 (analyze_drs_in_stmts): Same.
3580 (new_pbb_from_pbb): Same.
3581 (free_data_refs_aux): New pointer to type base_alias_pair.
3582 * graphite-sese-to-poly.h: Same.
3583 * sese.c (if_region_set_false_region): Fixed Indentation.
3584 (move_sese_in_condition): Same.
3586 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3587 Aditya Kumar <aditya.k7@samsung.com>
3589 PR tree-optimization/66980
3590 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
3591 when data reference analysis has failed.
3593 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3594 Aditya Kumar <aditya.k7@samsung.com>
3596 PR tree-optimization/67754
3597 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
3598 scev analysis on the same loop nest as analyze_drs_in_stmts.
3599 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
3601 (try_generate_gimple_bb): Call outermost_loop_in_sese.
3602 (analyze_drs_in_stmts): Same.
3603 * sese.c (outermost_loop_in_sese): ...here.
3605 2015-10-01 Sebastian Pop <s.pop@samsung.com>
3606 Aditya Kumar <aditya.k7@samsung.com>
3608 PR tree-optimization/67754
3609 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
3610 recursion on the inner loops.
3612 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3614 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
3615 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
3616 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
3617 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
3618 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
3620 2015-10-01 Marek Polacek <polacek@redhat.com>
3623 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
3624 create_tmp_var_raw rather than create_tmp_var.
3626 2015-10-01 Marek Polacek <polacek@redhat.com>
3628 PR tree-optimization/67769
3629 * tree-ssa-phiopt.c (conditional_replacement): Call
3630 reset_flow_sensitive_info_in_bb.
3631 (minmax_replacement): Likewise.
3632 (abs_replacement): Likewise.
3634 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
3636 * builtins.c: Don't include gomp-constants.h.
3637 (fold_builtin_1): Don't fold acc_on_device here.
3638 * gimple-fold.c: Include gomp-constants.h.
3639 (gimple_fold_builtin_acc_on_device): New.
3640 (gimple_fold_builtin): Call it.
3642 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
3644 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
3645 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
3647 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
3649 * config/arm/aarch-common-protos.h
3650 (aarch_accumulator_forwarding): New.
3651 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3652 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
3653 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
3654 * config/arm/cortex-a53.md: Rewrite.
3656 2015-10-01 Richard Biener <rguenther@suse.de>
3658 * gimple-match.h (mprts_hook): Declare.
3659 * gimple-match.head.c (mprts_hook): Define.
3660 (maybe_push_res_to_seq): Use new hook.
3661 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
3662 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
3663 (vn_ssa_aux::has_constants): Remove.
3664 * tree-ssa-sccvn.c: Include gimple-match.h.
3665 (VN_INFO_GET): Assert we don't re-use SSA names.
3666 (vn_get_expr_for): Remove.
3667 (expr_has_constants): Likewise.
3668 (stmt_has_constants): Likewise.
3669 (simplify_binary_expression): Likewise.
3670 (simplify_unary_expression): Likewise.
3671 (vn_lookup_simplify_result): New hook.
3672 (visit_copy): Adjust.
3673 (visit_reference_op_call): Likewise.
3674 (visit_phi): Likewise.
3675 (visit_use): Likewise.
3676 (process_scc): Likewise.
3677 (init_scc_vn): Likewise.
3678 (visit_reference_op_load): Likewise. Use match-and-simplify and
3679 a gimple seq for inserted expressions.
3680 (try_to_simplify): Remove GENERIC stmt combining code.
3681 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
3682 * tree-ssa-pre.c (eliminate_insert): Adjust.
3683 (eliminate_dom_walker::before_dom_children): Likewise.
3685 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3687 * doc/invoke.texi (Optimization Options): Add
3688 -freorder-blocks-algorithm=.
3689 (Optimize Options) <-O>: Add -freorder-blocks.
3690 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
3691 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
3692 <-freorder-blocks>: Also enabled at levels -O and -Os.
3693 <-freorder-blocks-algorithm=>: Document new option.
3695 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3697 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
3698 with flag_reorder_blocks_algorithm.
3699 * common.opt (freorder-blocks-algorithm=): New flag.
3700 (reorder_blocks_algorithm): New enum.
3701 * flag-types.h (reorder_blocks_algorithm): New enum.
3702 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
3703 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
3705 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3707 * bb-reorder.c: Add intro comment.
3708 (reorder_basic_blocks_software_trace_cache): Print a header to
3710 (edge_order): New function.
3711 (reorder_basic_blocks_simple): New function.
3712 (reorder_basic_blocks): Choose between the STC and the simple
3713 algorithms (always choose the former).
3715 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
3717 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
3718 function, factored out from ...
3719 (reorder_basic_blocks): ... here.
3721 2015-10-01 Tom de Vries <tom@codesourcery.com>
3723 * tree-cfg.c (dump_function_to_file): Dump function attributes using
3724 __attribute__(()) string. Move dumping of function attributes to before
3727 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
3730 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
3731 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
3732 based on gold linker version.
3733 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
3734 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
3735 * configure, config.in: Regenerate.
3737 2015-10-01 Alan Modra <amodra@gmail.com>
3739 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
3740 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
3741 (rs6000_output_mi_thunk): Likewise.
3743 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
3745 * config/nvptx/mkoffload.c (process): Change offload data format.
3747 2015-09-30 Jeff Law <law@redhat.com>
3749 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
3750 with constant conditions.
3751 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
3752 (remove_ctrl_stmt_and_useless_edges): No longer static.
3753 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
3754 (remove_ctrl_stmt_and_useless_edges): Likewise.
3756 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
3757 Cesar Philippidis <cesar@codesourcery.com>
3759 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
3760 (TARGET_GOACC_VALIDATE_DIMS): Override.
3761 * target.def (TARGET_GOACC): New target hook prefix.
3762 (validate_dims): New hook.
3763 * targhooks.h (default_goacc_validate_dims): New.
3764 * omp-low.c (oacc_validate_dims): New.
3765 (execute_oacc_device_lower): New.
3766 (default_goacc_validate_dims): New.
3767 (pass_data_oacc_device_lower): New.
3768 (pass_oacc_device_lower): New pass.
3769 (make_pass_oacc_device_lower): New.
3770 * tree-pass.h (make_pass_oacc_device_lower): Declare.
3771 * passes.def (pass_oacc_device_lower): Add it.
3772 * doc/tm.texi: Rebuilt.
3773 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
3774 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
3776 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
3778 PR rtl-optimization/67037
3779 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
3781 2015-09-30 Bernd Schmidt <bernds@redhat.com>
3783 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
3784 * passes.c: Include tree-ssanames.h.
3785 (execute_function_todo): Flush the pending free SSA_NAMEs after
3786 eliminating unreachable basic blocks.
3787 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
3788 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
3789 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
3790 (flush_ssanames_freelist): New function.
3791 (release_ssaname_fn): Put released names on the queue.
3792 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
3793 * tree-ssanames.h (flush_ssanames_freelist): Declare.
3795 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
3797 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
3798 (generate_target_descr_file, generate_target_offloadend_file)
3799 (generate_host_descr_file, prepare_target_image): Pass it on.
3800 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
3801 (compile_native, main): Pass it on.
3802 * lto-wrapper.c (compile_offload_image): Likewise.
3804 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
3805 Ilya Verbin <ilya.verbin@intel.com>
3806 Andrey Turetskiy <andrey.turetskiy@intel.com>
3808 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
3809 (prepare_target_image, main): Refactor argv building to use
3812 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3814 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
3815 * config/spu/spu.c (spu_expand_atomic_op): New function.
3816 * config/spu/spu.md (AINT): New mode iterator.
3817 (ATOMIC): New code iterator.
3818 (atomic_name, atomic_pred): New code predicates.
3819 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
3820 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
3821 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
3822 "atomic_<atomic_name>_fetch<mode>"): Likewise.
3824 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
3826 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
3828 (scalar_chain::convert_reg): Likewise.
3830 2015-09-30 Richard Biener <rguenther@suse.de>
3832 * builtins.c: Add comment that no new simplifications should
3835 2015-09-30 Marek Polacek <polacek@redhat.com>
3837 PR tree-optimization/67690
3838 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
3839 reset_flow_sensitive_info_in_bb.
3840 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
3841 * tree-ssanames.c: Include "gimple-iterator.h".
3842 (reset_flow_sensitive_info_in_bb): New function.
3843 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
3845 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
3847 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
3848 variable, replacing it with...
3849 (offload_abi): ... this new variable. Adjust all users.
3850 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
3852 2015-09-30 Matthias Klose <doko@ubuntu.com>
3854 * configure.ac: Remove extraneous ;;.
3855 * configure: Regenerate.
3857 2015-09-29 James Bowman <james.bowman@ftdichip.com>
3859 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
3860 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
3861 predicate, disallow register for operand 2.
3863 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
3865 * graphite-dependences.c (scop_get_dependences): Moved in down
3866 in order to be visible to its caller.
3867 * graphite-poly.h: Removed compute_deps, and extend_schedule.
3869 2015-09-29 Sebastian Pop <s.pop@samsung.com>
3870 Aditya Kumar <aditya.k7@samsung.com>
3872 PR tree-optimization/67754
3873 * graphite-optimize-isl.c (optimize_isl): Call
3874 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
3876 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
3878 * builtins.c (expand_builtin_acc_on_device): Delete.
3879 (expand_builtin): Don't call it.
3880 (fold_builtin_1): Fold acc_on_device.
3882 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
3884 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
3885 (ix86_nsaved_sseregs): Likewise.
3887 2015-09-29 Jeff Law <law@redhat.com>
3889 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
3890 computation of unused value.
3892 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
3893 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
3894 inline macro expansion.
3896 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
3898 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
3899 (gen_shl_sext): Likewise.
3900 * config/sh/sh.md (divsi3): Likewise.
3901 (imm->ext_dest_operand splitter): Likewise.
3903 2015-09-29 Sebastian Pop <s.pop@samsung.com>
3904 Aditya Kumar <aditya.k7@samsung.com>
3906 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
3907 (nb_data_writes_in_bb): Remove.
3908 (split_pbb): Remove.
3909 (split_reduction_stmt): Remove.
3910 (is_reduction_operation_p): Remove.
3911 (phi_contains_arg): Remove.
3912 (follow_ssa_with_commutative_ops): Remove.
3913 (detect_commutative_reduction_arg): Remove.
3914 (detect_commutative_reduction_assign): Remove.
3915 (follow_inital_value_to_phi): Remove.
3916 (edge_initial_value_for_loop_phi): Remove.
3917 (initial_value_for_loop_phi): Remove.
3918 (used_outside_reduction): Remove.
3919 (detect_commutative_reduction): Remove.
3920 (translate_scalar_reduction_to_array_for_stmt): Remove.
3921 (remove_phi): Remove.
3922 (dr_indices_valid_in_loop): Remove.
3923 (close_phi_written_to_memory): Remove.
3924 (translate_scalar_reduction_to_array): Remove.
3925 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
3926 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
3927 (rewrite_commutative_reductions_out_of_ssa): Remove.
3928 (build_poly_scop): Remove call to
3929 rewrite_commutative_reductions_out_of_ssa.
3931 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
3933 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
3934 Add new insn types for vector load and store pairs.
3935 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
3936 types "neon_ldp{,_q}".
3937 * config/arm/cortex-a57.md (neon_load_c): Add insn types
3939 (neon_store_complex): Add insn types "neon_stp{,_q}".
3940 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
3943 2015-09-29 Jeff Law <law@redhat.com>
3945 * config/rx/constraints.md (Int08): Fix undefined left shift
3947 (Sint08, Sint16, Sint24): Likewise.
3948 * config/rx/rx.c (rx_get_stack_layout): Likewise.
3950 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
3953 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
3954 left shift behaviour.
3955 * config/msp430/constraints.md ('L' constraint): Similarly.
3956 ('Ys' constraint): Similarly.
3958 2015-09-29 Richard Biener <rguenther@suse.de>
3960 PR tree-optimization/67170
3961 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
3962 the translate function pointer parameter to get the
3963 bool whether to disambiguate only by reference.
3964 (walk_non_aliased_vuses): Likewise.
3965 * tree-ssa-alias.c (maybe_skip_until): Adjust.
3966 (get_continuation_for_phi_1): Likewise.
3967 (get_continuation_for_phi): Likewise.
3968 (walk_non_aliased_vuses): Likewise.
3969 * tree-ssa-sccvn.c (const_parms): New bitmap.
3970 (vn_reference_lookup_3): Adjust for interface change.
3971 Disambiguate parameters pointing to readonly memory.
3972 (free_scc_vn): Free const_parms.
3973 (run_scc_vn): Initialize const_parms from a fn spec attribute.
3975 2015-09-29 Richard Biener <rguenther@suse.de>
3977 PR tree-optimization/67741
3978 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
3979 builtin calls with correct signature.
3981 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
3984 * config/i386/i386.c: Include dbgcnt.h.
3985 (has_non_address_hard_reg): New.
3986 (convertible_comparison_p): New.
3987 (scalar_to_vector_candidate_p): New.
3988 (remove_non_convertible_regs): New.
3989 (scalar_chain): New.
3990 (scalar_chain::scalar_chain): New.
3991 (scalar_chain::~scalar_chain): New.
3992 (scalar_chain::add_to_queue): New.
3993 (scalar_chain::mark_dual_mode_def): New.
3994 (scalar_chain::analyze_register_chain): New.
3995 (scalar_chain::add_insn): New.
3996 (scalar_chain::build): New.
3997 (scalar_chain::compute_convert_gain): New.
3998 (scalar_chain::replace_with_subreg): New.
3999 (scalar_chain::replace_with_subreg_in_insn): New.
4000 (scalar_chain::emit_conversion_insns): New.
4001 (scalar_chain::make_vector_copies): New.
4002 (scalar_chain::convert_reg): New.
4003 (scalar_chain::convert_op): New.
4004 (scalar_chain::convert_insn): New.
4005 (scalar_chain::convert): New.
4006 (convert_scalars_to_vector): New.
4007 (pass_data_stv): New.
4009 (make_pass_stv): New.
4010 (ix86_option_override): Created and register stv pass.
4011 (flag_opts): Add -mstv.
4012 (ix86_option_override_internal): Likewise.
4013 * config/i386/i386.md (SWIM1248x): New.
4014 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
4015 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
4016 (*anddi3_doubleword): New.
4017 (*zext<mode>_doubleword): New.
4018 (*zextsi_doubleword): New.
4019 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
4020 (*<code>di3_doubleword): New.
4021 * config/i386/i386.opt (mstv): New.
4022 * dbgcnt.def (stv_conversion): New.
4024 2015-09-29 Tom de Vries <tom@codesourcery.com>
4026 * tree-cfg.c (dump_function_to_file): Dump function attributes.
4028 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
4031 * config/sh/sh.c (sh_override_options_after_change): New.
4032 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
4033 (sh_option_override): Move align_loops, align_jumps and
4034 align_functions handling into sh_override_options_after_change.
4036 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
4038 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
4039 (nvptx_record_offload_symbol): Record function execution geometry.
4040 * config/nvptx/mkoffload.c (process): Include launch geometry in
4042 * omp-low.c (oacc_launch_pack): New.
4043 (replace_oacc_fn_attrib): New.
4044 (set_oacc_fn_attrib): New.
4045 (get_oacc_fn_attrib): New.
4046 (expand_omp_target): Create keyed varargs for GOACC_parallel call
4048 * omp-low.h (get_oacc_fn_attrib): Declare.
4049 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
4050 (DEF_FUNCTION_TYPE_VAR_11): Delete.
4051 * tree.h (OMP_CLAUSE_EXPR): New.
4052 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
4054 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4055 Sebastian Pop <s.pop@samsung.com>
4057 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
4059 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4060 Sebastian Pop <s.pop@samsung.com>
4062 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
4063 * graphite-scop-detection.c (struct sese_l): New type.
4064 (get_entry_bb): API for getting entry bb of SESE.
4065 (get_exit_bb): API for getting exit bb of SESE.
4066 (class debug_printer): New type. Simple printer in debug mode.
4067 (trivially_empty_bb_p): New. Return true when BB is empty or
4068 contains only debug instructions.
4069 (graphite_can_represent_expr): Call scalar_evoution_in_region
4070 instead of analyze_scalar_evolution. Pass in scop instead of only
4072 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
4074 (stmt_simple_for_scop_p): Same.
4075 (harmful_stmt_in_bb): Same.
4076 (graphite_can_represent_loop): Deleted.
4077 (struct scopdet_info): Deleted.
4078 (scopdet_basic_block_info): Deleted.
4079 (build_scops_1): Deleted.
4080 (bb_in_sd_region): Deleted.
4081 (find_single_entry_edge): Deleted.
4082 (find_single_exit_edge): Deleted.
4083 (create_single_entry_edge): Deleted.
4084 (sd_region_without_exit): Deleted.
4085 (create_single_exit_edge): Deleted.
4086 (unmark_exit_edges): Deleted.
4087 (mark_exit_edges): Deleted.
4088 (create_sese_edges): Deleted.
4089 (build_graphite_scops): Deleted.
4090 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
4091 (build_scops): Use the new scop_builder to build scops.
4092 (dot_all_scops_1): Use the new pretty printer. Print loop father
4094 (loop_body_is_valid_scop): New. Return true if loop body is a
4096 (class scop_builder): New. Builds SCoPs for polyhedral
4098 (scop_builder): New constructor.
4099 (static sese_l invalid_sese): sese_l with invalid edges.
4100 (get_sese): Get an sese (from a loop) if possible, invalid_sese
4102 (get_nearest_dom_with_single_entry): Get nearest dominator of a
4103 basic_block with single entry. Return NULL if we get to the
4104 beginning of a function.
4105 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
4106 a basic_block with single exit. Return NULL if we get to the
4107 beginning of a function.
4108 (print_sese): Pretty-print SESE.
4109 (merge_sese): Merge two SESEs if possible and return the new SESE.
4110 (build_scop_depth): Start building the SCoP within a loop nest.
4111 (build_scop_breadth): Start building the SCoP at a single loop
4112 depth. Merge adjacent SESEs if valid.
4113 (can_represent_loop_1): Returns true if Graphite can represent
4114 loop inside SCoP. Helper for can_represent_loop.
4115 (can_represent_loop): Returns true if Graphite can represent LOOP
4116 and all its nested loops in SCoP.
4117 (loop_is_valid_scop): Returns true if LOOP and all its nests
4118 constitute a valid SCoP.
4119 (region_has_one_loop): Returns true of a region has only one loop.
4120 (add_scop): Add SCoP to the list of valid scops. Removes an
4121 already existing scop if it intersects with or subsumed by this one.
4122 (harmful_stmt_in_region): Returns true if SCoP has any statment
4123 which cannot be represented by Graphite.
4124 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
4125 (remove_subscops): Remove any SCoP from the list of already found
4126 SCoPs, if subsumed by S1.
4127 (intersects): Return true if region bounded by SCoPs S1 and S2
4129 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
4130 * graphite.c (print_graphite_scop_statistics):
4131 (print_graphite_statistics): Print SCoP info while debugging.
4132 (graphite_initialize): Early exit in case number of loops in a
4133 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
4134 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
4135 (graphite_finalize):
4136 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
4137 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
4138 (recompute_all_dominators): Recalculate POST_DOMINATORS.
4139 * tree-cfg.c (print_loops): Print the function name while printing
4142 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
4143 Sebastian Pop <s.pop@samsung.com>
4145 PR tree-optimization/67700
4146 * graphite-sese-to-poly.c (parameter_index_in_region): Call
4147 invariant_in_sese_p_rec.
4148 (extract_affine): Same.
4149 (rewrite_cross_bb_scalar_deps): Call update_ssa.
4150 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
4151 * sese.h (invariant_in_sese_p_rec): Declare.
4153 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
4155 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
4157 2015-09-28 Jiong Wang <jiong.wang@arm.com>
4160 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4161 Jiong Wang <jiong.wang@arm.com>
4163 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
4164 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
4165 (REG_CLASS_NAMES): Likewise.
4166 (REG_CLASS_CONTENTS): Likewise.
4167 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
4168 (aarch64_register_move_cost): Likewise.
4169 (aarch64_load_symref_appropriately): Invoke the new added pattern if
4171 * config/aarch64/constraints.md (Uc0): New constraint.
4173 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
4175 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
4177 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
4179 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
4180 SECTION_EXCLUDE in XO mapping class.
4182 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
4185 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
4186 and handle ne and eq codes.
4187 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
4188 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
4189 CONST_INT_P. Use reverse_condition.
4190 (sh_split_treg_set_expr): Likewise.
4192 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
4194 * config/arm/types.md (type): Add rotate_imm.
4195 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
4197 (*rorsi3_insn_uxtw): Likewise.
4198 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
4199 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
4200 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
4202 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4204 PR rtl-optimization/67481
4205 * ifcvt.c (contains_ccmode_rtx_p): New function.
4206 (insn_valid_noce_process_p): Use it.
4208 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4210 PR rtl-optimization/67456
4211 PR rtl-optimization/67464
4212 PR rtl-optimization/67465
4213 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
4214 move in the mode of x. Handle combination of complex and simple
4215 block pairs as well as the case when one is empty.
4217 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4219 * doc/gimple.texi: Update references to gimple_statement_base.
4220 * gdbhooks.py: Likewise.
4221 * gimple.h: Likewise.
4223 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4225 * config/sparc/driver-sparc.c: map LEON to leon3
4227 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4229 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
4230 and make it inverse to change default
4231 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
4233 * doc/invoke.texi: Document change of default
4235 2015-09-28 Daniel Cederman <cederman@gaisler.com>
4237 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
4238 true on %f0 for a target without FPU.
4239 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
4241 (untyped_return): Do not load %f0 for a target without FPU.
4243 2015-09-28 Andrew Pinski <apinski@cavium.com>
4245 * config/aarch64/aarch64.md (prefetch):
4246 Change the predicate of operand 0 to register_operand.
4248 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
4250 * config/i386/predicates.md (register_sse4nonimm_operand): New
4252 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
4253 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
4254 Use register_sse4nonimm_operand as operand 0 predicate.
4255 (*vec_extractv8hi_sse2): Remove insn pattern.
4256 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
4257 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
4259 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
4260 Kaz Kojima <kkojima@gcc.gnu.org>
4263 * config/sh/sh-protos.h (sh_lra_p): Declare.
4264 * config/sh/sh.c (sh_lra_p): Make non-static.
4265 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
4266 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
4267 Expand into addsi3_scr if operands[2] if needed.
4268 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
4269 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
4270 (addsi3_scr, *addsi3): New insn_and_split patterns.
4272 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
4274 PR rtl-optimization/64164
4275 PR tree-optimization/67312
4279 * cfgexpand.c (parm_in_stack_slot_p): Remove.
4280 (ssa_default_def_partition): Remove.
4281 (get_rtl_for_parm_ssa_default_def): Remove.
4282 (set_rtl): Check that RTL assignments match expectations.
4283 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
4284 default def location for params and results. Record SSA names
4285 or types in REG and MEM attrs, respectively.
4286 (set_parm_rtl): New.
4287 (expand_one_ssa_partition): Drop logic that assigned MEMs with
4288 unassigned addresses.
4289 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
4290 deferred stack alloc vars.
4291 (expand_used_vars): Skip partitions holding parm default defs.
4292 Move adjust_one_expanded_partition_var loop...
4293 (pass_expand::execute): ... here. Drop redundant assert.
4294 Adjust comments before the final loop over all ssa names.
4295 Require assigned rtl of parms and results to match exactly.
4296 Reset its attributes to match them, not any other variables in
4298 (expand_debug_expr): Use entry value for PARM's default defs
4299 only iff they have zero nondebug uses.
4300 * cfgexpand.h (parm_in_stack_slot_p): Remove.
4301 (get_rtl_for_parm_ssa_default_def): Remove.
4302 (set_parm_rtl): Declare.
4303 * doc/invoke.texi: Improve wording.
4304 * explow.c (promote_decl_mode): Fix promote_function_mode for
4305 result decls not by reference.
4306 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
4307 bypass TYPE_MODE to get the actual vector mode.
4308 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
4309 2015-08-19's changes as follows. Drop include of
4310 basic-block.h and df.h.
4311 (rtl_for_parm): Remove.
4312 (maybe_reset_rtl_for_parm): Remove.
4313 (parm_in_unassigned_mem_p): Remove.
4314 (use_register_for_decl): Add logic for RESULT_DECLs matching
4315 assign_parms' behavior.
4316 (split_complex_args): Revert.
4317 (assign_parms_augmented_arg_list): Revert. Add comment
4318 referencing the logic above.
4319 (assign_parm_adjust_stack_rtl): Revert.
4320 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
4321 of SET_DECL_RTL. Set up a REG if the parm demands so.
4322 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
4323 calls into a single set_parm_rtl. Set up a temporary RTL
4324 temporarily for expand_assignment.
4325 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
4326 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
4327 (assign_bounds): Revert.
4328 (assign_parms): Revert. Use set_parm_rtl.
4329 (allocate_struct_function): Relayout result and parms of
4330 non-abstruct functions.
4331 (expand_function_start): Revert. Use set_parm_rtl. If the
4332 result is not a hard reg, create a pseudo from the promoted
4333 mode of the default def. Promote static chain mode.
4334 * tree-outof-ssa.c (remove_ssa_form): Drop unused
4335 partition_has_default_def. Set up
4336 partitions_for_parm_default_defs.
4337 (finish_out_of_ssa): Remove partition_has_default_def.
4338 Release partitions_for_parm_default_defs.
4339 * tree-outof-ssa.h (struct ssaexpand): Remove
4340 partition_has_default_def. Add
4341 partitions_for_parm_default_defs.
4342 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
4344 (build_ssa_conflict_graph): Fix conflict-detection of default
4345 defs of even unused default defs of params and results.
4346 (for_all_parms): New.
4347 (create_default_def): New.
4348 (register_default_def): New.
4349 (coalesce_with_default): New.
4350 (create_outofssa_var_map): Create default defs for all parms
4351 and results, and register their partitions. Add GIMPLE_RETURN
4352 operands as coalesce candidates with results. Add default
4353 defs of each parm or result as coalesce candidates with its
4354 other defs. Mark each result def, and each default def of
4355 parms, as used_in_copy.
4356 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
4357 with the ssa names, even anonymous ones. Drop
4358 parm_in_stack_slot_p calls. Require same signedness and
4360 (coalesce_ssa_name): Add coalesce candidates for all defs of
4361 each parm and result, even unused ones.
4362 (parm_default_def_partition_arg): New type.
4363 (set_parm_default_def_partition): New.
4364 (get_parm_default_def_partitions): New.
4365 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
4366 * tree-ssa-live.c (partition_view_init): Regard unused defs of
4367 parms and results as used.
4368 (verify_live_on_entry): Don't error out just because they're
4371 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
4373 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4374 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
4375 (output_fde): Don't output length for debug_frame on AIX.
4376 (output_call_frame_info): Don't output length for debug_frame on AIX.
4377 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
4378 HAVE_XCOFF_DWARF_EXTRAS.
4379 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
4380 HAVE_XCOFF_DWARF_EXTRAS.
4381 (output_compilation_unit_header): Don't output length on AIX.
4382 (output_pubnames): Don't output length on AIX.
4383 (output_aranges): Delete argument. Compute length locally. Don't
4384 output length on AIX.
4385 (output_line_info): Don't output length on AIX.
4386 (dwarf2out_finish): Don't compute aranges_length.
4387 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
4388 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
4389 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
4390 symbol decoration for AIX.
4391 (rs6000_xcoff_debug_unwind_info): New.
4392 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
4394 (rs6000_xcoff_declare_function_name): Emit different
4395 .function pseudo-op when DWARF2_DEBUG. Don't call
4396 xcoffout_declare_function for DWARF2_DEBUG.
4397 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
4399 * config/rs6000/aix71.h: New.
4400 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
4402 * configure: Regenerate.
4403 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
4406 2015-09-26 Jeff Law <law@redhat.com>
4408 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
4410 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
4413 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
4416 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
4417 undefined behaviour.
4419 * config/cris/cris.md (asrandb): Fix left shift undefined
4421 (asrandw): Likewise.
4423 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
4426 * lra-constarints.c (match_reload): Check presence of the input pseudo
4427 in the output operand.
4429 2015-09-25 Tobias Burnus <burnus@net-b.de>
4431 * doc/invoke.texi (-fsanitize): Minor wording tweak.
4433 2015-09-25 Tobias Burnus <burnus@net-b.de>
4435 * doc/invoke.texi (-fsanitize): Update URLs.
4437 2015-09-25 Teresa Johnson <tejohnson@google.com>
4439 * opts.c (finish_options): Unset -freorder-blocks-and-partition
4440 if not using profile.
4442 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
4444 PR pretty-print/67567
4445 * pretty-print.c (pp_string): Add gcc_checking_assert.
4446 * pretty-print.h (output_buffer_append_r): Likewise.
4448 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
4451 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
4452 addr2 individually. Don't emit logical or insn if one is known to
4453 be aligned approriately.
4454 (sh_expand_cmpnstr): Likewise.
4456 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
4458 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
4459 __builtin_aarch64_fp[sc]r arguments into a register.
4461 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
4463 * config.gcc (x86_archs): Replace lakemount with lakemont.
4464 (with_cpu): Likewise.
4465 (with_arch): Likewise.
4466 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4467 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
4468 __tune_lakemount__ with __tune_lakemont__.
4469 * config/i386/i386.c (lakemount_cost): Renamed to ...
4470 (lakemont_cost): This.
4471 (m_LAKEMOUNT): Renamed to ...
4473 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
4474 (processor_target_table): Replace "lakemount" with "lakemont".
4475 (processor_alias_table): Likewise.
4476 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
4478 (ix86_adjust_cost): Likewise.
4479 (ia32_multipass_dfa_lookahead): Likewise.
4480 * config/i386/i386.h (processor_type): Likewise.
4481 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
4482 * doc/invoke.texi: Replace lakemount with lakemont. Replace
4483 Lakemount with Lakemont.
4485 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
4487 * config.gcc (x86_archs): Replace iamcu with lakemount.
4488 (with_cpu): Likewise.
4489 (with_arch): Likewise.
4490 * doc/invoke.texi: Likewise.
4491 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
4492 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
4493 __tune_iamcu__ with __tune_lakemount__.
4494 * config/i386/i386.c (iamcu_cost): Renamed to ...
4495 (lakemount_cost): This.
4496 (m_IAMCU): Renamed to ...
4497 (m_LAKEMOUNT): This.
4498 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
4499 (processor_target_table): Replace "iamcu" with "lakemount".
4500 (processor_alias_table): Likewise.
4501 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
4502 PROCESSOR_LAKEMOUNT.
4503 (ix86_adjust_cost): Likewise.
4504 (ia32_multipass_dfa_lookahead): Likewise.
4505 * config/i386/i386.h (processor_type): Likewise.
4506 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
4508 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
4510 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
4511 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
4513 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
4514 (pa_expand_compare_and_swap_loop): New.
4515 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
4516 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
4517 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
4518 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
4519 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
4522 2015-09-24 Michael Collison <michael.collison@linaro.org>
4525 * read-md.c (read_name): Allow mode iterators inside angle
4526 brackets in rtl expressions.
4528 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
4531 * ira-color.c (update_allocno_cost): Add parameter.
4532 (update_costs_from_allocno): Decrease conflict cost. Pass the new
4535 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
4538 * opts-common.c (prune_options): Discard all -fdiagnostics-color
4539 but the last one, which is moved to the front to be processed
4541 * opts.c (enable_warning_as_error): Reject options that do not
4544 2015-09-24 Jiong Wang <jiong.wang@arm.com>
4546 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
4548 2015-09-24 Jiong Wang <jiong.wang@arm.com>
4550 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
4551 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
4552 (aarch64_cannot_force_const_mem): Likewise.
4553 (aarch64_classify_address): Likewise.
4554 (aarch64_classify_symbolic_expression): Likewise.
4555 (aarch64_print_operand): Likewise.
4556 (aarch64_classify_symbol): Likewise.
4557 (aarch64_mov_operand_p): Likewise.
4558 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
4559 (aarch64_mov_operand): Likewise.
4561 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
4563 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
4564 for info->spe_gp_size.
4566 2015-09-24 Richard Biener <rguenther@suse.de>
4569 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
4572 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
4574 * tree-object-size.c (plus_stmt_object_size)
4575 (cond_expr_object_size): Change the formal parameters from gimple
4577 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
4578 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
4579 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
4581 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4583 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
4584 Check for ld -type pie on Solaris 11.x and 12.
4585 * configure: Regenerate.
4586 * config.in: Regenerate.
4588 * gcc.c (LD_PIE_SPEC): Allow redefinition.
4590 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
4591 (STARTFILE_SPEC): Use it.
4592 (ENDFILE_CRTEND_SPEC): Define.
4593 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
4594 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
4595 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
4596 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
4597 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
4598 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
4599 (ENDFILE_ARCH_SPEC): Define.
4600 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
4602 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4604 * configure.ac (gcc_cv_solaris_crts): New test.
4605 * configure. Regenerate.
4606 * config.in: Regenerate.
4607 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
4608 HAVE_SOLARIS_CRTS variant.
4610 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4612 * tree-inline.h (count_insns_seq): Delete prototype.
4613 (estimate_num_insns_seq): Define prototype.
4614 * tree-inline.c (count_insns_seq): Delete.
4615 (estimate_num_insns_seq): Remove static qualifier.
4616 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
4617 with estimate_num_insns_seq.
4619 2015-09-24 Richard Biener <rguenther@suse.de>
4621 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
4623 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
4624 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
4626 (ao_ref_init_from_vn_reference): Record clique and base in the
4628 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
4630 2015-09-24 Richard Biener <rguenther@suse.de>
4632 PR tree-optimization/48885
4633 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
4634 as not including any restrict tags from other pointers.
4636 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
4638 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
4639 character when appending to offload_targets.
4641 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
4642 offload targets by commas, not colons.
4643 * config.in: Regenerate.
4644 * configure: Likewise.
4645 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
4646 instead of setting up the default offload targets here...
4647 (process_command): ..., do it here.
4649 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
4650 targets are separated by commas.
4651 * config.h.in: Regenerate.
4653 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
4654 Nathan Sidwell <nathan@codesourcery.com>
4656 * omp-low.h (omp_reduction_init_op): Declare.
4657 * omp-low.c (omp_reduction_init_op): New, broken out of ...
4658 (omp_reduction_init): ... here. Call it.
4659 * tree-parloops.c (initialize_reductions): Use
4660 omp_reduction_init_op.
4662 2015-09-23 Richard Biener <rguenther@suse.de>
4665 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
4666 undefined overflow unless they will cancel out.
4668 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
4670 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
4673 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
4676 * opts.h (write_langs): Declare.
4677 * opts-global.c (write_langs): Make it extern.
4679 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
4682 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
4683 overlapping regs when matching the pattern.
4685 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
4687 * config/aarch64/aarch64-simd.md
4688 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
4689 (aarch64_float_truncate_hi_v4sf_le): New.
4690 (aarch64_float_truncate_hi_v4sf_be): Likewise.
4692 2015-09-23 Richard Biener <rguenther@suse.de>
4694 * tree-ssa-structalias.c (intra_create_variable_infos): Build
4695 representatives for all restrict qualified pointer destinations.
4697 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
4699 * config/i386/i386.md (define_code_attr mshift): New.
4700 (define_mode_iterator SWI1248_AVX512BW): Rename ...
4701 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
4703 (define_insn "*k<logic><mode>"): Use new iterator name.
4704 (define_insn "*<mshift><mode>3"): New.
4706 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
4709 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
4710 mark the block as accessible.
4712 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
4714 * function.c (thread_prologue_and_epilogue_insns): Delete
4715 orig_entry_edge argument to try_shrink_wrapping.
4716 * shrink-wrap.c (can_get_prologue): New function.
4717 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
4718 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
4719 can_get_prologue where needed. Remove code that finds a single
4720 edge for the prologue. Remove code that tests if any reg clobbered
4721 by the prologue is live on the prologue edge. Remove code that finds
4722 the new prologue edge after duplicating blocks. Make a new prologue
4724 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
4726 2015-09-22 Jeff Law <law@redhat.com>
4728 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
4731 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
4733 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
4734 -Wtemplates, -Wnamespaces): Document.
4736 2015-09-22 Tom de Vries <tom@codesourcery.com>
4738 PR tree-optimization/67671
4739 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
4740 pointer references as restrict.
4742 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
4744 * config/nios2/nios2.c (nios2_legitimize_address): When handling
4745 'reg + reloc' cases, allow first operand to be non-REG, and use
4746 force_reg() to enforce address pattern.
4748 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
4751 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
4752 (define_mode_iterator VI12_AVX_AVX512F): New.
4753 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
4754 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
4755 (define_insn "*<code><mode>3"): ... Into new pattern using
4756 VI12_AVX_AVX512F iterators without masking.
4758 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
4760 * config.gcc: Support "skylake-avx512".
4761 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
4762 PROCESSOR_SKYLAKE_AVX512.
4763 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
4764 (processor_target_table): Add "skylake-avx512".
4765 (PTA_SKYLAKE_AVX512): Define.
4766 (ix86_option_override_internal): Add "skylake_avx512".
4767 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
4768 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
4769 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
4770 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
4771 * doc/invoke.texi (skylake-avx512): New.
4773 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
4775 * gcc/config/i386/i386.md (define_insn "kunpckhi"): Fix
4777 (define_insn "kunpcksi"): Ditto.
4778 (define_insn "kunpckdi"): Ditto.
4780 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
4782 * gcc/config/i386/i386.md (define_split not/xor SWI1248x): Use
4783 iterator instead of fixed modes.
4785 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4787 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4789 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
4790 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
4791 out_result. Update to support update-fetch operations.
4792 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
4793 Adjust for change to aarch64_gen_atomic_ldop.
4794 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
4795 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
4796 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
4797 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
4798 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
4800 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4802 * config/aarch64/aarch64-protos.h
4803 (aarch64_atomic_ldop_supported_p): Declare.
4804 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
4805 (enum aarch64_atomic_load_op_code): New.
4806 (aarch64_emit_atomic_load_op): New.
4807 (aarch64_gen_atomic_ldop): Update to support load-operate
4809 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
4811 (aarch64_atomic_<atomic_optab><mode>): New.
4812 (aarch64_atomic_<atomic_optab><mode>_lse): New.
4813 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
4814 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
4815 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
4817 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4819 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
4820 (UNSPECV_ATOMIC_LDOP_OR): New.
4821 (UNSPECV_ATOMIC_LDOP_BIC): New.
4822 (UNSPECV_ATOMIC_LDOP_XOR): New.
4823 (UNSPECV_ATOMIC_LDOP_PLUS): New.
4826 (aarch64_atomic_load<atomic_ldop><mode>): New.
4828 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4830 * config/aarch64/aarch64.md
4831 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
4834 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
4836 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
4838 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
4839 (aarch64_gen_atomic_ldop): New.
4840 (aarch64_split_atomic_op): Fix whitespace and add a comment.
4841 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
4842 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
4843 (atomic_exchange<mode>): Replace with an expander.
4844 (aarch64_atomic_exchange<mode>): New.
4845 (aarch64_atomic_exchange<mode>_lse): New.
4846 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
4847 (aarch64_atomic_swp<mode>): New.
4849 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
4851 * tree-inline.c (expand_call_inline): Use inform for extra note.
4852 Do not give a note with UNKNOWN_LOCATION.
4853 Replace input_location with gimple_location (stmt).
4854 Use true/false instead of TRUE/FALSE.
4856 2015-09-22 Tom de Vries <tom@codesourcery.com>
4858 PR tree-optimization/67666
4859 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
4860 with single field non-conservative.
4862 2015-09-21 David S. Miller <davem@davemloft.net>
4866 2015-09-11 David S. Miller <davem@davemloft.net>
4868 * config/sparc/constraints.md: Make "U" constraint a real register
4870 * config/sparc/sparc.c (TARGET_LRA_P): Define.
4871 (D_MODES, DF_MODES): Add missing cast.
4872 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
4873 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
4874 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
4876 * config/sparc/sparc.h (PROMOTE_MODE): Define.
4877 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
4878 provide these insn when flag_pic.
4880 2015-09-17 David S. Miller <davem@davemloft.net>
4882 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
4884 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
4886 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
4887 (HARD_REGNO_CALLER_SAVE_MODE): Define.
4888 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
4889 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
4890 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
4891 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
4892 provide when flag_pic.
4894 2015-09-21 Jeff Law <law@redhat.com>
4896 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
4899 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4901 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
4903 2015-09-21 Richard Biener <rguenther@suse.de>
4905 * passes.c (rest_of_decl_compilation): Do not call
4906 dwarf2out_early_global_decl for aliases.
4908 2015-09-21 Richard Biener <rguenther@suse.de>
4911 * dwarf2out.c (add_location_or_const_value_attribute): Remove
4912 attribute parameter. Early exit if either DW_AT_const_value
4913 or DW_AT_location are present already.
4914 (gen_variable_die): Adjust caller.
4915 (dwarf2out_late_global_decl): Likewise.
4917 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4920 * config/sh/sh.c (sh_remove_overlapping_post_inc,
4921 sh_peephole_emit_move_insn): Add new functions.
4922 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
4923 sh_peephole_emit_move_insn): Declere them.
4924 * config/sh/sh.md: Use them in various peephole2 patterns.
4926 2015-09-21 Richard Biener <rguenther@suse.de>
4929 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
4930 address with -fno-delete-null-pointer-checks.
4932 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
4934 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
4935 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
4936 (reduc_uplus_v16qi): Remove.
4938 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
4939 (reduc_<VEC_reduc_name>_v2df): Remove.
4940 (reduc_<VEC_reduc_name>_v4sf): Remove.
4941 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
4943 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
4944 gen_ function by removing * prefix.
4945 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
4947 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
4950 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
4951 Print i_bound without converting it to a tree.
4953 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
4955 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
4956 operands[4] operands[5] swap with std::swap, removed tmp variable.
4957 (arm_evpc_neon_vzip): Replaced in0/in1 and
4958 out0/out1 swaps with std::swap, removed x variable.
4959 (arm_evpc_neon_vtrn): Replaced in0/int1 and
4960 out0/out1 swaos with std::swap, removed x variable.
4961 (arm_expand_vec_perm_const_1): Replaced
4962 d->op0/d->op1 swap with std::swap, removed x variable.
4963 (arm_evpc_neon_vuzp): Replaced in0/in1 and
4964 out0/out1 swaps with std::swap, removed x variable.
4966 2015-09-21 Jonathan Yong <10walls@gmail.com>
4968 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
4969 sysroot/usr/lib/32api for additional win32 libraries,
4970 fixes failing Cygwin bootstrapping.
4972 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4974 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
4976 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
4979 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
4980 (*mov_t_msb_neg): Rewrite negc pattern.
4982 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4984 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
4985 immediate generation code.
4987 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4989 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
4990 redundant immediate generation code.
4992 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
4994 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
4995 (AARCH64_NUM_BITMASKS): Remove.
4996 (aarch64_bitmasks_cmp): Remove.
4997 (aarch64_build_bitmask_table): Remove.
4999 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5001 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
5002 slow immediate matching loops with a faster algorithm.
5004 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
5006 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
5009 2015-09-20 Jeff Law <law@redhat.com>
5011 PR tree-optimization/47679
5012 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
5013 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
5014 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
5015 (thread_through_normal_block): Use record_temporary_equivalences.
5017 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
5019 * coretypes.h (gimple): Change typedef to be a forward declaration.
5020 * gimple.h (gimple_statement_base): rename to gimple.
5021 * (all functions and types using gimple): Adjust.
5024 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
5025 David Edelsohn <dje.gcc@gmail.com>
5027 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
5028 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5029 (EH_FRAME_THROUGH_COLLECT2): Define.
5030 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5031 (ASM_OUTPUT_DWARF_PCREL): Define.
5032 (ASM_OUTPUT_DWARF_DATAREL): Define.
5034 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
5036 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
5039 2015-09-18 Jeff Law <law@redhat.com>
5041 PR tree-optimization/47679
5042 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
5044 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
5045 object. Update constructor.
5046 (pass_dominator::execute): Corresponding chagnes to declaration
5047 and initialization of avail_exprs_stack. Update constructor call
5048 for dom_opt_dom_walker object.
5049 (lookup_avail_expr, record_cond): Accept additional argument. Pass
5050 it down to children as needed.
5051 (record_equivalences_from_incoming_edge): Likewise.
5052 (eliminate_redundant_computations): Likewise.
5053 (record_equivalences_from_stmt): Likewise.
5054 (simplify_stmt_for_jump_threading): Likewise.
5055 (record_temporary_equivalences): Likewise.
5056 (optimize_stmt): Likewise.
5057 (dom_opt_dom_walker::thread_across_edge): Update access to
5058 avail_exprs_stack object and pass it to children as needed.
5059 (dom_opt_dom_walker::before_dom_children): Similarly.
5060 (dom_opt_dom_walker::after_dom_children): Similarly.
5061 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
5062 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
5063 Add avail_expr_stack argument. Pass it to children as needed.
5064 (dummy_simplify): Likewise.
5065 (simplify_control_stmt_condition): Likewise.
5066 (thread_around_empty_blocks): Likewise.
5067 (thread_through_normal_block): Likewise.
5068 (thread_across_edge): Likewise.
5069 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5070 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
5072 PR tree-optimization/47679
5073 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
5075 (dom_opt_dom_walker): New private member holding the const_and_copies
5076 object. Update constructor.
5077 (pass_dominator::execute): Corresponding changes to declaration
5078 and initialization of const_and_copies. Update constructor call
5079 for the dom_opt_dom_walker object.
5080 (record_temporary_equivalences): Accept const_and_copies argument
5081 pass it down to children as needed.
5082 (record_equality): Likewise.
5083 (record_equivalences_from_incoming_edge): Likewise.
5084 (cprop_into_successor_phis, optimize_stmt): Likewise.
5085 (eliminate_redundant_computations): Likewise.
5086 (dom_opt_dom_walker::thread_across_edge): Update access to
5087 const_and_copies object and pass it to children as needed.
5088 (dom_opt_dom_walker::before_dom_children): Similarly.
5089 (dom_opt_dom_walker::after_dom_children): Similarly.
5091 PR tree-optimization/47679
5092 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
5093 it into the avail_exprs_stack class.
5094 (pass_dominator::execute): Corresponding changes to declaration
5095 and initialization of avail_exprs. Pass avail_exprs to
5096 dump_dominator_optimization_stats.
5097 (record_cond): Extract avail_exprs from avail_exprs_stack.
5098 (lookup_avail_expr): Similarly.
5099 (htab_staticstics): Remove unnecessary prototype. Move to earlier
5101 (dump_dominator_optimization_stats): Make static and prototype.
5102 Add argument for the hash table to dump.
5103 (debug_dominator_optimization_stats): Remove.
5104 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
5106 (debug_dominator_optimization_stats): Similarly.
5107 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
5108 "void" in prototype for pop_to_marker method. Add accessor method
5109 for the underlying avail_exprs table.
5111 * tree-ssa-threadedge.c: Remove trailing whitespace.
5113 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
5115 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
5117 (pa_ldil_cint_p): Likewise.
5118 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
5119 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
5121 * config/pa/pa.md: Likewise.
5123 2015-09-18 David Malcolm <dmalcolm@redhat.com>
5125 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
5126 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
5127 (diagnostic_show_locus): Likewise.
5128 (diagnostic_print_caret_line): Likewise.
5129 * diagnostic-show-locus.c: New file.
5131 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
5133 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
5134 "back" parameter. Declare label in #if block.
5136 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
5139 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
5140 the address to a register.
5142 2015-09-18 Jeff Law <law@redhat.com>
5144 PR tree-optimization/47679
5145 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
5146 * tree-ssa-dom.c: Remove unnecessary header includes.
5147 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
5148 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
5149 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
5150 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
5151 (pass_phi_only_cprop::execute): Likewise.
5152 (make_pass_phi_only_cprop): Likewise.
5153 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
5154 uses of file scoped statics by passing the required objects
5155 as parameters wherever needed.
5157 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
5158 David Edelsohn <dje.gcc@gmail.com>
5160 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
5161 EH_FRAME_THROUGH_COLLECT2.
5162 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
5164 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
5165 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
5166 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
5167 * except.c (switch_to_exception_section): Use a read-only section
5168 even if EH_FRAME_SECTION_NAME is undefined.
5169 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
5170 * collect2.c (write_c_file_stat): Provide dbase on AIX.
5171 (scan_prog_file): Don't export __dso_handle nor
5173 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5174 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5175 (ASM_OUTPUT_DWARF_PCREL): Define.
5176 (ASM_OUTPUT_DWARF_DATAREL): Define.
5177 (EH_FRAME_THROUGH_COLLECT2): Define.
5178 (EH_FRAME_IN_DATA_SECTION): Delete.
5179 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
5180 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
5182 (rs6000_asm_output_dwarf_datarel): Declare.
5183 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
5184 (rs6000_aix_asm_output_dwarf_datarel): New.
5185 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
5186 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
5187 (EH_FRAME_THROUGH_COLLECT2): Define.
5188 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
5189 (EH_FRAME_THROUGH_COLLECT2): Define.
5190 (EH_TABLES_CAN_BE_READ_ONLY): Define.
5191 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
5192 (EH_FRAME_THROUGH_COLLECT2): New.
5193 (ASM_OUTPUT_DWARF_DATAREL): New.
5194 * doc/tm.texi: Regenerate.
5196 2015-09-18 Richard Biener <rguenther@suse.de>
5198 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
5199 we're in early phase.
5200 (schedule_generic_params_dies_gen): Likewise.
5201 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
5202 work as possible, retaining unhandled cases.
5203 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
5204 clear out generic_type_instances at the end.
5205 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
5206 (dwarf2out_early_finish): ... here. Do most of
5207 gen_remaining_tmpl_value_param_die_attribute here.
5209 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
5211 PR tree-optimization/67283
5212 * tree-sra.c (type_consists_of_records_p): Rename to...
5213 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
5214 (completely_scalarize_record): Rename to...
5215 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
5216 (scalarize_elem): New.
5217 (analyze_all_variable_accesses): Follow renamings.
5219 2015-09-18 Richard Biener <rguenther@suse.de>
5221 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
5224 2015-09-18 Richard Biener <rguenther@suse.de>
5226 PR tree-optimization/66142
5227 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
5228 treat MEM[&x] and x the same.
5229 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
5230 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
5231 when we simplified sth.
5232 (vn_reference_maybe_forwprop_address): Likewise.
5233 (valueize_refs_1): When we simplified through
5234 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
5235 set valueized_anything to true.
5236 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
5237 one ref kills the other instead of just a offset-based test.
5238 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
5239 for the operand_equal_p test to compare bases and also compare
5242 2015-09-17 Christian Bruel <christian.bruel@st.com>
5244 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
5246 2015-09-17 Richard Henderson <rth@redhat.com>
5249 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
5250 pointers that encode the alignment of the object.
5252 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
5254 PR rtl-optimization/66790
5255 * df-problems.c (LIVE): Amend documentation.
5257 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
5259 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
5261 (GTFILES): Replace optabs.c with optabs-libfunc.c.
5262 * genopinit.c (main): Add an include guard to insn-opinit.h.
5263 Protect the rtx_code parts with NUM_RTX_CODE.
5264 * optabs.h: Split parts out to...
5265 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
5266 * optabs.c: Split parts out to...
5267 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
5268 * cilk-common.c: Include optabs-query.h rather than optabs.h.
5269 * fold-const.c: Likewise.
5270 * target-globals.c: Likewise.
5271 * tree-if-conv.c: Likewise.
5272 * tree-ssa-forwprop.c: Likewise.
5273 * tree-ssa-loop-prefetch.c: Likewise.
5274 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
5275 Remove unncessary include files.
5276 * tree-ssa-phiopt.c: Likewise.
5277 * tree-ssa-reassoc.c: Likewise.
5278 * tree-switch-conversion.c: Likewise.
5279 * tree-vect-data-refs.c: Likewise.
5280 * tree-vect-generic.c: Likewise.
5281 * tree-vect-loop.c: Likewise.
5282 * tree-vect-patterns.c: Likewise.
5283 * tree-vect-slp.c: Likewise.
5284 * tree-vect-stmts.c: Likewise.
5285 * tree-vrp.c: Likewise.
5286 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
5287 rather than optabs.h.
5288 * expr.c: Include optabs-tree.h.
5289 * function.c: Likewise.
5291 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
5294 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
5295 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
5296 * config/arm/arm.c: Include common/common-target.h.
5297 (use_return_insn): Return 0 if the static chain register was saved
5298 above a non-APCS frame.
5299 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
5300 (struct scratch_reg): New.
5301 (get_scratch_register_on_entry): New function.
5302 (release_scratch_register_on_entry): Likewise.
5303 (arm_emit_probe_stack_range): Likewise.
5304 (output_probe_stack_range): Likewise.
5305 (arm_expand_prologue): Factor out code dealing with the IP register
5306 for nested function and adjust it for stack checking.
5307 Invoke arm_emit_probe_stack_range if static builtin stack checking
5309 (thumb1_expand_prologue): Sorry out if static builtin stack checking
5311 (arm_expand_epilogue): Add the saved static chain register, if any, to
5312 the amount of pre-pushed registers to pop.
5313 (arm_frame_pointer_required): Return true if static stack checking is
5314 enabled and we want to catch the exception with the EABI unwinder.
5315 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
5316 (UNSPEC_PROBE_STACK_RANGE): Likewise.
5317 * config/arm/arm.md (probe_stack): New insn.
5318 (probe_stack_range): Likewise.
5320 2015-09-17 Richard Biener <rguenther@suse.de>
5322 * genmatch.c (parser::parse_expr): Improve error message
5323 for mis-placed flags.
5325 2015-09-17 Richard Biener <rguenther@suse.de>
5327 * passes.c (rest_of_decl_compilation): Always call early_global_decl
5328 debug hook when we created a varpool node.
5329 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
5330 dwarf2out_early_global_decl, when not just add location or
5331 value attributes to existing DIEs.
5333 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
5335 * config/aarch64/aarch64.md (copysigndf3): New.
5336 (copysignsf3): Likewise.
5338 2015-09-17 David S. Miller <davem@davemloft.net>
5340 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
5341 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
5342 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
5343 (HARD_REGNO_CALLER_SAVE_MODE): Define.
5344 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
5345 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
5346 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
5347 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
5348 provide when flag_pic.
5350 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
5352 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
5353 object_allocator change.
5355 2015-09-17 Bin Cheng <bin.cheng@arm.com>
5357 PR tree-optimization/66388
5358 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
5359 (dump_iv): Dump no_overflow information.
5360 (alloc_iv): Initialize new field for struct iv.
5361 (mark_bivs): Count number of no_overflow bivs.
5362 (find_deriving_biv_for_expr, record_biv_for_address_use): New
5364 (idx_find_step): Call new functions above.
5365 (add_candidate_1, add_candidate): New paramter.
5366 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
5367 (get_computation_aff): Simplify convertion of cand for BIV.
5368 (get_computation_cost_at): Step cand's base if necessary.
5370 2015-09-17 Bin Cheng <bin.cheng@arm.com>
5372 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
5374 (tree_simplify_using_condition): Ditto.
5375 (simplify_using_initial_conditions): Ditto.
5376 (loop_exits_before_overflow): Pass new argument to function
5377 simplify_using_initial_conditions. Remove case for type conversions
5379 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
5381 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
5382 in iv base using loop initial conditions.
5384 2015-09-16 Jeff Law <law@redhat.com>
5386 PR tree-optimization/47679
5387 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
5388 (free_all_edge_infos): Use it.
5389 (allocate_edge_info): Free preexisting edge info data.
5390 (pass_dominator::execute): Set up initial edge info structures.
5391 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
5393 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
5394 If non-null, then push/pop markers appropriately.
5395 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
5396 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
5399 2015-09-16 James Bowman <james.bowman@ftdichip.com>
5401 * config/ft32/ft32.c: Fix the memory address space predicate.
5403 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
5406 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
5407 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
5409 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
5411 * toplev.h (check_global_declaration): Remove declaration.
5412 * toplev.c (check_global_declaration): Move to ...
5413 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
5414 (analyze_functions): Update call.
5416 2015-09-16 David S. Miller <davem@davemloft.net>
5418 * lra-constraints.c (simplify_operand_subreg): Do not assume that
5419 lowpart of a SUBREG has offset zero.
5421 2015-09-16 Jeff Law <law@redhat.com>
5423 PR tree-optimization/47679
5424 * tree-ssa-dom.c (enum expr_kind): Moved from here to
5425 tree-ssa-scopedtables.h.
5426 (struct hashable_expr, class expr_hash_elt): Likewise.
5427 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
5428 Move associated methods into tree-ssa-scopedtables.c.
5429 (avail_expr_hash, initialize_expr_from_cond): Similarly.
5430 (hashable_expr_equal_p, add_expr_commutative): Likewise.
5431 (add_hashable_expr): Likewise.
5432 (record_cond): Delete element directly.
5433 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
5434 private copy ctor and assignment operator methods.
5435 (expr_elt_hasher): Inline trivial methods.
5436 (initialize_expr_from_cond): Prototype.
5437 * tree-ssa-scopedtables.c: Add necessary includes, functions and
5438 methods that were previously in tree-ssa-dom.c. Improve various
5441 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
5443 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
5445 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
5448 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
5451 2015-09-16 Richard Biener <rguenther@suse.de>
5454 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
5455 location of possibly shared trees.
5457 2015-09-16 Richard Biener <rguenther@suse.de>
5460 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
5462 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
5464 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
5465 offset and size computations instead of HOST_WIDE_INT.
5467 2015-09-16 Richard Biener <rguenther@suse.de>
5470 * fold-const.c (extract_muldiv_1): Properly extend multiplication
5471 result before builting a tree via wide_int_to_tree.
5473 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
5475 * Makefile.in: Add memory-block.cc
5476 (pool_allocator::initialize): Use fixed block size.
5477 (pool_allocator::release): Use memory_block_pool.
5478 (pool_allocator::allocate): Likewise.
5479 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
5481 * cfg.c (initialize_original_copy_tables): Likewise.
5482 * cselib.c (elt_list_pool, elt_loc_list_pool,
5483 cselib_val_pool): Likewise.
5484 * df-problems.c (df_chain_alloc): Likewise.
5485 * df-scan.c (df_scan_alloc): Likewise.
5486 * dse.c (cse_store_info_pool, rtx_store_info_pool,
5487 read_info_type_pool, insn_info_type_pool, bb_info_pool,
5488 group_info_pool, deferred_change_pool): Likewise.
5489 * et-forest.c (et_nodes, et_occurrences): Likewise.
5490 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
5491 ipcp_agg_lattice_pool): Likewise.
5492 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
5493 * ipa-profile.c (histogram_pool): Likewise.
5494 * ipa-prop.c (ipa_refdesc_pool): Likewise.
5495 * ira-build.c (live_range_pool, allocno_pool, object_pool,
5496 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
5497 * ira-color.c (update_cost_record_pool): Likewise.
5498 * lra-lives.c (lra_live_range_pool): Likewise.
5499 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
5500 * memory-block.cc: New file.
5501 * memory-block.h: New file.
5502 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
5503 * sched-deps.c (sched_deps_init): Likewise.
5504 * sel-sched-ir.c (sched_lists_pool): Likewise.
5505 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
5506 * tree-sra.c (access_pool): Likewise.
5507 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
5508 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
5509 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
5510 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
5511 * tree-ssa-strlen.c (strinfo_pool): Likewise.
5512 * tree-ssa-structalias.c (variable_info_pool): Likewise.
5513 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
5514 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
5516 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
5518 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
5520 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
5523 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
5525 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
5526 to pass TLS call argument, according to current ABI.
5527 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
5528 callx0 for TLS call, according to current ABI.
5530 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
5532 * tree-eh.c (lower_try_finally_dup_block): Clear location information
5533 on stack restore statements.
5534 (decide_copy_try_finally): Do not consider a stack restore statement as
5535 coming from sources.
5537 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
5539 * config/alpha/alpha.c (alpha_expand_block_clear): Use
5540 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
5542 2015-09-15 Jeff Law <law@redhat.com>
5544 PR tree-optimization/47679
5545 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
5546 methods and private members.
5547 (avail_exprs_stack): Similarly. Change type of global
5548 from a pair of expr_hash_elt_t to the new class.
5549 (expr_elt_hasher::hash): Corresponding changes.
5550 (expr_elt_hasher::equal): Similarly.
5551 (avail_expr_hash): Similarly.
5552 (pass_dominator::execute): Similarly.
5553 (dom_opt_dom_walker::thread_across_edge): Similarly.
5554 (record_cond): Similarly.
5555 (dom_opt_dom_walker::before_dom_children): Similarly.
5556 (dom_opt_dom_walker::after_dom_children): Similarly.
5557 (lookup_avail_expr): Likewise.
5558 (initialize_hash_element): Now a expr_hash_elt constructor.
5559 (initialize_hash_element_from_expr): Similarly.
5560 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
5561 (free_expr_hash_elt): Call dtor for the element.
5562 (remove_local_expressions_from_table): Now the "pop_to_marker"
5563 method in the available_exprs_stack class.
5564 (avail_expr_stack::record_expr): Method factored out.
5565 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
5567 (hashable_expr_equal_p): Fix formatting.
5569 2015-09-15 David Malcolm <dmalcolm@redhat.com>
5571 * input.h (location_get_source_line): Drop "expanded_location"
5572 param in favor of a file and line number.
5573 * input.c (location_get_source_line): Likewise.
5574 (dump_location_info): Update for change in signature of
5575 location_get_source_line.
5576 * diagnostic.c (diagnostic_print_caret_line): Likewise.
5578 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
5580 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
5581 Bump to 4KB for SJLJ exceptions.
5582 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
5583 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
5584 * doc/tm.texi: Regenerate.
5586 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5588 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
5589 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
5592 2015-09-15 Richard Biener <rguenther@suse.de>
5594 PR tree-optimization/67470
5595 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
5596 structure for PHI hoisting by inserting a forwarder block
5599 2015-09-15 Christian Bruel <christian.bruel@st.com>
5601 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
5602 (arm_option_print): New function.
5604 2015-09-15 Christian Bruel <christian.bruel@st.com>
5607 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
5608 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
5609 Remove flags parameter.
5610 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
5611 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
5612 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
5613 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
5614 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
5615 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
5616 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
5617 * gcc/config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
5619 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5621 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
5623 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
5624 AARCH64_VALID_SIMD_DREG_MODE.
5626 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5628 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
5629 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
5630 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
5631 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
5632 aarch64_ld4_lane<mode>): Combine together, making...
5633 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5634 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5635 aarch64_st4_lane<mode>): Combine together, making...
5636 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
5637 * config/aarch64/iterators.md (nregs): Add comment.
5639 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5641 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
5642 Change operand mode from <V_TWO_ELEM> to BLK.
5643 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
5644 (aarch64_vec_store_lanesoi_lane<mode): Likewise
5645 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5646 (aarch64_ld2_lane<mode>): Likewise.
5647 (aarch64_st2_lane<VQ:mode>): Likewise.
5648 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
5650 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5652 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
5653 Change operand mode from <V_FOUR_ELEM> to BLK.
5654 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
5655 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
5656 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5657 (aarch64_ld4_lane<mode>): Likewise.
5658 (aarch64_st4_lane<mode>): Likewise.
5659 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
5661 2015-09-15 Richard Biener <rguenther@suse.de>
5664 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
5665 transfer EH info from old to new stmt.
5666 (replace_call_with_value): Likewise.
5667 (replace_call_with_call_and_fold): Likewise.
5668 (gimple_fold_builtin_memory_op): Likewise.
5669 (gimple_fold_builtin_memset): Likewise.
5670 (gimple_fold_builtin_stpcpy): Likewise.
5671 (gimple_fold_call): Likewise.
5673 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5675 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
5677 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
5678 (aarch64_simd_intEI_type_node): Likewise.
5679 (aarch64_simd_builtin_std_type): Remove EImode case.
5680 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
5681 * config/aarch64/aarch64-modes.def: Remove EImode.
5683 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5685 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
5686 Change operand mode from <V_THREE_ELEM> to BLK.
5687 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
5688 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
5689 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
5690 (aarch64_ld3_lane<mode>): Likewise.
5691 (aarch64_st3_lane<mode>): Likewise.
5692 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
5694 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5696 * config/aarch64/aarch64-simd.md
5697 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
5698 Change all TImode operands to BLKmode.
5699 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
5700 Change all EImode operands to BLKmode.
5701 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
5702 Change all OImode operands to BLKmode.
5704 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
5705 and call set_mem_size.
5706 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
5708 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
5710 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
5712 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
5714 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
5716 (vec_store_lanesci_lane<mode>): Rename to...
5717 (aarch64_vec_store_lanesci_lane<mode>): ...this.
5719 (vec_store_lanesxi_lane<mode>): Rename to...
5720 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
5722 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
5723 aarch64_st4_lane<mode>): Follow renaming.
5725 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5727 * config/s390/s390.c (s390_const_operand_ok): Add missing
5730 2015-09-15 Richard Biener <rguenther@suse.de>
5733 * lto-streamer.h (lto_location_cache::current_sysp): Properly
5735 * lto-streamer-out.c (clear_line_info): Likewise.
5737 2015-09-15 Richard Biener <rguenther@suse.de>
5739 * doc/match-and-simplify.texi: Fix wording.
5741 2015-09-15 Bin Cheng <bin.cheng@arm.com>
5743 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
5744 unnecessary type conversion in op1.
5746 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
5748 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
5749 (dup_block_and_redirect): Delete function.
5750 (can_dup_for_shrink_wrapping): New function.
5751 (fix_fake_fallthrough_edge): New function.
5752 (try_shrink_wrapping): Rewrite function.
5753 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
5755 2015-09-14 Rich Felker <dalias@libc.org>
5757 * configure.ac: Change target pattern for sh TLS support
5758 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
5759 * configure: Regenerate.
5761 2015-09-14 Jeff Law <law@redhat.com>
5763 PR tree-optimization/47679
5764 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
5765 type rather than void *.
5767 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
5770 * diagnostic.c (diagnostic_initialize): Do not set
5771 some_warnings_are_errors.
5772 (diagnostic_finish): Use DK_WERROR count instead.
5773 (diagnostic_report_diagnostic): Do not set
5774 some_warnings_are_errors.
5775 * diagnostic.h (struct diagnostic_context): Remove
5776 some_warnings_are_errors.
5778 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
5780 * config/sparc/predicates.md (const_all_ones_operand): Use
5781 CONSTM1_RTX to simplify definition.
5783 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
5786 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
5789 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
5791 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
5792 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
5793 OPT_fshow_column to handled saved option cases.
5794 (append_compiler_options): Do not skip the above added options.
5796 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5799 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
5800 nopcrelative_literal_loads.
5801 (aarch64_classify_address): Likewise.
5802 (aarch64_constant_pool_reload_icode): Define.
5803 (aarch64_secondary_reload): Handle secondary reloads for
5805 (aarch64_override_options): Handle nopcrelative_literal_loads.
5806 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
5807 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5809 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5810 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
5811 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
5813 * doc/invoke.texi (mpc-relative-literal-loads): Document.
5815 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
5818 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
5819 sync_compare_and_swap_optab libcall to target_oval.
5821 2015-09-14 Marek Polacek <polacek@redhat.com>
5823 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
5825 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
5827 2015-09-11 Mark Wielaard <mjw@redhat.com>
5830 * toplev.c (check_global_declaration): Check and use
5831 warn_unused_const_variable.
5832 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
5833 (-Wunused-variable): Remove non-constant. For C implies
5834 -Wunused-const-variable.
5835 (-Wunused-const-variable): New.
5837 2015-09-14 Richard Biener <rguenther@suse.de>
5839 * doc/match-and-simplify.texi: Update for changed syntax
5840 of inner ifs and the new switch expression.
5842 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
5844 * config/i386/haswell.md: New file describing Haswell pipeline.
5845 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
5846 haswell-like processors.
5847 (ix86_reassociation_width): Increase reassociation width for 64-bit
5848 Haswell processor family.
5849 * config/i386/i386.md: Introduce haswell cpu and include new md file.
5851 2015-09-14 Richard Biener <rguenther@suse.de>
5853 * doc/match-and-simplify.texi: Fixup some formatting issues
5854 and document the 's' flag.
5856 2015-09-13 Olivier Hainque <hainque@adacore.com>
5857 Eric Botcazou <ebotcazou@adacore.com>
5859 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
5860 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
5861 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
5862 (TARGET_CPU_gr5): Likewise.
5863 (TARGET_CPU_gr6): Likewise.
5864 (MULTILIB_DEFAULTS): Likewise.
5865 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
5866 for mcpu=gr5 and mcpu=gr6.
5867 (MULTILIB_DIRNAMES): Adjust accordingly.
5869 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5871 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
5872 (mem_ref_p): Likewise.
5873 (outermost_indep_loop): Adjust.
5874 (mem_ref_in_stmt): Likewise.
5875 (determine_max_movement): Likewise.
5876 (mem_ref_alloc): Likewise.
5877 (record_mem_ref_loc): Likewise.
5878 (set_ref_stored_in_loop): Likewise.
5879 (mark_ref_stored): Likewise.
5880 (gather_mem_refs_stmt): Likewise.
5881 (mem_refs_may_alias_p): Likewise.
5882 (for_all_locs_in_loop): Likewise.
5883 (struct rewrite_mem_ref_loc): Likewise.
5884 (rewrite_mem_refs): Likewise.
5885 (struct first_mem_ref_loc_1): Likewise.
5886 (first_mem_ref_loc): Likewise.
5887 (struct sm_set_flag_if_changed): Likewise.
5888 (execute_sm_if_changed_flag_set): Likewise.
5889 (execute_sm): Likewise.
5890 (hoist_memory_references):
5891 (struct ref_always_accessed): Likewise.
5892 (ref_always_accessed_p): Likewise.
5893 (refs_independent_p): Likewise.
5894 (record_dep_loop): Likewise.
5895 (ref_indep_loop_p_1): Likewise.
5896 (ref_indep_loop_p_2): Likewise.
5897 (ref_indep_loop_p): Likewise.
5898 (can_sm_ref_p): Likewise.
5899 (find_refs_for_sm): Likewise.
5900 (tree_ssa_lim_finalize): Likewise.
5902 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5904 * dwarf2out.c (dw_attr_ref): Remove typedef.
5905 (dw_line_info_ref): Likewise.
5906 (pubname_ref): Likewise.
5907 (dw_ranges_ref): Likewise.
5908 (dw_ranges_by_label_ref): Likewise.
5909 (comdat_type_node_ref): Likewise.
5911 (get_AT_low_pc): Likewise.
5912 (get_AT_hi_pc): Likewise.
5913 (get_AT_string): Likewise.
5914 (get_AT_flag): Likewise.
5915 (get_AT_unsigned): Likewise.
5916 (get_AT_ref): Likewise.
5917 (get_AT_file): Likewise.
5918 (remove_AT): Likewise.
5919 (print_die): Likewise.
5920 (check_die): Likewise.
5921 (die_checksum): Likewise.
5922 (attr_checksum_ordered): Likewise.
5923 (struct checksum_attributes): Likewise.
5924 (collect_checksum_attributes): Likewise.
5925 (die_checksum_ordered): Likewise.
5926 (same_die_p): Likewise.
5927 (is_declaration_die): Likewise.
5928 (clone_die): Likewise.
5929 (clone_as_declaration): Likewise.
5930 (copy_declaration_context): Likewise.
5931 (break_out_comdat_types): Likewise.
5932 (copy_decls_walk): Likewise.
5933 (output_location_lists): Likewise.
5934 (external_ref_hasher::hash): Likewise.
5935 (optimize_external_refs_1): Likewise.
5936 (build_abbrev_table): Likewise.
5937 (size_of_die): Likewise.
5938 (unmark_all_dies): Likewise.
5939 (size_of_pubnames): Likewise.
5940 (output_die_abbrevs): Likewise.
5941 (output_die): Likewise.
5942 (output_pubnames): Likewise.
5943 (add_ranges_num): Likewise.
5944 (add_ranges_by_labels): Likewise.
5945 (add_high_low_attributes): Likewise.
5946 (gen_producer_string): Likewise.
5947 (dwarf2out_set_name): Likewise.
5948 (new_line_info_table): Likewise.
5949 (prune_unused_types_walk_attribs): Likewise.
5950 (prune_unused_types_update_strings): Likewise.
5951 (prune_unused_types): Likewise.
5952 (resolve_addr): Likewise.
5953 (optimize_location_lists_1): Likewise.
5954 (index_location_lists): Likewise.
5955 (dwarf2out_finish): Likewise.
5957 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5959 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
5961 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5963 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
5964 (dump_asserts_for): Adjust.
5965 (register_new_assert_for): Likewise.
5966 (process_assert_insertions): Likewise.
5967 (insert_range_assertions): Likewise.
5969 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5971 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
5973 (new_temp_expr_table): Adjust.
5974 (free_temp_expr_table): Likewise.
5975 (version_to_be_replaced_p): Likewise.
5976 (make_dependent_on_partition): Likewise.
5977 (add_to_partition_kill_list): Likewise.
5978 (remove_from_partition_kill_list): Likewise.
5979 (add_dependence): Likewise.
5980 (finished_with_expr): Likewise.
5981 (process_replaceable): Likewise.
5982 (kill_expr): Likewise.
5983 (kill_virtual_exprs): Likewise.
5984 (mark_replaceable): Likewise.
5985 (find_replaceable_in_bb): Likewise.
5986 (find_replaceable_exprs): Likewise.
5987 (debug_ter): Likewise.
5989 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5991 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
5992 (struct btr_user): Rename from btr_user_s.
5993 (struct btr_def): Rename from btr_def_s.
5994 (find_btr_def_group): Adjust.
5995 (add_btr_def): Likewise.
5996 (new_btr_user): Likewise.
5997 (note_other_use_this_block): Likewise.
5998 (compute_defs_uses_and_gen): Likewise.
5999 (link_btr_uses): Likewise.
6000 (build_btr_def_use_webs): Likewise.
6001 (block_at_edge_of_live_range_p): Likewise.
6002 (btr_def_live_range): Likewise.
6003 (combine_btr_defs): Likewise.
6004 (move_btr_def): Likewise.
6005 (migrate_btr_def): Likewise.
6006 (migrate_btr_defs): Likewise.
6008 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6010 * var-tracking.c (shared_hash_def): Rename to shared_hash.
6011 (shared_hash): Remove typedef.
6012 (struct dataflow_set): Adjust.
6013 (shared_hash_unshare): Likewise.
6014 (dataflow_set_merge): Likewise.
6015 (vt_initialize): Likewise.
6016 (vt_finalize): Likewise.
6018 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6020 * var-tracking.c (struct location_chain): Rename from
6022 (struct variable_part): Adjust.
6023 (variable_htab_free): Likewise.
6024 (unshare_variable): Likewise.
6025 (get_init_value): Likewise.
6026 (get_addr_from_local_cache): Likewise.
6027 (drop_overlapping_mem_locs): Likewise.
6028 (val_reset): Likewise.
6029 (struct variable_union_info): Likewise.
6030 (variable_union): Likewise.
6031 (find_loc_in_1pdv): Likewise.
6032 (insert_into_intersection): Likewise.
6033 (intersect_loc_chains): Likewise.
6034 (canonicalize_loc_order_check): Likewise.
6035 (canonicalize_values_mark): Likewise.
6036 (canonicalize_values_star): Likewise.
6037 (canonicalize_vars_star): Likewise.
6038 (variable_merge_over_cur): Likewise.
6039 (remove_duplicate_values): Likewise.
6040 (variable_post_merge_new_vals): Likewise.
6041 (variable_post_merge_perm_vals): Likewise.
6042 (find_mem_expr_in_1pdv): Likewise.
6043 (dataflow_set_preserve_mem_locs): Likewise.
6044 (dataflow_set_remove_mem_locs): Likewise.
6045 (variable_part_different_p): Likewise.
6046 (onepart_variable_different_p): Likewise.
6047 (find_src_set_src): Likewise.
6048 (dump_var): Likewise.
6049 (set_slot_part): Likewise.
6050 (clobber_slot_part): Likewise.
6051 (delete_slot_part): Likewise.
6052 (vt_expand_var_loc_chain): Likewise.
6053 (emit_note_insn_var_location): Likewise.
6054 (vt_finalize): Likewise.
6056 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6058 * dse.c (store_info_t): Remove typedef.
6059 (group_info_t): Likewise.
6060 (const_group_info_t): Likewise.
6061 (deferred_change_t): Likewise.
6062 (get_group_info): Adjust.
6063 (free_store_info): Likewise.
6064 (canon_address): Likewise.
6065 (clear_rhs_from_active_local_stores): Likewise.
6066 (record_store): Likewise.
6067 (replace_read): Likewise.
6068 (check_mem_read_rtx): Likewise.
6069 (scan_insn): Likewise.
6070 (remove_useless_values): Likewise.
6071 (dse_step1): Likewise.
6072 (dse_step2_init): Likewise.
6073 (dse_step2_nospill): Likewise.
6074 (scan_stores_nospill): Likewise.
6075 (scan_reads_nospill): Likewise.
6076 (dse_step3_exit_block_scan): Likewise.
6077 (dse_step3): Likewise.
6078 (dse_step5_nospill): Likewise.
6079 (dse_step6): Likewise.
6081 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6083 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
6084 (alias_set_entry): Remove typedef.
6085 (alias_set_subset_of): Adjust.
6086 (alias_sets_conflict_p): Likewise.
6087 (init_alias_set_entry): Likewise.
6088 (get_alias_set): Likewise.
6089 (new_alias_set): Likewise.
6090 (record_alias_subset): Likewise.
6092 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
6094 * doc/install.texi (Downloading the source): Mark up
6095 contrib/download_prerequisites properly and drop leading "./".
6097 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6099 * config/arc/arc.h: Remove define of STRUCT_VALUE.
6100 * config/lm32/lm32.h: Likewise.
6101 * config/mep/mep.h: Likewise.
6102 * config/visium/visium.h: Likewise.
6103 * system.h: Poison STRUCT_VALUE macro.
6105 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
6107 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
6108 CONSTANT_P operands.
6110 2015-09-11 David S. Miller <davem@davemloft.net>
6112 * config/sparc/constraints.md: Make "U" constraint a real register
6114 * config/sparc/sparc.c (TARGET_LRA_P): Define.
6115 (D_MODES, DF_MODES): Add missing cast.
6116 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
6117 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
6118 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
6120 * config/sparc/sparc.h (PROMOTE_MODE): Define.
6121 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
6122 provide these insn when flag_pic.
6124 2015-09-11 Jeff Law <law@redhat.com>
6126 PR tree-optimization/47679
6127 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
6128 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
6129 member with m_. Update inline member functions as necessary. Add
6131 * tree-ssa-scopedtables.c: Update const_and_copies's member
6132 functions to use m_ prefix to access the stack.
6134 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6136 * graphite-optimize-isl.c (disable_tiling): Remove.
6137 (get_schedule_for_band): Do not use disable_tiling.
6138 (get_prevector_map): Delete function.
6139 (enable_polly_vector): Remove.
6140 (get_schedule_for_band_list): Remove dead code.
6142 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
6144 * graphite-optimize-isl.c (get_tile_map): Refactor.
6145 (get_schedule_for_band): Same.
6146 (getScheduleForBand): Same.
6147 (get_prevector_map): Same.
6148 (get_schedule_for_band_list): Same.
6149 (get_schedule_map): Same.
6150 (get_single_map): Same.
6151 (apply_schedule_map_to_scop): Same.
6152 (optimize_isl): Same.
6154 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6157 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
6159 * config/aarch64/iterators.md (GPF_TF_F16): New.
6162 2015-09-10 Nathan Sidwell <nathan@acm.org>
6164 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
6165 (nvptx_reorg): Adjust comments.
6167 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
6170 * configure.ac: Check if setenv and unsetenv are declared.
6171 * configure: Rebuild.
6172 * config.in: Rebuild.
6173 * system.h: Declare setenv and unsetenv if not declared.
6175 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6177 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
6178 commentary to simplify permute mask adjustment equation.
6179 (special_handling_values): Add SH_VPERM.
6180 (const_load_sequence_p): New function.
6181 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
6182 the mask loaded from the constant pool.
6183 (adjust_vperm): New function.
6184 (handle_special_swappables): Call adjust_vperm.
6185 (dump_swap_insn_table): Handle SH_VPERM.
6187 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
6189 * shrink-wrap.c (requires_stack_frame_p): Remove static.
6190 * shrink-wrap.h (requires_stack_frame_p): Put back.
6192 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
6194 * reload1.c (elimination_costs_in_insn): Locally turn
6195 -Wmaybe-uninitialized into a warning.
6197 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
6199 * shrink-wrap.c (requires_stack_frame_p): Make static.
6200 (prepare_shrink_wrap): Likewise.
6201 (dup_block_and_redirect): Likewise.
6202 * shrink-wrap.h: Remove declarations of those functions.
6204 2015-09-10 Mark Wielaard <mjw@redhat.com>
6206 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
6208 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
6211 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
6212 missing simplify_gen_subreg.
6214 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6216 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
6217 the vector element is bigger than 64 bit.
6219 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6221 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
6222 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
6224 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6226 * config/s390/s390.c: Add V1TImode to constant pool modes.
6228 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6231 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
6232 predicate. Set predicable_short_it attr to "no".
6234 2015-09-10 Jiong Wang <jiong.wang@arm.com>
6236 PR rtl-optimization/67421
6237 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
6238 left wide shift tranformation.
6240 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
6242 * common/config/arc/arc-common.c: Remove references to A5.
6243 * config/arc/arc-opts.h: Likewise.
6244 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
6245 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
6246 * config/arc/t-arc-newlib: Likewise.
6248 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
6250 * config/arc/arc.md (length): Fix attribute length for conditional
6251 executed instructions with long immediate.
6253 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6255 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
6256 type for second alternative.
6258 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
6260 * doc/invoke.texi (Downloading GCC): Mention
6261 contrib/download_prerequisites script.
6263 2015-09-10 Jakub Jelinek <jakub@redhat.com>
6266 * gimplify.c (gimplify_omp_for): If inner stmt is not found
6267 for combined loop, assert seen_error () and return GS_ERROR.
6270 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
6271 if decl is already in outer->variables.
6274 * gimplify.c (gimplify_scan_omp_clauses): Instead of
6275 asserting that decl is not specified in octx->variables,
6276 break out of the loop if it is.
6279 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
6280 iterator is not explicitly determined, but is defined inside
6281 of the combined workshare region, handle it like if it has
6282 DECL_EXPR in OMP_FOR_PRE_BODY.
6284 2015-09-09 Nathan Sidwell <nathan@acm.org>
6286 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
6287 (*cmp<mode>): Add assembler spacing.
6288 (setcc_int<mode>, set_cc_float<mode>): Likewise.
6289 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
6291 (write_func_decl_from_insn): Refactor argument loops & comma emission.
6292 (nvptx_expand_call): Likewise.
6293 (nvptx_output_call_insn): Likewise.
6294 (nvptx_reorg_subreg): Add spacing.
6296 2015-09-09 Marek Polacek <polacek@redhat.com>
6299 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
6302 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
6305 * doc/invoke.texi ([Wsubobject-linkage]): Document.
6307 2015-09-09 Tom de Vries <tom@codesourcery.com>
6309 * params-list.h: Add missing copyright notice.
6311 2015-09-09 Nathan Sidwell <nathan@acm.org>
6313 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
6314 sel_truesi, not andsi.
6316 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6318 * config/arm/arm.md (*subsi3_compare0): Rename to...
6319 (subsi3_compare0): ... This.
6320 (modsi3): New define_expand.
6321 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
6322 when operand is power of 2.
6324 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6326 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
6327 (*neg<mode>2_compare0): Rename to...
6328 (neg<mode>2_compare0): ... This.
6329 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
6330 Move check for speed inside the if-then-elses. Reflect
6331 CSNEG sequence in MOD by power of 2 case.
6333 2015-09-09 Alan Modra <amodra@gmail.com>
6336 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
6337 reload replacement for PRE_MODIFY address reg.
6339 2015-09-09 Sebastian Pop <s.pop@samsung.com>
6341 PR tree-optimization/53852
6342 * config.in: Regenerate.
6343 * configure: Regenerate.
6344 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
6345 * graphite-optimize-isl.c (optimize_isl): Stop computation when
6346 PARAM_MAX_ISL_OPERATIONS is reached.
6347 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
6348 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
6349 result equal to isl_stat_ok as the status now can be isl_error_quota.
6350 (subtract_commutative_associative_deps): Same.
6351 (compute_deps): Same.
6353 2015-09-08 Aditya Kumar <hiraditya@msn.com>
6354 Sebastian Pop <s.pop@samsung.com>
6356 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6357 Return the parameter if it was saved in corresponding
6358 parameter_rename_map of the region.
6359 (copy_def): Copy def from sese region to the newly created region.
6360 (copy_internal_parameters): Copy all the internal parameters defined
6361 within a region to the newly created region.
6362 (graphite_regenerate_ast_isl): Copy parameters to the new region before
6363 translating isl to gimple.
6364 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
6365 the loop-nest does not have any data-references.
6366 (build_graphite_scops): Create a scop only when there is at least one
6368 (contains_only_close_phi_nodes): Deleted.
6369 (print_graphite_scop_statistics): Deleted
6370 (print_graphite_statistics): Deleted
6371 (limit_scops): Deleted.
6372 (build_scops): Removed call to limit_scops.
6373 * sese.c (new_sese): Construct.
6374 (free_sese): Destruct.
6375 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
6377 (set_rename): Pass sese region so that parameters inside the region can
6378 be added to its parameter_rename_map.
6379 (rename_uses): Pass sese region.
6380 (graphite_copy_stmts_from_block): Do not copy parameters that have been
6381 generated in the header of the scop. For each SSA_NAME in the
6382 parameter_rename_map rename its usage.
6383 (invariant_in_sese_p_rec): Return false if tree t is defined outside
6385 (scalar_evolution_in_region): If the tree t is invariant just return t.
6386 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
6387 struct sese to keep track of all the parameters which need renaming.
6388 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
6390 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
6392 2015-09-08 Tom de Vries <tom@codesourcery.com>
6394 * Makefile.in (generated_files): Add params.list.
6395 (params.list, s-params.list): Add rule.
6396 * params.h (enum compiler_param): Include params-list.h. Move define
6397 DEFPARAM, include params.def and undef DEFPARAM ...
6398 * params-list.h: ... here. New file.
6400 2015-09-08 David Malcolm <dmalcolm@redhat.com>
6402 * pretty-print.h (printer_fn): Fix typo in comment.
6404 2015-09-07 Jeff Law <law@redhat.com>
6406 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
6408 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6410 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
6411 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
6412 (arm_neon_fp16_hw): New.
6414 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6416 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
6417 UNITS_PER_WORD >= 4.
6419 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6421 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
6422 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
6423 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
6424 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
6425 (aarch64_float_extend_lo_v2df): Rename to...
6426 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
6428 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
6429 (float_extend_lo): Add v4sf.
6431 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
6432 * config/aarch64/iterators.md (VQ_HSF): New iterator.
6433 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
6434 (Vwide): New mode_attr.
6436 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6438 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
6439 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
6440 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
6441 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
6442 V4HF and V8HF variants to iterator.
6444 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
6446 * config/aarch64/iterators.md (VDQF_F16): New.
6447 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
6449 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6451 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
6452 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6453 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
6454 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
6455 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
6456 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6457 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
6458 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
6459 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
6460 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
6461 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
6462 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6463 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
6464 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
6465 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
6466 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
6467 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
6468 vld1q_dup_f16): New.
6470 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6472 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
6473 Reparameterize to...
6474 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
6475 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
6476 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
6478 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
6480 (float_truncate_lo_): Use BUILTIN_VDF iterator.
6482 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
6484 * config/aarch64/iterators.md (VDF, Vdtype): New.
6485 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
6487 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6489 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
6490 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
6491 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
6492 Add __builtin_aarch64_simd_hf.
6493 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
6494 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
6495 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
6496 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
6497 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
6498 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
6499 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
6500 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
6501 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
6503 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
6504 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
6505 (VDC, Vdbl): Add V4HF.
6507 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6509 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
6510 V4HFmode and V8HFmode.
6511 (aarch64_split_simd_move): Add case for V8HFmode.
6512 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
6513 (aarch64_simd_builtin_std_type): Handle HFmode.
6514 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
6516 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
6517 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
6518 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
6520 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
6523 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
6524 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
6526 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
6527 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
6528 vst1q_lane_f16): New.
6529 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
6530 (VALLDI_F16, VALL_F16): New.
6531 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
6532 Add cases for V4HF and V8HF.
6533 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
6535 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6537 * config/arm/arm-builtins.c (VAR11, VAR12): New.
6538 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
6539 vld4_dup): Add v4hf variant.
6540 (vget_high, vget_low): Add v8hf variant.
6541 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
6542 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
6543 v4hf and v8hf variants.
6545 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
6547 (V_DOUBLE): Add case for V4HF.
6549 (V_HALF): Add case for V8HF.
6550 (VDQX): Add V4HF, V8HF.
6551 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
6552 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
6554 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
6555 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
6556 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
6557 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
6558 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
6559 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
6560 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
6561 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
6562 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
6564 (neon_vcreate, neon_vreinterpretv8qi<mode>,
6565 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6566 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
6567 Change VDX to VD_RE.
6569 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
6570 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
6571 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
6573 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
6574 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
6575 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
6576 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
6577 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
6578 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
6579 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
6580 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
6581 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
6583 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6585 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
6586 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
6587 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
6588 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
6589 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
6590 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
6591 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
6592 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
6593 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
6594 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
6597 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6599 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
6601 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
6603 * config/arm/arm-builtins.c (v8hf_UP): New.
6604 (arm_init_simd_builtin_types): Initialise Float16x8_t.
6606 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
6608 * config/arm/arm_neon.h (float16x8_t): New typedef.
6610 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
6612 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
6613 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
6614 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
6615 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
6616 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
6617 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
6618 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
6619 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
6620 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
6621 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
6623 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
6625 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
6626 non-alphanumeric characters in the symbol name.
6628 2015-09-07 Marek Polacek <polacek@redhat.com>
6631 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
6634 2015-09-07 Marek Polacek <polacek@redhat.com>
6636 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
6638 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
6640 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
6643 2015-09-04 Jakub Jelinek <jakub@redhat.com>
6646 * tree-ssa-live.c: Include cfgloop.h.
6647 (remove_unused_locals): Clear loop->simduid if simduid is about
6648 to be removed from cfun->local_decls.
6650 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6653 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
6656 2015-09-04 Tom de Vries <tom@codesourcery.com>
6658 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
6660 2015-09-04 Jeff Law <law@redhat.com>
6662 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
6663 unnecessary constructor. It's now trivial and implemented inside...
6664 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
6665 constructor. Add comments to various methods. Remove unused
6667 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
6668 * tree-vrp.c (identify_jump_threads): Likewise.
6669 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
6671 (thread_across_edge): Similarly.
6672 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
6673 arguments in constructor call.
6675 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
6677 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
6678 temp path contains a '-'.
6680 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
6681 Petr Murzin <petr.murzin@intel.com>
6682 Kirill Yukhin <kirill.yukhin@intel.com>
6684 * config/i386/i386-builtin-types.def
6685 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
6686 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
6687 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
6688 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
6689 * config/i386/i386.c
6690 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
6691 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6692 IX86_BUILTIN_SCATTERALTDIV16SI.
6693 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
6694 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
6695 __builtin_ia32_scatteraltdiv8si.
6696 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
6697 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
6698 IX86_BUILTIN_SCATTERALTDIV16SI.
6699 (ix86_vectorize_builtin_scatter): New.
6700 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
6701 ix86_vectorize_builtin_scatter.
6703 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
6704 Petr Murzin <petr.murzin@intel.com>
6705 Kirill Yukhin <kirill.yukhin@intel.com>
6707 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
6708 * doc/tm.texi: Regenerate.
6709 * target.def: Add scatter builtin.
6710 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
6711 for loads/stores in case of gather/scatter accordingly.
6712 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6713 STMT_VINFO_GATHER_P(S).
6714 (vect_check_gather): Rename to ...
6715 (vect_check_gather_scatter): this.
6716 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
6717 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
6718 (vect_check_gather_scatter): Use it instead of vect_check_gather.
6719 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
6720 variable and new checkings for it accordingly.
6722 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
6723 STMT_VINFO_GATHER_P(S).
6724 (vect_check_gather_scatter): Use it instead of vect_check_gather.
6725 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
6727 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
6729 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
6731 (mulv16qi3): New define_expand.
6733 2015-09-03 Martin Sebor <msebor@redhat.com>
6736 * doc/extend.texi (Other Builtins): Document when the address
6737 of a built-in function can be taken.
6739 2015-09-03 Richard Biener <rguenther@suse.de>
6741 * dwarf2out.c (flush_limbo_die_list): Split out from ...
6742 (dwarf2out_early_finish): ... here.
6743 (dwarf2out_finish): Do not call dwarf2out_early_finish but
6744 flush_limbo_die_list. Assert we have no deferred asm names.
6746 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6748 * optabs.c (expand_binop): Don't create a broadcast vector with a
6749 source element wider than the inner mode.
6751 2015-09-03 Richard Biener <rguenther@suse.de>
6753 * varasm.c (output_constant): Use fold_convert instead of
6756 2015-09-03 Tom de Vries <tom@codesourcery.com>
6758 PR tree-optimization/65637
6759 * omp-low.c (expand_omp_for_static_chunk): Handle case that
6760 fin_bb has 2 predecessors.
6762 2015-09-03 Tom de Vries <tom@codesourcery.com>
6764 PR tree-optimization/65637
6765 * omp-low.c (find_phi_with_arg_on_edge): New function.
6766 (expand_omp_for_static_chunk): Fix inner loop phi.
6768 2015-09-03 Tom de Vries <tom@codesourcery.com>
6770 PR tree-optimization/65637
6771 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
6774 2015-09-03 Tom de Vries <tom@codesourcery.com>
6776 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
6778 2015-09-03 Tom de Vries <tom@codesourcery.com>
6780 * doc/invoke.texi (parloops-chunk-size): Add item.
6781 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
6782 * tree-parloops.c: Include params.h.
6783 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
6784 param parloops-chunk-size is used.
6786 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6789 * fold-const.c (fold_binary_loc) : Move
6790 Transform (x >> c) << c into x & (-1<<c) or
6791 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
6792 types using simplify and match.
6793 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
6794 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
6796 2015-09-03 Richard Biener <rguenther@suse.de>
6799 * tree-ssa-structalias.c (ctor_for_analysis): New function.
6800 (create_variable_info_for_1): Use ctor_for_analysis instead
6802 (create_variable_info_for): Likewise.
6804 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
6807 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
6808 in new callgraph edge.
6810 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
6815 * config/aarch64/aarch64-simd.md
6816 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
6817 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
6818 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
6819 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
6821 2015-09-02 Alan Modra <amodra@gmail.com>
6823 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
6824 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
6825 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
6827 2015-09-02 Alan Modra <amodra@gmail.com>
6830 * config/rs6000/predicates.md (current_file_function_operand): Don't
6831 return true for weak symbols.
6832 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
6834 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
6835 Andrew Bennett <andrew.bennett@imgtec.com>
6837 * config/mips/mips-opts.h (mips_cb_setting): New enum.
6838 * config/mips/mips-protos.h: Add definitions for
6839 mips_output_jump and mips_output_equal_conditional_branch
6840 * gcc/config/mips/mips.c (MIPS_JR): Change to support the
6842 (mips_emit_compare): Add support for the MIPS R6 conditional
6844 (mips_process_sync_loop): Likewise.
6845 (mips_output_order_conditional_branch): Likewise.
6846 (mips16_build_call_stub): Change MIPS_CALL to
6848 (mips_print_operand_punctuation): Update 's' case to only
6849 apply to micromips r2.
6850 (mips_adjust_insn_length): Add support for forbidden slot
6852 (mips_avoid_hazard): Likewise.
6853 (mips_reorg_process_insns): Likewise.
6854 (mips_output_jump): New function.
6855 (mips_output_equal_conditional_branch): Likewise.
6856 (mips_output_conditional_branch): Use jrc/bc if compact
6857 branch support is enabled. Ensure the forbidden slots
6858 between the two branch instructions is filled with a nop.
6859 (mips_option_override): Add support to process the compact
6860 branch option and set the correct defaults. Prevent
6861 non-explict relocs being using for MIPS R6.
6862 (mips_trampoline_init): Add compact branch support.
6863 (mips_mult_zero_zero_cost): Allow zero initialisation of
6864 accumulators with TARGET_DSP.
6865 * gcc/config/mips/mips.h (TARGET_CB_NEVER): New define.
6866 (TARGET_CB_MAYBE): New define.
6867 (TARGET_CB_ALWAYS): New define.
6868 (ISA_HAS_DELAY_SLOTS): New define.
6869 (ISA_HAS_COMPACT_BRANCHES): New define.
6870 (ISA_HAS_JRC): New define.
6871 (MIPS_BRANCH_C): New define.
6872 (MIPS_CALL): Removed.
6873 (MICROMIPS_J): Removed.
6874 * config/mips/mips.md (compact_form): New attr.
6875 (hazard): Add support for forbidden slots.
6876 (define_delay): Add support for compact branches.
6877 (*branch_order<mode>): Likewise.
6878 (*branch_order<mode>_inverted): Likewise.
6879 (*branch_equality<mode>): Likewise.
6880 (*branch_equality<mode>_inverted): Likewise.
6881 (*jump_absolute): Likewise.
6882 (*jump_pic): Likewise.
6883 (indirect_jump): Use mips_output_jump to produce assembly output.
6884 (tablejump_<mode>"): Likewise.
6885 (*<optab>"): Likewise.
6886 (<optab>_internal): Likewise.
6887 (sibcall_internal): Likewise.
6888 (sibcall_value_internal): Likewise.
6889 (sibcall_value_multiple_internal): Likewise.
6890 (call_internal): Likewise.
6891 (call_split): Likewise.
6892 (call_internal_direct): Likewise.
6893 (call_direct_split): Likewise.
6894 (call_value_internal): Likewise.
6895 (call_value_split): Likewise.
6896 (call_value_internal_direct): Likewise.
6897 (call_value_direct_split): Likewise.
6898 (call_value_multiple_internal): Likewise.
6899 (call_value_multiple_split): Likewise.
6900 (mips_get_fcsr_mips16_<mode>): Likewise.
6901 (mips_set_fcsr_mips16_<mode>): Likewise.
6902 (tls_get_tp_mips16_<mode>): Likewise.
6903 * config/mips/mips.opt: Add -mcompact-branches option.
6904 * config/mips/predicates.md (order_operator): Ensure the
6905 conditional compact branches are only used if the ISA them.
6906 * doc/invoke.texi: Document -mcompact-branches option.
6908 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
6911 * lra-lives.c (process_bb_lives): Process move pseudos with the
6912 same value for copies and preferences
6913 * lra-constraints.c (match_reload): Create match reload pseudo
6914 with the same value from single dying input pseudo.
6916 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
6919 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
6921 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
6923 * trans-mem.c: Add contributed-by.
6924 * trans-mem.h: Same.
6926 2015-09-01 Richard Biener <rguenther@suse.de>
6928 * expr.c (expand_expr_real_1): For expanding TERed defs
6929 set the current location to that of the def if not UNKNOWN.
6931 2015-09-01 David Sherwood <david.sherwood@arm.com>
6933 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
6935 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6937 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
6938 then_cost, else_cost fields. Change branch_cost field to unsigned int.
6939 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
6941 (noce_simple_bbs): New function.
6942 (noce_try_move): Bail if basic blocks are not simple.
6943 (noce_try_store_flag): Likewise.
6944 (noce_try_store_flag_constants): Likewise.
6945 (noce_try_addcc): Likewise.
6946 (noce_try_store_flag_mask): Likewise.
6947 (noce_try_cmove): Likewise.
6948 (noce_try_minmax): Likewise.
6949 (noce_try_abs): Likewise.
6950 (noce_try_sign_mask): Likewise.
6951 (noce_try_bitop): Likewise.
6952 (bbs_ok_for_cmove_arith): New function.
6953 (noce_emit_all_but_last): Likewise.
6954 (noce_emit_insn): Likewise.
6955 (noce_emit_bb): Likewise.
6956 (noce_try_cmove_arith): Handle non-simple basic blocks.
6957 (insn_valid_noce_process_p): New function.
6958 (contains_mem_rtx_p): Likewise.
6959 (bb_valid_for_noce_process_p): Likewise.
6960 (noce_process_if_block): Allow non-simple basic blocks
6963 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
6965 * tree-ssa-dom.c (record_equivalences_from_phis,
6966 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
6967 (lookup_avail_expr): Likewise, and remove comment and unused temp.
6969 2015-09-01 Nick Clifton <nickc@redhat.com>
6971 * config/msp430/msp430.opt (mcpu): Fix typo.
6973 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6975 * config/aarch64/aarch64.c (aarch64_set_current_function):
6976 Re-layout any vector parameters have non-simd layout.
6977 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
6979 (aarch64_simd_expand_args): Delete call to the above.
6981 2015-08-31 Mike Frysinger <vapier@gentoo.org>
6983 * doc/invoke.texi (asan-stack): Add space before option.
6985 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
6987 * tree.h (zerop): New function.
6988 * tree.c (zerop): Likewise.
6989 (element_precision): Handle expressions.
6990 * match.pd (define_predicates): Add zerop.
6991 (x <= +Inf): Fix comment.
6992 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
6993 * fold-const.c (fold_binary_loc): ... here. Remove.
6995 2015-08-31 Richard Biener <rguenther@suse.de>
6998 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
7000 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
7002 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
7003 (CEXPI): New operator list.
7004 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
7005 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
7007 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
7009 2015-08-31 Tom de Vries <tom@codesourcery.com>
7011 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
7012 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
7014 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
7015 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
7016 (rewrite_into_loop_closed_ssa): ... here.
7017 (replace_uses_in_dominated_bbs): Remove function.
7018 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
7019 rewrite_into_loop_closed_ssa_1.
7021 2015-08-31 Michael Matz <matz@suse.de>
7023 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
7024 enter entry and exit blocks for reverse post order.
7026 2015-08-31 Richard Biener <rguenther@suse.de>
7028 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
7029 (lto_location_cache::current_sysp): Likewise.
7030 (output_block::current_sysp): Likewise.
7031 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
7032 (lto_location_cache::apply_location_cache): Properly record
7033 system header locations.
7034 (lto_location_cache::input_location): Input whether a file
7036 * lto-streamer-out.c (lto_output_location): Stream whether a file
7039 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7042 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
7044 2015-08-31 Tom de Vries <tom@codesourcery.com>
7046 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
7047 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
7048 Improve function header comments.
7050 2015-08-30 Michael Collison <michael.collison@linaro.org>
7053 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
7056 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7058 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
7059 special_handling bitfield.
7060 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
7061 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
7062 that represents a general xxpermdi.
7063 (insn_is_swappable_p): Add handling for vec_concat of two
7064 doublewords, which maps to a specific xxpermdi.
7065 (adjust_xxpermdi): New function.
7066 (adjust_concat): Likewise.
7067 (handle_special_swappables): Call adjust_xxpermdi and
7069 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
7071 2015-08-30 Rich Felker <dalias@libc.org>
7073 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
7074 case instead of sh[123456ble]-*-*.
7076 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7078 * ira.c (print_unform_and_important_classes,
7079 print_translated_classes): Remove reg_class_names static array.
7080 (print_unform_and_important_classes): Rename to ...
7081 (print_uniform_and_important_classes): ... this.
7082 (ira_debug_allocno_classes): Update accordingly.
7084 2015-08-29 Tom de Vries <tom@codesourcery.com>
7086 PR tree-optimization/46193
7087 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
7090 2015-08-28 Jeff Law <law@redhat.com>
7093 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
7094 unable to find X NE 0 in the tables, return X as the simplified
7096 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
7097 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
7099 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
7100 after removing the control flow statement and unnecessary edges.
7102 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
7105 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7107 PR tree-optimization/67283
7108 * tree-sra.c (type_consists_of_records_p): Rename to...
7109 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7111 (completely_scalarize_record): Rename to...
7112 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
7114 (scalarize_elem): New.
7116 2015-08-28 Jiong Wang <jiong.wang@arm.com>
7118 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
7119 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
7120 (aarch64_symbol_type): Likewise.
7121 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7123 (aarch64_expand_mov_immediate): Likewise.
7124 (aarch64_print_operand): Likewise.
7125 (aarch64_classify_tls_symbol): Likewise.
7127 2015-08-28 Richard Biener <rguenther@suse.de>
7129 * cgraphunit.c (symbol_table::compile): Move early debug generation
7131 (symbol_table::finalize_compilation_unit): ... back here and
7132 add a !seen_error () guard.
7134 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7136 * toplev.c (process_options): Do not use flag_loop_block,
7137 flag_loop_interchange, and flag_loop_strip_mine. Add check for
7138 flag_loop_optimize_isl.
7140 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7142 * Makefile.in (OBJS): Remove graphite-blocking.o and
7143 graphite-interchange.o.
7144 * common.opt (floop-strip-mine, floop-interchange, floop-block):
7145 Alias of floop-nest-optimize.
7146 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
7147 Document as alias of -floop-nest-optimize.
7148 * graphite-blocking.c: Remove.
7149 * graphite-interchange.c: Remove.
7150 * graphite-optimize-isl.c: Include dumpfile.h.
7151 (getScheduleForBand): Add dump for tiled loops. Use
7152 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
7153 * graphite-poly.c (scop_max_loop_depth): Remove.
7154 (print_scattering_function_1): Remove.
7155 (print_scattering_function): Remove.
7156 (print_scattering_functions): Remove.
7157 (debug_scattering_function): Remove.
7158 (debug_scattering_functions): Remove.
7159 (apply_poly_transforms): Remove use of flag_loop_block,
7160 flag_loop_strip_mine, and flag_loop_interchange.
7161 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
7163 (print_pdr_access_layout): Remove.
7164 (print_pdr): Print ISL representation.
7165 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
7166 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
7168 (openscop_print_pbb_domain): Remove.
7169 (print_pbb): Remove call to print_scattering_function.
7170 (openscop_print_scop_context): Remove.
7171 (print_scop_context): Do not print matrices anymore.
7172 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
7173 SCOP_TRANSFORMED_SCHEDULE.
7174 (print_isl_set): Add printing of a new line.
7175 (print_isl_map): Same.
7176 (print_isl_aff): Same.
7177 (print_isl_constraint): Same.
7178 (loop_to_lst): Remove.
7179 (scop_to_lst): Remove.
7180 (lst_indent_to): Remove.
7181 (print_lst): Remove.
7182 (debug_lst): Remove.
7183 (dot_lst_1): Remove.
7185 (reverse_loop_at_level): Remove.
7186 (reverse_loop_for_pbbs): Remove.
7187 * graphite-poly.h (pdr_dim_iter_domain): Remove.
7188 (pdr_nb_params): Remove.
7189 (pdr_alias_set_dim): Remove.
7190 (pdr_subscript_dim): Remove.
7191 (pdr_iterator_dim): Remove.
7192 (pdr_parameter_dim): Remove.
7193 (same_pdr_p): Remove.
7194 (struct poly_scattering): Remove.
7195 (struct poly_bb): Remove _original, _transformed, _saved.
7196 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
7197 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
7198 (PBB_NB_LOCAL_VARIABLES): Remove.
7199 (PBB_NB_SCATTERING_TRANSFORM): Remove.
7200 (schedule_to_scattering): Remove.
7201 (number_of_write_pdrs): Remove.
7202 (pbb_dim_iter_domain): Remove.
7203 (pbb_nb_params): Remove.
7204 (pbb_nb_scattering_orig): Remove.
7205 (pbb_nb_scattering_transform): Remove.
7206 (pbb_nb_dynamic_scattering_transform): Remove.
7207 (pbb_nb_local_vars): Remove.
7208 (pbb_iterator_dim): Remove.
7209 (pbb_parameter_dim): Remove.
7210 (psco_scattering_dim): Remove.
7211 (psct_scattering_dim): Remove.
7212 (psct_local_var_dim): Remove.
7213 (psco_iterator_dim): Remove.
7214 (psct_iterator_dim): Remove.
7215 (psco_parameter_dim): Remove.
7216 (psct_parameter_dim): Remove.
7217 (psct_dynamic_dim): Remove.
7218 (psct_static_dim): Remove.
7219 (psct_add_local_variable): Remove.
7220 (new_lst_loop): Remove.
7221 (new_lst_stmt): Remove.
7224 (lst_add_loop_under_loop): Remove.
7225 (lst_depth): Remove.
7226 (lst_dewey_number): Remove.
7227 (lst_dewey_number_at_depth): Remove.
7230 (lst_find_pbb): Remove.
7231 (find_lst_loop): Remove.
7232 (lst_find_first_pbb): Remove.
7233 (lst_empty_p): Remove.
7234 (lst_find_last_pbb): Remove.
7235 (lst_contains_p): Remove.
7236 (lst_contains_pbb): Remove.
7237 (lst_create_nest): Remove.
7238 (lst_remove_from_sequence): Remove.
7239 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
7240 (lst_niter_for_loop): Remove.
7241 (pbb_update_scattering): Remove.
7242 (lst_update_scattering_under): Remove.
7243 (lst_update_scattering): Remove.
7244 (lst_insert_in_sequence): Remove.
7245 (lst_replace): Remove.
7246 (lst_substitute_3): Remove.
7247 (lst_distribute_lst): Remove.
7248 (lst_remove_all_before_including_pbb): Remove.
7249 (lst_remove_all_before_excluding_pbb): Remove.
7250 (struct scop): Remove original_schedule, transformed_schedule, and
7252 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
7253 (SCOP_SAVED_SCHEDULE): Remove.
7254 (poly_scattering_new): Remove.
7255 (poly_scattering_free): Remove.
7256 (poly_scattering_copy): Remove.
7257 (store_scattering_pbb): Remove.
7258 (store_lst_schedule): Remove.
7259 (restore_lst_schedule): Remove.
7260 (store_scattering): Remove.
7261 (restore_scattering_pbb): Remove.
7262 (restore_scattering): Remove.
7263 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
7264 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
7265 compute the scattering polyhedron dimension from the dimension of
7267 (build_scop_scattering): Update call to
7268 build_pbb_scattering_polyhedrons.
7269 (build_poly_scop): Remove call to scop_to_lst.
7270 * graphite.c (graphite_transform_loops): Add call to print_scop.
7271 (gate_graphite_transforms): Remove use of flag_loop_block,
7272 flag_loop_interchange, and flag_loop_strip_mine.
7274 2015-08-27 Sebastian Pop <s.pop@samsung.com>
7276 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
7277 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
7278 -floop-nest-optimize.
7279 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
7280 (generate_luj_sepclass): Remove.
7281 (generate_luj_options): Remove.
7282 (set_options): Remove opt_luj.
7283 (scop_to_isl_ast): Remove opt_luj.
7284 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
7285 flag_loop_unroll_jam.
7286 (getPrevectorMap_full): Remove.
7287 (getScheduleForBandList): Remove map_sepcl.
7288 (getScheduleMap): Same.
7289 (apply_schedule_map_to_scop): Remove sepcl.
7290 (optimize_isl): Same.
7291 * graphite-poly.c (apply_poly_transforms): Remove check for
7292 flag_loop_unroll_jam.
7293 (new_poly_bb): Remove map_sepclass.
7294 * graphite-poly.h (struct poly_bb): Same.
7295 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
7296 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
7297 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
7298 * toplev.c (process_options): Remove flag_loop_unroll_jam.
7300 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
7303 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
7305 (UNSPEC_ADD_CARRY): Remove.
7306 (addqi3_cconly_overflow): New expander.
7307 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
7308 Adjust for changed add<mode>3_carry.
7309 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
7310 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
7311 (<plusminus_insn><mode>3_carry): Remove expander.
7312 (*<plusminus_insn><mode>3_carry): Split insn pattern to
7313 add<mode>3_carry and sub<mode>3_carry.
7314 (plusminus_carry_mnemonic): Remove code attribute.
7315 (add<mode>3_carry): Canonicalize insn pattern.
7316 (*addsi3_carry_zext): Ditto.
7317 (sub<mode>3_carry): Ditto.
7318 (*subsi3_carry_zext): Ditto.
7319 (adcx<mode>3): Remove insn pattern.
7320 (addcarry<mode>): New insn pattern.
7321 (subborrow<mode>): Ditto.
7322 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
7323 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
7324 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
7325 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
7326 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
7327 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
7328 Rewrite expander to not clobber carry flag chains.
7330 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
7332 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
7333 instead of a rotate.
7335 2015-08-27 Marek Polacek <polacek@redhat.com>
7338 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
7339 an entry into an irreducible region.
7341 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7343 * configure: Regenerate.
7345 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7347 PR tree-optimization/67283
7348 * tree-sra.c (type_consists_of_records_p): Rename to...
7349 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
7351 (completely_scalarize_record): Rename to...
7352 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
7353 (scalarize_elem): New.
7355 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
7357 * tree-sra.c (completely_scalarize_var): Rename to...
7358 (create_total_scalarization_access): ... Here. Drop call to
7359 completely_scalarize_record.
7361 (analyze_all_variable_accesses): Replace completely_scalarize_var
7362 with create_total_scalarization_access and completely_scalarize_record.
7364 2015-08-27 Alan Modra <amodra@gmail.com>
7367 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
7370 2015-08-27 Richard Biener <rguenther@suse.de>
7372 * passes.c (rest_of_decl_compilation): Guard early_global_decl
7373 call with !seen_error ().
7374 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
7375 early debug generation and finish...
7376 (symbol_table::compile): ... here to put it after a !seen_error ()
7379 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7381 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
7384 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7385 Andre Vieira <andre.simoesdiasvieira@arm.com>
7387 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
7388 (*cb<optab><mode>1): Likewise.
7389 (*tb<optab><mode>1): Likewise.
7390 (*cb<optab><mode>1): Likewise.
7391 * config/aarch64/iterators.md (inv_cb): New code attribute.
7393 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
7394 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
7396 2015-08-27 Richard Biener <rguenther@suse.de>
7398 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
7400 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
7402 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
7405 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
7407 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
7410 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
7412 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
7413 floating point in VSX registers.
7414 (rs6000_output_move_128bit): Always print out the set insn if we
7415 can't generate an appropriate 128-bit move.
7416 (rs6000_generate_compare): Add support for IEEE 128-bit floating
7417 point in VSX registers comparisons.
7418 (rs6000_expand_float128_convert): Likewise.
7420 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
7421 predicate for only GPR hard registers.
7423 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
7424 modes to iterators. Add new iterators for moving 128-bit values in
7425 scalar FPR registers and VSX registers.
7426 (FMOVE128): Likewise.
7427 (FMOVE128_FPR): Likewise.
7428 (FMOVE128_GPR): Likewise.
7429 (FMOVE128_VSX): Likewise.
7430 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
7435 (RELOAD): Add IEEE 128-bit floating point modes.
7436 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
7437 floating point in VSX registers modes.
7438 (signbit<mode>2, IBM128 iterator): Likewise.
7439 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
7440 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
7442 (neg<mode>2, TFIFKF iterator): Likewise.
7443 (negtf2_internal): Likewise.
7445 (abs<mode>2, TFIFKF iterator): Likewise.
7446 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
7447 VSX insn support for negate, absolute value, and negative absolute
7449 (ieee_128bit_vsx_neg<mode>2): Likewise.
7450 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
7451 (ieee_128bit_vsx_abs<mode>2): Likewise.
7452 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
7453 (ieee_128bit_vsx_nabs<mode>2): Likewise.
7454 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
7455 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
7456 floating point in VSX registers.
7457 (unpack<mode>_dm): Likewise.
7458 (unpack<mode>_nodm): Likewise.
7459 (pack<mode>): Likewise.
7460 (unpackv1ti): Likewise.
7461 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
7462 (packv1ti): Likewise.
7463 (pack<mode>, FMOVE128_VSX iterator): Likewise.
7464 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
7466 (extenddftf2_internal): Likewise.
7467 (trunctfdf2): Likewise.
7468 (trunctfdf2_internal2): Likewise.
7469 (fix_trunc_helper): Likewise.
7470 (fix_trunctfdi2"): Likewise.
7471 (floatditf2): Likewise.
7472 (floatuns<mode>tf2): Likewise.
7473 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7474 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7475 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7476 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7477 (float<SDI:mode><IFKF:mode>2): Likewise.
7478 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7480 2015-08-26 Renlin Li <renlin.li@arm.com>
7482 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
7484 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
7485 Jiong Wang <jiong.wang@arm.com>
7487 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
7488 (tlsie_tiny_<mode>): New define_insn.
7489 (tlsie_tiny_sidi): Likewise.
7490 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
7492 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
7493 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
7495 (aarch64_expand_mov_immediate): Likewise.
7496 (aarch64_print_operand): Likewise.
7497 (arch64_classify_tls_symbol): Likewise.
7499 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7501 * config/arm/arm-arches.def: Replace single value flags with
7502 an initializer built from ARM_FSET_MAKE_CPU1.
7503 * config/arm/arm-cores.def: Likewise.
7504 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
7505 derivation from the ARM_CORE macro definition, use the given value
7507 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
7508 ARM_ARCH macro definition, use the given value instead.
7510 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7512 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
7514 (struct builtin_description): Replace field mask with field
7516 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
7517 (IWMMXT2_BUILTIN): Likewise.
7518 (IWMMXT2_BUILTIN2): Likewise.
7519 (FP_BUILTIN): Likewise.
7520 (CRC32_BUILTIN): Likewise.
7521 (CRYPTO_BUILTIN): Likewise.
7522 (iwmmx_mbuiltin): Likewise.
7523 (iwmmx2_mbuiltin): Likewise.
7524 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
7525 struct builtin_description.
7527 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7529 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
7530 (struct builtin_description): Change type of mask to unsigned
7532 * config/arm/arm-protos.h (insn_flags): Declare as type
7534 (tune_flags): Likewise.
7535 * config/arm/arm.c (feature_count): New.
7536 (insn_flags): Define as type arm_feature_set.
7537 (tune_flags): Likewise.
7538 (struct processors): Define field flags as type arm_feature_set.
7539 (all_cores): Update for change to struct processors.
7540 (all_architectures): Likewise.
7541 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
7543 (arm_option_override_internal): Likewise.
7544 (arm_option_override): Likewise.
7546 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
7547 Jiong Wang <jiong.wang@arm.com>
7549 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
7550 tls size for tiny, small, large memory model.
7551 (aarch64_load_symref_appropriately): Support new symbol types.
7552 (aarch64_expand_mov_immediate): Likewise.
7553 (aarch64_print_operand): Likewise.
7554 (aarch64_classify_tls_symbol): Likewise.
7555 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
7556 (aarch64_symbol_type): Likewise.
7557 * config/aarch64/aarch64.md (tlsle): Deleted.
7558 (tlsle12_<mode>): New define_insn.
7559 (tlsle24_<mode>): Likewise.
7560 (tlsle32_<mode>): Likewise.
7561 (tlsle48_<mode>): Likewise.
7562 * doc/sourcebuild.texi (AArch64-specific attributes): Document
7565 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7567 * config/arm/arm-protos.h (FL_NONE): New.
7569 (arm_feature_set): New.
7570 (ARM_FSET_MAKE): New.
7571 (ARM_FSET_MAKE_CPU1): New.
7572 (ARM_FSET_MAKE_CPU2): New.
7573 (ARM_FSET_CPU1): New.
7574 (ARM_FSET_CPU2): New.
7575 (ARM_FSET_EMPTY): New.
7576 (ARM_FSET_ANY): New.
7577 (ARM_FSET_HAS_CPU1): New.
7578 (ARM_FSET_HAS_CPU2): New.
7579 (ARM_FSET_HAS_CPU): New.
7580 (ARM_FSET_ADD_CPU1): New.
7581 (ARM_FSET_ADD_CPU2): New.
7582 (ARM_FSET_DEL_CPU1): New.
7583 (ARM_FSET_DEL_CPU2): New.
7584 (ARM_FSET_UNION): New.
7585 (ARM_FSET_INTER): New.
7586 (ARM_FSET_XOR): New.
7587 (ARM_FSET_EXCLUDE): New.
7588 (AFM_FSET_IS_EMPTY): New.
7589 (ARM_FSET_CPU_SUBSET): New.
7591 2015-08-26 Jiong Wang <jiong.wang@arm.com>
7593 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
7594 SYMBOL_TLSLE to SYMBOL_TLSLE24.
7595 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
7597 (aarch64_expand_mov_immediate): Likewise.
7598 (aarch64_print_operand): Likewise.
7599 (aarch64_classify_symbol): Likewise.
7601 2015-08-26 Jiong Wang <jiong.wang@arm.com>
7603 * config/aarch64/aarch64.opt (mtls-size): New entry.
7604 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
7605 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
7606 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
7608 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
7610 * gcc/config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
7611 ARM_CORE entry. Fix some white-space.
7612 * gcc/config/arm/arm.c: Remove FL_FOR_ARCH derivation from
7613 ARM_CORE definition.
7615 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
7617 * fold-const.c (fold_binary_loc) : Move Optimize
7618 root(x)*root(y) as root(x*y) to match.pd.
7619 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
7620 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
7621 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
7622 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
7623 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
7624 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
7625 (mult (exps:s @0) (exps:s @1)) : New simplifier.
7626 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
7627 (rdiv @0 (exps:s @1)) : New simplifier.
7629 2015-08-25 Joseph Myers <joseph@codesourcery.com>
7631 * gcc.c (driver::finalize): Only assign to extra_specs if
7634 2015-08-25 Marek Polacek <polacek@redhat.com>
7637 * varasm.c (declare_weak): Return after giving an error.
7639 2015-08-25 David Malcolm <dmalcolm@redhat.com>
7641 * gcc-main.c (main): Add params to driver ctor.
7642 * gcc.c (class env_manager): New.
7644 (env_manager::init): New.
7645 (env_manager::get): New.
7646 (env_manager::xput): New.
7647 (env_manager::restore): New.
7648 Poison getenv and putenv.
7649 (DEFAULT_TARGET_SYSTEM_ROOT): New.
7650 (target_system_root): Update initialization to use
7651 DEFAULT_TARGET_SYSTEM_ROOT.
7652 (struct spec_list): Add field "default_ptr".
7653 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
7654 (init_spec): Likewise.
7655 (set_spec): Clear field "default_ptr".
7656 (read_specs): Free "spec" and "buffer".
7657 (xputenv): Reimplement in terms of env_manager.
7658 (process_command): Replace ::getenv calls with calls to the
7659 env_manager singleton.
7660 (process_brace_body): Free string in three places.
7661 (driver::driver): New.
7662 (driver::~driver): New.
7663 (used_arg): Convert from a function to...
7664 (class used_arg_t): ...this class, and...
7665 (used_arg): ...this new global instance.
7666 (used_arg_t::finalize): New function.
7667 (getenv_spec_function): Add "const" to local "value". Replace
7668 ::getenv call with call to the env_manager singleton.
7669 (path_prefix_reset): New function.
7670 (driver::finalize): New function.
7671 * gcc.h (driver::driver): New.
7672 (driver::~driver): New.
7673 (driver::finalize): New.
7675 2015-08-25 Nathan Sidwell <nathan@acm.org>
7677 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
7678 target doesn't have one.
7680 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
7683 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
7685 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
7688 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
7689 a define_insn, remove second alternative.
7691 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
7692 Joseph Myers <joseph@codesourcery.com>
7694 * gcc.c (struct switchstr): Expand comment.
7696 2015-08-25 Nathan Sidwell <nathan@acm.org>
7698 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
7699 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
7701 2015-08-25 Richard Biener <rguenther@suse.de>
7704 * genmatch.c (expr::gen_transform): Verify the result of
7705 builtin_decl_implicit.
7706 (dt_simplify::gen_1): Likewise.
7708 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
7710 * config/arm/constraints.md: Also list Cs and US ARM-specific
7711 constraints as used.
7713 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
7716 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
7718 (nonpic_symbol_mentioned_p): Likewise.
7719 (sh_delegitimize_address): Likewise.
7720 (sh_function_ok_for_sibcall): Take into account weak symbols.
7721 (sh_expand_sym_label2reg): New.
7722 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
7723 * config/sh/sh.md (UNSPEC_PCREL): New enum.
7724 (call_pcrel): Use sh_expand_sym_label2reg.
7725 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
7726 (symPCREL_label2reg) New expand.
7728 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
7730 * graphite-poly.c: Change type of region from void* to sese.
7731 * graphite-poly.h (struct scop): Changing the type of scop::region
7732 from void* to sese. Change accessor macro accordingly.
7733 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
7735 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
7737 * graphite-scop-detection.c (stmt_simple_for_scop_p):
7738 Constrain only on INTEGER_TYPE.
7740 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
7743 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
7744 -mefficient-unaligned-vsx on ISA 2.7.
7746 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
7747 option to a masked option.
7749 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
7750 logic for -mefficient-unaligned-vsx so that it is set via an arch
7751 ISA option, instead of being set if -mtune=power8 is set. Move
7752 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
7753 near other default option handling.
7755 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7757 * genflags.c (gen_macro): Delete.
7758 (gen_proto): Don't create GEN.*CALL.* macros.
7759 * gensupport.h (get_file_location): Declare.
7760 * gensupport.c (rtx_locs): New variable.
7761 (read_md_rtx): Record rtx locations.
7762 (get_file_location): New function.
7763 * target-insns.def (call, call_pop, call_value, call_value_pop)
7764 (sibcall, sibcall_value): New patterns.
7765 * gentarget-def.c (parse_argument): New function.
7766 (def_target_insn): Use it. Handle optional operands. Raise an
7767 error if an .md pattern has the wrong number of operands for the
7768 pattern name. Remove the names of unused operands from the prototype.
7769 * builtins.c (expand_builtin_apply): Use targetm functions
7770 instead of HAVE_call_value and GEN_CALL_VALUE.
7771 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
7772 and sibcall_value_pop.
7773 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
7775 * config/alpha/alpha.md (untyped_call): Likewise.
7776 * config/iq2000/iq2000.md (untyped_call): Likewise.
7777 * config/m68k/m68k.md (untyped_call): Likewise.
7778 * config/mips/mips.md (untyped_call): Likewise.
7779 * config/pa/pa.md (untyped_call): Likewise.
7780 * config/rs6000/rs6000.md (untyped_call): Likewise.
7781 * config/sparc/sparc.md (untyped_call): Likewise.
7782 * config/tilegx/tilegx.md (untyped_call): Likewise.
7783 * config/tilepro/tilepro.md (untyped_call): Likewise.
7784 * config/visium/visium.md (untyped_call): Likewise.
7785 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
7786 gen_call_value instead of GEN_CALL_VALUE.
7787 * config/arm/arm.md (untyped_call): Likewise.
7788 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
7791 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7793 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
7794 (have_cbranchcc4): New variable.
7795 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
7796 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
7797 (if_convert): Initialize have_cbranchcc4.
7799 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7801 * builtins.c (expand_cmpstrn): Rename to...
7802 (expand_cmpstrn_or_cmpmem): ...this.
7803 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
7804 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
7805 Remove mode argument.
7806 (expand_builtin): Update accordingly.
7808 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7810 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
7811 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
7812 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
7813 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
7814 Add predicates for operands 0 and 3.
7815 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
7817 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
7818 immediate_operand to nonmemory_operand.
7820 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7822 * df-scan.c (df_insn_info_init_fields): New function, split out
7824 (df_insn_create_insn_record): ...here.
7825 (df_insn_info_free_fields): New function, split out from...
7826 (df_insn_info_delete): ...here.
7827 (df_insn_rescan): Use the new functions instead of freeing and
7828 reallocating the df_insn_info.
7830 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7832 * doc/install.texi (Binaries): Remove links no longer valid.
7834 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
7836 * config/nvptx/mkoffload.c (process): Replace
7837 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
7839 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
7842 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
7844 2015-08-24 Renlin Li <renlin.li@arm.com>
7846 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
7847 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
7848 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
7849 * config/arm/constraints.md ("j"): Add check for high code.
7851 2015-08-24 Tom de Vries <tom@codesourcery.com>
7853 PR tree-optimization/65468
7854 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
7857 2015-08-24 Nathan Sidwell <nathan@acm.org>
7859 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
7860 change to nvptx_type_from_mode call. Use arg_promotion for both
7861 split and non-split args.
7863 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7865 * target-insns.def (movstr): New pattern.
7866 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
7867 (expand_movstr): Use targetm rather than HAVE_movstr/
7870 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
7872 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
7875 2015-08-24 Andrew Pinski <apinski@cavium.com>
7877 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
7878 AARCH64_EXTRA_TUNING_OPTION.
7879 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
7881 (aarch64_extra_tuning_flags): Base the shifted value on the index
7882 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
7883 * config/aarch64/aarch64.c: Remove the last argument to
7884 AARCH64_EXTRA_TUNING_OPTION.
7886 2015-08-23 Nathan Sidwell <nathan@acm.org>
7888 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
7890 (nvptx_declare_function_name): Insert formatting tabs for
7893 2015-08-23 Tom de Vries <tom@codesourcery.com>
7895 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
7896 parm_decl, rather than generating a dummy default def in cfun.
7897 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
7898 ssa_name from cfun and child_fn do not share a stmt as def stmt.
7899 (move_stmt_op): Handle PARM_DECl.
7900 (gather_ssa_name_hash_map_from): New function.
7901 (move_sese_region_to_fn): Add default defs for function params, and add
7902 them to vars_map. Release copied ssa names.
7903 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
7905 2015-08-23 Tom de Vries <tom@codesourcery.com>
7907 * doc/sourcebuild.texi: Rename vect_no_int_max with
7908 vect_no_int_min_max. Update description.
7910 2015-08-22 Andrew Pinski <apinski@cavium.com>
7912 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
7913 * config/aarch64/aarch64-protos.h
7914 (aarch64_fusion_pairs_index): New enum.
7915 (aarch64_fusion_pairs): Base the shifted value on the index instead
7916 Rewrite AARCH64_FUSE_ALL to be based on the end index.
7917 of the argument to AARCH64_FUSION_PAIR.
7918 * config/aarch64/aarch64.c: Remove the last argument to
7919 AARCH64_FUSION_PAIR.
7921 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
7923 * dominance.c (new_zero_array): Define.
7924 (dom_info): Redefine as class with proper encapsulation.
7925 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
7927 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
7928 allocations/deallocations. Pass function as parameter (instead of
7930 (dom_info::get_idom): Define accessor method.
7931 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
7932 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
7933 (calculate_dominance_info): Adjust to use dom_info class.
7934 (verify_dominators): Likewise.
7936 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
7938 * print-rtl.c (print_rtx): Check the correct range for
7939 flag_dump_unnumbered_links to behave as documented.
7941 PR rtl-optimization/67227
7942 PR rtl-optimization/64164
7943 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
7944 (nonoverlapping_memrefs_p): Test offsets and sizes when given
7945 identical gimple_reg exprs.
7947 2015-08-21 Nathan Sidwell <nathan@acm.org>
7949 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
7951 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
7952 crtl->stack_alignment_needed to determine alignment.
7953 (nvptx_get_drap_rtx): New.
7954 (TARGET_GET_DRAP_RTX): Override.
7955 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
7957 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7959 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
7961 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
7963 * configure.ac: Remove uwin* cases.
7964 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
7965 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
7966 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
7967 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
7968 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
7969 i[34567]86-*-uwin*, powerpc-*-beos*.
7971 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
7973 * gencodes.c (gencodes): Print the comma for the preceding
7974 enum value rather than the current one. Use aliased enum values
7975 rather than #defines for compiled-out patterns.
7976 (main): Update accordingly. Replace LAST_INSN_CODE with
7978 * lra.c (insn_code_data): Update accordingly.
7979 (finish_insn_code_data_once, get_static_insn_data): Likewise.
7980 * recog.h (target_recog): Likewise.
7981 (preprocess_insn_constraints): Change parameter to unsigned int.
7982 * recog.c (preprocess_insn_constraints): Likewise.
7983 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
7984 * tree-vect-stmts.c (vectorizable_operation): Simplify.
7986 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
7988 PR rtl-optimization/61657
7989 * loop-iv.c (iv_number_of_iterations): Declare up and down as
7990 unsigned. Remove superflous uint64_t cast.
7992 2014-08-21 Felix Yang <felix.yang@huawei.com>
7993 Jiji Jiang <jiangjiji@huawei.com>
7995 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
7996 argument and get builtin function code directly from CALL.
7997 (gimple_stringop_fixed_value): Modified accordingly.
7998 (gimple_stringops_transform, gimple_stringops_values_to_profile):
7999 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
8001 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
8003 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
8005 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8007 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
8009 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
8010 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
8011 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
8012 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
8013 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
8014 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
8015 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
8016 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
8017 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
8018 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
8020 * match.pd (SIN ) : New Operator.
8021 (TAN) : New Operator.
8022 (mult (SQRT@1 @0) @1) : New simplifier.
8023 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
8024 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8025 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
8026 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
8027 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
8028 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
8029 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
8030 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
8031 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
8032 (rdiv @0 (POW:s @1 @2)) : New simplifier.
8034 2015-08-21 Bin Cheng <bin.cheng@arm.com>
8036 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
8037 loop if EXPR is simplified to const value.
8039 2015-08-21 Yury Gribov <y.gribov@samsung.com>
8041 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
8042 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
8044 2015-08-21 Richard Biener <rguenther@suse.de>
8047 * gimple-fold.c (replace_stmt_with_simplification): Assert
8048 seq is empty when replacing a call with itself but different
8050 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
8051 a call require that it is const.
8053 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8055 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
8056 * builtins.c (get_object_alignment_2): Adjust.
8057 * varasm.c (align_variable): Likewise.
8058 (get_variable_align): Likewise.
8059 (build_constant_desc): Likewise.
8060 (force_const_mem): Likewise.
8061 * doc/tm.texi.in: Likewise.
8062 * doc/tm.texi: Regenerate.
8064 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8066 * genconfig.c (main): Always define HAVE_cc0.
8067 * recog.c (rest_of_handle_peephole2): Adjust.
8069 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8071 * reorg.c (relax_delay_slots): Don't use #if to check value of
8074 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8076 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
8077 * targhooks.c (default_have_conditional_execution): Adjust.
8079 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8081 * rtl.h (rtvec_all_equal_p): Declare.
8082 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
8083 * rtl.c (rtvec_all_equal_p): New function.
8084 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
8085 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
8086 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
8087 * config/arm/arm.c (neon_vdup_constant): Likewise.
8088 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
8089 * config/tilegx/constraints.md (W, Y): Likewise.
8090 * config/tilepro/constraints.md (W, Y): Likewise.
8091 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
8092 (classify_immediate): Use unwrap_const_vec_duplicate.
8093 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
8094 (reg_or_v2s8bit_operand): Likewise.
8095 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
8096 (reg_or_v4s8bit_operand): Likewise.
8098 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8100 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
8101 (vec_shasigma_be): New #define.
8102 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
8103 (VPMSUMH): Likewise.
8104 (VPMSUMW): Likewise.
8105 (VPMSUMD): Likewise.
8106 (VPMSUM): New BU_P8V_OVERLOAD_2.
8107 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
8108 entries for VEC_MADD and VEC_VPMSUM.
8110 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
8112 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
8113 Multiply argument avr_n_flash by 64 to match unit of "KiB".
8114 (avr_pgm_check_var_decl): Same.
8116 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
8118 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
8119 initialization of HFmode scalar type (float16_t) to...
8120 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
8123 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
8125 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
8126 having an -mfp16-format.
8128 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
8130 * config/i386/predicates.md (vector_all_ones_operand): Use
8131 CONSTM1_RTX to simplify definition.
8133 2015-08-20 Richard Biener <rguenther@suse.de>
8135 * toplev.c (compile_file): Remove loop calling late_global_decl
8137 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
8138 on decls we assembled.
8140 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
8142 * common/config/aarch64/aarch64-common.c
8143 (AARCH64_CPU_NAME_LENGTH): Delete.
8144 (aarch64_option_extension): New.
8145 (all_extensions): Likewise.
8146 (processor_name_to_arch): Likewise.
8147 (arch_to_arch_name): Likewise.
8149 (all_architectures): Likewise.
8150 (aarch64_get_extension_string_for_isa_flags): Likewise.
8151 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
8153 * config/aarch64/aarch64-protos.h
8154 (aarch64_get_extension_string_for_isa_flags): New.
8155 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
8156 (aarch64_option_print): Get the string to print from
8157 aarch64_get_extension_string_for_isa_flags.
8158 (aarch64_declare_function_name): Likewise.
8159 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
8160 (MCPU_TO_MARCH_SPEC): This.
8161 (ASM_CPU_SPEC): Use it.
8162 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
8163 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
8164 (EXTRA_SPEC_FUNCTIONS): Use it.
8166 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
8168 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
8169 expansion when !ISA_HAS_LWL_LWR.
8170 (mips_block_move_straight): Update the size of elements copied to
8171 account for alignment when !ISA_HAS_LWL_LWR.
8172 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
8174 2015-08-19 Jiong Wang <jiong.wang@arm.com>
8176 * expr.c (expand_expr_real_2): Check gimple statement during
8179 2015-08-19 Magnus Granberg <zorry@gentoo.org>
8181 * common.opt (fstack-protector): Initialize to -1.
8182 (fstack-protector-all): Likewise.
8183 (fstack-protector-strong): Likewise.
8184 (fstack-protector-explicit): Likewise.
8185 * configure.ac: Add --enable-default-ssp.
8186 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
8187 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
8189 * doc/install.texi: Document --enable-default-ssp.
8190 * config.in: Regenerated.
8191 * configure: Likewise.
8193 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
8195 PR rtl-optimization/64164
8196 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
8197 (parm_in_stack_slot_p): ... this. Disregard mode, what
8198 matters is whether the parm will live in a pseudo or a stack
8200 (expand_one_ssa_partition): Deal with params without a default
8201 def. Disregard mode.
8202 * cfgexpand.h: Renamed function declaration.
8203 * tree-ssa-coalesce.c: Adjust.
8204 * function.c (split_complex_args): Allocate stack slot for
8205 unassigned parms before splitting.
8206 (parm_in_unassigned_mem_p): New. Use it instead of
8207 parm_maybe_byref_p throughout this file.
8208 (assign_parm_setup_block): Use it. Accept pseudos in the
8209 expand-assigned rtl.
8210 (assign_parm_setup_reg): Drop BLKmode requirement.
8211 (assign_parm_setup_stack): Allocate and fill in the address of
8212 unassigned MEM parms.
8214 2015-08-19 David Sherwood <david.sherwood@arm.com>
8216 * genmodes.c (emit_mode_unit_size_inline): New function.
8217 (emit_mode_unit_precision_inline): New function.
8218 (emit_insn_modes_h): Emit new #define. Emit new functions.
8219 (emit_mode_unit_size): New function.
8220 (emit_mode_unit_precision): New function.
8221 (emit_mode_adjustments): Add mode_unit_size adjustments.
8222 (emit_insn_modes_c): Emit new arrays.
8223 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
8224 use new inline methods.
8226 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8228 * config/aarch64/aarch64.c (bit_count): Delete prototype
8230 (aarch64_print_operand): Use popcount_hwi instead of the above.
8232 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8234 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
8237 2015-08-19 Marek Polacek <polacek@redhat.com>
8240 * gimple-ssa-isolate-paths.c
8241 (insert_trap_and_remove_trailing_statements): Rename to ...
8242 (insert_trap): ... this. Don't remove trailing statements; split
8244 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
8246 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
8249 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
8250 conditionalize the whole on __GNUC__. Add fallback code
8251 depending neither on undefined nor implementation-defined behaviour.
8253 2015-08-19 Jiong Wang <jiong.wang@arm.com>
8255 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
8256 whitespaces with tab.
8258 2015-08-19 Florian Weimer <fweimer@redhat.com>
8260 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
8261 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
8262 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
8263 Move Name_Ids instantiation to the Prj.Proc package, to avoid
8266 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8268 * config/arm/arm.c (bounds_check): Use %wd print format
8269 for HOST_WIDE_INT arguments.
8271 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
8273 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
8274 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
8275 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
8276 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
8277 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
8278 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
8279 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
8280 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
8281 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
8284 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
8286 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
8287 function.c, graphite-scop-detection.c, haifa-sched.c,
8288 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
8289 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
8290 varasm.c: Remove typedefs of structs.
8292 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
8294 * config/rs6000/altivec.h (vec_adde): New define.
8295 (vec_addec): Likewise.
8296 (vec_double): Likewise.
8297 (vec_bperm): Likewise.
8299 * config/rs6000/rs6000-builtin.def (ADDE): New
8300 BU_ALTIVEC_OVERLOAD_3.
8302 (DOUBLE): New BU_VSX_OVERLOAD_1.
8303 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
8304 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
8305 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
8306 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
8307 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
8308 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
8309 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
8310 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
8311 and P8V_BUILTIN_VEC_VBPERMQ.
8313 2015-08-18 Jason Merrill <jason@redhat.com>
8315 * print-tree.c (print_node): Handle TREE_BINFO.
8317 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
8320 * builtins.c (expand_builtin_signbit): Add asserts to make sure
8321 we can expand BUILT_IN_SIGNBIT inline.
8322 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
8323 * doc/extend.texi: Document the type-generic __builtin_signbit.
8325 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
8327 PR rtl-optimization/67218
8328 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
8329 (simplify_unary_operation_1): Use it.
8331 2015-08-18 Marek Polacek <polacek@redhat.com>
8334 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
8335 if the call isn't valid.
8336 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
8337 gimple_call_builtin_p.
8338 (call_may_clobber_ref_p_1): Likewise.
8339 (stmt_kills_ref_p): Likewise.
8341 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
8343 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
8344 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
8345 (mips_hard_regno_scratch_ok): Likewise.
8346 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
8347 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
8349 2015-08-18 Bin Cheng <bin.cheng@arm.com>
8351 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
8352 (determine_value_range): Call refine_value_range_using_guard for
8353 each loop initial condition to improve value range.
8355 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
8357 * config/i386/i386.c: Remove include of fibheap.h.
8359 2015-08-17 Richard Biener <rguenther@suse.de>
8361 PR tree-optimization/67221
8362 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
8363 (sccvn_dom_walker::before_dom_children): Mark backedges of
8364 non-executable blocks as not executable.
8366 2015-08-17 David Sherwood <david.sherwood@arm.com>
8368 * config/arm/arm.c (neon_element_bits): Replace call to
8369 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
8370 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
8371 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
8372 (neon_vdup_lane<mode>): Likewise.
8373 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
8374 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
8375 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
8376 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
8377 * config/spu/spu.c (arith_immediate_p): Likewise.
8378 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
8379 * expr.c (expand_expr_real_2): Likewise.
8380 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
8381 * simplify-rtx.c (simplify_immed_subreg): Likewise.
8382 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
8383 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
8385 * fold-const.c (fold_binary_loc): Replace call to
8386 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
8387 GET_MODE_UNIT_PRECISION (m).
8389 2015-08-17 Mike Stump <mikestump@comcast.net>
8391 * config/arm/arm.c (arm_block_move_unaligned_straight):
8392 Emit normal move instead of unaligned load when source or destination
8393 are appropriately aligned.
8395 2015-08-17 Richard Biener <rguenther@suse.de>
8396 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8399 * match.pd (div (coss (op @0) : New simplifier.
8401 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
8403 PR rtl-optimization/64164
8406 PR rtl-optimization/67000
8409 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8410 * tree-ssa-copyrename.c: Removed.
8411 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8412 -ftree-coalesce-vars.
8413 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8414 * common.opt (ftree-copyrename): Ignore.
8415 (ftree-coalesce-inlined-vars): Likewise.
8416 * doc/invoke.texi: Remove the ignored options above.
8417 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8418 * tree-ssa-coalesce.h: ... here.
8419 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8420 headers required by it.
8421 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8422 across variables when flag_tree_coalesce_vars. Check register
8423 use and promoted modes to allow coalescing. Do not coalesce
8424 maybe-byref parms with SSA_NAMEs of other variables, or
8425 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
8426 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8427 with its member functions to tree-ssa-coalesce.c.
8428 (var_map_base_init): Likewise. Renamed to
8429 compute_samebase_partition_bases.
8430 (partition_view_normal): Drop want_bases parameter.
8431 (partition_view_bitmap): Likewise.
8432 * tree-ssa-live.h: Adjust declarations.
8433 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
8434 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8435 default defs at the entry point.
8436 (dump_part_var_map): New.
8437 (compute_optimized_partition_bases): New, called by...
8438 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8439 of compute_samebase_partition_bases. Adjust.
8440 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8441 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
8442 (ssa_default_def_partition): New.
8443 (get_rtl_for_parm_ssa_default_def): New.
8444 (align_local_variable, add_stack_var): Support anonymous SSA
8446 (defer_stack_allocation): Likewise. Declare earlier.
8447 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8448 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8449 Do no record deferred-allocation marker in
8450 SA.partition_to_pseudo.
8451 (expand_stack_vars): Adjust check for the marker in it.
8452 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8453 redundant MEM attr setting.
8454 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8456 (expand_one_stack_var): ... this. New wrapper to check and
8457 skip already expanded SSA partitions.
8458 (record_alignment_for_reg_var): New, factored out of...
8459 (expand_one_var): ... this.
8460 (expand_one_ssa_partition): New.
8461 (adjust_one_expanded_partition_var): New.
8462 (expand_one_register_var): Check and skip already expanded SSA
8464 (expand_used_vars): Don't create DECLs for anonymous SSA
8465 names. Expand all SSA partitions, then adjust all SSA names.
8466 (pass::execute): Replace the loops that set
8467 SA.partition_to_pseudo from partition leaders and cleared
8468 DECL_RTL for multi-location variables, and that which used to
8469 rename vars and set attrs, with one that clears DECL_RTL and
8470 checks that PARMs and RESULTs default_defs match DECL_RTL.
8471 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
8472 * emit-rtl.c: Include stor-layout.h.
8473 (set_reg_attrs_for_parm): Handle NULL decl.
8474 (set_reg_attrs_for_decl_rtl): Take mode from expression if
8476 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
8477 rather than its possibly-NULL DECL.
8478 * explow.c (promote_ssa_mode): New.
8479 * explow.h (promote_ssa_mode): Declare.
8480 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
8481 (read_complex_part): Export.
8482 * expr.h (read_complex_part): Declare.
8483 * cfgexpand.h (parm_maybe_byref_p): Declare.
8484 * function.c: Include cfgexpand.h.
8485 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
8486 (use_register_for_parm_decl): Wrapper for the above to
8487 special-case the result_ptr.
8488 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
8489 (split_complex_args): Take assign_parm_data_all argument.
8490 Pass it to rtl_for_parm. Set up rtl and context for split
8491 args. Reset complex parm before fetching its default decl
8493 (assign_parms_unsplit_complex): Use the default-def complex
8494 parm rtl if it matches the components.
8495 (assign_parms_augmented_arg_list): Adjust.
8496 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
8497 multiple locations. Recognize split complex args.
8498 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
8499 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
8500 (assign_parm_setup_block): Prefer SSA-assigned location, and
8501 fill in its address if the memory location of a maybe-byref
8502 parm was not assigned by cfgexpand.
8503 (assign_parm_setup_reg): Likewise. Adjust its mode as
8504 needed. Use entry_parm for equiv if stack_parm is NULL. Make
8505 sure passed_pointer parms don't need conversion. Copy address
8507 (assign_parm_setup_stack): Prefer SSA-assigned location.
8508 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
8509 rtl before testing for pointer bounds. Special-case result_ptr.
8510 (expand_function_start): Maybe reset DECL_RTL of result.
8511 Prefer SSA-assigned location for result and static chain.
8512 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
8513 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
8514 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
8515 anonymous SSA names. Use promote_ssa_mode.
8516 (get_temp_reg): Likewise.
8517 (remove_ssa_form): Adjust.
8518 * stor-layout.c (layout_decl): Don't set mem attributes of
8520 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
8521 and get its reg_usage for reg invalidation.
8522 (compute_bb_dataflow): Pass it insn.
8523 (emit_notes_in_bb): Likewise.
8525 2015-08-14 Marek Polacek <polacek@redhat.com>
8527 * tree-core.h (tree_base): Fix typo.
8529 2015-08-14 Marek Polacek <polacek@redhat.com>
8532 * gimple.c (infer_nonnull_range_by_attribute): Check that the
8533 nonnull argument position is not outside function arguments.
8535 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
8538 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
8539 'lconst_atomic' with 'const_atomic'.
8540 (atomic_fetch_<optab><mode>): Likewise.
8541 (atomic_<optab>_fetch<mode>): Likewise.
8542 * config/aarch64/iterators.md (lconst-atomic): Move below
8544 (const_atomic): New.
8546 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
8547 Bernd Schmidt <bernds@codesourcery.com>
8549 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
8551 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
8552 (DWARF2_DEBUGGING_INFO): Don't define.
8553 * debug.h (dwarf2_lineno_debug_hooks): Declare.
8554 * toplev.c (process_options): Add a case for it.
8555 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
8556 (dwarf2out_init): Skip most initializations if
8557 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
8559 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
8560 DWARF2_LINENO_DEBUGGING_INFO.
8561 * opts.c (set_debug_level): Likewise.
8563 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
8565 * config/arm/types.md (is_neon_type): Add missing types.
8567 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
8569 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
8571 * config/i386/i386.c (PTA_SKYLAKE): New macros.
8572 (processor_alias_table): Add skylake description.
8573 (enum processor_model): Add skylake processor.
8574 (arch_names_table): Add skylake record.
8575 * doc/invoke.texi: Add skylake item.
8577 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
8579 * ira-int.h: Include recog.h.
8580 * ira-build.c: Don't include recog.h.
8581 * ira-color.c: Likewise.
8582 * ira-conflicts.c: Likewise.
8583 * ira-costs.c: Likewise.
8584 * ira-emit.c: Likewise.
8585 * ira-lives.c: Likewise.
8587 * sched-deps.c: Likewise.
8588 * sel-sched.c: Likewise.
8589 * target-globals.c: Likewise.
8591 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
8594 * reload1.c (elimination_costs_in_insn): Make it obvious to the
8595 compiler that the n_dups and n_operands loop bounds are invariant.
8597 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8599 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
8600 expressions in A and B.
8602 2015-08-13 Richard Biener <rguenther@suse.de>
8604 * tree.c (nonnull_arg_p): Move from ...
8605 * tree-vrp.c (nonnull_arg_p): ... here.
8606 * tree.h (nonnull_arg_p): Declare.
8607 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
8608 here, register ptr != 0 for nonnull_arg_p pointer arguments.
8609 Properly initialize static chain and by-reference result pointer.
8610 (run_scc_vn): Adjust.
8612 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
8614 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
8617 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
8619 * config/aarch64/aarch64-protos.h
8620 (aarch64_gen_atomic_cas): Declare.
8621 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
8622 Choose appropriate instruction pattern for the target.
8623 (aarch64_gen_atomic_cas): New.
8624 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
8625 (atomic_compare_and_swap<mode>_1): Rename to
8626 aarch64_compare_and_swap<mode>. Fix some indentation.
8627 (aarch64_compare_and_swap<mode>_lse): New.
8628 (aarch64_atomic_cas<mode>): New.
8630 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
8632 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
8635 2015-08-13 Richard Biener <rguenther@suse.de>
8637 PR tree-optimization/67191
8638 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
8639 assert we value-numbered last stmts operand because it can validly
8640 trigger for unreachable code.
8642 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8644 PR rtl-optimization/67103
8645 * ifcvt.c (noce_try_store_flag_constants): Move
8646 x = (-(test != 0) & (b - a)) + a transformation to...
8647 (noce_try_cmove): ... Here. Try it if normal conditional
8650 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
8652 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
8654 * config/mips/mips.md (processor): Remove w32 and w64.
8656 2015-08-13 Richard Biener <rguenther@suse.de>
8658 PR tree-optimization/66502
8659 PR tree-optimization/67167
8660 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
8662 (vn_phi_lookup): Adjust.
8663 (vn_phi_insert): Likewise.
8664 (visit_phi): Prefer to value-number to another PHI node
8665 over value-numbering to a PHI argument.
8666 (init_scc_vn): Mark DFS back edges.
8668 2015-08-13 Richard Biener <rguenther@suse.de>
8670 * gimple.h (gcall::code_): New constant static member.
8671 (gcond::code_): Likewise.
8672 * gimple.c (gcall::code_): Define.
8673 (gcond::code_): Likewise.
8674 (is_a_helper <const gcond *>): Add.
8675 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
8676 and forward to a new gcall overload with less checking and a
8677 cheaper way to access the operand.
8678 (gimple_call_lhs_ptr): Likewise.
8679 (gimple_call_set_lhs): Likewise.
8680 (gimple_call_internal_p): Likewise.
8681 (gimple_call_with_bounds_p): Likewise.
8682 (gimple_call_set_with_bounds): Likewise.
8683 (gimple_call_internal_fn): Likewise.
8684 (gimple_call_set_ctrl_altering): Likewise.
8685 (gimple_call_ctrl_altering_p): Likewise.
8686 (gimple_call_fntype): Likewise.
8687 (gimple_call_fn): Likewise.
8688 (gimple_call_fn_ptr): Likewise.
8689 (gimple_call_set_fndecl): Likewise.
8690 (gimple_call_fndecl): Likewise.
8691 (gimple_call_chain): Likewise.
8692 (gimple_call_num_args): Likewise.
8693 (gimple_call_arg): Likewise.
8694 (gimple_call_arg_ptr): Likewise.
8695 (gimple_call_set_arg): Likewise.
8696 (gimple_call_noreturn_p): Likewise.
8697 (gimple_cond_code): Likewise.
8698 (gimple_cond_lhs): Likewise.
8699 (gimple_cond_rhs): Likewise.
8700 (gimple_has_lhs): Reduce checking.
8702 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8705 * match.pd (div (mult @0 @1) @1) : New simplifier.
8707 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
8710 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
8711 predicate to allow construction of vector constants using the
8712 VSLDOI vector shift instruction.
8714 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
8717 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
8718 the number of bytes to be shifted left and filled in with either
8719 all zero or all one bits.
8720 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
8722 (output_vec_const_move): On power8, generate XXLORC to generate
8723 a vector constant with all 1's. Do a split if we need to use a
8726 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
8727 properly test for the MSB.
8729 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
8730 vector constants that can be created with VSLDOI.
8732 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
8735 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8736 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8737 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8738 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8739 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8740 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8741 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8742 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8743 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8745 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
8747 * config/xtensa/constraints.md (define_constraint "Y"): New
8749 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
8750 * config/xtensa/linux.h (ASM_SPEC): Likewise.
8751 * config/xtensa/predicates.md (move_operand): Match constants
8752 and symbols in the presence of TARGET_AUTO_LITPOOLS.
8753 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
8754 immediate references to TLS data.
8755 (xtensa_emit_move_sequence): Don't force constants to memory in
8756 the presence of TARGET_AUTO_LITPOOLS.
8757 (print_operand): Add 'y' format, same as default, but capable of
8758 printing SF mode constants as well.
8759 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
8760 (movsf_internal): Add movi pattern that loads literal.
8761 (movsf, movdf): Don't force constants to memory in the presence
8762 of TARGET_AUTO_LITPOOLS.
8763 (movdf_internal): Add 'Y' constraint.
8764 * config/xtensa/xtensa.opt (mauto-litpools): New option.
8765 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
8767 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
8769 * config/arm/arm-fpus.def: Replace booleans with feature flags.
8771 * config/arm/arm.c (ARM_FPU): Update macro.
8772 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
8773 (TARGET_FP16): Likewise.
8774 (TARGET_CRYPTO): Likewise.
8775 (TARGET_NEON): Likewise.
8776 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
8779 2015-08-12 Tom de Vries <tom@codesourcery.com>
8783 * doc/install.texi: Remove --with_host_libstdcxx item. Update
8784 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
8785 accordingly. Mention default for --with-stage1-ldflags.
8787 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
8789 * config/arm/arm.h (arm_fpu_feature_set): New.
8790 (ARM_FPU_FSET_HAS): New.
8794 (FPU_FL_CRYPTO): New.
8796 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8798 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
8799 after -mcmodel=large -fPIC sorry.
8801 2015-08-12 Richard Biener <rguenther@suse.de>
8803 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
8804 comparison operand order and commutative ternary op operand order.
8805 (sccvn_dom_walker::cond_stack): New state to track temporary
8807 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
8809 (sccvn_dom_walker::record_cond): Add a single temporary conditional
8811 (sccvn_dom_walker::record_conds): Add a temporary conditional
8812 expressions and all related expressions also true/false.
8813 (sccvn_dom_walker::before_dom_children): Record temporary
8814 expressions based on the controlling condition of a single
8815 predecessor. When trying to simplify a conditional statement
8816 lookup expressions we might have inserted earlier.
8818 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
8821 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
8822 to ARM core registers.
8824 2015-08-12 Nathan Sidwell <nathan@acm.org>
8826 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
8827 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
8829 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
8831 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
8833 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
8835 2015-08-12 Richard Biener <rguenther@suse.de>
8837 * gimple.h (remove_pointer): New trait.
8838 (GIMPLE_CHECK2): New inline template function.
8839 (gassign::code_): New constant static member.
8840 (is_a_helper<const gassign *>): Add.
8841 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
8842 and forward to a new gassign overload with less checking and a
8843 cheaper way to access the operand.
8844 (gimple_assign_lhs_ptr): Likewise.
8845 (gimple_assign_set_lhs): Likewise.
8846 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
8848 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
8850 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
8852 (gimple_assign_rhs_code): Likewise.
8853 * gimple.c (gassign::code_): Define.
8855 2015-08-12 Richard Biener <rguenther@suse.de>
8857 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8858 Eliminate edges marked as not executable by SCCVN.
8859 * tree-ssa-sccvn.c: Include gimple-iterator.h.
8860 (cond_dom_walker): Rename to sccvn_dom_walker.
8861 (sccvn_dom_walker::before_dom_children): Value-number defs
8863 (run_scc_vn): Remove loop value-numbering all SSA names.
8864 Drop not visited SSA names to varying.
8866 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
8868 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
8869 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
8870 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
8871 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
8872 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
8873 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
8874 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
8875 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
8876 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
8878 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
8881 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
8882 to enum feature_priority and feature_list.
8883 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
8884 and isa_names_table.
8886 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
8888 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
8891 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
8895 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
8896 account when deciding what was the command-line status.
8898 2015-08-11 Nathan Sidwell <nathan@acm.org>
8900 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
8902 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
8903 we're not the only contributor to target phi.
8905 2015-08-11 Jiong Wang <jiong.wang@arm.com>
8907 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
8910 2015-08-11 Tom de Vries <tom@codesourcery.com>
8912 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
8914 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
8916 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
8918 * config/i386/i386.md (cpu): Remove knl.
8920 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8924 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
8925 open-coded sequence.
8926 * omp-low.c (oacc_process_reduction_data): Remove handline of
8927 GOMP_DEVICE_HOST_NONSHM.
8929 * lto-streamer-in.c (lto_input_mode_table): Adjust to
8930 GET_MODE_INNER changes.
8932 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
8933 Ilya Verbin <ilya.verbin@intel.com>
8935 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
8937 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
8939 * doc/options.texi (EnabledBy): Document that the argument must be
8941 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
8942 Not enabled by -Wall.
8943 * optc-gen.awk: Give nicer error messages. Detect if the argument
8944 of EnabledBy is not a Common option.
8945 * common.opt (Wnull-dereference): Not enabled by -Wall.
8946 * opt-functions.awk (lang_enabled_by): Nicer error messages.
8948 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
8950 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
8951 model == 0x4f as Broadwell.
8953 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
8955 PR rtl-optimization/67028
8956 * combine.c (simplify_comparison): Fix comment. Rearrange code.
8957 Add test to see if a const_int fits in the new mode.
8959 2015-08-07 DJ Delorie <dj@redhat.com>
8961 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
8963 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
8965 PR rtl-optimization/67029
8966 * ira-color.c: Include "recog.h" before including "ira-int.h".
8967 * target-globals.c: Likewise.
8968 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
8969 adds an alternative_mask argument and use it instead of
8970 preferred_alternatives.
8971 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
8972 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
8973 * sched-deps.c: Include "ira-int.h" after including "ira.h".
8974 (sched_analyze_insn): Update call to
8975 ira_implicitly_set_insn_hard_regs.
8976 * sel-sched.c: Include "ira-int.h" after including "ira.h".
8977 (implicit_clobber_conflict_p): Update call to
8978 ira_implicitly_set_insn_hard_regs.
8980 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
8982 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
8984 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
8987 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
8988 currently_expanding_to_rtl is set.
8990 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
8992 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
8993 * configure: Regenerate.
8995 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8996 Jiong Wang <jiong.wang@arm.com>
8998 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
8999 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9000 (REG_CLASS_NAMES): Likewise.
9001 (REG_CLASS_CONTENTS): Likewise.
9002 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9003 (aarch64_register_move_cost): Likewise.
9004 (aarch64_load_symref_appropriately): Invoke the new added pattern if
9006 * config/aarch64/constraints.md (Uc0): New constraint.
9008 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9010 * config/aarch64/constraints.md (Usf): Add the test of
9011 aarch64_is_noplt_call_p.
9013 2015-08-06 Jiong Wang <jiong.wang@arm.com>
9015 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
9017 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
9018 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
9019 (call_symbol): Likewise.
9021 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
9023 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
9024 for vectorizing multiplication patterns.
9025 * tree-vectorizer.h: Adjust the number of patterns.
9027 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
9029 * config/i386/sse.md (*vec_concatv2df): Declare added
9030 alternatives as sselog type.
9032 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9034 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
9037 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9039 * config/s390/s390.c (s390_expand_tbegin): Expand either
9040 tbegin_1_z13 or tbegin_1 depending on VX flag.
9041 * config/s390/s390.md ("tbegin_1_z13"): New expander.
9043 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9045 * config/s390/s390.opt: Clarify description for -mzvector
9046 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
9049 2015-08-06 Richard Biener <rguenther@suse.de>
9051 * gimple.h (gimple_call_set_fn): Access op member directly.
9052 (gimple_call_chain_ptr): Likewise.
9053 (gimple_call_set_chain): Likewise.
9054 (gimple_cond_lhs_ptr): Likewise.
9055 (gimple_cond_set_lhs): Likewise.
9056 (gimple_cond_rhs_ptr): Likewise.
9057 (gimple_cond_set_rhs): Likewise.
9058 (gimple_cond_true_label): Likewise.
9059 (gimple_cond_set_true_label): Likewise.
9060 (gimple_cond_set_false_label): Likewise.
9061 (gimple_cond_false_label): Likewise.
9062 (gimple_label_label): Likewise.
9063 (gimple_label_set_label): Likewise.
9064 (gimple_goto_set_dest): Likewise.
9065 (gimple_asm_input_op): Likewise.
9066 (gimple_asm_input_op_ptr): Likewise.
9067 (gimple_asm_set_input_op): Likewise.
9068 (gimple_asm_output_op): Likewise.
9069 (gimple_asm_output_op_ptr): Likewise.
9070 (gimple_asm_set_output_op): Likewise.
9071 (gimple_asm_clobber_op): Likewise.
9072 (gimple_asm_set_clobber_op): Likewise.
9073 (gimple_asm_label_op): Likewise.
9074 (gimple_asm_set_label_op): Likewise.
9075 (gimple_switch_index): Likewise.
9076 (gimple_switch_index_ptr): Likewise.
9077 (gimple_return_retval_ptr): Likewise.
9078 (gimple_return_retval): Likewise.
9079 (gimple_return_set_retval): Likewise.
9080 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
9081 (gimple_switch_label): Likewise.
9082 (gimple_switch_set_label): Likewise.
9084 2015-08-06 Richard Biener <rguenther@suse.de>
9086 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
9087 bool comparison canonicalization and restrict to integers.
9089 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
9091 * coretypes.h (enum symbol_visibility): Relocate here.
9092 * flag-types.h (enum symbol_visibility): Remove.
9093 * tree-core.h (enum symbol_visibility): Remove.
9095 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
9098 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
9099 for no_split_stack function attribute along with
9101 (rs6000_expand_split_stack_prologue): Likewise.
9103 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
9104 Jeff Law <law@redhat.com>
9107 * doc/invoke.texi (Wnull-dereference): New.
9108 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
9109 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
9110 Warn for potential NULL dereferences.
9111 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
9112 * ubsan.c (instrument_nonnull_arg): Call
9113 infer_nonnull_range_by_attribute.
9114 (instrument_nonnull_return): Likewise.
9115 * common.opt (Wnull-dereference); New.
9116 * gimple.c (infer_nonnull_range): Remove bool arguments.
9117 (infer_nonnull_range_by_dereference): New.
9118 (infer_nonnull_range_by_attribute): New.
9119 * gimple.h: Update declarations.
9121 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9123 * gensupport.c (sequence_num): Replace with...
9124 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
9125 ...these new variables.
9126 (init_rtx_reader_args_cb): Update accordingly.
9127 (get_num_code_insns): Likewise.
9128 (read_md_rtx): Rework to use a while loop and get_c_test.
9129 Use the new counters. Remove redundant DEFINE_SUBST case.
9130 * genoutput.c (gen_split): Delete.
9131 (main): Don't call it.
9133 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9135 * gensupport.h (get_c_test): Declare.
9136 * gensupport.c (get_c_test): New function.
9137 * genconditions.c (main): Use it.
9138 * genrecog.c (validate_pattern): Likewise.
9139 (match_pattern_1): Likewise. Remove c_test argument.
9140 (match_pattern): Update accordingly and remove c_test argument.
9141 (main): Update accordingly.
9143 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9145 * gensupport.h (get_num_insn_codes): Declare.
9146 * gensupport.c (get_num_insn_codes): New function.
9147 * genattrtab.c (optimize_attrs): Rename max_insn_code to
9149 (main): Likewise. Use get_num_insn_codes.
9150 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
9152 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9155 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
9156 is zero- rather than sign-extended.
9158 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
9160 * target-insns.def (can_extend): Delete.
9162 2015-08-05 Richard Biener <rguenther@suse.de>
9164 PR tree-optimization/67121
9165 * tree-if-conv.c (combine_blocks): Clear range-info produced
9166 by stmts no longer executed conditionally.
9168 2015-08-05 Nick Clifton <nickc@redhat.com>
9170 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
9171 to allow identical far pointers to remain.
9173 2015-08-05 Richard Biener <rguenther@suse.de>
9176 * match.pd: Compare address bases with == if they are decls
9177 or SSA names, not operand_equal_p. Otherwise fail.
9179 2015-08-05 Richard Biener <rguenther@suse.de>
9181 PR tree-optimization/67055
9182 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
9185 * g++.dg/torture/pr67055.C: New testcase.
9187 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9189 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
9191 (define_attr "enabled"): Handle avx521vl and noavx512vl.
9192 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
9193 AVX-512 alternative out of SSE.
9194 (define_insn "*vec_concatv2df"): Ditto.
9196 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
9198 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
9199 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
9200 CODE_FOR_avx_ptestv4di.
9201 * config/i386/sse.md (define_mode_iterator V_AVX): New.
9202 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
9203 (define_insn "avx_ptest256"): Merge this ...
9204 (define_insn "sse4_1_ptest"): And this ...
9205 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
9207 2015-08-05 Richard Biener <rguenther@suse.de>
9209 PR tree-optimization/67109
9210 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
9211 against too big groups. Print whether this is a load or store
9212 group. Rename from ...
9213 (vect_analyze_group_access): ... this which is now a wrapper
9214 dissolving an invalid group.
9215 (vect_analyze_data_ref_accesses): Print whether this is a load
9218 2015-08-05 Richard Biener <rguenther@suse.de>
9221 * match.pd: Guard const_binop result checking against NULL_TREE
9224 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
9226 * cse.c (cse_insn): Restoring old behaviour for src_eqv
9227 when dest and value in the REG_EQUAL are same and dest
9230 2015-08-04 Anatoly Sokolov <aesok@post.ru>
9232 * config/moxie/moxie.h (PRINT_OPERAND,
9233 PRINT_OPERAND_ADDRESS): Remove macros.
9234 * config/moxie/moxie-protos.h (moxie_print_operand,
9235 moxie_print_operand_address): Remove declaration.
9236 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
9237 TARGET_PRINT_OPERAND_ADDRESS): Define.
9238 (moxie_print_operand, moxie_print_operand_address): Make static.
9240 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
9243 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
9244 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
9246 2015-08-04 Richard Biener <rguenther@suse.de>
9248 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
9250 (dt_operand::gen_gimple_expr): Adjust.
9252 2015-08-04 Richard Biener <rguenther@suse.de>
9254 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
9255 bool compares on RHS.
9256 * match.pd: Add X ==/!= !X is false/true pattern.
9258 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
9260 * config/aarch64/aarch64.c: Change inner loop statement cost
9261 to be consistent with other targets.
9263 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
9265 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
9268 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
9270 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
9271 (machine_function): Remove pseudos field.
9273 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9275 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9276 Exit early and use target_option_current_node if processing current
9279 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9281 * doc/extend.texi (AArch64 Function Attributes): New node.
9282 (AArch64 Pragmas): Likewise.
9284 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9286 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
9287 Initialize simd builtins if TARGET_SIMD.
9288 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
9289 Make sure that the builtins are initialized only once no matter how
9290 many times the function is called.
9291 (aarch64_init_builtins): Unconditionally initialize crc builtins.
9292 (aarch64_relayout_simd_param): New function.
9293 (aarch64_simd_expand_args): Use above during argument expansion.
9294 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
9295 simd builtins if TARGET_SIMD.
9296 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
9298 (aarch64_relayout_simd_types): Likewise.
9300 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9302 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
9303 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
9304 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
9305 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9307 (aarch64_reset_previous_fndecl): New function.
9308 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
9310 * config/aarch64/aarch64-c.c: New file.
9311 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
9312 Push and pop options at beginning and end. Remove ifdef
9313 __ARM_FEATURE_CRC32.
9314 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
9315 Add pragma +nothing+simd and +nothing+crypto where appropriate.
9316 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
9317 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
9319 (aarch64_register_pragmas): Likewise.
9320 (aarch64_reset_previous_fndecl): Likewise.
9321 (aarch64_process_target_attr): Likewise.
9322 (aarch64_override_options_internal): Likewise.
9324 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9326 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
9328 (aarch64_can_inline_p): Likewise.
9329 (TARGET_CAN_INLINE_P): Define.
9331 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9333 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
9334 Remove static. Handle OPT_mgeneral_regs_only,
9335 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
9336 OPT_momit_leaf_frame_pointer.
9337 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
9338 (aarch64_attr_opt_type): New enum.
9339 (aarch64_attribute_info): New struct.
9340 (aarch64_handle_attr_arch): New function.
9341 (aarch64_handle_attr_cpu): Likewise.
9342 (aarch64_handle_attr_tune): Likewise.
9343 (aarch64_handle_attr_isa_flags): Likewise.
9344 (aarch64_attributes): New table.
9345 (aarch64_process_one_target_attr): New function.
9346 (num_occurences_in_str): Likewise.
9347 (aarch64_process_target_attr): Likewise.
9348 (aarch64_option_valid_attribute_p): Likewise.
9349 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9350 * config/aarch64/aarch64-protos.h: Include input.h
9351 (aarch64_handle_option): Declare prototype.
9353 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9355 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
9356 * config/aarch64/aarch64.c: Include target-globals.h
9357 (aarch64_previous_fndecl): New variable.
9358 (aarch64_set_current_function): New function.
9359 (TARGET_SET_CURRENT_FUNCTION): Define.
9361 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9363 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
9364 (explicit_arch): Likewise.
9365 (x_aarch64_isa_flags): Likewise.
9366 (mgeneral-regs-only): Mark as Save.
9367 (mfix-cortex-a53-835769): Likewise.
9368 (mcmodel=): Likewise.
9369 (mstrict-align): Likewise.
9370 (momit-leaf-frame-pointer): Likewise.
9371 (mtls-dialect): Likewise.
9372 (master=): Likewise.
9373 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
9374 (aarch64_isa_flags): Remove extern declaration.
9375 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
9376 to indicate success or failure.
9377 (aarch64_validate_march): Likewise.
9378 (aarch64_validate_mtune): Likewise.
9379 (aarch64_isa_flags): Delete.
9380 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
9381 instead of aarch64_isa_flags.
9382 (aarch64_get_tune_cpu): New function.
9383 (aarch64_get_arch): Likewise.
9384 (aarch64_override_options): Use above and set up explicit_tune_core
9386 (aarch64_print_extension): Move earlier in file. Add isa_flags
9387 argument and use that instead of the global aarch64_isa_flags.
9388 (aarch64_option_save): New function.
9389 (aarch64_option_restore): Likewise.
9390 (aarch64_option_print): Likewise.
9391 (aarch64_declare_function_name): Likewise.
9392 (aarch64_start_file): Delete.
9393 (TARGET_ASM_FILE_START): Do not define.
9394 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
9395 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
9398 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9400 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
9401 flag_omit_leaf_frame_pointer to 2.
9403 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9405 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
9407 (TARGET_FIX_ERR_A53_835769): New macro.
9408 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
9409 handling of opts->x_aarch64_fix_a53_err835769.
9410 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
9411 than aarch64_fix_a53_err835769.
9412 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
9413 * config/aarch64/aarch64-linux.h: Likewise.
9415 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
9417 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
9418 ix86_expand_int_movcc as boolean.
9420 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9422 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
9423 (aarch64_cpu_string): Likewise.
9424 (aarch64_tune_string): Likewise.
9425 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
9426 (aarch64_parse_extension): Return aarch64_parse_opt_result.
9427 Add extra argument to put result into.
9428 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
9429 (aarch64_parse_cpu): Add arguments to put results into. Return
9430 aarch64_parse_opt_result.
9431 (aarch64_parse_tune): Likewise.
9432 (aarch64_override_options_after_change_1): New function.
9433 (aarch64_override_options_internal): New function.
9434 (aarch64_validate_mcpu): Likewise.
9435 (aarch64_validate_march): Likewise.
9436 (aarch64_validate_mtune): Likewise.
9437 (aarch64_override_options): Update to reflect above changes.
9438 Move some logic into aarch64_override_options_internal.
9439 Initialize target_option_default_node and target_option_current_node.
9440 (aarch64_override_options_after_change): Move logic into
9441 aarch64_override_options_after_change_1 and call it with global_options.
9442 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
9443 flag values from that.
9445 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9447 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
9448 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
9449 * config/aarch64/aarch64.c (struct processor): Add arch field.
9450 (all_architectures): Handle above, move above all_cores.
9451 (all_cores): Handle above.
9452 (aarch64_parse_arch): Handle above changes.
9453 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
9454 above. Update comments.
9455 (armv8.1-a): Likewise.
9456 * config/aarch64/aarch64-cores.def: Update according to above.
9457 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
9458 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
9459 aarch64_arch_driver_info.
9461 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9463 * config/aarch64/aarch64.c (struct processor): Add ident field.
9464 Rename core sched_core.
9465 (all_cores): Handle above changes.
9466 (all_architectures): Likewise.
9467 (aarch64_parse_arch): Likewise.
9468 (aarch64_override_options): Likewise.
9470 2015-08-04 Richard Biener <rguenther@suse.de>
9472 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
9473 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
9474 comparisons embedded in [VEC_]COND_EXPRs.
9476 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
9478 * tree-if-conv.c: Fix various typos in comments.
9479 * tree-vect-stmts.c: Likewise.
9481 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9483 PR tree-optimization/67043
9484 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
9485 preheader after hoisting invariant in it.
9486 (find_defs): Force recomputation of all luids.
9488 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
9490 * config/rs6000/htm.md (tabort.): Restrict the source operand to
9491 using a base register.
9493 2015-08-03 David Malcolm <dmalcolm@redhat.com>
9495 * main.c (main): Pass in NULL for toplev's external_timer.
9496 * timevar.c: Include coretypes.h.
9497 (class timer::named_items): New.
9498 (timer::named_items::named_items): New.
9499 (timer::named_items::~named_items): New.
9500 (timer::named_items::push): New.
9501 (timer::named_items::pop): New.
9502 (timer::named_items::print): New.
9503 (timer::timer): Initialize field "m_jit_client_items".
9504 (timer::~timer): New.
9505 (timer::push): Move bulk of implementation to...
9506 (timer::push_internal): ...here. New function.
9507 (timer::pop): Move bulk of implementation to...
9508 (timer::pop_internal): ...here. New function.
9509 (timer::push_client_item): New.
9510 (timer::pop_client_item): New.
9511 (timer::print_row): New function, taken from timer::print.
9512 (timer::print): Print "GCC items" header if we also have client
9513 items. Move row-printing to timer::print_row. Print any client
9515 (timer::get_topmost_item_name): New method.
9516 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
9517 (TV_JIT_CLIENT_CODE): New.
9518 * timevar.h (timer::push_client_item): New declaration.
9519 (timer::pop_client_item): New declaration.
9520 (timer::get_topmost_item_name): New method.
9521 (timer::push_internal): New declaration.
9522 (timer::pop_internal): New declaration.
9523 (timer::print_row): New declaration.
9524 (timer::named_items): New declaration.
9525 (timer::m_jit_client_items): New field.
9526 (timer): Add friend class named_items.
9527 (auto_timevar::auto_timevar): Add timer param.
9528 (auto_timevar::~auto_timevar): Use field "m_timer".
9529 (auto_timevar::m_timer): New field.
9530 * toplev.c (initialize_rtl): Add g_timer as param when
9531 constructing auto_timevar instance.
9532 (toplev::toplev): Add "external_timer" param, and use it to
9533 initialize the "g_timer" global if non-NULL.
9534 (toplev::~toplev): If this created "g_timer", delete it.
9535 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
9536 with "external_timer" timer *.
9538 2015-08-03 Alexander Basov <coohpt@gmail.com>
9543 * cfgexpand.c (expand_one_var): Add check if stack is going to
9544 be used in naked function.
9545 * expr.c (expand_expr_addr_expr_1): Remove excess checking
9546 whether expression should not reside in MEM.
9547 * function.c (use_register_for_decl): Do not use registers for
9548 non-register things (volatile, float, BLKMode) in naked functions.
9550 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
9553 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
9554 Adjust splits to match new pattern.
9556 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
9558 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
9561 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
9562 point in VSX registers.
9564 * config/rs6000/constraints.md (wb constraint): Document unused
9566 (we constraint): Likewise.
9567 (wo constraint): Likewise.
9568 (wp constraint): New constraint for IEEE 128-bit floating point in
9570 (wq constraint): Likewise.
9572 * config/rs6000/predicates.md (easy_fp_constant): Add support for
9573 IEEE 128-bit floating point in VSX registers.
9574 (easy_scalar_constant): Likewise.
9576 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
9577 constraints (wp, wq) for IEEE 128-bit floating point in VSX
9579 (rs6000_init_hard_regno_mode_ok): Likewise.
9581 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
9582 floating point in VSX registers.
9591 (vsx_le_permute_<mode>): Add support to properly swap bytes for
9592 IEEE 128-bit floating point in VSX registers on little endian.
9593 (vsx_le_undo_permute_<mode>): Likewise.
9594 (vsx_le_perm_load_<mode>): Likewise.
9595 (vsx_le_perm_store_<mode>): Likewise.
9596 (splitters for IEEE 128-bit fp moves): Likewise.
9598 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
9601 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
9602 floating point in VSX registers.
9605 * doc/md.text (Machine Constraints): Document wp and wq
9606 constraints on PowerPC.
9608 2015-08-03 Jeff Law <law@redhat.com>
9611 PR gcov-profile/66899
9612 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
9613 iterate over the jump threading paths when an element in the
9614 jump threading paths array is eliminated.
9616 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
9618 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
9620 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
9622 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
9623 is_use_properly_guarded the variable def_preds. Free its
9624 contents before returning.
9625 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
9626 (is_use_properly_guarded): Replace local variable def_preds with
9627 a parameter. Adjust accordingly. Only update *def_preds if it's
9630 2015-08-03 Richard Biener <rguenther@suse.de>
9632 * genmatch.c (simplify::for_subst_vec): New member.
9633 (binary_ok): New helper for for lowering.
9634 (lower_for): Delay substituting operators into result expressions
9635 if we can merge the results eventually again.
9636 (capture_info::walk_result): Adjust for user_id appearing as
9637 result expression operator.
9638 (expr::gen_transform): Likewise.
9639 (dt_simplify::gen_1): Likewise.
9640 (dt_simplify::gen): Pass not substituted operators to tail
9641 functions or initialize local variable with it.
9642 (decision_tree::gen): Adjust function signature.
9643 * match.pd: Fix tests against global code and add default
9644 cases to switch stmts.
9646 2015-08-03 Richard Biener <rguenther@suse.de>
9648 * genmatch.c (dt_simplify::gen): Create captures array
9649 with an initializer.
9651 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9653 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
9654 the host compiler is affected by placement new aliasing bug.
9655 * configure: Regenerate.
9656 * Makefile.in (ALIASING_FLAGS): New variable.
9657 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
9659 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
9662 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
9663 (negmulsf3_vfp): Likewise.
9664 (muldf3negdf_vfp): Disable for -frounding-math.
9665 (mulsf3negsf_vfp): Likewise.
9666 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
9667 fix MULT cost with -frounding-math.
9669 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9671 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
9672 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
9673 explicit. Prefer to add the flag whenever possible.
9674 (noce_process_if_block): Try noce_try_store_flag_constants before
9677 2015-08-03 Richard Biener <rguenther@suse.de>
9679 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
9680 New hash-map to record equivalent transforms.
9681 (dt_node::analyze): Populate the equivalent transforms hash-map.
9682 (dt_simplify::info): Add reference to hash-map entry.
9683 (dt_simplify::gen): If we have split out a function for the
9684 transform, generate a call to it.
9685 (sinfo_hashmap_traits::hash): New function.
9686 (compare_op): New helper function for ...
9687 (sinfo_hashmap_traits::equal_keys): ... this new function.
9688 (decision_tree::gen): Split out common equivalent transforms
9691 2015-08-03 Richard Biener <rguenther@suse.de>
9693 * gimple-fold.c (fold_gimple_assign): Remove folding of
9694 the comparison in COND_EXPRs.
9696 2015-08-03 Richard Biener <rguenther@suse.de>
9698 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
9699 on the rhs of assignments first simplify the embedded
9702 2015-08-03 Richard Biener <rguenther@suse.de>
9704 PR tree-optimization/66917
9705 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
9707 (DR_VECT_AUX): New macro.
9708 (set_dr_misalignment): Adjust.
9709 (dr_misalignment): Likewise.
9710 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
9711 Compute whether the base is at least element aligned.
9712 * tree-vect-stmts.c (ensure_base_align): Adjust.
9713 (vectorizable_store): If the base is not element aligned
9714 preserve alignment of the original access if misalignment is unknown.
9715 (vectorizable_load): Likewise.
9717 2015-08-02 Martin Sebor <msebor@redhat.com>
9719 * c-family/c.opt (-Wframe-address): New warning option.
9720 * doc/invoke.texi (Wframe-address): Document it.
9721 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
9722 Clarify possible effects of calling the functions with non-zero
9723 arguments and mention -Wframe-address.
9724 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
9726 2015-08-01 Michael Collison <michael.collison@linaro.org
9727 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
9729 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
9730 (*arm_umin_cmp): Likewise.
9732 2015-08-01 Caroline Tice <cmtice@google.com>
9735 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
9737 (vtbl_find_mangled_name): New function.
9738 (vtbl_register_mangled_name): New function.
9739 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
9740 mangled name in mangled name vectors.
9741 (find_or_create_vtbl_map_node): Ditto.
9742 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
9743 update recursion_depth on function entry; pass it to every recursive
9744 call; automatically exit if depth > 25 (give up looking at that point).
9745 (verify_bb_vtables): Initialize recursion_depth and pass it to
9746 var_is_used_for_virtual_call_p.
9747 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
9748 global variable decls.
9749 (vtbl_register_mangled_name): New extern function decl.
9751 2015-08-01 Tom de Vries <tom@codesourcery.com>
9753 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
9755 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
9757 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
9758 operation_no_trapping_overflow. Allow non-overflow operations.
9759 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
9762 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
9765 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
9767 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9769 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
9770 Enable for TARGET_32BIT.
9771 (*if_move_neg): Likewise.
9773 2015-07-31 Nick Clifton <nickc@redhat.com>
9775 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
9776 Returns true for __model__.
9777 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
9779 2015-07-31 Alan Modra <amodra@gmail.com>
9782 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
9783 (rs6000_emit_prologue): Set it.
9784 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
9786 2015-07-31 Richard Biener <rguenther@suse.de>
9788 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
9789 -> X == (C1 ^ C2) which is already implemented in match.pd.
9790 Remove redundant dispatching to fold_relational_const.
9791 Move unordered self and NaN compares ...
9792 * match.pd: ... as patterns here. Remove some stray captures
9795 2015-07-31 Petr Murzin <petr.murzin@intel.com>
9797 * config/i386/i386.c
9798 (bdesc_special_args): Convert mask type from signed to unsigned for
9800 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
9801 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
9802 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
9803 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
9804 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
9805 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
9806 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
9807 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
9808 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
9809 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
9810 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
9811 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
9812 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
9813 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
9814 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
9815 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
9816 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
9817 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
9818 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
9819 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
9820 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
9821 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
9822 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
9823 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
9824 * config/i386/i386-builtin-types.def
9825 (V16QI_FTYPE_V16SI): Remove.
9826 (V8DF_FTYPE_V8SI): Ditto.
9827 (V8HI_FTYPE_V8DI): Ditto.
9828 (V8SI_FTYPE_V8DI): Ditto.
9829 (V8SF_FTYPE_V8DF): Ditto.
9830 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
9831 (V16HI_FTYPE_V16SI): Ditto.
9832 (V16SF_FTYPE_V16HI): Ditto.
9833 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
9834 (V16SF_FTYPE_V16SI): Ditto.
9835 (V4DI_FTYPE_V4DI): Ditto.
9836 (V16SI_FTYPE_V16SF): Ditto.
9837 (V16SF_FTYPE_FLOAT): Ditto.
9838 (V8DF_FTYPE_DOUBLE): Ditto.
9839 (V8DI_FTYPE_INT64): Ditto.
9840 (V8DI_FTYPE_V4DI): Ditto.
9841 (V16QI_FTYPE_V8DI): Ditto.
9842 (UINT_FTYPE_V4SF): Ditto.
9843 (UINT64_FTYPE_V4SF): Ditto.
9844 (UINT_FTYPE_V2DF): Ditto.
9845 (UINT64_FTYPE_V2DF): Ditto.
9846 (V16SI_FTYPE_V16SI): Ditto.
9847 (V8DI_FTYPE_V8DI): Ditto.
9848 (V16SI_FTYPE_PV4SI): Ditto.
9849 (V16SF_FTYPE_PV4SF): Ditto.
9850 (V8DI_FTYPE_PV2DI): Ditto.
9851 (V8DF_FTYPE_PV2DF): Ditto.
9852 (V4DI_FTYPE_PV2DI): Ditto.
9853 (V4DF_FTYPE_PV2DF): Ditto.
9854 (V16SI_FTYPE_PV2SI): Ditto.
9855 (V16SF_FTYPE_PV2SF): Ditto.
9856 (V8DI_FTYPE_PV4DI): Ditto.
9857 (V8DF_FTYPE_PV4DF): Ditto.
9858 (V8SF_FTYPE_FLOAT): Ditto.
9859 (V4SF_FTYPE_FLOAT): Ditto.
9860 (V4DF_FTYPE_DOUBLE): Ditto.
9861 (V8SF_FTYPE_PV4SF): Ditto.
9862 (V8SI_FTYPE_PV4SI): Ditto.
9863 (V4SI_FTYPE_PV2SI): Ditto.
9864 (V8SF_FTYPE_PV2SF): Ditto.
9865 (V8SI_FTYPE_PV2SI): Ditto.
9866 (V16SF_FTYPE_PV8SF): Ditto.
9867 (V16SI_FTYPE_PV8SI): Ditto.
9868 (V8DI_FTYPE_V8SF): Ditto.
9869 (V4DI_FTYPE_V4SF): Ditto.
9870 (V2DI_FTYPE_V4SF): Ditto.
9871 (V64QI_FTYPE_QI): Ditto.
9872 (V32HI_FTYPE_HI): Ditto.
9873 (V8UHI_FTYPE_V8UHI): Ditto.
9874 (V16UHI_FTYPE_V16UHI): Ditto.
9875 (V32UHI_FTYPE_V32UHI): Ditto.
9876 (V2UDI_FTYPE_V2UDI): Ditto.
9877 (V4UDI_FTYPE_V4UDI): Ditto.
9878 (V8UDI_FTYPE_V8UDI): Ditto.
9879 (V4USI_FTYPE_V4USI): Ditto.
9880 (V8USI_FTYPE_V8USI): Ditto.
9881 (V16USI_FTYPE_V16USI): Ditto.
9882 (V2DF_FTYPE_V2DF_UINT64): Ditto.
9883 (V2DI_FTYPE_V2DF_V2DF): Ditto.
9884 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
9885 (V8DF_FTYPE_V8DF_V8DI): Ditto.
9886 (V4SF_FTYPE_V4SF_UINT64): Ditto.
9887 (V4SI_FTYPE_V4SF_V4SF): Ditto.
9888 (V16SF_FTYPE_V16SF_V16SI): Ditto.
9889 (V64QI_FTYPE_V32HI_V32HI): Ditto.
9890 (V32HI_FTYPE_V16SI_V16SI): Ditto.
9891 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
9892 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
9893 (V32HI_FTYPE_V64QI_V64QI): Ditto.
9894 (V32HI_FTYPE_V32HI_V32HI): Ditto.
9895 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
9896 (V16SI_FTYPE_V16SI_V4SI): Ditto.
9897 (V16SI_FTYPE_V16SI_V16SI): Ditto.
9898 (V16SI_FTYPE_V32HI_V32HI): Ditto.
9899 (V16SI_FTYPE_V16SI_SI): Ditto.
9900 (V8DI_FTYPE_V8DI_V8DI): Ditto.
9901 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
9902 (V8DI_FTYPE_V16SI_V16SI): Ditto.
9903 (V8DI_FTYPE_V8DI_V2DI): Ditto.
9904 (QI_FTYPE_QI): Ditto.
9905 (SI_FTYPE_SI): Ditto.
9906 (DI_FTYPE_DI): Ditto.
9907 (QI_FTYPE_QI_QI): Ditto.
9908 (QI_FTYPE_QI_INT): Ditto.
9909 (HI_FTYPE_HI_INT): Ditto.
9910 (SI_FTYPE_SI_INT): Ditto.
9911 (DI_FTYPE_DI_INT): Ditto.
9912 (HI_FTYPE_V16QI_V16QI): Ditto.
9913 (SI_FTYPE_V32QI_V32QI): Ditto.
9914 (DI_FTYPE_V64QI_V64QI): Ditto.
9915 (QI_FTYPE_V8HI_V8HI): Ditto.
9916 (HI_FTYPE_V16HI_V16HI): Ditto.
9917 (SI_FTYPE_V32HI_V32HI): Ditto.
9918 (QI_FTYPE_V4SI_V4SI): Ditto.
9919 (QI_FTYPE_V8SI_V8SI): Ditto.
9920 (QI_FTYPE_V2DI_V2DI): Ditto.
9921 (QI_FTYPE_V4DI_V4DI): Ditto.
9922 (QI_FTYPE_V8DI_V8DI): Ditto.
9923 (HI_FTYPE_V16SI_V16SI): Ditto.
9924 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
9925 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
9926 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
9927 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
9928 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
9929 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
9930 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
9931 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
9932 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
9933 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
9934 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
9935 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
9936 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
9937 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
9938 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
9939 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
9940 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
9941 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
9942 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
9943 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
9944 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
9945 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
9946 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
9947 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
9948 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
9949 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
9950 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
9951 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
9952 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
9953 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
9954 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
9955 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
9956 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
9957 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
9958 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
9959 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
9960 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
9961 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
9962 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
9963 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
9964 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
9965 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
9966 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
9967 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
9968 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
9969 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
9970 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
9971 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
9972 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
9973 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
9974 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
9975 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
9976 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
9977 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
9978 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
9979 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
9980 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
9981 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
9982 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
9983 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
9984 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
9985 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
9986 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
9987 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
9988 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
9989 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
9990 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
9991 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
9992 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
9993 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
9994 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
9995 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
9996 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
9997 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
9998 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
9999 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
10000 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
10001 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
10002 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
10003 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
10004 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
10005 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
10006 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
10007 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
10008 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
10009 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
10010 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
10011 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
10012 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
10013 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
10014 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
10015 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
10016 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
10017 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
10018 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
10019 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
10020 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
10021 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
10022 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
10023 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
10024 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
10025 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
10026 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
10027 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
10028 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
10029 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
10030 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
10031 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
10032 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
10033 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
10034 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
10035 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
10036 (HI_FTYPE_HI): Ditto.
10037 (HI_FTYPE_V16QI): Ditto.
10038 (SI_FTYPE_V32QI): Ditto.
10039 (DI_FTYPE_V64QI): Ditto.
10040 (QI_FTYPE_V8HI): Ditto.
10041 (HI_FTYPE_V16HI): Ditto.
10042 (SI_FTYPE_V32HI): Ditto.
10043 (QI_FTYPE_V4SI): Ditto.
10044 (QI_FTYPE_V8SI): Ditto.
10045 (HI_FTYPE_V16SI): Ditto.
10046 (QI_FTYPE_V2DI): Ditto.
10047 (QI_FTYPE_V4DI): Ditto.
10048 (QI_FTYPE_V8DI): Ditto.
10049 (V16QI_FTYPE_HI): Ditto.
10050 (V32QI_FTYPE_SI): Ditto.
10051 (V64QI_FTYPE_DI): Ditto.
10052 (V8HI_FTYPE_QI): Ditto.
10053 (V16HI_FTYPE_HI): Ditto.
10054 (V32HI_FTYPE_SI): Ditto.
10055 (V4SI_FTYPE_QI): Ditto.
10056 (V4SI_FTYPE_HI): Ditto.
10057 (V8SI_FTYPE_QI): Ditto.
10058 (V8SI_FTYPE_HI): Ditto.
10059 (V2DI_FTYPE_QI): Ditto.
10060 (V4DI_FTYPE_QI): Ditto.
10061 (HI_FTYPE_HI_HI): Ditto.
10062 (SI_FTYPE_SI_SI): Ditto.
10063 (DI_FTYPE_DI_DI): Ditto.
10064 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
10065 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
10066 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
10067 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
10068 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
10069 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
10070 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
10071 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
10072 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
10073 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
10074 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
10075 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
10076 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
10077 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
10078 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
10079 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
10080 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
10081 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
10082 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
10083 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
10084 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
10085 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
10086 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
10087 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
10088 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
10089 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
10090 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
10091 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
10092 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
10093 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
10094 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
10095 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
10096 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
10097 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
10098 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
10099 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
10100 (V16SI_FTYPE_HI): Ditto.
10101 (V8DI_FTYPE_QI): Ditto.
10102 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
10103 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
10104 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
10105 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
10106 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
10107 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
10108 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
10109 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
10110 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
10111 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
10112 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
10113 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
10114 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
10115 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
10116 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
10117 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
10118 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
10119 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
10120 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
10121 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
10122 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
10123 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
10124 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
10125 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
10126 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
10127 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
10128 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
10129 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
10130 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
10131 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
10132 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
10133 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
10134 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
10135 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
10136 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
10137 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
10138 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
10139 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
10140 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
10141 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
10142 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
10143 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
10144 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
10145 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
10146 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
10147 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
10148 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
10149 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
10150 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
10151 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
10152 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
10153 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
10154 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
10155 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
10156 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
10157 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
10158 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
10159 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
10160 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
10161 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
10162 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
10163 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
10164 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
10165 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
10166 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
10167 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
10168 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
10169 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
10170 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
10171 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
10172 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
10173 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
10174 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
10175 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
10176 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
10177 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
10178 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
10179 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
10180 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
10181 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
10182 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
10183 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
10184 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
10185 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
10186 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
10187 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
10188 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
10189 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
10190 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
10191 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
10192 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
10193 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
10194 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
10195 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
10196 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
10197 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
10198 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
10199 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
10200 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
10201 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
10202 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
10203 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
10204 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
10205 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
10206 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
10207 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
10208 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
10209 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
10210 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
10211 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
10212 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
10213 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
10214 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
10215 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
10216 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
10217 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
10218 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
10219 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
10220 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
10221 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
10222 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
10223 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
10224 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
10225 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
10226 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
10227 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
10228 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
10229 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
10230 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
10231 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
10232 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
10233 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
10234 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
10235 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
10236 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
10237 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
10238 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
10239 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
10240 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
10241 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
10242 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
10243 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
10244 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
10245 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
10246 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
10247 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
10248 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
10249 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
10250 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
10251 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
10252 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
10253 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
10254 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
10255 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
10256 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
10257 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
10258 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
10259 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
10260 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
10261 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
10262 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
10263 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
10264 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
10265 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
10266 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
10267 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
10268 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
10269 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
10270 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
10271 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
10272 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
10273 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
10274 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
10275 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
10276 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
10277 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
10278 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
10279 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
10280 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
10281 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
10282 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
10283 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
10284 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
10285 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
10286 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
10287 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
10288 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
10289 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
10290 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
10291 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
10292 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
10293 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
10294 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
10295 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
10296 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
10297 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
10298 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
10299 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
10300 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
10301 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
10302 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
10303 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
10304 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
10305 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
10306 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
10307 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
10308 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
10309 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
10310 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
10311 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
10312 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
10313 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
10314 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
10315 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
10316 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
10317 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
10318 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
10319 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
10320 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
10321 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
10322 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
10323 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
10324 (QI_FTYPE_V8DF_INT_QI): Ditto.
10325 (QI_FTYPE_V4DF_INT_QI): Ditto.
10326 (QI_FTYPE_V2DF_INT_QI): Ditto.
10327 (HI_FTYPE_V16SF_INT_HI): Ditto.
10328 (QI_FTYPE_V8SF_INT_QI): Ditto.
10329 (QI_FTYPE_V4SF_INT_QI): Ditto.
10330 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
10332 2015-07-31 Richard Biener <rguenther@suse.de>
10334 * gimple-fold.c (fold_gimple_assign): Remove folding of
10337 2015-07-31 Tom de Vries <tom@codesourcery.com>
10339 PR tree-optimization/66846
10340 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
10341 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
10342 (expand_omp_target) [ENABLE_CHECKING]: Same.
10343 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
10344 cfun if !LOOPS_NEED_FIXUP.
10345 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
10346 that omp_for already has its own loop struct.
10347 * tree-parloops.c (create_phi_for_local_result)
10348 (create_call_for_reduction): Handle simple latch bb.
10349 (create_parallel_loop): Add simple latch bb to preserve
10350 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
10351 (gen_parallel_loop): Remove call to cancel_loop_tree.
10352 (parallelize_loops): Skip loops that are inner loops of parallelized
10354 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
10355 verify_loop_structure.
10357 2015-07-30 Anatoly Sokolov <aesok@post.ru>
10359 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
10360 * config/v850/v850.md (RV_REGNUM): New constants.
10361 * config/v850/v850.c (v850_libcall_value): New functions.
10362 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
10363 (TARGET_LIBCALL_VALUE): Define.
10365 2015-07-30 Anatoly Sokolov <aesok@post.ru>
10367 * rtl.h (lowpart_subreg): Move in file.
10368 * loop-iv.c (lowpart_subreg): Move to...
10369 * simplify-rtx.c (lowpart_subreg): ...here.
10370 (simplify_binary_operation_1): Use lowpart_subreg instead of
10371 simplify_gen_subreg.
10372 * expr.c (expand_expr_real_2): Ditto.
10373 * emit-rtl.c (gen_lowpart_common): Ditto.
10374 * combine.c (gen_lowpart_for_combine): Ditto.
10375 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
10376 expand_debug_source_expr): Ditto.
10378 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
10380 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
10381 (expand_builtin_atomic_clear): Remove support for atomic_clear
10384 2015-07-30 Richard Biener <rguenther@suse.de>
10386 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
10387 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
10388 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
10389 redundant operand canonicalization.
10391 2015-07-30 David Sherwood <david.sherwood@arm.com>
10393 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
10394 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
10395 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
10396 * config/arm/arm.c (neon_valid_immediate): Likewise.
10397 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
10398 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
10399 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
10400 (expand_vec_perm_vpshufb2_vpermq): Likewise.
10401 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
10402 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
10403 * config/i386/sse.md
10404 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
10405 (*ssse3_palignr<mode>_perm): Likewise.
10406 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
10407 * config/spu/spu.c (arith_immediate_p): Likewise.
10408 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
10409 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
10411 2015-07-30 Richard Biener <rguenther@suse.de>
10413 * genmatch.c (decision_tree::gen_gimple): Merge with ...
10414 (decision_tree::gen_generic): ... this into ...
10415 (decision_tree::gen): ... this.
10416 (main): Adjust callers.
10418 2015-07-30 Richard Biener <rguenther@suse.de>
10420 * genmatch.c (verbose): New global.
10421 (warning_at): Add overload with source_location.
10422 (capture_info::capture_info): Add bool whether generating gimple
10423 or generic. Add gimple member.
10424 (capture_info::cinfo): Add capture member.
10425 (capture_info::walk_match): Record capture. Warn on
10426 non-captured leafs.
10427 (capture_info::walk_c_expr): Add more fragments captures cannot
10428 escape through. Warn on escaped captures.
10429 (dt_simplify::gen_1): Warn on operands we force to have no
10431 (main): Initialize verbose.
10432 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
10434 2015-07-30 Richard Biener <rguenther@suse.de>
10436 PR middle-end/67053
10437 * match.pd: Allow both operands to independently have conversion
10438 when simplifying compares of addresses.
10440 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
10444 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
10445 around those cases that need one.
10447 2015-07-29 Aditya Kumar <hiraditya@msn.com>
10449 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
10451 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
10453 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
10454 New. Copied from config/i386/gnu-user.h.
10455 (ASM_COMMENT_START): Likewise.
10456 (DBX_REGISTER_NUMBER): Likewise.
10458 2015-07-29 Richard Biener <rguenther@suse.de>
10460 * gimple-fold.c (fold_gimple_cond): Remove.
10461 (fold_stmt_1): Do not call it.
10463 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
10465 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
10466 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
10468 * config/aarch64/aarch64-modes.def: Add HFmode.
10470 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
10471 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
10473 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
10474 aarch64_promoted_type): New.
10476 (aarch64_float_const_representable_p): Disable HFmode.
10477 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
10478 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
10479 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
10481 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
10482 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
10484 * config/aarch64/iterators.md (GPF_F16): New.
10486 2015-07-29 Richard Biener <rguenther@suse.de>
10488 * match.pd: Merge address comparison patterns and make them
10489 handle some more cases.
10491 2015-07-29 Richard Biener <rguenther@suse.de>
10493 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
10494 (parser::parse_capture): Add bool argument on whether to reject
10496 (parser::parse_expr): Adjust.
10497 (parser::parse_op): Likewise.
10498 (parser::parse_pattern): Likewise.
10500 2015-07-29 Richard Biener <rguenther@suse.de>
10502 * gimple-fold.c (has_use_on_stmt): New function.
10503 (replace_stmt_with_simplification): Use it to allow
10504 abnormals originally referenced in the stmt.
10505 (fold_stmt_1): Canonicalize operand order.
10507 2015-07-28 David Sherwood <david.sherwood@arm.com>
10509 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
10510 GET_MODE_INNER unconditionally.
10511 * config/spu/spu.c (arith_immediate_p): Likewise.
10512 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
10513 * expmed.c (synth_mult): Remove check for VOIDmode result from
10515 (expand_mult_const): Likewise.
10516 * fold-const.c (fold_binary_loc): Replace call to element_precision
10517 with call to GET_MODE_PRECISION.
10518 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
10520 (emit_mode_inner): Likewise.
10521 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
10523 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
10524 (GET_MODE_UNIT_PRECISION): Likewise.
10525 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
10526 * simplify-rtx.c (simplify_immed_subreg): Likewise.
10527 * stor-layout.c (bitwise_type_for_mode): Update assert.
10528 (element_precision): Remove.
10530 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10532 * target-insns.def (reload_load_address): New targetm instruction
10534 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
10536 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10538 * target-insns.def (atomic_test_and_set): New targetm instruction
10540 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
10541 HAVE_*/gen_* interface.
10543 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10545 * target-insns.def (can_extend, ptr_extend): New targetm instruction
10547 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
10548 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
10549 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
10550 * rtlanal.c (nonzero_bits1): Likewise.
10551 (num_sign_bit_copies1): Likewise.
10553 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10555 * target-insns.def (eh_return): New targetm instruction pattern.
10556 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
10558 * function.c (thread_prologue_and_epilogue_insns): Remove
10559 preprocessor condition.
10561 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10563 * target-insns.def (indirect_jump): New targetm instruction pattern.
10564 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
10567 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
10569 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
10570 instead of nonimmediate_operand. Remove C condiition.
10572 2015-07-28 Richard Biener <rguenther@suse.de>
10574 * match.pd: Add more simplification of address comparisons.
10576 2015-07-28 Richard Biener <rguenther@suse.de>
10578 * match.pd: Re-order two cases in comparison with max/min
10579 value simplification to make it apply for bools.
10581 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10583 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
10584 Handle simple SIGN_EXTEND or ZERO_EXTEND.
10585 (aarch64_rtx_costs): Properly strip extend or extract before
10586 passing down to rtx costs again.
10588 2015-07-28 Nick Clifton <nickc@redhat.com>
10590 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
10591 Optimizes the case where -mes0 is active and a constant symbolic
10593 * config/rl78/rl78-protos.h: Prototype the new function.
10594 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
10596 2015-07-28 Tom de Vries <tom@codesourcery.com>
10598 * tree-parloops.c (reduc_stmt_res): New function.
10599 (initialize_reductions, add_field_for_reduction)
10600 (create_phi_for_local_result, create_loads_for_reductions)
10601 (create_stores_for_reduction, build_new_reduction): Handle case that
10602 reduc_stmt is a phi.
10603 (gather_scalar_reductions): Allow double_reduc reductions.
10605 2015-07-28 Richard Biener <rguenther@suse.de>
10607 * fold-const.c (fold_comparison): Remove equality folding
10608 of decl addresses ...
10609 * match.pd: ... here and merge with existing pattern.
10611 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
10613 PR tree-optimization/66828
10614 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
10615 from int64_t to uint64_t.
10617 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
10619 * opts-common.c (read_cmdline_option): List DriverOnly enum values
10620 as valid only in the error message of the driver, not in the
10621 messages of the language compilers.
10623 2015-07-27 Tom de Vries <tom@codesourcery.com>
10625 * tree-parloops.c (gather_scalar_reductions): Simplify function
10628 2015-07-27 Marek Polacek <polacek@redhat.com>
10630 * ipa-devirt.c (types_same_for_odr): Fix typo.
10632 2015-07-27 Jason Merrill <jason@redhat.com>
10635 * dwarf2out.c (gen_inlined_subroutine_die): Check
10636 cgraph_function_possibly_inlined_p.
10638 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
10640 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
10641 Place integer variant first.
10642 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
10644 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
10647 * config/arm/arm-builtins.c (enum arm_builtins):
10648 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
10649 (ARM_BUILTIN_NEON_BASE): Rename macro to....
10650 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
10651 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
10652 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
10654 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
10657 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
10658 Add qualifier_lane_index.
10659 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
10660 (arm_getlane_qualifiers): Use qualifier_lane_index.
10661 (arm_lanemac_qualifiers): Rename to...
10662 (arm_mac_n_qualifiers): ...this.
10663 (LANEMAC_QUALIFIERS): Rename to...
10664 (MAC_N_QUALIFIERS): ...this.
10665 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
10666 (arm_setlane_qualifiers): Use qualifier_lane_index.
10667 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
10668 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
10669 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
10670 (arm_expand_neon_builtin): Handle qualifier_lane_index.
10672 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
10673 * config/arm/arm.c (bounds_check): Likewise, improve error message.
10674 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
10675 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
10676 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
10677 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
10678 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
10679 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
10680 qualifiers to TERNOP_IMM.
10681 (vdup_lane): Change qualifiers to GETLANE.
10682 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
10683 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
10684 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
10685 vqdmlsl_n): Change qualifiers to MAC_N.
10687 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
10688 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
10689 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
10690 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
10691 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
10692 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
10693 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
10694 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
10695 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
10696 Remove call to neon_lane_bounds.
10698 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
10700 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
10701 Place integer variant first.
10703 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
10705 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
10706 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
10707 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
10708 for armv6kz targets.
10709 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
10710 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
10711 (FL_FOR_ARCH6ZK): Remove.
10712 (FL_FOR_ARCH6KZ): New.
10713 (arm_arch6zk): New declaration.
10714 * config/arm/arm-tables.opt: Regenerate.
10715 * config/arm/arm.c (arm_arch6kz): New.
10716 (arm_option_override): Set arm_arch6kz.
10717 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
10718 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
10719 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
10721 2015-07-27 Marek Polacek <polacek@redhat.com>
10725 * doc/invoke.texi: Document -Wtautological-compare.
10727 2015-07-27 Richard Biener <rguenther@suse.de>
10729 * genmatch.c (decision_tree::gen_gimple): Split out large
10730 subtrees into separate functions.
10731 (decision_tree::gen_generic): Likewise.
10733 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
10735 * config/alpha/alpha.c: Use SUBREG_P predicate.
10736 * config/alpha/predicates.md: Ditto.
10738 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
10740 * config.host (s390*-*-*): Include driver-native.c only when
10741 building with s390* as host *and* target.
10743 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
10746 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
10747 T bit register modified_between_p check.
10749 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10751 * config/i386/i386.c: Use SUBREG_P predicate.
10752 * config/i386/i386.md: Ditto.
10753 * config/i386/sse.md: Ditto.
10754 * config/i386/predicates.md: Ditto.
10756 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10759 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
10760 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
10762 2015-07-25 Sebastian Pop <s.pop@samsung.com>
10764 * Makefile.in: Remove use of TREEBROWSER.
10765 * config.in: Regenerated.
10766 * configure: Regenerated.
10767 * configure.ac: Remove definition of TREEBROWSER.
10768 * tree-browser.c: Removed.
10769 * tree-browser.def: Removed.
10771 2015-07-25 Sebastian Pop <s.pop@samsung.com>
10773 * graphite-scop-detection.c: Include gimple-pretty-print.h.
10774 (stmt_simple_for_scop_p): Print when a stmt is not handled in
10776 (scopdet_basic_block_info): Print when a loop or bb cannot be
10777 represented in Graphite.
10779 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10782 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
10783 execution guard when min_size is less than size_needed.
10785 2015-07-25 Sebastian Pop <s.pop@samsung.com>
10787 * doc/install.texi: Document supported versions of ISL.
10789 2015-07-25 Jeff Law <law@redhat.com>
10793 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10794 unable to find X NE 0 in the tables, return X as the simplified
10796 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10797 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10798 to VISISTED_BBS. */
10799 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10800 after removing the control flow statement and unnecessary edges.
10802 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
10805 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
10807 PR rtl-optimization/64164
10808 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
10809 * tree-ssa-copyrename.c: Removed.
10810 * opts.c (default_options_table): Drop -ftree-copyrename. Add
10811 -ftree-coalesce-vars.
10812 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
10813 * common.opt (ftree-copyrename): Ignore.
10814 (ftree-coalesce-inlined-vars): Likewise.
10815 * doc/invoke.texi: Remove the ignored options above.
10816 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
10817 * tree-ssa-coalesce.h: ... here.
10818 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
10819 headers required by it.
10820 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
10821 across variables when flag_tree_coalesce_vars. Check register
10822 use and promoted modes to allow coalescing. Moved to
10823 tree-ssa-coalesce.c.
10824 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
10825 with its member functions to tree-ssa-coalesce.c.
10826 (var_map_base_init): Likewise. Renamed to
10827 compute_samebase_partition_bases.
10828 (partition_view_normal): Drop want_bases parameter.
10829 (partition_view_bitmap): Likewise.
10830 * tree-ssa-live.h: Adjust declarations.
10831 * tree-ssa-coalesce.c: Include explow.h.
10832 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
10833 default defs at the entry point.
10834 (dump_part_var_map): New.
10835 (compute_optimized_partition_bases): New, called by...
10836 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
10837 of compute_samebase_partition_bases. Adjust.
10838 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
10839 * cfgexpand.c (leader_merge): New.
10840 (get_rtl_for_parm_ssa_default_def): New.
10841 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
10842 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
10843 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
10844 redundant MEM attr setting.
10845 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
10847 (expand_one_stack_var): ... this. New wrapper to check and
10848 skip already expanded SSA partitions.
10849 (record_alignment_for_reg_var): New, factored out of...
10850 (expand_one_var): ... this.
10851 (expand_one_ssa_partition): New.
10852 (adjust_one_expanded_partition_var): New.
10853 (expand_one_register_var): Check and skip already expanded SSA
10855 (expand_used_vars): Don't create DECLs for anonymous SSA
10856 names. Expand all SSA partitions, then adjust all SSA names.
10857 (pass::execute): Replace the loops that set
10858 SA.partition_to_pseudo from partition leaders and cleared
10859 DECL_RTL for multi-location variables, and that which used to
10860 rename vars and set attrs, with one that clears DECL_RTL and
10861 checks that PARMs and RESULTs default_defs match DECL_RTL.
10862 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
10863 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
10864 * explow.c (promote_ssa_mode): New.
10865 * explow.h (promote_ssa_mode): Declare.
10866 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
10867 * function.c: Include cfgexpand.h.
10868 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
10869 (use_register_for_parm_decl): Wrapper for the above to
10870 special-case the result_ptr.
10871 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
10872 (split_complex_args): Take assign_parm_data_all argument.
10873 Pass it to rtl_for_parm. Set up rtl and context for split
10875 (assign_parms_augmented_arg_list): Adjust.
10876 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
10877 multiple locations. Recognize split complex args.
10878 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
10879 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
10880 (assign_parm_setup_block): Prefer SSA-assigned location.
10881 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
10882 if stack_parm is NULL.
10883 (assign_parm_setup_stack): Prefer SSA-assigned location.
10884 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
10885 rtl before testing for pointer bounds. Special-case result_ptr.
10886 (expand_function_start): Maybe reset DECL_RTL of result.
10887 Prefer SSA-assigned location for result and static chain.
10888 Factor out DECL_RESULT and SET_DECL_RTL.
10889 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
10890 anonymous SSA names. Use promote_ssa_mode.
10891 (get_temp_reg): Likewise.
10892 (remove_ssa_form): Adjust.
10893 * stor-layout.c (layout_decl): Don't set mem attributes of
10895 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
10896 and get its reg_usage for reg invalidation.
10897 (compute_bb_dataflow): Pass it insn.
10898 (emit_notes_in_bb): Likewise.
10900 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
10902 * config/i386/i386.c (ix86_va_start): Remove
10903 unneeded !TARGET_64BIT check.
10904 (ix86_gimplify_va_arg): Ditto.
10906 2015-07-24 Tom de Vries <tom@codesourcery.com>
10908 * graphite-sese-to-poly.c (build_poly_scop): Always call
10909 rewrite_commutative_reductions_out_of_ssa.
10911 2015-07-24 Tom de Vries <tom@codesourcery.com>
10913 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
10914 flag_associative_math to FLOAT_TYPE_P. Honour
10915 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
10917 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
10920 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
10921 and "%qD" in warning_at instead of "%q+D" in warning.
10923 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
10925 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
10926 (ix86_function_abi): Cleanup.
10928 2015-07-24 Michael Darling <darlingm@gmail.com>
10931 * acinclude.m4: Reflects renaming of configure.in to configure.ac
10932 * configure: Likewise
10933 * configure.ac: Likewise
10934 * doc/install.texi: Likewise
10935 * doc/tm.texi: Likewise
10936 * doc/tm.texi.in: Likewise
10938 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10940 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
10941 manually swapping values.
10942 * cse.c (fold_rtx): Likewise.
10943 * lra-eliminations.c (form_sum): Likewise.
10945 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
10948 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
10949 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
10950 (*jcc_1, *jcc_2, jump, simple_return_internal)
10951 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
10952 Set length_nobnd attribute instead of length attribute.
10953 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
10954 (length_nobnd): Remove attribute.
10955 (length): Remove length_nobnd processing.
10957 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
10959 * gimplify.c (omp_default_clause): New function. Reorganize flow
10960 for clarity. Broken out of ...
10961 (omp_notice_variable): ... here.
10963 2015-07-24 Gary Funck <gary@intrepid.com>
10965 PR middle-end/66984
10966 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
10967 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
10969 2015-07-24 Tom de Vries <tom@codesourcery.com>
10971 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
10972 exit-first loop transform.
10974 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
10977 * tree-cfg.c (struct replace_decls_d): New struct.
10978 (replace_block_vars_by_duplicates_1): New function.
10979 (replace_block_vars_by_duplicates): Use it to replace the decls
10980 in the value exprs by duplicates.
10982 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
10984 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
10985 -shared, -symbolic, -rdynamic.
10987 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
10990 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
10991 -dynamic-linker within %{!static %{!shared, and -rdynamic within
10994 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
10997 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
10998 edge summary is available.
11000 2015-07-24 Richard Biener <rguenther@suse.de>
11002 * genmatch.c (struct dt_node): Add statistic fields.
11003 (dt_node::analyze): New method.
11004 (decision_tree::gen_gimple): Call analyze on the root node
11005 and print statistics to stderr.
11006 (decision_tree::gen_generic): Likewise.
11008 2015-07-24 Richard Biener <rguenther@suse.de>
11010 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
11011 against the highest or lowest possible integer ...
11012 * match.pd: ... as patterns here.
11014 2015-07-24 Richard Biener <rguenther@suse.de>
11016 * genmatch.c (struct capture_info): Add same_as field.
11017 (capture_info::capture_info): Initialize same_as.
11018 (capture_info::walk_match): Compute same_as.
11019 (capture_info::walk_result): Compute stuff for the leader.
11020 (capture_info::walk_c_expr): Likewise.
11021 (dt_simplify::gen_1): Only look at leaders when deciding
11022 to force no side-effects or emit side-effects of omitted operands.
11024 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11026 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
11027 reg note to the GPR -> FPR save instructions.
11029 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11031 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
11033 (s390_expand_insv): Don't generate risbg pattern for constant zero
11035 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
11036 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
11039 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11041 * config/s390/s390.c (s390_reorg): Clean up handling of processors
11044 (s390_issue_rate): Likewise.
11045 (s390_sched_reorder): Likewise.
11046 (s390_sched_variable_issue): Likewise.
11047 (s390_loop_unroll_adjust): Likewise.
11048 (s390_option_override): Likewise.
11050 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11052 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
11053 processor capabilities with -march=native.
11054 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
11055 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
11056 (S390_TARGET_BITS_STRING): Macro to simplify specs.
11058 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11060 * config/s390/s390.c (s390_issue_rate): Handle
11061 PROCESSOR_2094_Z9_EC.
11062 (s390_option_override): Likewise.
11063 (s390_adjust_priority): Likewise.
11065 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
11067 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
11068 when cross compiling.
11070 2015-07-24 Richard Biener <rguenther@suse.de>
11072 * fold-const.c (maybe_canonicalize_comparison_1): Move
11073 A code CST canonicalization ...
11074 * match.pd: ... to a pattern here.
11076 2015-07-24 Jiong Wang <jiong.wang@arm.com>
11079 2015-07-22 Jiong Wang <jiong.wang@arm.com>
11081 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11082 (HONOR_REG_ALLOC_ORDER): Define.
11084 2015-07-24 Richard Biener <rguenther@suse.de>
11086 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
11087 * fold-const.c (fold_comparison): Move parameter does not
11088 alias &local simplification ...
11089 * match.pd: ... as a pattern here.
11091 2015-07-24 Richard Biener <rguenther@suse.de>
11093 * gimple-fold.c (replace_stmt_with_simplification): Special-case
11094 valueizing call operands.
11095 * gimple-match-head.c (maybe_push_res_to_seq): Take
11096 number of call arguments from ops array.
11097 (do_valueize): New function.
11098 (gimple_simplify): Return true if valueization changed
11099 any operand even if the result didn't simplify further.
11101 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11103 PR middle-end/25530
11104 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
11106 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11108 PR middle-end/25529
11109 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
11111 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11113 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
11116 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
11118 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
11121 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
11123 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
11124 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
11126 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
11127 ms_va_list_type_node initialization.
11129 2015-07-23 Jeff Law <law@redhat.com>
11132 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
11133 unable to find X NE 0 in the tables, return X as the simplified
11135 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
11136 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
11137 to VISISTED_BBS. */
11138 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
11139 after removing the control flow statement and unnecessary edges.
11141 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
11143 * tree-pass.h (get_current_pass_name): Removed.
11145 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
11147 PR rtl-optimization/64164
11148 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11149 * tree-ssa-copyrename.c: Removed.
11150 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11151 -ftree-coalesce-vars.
11152 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11153 * common.opt (ftree-copyrename): Ignore.
11154 (ftree-coalesce-inlined-vars): Likewise.
11155 * doc/invoke.texi: Remove the ignored options above.
11156 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11157 * tree-ssa-coalesce.h: ... here.
11158 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11159 headers required by it.
11160 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11161 across variables when flag_tree_coalesce_vars. Check register
11162 use and promoted modes to allow coalescing. Moved to
11163 tree-ssa-coalesce.c.
11164 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11165 with its member functions to tree-ssa-coalesce.c.
11166 (var_map_base_init): Likewise. Renamed to
11167 compute_samebase_partition_bases.
11168 (partition_view_normal): Drop want_bases parameter.
11169 (partition_view_bitmap): Likewise.
11170 * tree-ssa-live.h: Adjust declarations.
11171 * tree-ssa-coalesce.c: Include explow.h.
11172 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11173 default defs at the entry point.
11174 (dump_part_var_map): New.
11175 (compute_optimized_partition_bases): New, called by...
11176 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11177 of compute_samebase_partition_bases. Adjust.
11178 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11179 * cfgexpand.c (leader_merge): New.
11180 (get_rtl_for_parm_ssa_default_def): New.
11181 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11182 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11183 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11184 redundant MEM attr setting.
11185 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11187 (expand_one_stack_var): ... this. New wrapper to check and
11188 skip already expanded SSA partitions.
11189 (record_alignment_for_reg_var): New, factored out of...
11190 (expand_one_var): ... this.
11191 (expand_one_ssa_partition): New.
11192 (adjust_one_expanded_partition_var): New.
11193 (expand_one_register_var): Check and skip already expanded SSA
11195 (expand_used_vars): Don't create DECLs for anonymous SSA
11196 names. Expand all SSA partitions, then adjust all SSA names.
11197 (pass::execute): Replace the loops that set
11198 SA.partition_to_pseudo from partition leaders and cleared
11199 DECL_RTL for multi-location variables, and that which used to
11200 rename vars and set attrs, with one that clears DECL_RTL and
11201 checks that PARMs and RESULTs default_defs match DECL_RTL.
11202 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11203 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
11204 * explow.c (promote_ssa_mode): New.
11205 * explow.h (promote_ssa_mode): Declare.
11206 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
11207 * function.c: Include cfgexpand.h.
11208 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
11209 (use_register_for_parm_decl): Wrapper for the above to
11210 special-case the result_ptr.
11211 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
11212 (split_complex_args): Take assign_parm_data_all argument.
11213 Pass it to rtl_for_parm. Set up rtl and context for split
11215 (assign_parms_augmented_arg_list): Adjust.
11216 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
11217 multiple locations. Recognize split complex args.
11218 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
11219 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
11220 (assign_parm_setup_block): Prefer SSA-assigned location.
11221 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
11222 if stack_parm is NULL.
11223 (assign_parm_setup_stack): Prefer SSA-assigned location.
11224 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
11225 rtl before testing for pointer bounds. Special-case result_ptr.
11226 (expand_function_start): Maybe reset DECL_RTL of result.
11227 Prefer SSA-assigned location for result and static chain.
11228 Factor out DECL_RESULT and SET_DECL_RTL.
11229 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
11230 anonymous SSA names. Use promote_ssa_mode.
11231 (get_temp_reg): Likewise.
11232 (remove_ssa_form): Adjust.
11233 * stor-layout.c (layout_decl): Don't set mem attributes of
11235 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
11236 and get its reg_usage for reg invalidation.
11237 (compute_bb_dataflow): Pass it insn.
11238 (emit_notes_in_bb): Likewise.
11240 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
11243 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
11245 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
11246 (rs6000_emit_2insn_and): Handle dot forms.
11247 * config/rs6000/rs6000.md (and<mode>3): Adjust.
11248 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
11249 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
11251 2015-07-23 Richard Biener <rguenther@suse.de>
11253 * generic-match-head.c: Include cgraph.h.
11254 * gimple-match-head.c: Likewise.
11255 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
11257 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
11258 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
11261 2015-07-23 Richard Biener <rguenther@suse.de>
11263 * gimple-fold.c (fold_gimple_cond): Do not require folding
11264 results to pass valid_gimple_rhs_p.
11265 * tree-cfg.h (fold_cond_expr_cond): Remove.
11266 * tree-cfg.c (fold_cond_expr_cond): Likewise.
11267 (make_edges): Do not call it.
11268 * tree-inline.c (tree_function_versioning): Likewise.
11270 2015-07-23 Tom de Vries <tom@codesourcery.com>
11272 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
11273 vect_force_simple_reduction.
11274 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
11275 (vect_is_simple_reduction_1): Add and handle
11276 need_wrapping_integral_overflow parameter.
11277 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
11278 need_wrapping_integral_overflow parameter.
11279 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
11280 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
11283 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
11285 PR tree-optimization/66926,66951
11286 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
11287 INNER_LOOP and fix up condition for renaming virtual operands.
11289 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11291 * combine.c (try_combine): Use std::swap instead of manually
11294 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
11296 * config/mips/i6400.md: New file.
11297 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
11298 (mips64r6): Likewise.
11300 * config/mips/mips-tables.opt: Regenerate.
11301 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
11302 (mips_issue_rate): Add support for i6400.
11303 (mips_multipass_dfa_lookahead): Likewise.
11304 * config/mips/mips.h (TUNE_I6400): Define.
11305 * config/mips/mips.md: Include i6400.md.
11306 (processor): Add i6400.
11307 * doc/invoke.texi (-march=@var{arch}): Add i6400.
11309 2015-07-23 Richard Biener <rguenther@suse.de>
11311 PR middle-end/66916
11312 * match.pd: Guard widen and sign-change comparison simplification
11315 2015-07-23 Richard Biener <rguenther@suse.de>
11317 PR tree-optimization/66945
11318 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
11319 ::before_dom_children): Force the propagators idea of
11320 non-executable edges to materialize, not what the folder
11323 2015-07-23 Richard Biener <rguenther@suse.de>
11325 * gimple.h (gimple_cond_make_false): Use 0 != 0.
11326 (gimple_cond_make_true): Use 1 != 0.
11328 2015-07-22 DJ Delorie <dj@redhat.com>
11330 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
11333 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
11334 (ashrhi3): Likewise.
11335 (lshrhi3): Likewise.
11336 (movhi): Take advantage of zero-extend to load small constants.
11337 (movpsi): Likewise.
11338 (and<mode>3): Likewise.
11339 (zero_extendqihi2): Likewise.
11340 (zero_extendqisi2): New.
11341 * config/msp430/constraints.md (N,O): New.
11342 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
11344 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
11347 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
11348 to enum feature_priority and feature_list.
11349 (fold_builtin_cpu): Add F_AES to enum processor_features
11350 and isa_names_table.
11352 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
11355 * config/i386/linux-common.h (MPX_SPEC): Use linker option
11356 for 64bit target only.
11358 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
11360 * config/nvptx/nvptx.c: Expand some comments.
11362 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
11364 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
11365 (cortex_a53_advsimd): ...This.
11367 2015-07-22 Richard Biener <rguenther@suse.de>
11369 * genmatch.c (expr::gen_transform): Clarify error message
11370 and display location.
11372 2015-07-22 Richard Biener <rguenther@suse.de>
11374 * genmatch.c (struct operand): Add location member.
11375 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
11377 (struct simplify): Remove match_location and result_location
11379 (elsehwere): Adjust.
11381 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
11383 * config/mips/m5100.md: New file.
11384 * config/mips/mips-cpus.def (m5100, m5101): Define.
11385 * config/mips/mips-tables.opt: Regenerate.
11386 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
11387 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
11388 -march=m5101 to -mips32r5.
11389 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
11390 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
11392 * config/mips/mips.md: Include m5100.md.
11393 (processor): Add m5100.
11394 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
11396 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
11398 * config/mips/mips-cpus.def (interaptiv): Define.
11399 * config/mips/mips-tables.opt: Regenerate.
11400 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
11402 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
11403 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
11405 2015-07-22 Jiong Wang <jiong.wang@arm.com>
11408 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
11409 (HONOR_REG_ALLOC_ORDER): Define.
11411 2015-07-22 Richard Biener <rguenther@suse.de>
11413 PR tree-optimization/66952
11414 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
11415 blocks we end up executing unconditionally reset all SSA
11416 info such as range and alignment.
11417 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
11418 * tree-ssanames.c (reset_flow_sensitive_info): New function.
11420 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
11422 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
11425 2015-07-22 Richard Biener <rguenther@suse.de>
11427 * genmatch.c (parser::parse_result): Properly handle
11428 match with result operands and conditions.
11430 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
11433 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
11434 Add qualifier_struct_load_store_lane_index.
11435 (aarch64_types_loadstruct_lane_qualifiers): Use
11436 qualifier_struct_load_store_lane_index for lane index argument for
11438 (aarch64_types_storestruct_lane_qualifiers): Ditto.
11439 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11440 (aarch64_simd_expand_args): Add new argument describing mode of
11441 builtin. Check lane bounds for arguments with
11442 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11443 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
11444 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
11445 (aarch64_simd_expand_builtin): Handle arguments with
11446 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
11447 aarch64_simd_expand_args.
11448 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
11449 vst[234]_lane with BUILTIN_VALLDIF.
11450 * config/aarch64/aarch64-simd.md:
11451 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
11452 endianness reversal on lane index.
11453 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
11454 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
11455 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
11456 (vec_store_lanesci_lane<mode>): Ditto.
11457 (vec_store_lanesxi_lane<mode>): Ditto.
11458 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
11459 reversal of lane index.
11460 (aarch64_ld3_lane<mode>): Ditto.
11461 (aarch64_ld4_lane<mode>): Ditto.
11462 (aarch64_st2_lane<mode>): Ditto.
11463 (aarch64_st3_lane<mode>): Ditto.
11464 (aarch64_st4_lane<mode>): Ditto.
11465 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
11466 to qmode. Add new mode parameter. Update uses.
11467 (__LD3_LANE_FUNC): Ditto.
11468 (__LD4_LANE_FUNC): Ditto.
11469 (__ST2_LANE_FUNC): Ditto.
11470 (__ST3_LANE_FUNC): Ditto.
11471 (__ST4_LANE_FUNC): Ditto.
11473 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
11475 * doc/invoke.texi (Language Independent Options): Rename node to
11476 Diagnostic Message Formatting Options.
11478 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
11481 * lra-remat.c (operand_to_remat): Prevent using insns with input
11482 subregs processed separately by IRA.
11484 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
11486 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
11488 (single_imm_use): Check for iterator node.
11489 (num_imm_uses): Likewise.
11490 * tree-ssa-operands.c (has_zero_uses_1): Delete.
11491 (single_imm_use_1): Check for iterator node.
11493 2015-07-21 Mike Frysinger <vapier@gentoo.org>
11494 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11496 * configure.ac: Add check for new options in isl-0.15.
11497 * config.in, configure: Rebuilt.
11498 * graphite-blocking.c: Include <isl/constraint.h>
11499 * graphite-interchange.c, graphite-poly.c: Likewise.
11500 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
11501 * graphite.c: Likewise.
11502 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
11504 * graphite-dependences.c: Include <isl/constraint.h>.
11505 (max_number_of_out_dimensions): Returns isl_stat.
11506 (extend_schedule_1): Likewise
11507 (extend_schedule): Corresponding changes.
11508 * graphite-optimize-isl.c: Include <isl/constraint.h> and
11510 (getSingleMap): Change return type of isl_stat.
11511 (optimize_isl): Conditionally use
11512 isl_options_set_schedule_serialize_sccs.
11513 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
11514 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
11516 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
11519 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
11520 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
11522 2015-07-21 Richard Biener <rguenther@suse.de>
11524 PR tree-optimization/66948
11525 * genmatch.c (capture_info::walk_match): Also recurse to
11526 captures. Properly compute expr state from captures of
11528 * match.pd: Add single-use guards to
11529 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
11531 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
11533 * config/nvptx/mkoffload.c (process): Add static destructor call.
11535 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11537 PR middle-end/66915
11538 * match.pd (A - B -> A + (-B)): Don't allow folding
11539 when type if a fixed-point type.
11541 2015-07-20 DJ Delorie <dj@redhat.com>
11543 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
11544 (iorqi3_real): Likewise for set1.
11546 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
11548 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
11551 2015-07-20 Aditya Kumar <hiraditya@msn.com>
11553 * graphite-isl-ast-to-gimple.c:
11554 Refactor so that each function can access 'region'. This will help
11555 maintain a parameter rename_map within a region.
11557 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11559 * config/rs6000/rs6000.md (*lt0_disi): New.
11561 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
11564 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
11565 "available letters" comment.
11566 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
11567 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
11568 and_2rld_operand): Delete.
11569 (and_operand): Adjust.
11570 (rotate_mask_operator): New.
11571 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
11572 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
11573 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
11574 extract_ME): Delete.
11575 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11576 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
11577 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
11578 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11579 rs6000_emit_2insn_and): New.
11580 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
11581 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
11582 includes_rldic_lshift_p, includes_rldicr_lshift_p,
11583 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
11584 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
11585 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
11586 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
11587 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
11588 rs6000_emit_2insn_and): New.
11589 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
11590 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
11592 <NOT>: Don't fall through to next case.
11593 <AND>: Handle the various rotate-and-mask cases directly.
11594 <IOR>: Always cost as one insn.
11595 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
11596 (and<mode>3): Adjust expander for the new patterns.
11597 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
11598 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
11599 (*and<mode>3_imm_dot_shifted): New.
11600 (*and<mode>3_mask): Delete, rewrite as ...
11601 (and<mode>3_mask): ... New.
11602 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
11603 (andsi3_internal0_nomc): Delete.
11604 (*andsi3_internal6): Delete.
11605 (*and<mode>3_2insn): New.
11606 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
11607 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
11608 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
11609 *insvdi_internal3): Delete.
11610 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
11611 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
11612 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
11613 *ior<mode>_mask): New.
11614 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
11615 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
11616 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
11617 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
11619 (ashr<mode>3): Delete expander.
11620 (*ashr<mode>3): Rename to ...
11621 (ashr<mode>3): ... This.
11622 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
11623 (*rotldi3_internal4, *rotldi3_internal5 and split,
11624 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
11625 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
11626 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
11627 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
11628 (splitter for loading a mask): Adjust.
11629 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
11631 2015-07-20 Marek Polacek <polacek@redhat.com>
11633 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
11634 output_add_clobbers, output_added_clobbers_hard_reg_p,
11635 gen_rtx_scratch): Remove declarations.
11637 2015-07-20 Marek Polacek <polacek@redhat.com>
11640 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
11642 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11644 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
11645 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
11647 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11649 * combine.c (combine_simplify_rtx): Move simplification step
11650 before various transformations/substitutions.
11652 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
11654 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
11655 (struct int_traits): Likewise.
11657 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11659 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
11660 function to vmsdbgout_function_decl.
11662 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
11665 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
11666 from misaligned positions.
11667 (ix86_expand_pinsr): Reject insertions to misaligned positions.
11669 2015-07-18 Sebastian Pop <s.pop@samsung.com>
11671 PR middle-end/46851
11672 PR middle-end/60340
11673 * Makefile.in: Removed omega.o.
11674 * common.opt: Document flag fcheck-data-deps as deprecated.
11675 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
11676 its associated params: omega-max-vars, omega-max-geqs,
11677 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
11678 omega-max-keys, omega-eliminate-redundant-constraints.
11679 * doc/loop.texi: Remove all the section on Omega.
11680 * graphite-blocking.c: Include missing params.h: it used to be
11681 included through tree-data-ref.h and omega.h.
11682 * graphite-isl-ast-to-gimple.c: Same.
11683 * graphite-optimize-isl.c: Same.
11684 * graphite-sese-to-poly.c: Same.
11685 * graphite.c: Same.
11688 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
11689 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
11690 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
11691 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
11692 * passes.def: Remove pass_check_data_deps.
11693 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
11694 (dump_conflict_function): Same.
11695 (dump_subscript): Same.
11696 (print_direction_vector): Same.
11697 (print_dir_vectors): Same.
11698 (print_lambda_vector): Same.
11699 (print_dist_vectors): Same.
11700 (dump_data_dependence_relation): Same.
11701 (dump_data_dependence_relations): Same.
11702 (dump_dist_dir_vectors): Same.
11704 (init_omega_eq_with_af): Removed.
11705 (omega_extract_distance_vectors): Removed.
11706 (omega_setup_subscript): Removed.
11707 (init_omega_for_ddr_1): Removed.
11708 (init_omega_for_ddr): Removed.
11709 (ddr_consistent_p): Removed.
11710 (compute_affine_dependence): Do not use omega to check data
11712 (compute_data_dependences_for_bb): Removed.
11713 (analyze_all_data_dependences): Removed.
11714 (tree_check_data_deps): Removed.
11715 * tree-data-ref.h: Do not include omega.h.
11716 (compute_data_dependences_for_bb): Removed.
11717 (tree_check_data_deps): Removed.
11718 * tree-ssa-loop.c (pass_check_data_deps): Removed.
11719 (make_pass_check_data_deps): Removed.
11720 * tree-ssa-phiopt.c: Include params.h.
11721 * tree-vect-data-refs.c: Same.
11722 * tree-vect-slp.c: Same.
11724 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
11726 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
11727 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
11728 (mem->fpreg splitters): Ditto.
11729 (general_operand->nonimmediate_operand splitter): Use explicit modes.
11730 Disable DFmode for TARGET_64BIT.
11732 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
11735 * config/i386/i386.c (ix86_expand_prologue): Replicate static
11736 chain on the stack.
11738 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
11740 * config/nvptx/mkoffload.c (process): Constify host data.
11741 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11742 Constify host data.
11743 (generate_host_descr_file): Likewise.
11745 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
11746 Sebastian Pop <s.pop@samsung.com>
11748 PR middle-end/61929
11749 * graphite-dependences.c (add_pdr_constraints): Renamed
11750 pdr->extent to pdr->subscript_sizes.
11751 * graphite-interchange.c (build_linearized_memory_access): Add
11752 back all gcc_assert's that the "isl_int to isl_val conversion"
11753 patch has removed. Refactored.
11754 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
11755 * graphite-poly.c (new_poly_dr): Same.
11756 (free_poly_dr): Same.
11757 * graphite-poly.h (struct poly_dr): Same.
11758 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
11759 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
11760 * graphite-scop-detection.h: Fix space.
11761 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
11762 back all gcc_assert's removed by a previous patch.
11763 (wrap): Remove the_isl_ctx global variable that the same patch has
11765 (build_loop_iteration_domains): Same.
11766 (add_param_constraints): Same.
11767 (pdr_add_data_dimensions): Same. Refactored.
11768 (build_poly_dr): Renamed extent to subscript_sizes.
11770 2015-07-17 Marek Polacek <polacek@redhat.com>
11772 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
11773 * match.pd: ... here.
11775 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
11777 * config/nvptx/mkoffload.c (process): Constify target data.
11778 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
11779 Constify target data.
11780 (generate_target_offloadend_file): Likewise.
11782 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
11784 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
11785 to allow renaming of PHI arguments on edges incoming from outer
11786 loop header, add corresponding check before start PHI iterator.
11787 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
11788 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
11789 with true force_vectorize. Set-up dominator for outer loop too.
11790 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
11791 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
11792 was marked with force_vectorize and has restricted cfg.
11793 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
11795 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
11796 do peeling for outer loops.
11798 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
11799 Matthias Klose <doko@ubuntu.com>
11801 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
11802 build-sysroot, sysroot from the `Miscenalleous configure options' to
11803 the `Directories' section and strip trailing `/' from with_sysroot.
11804 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
11805 * configure: Regenerated.
11807 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
11810 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
11811 (TARGET_HARD_DF_REGS): Ditto.
11812 (TARGET_HARD_XF_REGS): Ditto.
11813 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
11814 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
11815 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
11816 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
11817 (*movsf_internal): Add alternatives 16 and 17. Enable
11818 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
11820 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
11822 PR rtl-optimization/66891
11823 * calls.c (expand_call): Wrap precompute_register_parameters with
11824 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
11826 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
11828 * config/nvptx/mkoffload.c (process): Constify mapping variables.
11829 Define target data struct and initialize it.
11831 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
11833 PR rtl-optimization/66626
11834 * ira.h (emit-rtl.h): Include.
11835 (non_spilled_static_chain_regno_p): New.
11836 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
11837 unless it is non spilled static chain pseudo.
11838 (assign_hard_rego): Spill memory profitable allocno unless it is
11839 non spilled static chain pseudo.
11840 (allocno_spill_priority_compare): Put non spilled static chain
11841 pseudo at the end of sorted array.
11842 (improve_allocation): Do nothing if we have static chain and
11844 (allocno__priority_compare_func): Put non spilled static chain
11845 pseudo at the beginning of sorted array.
11846 (move_spill_restore): Ignore non spilled static chain pseudo.
11847 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
11848 to non spilled static chain pseudo.
11849 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
11850 pseudo at the beginning of sorted array.
11851 (spill_for): Spill non spilled static chain pseudo last.
11852 * lra-constraints.c (lra_constraints): Remove static chain pseudo
11853 check for equivalence.
11855 2015-07-16 Martin Liska <mliska@suse.cz>
11858 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
11859 dst_ctx if it does not exist.
11861 2015-07-16 Martin Liska <mliska@suse.cz>
11863 * hash-set.h (remove): New function.
11864 (iterator): New iteration class for hash_set.
11866 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11868 * genattrtab.c (make_canonical): Add a file_location parameter.
11869 Use fatal_at rather than fatal.
11870 (get_attr_value): Likewise. Update call to make_canonical.
11871 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
11872 (make_internal_attr): Update calls accordingly.
11874 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11876 * read-md.h (message_with_line, error_with_line): Delete.
11877 * read-md.c (message_with_line, error_with_line): Delete.
11878 * gensupport.h: Include read-md.h.
11879 (md_rtx_info): New structure.
11880 (read_md_rtx): Use it. Return a bool success value.
11881 * gensupport.c (read_md_rtx): Likewise.
11882 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
11883 (main): Update after interface changes.
11884 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
11885 (main): Update after interface changes.
11886 * genattrtab.c (insn_code_number): Delete.
11887 (optimize_attrs): Add a max_insn_code parameter and use it instead
11888 of insn_code_number.
11889 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
11890 Use *_at rather than *_with_line functions.
11891 (gen_insn): Likewise.
11892 (gen_delay): Likewise.
11893 (gen_insn_reserv): Likewise.
11894 (gen_bypass): Take an md_rtx_info rather than an rtx.
11895 (main): Update after interface changes. Use a local max_insn_code
11896 variable instead of insn_code_number.
11897 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
11898 an rtx. Use fatal_at rather than fatal.
11899 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
11900 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
11901 (gen_absence_set, gen_final_absence_set, gen_automaton)
11902 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
11903 (main): Update after interface changes.
11904 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
11906 (main): Update after interface changes.
11907 * genconditions.c (main): Use new read_md_rtx interface.
11908 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
11909 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
11910 (main): Update after interface changes.
11911 * genemit.c (insn_code_number, insn_index_number): Delete.
11912 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11913 Use fatal_at rather than fatal.
11914 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
11916 (gen_split): Likewise.
11917 (main): Update after interface changes.
11918 * genextract.c (line_no): Delete.
11919 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11920 Update call to walk_rtx.
11921 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
11922 rather than message_with_line.
11923 (walk_rtx): Add an md_rtx_info argument. Update call to
11924 VEC_safe_set_locstr.
11925 (main): Update after interface changes.
11926 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
11927 and lineno. Use error_at rather than separate message_with_line
11928 calls and have_error assignments.
11929 (main): Update after interface changes.
11930 * genmddump.c (main): Use new read_md_rtx interface.
11931 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
11932 (main): Update after interface changes.
11933 * genoutput.c (next_code_number): Delete.
11934 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
11935 (gen_peephole, gen_expand, gen_split): Likewise.
11936 (note_constraint): Likewise. Use *_at rather than *_with_line
11938 (main): Update after interface changes.
11939 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
11941 (main): Update after interface changes.
11942 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
11943 than an rtx and lineno.
11944 (process_define_constraint): Likewise.
11945 (process_define_register_constraint): Likewise.
11946 (main): Update after interface changes.
11947 * genrecog.c (next_insn_code, pattern_lineno): Delete.
11948 (validate_pattern): Replace top-level rtx with an md_rtx_info.
11949 Use *_at rather than *_with_line functions.
11950 (match_pattern_2): Likewise.
11951 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
11952 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
11953 Use *_at rather than *_with_line functions.
11954 * gentarget-def.c (add_insn): New function.
11955 (main): Use it. Use new read_md_rtx interface.
11957 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11959 * gensupport.h (compute_test_codes): Take a file_location rather
11960 than a line number.
11961 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
11962 rather than *_with_line functions.
11963 (process_define_predicate): Update call to compute_test_codes.
11964 * genpreds.c (validate_exp): Take a file_location rather than a
11965 line number. Use *_at functions rather than *_with_line functions.
11966 (process_define_predicate): Update call to validate_exp.
11967 (constraint_data): Replace lineno field with a file_location.
11968 (add_constraint): Take a file_location rather than a line number.
11969 Use *_at functions rather than *_with_line functions. Fix error
11970 message for address constraints. Update after changes to
11971 validate_exp, constraint_data and compute_test_codes.
11972 (process_define_constraint): Update accordingly.
11973 (process_define_register_constraint): Likewise.
11975 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11977 * genoutput.c (data): Use a file_location to record the source
11980 (idata, idata_end): Remove initialization.
11981 (constraint_data): Replace lineno with a file_location.
11982 (output_insn_data): Update after changes to data.
11983 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
11984 (scan_operands): Likewise, using *_at rather than *_with_line
11986 (process_template): Likewise.
11987 (validate_insn_alternatives): Likewise.
11988 (validate_insn_operands): Likewise.
11989 (validate_optab_operands): Likewise.
11990 (init_insn_for_nothing): Initialize idata and idata_end.
11991 (note_constraint): Update after changes to constraint_data,
11992 using at rather than with_line functions.
11993 (mdep_constraint_len): Take a file_location rather than a
11994 line number. Use at rather than with_line functions.
11996 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
11998 * read-md.h (fatal_at): Declare.
11999 * read-md.c (fatal_at): New function.
12000 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
12001 to record the source position.
12002 (check_attr_test): Take a file_location instead of a line number.
12003 Use fatal_at instead of fatal.
12004 (check_attr_value): Update after above changes, using "at"
12005 rather than "with_line" reporting functions.
12006 (convert_set_attr_alternative): Likewise.
12007 (gen_attr): Likewise.
12008 (check_defs): Likewise. Don't assign to read_md_filename.
12009 (gen_insn): Update initialization after above changes.
12010 (gen_delay): Likewise.
12011 (write_insn_cases): Print the filename for a define_peephole.
12012 (gen_insn_reserv): Take a line number as argument and update
12013 the call to check_attr_test.
12014 (main): Pass a line number to gen_insn_reserv.
12016 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12018 * read-md.h (file_location): New structure.
12019 (directive_handler_t): Take a file_location rather than a line number.
12020 (message_at, error_at): Declare.
12021 (read_skip_construct): Delete.
12022 * read-md.c (message_with_line_1): Replace with...
12023 (message_at_1): ...this new function.
12024 (message_at, error_at): New functions.
12025 (message_with_line, error_with_line): Update to use message_at_1.
12026 (handle_enum): Take a file_location rather than a line number
12027 and use error_at for error reporting.
12028 (handle_include): Likewise.
12029 (read_skip_construct): Likewise. Make static.
12030 (handle_file): Update after above changes. Pass a file_location
12031 rather than a line number to handle_directive.
12032 * gensupport.c (queue_elem): Replace separate filename and lineno
12033 with a file_location.
12034 (queue_pattern): Replace filename and lineno arguments with a
12035 file_location. Update after change to queue_elem.
12036 (process_define_predicate): Replace lineno argument with a
12037 file_location and use error_at for error reporting. Update
12038 after above changes.
12039 (process_rtx): Likewise.
12040 (subst_pattern_match): Likewise.
12041 (get_alternatives_number): Likewise.
12042 (alter_predicate_for_insn): Likewise.
12043 (rtx_handle_directive): Likewise.
12044 (is_predicable): Update after above changes, using error_at rather
12045 than error_with_line.
12046 (has_subst_attribute): Likewise.
12047 (identify_predicable_attribute): Likewise.
12048 (alter_attrs_for_subst_insn): Likewise.
12049 (process_one_cond_exec): Likewise.
12050 (process_substs_on_one_elem): Likewise.
12051 (process_define_subst): Likewise.
12052 (check_define_attr_duplicates): Likewise.
12053 (read_md_rtx): Update after change to queue_elem.
12055 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12057 * genoutput.c (next_index_number): Delete.
12058 (data): Remove index_number.
12059 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
12060 (main): Remove manipulation of next_index_number.
12062 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
12064 * genattrtab.c (check_attr_value): Remove handling of null attrs.
12065 (make_canonical): Likewise.
12067 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
12069 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
12070 instead of adjust_address_nv.
12071 (restore_stack_nonlocal): Likewise.
12072 (nonlocal_goto): Likewise.
12074 2015-07-16 Tom de Vries <tom@codesourcery.com>
12076 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
12077 not have a corresponding loop header phi.
12079 2015-07-16 Tom de Vries <tom@codesourcery.com>
12081 * tree-parloops.c (create_loads_for_reductions): Handle case that
12082 reduction is unused.
12084 2015-07-16 Richard Biener <rguenther@suse.de>
12086 PR tree-optimization/66894
12087 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
12088 about deriving NE_EXPR from truncated values.
12090 2015-07-16 Martin Liska <mliska@suse.cz>
12093 (object_allocator): Add new class.
12094 (pool_allocator::initialize): Use the underlying class.
12095 (pool_allocator::allocate): Likewise.
12096 (pool_allocator::remove): Likewise.
12097 (operator new): A new generic allocator.
12098 * asan.c (struct asan_mem_ref): Remove unused members.
12099 (asan_mem_ref_new): Replace new operator with
12100 object_allocator::allocate.
12101 (free_mem_ref_resources): Change deallocation.
12102 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
12103 with object_allocator.
12104 * config/sh/sh.c (add_constant): Replace new operator with
12105 object_allocator::allocate.
12106 (sh_reorg): Change call to a release method.
12107 * cselib.c (struct elt_list): Remove unused members.
12108 (new_elt_list): Replace new operator with
12109 object_allocator::allocate.
12110 (new_elt_loc_list): Likewise.
12111 (new_cselib_val): Likewise.
12112 (unchain_one_elt_list): Change delete operator with remove method.
12113 (unchain_one_elt_loc_list): Likewise.
12114 (unchain_one_value): Likewise.
12115 (cselib_finish): Release newly added static allocators.
12116 * cselib.h (struct cselib_val): Remove unused members.
12117 (struct elt_loc_list): Likewise.
12118 * df-problems.c (df_chain_alloc): Replace pool_allocator with
12120 * df-scan.c (struct df_scan_problem_data): Likewise.
12121 (df_scan_alloc): Likewise.
12122 * df.h (struct dataflow): Likewise.
12123 * dse.c (struct read_info_type): Likewise.
12124 (struct insn_info_type): Likewise.
12125 (struct dse_bb_info_type): Likewise.
12126 (struct group_info): Likewise.
12127 (struct deferred_change): Likewise.
12128 (get_group_info): Likewise.
12129 (delete_dead_store_insn): Likewise.
12130 (free_read_records): Likewise.
12131 (replace_read): Likewise.
12132 (check_mem_read_rtx): Likewise.
12133 (scan_insn): Likewise.
12134 (dse_step1): Likewise.
12135 (dse_step7): Likewise.
12136 * et-forest.c (struct et_occ): Remove unused members.
12137 (et_new_occ): Use allocate instead of new operator.
12138 (et_new_tree): Likewise.
12139 (et_free_tree): Call release method explicitly.
12140 (et_free_tree_force): Likewise.
12141 (et_free_pools): Likewise.
12142 (et_split): Use remove instead of delete operator.
12143 * et-forest.h (struct et_node): Remove unused members.
12144 * ipa-cp.c: Change pool_allocator to object_allocator.
12145 * ipa-inline-analysis.c: Likewise.
12146 * ipa-profile.c: Likewise.
12147 * ipa-prop.c: Likewise.
12148 * ipa-prop.h: Likewise.
12149 * ira-build.c (initiate_cost_vectors): Cast return value.
12150 (ira_allocate_cost_vector): Likewise.
12151 * ira-color.c (struct update_cost_record): Remove unused members.
12152 * lra-int.h (struct lra_live_range): Likewise.
12153 (struct lra_copy): Likewise.
12154 (struct lra_insn_reg): Likewise.
12155 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
12156 * lra.c (new_insn_reg): Replace new operator with allocate method.
12157 (free_insn_regs): Same for operator delete.
12158 (finish_insn_regs): Release new static allocator.
12159 (finish_insn_recog_data): Likewise.
12160 (lra_free_copies): Replace delete operator with remove method.
12161 (lra_create_copy): Replace operator new with allocate method.
12162 (invalidate_insn_data_regno_info): Same for remove method.
12163 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
12164 (free_debug_insn_changes): Replace delete operator with remove method.
12165 (replace_oldest_value_reg): Replace operator new with allocate method.
12166 (pass_cprop_hardreg::execute): Release new static variable.
12167 * sched-deps.c (sched_deps_init): Change pool_allocator to
12169 * sel-sched-ir.c: Likewise.
12170 * sel-sched-ir.h: Likewise.
12171 * stmt.c (expand_case): Likewise.
12172 (expand_sjlj_dispatch_table): Likewise.
12173 * tree-sra.c (struct access): Remove unused members.
12174 (struct assign_link): Likewise.
12175 (sra_deinitialize): Release newly added static pools.
12176 (create_access_1):Replace operator new with allocate method.
12177 (build_accesses_from_assign): Likewise.
12178 (create_artificial_child_access): Likewise.
12179 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
12180 pool_allocator to object_allocator.
12181 * tree-ssa-pre.c: Likewise.
12182 * tree-ssa-reassoc.c: Likewise.
12183 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
12184 * tree-ssa-strlen.c: Likewise.
12185 * tree-ssa-structalias.c: Likewise.
12186 * var-tracking.c (onepart_pool_allocate): New function.
12187 (unshare_variable): Use the newly added function.
12188 (variable_merge_over_cur): Likewise.
12189 (variable_from_dropped): Likewise.
12190 (variable_was_changed): Likewise.
12191 (set_slot_part): Likewise.
12192 (emit_notes_for_differences_1): Likewise.
12193 (vt_finalize): Release newly added static pools.
12195 2015-07-16 Martin Jambor <mjambor@suse.cz>
12197 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
12198 all uses. Fix two typos in its general comment.
12199 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
12201 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
12203 * config/i386/linux-common.h (LINK_MPX): New.
12204 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
12205 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
12206 indicating '-z bndplt' support by linker.
12207 * configure: Regenerate.
12208 * config.in: Regenerate.
12210 2015-07-16 Richard Biener <rguenther@suse.de>
12212 * fold-const.c (fold_widened_comparison): Remove.
12213 (fold_sign_changed_comparison): Likewise.
12214 (fold_comparison): Move widened and sign-changed comparison
12216 * match.pd: ... to patterns here.
12217 * generic-match-head.c: Include target.h.
12218 * gimple-match-head.c: Likewise.
12220 2015-07-16 Richard Biener <rguenther@suse.de>
12222 * tree-ssa-dom.c (dom_valueize): New function.
12223 (record_temporary_equivalences): Also record equivalences
12224 for dominating stmts that have uses of equivalences we are
12227 2015-07-16 Bin Cheng <bin.cheng@arm.com>
12229 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
12230 add_autoinc_candidates.
12231 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
12232 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
12233 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
12234 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
12236 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
12237 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
12238 Remove parameter struct iv*. Call add_autoinc_candidates here.
12239 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
12240 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
12242 (find_iv_candidates): Call new functions.
12244 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
12246 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
12247 uninitialized-variable warning.
12249 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
12252 * config/sh/sh.md (movdi): Split simple reg move to two movsi
12253 when the destination is R0.
12255 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
12258 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
12259 * config/i386/i386.c (ix86_expand_pextr): New function.
12260 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
12261 for non-lowpart subregs.
12262 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
12263 (insv<mode>): Use SWI248 mode iterator.
12264 (insv<mode>_1): Ditto.
12266 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12267 Sebastian Pop <s.pop@samsung.com>
12269 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
12270 iterator to use_stmt.
12272 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12273 Sebastian Pop <s.pop@samsung.com>
12275 * graphite-scop-detection.c (build_scops_1): Discard scops for
12278 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12279 Sebastian Pop <s.pop@samsung.com>
12281 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
12282 case of a return statement in scop.
12284 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
12285 Sebastian Pop <s.pop@samsung.com>
12287 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
12288 INTEGER_TYPE parameters.
12289 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
12290 VECTOR_CST in scan_tree_for_params.
12291 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
12293 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
12295 * gimple-pretty-print.h: Don't include pretty-print.h.
12296 * tree-streamer.h: Don't include lto-streamer.h.
12297 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
12298 * gimple-streamer-in.c: Remove redundant includes.
12299 * gimple-streamer-out.c: Likewise.
12300 * ipa-devirt.c: Likewise.
12301 * ipa-icf.c: Likewise.
12302 * ipa-inline-analysis.c: Likewise.
12303 * ipa-polymorphic-call.c: Likewise.
12304 * ipa-profile.c: Likewise.
12305 * ipa-prop.c: Likewise.
12306 * ipa-pure-const.c: Likewise.
12307 * lto-cgraph.c: Likewise.
12308 * lto-streamer-in.c: Likewise.
12309 * lto-streamer-out.c: Likewise.
12310 * lto-streamer.c: Likewise.
12311 * tree-streamer-in.c: Likewise.
12312 * tree-streamer-out.c: Likewise.
12313 * tree-streamer.c: Likewise.
12315 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
12317 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
12319 * opts.c: Remove multiline #include comment.
12321 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
12323 * config/nvptx/mkoffload.c (process): Add C++ protection to
12326 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
12329 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
12330 null before IEEE 128-bit floating point support patch.
12332 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12334 * simplify-rtx.c (simplify_ternary_operation): Add simplification
12335 for (!c) != {0,...,0} ? a : b for vector modes.
12337 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
12338 Martin Jambor <mjambor@suse.cz>
12340 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
12341 struct func_body_info* instead of struct ipa_node_params*, expecting
12342 fbi->info to be filled in. Replace throughout. Adjust call to
12343 ipa_load_from_parm_agg.
12344 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
12345 instead of struct ipa_node_params*. Adjust calls to other functions
12346 so that they pass either fbi or fbi->info.
12347 (set_switch_stmt_execution_predicate): Likewise.
12348 (will_be_nonconstant_predicate): Likewise.
12349 (compute_bb_predicates): Likewise.
12350 (estimate_function_body_sizes): Move asserts earlier. Fill in
12351 struct func_body_info, replace parms_info with fbi.info. Adjust
12352 calls to functions that now accept struct func_body_info.
12353 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
12354 (struct func_body_info): Likewise.
12355 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
12356 remove static. Adjust callers.
12357 (ipa_load_from_parm_agg): Remove.
12358 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
12359 (func_body_info): Likewise.
12360 (ipa_load_from_parm_agg): Adjust prototype.
12362 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12364 * gensupport.c (rtx_handle_directive): Adjust.
12365 * read-rtl.c (apply_iterators): Take vector to add rtxs to
12366 instead of expr list rtx.
12367 (add_define_attr_for_define_subst): Likewise.
12368 (add_define_subst_attr): Likewise.
12369 (read_subst_mapping): Likewise.
12370 (read_rtx): Likewise.
12371 * rtl.h (read_rtx): Adjust.
12373 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12375 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
12377 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
12380 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
12381 (*tls_local_dynamic_base_64_<mode>): Ditto.
12382 (*tls_local_dynamic_base_64_largepic): Ditto.
12383 (tls_global_dynamic_64_<mode>): Update expander pattern.
12384 (tls_local_dynamic_base_64_<mode>): Ditto.
12386 2015-07-15 Richard Biener <rguenther@suse.de>
12388 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
12389 and bool_var == 1 -> bool_var simplifications ...
12390 * match.pd: ... to patterns here. Factor out negate_expr_p
12391 cases from the A - B -> A + (-B) patterns as negate_expr_p
12392 predicate and add a -(A + B) -> (-B) - A pattern.
12394 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
12396 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
12398 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
12399 Robert Suchanek <robert.suchanek@imgtec.com>
12401 * config/mips/mips.c (mips_int_mask): New enum.
12402 (mips_shadow_set): Likewise.
12403 (int_mask): New variable.
12404 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
12405 (machine_function): Add int_mask and use_shadow_register_set.
12406 (mips_attribute_table): Add attribute handlers for interrupt and
12407 use_shadow_register_set.
12408 (mips_interrupt_mask): New static function.
12409 (mips_handle_interrupt_attr): Likewise.
12410 (mips_handle_use_shadow_register_set_attr): Likewise.
12411 (mips_use_shadow_register_set): Change return type to enum
12412 mips_shadow_set. Add argument handling for use_shadow_register_set
12414 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
12415 compare with mips_shadow_set enum.
12416 (mips_compute_frame_info): Add interrupt mask and
12417 use_shadow_register_set to per-function information structure.
12418 Add a stack slot for EPC unconditionally.
12419 (mips_expand_prologue): Compare use_shadow_register_set value
12420 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
12421 masked interrupt register but in EIC mode use K0 and save Cause in K0.
12422 EPC saved and restored unconditionally. Use PMODE_INSN macro when
12423 copying the stack pointer from the shadow register set.
12424 * config/mips/mips.h (SR_IM0): New define.
12425 * config/mips/mips.md (mips_rdpgpr): Rename to...
12426 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
12427 * doc/extend.texi (Declaring Attributes of Functions): Document
12428 optional arguments for interrupt and use_shadow_register_set
12431 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
12433 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
12434 interrupt attribute.
12435 (mips_expand_prologue): Disable the floating point unit in an ISR.
12436 * config/mips/mips.h (SR_COP1): New define.
12438 2015-07-15 Richard Biener <rguenther@suse.de>
12440 * genmatch.c (parser::peek, parser::peek_ident): Add argument
12441 to tell how many tokens to peek ahead (default 1).
12442 (parser::eat_token, parser::eat_ident): Return token consumed.
12443 (parser::parse_result): Parse new switch statement.
12444 * match.pd: Use case statements where appropriate.
12446 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
12448 PR rtl-optimization/58066
12449 * calls.c (expand_call): Precompute register parameters before stack
12450 alignment is performed.
12452 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
12454 PR rtl-optimization/66838
12455 * postreload.c (reload_cse_move2add): Also process
12456 CALL_INSN_FUNCTION_USAGE when resetting information of
12457 call-clobbered registers.
12459 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12460 Cesar Philippidis <cesar@codesourcery.com>
12461 Chung-Lin Tang <cltang@codesourcery.com>
12463 * config/nios2/constraints.md (U, v): New constraints.
12464 * config/nios2/predicates.md (rdprs_dcache_operand): New.
12465 (ldstex_memory_operand): New.
12466 * config/nios2/sync.md: New file.
12467 * config/nios2/nios2.md (unspecv): Add new builtin function
12469 (rdprs, flushd, flushda, wrpie, eni): New patterns.
12470 (top-level): Include sync.md.
12471 * config/nios2/nios2.c (N2_FTYPES): Add function types for
12473 (N2_BUILTINS): Add arch field setting, add new builtins.
12474 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
12476 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
12477 Also handle ldex/stex/ldsex/stsex builtins.
12478 (nios2_expand_rdprs_builtin): New function.
12479 (nios2_expand_cache_builtin): New function.
12480 (nios2_expand_wrpie_builtin): New function.
12481 (nios2_expand_eni_builtin): New function.
12482 (nios2_expand_builtin): Add arch field handling and new builtin
12484 * doc/extend.texi (Altera Nios II Built-in Functions): Document
12486 * doc/md.texi (Machine Constraints): Document U and v constraints.
12488 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12489 Cesar Philippidis <cesar@codesourcery.com>
12490 Chung-Lin Tang <cltang@codesourcery.com>
12492 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
12493 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
12494 callee_save_reg_size and uses_anonymous_args fields.
12495 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
12496 (nios2_create_cfa_notes): New function.
12497 (nios2_adjust_stack): New function for adjusting stack.
12498 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
12499 Use nios2_adjust_stack.
12500 (nios2_expand_epilogue): Likewise.
12501 (nios2_expand_return): New function.
12502 (nios2_can_use_return_insn): Update for CDX pop.n usage.
12503 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
12504 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
12505 * config/nios2/nios2.md (return): Use nios2_expand_return.
12507 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12508 Cesar Philippidis <cesar@codesourcery.com>
12509 Chung-Lin Tang <cltang@codesourcery.com>
12511 * config/nios2/predicates.md (pop_operation): New.
12512 (ldwm_operation, stwm_operation): New.
12513 (nios2_hard_register_operand): New.
12514 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
12515 (ldstwm_operation_p): Declare.
12516 (gen_ldstwm_peep): Declare.
12517 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
12518 (base_reg_adjustment_p): New.
12519 (pop_operation_p): New.
12520 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
12521 (nios2_ldstwm_regset_p): New.
12522 (ldstwm_operation_p): New.
12524 (nios2_ldst_parallel): New.
12525 (struct ldswm_operand): Declare.
12526 (compare_ldstwm_operands): New.
12527 (can_use_cdx_ldstw): New.
12528 (gen_ldstwm_peep): New.
12529 * config/nios2/nios2-ldstwm.sml: New.
12530 * config/nios2/nios2.md: Include ldstwm.md.
12531 * config/nios2/ldstwm.md: Generated.
12533 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12534 Cesar Philippidis <cesar@codesourcery.com>
12535 Chung-Lin Tang <cltang@codesourcery.com>
12537 * config/nios2/nios2.h (LABEL_ALIGN): Define.
12538 (REG_ALLOC_ORDER): Define.
12539 (ADJUST_REG_ALLOC_ORDER): Define.
12540 (HONOR_REG_ALLOC_ORDER): Define.
12541 (CDX_REG_P): Define.
12542 (ANDCLEAR_INT): Define.
12543 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
12544 (nios2_label_align): Declare.
12545 (nios2_cdx_narrow_form_p): Declare.
12546 (nios2_adjust_reg_alloc_order): Declare.
12547 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
12549 (nios2_large_unspec_reloc_p): New function, split from...
12550 (nios2_legitimate_pic_operand_p): ...here.
12551 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
12552 (nios2_print_operand_punct_valid_p): New.
12553 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
12554 (split_mem_address): New.
12555 (split_alu_insn): New.
12557 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
12558 (enum nios2_add_insn_kind): New.
12559 (nios2_add_insn_names, nios2_add_insn_narrow): New.
12560 (nios2_add_insn_classify): New.
12561 (nios2_add_insn_asm): New.
12562 (nios2_cdx_narrow_form_p): New.
12563 (label_align, min_labelno, max_labelno): New.
12564 (nios2_reorg): New.
12565 (nios2_label_align): New.
12566 (nios2_adjust_reg_alloc_order): New.
12567 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
12568 (TARGET_MACHINE_DEPENDENT_REORG): Define.
12569 * config/nios2/constraints.md (P): New constraint.
12570 * config/nios2/predicates.md (const_and_operand): New.
12571 (and_operand): New.
12572 (stack_memory_operand): New.
12573 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
12574 (length): Update to use nios2_cdx_narrow_form_p().
12575 (type): Add new insn type values.
12576 (control, alu, st, ld, shift): Update insn reservations with
12577 new insn type values.
12578 (*high, *lo_sum): Define new insn patterns for constant generation.
12579 (movqi_internal, movhi_internal, movsi_internal): Reduce
12580 alternatives, update asm template to handle CDX variants, update
12582 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
12583 template, update type attributes.
12584 (extendhisi2, extendqi<mode>2): Likewise.
12585 (addsi3): Change to use function for asm string.
12586 (subsi3): Add CDX notation to asm template, update type attributes.
12587 (negsi3, one_cmplsi3): Likewise.
12588 (andsi3): New pattern, specialized from logical patterns.
12589 (<code>si3): Remove and case, combine alternatives, update asm
12591 (<shift_op>si3): Add CDX notation, update type attributes.
12592 (rotrsi3): Update type attribute.
12593 (*merge, extzv, insv): New insn patterns.
12594 (return): Change to define_expand.
12595 (simple_return): Add CDX notation, update type attributes.
12596 (indirect_jump): Add CDX notation.
12597 (jump): Update asm cases, update length attribute expression.
12598 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
12599 (nios2_cbranch): Update asm cases and length attribute expression
12600 to handle CDX variants.
12601 (nios2_cmp<code>): Update asm template.
12602 (nop): Add CDX notation, update type attributes.
12603 (trap): Add CDX notation.
12604 (ctrapsi4): Update asm cases and length attribute expression to
12605 handle CDX variant.
12606 * doc/md.texi (Machine Constraints): Document P constraint.
12608 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12609 Cesar Philippidis <cesar@codesourcery.com>
12610 Chung-Lin Tang <cltang@codesourcery.com>
12612 * config/nios2/nios2.h (SMALL_INT12): New macro.
12613 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
12614 (nios2_valid_addr_expr_p): Use it.
12615 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
12616 with implicit "io" instructions on R2.
12617 * config/nios2/constraints.md (w): New constraint.
12618 * config/nios2/predicates.md (ldstio_memory_operand): New.
12619 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
12620 operand predicate and constraint.
12621 (ld<bh>io_signed, st<bhw>io>): Likewise.
12622 * doc/md.texi (Machine Constraints): Document w constraint.
12624 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12625 Cesar Philippidis <cesar@codesourcery.com>
12626 Chung-Lin Tang <cltang@codesourcery.com>
12628 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
12629 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
12630 Nios II architecture level.
12631 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
12632 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
12633 (OPTION_DEFAULT_SPECS): Define.
12634 (ASM_SPEC): Add -march= spec strings.
12635 * config/nios2/nios2.c (nios2_option_override): Check for
12636 conflicts involving new options.
12637 * config.gcc (nios2*-*-*): Support --with-arch=.
12638 * doc/invoke.texi (Option Summary, Nios II Options): Document
12639 -march=, -mbmx, and -mcdx.
12641 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
12643 PR rtl-optimization/66626
12644 * lra-constraints.c (lra_constraints): Prevent equivalence
12645 substitution for static chain pseudo in functions with nonlocal
12648 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
12650 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
12651 (nios2_emit_stack_limit_check): Add size parameter. Handle
12652 -fstack-limit-symbol as well as -fstack-limit-register.
12653 (nios2_expand_prologue): Emit only a single stack limit check,
12654 even if multiple stack adjustments are required.
12655 (nios2_option_override): Diagnose unsupported combination of -fpic
12656 and -stack-limit-symbol.
12658 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
12660 * Makefile.in (top_srcdir): New.
12661 * configure.ac: Use AM_ZLIB.
12662 * configure: Regeneated.
12664 2015-07-14 Matthias Klose <doko@ubuntu.com>
12667 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
12669 2015-07-14 Richard Biener <rguenther@suse.de>
12671 PR tree-optimization/66863
12672 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
12673 what we record for conversion use stmt lhs inequalities.
12675 2015-07-14 Richard Biener <rguenther@suse.de>
12677 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
12678 (decision_tree::gen_gimple): Likewise.
12680 2015-07-14 Tom de Vries <tom@codesourcery.com>
12682 * gcc.c (greater_than_spec_func): Declare forward.
12683 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
12684 -ftree-parallelize-loops={0,1}.
12685 (static_spec_functions): Add greater_than_spec_func function with name
12687 (greater_than_spec_func): New function.
12689 2015-07-14 Richard Biener <rguenther@suse.de>
12691 * tree-ssa-dom.c (record_temporary_equivalences): Merge
12692 wideing type conversion case from record_equivalences_from_incoming_edge
12693 and use record_equality to record equivalences.
12694 (record_equivalences_from_incoming_edge): Call
12695 record_temporary_equivalences.
12697 2015-07-14 Richard Biener <rguenther@suse.de>
12699 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
12700 (struct if_expr): New.
12701 (struct with_expr): Likewise.
12702 (is_a_helper): Add helpers for if_expr and with_expr.
12703 (struct simplify): Add simplify_kind enum and member. Remove
12705 (simplify::simplify): Adjust.
12706 (lower_commutative): Adjust.
12707 (lower_opt_convert): Likewise.
12708 (lower_cond): Likewise.
12709 (replace_id): Handle with_expr and if_expr.
12710 (lower_for): Adjust.
12711 (dt_simplify::gen_1): New recursive worker, split out from ...
12712 (dt_simplify::gen): ... here. Deal with if and with expansion
12714 (capture_info::capture_info): Take context argument
12715 (capture_info::walk_result): Only analyze specific result.
12716 (parser::parse_result): New function.
12717 (parser::parse_simplify): Adjust to parse ifs with then end
12719 (parser::parse_if): Simplify.
12720 (parser::parse_pattern): Pass down simplify kind.
12721 * match.pd: Convert if structure to new syntax.
12723 2015-07-13 Marek Polacek <polacek@redhat.com>
12725 * rtl.c (rtx_equal_p_cb): Fix typo.
12727 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
12729 * omega.h: Don't include config.h, don't include params.h again if
12730 omega.h has already been included.
12731 * graphite-poly.h: Include sese.h.
12732 * graphite.c: Don't include sese.h, remove needless includes and
12733 minimize includes outside #ifdef HAVE_isl block.
12734 * graphite-blocking.c: Don't include sese.h, remove needless includes,
12735 and wrap entire file in #ifdef HAVE_isl
12736 * graphite-dependences.c: Likewise.
12737 * graphite-interchange.c: Likewise.
12738 * graphite-isl-ast-to-gimple.c: Likewise.
12739 * graphite-optimize-isl.c: Likewise.
12740 * graphite-poly.c: Likewise.
12741 * graphite-scop-detection.c: Likewise.
12742 * graphite-sese-to-poly.c: Likewise.
12744 2015-07-13 Tom de Vries <tom@codesourcery.com>
12746 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
12748 2015-07-13 Renlin Li <renlin.li@arm.com>
12751 * simplify-rtx.c (simplify_const_relational_operation): Add
12752 side_effects_p checks.
12754 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
12756 * bitmap.h: Fix double word typos.
12757 * builtins.c: Same.
12759 * cfgloopmanip.c: Same.
12762 * cgraphclones.c: Same.
12764 * config/aarch64/aarch64-protos.h: Same.
12765 * config/aarch64/aarch64.c: Same.
12766 * config/aarch64/aarch64.md: Same.
12767 * config/arm/arm.md: Same.
12768 * config/arm/arm1020e.md: Same.
12769 * config/arm/arm1026ejs.md: Same.
12770 * config/arm/arm926ejs.md: Same.
12771 * config/arm/fa526.md: Same.
12772 * config/arm/fa606te.md: Same.
12773 * config/arm/fa626te.md: Same.
12774 * config/arm/fa726te.md: Same.
12775 * config/arm/fmp626.md: Same.
12776 * config/darwin.c: Same.
12777 * config/epiphany/epiphany.c: Same.
12778 * config/frv/frv.c: Same.
12779 * config/ft32/ft32.c: Same.
12780 * config/gnu-user.h: Same.
12781 * config/h8300/constraints.md: Same.
12782 * config/i386/i386.c: Same.
12783 * config/i386/i386.md: Same.
12784 * config/iq2000/iq2000.md: Same.
12785 * config/mips/mips.c: Same.
12786 * config/mmix/mmix.md: Same.
12787 * config/moxie/moxie.c: Same.
12788 * config/nds32/nds32.md: Same.
12789 * config/pa/pa.h: Same.
12790 * config/rs6000/aix.h: Same.
12791 * config/rs6000/rs6000.h: Same.
12792 * config/sh/sh.c: Same.
12793 * config/tilegx/tilegx.md: Same.
12794 * config/tilepro/gen-mul-tables.cc: Same.
12797 * doc/invoke.texi: Same.
12799 * dwarf2out.c: Same.
12802 * genmatch.c: Same.
12803 * gimplify.c: Same.
12804 * hash-table.h: Same.
12805 * internal-fn.c: Same.
12807 * ipa-devirt.c: Same.
12810 * ipa-profile.c: Same.
12811 * ipa-prop.c: Same.
12812 * ipa-prop.h: Same.
12815 * reg-stack.c: Same.
12816 * regcprop.c: Same.
12821 * tree-inline.c: Same.
12822 * tree-sra.c: Same.
12823 * tree-ssa-dom.c: Same.
12824 * tree-ssa-loop-ivopts.c: Same.
12825 * tree-ssa-structalias.c: Same.
12826 * tree-ssa-tail-merge.c: Same.
12827 * tree-ssa-ter.c: Same.
12828 * tree-ssa-threadupdate.c: Same.
12829 * tree-ssa-uninit.c: Same.
12830 * tree-ssanames.c: Same.
12831 * tree-vect-loop-manip.c: Same.
12832 * tree-vrp.c: Same.
12834 * valtrack.c: Same.
12837 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12839 PR middle-end/66726
12840 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
12841 tree_ssa_phiopt_worker): Call it.
12843 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
12845 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
12846 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
12849 2015-07-11 Marek Polacek <polacek@redhat.com>
12851 PR middle-end/66353
12852 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
12853 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
12854 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
12855 rather than bb_has_abnormal_call_pred.
12856 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
12857 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
12858 rather than bb_has_abnormal_call_pred.
12860 2015-07-10 Anatoly Sokolov <aesok@post.ru>
12862 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
12863 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
12864 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
12865 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
12866 v850_legitimate_address_p): New functions.
12867 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
12869 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
12872 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
12873 indirect sibcall with register arguments if register available
12874 for argument passing.
12875 (init_cumulative_args): Set cfun->machine->arg_reg_available
12876 to (cum->nregs > 0) or to true if function has a variable
12878 (function_arg_advance_32): Set cfun->machine->arg_reg_available
12879 to false if cum->nregs <= 0.
12880 * config/i386/i386.h (machine_function): Add arg_reg_available.
12882 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
12884 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
12885 and gen_higpart instead of gen_rtx_SUBREG.
12886 * config/i386/i386.md
12887 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
12888 (read-modify peephole2): Use gen_lowpart instead of
12889 gen_rtx_SUBREG for operand 5.
12891 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
12893 * config/tilepro/gen-mul-tables.cc (main): Change include list for
12895 * config/tilepro/mul-tables.c: Regenerate.
12896 * config/tilegx/mul-tables.c: Regenerate.
12898 2015-07-10 Richard Biener <rguenther@suse.de>
12900 * fold-const.c (distribute_bit_expr): Remove.
12901 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
12902 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
12903 to A & (B | C) and simplifying A << C1 << C2 to ...
12904 * match.pd: ... patterns here.
12906 2015-07-10 Jiong Wang <jiong.wang@arm.com>
12908 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12909 Mark mem as READONLY and NOTRAP for PIC symbol.
12911 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
12913 * gimple-predict.h: New file.
12914 (gimple_predict_predictor, gimple_predict_set_predictor,
12915 gimple_predict_outcome, gimple_predict_set_outcome,
12916 gimple_build_predict): Relocate here.
12917 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
12918 gimple_predict_outcome, gimple_predict_set_outcome): Move to
12920 * gimple.c (gimple_build_predict): Move to gimple-predict.h
12921 * basic-block.h: Don't include cfghooks.h.
12922 * backend.h: Don't include predict.h.
12923 * cfghooks.h: Include predict.h.
12924 * gimple-pretty-print.c: Include gimple-predict.h.
12925 * gimplify.c: Likwise.
12926 * predict.c: Adjust includes.
12927 * tree-inline.c: Likewise.
12928 * asan.c: Likewise.
12929 * auto-inc-dec.c: Likewise.
12930 * auto-profile.c: Likewise.
12931 * bb-reorder.c: Likewise.
12932 * builtins.c: Likewise.
12933 * caller-save.c: Likewise.
12934 * calls.c: Likewise.
12935 * cfganal.c: Likewise.
12936 * cfgbuild.c: Likewise.
12938 * cfgcleanup.c: Likewise.
12939 * cfgexpand.c: Likewise.
12940 * cfghooks.c: Likewise.
12941 * cfgloopanal.c: Likewise.
12942 * cfgloop.c: Likewise.
12943 * cfgloopmanip.c: Likewise.
12944 * cfgrtl.c: Likewise.
12945 * cgraph.c: Likewise.
12946 * cgraphunit.c: Likewise.
12947 * combine.c: Likewise.
12948 * cprop.c: Likewise.
12951 * dojump.c: Likewise.
12953 * except.c: Likewise.
12954 * expmed.c: Likewise.
12955 * expr.c: Likewise.
12956 * final.c: Likewise.
12957 * fold-const.c: Likewise.
12958 * function.c: Likewise.
12959 * fwprop.c: Likewise.
12960 * gcc-plugin.h: Likewise.
12961 * gcse.c: Likewise.
12962 * genattrtab.c: Likewise.
12963 * genemit.c: Likewise.
12964 * gengtype.c: Likewise.
12965 * genopinit.c: Likewise.
12966 * genoutput.c: Likewise.
12967 * genpreds.c: Likewise.
12968 * genrecog.c: Likewise.
12969 * gimple-fold.c: Likewise.
12970 * gimple-iterator.c: Likewise.
12971 * gimple-ssa-isolate-paths.c: Likewise.
12972 * gimple-ssa-strength-reduction.c: Likewise.
12973 * graph.c: Likewise.
12974 * graphite-blocking.c: Likewise.
12975 * graphite.c: Likewise.
12976 * graphite-dependences.c: Likewise.
12977 * graphite-interchange.c: Likewise.
12978 * graphite-isl-ast-to-gimple.c: Likewise.
12979 * graphite-optimize-isl.c: Likewise.
12980 * graphite-poly.c: Likewise.
12981 * graphite-scop-detection.c: Likewise.
12982 * graphite-sese-to-poly.c: Likewise.
12983 * haifa-sched.c: Likewise.
12984 * ifcvt.c: Likewise.
12985 * internal-fn.c: Likewise.
12986 * ipa-cp.c: Likewise.
12987 * ipa-profile.c: Likewise.
12988 * ipa-split.c: Likewise.
12989 * ipa-utils.c: Likewise.
12990 * ira-build.c: Likewise.
12991 * ira-color.c: Likewise.
12992 * ira-conflicts.c: Likewise.
12993 * ira-costs.c: Likewise.
12994 * ira-emit.c: Likewise.
12995 * ira-lives.c: Likewise.
12996 * jump.c: Likewise.
12997 * loop-doloop.c: Likewise.
12998 * loop-init.c: Likewise.
12999 * loop-invariant.c: Likewise.
13000 * loop-unroll.c: Likewise.
13001 * lower-subreg.c: Likewise.
13002 * lra-assigns.c: Likewise.
13004 * lra-coalesce.c: Likewise.
13005 * lra-constraints.c: Likewise.
13006 * lra-lives.c: Likewise.
13007 * lto-cgraph.c: Likewise.
13008 * lto-streamer-in.c: Likewise.
13009 * mode-switching.c: Likewise.
13010 * modulo-sched.c: Likewise.
13011 * omp-low.c: Likewise.
13012 * optabs.c: Likewise.
13013 * passes.c: Likewise.
13014 * postreload.c: Likewise.
13015 * postreload-gcse.c: Likewise.
13016 * profile.c: Likewise.
13017 * recog.c: Likewise.
13018 * regstat.c: Likewise.
13019 * reload1.c: Likewise.
13020 * reorg.c: Likewise.
13021 * rtlanal.c: Likewise.
13022 * sched-ebb.c: Likewise.
13023 * sel-sched-ir.c: Likewise.
13024 * sese.c: Likewise.
13025 * shrink-wrap.c: Likewise.
13026 * simplify-rtx.c: Likewise.
13027 * stmt.c: Likewise.
13028 * store-motion.c: Likewise.
13029 * tracer.c: Likewise.
13030 * trans-mem.c: Likewise.
13031 * tree-call-cdce.c: Likewise.
13032 * tree-cfg.c: Likewise.
13033 * tree-cfgcleanup.c: Likewise.
13034 * tree-chkp.c: Likewise.
13035 * tree-complex.c: Likewise.
13036 * tree-eh.c: Likewise.
13037 * tree-if-conv.c: Likewise.
13038 * tree-loop-distribution.c: Likewise.
13039 * tree-outof-ssa.c: Likewise.
13040 * tree-parloops.c: Likewise.
13041 * tree-predcom.c: Likewise.
13042 * tree-pretty-print.c: Likewise.
13043 * tree-profile.c: Likewise.
13044 * tree-sra.c: Likewise.
13045 * tree-ssa.c: Likewise.
13046 * tree-ssa-coalesce.c: Likewise.
13047 * tree-ssa-dce.c: Likewise.
13048 * tree-ssa-dom.c: Likewise.
13049 * tree-ssa-forwprop.c: Likewise.
13050 * tree-ssa-ifcombine.c: Likewise.
13051 * tree-ssa-loop-ch.c: Likewise.
13052 * tree-ssa-loop-im.c: Likewise.
13053 * tree-ssa-loop-ivcanon.c: Likewise.
13054 * tree-ssa-loop-ivopts.c: Likewise.
13055 * tree-ssa-loop-manip.c: Likewise.
13056 * tree-ssa-loop-prefetch.c: Likewise.
13057 * tree-ssa-loop-unswitch.c: Likewise.
13058 * tree-ssa-math-opts.c: Likewise.
13059 * tree-ssa-phiopt.c: Likewise.
13060 * tree-ssa-pre.c: Likewise.
13061 * tree-ssa-reassoc.c: Likewise.
13062 * tree-ssa-sink.c: Likewise.
13063 * tree-ssa-tail-merge.c: Likewise.
13064 * tree-ssa-threadedge.c: Likewise.
13065 * tree-ssa-threadupdate.c: Likewise.
13066 * tree-switch-conversion.c: Likewise.
13067 * tree-tailcall.c: Likewise.
13068 * tree-vect-data-refs.c: Likewise.
13069 * tree-vect-loop.c: Likewise.
13070 * tree-vect-loop-manip.c: Likewise.
13071 * tree-vectorizer.c: Likewise.
13072 * tree-vrp.c: Likewise.
13073 * ubsan.c: Likewise.
13074 * value-prof.c: Likewise.
13075 * varasm.c: Likewise.
13076 * var-tracking.c: Likewise.
13077 * config/aarch64/aarch64-builtins.c: Likewise.
13078 * config/aarch64/aarch64.c: Likewise.
13079 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
13080 * config/alpha/alpha.c: Likewise.
13081 * config/arc/arc.c: Likewise.
13082 * config/arm/arm.c: Likewise.
13083 * config/avr/avr.c: Likewise.
13084 * config/bfin/bfin.c: Likewise.
13085 * config/c6x/c6x.c: Likewise.
13086 * config/cr16/cr16.c: Likewise.
13087 * config/cris/cris.c: Likewise.
13088 * config/darwin.c: Likewise.
13089 * config/darwin-c.c: Likewise.
13090 * config/epiphany/epiphany.c: Likewise.
13091 * config/epiphany/mode-switch-use.c: Likewise.
13092 * config/epiphany/resolve-sw-modes.c: Likewise.
13093 * config/fr30/fr30.c: Likewise.
13094 * config/frv/frv.c: Likewise.
13095 * config/ft32/ft32.c: Likewise.
13096 * config/h8300/h8300.c: Likewise.
13097 * config/i386/i386.c: Likewise.
13098 * config/i386/winnt.c: Likewise.
13099 * config/ia64/ia64.c: Likewise.
13100 * config/iq2000/iq2000.c: Likewise.
13101 * config/lm32/lm32.c: Likewise.
13102 * config/m32c/m32c.c: Likewise.
13103 * config/m32r/m32r.c: Likewise.
13104 * config/m68k/m68k.c: Likewise.
13105 * config/mcore/mcore.c: Likewise.
13106 * config/mep/mep.c: Likewise.
13107 * config/microblaze/microblaze.c: Likewise.
13108 * config/mips/mips.c: Likewise.
13109 * config/mmix/mmix.c: Likewise.
13110 * config/mn10300/mn10300.c: Likewise.
13111 * config/moxie/moxie.c: Likewise.
13112 * config/msp430/msp430.c: Likewise.
13113 * config/nds32/nds32.c: Likewise.
13114 * config/nds32/nds32-cost.c: Likewise.
13115 * config/nds32/nds32-fp-as-gp.c: Likewise.
13116 * config/nds32/nds32-intrinsic.c: Likewise.
13117 * config/nds32/nds32-isr.c: Likewise.
13118 * config/nds32/nds32-md-auxiliary.c: Likewise.
13119 * config/nds32/nds32-memory-manipulation.c: Likewise.
13120 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
13121 * config/nds32/nds32-predicates.c: Likewise.
13122 * config/nios2/nios2.c: Likewise.
13123 * config/nvptx/nvptx.c: Likewise.
13124 * config/pa/pa.c: Likewise.
13125 * config/pdp11/pdp11.c: Likewise.
13126 * config/rl78/rl78.c: Likewise.
13127 * config/rs6000/rs6000.c: Likewise.
13128 * config/rx/rx.c: Likewise.
13129 * config/s390/s390.c: Likewise.
13130 * config/sh/sh.c: Likewise.
13131 * config/sh/sh-mem.cc: Likewise.
13132 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
13133 * config/sh/sh_treg_combine.cc: Likewise.
13134 * config/sparc/sparc.c: Likewise.
13135 * config/spu/spu.c: Likewise.
13136 * config/stormy16/stormy16.c: Likewise.
13137 * config/tilegx/tilegx.c: Likewise.
13138 * config/tilepro/tilepro.c: Likewise.
13139 * config/v850/v850.c: Likewise.
13140 * config/vax/vax.c: Likewise.
13141 * config/visium/visium.c: Likewise.
13142 * config/xtensa/xtensa.c: Likewise.
13144 2015-07-10 Richard Biener <rguenther@suse.de>
13146 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
13147 (decision_tree::gen_gimple): Likewise.
13148 (decision_tree::gen_generic): Likewise.
13150 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
13153 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
13154 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
13156 2015-07-10 Jakub Jelinek <jakub@redhat.com>
13158 PR middle-end/66820
13159 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
13160 or ORT_TASK contexts.
13161 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
13164 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13166 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
13169 2015-07-10 Tom de Vries <tom@codesourcery.com>
13171 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
13172 insert nit + 1 bound.
13174 2015-07-10 Richard Biener <rguenther@suse.de>
13176 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
13177 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
13178 (if_convertible_loop_p_1): For this always compute bb predicates.
13179 (if_convertible_loop_p): And free them.
13181 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
13183 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
13186 2015-07-10 Richard Biener <rguenther@suse.de>
13188 PR tree-optimization/66823
13189 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
13190 inverted predicate.
13192 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
13194 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
13195 to handle mips[32|64]r3 and mips[32|64]r5.
13197 2015-07-09 Jakub Jelinek <jakub@redhat.com>
13199 PR middle-end/66633
13200 * tree-nested.c (get_static_chain): Or in a flag into
13201 info->static_chain_added.
13202 (get_frame_field, get_nonlocal_debug_decl): Likewise.
13203 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
13204 2015-07-01 changes.
13205 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
13206 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
13209 PR tree-optimization/66718
13210 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
13212 (vect_simd_lane_linear): New function.
13213 (vectorizable_simd_clone_call): Support using linear arguments for
13214 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
13216 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13219 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
13221 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
13223 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
13224 Use machine mode, not enum machine_mode in the prototype.
13226 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
13227 classify 128-bit floating point support.
13228 (FLOAT128_IBM_P): Likewise.
13229 (FLOAT128_VECTOR_P): Likewise.
13230 (FLOAT128_2REG_P): Likewise.
13231 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
13232 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
13233 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
13234 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
13236 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
13237 tests against TFmode/TDmode, since those modes do not use VSX
13239 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
13241 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
13242 tests against TFmode, etc.
13243 (invalid_e500_subreg): Add tests against IFmode/KFmode.
13244 (reg_offset_addressing_ok_p): Likewise.
13245 (rs6000_legitimate_offset_address_p): Likewise.
13246 (rs6000_legitimize_address): Likewise.
13247 (rs6000_legitimize_reload_address): Likewise.
13248 (rs6000_legitimate_address_p): Clean up tests against TFmode and
13249 TDmode to use the new helper macros, which will include IFmode and
13251 (rs6000_emit_move): Likewise.
13252 (rs6000_darwin64_record_arg_recurse): Likewise.
13253 (print_operand): Likewise.
13254 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
13255 that uses a single vector register as a vector and not as a
13256 floating point register in terms of the calling sequence.
13257 (rs6000_discover_homogeneous_aggregate): Likewise.
13258 (rs6000_return_in_memory): Likewise.
13259 (init_cumulative_args): Likewise.
13260 (rs6000_function_arg_boundary): Likewise.
13261 (rs6000_function_arg_advance_1): Likewise.
13262 (rs6000_function_arg): Likewise.
13263 (rs6000_pass_by_reference): Likewise.
13264 (rs6000_gimplify_va_arg): Likewise.
13265 (rs6000_secondary_reload_memory): Use machine_mode not enum
13267 (rs6000_split_multireg_move): Use new helper macros.
13268 (spe_func_has_64bit_regs_p): Likewise.
13269 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
13270 (output_toc): Use new helper macros.
13271 (rs6000_register_move_cost): Likewise.
13272 (rs6000_function_value): Add IEEE 128-bit floating point calling
13274 (rs6000_libcall_value): Likewise.
13275 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
13276 floating point support.
13277 (rs6000_vector_mode_supported_p): Likewise.
13279 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
13281 PR rtl-optimization/66782
13282 * lra-int.h (struct lra_insn_recog_data): Add comment about
13283 clobbered hard regs for arg_hard_regs.
13284 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
13285 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
13286 Add condition for processing used hard regs.
13287 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
13288 Process clobbered hard regs.
13290 2015-07-09 Michael Matz <matz@suse.de>
13292 * genmatch.c (fprintf_indent): New function.
13293 (operand::gen_transform): Add indent parameter.
13294 (expr::gen_transform, c_expr::gen_transform,
13295 capture::gen_transform): Ditto and use fprintf_indent.
13296 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
13297 (dt_operand::gen, dt_operand::gen_predicate,
13298 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
13299 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
13300 (decision_tree::gen_gimple): Adjust calls and indent generated
13302 (decision_tree::gen_generic): Ditto.
13303 (write_predicate): Ditto.
13305 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
13308 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
13309 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
13310 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
13311 {GENERAL,SSE,MMX}_REG_P where appropriate.
13313 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
13315 * lto-streamer.h: Don't include target.h and alloc-pool.h.
13316 * builtins.c: Adjust includes.
13317 * gimple.c: Likewise.
13318 * ipa-icf.c: Likewise.
13319 * lto-opts.c: Likewise.
13320 * ipa-reference.c: Likewise.
13321 * lto-section-out.c: Likewise.
13322 * lto-streamer-in.c: Likewise.
13323 * lto-streamer-out.c: Likewise.
13324 * opts-global.c: Likewise.
13325 * symtab.c: Likewise.
13326 * tree-chkp.c: Likewise.
13327 * tree-ssa-live.c: Likewise.
13328 * tree-streamer-in.c: Likewise.
13329 * tree-streamer-out.c: Likewise.
13330 * config/darwin.c: Likewise.
13331 * config/i386/winnt.c: Likewise.
13333 2015-07-09 Richard Biener <rguenther@suse.de>
13335 * genmatch.c (struct expr): Add force_single_use flag.
13336 (expr::expr): Add copy constructor.
13337 (capture_info::walk_match): Gather force_single_use captures.
13338 (expr::gen_transform): Use possibly NULLified sequence.
13339 (dt_simplify::gen): Apply single-use restrictions by NULLifying
13340 seq if any constrained expr is not single-use.
13341 (parser::parse_expr): Refactor to allow multiple flags. Handle
13342 's' flag to force an expression have a single-use if the pattern
13343 simplifies to more than one statement.
13344 * match.pd: Convert most single_use conditionals to :s flags.
13346 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13348 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
13349 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
13350 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
13352 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
13354 * flags.h: Don't include flag-types.h or options.h.
13355 * opts-common.c: Adjust includes.
13356 * opts-global.c: Likewise.
13357 * common/config/epiphany/epiphany-common.c: Likewise.
13359 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13362 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
13365 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
13368 * config/i386/i386.c (ix86_return_in_memory): Return true
13369 if int_size_in_bytes returns negative for IA MCU.
13371 2015-07-09 Marek Polacek <polacek@redhat.com>
13373 PR tree-optimization/66718
13374 * Makefile.in (OBJS): Add gimple-laddress.o.
13375 * passes.def: Schedule pass_laddress.
13376 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
13377 * tree-pass.h (make_pass_laddress): Declare.
13378 * gimple-laddress.c: New file.
13380 2015-07-09 Richard Biener <rguenther@suse.de>
13382 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
13384 2015-07-09 Richard Biener <rguenther@suse.de>
13386 PR tree-optimization/66807
13387 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
13389 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
13391 * function.c (stack_protect_epilogue): Use if rather than switch for
13392 check targetm.have_stack_protect_test.
13394 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13396 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
13397 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
13398 * config/arc/arc.h: Likewise.
13399 * config/arm/arm.h: Likewise.
13400 * config/bfin/bfin.h: Likewise.
13401 * config/epiphany/epiphany.h: Likewise.
13402 * config/frv/frv.h: Likewise.
13403 * config/ia64/ia64.h: Likewise.
13404 * config/iq2000/iq2000.h: Likewise.
13405 * config/lm32/lm32.h: Likewise.
13406 * config/m32r/m32r.h: Likewise.
13407 * config/mcore/mcore.h: Likewise.
13408 * config/mep/mep.h: Likewise.
13409 * config/microblaze/microblaze.h: Likewise.
13410 * config/mips/mips.h: Likewise.
13411 * config/mmix/mmix.h: Likewise.
13412 * config/mn10300/mn10300.h: Likewise.
13413 * config/nds32/nds32.h: Likewise.
13414 * config/nios2/nios2.h: Likewise.
13415 * config/pa/pa.h: Likewise.
13416 * config/rl78/rl78.h: Likewise.
13417 * config/sh/sh.h: Likewise.
13418 * config/sparc/sparc.h: Likewise.
13419 * config/stormy16/stormy16.h: Likewise.
13420 * config/tilegx/tilegx.h: Likewise.
13421 * config/tilepro/tilepro.h: Likewise.
13422 * config/v850/v850.h: Likewise.
13423 * config/xtensa/xtensa.h: Likewise.
13424 * doc/tm.texi: Regenerate.
13425 * doc/tm.texi.in: Adjust.
13426 * combine.c (simplify_set): Likewise.
13427 (simplify_comparison): Likewise.
13428 * expr.c (store_constructor): Likewise.
13429 * internal-fn.c (expand_arith_overflow): Likewise.
13430 * reload.c (push_reload): Likewise.
13431 (find_reloads): Likewise.
13432 (find_reloads_subreg_address): Likewise.
13433 * reload1.c (eliminate_regs_1): Likewise.
13434 * rtlanal.c (nonzero_bits1): Likewise.
13435 (num_sign_bit_copies1): Likewise.
13436 * simplify-rtx.c (simplify_truncation): Likewise.
13438 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13440 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
13441 of AUTO_INC_DEC with the preprocessor.
13442 * combine.c (combine_instructions): Likewise.
13443 (can_combine_p): Likewise.
13444 (try_combine): Likewise.
13445 * emit-rtl.c (try_split): Likewise.
13446 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13447 * lower-subreg.c (resolve_simple_move): Likewise.
13448 * lra.c (update_inc_notes): Likewise.
13449 * recog.c (asm_operand_ok): Likewise.
13450 (constrain_operands): Likewise.
13451 * regrename.c (scan_rtx_address): Likewise.
13452 * reload.c (update_auto_inc_notes): Likewise.
13453 (reg_inc_found_and_valid_p): Likewise.
13454 * reload1.c (reload): Likewise.
13455 (emit_input_reload_insns): Likewise.
13456 (delete_output_reload): Likewise.
13457 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13458 * valtrack.c (cleanup_auto_inc_dec): Likewise.
13460 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13462 * rtl.h: Always define AUTO_INC_DEC.
13463 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
13464 * combine.c (combine_instructions): Likewise.
13465 (can_combine_p): Likewise.
13466 (try_combine): Likewise.
13467 * emit-rtl.c (try_split): Likewise.
13468 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
13469 * lower-subreg.c (resolve_simple_move): Likewise.
13470 * lra.c (update_inc_notes): Likewise.
13471 * recog.c (asm_operand_ok): Likewise.
13472 (constrain_operands): Likewise.
13473 * regrename.c (scan_rtx_address): Likewise.
13474 * reload.c (update_auto_inc_notes): Likewise.
13475 (find_equiv_reg): Likewise.
13476 * reload1.c (reload): Likewise.
13477 (reload_as_needed): Likewise.
13478 (choose_reload_regs): Likewise.
13479 (emit_input_reload_insns): Likewise.
13480 (delete_output_reload): Likewise.
13481 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
13482 * valtrack.c (cleanup_auto_inc_dec): Likewise.
13484 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13486 * combine.c (can_combine_def_p): Don't check the value of
13487 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
13488 (combinable_i3pat): Likewise.
13489 (mark_used_regs_combine): Likewise.
13490 * regrename.c (rename_chains): Likewise.
13491 * reload.c (find_reloads_address): Likewise.
13492 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
13494 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13496 * combine.c (update_rsp_from_reg_equal): Don't check if
13497 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
13498 (reg_nonzero_bits_for_combine): Likewise.
13499 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
13501 * config/frv/frv.h: Likewise.
13502 * config/lm32/lm32.h: Likewise.
13503 * config/mep/mep.h: Likewise.
13504 * config/mips/mips.h: Likewise.
13505 * config/rs6000/rs6000.h: Likewise.
13506 * config/sh/sh.h: Likewise.
13507 * config/tilegx/tilegx.h (enum reg_class): Likewise.
13508 * config/tilepro/tilepro.h: Likewise.
13509 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
13510 * doc/tm.texi: Regenerate.
13511 * doc/tm.texi.in: Adjust.
13512 * rtlanal.c (nonzero_bits1): Likewise.
13514 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13516 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
13517 with the preprocessor.
13518 (combine_instructions): Likewise.
13519 (try_combine): Likewise.
13521 (distribute_notes): Likewise.
13523 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13525 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
13527 (simplify_set): Likewise.
13528 * cse.c (cse_insn): Likewise.
13529 * fold-const.c (fold_single_bit_test): Likewise.
13530 (fold_unary_loc): Likewise.
13531 * postreload.c (reload_cse_simplify_set): Likewise.
13532 (reload_cse_simplify_operands): Likewise.
13534 2015-07-08 Jiong Wang <jiong.wang@arm.com>
13536 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
13537 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
13539 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
13542 * config/i386/x86intrin.h: Include <adxintrin.h> even if
13543 __iamcu__ is defined.
13545 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
13547 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
13549 2015-07-08 Iain Sandoe <iain@codesourcery.com>
13552 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
13553 names from preservation.
13555 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
13558 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
13560 (function_arg_advance_32): Don't pass vectors in registers for
13562 (function_arg_32): Likewise.
13563 (ix86_return_in_memory): Don't return vectors in registers for
13566 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
13568 PR middle-end/66334
13569 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
13570 hard regno live at the start of BB with incoming abnormal edges.
13571 * lra-lives.c (process_bb_lives): Ditto.
13573 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
13576 * config/nvptx/mkoffload.c (main): Create an offload image only in
13577 64-bit configurations.
13579 2015-07-08 Martin Liska <mliska@suse.cz>
13582 * tree-sra.c (create_access_1): Call ctor without brackets.
13583 (create_artificial_child_access): Likewise.
13585 2015-07-08 Richard Biener <rguenther@suse.de>
13587 PR tree-optimization/66793
13588 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
13589 Properly split the block after stmts ending it.
13591 2015-07-08 Richard Biener <rguenther@suse.de>
13593 PR tree-optimization/66794
13594 * passes.c (execute_function_todo): Assert that post-dominators
13596 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
13597 Free post-dominators.
13599 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13601 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
13604 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
13606 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
13607 more than or equal 8 and less than 32 when optimizing for size.
13609 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13611 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
13612 COSTS_N_INSNS (1) and increment it appropriately throughout the
13615 2015-07-08 Richard Biener <rguenther@suse.de>
13617 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
13619 2015-07-08 Alan Modra <amodra@gmail.com>
13621 * target.def (rtx_costs): Remove "code" param, add "mode".
13622 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
13623 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
13624 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
13625 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
13626 call. Track mode when given in rtx.
13627 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
13628 (default_address_cost): Pass Pmode to rtx_cost.
13629 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
13630 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
13632 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
13633 (notreg_cost): Add mode param. Use it.
13634 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
13635 mode param and pass to set_src_cost. Update all calls.
13636 (hash_scan_set): Formatting.
13637 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
13638 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
13640 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
13641 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
13642 emit_store_flag): Update set_src_cost and rtx_cost calls.
13643 * auto-inc-dec.c (attempt_change): Likewise.
13644 * calls.c (precompute_register_parameters): Likewise.
13645 * combine.c (expand_compound_operation, make_extraction,
13646 force_to_mode, distribute_and_simplify_rtx): Likewise.
13647 * dojump.c (prefer_and_bit_test): Likewise.
13648 * dse.c (find_shift_sequence): Likewise.
13649 * expr.c (compress_float_constant): Likewise.
13650 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
13651 * ifcvt.c (noce_try_sign_mask): Likewise.
13652 * loop-doloop.c (doloop_optimize): Likewise.
13653 * loop-invariant.c (create_new_invariant): Likewise.
13654 * lower-subreg.c (shift_cost, compute_costs): Likewise.
13655 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
13656 lshift_cheap_p): Likewise.
13657 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
13658 try_replace_in_use, reload_cse_move2add): Likewise.
13659 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
13661 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13662 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
13663 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
13664 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
13665 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
13666 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
13668 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
13669 * config/arc/arc.c (arc_rtx_costs): Likewise.
13670 * config/arm/arm.c (arm_rtx_costs): Likewise.
13671 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
13672 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
13673 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
13674 * config/cris/cris.c (cris_rtx_costs): Likewise.
13675 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
13676 * config/frv/frv.c (frv_rtx_costs): Likewise.
13677 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
13678 * config/i386/i386.c (ix86_rtx_costs): Likewise.
13679 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
13680 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
13681 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
13682 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
13683 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
13684 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
13685 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
13686 * config/mep/mep.c (mep_rtx_cost): Likewise.
13687 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
13688 * config/mips/mips.c (mips_rtx_costs): Likewise.
13689 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
13690 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
13691 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
13692 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
13693 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
13694 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
13695 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
13696 * config/pa/pa.c (hppa_rtx_costs): Likewise.
13697 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
13698 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
13699 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
13700 * config/s390/s390.c (s390_rtx_costs): Likewise.
13701 * config/sh/sh.c (sh_rtx_costs): Likewise.
13702 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
13703 * config/spu/spu.c (spu_rtx_costs): Likewise.
13704 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
13705 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
13706 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
13707 * config/v850/v850.c (v850_rtx_costs): Likewise.
13708 * config/vax/vax.c (vax_rtx_costs): Likewise.
13709 * config/visium/visium.c (visium_rtx_costs): Likewise.
13710 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
13711 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
13712 "code" param, and pass as outer_code to first rtx_cost call. Pass
13713 mode to rtx_cost calls.
13714 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
13716 (aarch64_rtx_costs_wrapper): Update.
13717 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
13718 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
13720 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
13721 and rtx_cost calls.
13722 (avr_operand_rtx_cost): Similarly.
13723 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
13724 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
13725 * config/mips/mips.c (mips_stack_address_p): Comment typo.
13726 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
13727 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
13728 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
13730 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
13731 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
13732 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
13733 * doc/tm.texi: Regenerate.
13735 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
13737 * tree-core.h: Include symtab.h.
13738 * rtl.h: Include hard-reg-set.h but not flags.h.
13739 (HARD_CONST): Remove condition compilation involving HARD_CONST since
13740 hard-reg-set.h is always included.
13741 * regs.h: Don't include hard-reg-set.h or rtl.h.
13742 * cfg.h: Include dominance.h.
13743 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
13744 * backend.h: New. Aggregate commonly used backend header files.
13745 * gimple-ssa.h: Don't include tree-hasher.h.
13746 * ssa.h: New. Aggregate commonly used SSA header files.
13747 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
13748 * sel-sched-ir.h: Flatten includes.
13749 * lra-int.h: Flatten completely.
13750 * sel-sched-dump.h: Flatten includes.
13751 * ira-int.h: Flatten includes.
13752 * gimple-streamer.h: Remove all includes.
13753 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
13754 * resource.h: Flatten hard-reg-set.h and df.h.
13755 * sched-int.h: Flatten insn-arrt.h and df.h.
13756 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
13757 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
13758 * genattrtab.c (write_header): Adjust generated includes.
13759 * genautomata.c (main): Likewise.
13760 * genconditions.c (write-header): Likewise.
13761 * genemit.c (main): Likewise.
13762 * gengtype.c (open_base_files): Likewise.
13763 * genopinit.c (main): Likewise.
13764 * genoutput.c (output_prologue): Likewise.
13765 * genpeep.c (main): Likewise.
13766 * genpreds.c (write_insn_preds_c): Likewise.
13767 * genrecog.c (write_header): Likewise.
13768 * alias.c: Adjust includes.
13769 * asan.c: Likewise.
13770 * attribs.c: Likewise.
13771 * auto-inc-dec.c: Likewise.
13772 * auto-profile.c: Likewise.
13773 * bb-reorder.c: Likewise.
13774 * bt-load.c: Likewise.
13775 * builtins.c: Likewise.
13776 * caller-save.c: Likewise.
13777 * calls.c: Likewise.
13778 * ccmp.c: Likewise.
13780 * cfganal.c: Likewise.
13781 * cfgbuild.c: Likewise.
13782 * cfgcleanup.c: Likewise.
13783 * cfgexpand.c: Likewise.
13784 * cfghooks.c: Likewise.
13785 * cfgloop.c: Likewise.
13786 * cfgloopanal.c: Likewise.
13787 * cfgloopmanip.c: Likewise.
13788 * cfgrtl.c: Likewise.
13789 * cgraph.c: Likewise.
13790 * cgraphbuild.c: Likewise.
13791 * cgraphclones.c: Likewise.
13792 * cgraphunit.c: Likewise.
13793 * cilk-common.c: Likewise.
13794 * combine-stack-adj.c: Likewise.
13795 * combine.c: Likewise.
13796 * compare-elim.c: Likewise.
13797 * convert.c: Likewise.
13798 * coverage.c: Likewise.
13799 * cppbuiltin.c: Likewise.
13800 * cprop.c: Likewise.
13802 * cselib.c: Likewise.
13803 * data-streamer-in.c: Likewise.
13804 * data-streamer-out.c: Likewise.
13805 * data-streamer.c: Likewise.
13806 * dbxout.c: Likewise.
13809 * debug.c: Likewise.
13810 * df-core.c: Likewise.
13811 * df-problems.c: Likewise.
13812 * df-scan.c: Likewise.
13814 * dojump.c: Likewise.
13815 * dominance.c: Likewise.
13816 * domwalk.c: Likewise.
13817 * double-int.c: Likewise.
13819 * dumpfile.c: Likewise.
13820 * dwarf2asm.c: Likewise.
13821 * dwarf2cfi.c: Likewise.
13822 * dwarf2out.c: Likewise.
13823 * emit-rtl.c: Likewise.
13824 * et-forest.c: Likewise.
13825 * except.c: Likewise.
13826 * explow.c: Likewise.
13827 * expmed.c: Likewise.
13828 * expr.c: Likewise.
13829 * final.c: Likewise.
13830 * fixed-value.c: Likewise.
13831 * fold-const.c: Likewise.
13832 * function.c: Likewise.
13833 * fwprop.c: Likewise.
13834 * gcc-plugin.h: Likewise.
13835 * gcse-common.c: Likewise.
13836 * gcse.c: Likewise.
13837 * generic-match-head.c: Likewise.
13838 * ggc-page.c: Likewise.
13839 * gimple-builder.c: Likewise.
13840 * gimple-expr.c: Likewise.
13841 * gimple-fold.c: Likewise.
13842 * gimple-iterator.c: Likewise.
13843 * gimple-low.c: Likewise.
13844 * gimple-match-head.c: Likewise.
13845 * gimple-pretty-print.c: Likewise.
13846 * gimple-ssa-isolate-paths.c: Likewise.
13847 * gimple-ssa-strength-reduction.c: Likewise.
13848 * gimple-streamer-in.c: Likewise.
13849 * gimple-streamer-out.c: Likewise.
13850 * gimple-walk.c: Likewise.
13851 * gimple.c: Likewise.
13852 * gimplify-me.c: Likewise.
13853 * gimplify.c: Likewise.
13854 * godump.c: Likewise.
13855 * graph.c: Likewise.
13856 * graphite-blocking.c: Likewise.
13857 * graphite-dependences.c: Likewise.
13858 * graphite-interchange.c: Likewise.
13859 * graphite-isl-ast-to-gimple.c: Likewise.
13860 * graphite-optimize-isl.c: Likewise.
13861 * graphite-poly.c: Likewise.
13862 * graphite-scop-detection.c: Likewise.
13863 * graphite-sese-to-poly.c: Likewise.
13864 * graphite.c: Likewise.
13865 * haifa-sched.c: Likewise.
13866 * hw-doloop.c: Likewise.
13867 * ifcvt.c: Likewise.
13868 * init-regs.c: Likewise.
13869 * internal-fn.c: Likewise.
13870 * ipa-chkp.c: Likewise.
13871 * ipa-comdats.c: Likewise.
13872 * ipa-cp.c: Likewise.
13873 * ipa-devirt.c: Likewise.
13874 * ipa-icf-gimple.c: Likewise.
13875 * ipa-icf.c: Likewise.
13876 * ipa-inline-analysis.c: Likewise.
13877 * ipa-inline-transform.c: Likewise.
13878 * ipa-inline.c: Likewise.
13879 * ipa-polymorphic-call.c: Likewise.
13880 * ipa-profile.c: Likewise.
13881 * ipa-prop.c: Likewise.
13882 * ipa-pure-const.c: Likewise.
13883 * ipa-ref.c: Likewise.
13884 * ipa-reference.c: Likewise.
13885 * ipa-split.c: Likewise.
13886 * ipa-utils.c: Likewise.
13887 * ipa-visibility.c: Likewise.
13889 * ira-build.c: Likewise.
13890 * ira-color.c: Likewise.
13891 * ira-conflicts.c: Likewise.
13892 * ira-costs.c: Likewise.
13893 * ira-emit.c: Likewise.
13894 * ira-lives.c: Likewise.
13896 * jump.c: Likewise.
13897 * langhooks.c: Likewise.
13899 * loop-doloop.c: Likewise.
13900 * loop-init.c: Likewise.
13901 * loop-invariant.c: Likewise.
13902 * loop-iv.c: Likewise.
13903 * loop-unroll.c: Likewise.
13904 * lower-subreg.c: Likewise.
13905 * lra-assigns.c: Likewise.
13906 * lra-coalesce.c: Likewise.
13907 * lra-constraints.c: Likewise.
13908 * lra-eliminations.c: Likewise.
13909 * lra-lives.c: Likewise.
13910 * lra-remat.c: Likewise.
13911 * lra-spills.c: Likewise.
13913 * lto-cgraph.c: Likewise.
13914 * lto-compress.c: Likewise.
13915 * lto-opts.c: Likewise.
13916 * lto-section-in.c: Likewise.
13917 * lto-section-out.c: Likewise.
13918 * lto-streamer-in.c: Likewise.
13919 * lto-streamer-out.c: Likewise.
13920 * lto-streamer.c: Likewise.
13922 * mode-switching.c: Likewise.
13923 * modulo-sched.c: Likewise.
13924 * omega.c: Likewise.
13925 * omp-low.c: Likewise.
13926 * optabs.c: Likewise.
13927 * opts-global.c: Likewise.
13928 * passes.c: Likewise.
13929 * plugin.c: Likewise.
13930 * postreload-gcse.c: Likewise.
13931 * postreload.c: Likewise.
13932 * predict.c: Likewise.
13933 * print-rtl.c: Likewise.
13934 * print-tree.c: Likewise.
13935 * profile.c: Likewise.
13936 * real.c: Likewise.
13937 * realmpfr.c: Likewise.
13938 * recog.c: Likewise.
13940 * reg-stack.c: Likewise.
13941 * regcprop.c: Likewise.
13942 * reginfo.c: Likewise.
13943 * regrename.c: Likewise.
13944 * regstat.c: Likewise.
13945 * reload.c: Likewise.
13946 * reload1.c: Likewise.
13947 * reorg.c: Likewise.
13948 * resource.c: Likewise.
13949 * rtl-chkp.c: Likewise.
13950 * rtlanal.c: Likewise.
13951 * rtlhooks.c: Likewise.
13952 * sanopt.c: Likewise.
13953 * sched-deps.c: Likewise.
13954 * sched-ebb.c: Likewise.
13955 * sched-rgn.c: Likewise.
13956 * sched-vis.c: Likewise.
13957 * sdbout.c: Likewise.
13958 * sel-sched-dump.c: Likewise.
13959 * sel-sched-ir.c: Likewise.
13960 * sel-sched.c: Likewise.
13961 * sese.c: Likewise.
13962 * shrink-wrap.c: Likewise.
13963 * simplify-rtx.c: Likewise.
13964 * stack-ptr-mod.c: Likewise.
13965 * stmt.c: Likewise.
13966 * stor-layout.c: Likewise.
13967 * store-motion.c: Likewise.
13968 * stringpool.c: Likewise.
13969 * symtab.c: Likewise.
13970 * target-globals.c: Likewise.
13971 * targhooks.c: Likewise.
13972 * toplev.c: Likewise.
13973 * tracer.c: Likewise.
13974 * trans-mem.c: Likewise.
13975 * tree-affine.c: Likewise.
13976 * tree-browser.c: Likewise.
13977 * tree-call-cdce.c: Likewise.
13978 * tree-cfg.c: Likewise.
13979 * tree-cfgcleanup.c: Likewise.
13980 * tree-chkp-opt.c: Likewise.
13981 * tree-chkp.c: Likewise.
13982 * tree-chrec.c: Likewise.
13983 * tree-complex.c: Likewise.
13984 * tree-data-ref.c: Likewise.
13985 * tree-dfa.c: Likewise.
13986 * tree-diagnostic.c: Likewise.
13987 * tree-dump.c: Likewise.
13988 * tree-eh.c: Likewise.
13989 * tree-emutls.c: Likewise.
13990 * tree-if-conv.c: Likewise.
13991 * tree-inline.c: Likewise.
13992 * tree-into-ssa.c: Likewise.
13993 * tree-iterator.c: Likewise.
13994 * tree-loop-distribution.c: Likewise.
13995 * tree-nested.c: Likewise.
13996 * tree-nrv.c: Likewise.
13997 * tree-object-size.c: Likewise.
13998 * tree-outof-ssa.c: Likewise.
13999 * tree-parloops.c: Likewise.
14000 * tree-phinodes.c: Likewise.
14001 * tree-predcom.c: Likewise.
14002 * tree-pretty-print.c: Likewise.
14003 * tree-profile.c: Likewise.
14004 * tree-scalar-evolution.c: Likewise.
14005 * tree-sra.c: Likewise.
14006 * tree-ssa-address.c: Likewise.
14007 * tree-ssa-alias.c: Likewise.
14008 * tree-ssa-ccp.c: Likewise.
14009 * tree-ssa-coalesce.c: Likewise.
14010 * tree-ssa-copy.c: Likewise.
14011 * tree-ssa-copyrename.c: Likewise.
14012 * tree-ssa-dce.c: Likewise.
14013 * tree-ssa-dom.c: Likewise.
14014 * tree-ssa-dse.c: Likewise.
14015 * tree-ssa-forwprop.c: Likewise.
14016 * tree-ssa-ifcombine.c: Likewise.
14017 * tree-ssa-live.c: Likewise.
14018 * tree-ssa-loop-ch.c: Likewise.
14019 * tree-ssa-loop-im.c: Likewise.
14020 * tree-ssa-loop-ivcanon.c: Likewise.
14021 * tree-ssa-loop-ivopts.c: Likewise.
14022 * tree-ssa-loop-manip.c: Likewise.
14023 * tree-ssa-loop-niter.c: Likewise.
14024 * tree-ssa-loop-prefetch.c: Likewise.
14025 * tree-ssa-loop-unswitch.c: Likewise.
14026 * tree-ssa-loop.c: Likewise.
14027 * tree-ssa-math-opts.c: Likewise.
14028 * tree-ssa-operands.c: Likewise.
14029 * tree-ssa-phiopt.c: Likewise.
14030 * tree-ssa-phiprop.c: Likewise.
14031 * tree-ssa-pre.c: Likewise.
14032 * tree-ssa-propagate.c: Likewise.
14033 * tree-ssa-reassoc.c: Likewise.
14034 * tree-ssa-sccvn.c: Likewise.
14035 * tree-ssa-scopedtables.c: Likewise.
14036 * tree-ssa-sink.c: Likewise.
14037 * tree-ssa-strlen.c: Likewise.
14038 * tree-ssa-structalias.c: Likewise.
14039 * tree-ssa-tail-merge.c: Likewise.
14040 * tree-ssa-ter.c: Likewise.
14041 * tree-ssa-threadedge.c: Likewise.
14042 * tree-ssa-threadupdate.c: Likewise.
14043 * tree-ssa-uncprop.c: Likewise.
14044 * tree-ssa-uninit.c: Likewise.
14045 * tree-ssa.c: Likewise.
14046 * tree-ssanames.c: Likewise.
14047 * tree-stdarg.c: Likewise.
14048 * tree-streamer-in.c: Likewise.
14049 * tree-streamer-out.c: Likewise.
14050 * tree-streamer.c: Likewise.
14051 * tree-switch-conversion.c: Likewise.
14052 * tree-tailcall.c: Likewise.
14053 * tree-vect-data-refs.c: Likewise.
14054 * tree-vect-generic.c: Likewise.
14055 * tree-vect-loop-manip.c: Likewise.
14056 * tree-vect-loop.c: Likewise.
14057 * tree-vect-patterns.c: Likewise.
14058 * tree-vect-slp.c: Likewise.
14059 * tree-vect-stmts.c: Likewise.
14060 * tree-vectorizer.c: Likewise.
14061 * tree-vrp.c: Likewise.
14062 * tree.c: Likewise.
14063 * tsan.c: Likewise.
14064 * ubsan.c: Likewise.
14065 * valtrack.c: Likewise.
14066 * value-prof.c: Likewise.
14067 * var-tracking.c: Likewise.
14068 * varasm.c: Likewise.
14069 * varpool.c: Likewise.
14070 * vmsdbgout.c: Likewise.
14071 * vtable-verify.c: Likewise.
14073 * wide-int.cc: Likewise.
14074 * xcoffout.c: Likewise.
14075 * config/aarch64/aarch64-builtins.c: Likewise.
14076 * config/aarch64/aarch64.c: Likewise.
14077 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
14078 * config/alpha/alpha.c: Likewise.
14079 * config/arc/arc.c: Likewise.
14080 * config/arm/aarch-common.c: Likewise.
14081 * config/arm/arm-builtins.c: Likewise.
14082 * config/arm/arm-c.c: Likewise.
14083 * config/arm/arm.c: Likewise.
14084 * config/avr/avr-c.c: Likewise.
14085 * config/avr/avr-log.c: Likewise.
14086 * config/avr/avr.c: Likewise.
14087 * config/bfin/bfin.c: Likewise.
14088 * config/c6x/c6x.c: Likewise.
14089 * config/cr16/cr16.c: Likewise.
14090 * config/cris/cris.c: Likewise.
14091 * config/darwin-c.c: Likewise.
14092 * config/darwin.c: Likewise.
14093 * config/epiphany/epiphany.c: Likewise.
14094 * config/epiphany/mode-switch-use.c: Likewise.
14095 * config/epiphany/resolve-sw-modes.c: Likewise.
14096 * config/fr30/fr30.c: Likewise.
14097 * config/frv/frv.c: Likewise.
14098 * config/ft32/ft32.c: Likewise.
14099 * config/h8300/h8300.c: Likewise.
14100 * config/i386/i386-c.c: Likewise.
14101 * config/i386/i386.c: Likewise.
14102 * config/i386/msformat-c.c: Likewise.
14103 * config/i386/winnt-cxx.c: Likewise.
14104 * config/i386/winnt-stubs.c: Likewise.
14105 * config/i386/winnt.c: Likewise.
14106 * config/ia64/ia64-c.c: Likewise.
14107 * config/ia64/ia64.c: Likewise.
14108 * config/iq2000/iq2000.c: Likewise.
14109 * config/lm32/lm32.c: Likewise.
14110 * config/m32c/m32c-pragma.c: Likewise.
14111 * config/m32c/m32c.c: Likewise.
14112 * config/m32r/m32r.c: Likewise.
14113 * config/m68k/m68k.c: Likewise.
14114 * config/mcore/mcore.c: Likewise.
14115 * config/mep/mep-pragma.c: Likewise.
14116 * config/mep/mep.c: Likewise.
14117 * config/microblaze/microblaze-c.c: Likewise.
14118 * config/microblaze/microblaze.c: Likewise.
14119 * config/mips/mips.c: Likewise.
14120 * config/mmix/mmix.c: Likewise.
14121 * config/mn10300/mn10300.c: Likewise.
14122 * config/moxie/moxie.c: Likewise.
14123 * config/msp430/msp430-c.c: Likewise.
14124 * config/msp430/msp430.c: Likewise.
14125 * config/nds32/nds32-cost.c: Likewise.
14126 * config/nds32/nds32-fp-as-gp.c: Likewise.
14127 * config/nds32/nds32-intrinsic.c: Likewise.
14128 * config/nds32/nds32-isr.c: Likewise.
14129 * config/nds32/nds32-md-auxiliary.c: Likewise.
14130 * config/nds32/nds32-memory-manipulation.c: Likewise.
14131 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
14132 * config/nds32/nds32-predicates.c: Likewise.
14133 * config/nds32/nds32.c: Likewise.
14134 * config/nios2/nios2.c: Likewise.
14135 * config/nvptx/nvptx.c: Likewise.
14136 * config/pa/pa.c: Likewise.
14137 * config/pdp11/pdp11.c: Likewise.
14138 * config/rl78/rl78-c.c: Likewise.
14139 * config/rl78/rl78.c: Likewise.
14140 * config/rs6000/rs6000-c.c: Likewise.
14141 * config/rs6000/rs6000.c: Likewise.
14142 * config/rx/rx.c: Likewise.
14143 * config/s390/s390-c.c: Likewise.
14144 * config/s390/s390.c: Likewise.
14145 * config/sh/sh-c.c: Likewise.
14146 * config/sh/sh-mem.cc: Likewise.
14147 * config/sh/sh.c: Likewise.
14148 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
14149 * config/sh/sh_treg_combine.cc: Likewise.
14150 * config/sol2-c.c: Likewise.
14151 * config/sol2-cxx.c: Likewise.
14152 * config/sol2-stubs.c: Likewise.
14153 * config/sol2.c: Likewise.
14154 * config/sparc/sparc-c.c: Likewise.
14155 * config/sparc/sparc.c: Likewise.
14156 * config/spu/spu-c.c: Likewise.
14157 * config/spu/spu.c: Likewise.
14158 * config/stormy16/stormy16.c: Likewise.
14159 * config/tilegx/mul-tables.c: Likewise.
14160 * config/tilegx/tilegx-c.c: Likewise.
14161 * config/tilegx/tilegx.c: Likewise.
14162 * config/tilepro/mul-tables.c: Likewise.
14163 * config/tilepro/tilepro-c.c: Likewise.
14164 * config/tilepro/tilepro.c: Likewise.
14165 * config/v850/v850-c.c: Likewise.
14166 * config/v850/v850.c: Likewise.
14167 * config/vax/vax.c: Likewise.
14168 * config/visium/visium.c: Likewise.
14169 * config/vms/vms-c.c: Likewise.
14170 * config/vms/vms.c: Likewise.
14171 * config/vxworks.c: Likewise.
14172 * config/xtensa/xtensa.c: Likewise.
14174 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
14176 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
14177 Remove operand constraints. Change operand 2 predicate to
14178 nonmemory operand. Limit const_int values to mode bitsize. Only
14179 allow const_int values less than 32 when optimizing for size.
14180 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
14181 Remove operand constraints.
14182 (*bt<mode>): Use SImode for const_int values less than 32.
14183 (regmode): Remove mode attribute.
14185 2015-07-07 Anatoly Sokolov <aesok@post.ru>
14187 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
14188 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
14189 moxie_legitimate_address_p): New functions.
14190 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
14192 2015-07-07 Tom de Vries <tom@codesourcery.com>
14194 PR tree-optimization/66642
14195 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
14196 header comment. Rename split_edge variable to edge_at_split. Split
14197 exit edge to create new loop exit bb. Insert loop exit phis in new
14200 2015-07-07 Tom de Vries <tom@codesourcery.com>
14202 * tree-cfg.c (get_virtual_phi): New function.
14203 * tree-cfg.h (get_virtual_phi): Declare.
14204 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
14205 (rewrite_virtuals_into_loop_closed_ssa): New function.
14206 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
14208 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
14209 (transform_to_exit_first_loop_alt): Use
14210 rewrite_virtuals_into_loop_closed_ssa.
14212 2015-07-07 Richard Biener <rguenther@suse.de>
14214 * fold-const.c (fold_binary_loc): Move
14215 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
14216 * match.pd: ... here.
14217 Add (X * C1) % C2 -> 0 simplification pattern derived from
14220 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
14223 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
14224 change for target/65249.
14226 2015-07-07 Paulo Matos <pmatos@broadcom.com>
14228 * symtab.c (address_matters_1): Fix typo in comment above.
14229 (can_increase_alignment_p): Likewise.
14231 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
14233 * function.c (free_after_compilation): Clear PROP_cfg in
14234 f->curr_properties.
14236 2015-07-07 Richard Biener <rguenther@suse.de>
14238 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
14240 (add_control_edge): Remove excessive vertical space in dumping.
14241 (process_ssa_edge_worklist): Simulate at most one statement and
14242 return whether we did. Do not simulate PHIs if they are in a
14243 BB not yet simulated.
14244 (ssa_propagate): Adjust to always drain the BB worklist whenever
14245 a BB is available there, likewise the VARYING edges list before
14246 the interesting edge list.
14248 2015-07-07 Christian Bruel <christian.bruel@st.com>
14251 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
14253 2015-07-07 Richard Biener <rguenther@suse.de>
14255 PR middle-end/66739
14256 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
14259 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
14261 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
14262 modes for operands 0 and 3. Use SImode for operands 2 and 3.
14263 Copy operand 0 to a temporary if !ext_register_operand. Remove
14264 ancient extract_bit_field workaround.
14265 (insv<mode>_1): Rename from mov<mode>_insv_1.
14266 (*insvqi): Rename from *movqi_insv_2.
14267 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
14268 for renamed insvsi_1.
14269 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
14271 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
14273 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
14274 call to nvptx_reorg_subreg.
14276 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
14278 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
14279 * graphite-dependencies.c, graphite-interchange.c,
14280 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
14281 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
14284 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
14286 * match.pd: Remove element_mode inside HONOR_*.
14287 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
14288 (~X | X -> -1, ~X ^ X -> -1): Merge.
14289 * tree.c (build_each_one_cst): New function.
14290 * tree.h (build_each_one_cst): Likewise.
14292 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
14294 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
14297 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
14299 * config.gcc <mips*-*-*>: Add fused-madd.opt.
14300 * config/mips/mips.opt (mfused-madd): Remove.
14301 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
14302 * config/mips/mips.h (TARGET_MIPS8000): New.
14303 (ISA_HAS_FP_MADD4_MSUB4): Remove.
14304 (ISA_HAS_FP_MADDF_MSUBF): Remove.
14305 (ISA_HAS_FP_MADD3_MSUB3): Remove.
14306 (ISA_HAS_NMADD4_NMSUB4): Remove.
14307 (ISA_HAS_NMADD3_NMSUB3): Remove.
14308 (ISA_HAS_FUSED_MADD4): New.
14309 (ISA_HAS_UNFUSED_MADD4): New.
14310 (ISA_HAS_FUSED_MADDF): New.
14311 (ISA_HAS_FUSED_MADD3): New.
14312 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
14313 (*fma<mode>4_madd3) New.
14314 (*fma<mode>4_madd4) New.
14315 (*fma<mode>4_maddf) New.
14317 (*fms<mode>4_msub3) New.
14318 (*fms<mode>4_msub4) New.
14320 (*fnma<mode>4_nmadd3) New.
14321 (*fnma<mode>4_nmadd4) New.
14323 (*fnms<mode>4_nmsub3) New.
14324 (*fnms<mode>4_nmsub4) New.
14325 (*madd4<mode>) Modify to be unfused only.
14326 (*msub4<mode>) Modify to be unfused only.
14327 (*nmadd4<mode>) Modify to be unfused only.
14328 (*nmsub4<mode>) Modify to be unfused only.
14329 (*madd3<mode>) Remove.
14330 (*msub3<mode>) Remove.
14331 (*nmadd3<mode>) Remove.
14332 (*nmsub3<mode>) Remove.
14333 (*nmadd3<mode>_fastmath) Remove.
14334 (*nmsub3<mode>_fastmath) Remove.
14335 (*nmadd4<mode>_fastmath) Update condition.
14336 (*nmsub4<mode>_fastmath) Update condition.
14338 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
14341 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
14342 alignment attribute, exploring one level down for records and arrays.
14344 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
14346 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
14347 modes for operands 0 and 1. Use SImode for operands 2 and 3.
14348 Copy operand 1 to a temporary if !ext_register_operand. Remove
14349 ancient extract_bit_field workaround.
14350 (*extv<mode>): Rename from *mov<mode>_extv_1.
14351 (*extvqi): Rename from *movqi_extv_1.
14352 (extzv<mode>): Rename from extzv. Use SWI248 modes for
14353 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
14354 to a temporary if !ext_register_operand. Remove ancient
14355 extract_bit_field workaround.
14356 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
14357 (*extzvqi): Rename from *movqi_extzv_2.
14358 (*testqi_ext_3): Remove modes from const_int_operand predicated
14359 operands. Add "n" constraint.
14360 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
14361 operand. Add "J" constraint.
14362 (*btsq, *btrq, *btcq peephole2s): Remove mode from
14363 const_0_to_63 predicated operand.
14364 (regmode): New insn attribute.
14365 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
14366 to nonmemory_operand. Use regmode insn attribute.
14367 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
14368 (*jcc_bt<mode>_mask): Remove mode from operand 3.
14369 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
14370 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
14371 operands. Use "N" constraint instead of "n".
14373 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
14375 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
14377 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
14380 * config/i386/i386.c (iamcu_cost): New.
14381 (m_IAMCU): Likewise.
14382 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
14383 (processor_target_table): Add an entry for "iamcu".
14384 (processor_alias_table): Likewise.
14385 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
14386 (ix86_adjust_cost): Likewise.
14387 (ia32_multipass_dfa_lookahead): Likewise.
14388 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
14389 * config/i386/x86-tune.def: Updated for m_IAMCU.
14391 2015-07-06 Richard Biener <rguenther@suse.de>
14393 PR tree-optimization/66772
14394 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
14395 values are available in the PHI node BB when there are
14396 still unexecutable edges.
14398 2015-07-06 Richard Biener <rguenther@suse.de>
14400 PR tree-optimization/66767
14401 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
14402 Make sure to build the alignment test on a SSA name without
14403 final alignment info valid only if the alignment test
14406 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
14409 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
14410 loop start when inserting LSETUP.
14412 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
14415 * config/i386/i386.c (ix86_option_override_internal): Allow
14416 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
14418 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14420 * read-md.c (decimal_string): Rename to ...
14421 (md_decimal_string): ... this.
14422 (handle_enum): Reflect this.
14424 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14427 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
14429 2015-07-06 Richard Biener <rguenther@suse.de>
14431 PR middle-end/66759
14432 * match.pd: Add missing constraint of y to REAL_CST in
14433 REAL_CST - x CMP y to y - CST CMP x simplification.
14435 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
14437 PR tree-optimization/66757
14438 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
14440 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
14441 Sandra Loosemore <sandra@codesourcery.com>
14443 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
14444 Delete extern declaration.
14445 (gprel_constant_p): Add extern declaration.
14446 * config/nios2/constraints.md ("S"): Use gprel_constant_p
14447 instead of nios2_symbol_ref_in_small_data_p.
14448 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
14449 (nios2_symbol_ref_in_small_data_p): Make static.
14450 (gprel_constant_p): Make non-static.
14452 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
14454 * doc/fragments.texi (Target Fragment): Convert debian.org
14456 * doc/install.texi (Configuration): Ditto.
14458 2015-07-05 Jakub Jelinek <jakub@redhat.com>
14460 PR tree-optimization/66718
14461 * tree-vect-stmts.c (vectorizable_call): Replace uses of
14462 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
14464 PR tree-optimization/66718
14465 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
14466 vectorizable_load, vectorizable_condition): Move vectype,
14467 nunits, ncopies computation after checking what kind of statement
14470 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14472 * target-insns.def (extv, extzv, insv): New targetm instruction
14474 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
14476 * recog.c (simplify_while_replacing): Likewise.
14478 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14480 * target-insns.def (doloop_begin, doloop_end): New targetm
14481 instruction patterns.
14482 * loop-init.c: Include target.h.
14483 (pass_loop2::gate): Use the new targetm patterns instead of
14484 HAVE_*/gen_* interface.
14485 (pass_rtl_doloop::gate): Likewise.
14486 (pass_rtl_doloop::execute): Remove preprocessor condition.
14487 * hw-doloop.c: Build unconditionally.
14488 * loop-doloop.c: Likewise.
14489 (doloop_optimize): Use the new targetm patterns instead of
14490 HAVE_*/gen_* interface.
14491 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
14492 * modulo-sched.c (doloop_register_get): Likewise.
14494 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14496 * target-insns.def (clear_cache): New targetm instruction pattern.
14497 * builtins.c (expand_builtin___clear_cache): Use it instead of
14498 HAVE_*/gen_* interface.
14500 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14502 * target-insns.def (allocate_stack, check_stack, probe_stack)
14503 (probe_stack_address, split_stack_prologue, split_stack_space_check):
14504 New targetm instruction patterns.
14505 * explow.c (allocate_dynamic_stack_space): Use them instead of
14506 HAVE_*/gen_* interface.
14507 (emit_stack_probe): Likewise.
14508 (probe_stack_range): Likewise.
14509 * function.c (thread_prologue_and_epilogue_insns): Likewise.
14511 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14513 * target-insns.def (stack_protect_set, stack_protect_test): New
14514 targetm instruction patterns.
14515 * cfgexpand.c (stack_protect_prologue): Use them instead of
14516 HAVE_*/gen_* interface.
14517 * function.c (stack_protect_epilogue): Likewise.
14519 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14521 * expr.h (gen_move_insn_uncast): Delete.
14522 * expr.c (gen_move_insn_uncast): Delete.
14524 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14526 * target-insns.def (restore_stack_block, restore_stack_function)
14527 (restore_stack_nonlocal, save_stack_block, save_stack_function)
14528 (save_stack_nonlocal): New targetm instruction patterns.
14529 * builtins.c (expand_builtin_apply): Use them instead of
14530 HAVE_*/gen_* interface.
14531 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
14533 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14535 * target-insns.def (trap): New targetm instruction pattern.
14536 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
14538 * explow.c (allocate_dynamic_stack_space): Likewise.
14539 * ifcvt.c (find_if_header): Likewise.
14541 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14543 * target-insns.def (prefetch): New targetm instruction pattern.
14544 * tree-ssa-loop-prefetch.c: Include targeth.
14545 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
14546 of HAVE_*/gen_* interface.
14547 * builtins.c (expand_builtin_prefetch): Likewise.
14548 * toplev.c (process_options): Likewise.
14550 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14552 * target-insns.def (untyped_call, untyped_return): New targetm
14553 instruction patterns.
14554 * builtins.c (expand_builtin_apply): Use them instead of
14555 HAVE_*/gen_* interface.
14556 (result_vector): Define unconditionally.
14558 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14560 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
14561 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
14562 (nonlocal_goto_receiver): New targetm instruction patterns.
14563 * builtins.c (expand_builtin_setjmp_setup): Use them instead
14564 of HAVE_*/gen_* interface.
14565 (expand_builtin_setjmp_receiver): Likewise.
14566 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
14567 * except.c (expand_dw2_landing_pad_for_region): Likewise.
14569 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
14571 * target.def: Add code_for_* hooks.
14572 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
14573 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
14574 * target-insns.def (casesi, tablejump): New targetm instruction
14576 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
14577 (do_tablejump): Likewise.
14578 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
14579 (expand_sjlj_dispatch_table): Likewise.
14580 * targhooks.c (default_case_values_threshold): Likewise.
14582 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
14584 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
14585 Use rtx_insn * instead of rtx.
14586 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
14587 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
14588 (nios2_call_tls_get_addr): Likewise.
14589 (nios2_emit_expensive_div): Likewise.
14590 (nios2_emit_move_sequence): Change return type to bool.
14591 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
14592 Change return type to bool.
14594 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
14597 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
14599 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
14602 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
14603 of register_operand. Remove constraint.
14605 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
14607 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
14608 the first argument.
14610 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
14612 * attribs.c (decl_attributes): Guard inform with the return value
14613 of the preceding warning.
14615 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
14617 * doc/invoke.texi (moverride): Move to correct section.
14619 2015-07-03 Richard Biener <rguenther@suse.de>
14621 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
14623 (dt_operand::gen_gimple_expr): After valueizing operands
14624 re-canonicalize operand order for commutative tree codes.
14626 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
14629 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
14631 (__crc32w): Likewise.
14632 (__crc32d): Likewise.
14633 (__rdpmc): Likewise.
14634 (__rdtscp): Likewise.
14635 (_rdpmc): Likewise.
14636 (_rdtscp): Likewise.
14637 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
14640 2015-07-03 Richard Biener <rguenther@suse.de>
14642 * fold-const.c (fold_mathfn_compare): Remove.
14643 (fold_inf_compare): Likewise.
14644 (fold_comparison): Move floating point comparison simplifications...
14645 * match.pd: ... to patterns here. Introduce simple_comparisons
14646 operator list and use it for patterns formerly in fold_comparison.
14648 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
14650 PR tree-optimization/66119
14651 * toplev.c (process_options): Don't set up default values for
14652 the sra_max_scalarization_size_{speed,size} parameters.
14653 * tree-sra (analyze_all_variable_accesses): If no values
14654 have been set for the sra_max_scalarization_size_{speed,size}
14655 parameters, call get_move_ratio to get target defaults.
14657 2015-07-03 Richard Biener <rguenther@suse.de>
14659 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
14660 * match.pd: ... here.
14662 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
14665 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
14666 is not actually the default on FreeBSD.
14668 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14670 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
14672 (CMPGE_8HI): Likewise.
14673 (CMPGE_4SI): Likewise.
14674 (CMPGE_2DI): Likewise.
14675 (CMPGE_U16QI): Likewise.
14676 (CMPGE_U8HI): Likewise.
14677 (CMPGE_U4SI): Likewise.
14678 (CMPGE_U2DI): Likewise.
14679 (CMPLE_16QI): Likewise.
14680 (CMPLE_8HI): Likewise.
14681 (CMPLE_4SI): Likewise.
14682 (CMPLE_2DI): Likewise.
14683 (CMPLE_U16QI): Likewise.
14684 (CMPLE_U8HI): Likewise.
14685 (CMPLE_U4SI): Likewise.
14686 (CMPLE_U2DI): Likewise.
14687 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
14688 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
14689 ALTIVEC_BUILTIN_VEC_CMPLE.
14690 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
14691 floating-point vector modes.
14692 (vector_nlt<mode>): New define_expand.
14693 (vector_nltu<mode>): Likewise.
14694 (vector_ngt<mode>): Likewise.
14695 (vector_ngtu<mode>): Likewise.
14697 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14699 PR rtl-optimization/66706
14700 * combine.c (make_compound_operation): If an AND of SUBREG of
14701 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
14703 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
14705 * tree-pass.h (make_pass_ch_vect): New.
14706 * passes.def: Add pass_ch_vect just before pass_if_conversion.
14708 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
14709 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
14710 make_pass_ch_vect): New.
14711 (pass_ch): Extend ch_base.
14713 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
14714 (ch_base::copy_headers): ...here.
14716 2015-07-02 Richard Biener <rguenther@suse.de>
14718 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
14719 * fold-const.c (get_pointer_modulus_and_residue): Remove.
14720 (fold_binary_loc): Implement (T)ptr & CST in terms of
14721 get_pointer_alignment_1.
14722 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
14723 Make sure to build the alignment test on a SSA name without
14724 final alignment info valid only after the prologue.
14726 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
14728 * config/cris/cris.md ("epilogue"): Remove condition.
14729 ("prologue"): Ditto.
14731 2015-07-02 Richard Biener <rguenther@suse.de>
14733 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
14734 parameter to record a condition that is false.
14735 (record_conditions): When recording an extra NE_EXPR that is
14736 true also record a EQ_EXPR that is false.
14738 2015-07-02 Bin Cheng <bin.cheng@arm.com>
14740 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
14741 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
14742 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
14743 (set_iv, find_interesting_uses_address, add_candidate_1): New
14744 argument to alloc_iv.
14745 (find_interesting_uses_op, find_interesting_uses_cond): Don't
14746 duplicate struct iv.
14747 (free_loop_data): Don't free struct iv explicitly.
14748 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
14750 2015-07-01 DJ Delorie <dj@redhat.com>
14752 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
14754 (SUPPORTS_DISCRIMINATOR): Define.
14756 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
14759 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
14760 there are no CALLs in the same pattern.
14762 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
14764 PR rtl-optimization/61047
14765 * rtlanal.c (get_initial_register_offset): New function.
14766 (rtx_addr_can_trap_p_1): Check offsets of stack references.
14768 2015-07-01 Richard Biener <rguenther@suse.de>
14770 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
14771 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
14772 ~X CMP C -> X CMP' ~C to ...
14773 * match.pd: ... patterns here.
14775 2015-07-01 Nick Clifton <nickc@redhat.com>
14777 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
14778 a 16-bit value into a 20-bit memory slot.
14780 2015-07-01 Jiong Wang <jiong.wang@arm.com>
14782 * doc/sourcebuild.texi (AArch64-specific attributes): Document
14783 "aarch64_tiny", "aarch64_small", "aarch64_large",
14784 "aarch64_little_endian", "aarch64_big_endian".
14786 2015-07-01 Jiong Wang <jiong.wang@arm.com>
14788 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
14789 Document "aarch64_small_fpic".
14791 2015-07-01 Jiong Wang <jiong.wang@arm.com>
14793 * configure.ac: Add check for aarch64 assembler -fpic relocation
14795 * configure: Regenerate.
14796 * config.in: Regenerate.
14797 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
14798 to -fPIC if not support of -fpic relocation modifier in assembler.
14800 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
14803 * rtl.c (classify_insn): Handle returns in PARALLELs.
14805 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
14807 PR middle-end/66633
14808 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
14809 to true if the function is nested and if not optimizing.
14810 (convert_local_omp_clauses): Initialize need_frame to true if the
14811 function contains nested functions and if not optimizing.
14813 2015-07-01 Richard Biener <rguenther@suse.de>
14815 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
14816 (X & Y) ^ Y -> ~X & Y transforms to ...
14817 * match.pd: ... here.
14819 2015-07-01 Richard Biener <rguenther@suse.de>
14821 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
14822 of converts to avoid uninteresting noise from the conversion
14823 simplifying patterns.
14825 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
14827 * config/c6x/c6x.c (try_rename_operands): Do not depend on
14828 gcc_assert evaluating its argument for side-effect.
14830 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
14833 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
14836 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
14838 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
14839 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
14840 (hash_scc): Add this_ref_p and ref_p parameters and pass them
14841 to the inner DFS walk.
14843 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14845 * target-insns.def (jump): New targetm instruction pattern.
14846 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
14847 instead of gen_jump.
14848 (fix_up_crossing_landing_pad): Likewise.
14849 (add_labels_and_missing_jumps): Likewise.
14850 (fix_crossing_conditional_branches): Likewise.
14851 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
14852 (force_nonfallthru_and_redirect): Likewise.
14853 * cse.c (cse_insn): Likewise.
14854 * expmed.c (expand_divmod): Likewise.
14855 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
14856 * haifa-sched.c (init_before_recovery): Likewise.
14857 (sched_create_recovery_edges): Likewise.
14858 * ifcvt.c (find_cond_trap): Likewise.
14859 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
14860 (expand_float, expand_fix): Likewise.
14861 * stmt.c (emit_jump): Likewise.
14863 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14865 * defaults.h (HAVE_load_multiple, gen_load_multiple)
14866 (HAVE_store_multiple, gen_store_multiple): Delete.
14867 * target-insns.def (load_multiple, store_multiple): New targetm
14868 instruction patterns.
14869 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
14870 of HAVE_*/gen_* interface.
14872 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14874 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
14875 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
14876 (gen_mem_signal_fence): Delete.
14877 * target-insns.def (mem_signal_fence, mem_thread_fence)
14878 (memory_barrier): New targetm instruction patterns.
14879 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
14881 (expand_mem_signal_fence): Likewise.
14883 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
14885 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
14886 * target-insns.def (epilogue, prologue, sibcall_prologue): New
14887 targetm instruction patterns.
14888 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
14890 * calls.c (expand_call): Likewise.
14891 * cfgrtl.c (cfg_layout_finalize): Likewise.
14892 * df-scan.c (df_get_entry_block_def_set): Likewise.
14893 (df_get_exit_block_use_set): Likewise.
14894 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
14895 * final.c (final_start_function): Likewise.
14896 * function.c (thread_prologue_and_epilogue_insns): Likewise.
14897 (reposition_prologue_and_epilogue_notes): Likewise.
14898 * reorg.c (find_end_label): Likewise.
14899 * toplev.c (process_options): Likewise.
14901 2015-06-30 David Malcolm <dmalcolm@redhat.com>
14903 * typed-splay-tree.h: New file.
14905 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
14908 * lra-int.h (lra_substitute_pseudo): Add a parameter.
14909 (lra_substitute_pseudo_within_insn): Ditto.
14910 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
14912 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
14913 to lra_substitute_pseudo.
14914 * lra-lives.c (process_bb_lives): Add an argument to
14915 lra_substitute_pseudo_within_insn call.
14916 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
14917 argument to lra_substitute_pseudo and
14918 lra_substitute_pseudo_within_insn calls.
14919 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
14921 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
14923 * configure: Regenerated.
14925 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
14927 * config.gcc: Support i[34567]86-*-elfiamcu target.
14928 * config/i386/iamcu.h: New.
14929 * config/i386/i386.opt: Add -miamcu.
14930 * doc/invoke.texi: Document -miamcu.
14931 * common/config/i386/i386-common.c (ix86_handle_option): Turn
14932 off x87/MMX/SSE/AVX codegen for -miamcu.
14933 * config/i386/i386-c.c (ix86_target_macros_internal): Define
14934 __iamcu/__iamcu__ for -miamcu.
14935 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
14936 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
14937 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
14938 * config/i386/i386.c (ix86_option_override_internal): Ignore and
14939 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
14940 MCU by default. Default long double to 64-bit for Intel MCU.
14941 Turn on -freg-struct-return for Intel MCU. Issue an error when
14942 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
14944 (function_arg_advance_32): Pass value whose size is no larger
14945 than 8 bytes in registers for Intel MCU.
14946 (function_arg_32): Likewise.
14947 (ix86_return_in_memory): Return value whose size is no larger
14948 than 8 bytes in registers for Intel MCU.
14949 (iamcu_alignment): New function.
14950 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
14952 (ix86_local_alignment): Don't increase alignment for Intel MCU.
14953 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
14956 2015-06-30 Marek Polacek <polacek@redhat.com>
14958 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
14959 both operands of the resulting expression.
14961 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
14962 the final expression with the operand's type and then convert
14963 it to the type of the expression.
14965 2015-06-30 Richard Biener <rguenther@suse.de>
14967 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
14968 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
14969 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
14970 * match.pd: ... to patterns here.
14972 2015-06-30 Richard Biener <rguenther@suse.de>
14974 PR tree-optimization/66704
14975 * tree-vect-data-refs.c (vect_setup_realignment): Use
14976 make_ssa_name for non-SSA name source.
14978 2015-06-30 Jakub Jelinek <jakub@redhat.com>
14980 PR middle-end/66702
14981 * omp-low.c (simd_clone_adjust): Handle addressable linear
14982 or uniform parameters or non-gimple type uniform parameters.
14984 2015-06-30 Richard Biener <rguenther@suse.de>
14986 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
14987 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
14988 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
14989 * match.pd: ... here.
14990 Add a few cases of A - B -> A + (-B) when B "easily" negates.
14991 Move (x & y) | x -> x and friends before
14992 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
14994 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
14996 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
14997 -mfix-ut699 is not specified.
14998 (leon3_load): Rename into...
14999 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
15002 2015-06-30 Marek Polacek <polacek@redhat.com>
15004 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
15005 * match.pd: ... here.
15007 2015-06-30 Richard Biener <rguenther@suse.de>
15009 * target-insns.def (canonicalize_funcptr_for_compare): Add.
15010 * fold-const.c (build_range_check): Replace uses of
15011 HAVE_canonicalize_funcptr_for_compare.
15012 (fold_widened_comparison): Likewise.
15013 (fold_sign_changed_comparison): Likewise.
15014 * dojump.c: Include "target.h".
15015 (do_compare_and_jump): Replace uses of
15016 HAVE_canonicalize_funcptr_for_compare and
15017 gen_canonicalize_funcptr_for_compare.
15018 * expr.c (do_store_flag): Likewise.
15020 2015-06-30 Tom de Vries <tom@codesourcery.com>
15022 PR tree-optimization/66652
15023 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
15024 max_loop_iterations to determine if nit + 1 overflows.
15026 2015-06-30 Richard Biener <rguenther@suse.de>
15028 * tree-vrp.c (register_edge_assert_for_2): Also register
15029 asserts for dominating conversion results.
15031 2015-06-30 Bin Cheng <bin.cheng@arm.com>
15033 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
15034 field in struct iv.
15036 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
15039 * configure.ac: Fix filds and fildq test for 64-bit.
15040 * configure: Regenerated.
15042 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
15044 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
15045 (nvptx_reorg): Here. Keep the non-subreg pieces.
15047 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
15049 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
15050 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
15052 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
15054 * config/i386/i386.md (*jcc_1): Use %! in asm template.
15055 Set attribute "length_nobnd" instead of "length".
15058 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
15060 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
15062 * config/nios2/nios2.c (nios2_delegitimize_address): Make
15063 assert less restrictive.
15065 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
15068 * cgraphunit.c (cgraph_node::finalize_function): Do not call
15069 do_warn_unused_parameter.
15070 * function.c (do_warn_unused_parameter): Move from here.
15071 * function.h (do_warn_unused_parameter): Do not declare.
15073 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15076 * gcc.target/arm/armv-sync-comp-swap.c: New.
15077 * gcc.target/arm/armv-sync-op-acquire.c: New.
15078 * gcc.target/arm/armv-sync-op-full.c: New.
15079 * gcc.target/arm/armv-sync-op-release.c: New.
15081 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15084 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
15085 initial acquire barrier with final barrier.
15087 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15090 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
15091 initial acquire barrier with final barrier.
15093 2015-06-29 Richard Henderson <rth@redhat.com>
15095 * config/i386/constraints.md (Bf): New constraint.
15096 * config/i386/i386-c.c (ix86_target_macros): Define
15097 __GCC_ASM_FLAG_OUTPUTS__.
15098 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
15100 * doc/extend.texi (FlagOutputOperands): Document them.
15102 2015-06-29 Jiong Wang <jiong.wang@arm.com>
15104 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
15105 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
15107 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
15108 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
15109 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
15110 (aarch64_symbol_context): Ditto.
15111 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
15112 and use new pattern name.
15113 (aarch64_expand_mov_immediate): Ditto.
15114 (aarch64_print_operand): Ditto.
15115 (aarch64_classify_tls_symbol): Ditto.
15117 2015-06-29 Marek Polacek <polacek@redhat.com>
15118 Marc Glisse <marc.glisse@inria.fr>
15120 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
15121 * match.pd: ... pattern here.
15123 2015-06-29 Tom de Vries <tom@codesourcery.com>
15125 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
15126 function structure.
15128 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
15130 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
15131 feature description, split out the native option, add a link to
15132 the feature documentation, rearrange and slightly rewrite text.
15133 (Aarch64 options, -mcpu): Likewise.
15134 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
15135 +rdma implies Adv. SIMD.
15137 2015-06-29 Marek Polacek <polacek@redhat.com>
15140 * function.c (stack_protect_epilogue): Remove a cast to int.
15141 * doc/invoke.texi: Update -Wswitch-bool description.
15143 2015-06-29 Richard Biener <rguenther@suse.de>
15145 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
15146 * fold-const.c (fold_binary_loc): Move &A - &B simplification
15147 via ptr_difference_const ...
15148 * match.pd: ... here.
15149 When matching (X ^ Y) == Y also match with swapped operands.
15151 2015-06-29 Richard Biener <rguenther@suse.de>
15153 * lto-streamer.h (LTO_major_version): Bump to 5.
15155 2015-06-29 Richard Biener <rguenther@suse.de>
15157 PR tree-optimization/66677
15158 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
15159 STMT_VINFO_VEC_STMT clobbering less strict.
15161 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
15163 PR middle-end/64130
15164 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
15165 division, compute max and min when value ranges for dividend and
15166 divisor are available.
15168 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
15169 Sandra Loosemore <sandra@codesourcery.com>
15171 * regrename.h (regrename_do_replace): Change to return bool.
15172 * regrename.c (rename_chains): Check return value of
15173 regname_do_replace.
15174 (regrename_do_replace): Re-validate the modified insns and
15175 return bool status.
15176 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
15177 Update to match rename_chains changes.
15178 * config/c6x/c6x.c (try_rename_operands): Assert that
15179 regrename_do_replace returns true.
15181 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
15183 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
15184 operand 2 here. Use copy_addr_to_reg to copy non-index
15185 register operand 2 to a temporary.
15186 (<mode>_stx): Ditto for operand 1.
15187 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
15188 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
15189 (ix86_store_bounds): Ditto.
15191 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
15193 * print-tree.c (print_node) [TREE_VEC]: Print its length.
15195 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
15197 * gimple.c (gimple_call_set_fndecl): Remove.
15198 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
15199 build1_loc directly instead of build_fold_addr_expr_loc.
15201 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
15203 * hash-map.h (hash_map::traverse): Use the definition of the
15204 Key typedef rather than the typedef itself.
15206 2015-06-26 Martin Jambor <mjambor@suse.cz>
15209 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
15210 NULL instead of calling dump_enabled_p.
15212 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15214 * config/aarch64/aarch64.opt: (override): New.
15215 * doc/invoke.texi (override): Document.
15216 * config/aarch64/aarch64.c (aarch64_flag_desc): New
15217 (aarch64_fusible_pairs): Likewise.
15218 (aarch64_tuning_flags): Likewise.
15219 (aarch64_tuning_override_function): Likewise.
15220 (aarch64_tuning_override_functions): Likewise.
15221 (aarch64_parse_one_option_token): Likewise.
15222 (aarch64_parse_boolean_options): Likewise.
15223 (aarch64_parse_fuse_string): Likewise.
15224 (aarch64_parse_tune_string): Likewise.
15225 (aarch64_parse_one_override_token): Likewise.
15226 (aarch64_parse_override_string): Likewise.
15227 (aarch64_override_options): Parse the -override string if it
15230 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15232 * config/aarch64/aarch64-protos.h (tune_params): Remove
15233 const from members.
15234 (aarch64_tune_params): Remove const, change to no longer be
15236 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
15237 change to no longer be a pointer, initialize to generic_tunings.
15238 (aarch64_min_divisions_for_recip_mul): Change dereference of
15239 aarch64_tune_params to member access.
15240 (aarch64_reassociation_width): Likewise.
15241 (aarch64_rtx_mult_cost): Likewise.
15242 (aarch64_address_cost): Likewise.
15243 (aarch64_branch_cost): Likewise.
15244 (aarch64_rtx_costs): Likewise.
15245 (aarch64_register_move_cost): Likewise.
15246 (aarch64_memory_move_cost): Likewise.
15247 (aarch64_sched_issue_rate): Likewise.
15248 (aarch64_builtin_vectorization_cost): Likewise.
15249 (aarch64_override_options): Take a copy of the selected tuning
15250 struct in to aarch64_tune_params, rather than just setting
15251 a pointer, change dereferences of aarch64_tune_params to member
15253 (aarch64_override_options_after_change): Change dereferences of
15254 aarch64_tune_params to member access.
15255 (aarch64_macro_fusion_p): Likewise.
15256 (aarch_macro_fusion_pair_p): Likewise.
15257 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
15259 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15261 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
15262 (aarch64_tune_flags): Likewise.
15263 (AARCH64_TUNE_FMA_STEERING): Likewise.
15264 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
15265 to AARCH64_FL_USE_FMA_STEERING_PASS.
15266 (cortex-a57.cortex-a53): Likewise.
15267 (cortex-a72): Use cortexa72_tunings.
15268 (cortex-a72.cortex-a53): Likewise.
15269 (exynos-m1): Likewise.
15270 * config/aarch64/aarch64-protos.h (tune_params): Add
15271 a field: extra_tuning_flags.
15272 * config/aarch64/aarch64-tuning-flags.def: New.
15273 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
15274 (aarch64_extra_tuning_flags): Likewise.
15275 (aarch64_tune_params): Declare here.
15276 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
15277 (cortexa53_tunings): Likewise.
15278 (cortexa57_tunings): Likewise.
15279 (thunderx_tunings): Likewise.
15280 (xgene1_tunings): Likewise.
15281 (cortexa72_tunings): New.
15282 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
15283 (gate): Check against aarch64_tune_params.
15284 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
15287 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
15289 * config/aarch64/aarch64-fusion-pairs.def: New.
15290 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
15291 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
15292 aarch64_fusion_pairs.
15293 (AARCH64_FUSE_MOV_MOVK): Likewise.
15294 (AARCH64_FUSE_ADRP_ADD): Likewise.
15295 (AARCH64_FUSE_MOVK_MOVK): Likewise.
15296 (AARCH64_FUSE_ADRP_LDR): Likewise.
15297 (AARCH64_FUSE_CMP_BRANCH): Likewise.
15299 2015-06-26 Jiong Wang <jiong.wang@arm.com>
15301 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
15302 SYMBOL_SMALL_GOT_28K.
15303 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
15304 relocation modifiers.
15305 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
15306 (ldr_got_small_28k_<mode>): New.
15307 (ldr_got_small_28k_sidi): New.
15308 * config/aarch64/iterators.md (got_modifier): New mode iterator.
15309 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
15310 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15311 SYMBOL_SMALL_GOT_28K.
15312 (aarch64_rtx_costs): Add costs for new instruction sequences.
15313 (initialize_aarch64_code_model): Initialize new model.
15314 (aarch64_classify_symbol): Recognize new model and new symbol classification.
15315 (aarch64_asm_preferred_eh_data_format): Support new model.
15316 (aarch64_load_symref_appropriately): Generate new instruction
15317 sequences for -fpic.
15318 (TARGET_USE_PSEUDO_PIC_REG): New definition.
15319 (aarch64_use_pseudo_pic_reg): New function.
15321 2015-06-26 Jiong Wang <jiong.wang@arm.com>
15323 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
15324 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
15325 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
15326 (aarch64_expand_mov_immediate): Ditto.
15327 (aarch64_print_operand): Ditto.
15328 (aarch64_classify_symbol): Ditto.
15330 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
15332 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
15334 2015-06-26 Bin Cheng <bin.cheng@arm.com>
15337 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
15338 assertion failed. Remove assertion itself.
15340 2015-06-26 Richard Biener <rguenther@suse.de>
15342 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
15343 and -A CMP CST -> A CMP -CST which is redundant with a pattern
15345 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
15346 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
15347 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
15348 * match.pd: ... patterns here.
15350 2015-06-26 Marek Polacek <polacek@redhat.com>
15352 * match.pd ((x | y) & ~(x & y) -> x ^ y,
15353 (x | y) & (~x ^ y) -> x & y): New patterns.
15355 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
15357 * rtl.h (emit): Add an optional boolean parameter to control
15358 whether barriers are emitted.
15359 * emit-rtl.c (emit): Likewise.
15360 * gensupport.c (get_emit_function): Return null rather than "emit".
15361 * genemit.c (gen_emit_seq): Handle the null return value.
15362 Don't emit barriers after the final instruction in the sequence.
15363 * gentarget-def.c (main): Don't emit barriers after the instruction.
15365 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15367 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
15368 TARGET_UNIFIED_ASM.
15370 2015-06-26 Richard Biener <rguenther@suse.de>
15372 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
15374 2015-06-26 Richard Biener <rguenther@suse.de>
15376 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
15377 irrespective on whether the inner operation has a single use
15378 of both off are constant.
15380 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
15381 Segher Boessenkool <segher@kernel.crashing.org>
15384 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
15385 before doing PUT_MODE or PUT_CODE on operands to avoid
15386 in-place RTX modification.
15388 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
15390 * gentarget-def.c (def_target_insn): Cast return of strtol to
15393 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15395 * gimple.h (gimple_call_set_fn): Move inline function.
15396 * gimple.c (gimple_call_set_fn): Relocate here.
15398 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
15402 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
15403 the replacement insn will work.
15405 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
15407 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
15410 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15412 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
15413 * cgraph.h: Include ipa-ref.h and plugin-api.h.
15414 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
15415 (symtab_node::address_can_be_compared_p): Move function.
15416 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
15418 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
15419 * auto-profile.c: Likewise.
15420 * bb-reorder.c: Likewise.
15421 * builtins.c: Likewise.
15422 * calls.c: Likewise.
15423 * cfgexpand.c: Likewise.
15424 * cgraphbuild.c: Likewise.
15425 * cgraphclones.c: Likewise.
15426 * cgraphunit.c: Likewise.
15427 * combine.c: Likewise.
15428 * coverage.c: Likewise.
15429 * data-streamer-in.c: Likewise.
15430 * data-streamer-out.c: Likewise.
15431 * data-streamer.c: Likewise.
15432 * dbxout.c: Likewise.
15433 * dwarf2out.c: Likewise.
15434 * except.c: Likewise.
15435 * expr.c: Likewise.
15436 * final.c: Likewise.
15437 * fold-const.c: Likewise.
15438 * ggc-page.c: Likewise.
15439 * gimple-fold.c: Likewise.
15440 * gimple-iterator.c: Likewise.
15441 * gimple-pretty-print.c: Likewise.
15442 * gimple-streamer-in.c: Likewise.
15443 * gimple-streamer-out.c: Likewise.
15444 * gimple.c: Likewise.
15445 * gimplify.c: Likewise.
15446 * ipa-chkp.c: Likewise.
15447 * ipa-comdats.c: Likewise.
15448 * ipa-cp.c: Likewise.
15449 * ipa-devirt.c: Likewise.
15450 * ipa-icf-gimple.c: Likewise.
15451 * ipa-icf.c: Likewise.
15452 * ipa-inline-analysis.c: Likewise.
15453 * ipa-inline-transform.c: Likewise.
15454 * ipa-inline.c: Likewise.
15455 * ipa-polymorphic-call.c: Likewise.
15456 * ipa-profile.c: Likewise.
15457 * ipa-prop.c: Likewise.
15458 * ipa-pure-const.c: Likewise.
15459 * ipa-ref.c: Likewise.
15460 * ipa-reference.c: Likewise.
15461 * ipa-split.c: Likewise.
15462 * ipa-utils.c: Likewise.
15463 * ipa-visibility.c: Likewise.
15465 * langhooks.c: Likewise.
15466 * lto-cgraph.c: Likewise.
15467 * lto-compress.c: Likewise.
15468 * lto-opts.c: Likewise.
15469 * lto-section-in.c: Likewise.
15470 * lto-section-out.c: Likewise.
15471 * lto-streamer-in.c: Likewise.
15472 * lto-streamer-out.c: Likewise.
15473 * lto-streamer.c: Likewise.
15474 * omp-low.c: Likewise.
15475 * opts-global.c: Likewise.
15476 * passes.c: Likewise.
15477 * predict.c: Likewise.
15478 * print-tree.c: Likewise.
15479 * profile.c: Likewise.
15481 * sanopt.c: Likewise.
15482 * stor-layout.c: Likewise.
15483 * symtab.c: Likewise.
15484 * toplev.c: Likewise.
15485 * trans-mem.c: Likewise.
15486 * tree-cfg.c: Likewise.
15487 * tree-chkp.c: Likewise.
15488 * tree-eh.c: Likewise.
15489 * tree-emutls.c: Likewise.
15490 * tree-inline.c: Likewise.
15491 * tree-nested.c: Likewise.
15492 * tree-parloops.c: Likewise.
15493 * tree-pretty-print.c: Likewise.
15494 * tree-profile.c: Likewise.
15495 * tree-sra.c: Likewise.
15496 * tree-ssa-alias.c: Likewise.
15497 * tree-ssa-live.c: Likewise.
15498 * tree-ssa-loop-ivcanon.c: Likewise.
15499 * tree-ssa-loop-ivopts.c: Likewise.
15500 * tree-ssa-pre.c: Likewise.
15501 * tree-ssa-sccvn.c: Likewise.
15502 * tree-ssa-strlen.c: Likewise.
15503 * tree-ssa-structalias.c: Likewise.
15504 * tree-streamer-in.c: Likewise.
15505 * tree-streamer-out.c: Likewise.
15506 * tree-streamer.c: Likewise.
15507 * tree-switch-conversion.c: Likewise.
15508 * tree-tailcall.c: Likewise.
15509 * tree-vect-data-refs.c: Likewise.
15510 * tree-vect-stmts.c: Likewise.
15511 * tree-vectorizer.c: Likewise.
15512 * tree.c: Likewise.
15513 * tsan.c: Likewise.
15514 * ubsan.c: Likewise.
15515 * value-prof.c: Likewise.
15516 * varasm.c: Likewise.
15517 * varpool.c: Likewise.
15518 * config/arm/arm.c: Likewise.
15519 * config/bfin/bfin.c: Likewise.
15520 * config/c6x/c6x.c: Likewise.
15521 * config/cris/cris.c: Likewise.
15522 * config/darwin-c.c: Likewise.
15523 * config/darwin.c: Likewise.
15524 * config/i386/i386.c: Likewise.
15525 * config/i386/winnt.c: Likewise.
15526 * config/microblaze/microblaze.c: Likewise.
15527 * config/mips/mips.c: Likewise.
15528 * config/rs6000/rs6000.c: Likewise.
15529 * config/rx/rx.c: Likewise.
15530 * config/s390/s390.c: Likewise.
15531 * config/tilegx/mul-tables.c: Likewise.
15533 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15535 * config/aarch64/aarch64.c, config/alpha/alpha.c,
15536 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
15537 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
15538 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
15539 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15540 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15541 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15542 config/microblaze/microblaze.c, config/mips/mips.c,
15543 config/mmix/mmix.c, config/mn10300/mn10300.c,
15544 config/moxie/moxie.c, config/msp430/msp430.c,
15545 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15546 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15547 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15548 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15549 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15550 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15551 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
15552 target-def.h include.
15553 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
15555 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15557 * Makefile.in (TARGET_DEF): Add target-insns.def.
15558 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
15559 (build/gentarget-def.o): New rule.
15560 (genprogrtl): Add target-def.
15561 * target-insns.def, gentarget-def.c: New files.
15562 * target.def: Add targetm.have_* and targetm.gen_* hooks,
15563 based on the contents of target-insns.def.
15564 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
15565 (HAVE_return, gen_return): Delete.
15566 * target-def.h: Include insn-target-def.h.
15567 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
15568 instead of direct calls. Rely on them to do the appropriate assertions.
15569 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
15570 (convert_jumps_to_returns): Use targetm interface instead of
15572 (thread_prologue_and_epilogue_insns): Likewise.
15573 * reorg.c (find_end_label, dbr_schedule): Likewise.
15574 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
15575 * shrink-wrap.c (convert_to_simple_return): Likewise.
15576 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
15578 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15580 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
15581 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
15582 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
15583 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
15584 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
15585 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
15586 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
15587 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
15588 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
15589 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
15590 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
15591 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
15592 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
15593 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
15594 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
15595 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
15598 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15600 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
15601 (unbounded_int_hashmap_traits::key_type): Likewise.
15602 * hash-map.h (hash_map): Get the key type from the traits.
15603 * hash-traits.h (default_hash_traits): By default, inherit from the
15604 template parameter.
15605 * alias.c (alias_set_traits): Delete.
15606 (alias_set_entry_d::children): Use alias_set_hash as the first
15607 template parameter.
15608 (record_alias_subset): Update accordingly.
15609 * except.c (tree_hash_traits): Delete.
15610 (type_to_runtime_map): Use tree_hash as the first template parameter.
15611 (init_eh): Update accordingly.
15612 * genmatch.c (capture_id_map_hasher): Delete.
15613 (cid_map_t): Use nofree_string_hash as first template parameter.
15614 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
15615 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
15616 Use symbol_compare_hash as the first template parameter in
15617 subdivide_hash_map.
15618 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
15619 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
15620 template parameter.
15621 * passes.c (pass_registry_hasher): Delete.
15622 (name_to_pass_map): Use nofree_string_hash as the first template
15624 (register_pass_name): Update accordingly.
15625 * sanopt.c (sanopt_tree_map_traits): Delete.
15626 (sanopt_tree_triplet_map_traits): Delete.
15627 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
15628 template parameter.
15629 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
15630 the first template parameter.
15631 * sese.c (rename_map_hasher): Delete.
15632 (rename_map_type): Use tree_ssa_name_hash as the first template
15634 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
15635 (function_summary::m_map): Use map_hash as the first template
15637 (function_summary::release): Update accordingly.
15638 * tree-if-conv.c (phi_args_hash_traits): Delete.
15639 (predicate_scalar_phi): Use tree_operand_hash as the first template
15640 parameter to phi_arg_map.
15641 * tree-inline.h (dependence_hasher): Delete.
15642 (copy_body_data::dependence_map): Use dependence_hash as the first
15643 template parameter.
15644 * tree-inline.c (remap_dependence_clique): Update accordingly.
15645 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
15646 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
15648 (addr_stridxptr): Update accordingly.
15649 * value-prof.c (profile_id_traits): Delete.
15650 (cgraph_node_map): Use profile_id_hash as the first template
15652 (init_node_map): Update accordingly.
15653 * config/alpha/alpha.c (string_traits): Delete.
15654 (machine_function::links): Use nofree_string_hash as the first
15655 template parameter.
15656 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
15657 * config/m32c/m32c.c (pragma_traits): Delete.
15658 (pragma_htab): Use nofree_string_hash as the first template parameter.
15659 (m32c_note_pragma_address): Update accordingly.
15660 * config/mep/mep.c (pragma_traits): Delete.
15661 (pragma_htab): Use nofree_string_hash as the first template parameter.
15662 (mep_note_pragma_flag): Update accordingly.
15663 * config/mips/mips.c (mips16_flip_traits): Delete.
15664 (mflip_mips16_htab): Use nofree_string_hash as the first template
15666 (mflip_mips16_use_mips16_p): Update accordingly.
15667 (local_alias_traits): Delete.
15668 (mips16_local_aliases): Use nofree_string_hash as the first template
15670 (mips16_local_alias): Update accordingly.
15672 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15674 * hash-map-traits.h (default_hashmap_traits): Delete.
15676 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15678 * hash-map-traits.h (unbounded_hashmap_traits): New class.
15679 (unbounded_int_hashmap_traits): Likewise.
15680 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
15682 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15684 * ipa-icf.h (symbol_compare_hash): New class.
15685 (symbol_compare_hashmap_traits): Use it.
15686 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
15687 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
15688 (mem_alloc_description::reverse_mem_map_t): Remove redundant
15689 default_hashmap_traits.
15690 * sanopt.c (sanopt_tree_triplet_hash): New class.
15691 (sanopt_tree_triplet_map_traits): Use it.
15693 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15695 * gengtype-parse.c (require_template_declaration): Allow '+' in
15696 template parameters. Consolidate cases.
15697 * hash-traits.h (int_hash): New class.
15698 * alias.c (alias_set_hash): New structure.
15699 (alias_set_traits): Use it.
15700 * symbol-summary.h (function_summary::map_hash): New class.
15701 (function_summary::summary_hashmap_traits): Use it.
15702 * tree-inline.h (dependence_hash): New class.
15703 (dependence_hasher): Use it.
15704 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
15705 * value-prof.c (profile_id_hash): New class.
15706 (profile_id_traits): Use it.
15708 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15710 * config/mips/mips.c (mips16_flip_traits): Use it.
15711 (local_alias_traits, mips16_local_aliases): Convert from a map of
15712 rtxes to a map of symbol names.
15713 (mips16_local_alias): Update accordingly.
15715 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15717 * hash-traits.h (string_hash, nofree_string_hash): New classes.
15718 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
15719 * passes.c (pass_registry_hasher): Likewise.
15720 * config/alpha/alpha.c (string_traits): Likewise.
15721 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
15722 * config/m32c/m32c.c (pragma_traits): Likewise.
15723 * config/mep/mep.c (pragma_traits): Likewise.
15725 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15727 * tree-hash-traits.h (tree_hash): New class.
15728 * except.c: Include tree-hash-traits.h.
15729 (tree_hash_traits): Use tree_hash.
15731 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15733 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
15734 * sese.c: Include tree-hash-traits.h.
15735 (rename_map_hasher): Use tree_ssa_name_hasher.
15737 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15739 * tree-hash-traits.h (tree_decl_hash): New class.
15740 * tree-ssa-strlen.c: Include tree-hash-traits.h.
15741 (stridxlist_hash_traits): Use tree_decl_hash.
15743 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15745 * tree-hash-traits.h: New file.
15746 (tree_operand_hash): New class.
15747 * sanopt.c: Include tree-hash-traits.h.
15748 (sanopt_tree_map_traits): Use tree_operand_hash.
15749 * tree-if-conv.c: Include tree-hash-traits.h.
15750 (phi_args_hash_traits): Use tree_operand_hash.
15751 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
15752 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
15754 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15756 * hash-map-traits.h: Include hash-traits.h.
15757 (simple_hashmap_traits): New class.
15758 * mem-stats.h (hash_map): Change the default traits to
15759 simple_hashmap_traits<default_hash_traits<Key> >.
15761 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15763 * hash-table.h: Update comments.
15765 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15767 * hash-traits.h (default_hash_traits): New structure.
15768 * hash-set.h (default_hashset_traits): Delete.
15769 (hash_set): Use default_hash_traits<Key> instead of
15770 default_hashset_traits. Delete hash_entry type and use Key directly.
15771 * ipa-devirt.c (pair_traits): Delete.
15772 (default_hash_traits <type_pair>): Override.
15773 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
15774 (odr_types_equivalent_p, add_type_duplicate): Likewise.
15776 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15778 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
15780 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15782 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
15783 (has_is_empty, is_empty_helper): Delete.
15784 (has_mark_deleted, mark_deleted_helper): Delete.
15785 (has_mark_empty, mark_empty_helper): Delete.
15786 (hash_table::is_deleted): Call the Descriptor unconditionally.
15787 (hash_table::is_empty): Likewise.
15788 (hash_table::mark_deleted): Likewise.
15789 (hash_table::mark_empty): Likewise.
15791 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15793 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
15794 redundant typedefs and members.
15795 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
15796 redundant typedefs.
15797 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
15798 * ipa-devirt.c (odr_name_hasher): Likewise.
15799 (polymorphic_call_target_hasher): Likewise.
15800 * ira-costs.c (cost_classes_hasher): Likewise.
15801 * statistics.c (stats_counter_hasher): Likewise.
15802 * trans-mem.c (log_entry_hasher): Likewise.
15803 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15804 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
15805 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
15806 * var-tracking.c (variable_hasher): Likewise.
15807 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
15808 Remove redundant typedefs and members.
15810 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15812 * hash-traits.h (ggc_cache_hasher): Rename to...
15813 (ggc_cache_remove): ...this and remove typedefs.
15814 (ggc_cache_ptr_hash): New class.
15815 * hash-table.h: Update commentary.
15816 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
15817 rather than ggc_cache_hasher.
15818 (const_wide_int_hasher, reg_attr_hasher): Likewise.
15819 (const_double_hasher, const_fixed_hasher): Likewise.
15820 * function.c (insn_cache_hasher): Likewise.
15821 * trans-mem.c (tm_wrapper_hasher): Likewise.
15822 * tree.h (tree_decl_map_cache_hasher): Likewise.
15823 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
15824 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
15825 * ubsan.c (tree_type_map_cache_hasher): Likewise.
15826 * varasm.c (tm_clone_hasher): Likewise.
15827 * config/i386/i386.c (dllimport_hasher): Likewise.
15828 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
15829 (tree_hasher): Likewise.
15831 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15833 * hash-traits.h (ggc_hasher): Rename to...
15834 (ggc_remover): ...this and remove typedefs.
15835 (ggc_cache_hasher): Update accordingly. Add typedefs.
15836 (ggc_ptr_hash): New class.
15837 * hash-table.h: Update comment.
15838 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
15840 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
15841 (tree_descriptor_hasher): Likewise.
15842 * cgraph.c (function_version_hasher): Likewise.
15843 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
15844 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
15845 (dw_loc_list_hasher, addr_hasher): Likewise.
15846 * function.h (used_type_hasher): Likewise.
15847 * function.c (temp_address_hasher): Likewise.
15848 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
15849 * libfuncs.h (libfunc_hasher): Likewise.
15850 * lto-streamer.h (decl_state_hasher): Likewise.
15851 * optabs.c (libfunc_decl_hasher): Likewise.
15852 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
15853 * varasm.c (section_hasher, object_block_hasher): Likewise.
15854 (const_rtx_desc_hasher): Likewise.
15855 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
15856 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
15858 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15860 * hash-traits.h (free_ptr_hash): New class.
15861 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
15862 rather than typed_free_remove. Remove redudant typedefs.
15863 (external_ref_hasher): Likewise.
15864 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
15865 (ehspec_hasher): Likewise.
15866 * ggc-common.c (saving_hasher): Likewise.
15867 * gimplify.c (gimplify_hasher): Likewise.
15868 * haifa-sched.c (delay_i2_hasher): Likewise.
15869 * loop-invariant.c (invariant_expr_hasher): Likewise.
15870 * loop-iv.c (biv_entry_hasher): Likewise.
15871 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
15872 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
15873 * tree-cfg.c (locus_discrim_hasher): Likewise.
15874 * tree-eh.c (finally_tree_hasher): Likewise.
15875 * tree-into-ssa.c (var_info_hasher): Likewise.
15876 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
15877 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
15878 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
15879 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
15880 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
15881 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
15882 (shared_bitmap_hasher): Likewise.
15883 * tree-ssa-threadupdate.c (redirection_data): Likewise.
15884 * tree-vectorizer.h (peel_info_hasher): Likewise.
15885 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
15886 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
15888 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15890 * hash-table.h: Update comments.
15891 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
15892 (nofree_ptr_hash): New class.
15893 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
15894 than typed_noop_remove. Remove redudant typedefs.
15895 * attribs.c (attribute_hasher): Likewise.
15896 * cfg.c (bb_copy_hasher): Likewise.
15897 * cselib.c (cselib_hasher): Likewise.
15898 * dse.c (invariant_group_base_hasher): Likewise.
15899 * dwarf2cfi.c (trace_info_hasher): Likewise.
15900 * dwarf2out.c (macinfo_entry_hasher): Likewise.
15901 (comdat_type_hasher, loc_list_hasher): Likewise.
15902 * gcse.c (pre_ldst_expr_hasher): Likewise.
15903 * genmatch.c (id_base): Likewise.
15904 * genrecog.c (test_pattern_hasher): Likewise.
15905 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
15906 * haifa-sched.c (delay_i1_hasher): Likewise.
15907 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
15908 * ipa-icf.h (congruence_class_group_hash): Likewise.
15909 * ipa-profile.c (histogram_hash): Likewise.
15910 * ira-color.c (allocno_hard_regs_hasher): Likewise.
15911 * lto-streamer.h (string_slot_hasher): Likewise.
15912 * lto-streamer.c (tree_entry_hasher): Likewise.
15913 * plugin.c (event_hasher): Likewise.
15914 * postreload-gcse.c (expr_hasher): Likewise.
15915 * store-motion.c (st_expr_hasher): Likewise.
15916 * tree-sra.c (uid_decl_hasher): Likewise.
15917 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
15918 (ssa_name_var_hash): Likewise.
15919 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
15920 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
15921 * tree-ssa-pre.c (pre_expr_d): Likewise.
15922 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
15923 * vtable-verify.h (registration_hasher): Likewise.
15924 * vtable-verify.c (vtbl_map_hasher): Likewise.
15925 * config/arm/arm.c (libcall_hasher): Likewise.
15926 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
15927 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
15928 * config/sol2.c (comdat_entry_hasher): Likewise.
15929 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
15930 (print_fold_checksum, fold_checksum_tree): Likewise.
15931 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
15932 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
15933 (fold_build_call_array_loc): Likewise.
15934 * tree-ssa-ccp.c (gimple_htab): Likewise.
15935 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
15936 rather than pointer_type.
15938 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15940 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
15941 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
15943 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15945 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
15946 (ggc_hasher::ggc_mx): Likewise.
15947 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
15948 that duplicate ggc_hasher ones.
15950 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15952 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
15953 (gt_cleare_cache): Check here for deleted and empty entries.
15954 Replace handle_cache_entry with a call to keep_cache_entry.
15955 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
15956 (ggc_cache_hasher::keep_cache_entry): New function.
15957 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
15958 (tm_wrapper_hasher::keep_cache_entry): New function.
15959 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
15960 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15961 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
15962 (type_cache_hasher::keep_cache_entry): New function.
15963 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
15964 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
15965 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
15966 (tree_type_map_cache_hasher::keep_cache_entry): New function.
15967 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
15968 (tm_clone_hasher::keep_cache_entry): New function.
15969 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
15970 (dllimport_hasher::keep_cache_entry): New function.
15972 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
15974 * hash-table.h: Include hash-traits.h.
15975 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
15976 (ggc_cache_hasher): Move to...
15977 * hash-traits.h: ...this new file.
15979 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15981 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
15982 struct cl_optimization.
15983 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
15984 * tree.c (make_node_stat): Allocate cl_optimization struct.
15985 (copy_node_stat): Allocate and copy cl_optimization struct.
15987 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
15989 * function.h (struct incoming_args): Move struct.
15990 (pass_by_reference, reference_callee_copied): Remove prototypes.
15991 * emit-rtl.h (struct incoming_args): Relocate struct here.
15992 * calls.h (pass_by_reference, reference_callee_copied): Relocate
15994 * function.c (pass_by_reference, reference_callee_copied): Move.
15995 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
15996 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
15997 * ipa-chkp.c: Include calls.h.
15999 2015-06-25 Andrew Macleod <amacleod@redhat.com>
16001 * alias.h (alias_set_type): Move typedef.
16002 * coretypes.h (alias_set_type): Relocate typedef here.
16003 * rtl.h: Don't include alias.h.
16005 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
16007 * cgraph.h (cgraph_rtl_info): Move to rtl.h
16008 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
16010 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
16011 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
16013 * calls.c: Include hard-reg-set.h before rtl.h.
16016 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16017 Vladimir Makarov <vmakarov@redhat.com>
16019 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
16022 2015-06-25 Richard Biener <rguenther@suse.de>
16024 * fold-const.c (fold_binary_loc): Move simplification of
16025 (X <<>> C1) & C2 ...
16026 * match.pd: ... here.
16028 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
16030 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
16032 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
16034 * match.pd: Add patterns for vec_conds between 1 and 0.
16036 2015-06-25 Richard Biener <rguenther@suse.de>
16038 * tree-vect-stmts.c (vectorizable_conversion): Do not set
16039 STMT_VINFO_VEC_STMT for SLP.
16040 (vectorizable_store): Likewise.
16041 (vectorizable_load): Likewise.
16042 (vect_transform_stmt): Catch SLP vectorization clobbering
16043 STMT_VINFO_VEC_STMT.
16045 2015-06-25 Richard Biener <rguenther@suse.de>
16047 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
16049 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
16050 cleanup resulting dead code and parameters.
16051 (vect_transform_slp_perm_load): Adjust.
16053 2015-06-25 Nick Clifton <nickc@redhat.com>
16055 * config/bfin/bfin.c (bfin_expand_prologue): Set
16056 current_function_static_stack_size if flag_stack_usage_info is set.
16057 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
16058 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
16059 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
16060 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
16062 2015-06-25 Tom de Vries <tom@codesourcery.com>
16064 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
16065 comment that the generated IV is unsigned.
16067 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16070 * config/arm/arm.c (arm_dbx_register_number): Return
16071 DWARF_FRAME_REGISTERS by default.
16073 2015-06-25 Tom de Vries <tom@codesourcery.com>
16075 * dominance.c (calculate_dominance_info): Fix verify_dominators call
16076 argument. Call verify_dominator when reusing dominator info.
16078 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
16081 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
16082 an additional element of the unspec vector. Modify indices
16084 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
16085 * config/sh/sh.c (prepare_move_operands): Pass incremented
16086 const_int to gen_GOTaddr2picreg.
16087 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
16089 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16091 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
16092 Condition on TARGET_FLOAT.
16094 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16096 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
16099 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
16101 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
16103 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
16104 aarch64_err_no_fpadvsimd.
16106 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
16107 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
16108 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
16109 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
16110 Turn error into assert, test TARGET_FLOAT.
16111 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
16114 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
16117 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
16119 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
16121 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
16123 2015-06-24 Renlin Li <renlin.li@arm.com>
16125 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
16126 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
16128 2015-06-24 Richard Biener <rguenther@suse.de>
16130 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
16132 (lower_opt_convert): Support lowering of conditional view_convert.
16133 (parser::parse_operation): Likewise.
16134 (parser::parse_for): Likewise.
16136 2015-06-24 Renlin Li <renlin.li@arm.com>
16138 * varasm.c (emit_local): Use unsigned int for align variable.
16140 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16143 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
16144 for negative numbers.
16146 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16148 PR rtl-optimization/66306
16149 * reload.c (find_reloads): Swap the match_dup info for
16150 commutative operands.
16152 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16154 * config/s390/vx-builtins.md
16155 ("vec_scatter_element<mode>_<non_vec_int>")
16156 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
16157 attribute with bhfgq.
16159 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16161 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
16163 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16165 * config/s390/s390-builtin-types.def: Add flag to indicate the
16166 options under which the function type is needed.
16167 * config/s390/s390-builtins.def: Add flag to indicate the options
16168 under which the builtin is enabled.
16169 * config/s390/s390-builtins.h: Add flags parameter to macro
16171 (bflags_for_builtin): New function.
16172 (flags_for_builtin): Renamed to ...
16173 (opflags_for_builtin): ... this.
16174 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
16175 flags_for_builtin to bflags_for_builtin and
16176 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
16177 * config/s390/s390.c: Add initialization of bflags_builtin and
16178 opflags_builtin arrays.
16179 Remove code for flags_builtin.
16180 (s390_init_builtins): Only create builtin function types if one of
16181 their flags is active.
16182 Only create builtins if all of their flags are active.
16183 (s390_expand_builtin): Rename flags_for_builtin to
16184 opflags_for_builtin.
16186 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16188 * config/s390/vecintrin.h: Remove internal builtins.
16190 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16192 * config/s390/s390.c (s390_secondary_reload): Fix check for
16193 GENERAL_REGS register class.
16195 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16197 * config/s390/s390.c (s390_support_vector_misalignment): Call
16198 default implementation for !TARGET_VX.
16200 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16202 * config/s390/s390.c (s390_legitimate_constant_p): Add
16205 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16207 * config/s390/s390.c (s390_vector_abi): New variable definition.
16208 (s390_check_type_for_vector_abi): New function.
16209 (TARGET_ASM_FILE_END): New macro definition.
16210 (s390_asm_file_end): New function.
16211 (s390_function_arg): Call s390_check_type_for_vector_abi.
16212 (s390_gimplify_va_arg): Likewise.
16213 * configure: Regenerate.
16214 * configure.ac: Check for .gnu_attribute Binutils feature.
16216 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
16219 * config/bfin/bfin.c (hwloop_optimize): Initialize
16220 JUMP_LABEL for newly created jump.
16222 2015-06-23 Tristan Gingold <gingold@adacore.com>
16224 * collect-utils.c (collect_wait): Unlink the response file here
16226 (do_wait): ...here.
16227 (utils_cleanup): ...and here.
16229 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
16231 * df-scan.c: Don't include target-def.h.
16232 * targhooks.c: Likewise.
16233 * config/arm/arm-c.c: Likewise.
16234 * config/i386/i386-c.c: Likewise.
16235 * config/nds32/nds32-cost.c: Likewise.
16236 * config/nds32/nds32-fp-as-gp.c: Likewise.
16237 * config/nds32/nds32-intrinsic.c: Likewise.
16238 * config/nds32/nds32-isr.c: Likewise.
16239 * config/nds32/nds32-md-auxiliary.c: Likewise.
16240 * config/nds32/nds32-memory-manipulation.c: Likewise.
16241 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16242 * config/nds32/nds32-predicates.c: Likewise.
16244 2015-06-23 Richard Biener <rguenther@suse.de>
16246 PR tree-optimization/66636
16247 * tree-vect-stmts.c (vectorizable_store): Properly compute the
16248 def type for further defs for strided stores.
16250 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
16252 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
16253 conditional selects.
16254 (setcc_int<mode>, setcc_float<mode>): Reformat.
16256 2015-06-23 Marek Polacek <polacek@redhat.com>
16258 * match.pd ((x + y) - (x | y) -> x & y,
16259 (x + y) - (x & y) -> x | y): New patterns.
16261 2015-06-23 Ludovic Courtès <ludo@gnu.org>
16264 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
16265 '-dynamic-linker' within %{!shared: ...}.
16267 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
16270 * config/i386/predicates.md (addsub_vm_operator): New predicate.
16271 (addsub_vs_operator): Ditto.
16272 (addsub_vs_parallel): Ditto.
16273 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
16274 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
16275 Put minus RTX before plus and adjust vec_merge selector.
16276 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
16277 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
16278 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
16279 (addsub vec_merge splitters): New combiner splitters.
16280 (addsub vec_select/vec_concat splitters): Ditto.
16282 2015-06-23 Bin Cheng <bin.cheng@arm.com>
16284 PR tree-optimization/66449
16285 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
16286 POINTER_PLUS_EXPR for pointers.
16288 2015-06-23 Alan Modra <amodra@gmail.com>
16290 * rtlanal.c (commutative_operand_precedence): Correct comments.
16291 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
16292 declaration. Return an int. Distinguish REG,REG return from
16294 (struct simplify_plus_minus_op_data): Make local to function.
16295 (simplify_plus_minus): Don't set canonicalized if merely sorting
16296 registers. Avoid packing ops if nothing changes. White space fixes.
16298 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
16300 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
16301 -fdump-ada-spec is passed but not if -fsyntax-only is.
16303 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
16306 * lra-lives.c (process_bb_lives): Check insn copying the same
16307 reload pseudo and don't create a copy for it.
16309 2015-06-22 Tom de Vries <tom@codesourcery.com>
16311 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
16314 2015-06-22 Tom de Vries <tom@codesourcery.com>
16316 * builtins.def (DEF_GOMP_BUILTIN): Test
16317 'flag_tree_parallelize_loops > 1' instead of
16318 'flag_tree_parallelize_loops'. Test flag_cilkplus.
16320 2015-06-22 Tom de Vries <tom@codesourcery.com>
16322 * dominance.c (calculate_dominance_info): Verify dominators if
16325 2015-06-22 Marek Polacek <polacek@redhat.com>
16327 * match.pd ((x ^ y) ^ (x | y) -> x & y,
16328 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
16329 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
16330 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
16332 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
16335 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
16336 cost of embedded comparison.
16338 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16341 * config/rs6000/predicates.md (altivec_register_operand): Permit
16342 virtual stack registers.
16343 (vsx_register_operand): Likewise.
16344 (vfloat_operand): Likewise.
16345 (vint_operand): Likewise.
16346 (vlogical_operand): Likewise.
16348 2015-06-22 Richard Biener <rguenther@suse.de>
16350 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
16351 and single_scalar_iteration_cost members.
16352 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
16353 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
16354 (vect_get_single_scalar_iteration_cost): Remove.
16355 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
16356 Use LOOP_VINFO_SCALAR_ITERATION_COST.
16357 * tree-vect-loop.c (destroy_loop_vec_info): Free
16359 (vect_get_single_scalar_iteration_cost): Compute result into
16360 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
16361 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
16362 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
16363 (vect_estimate_min_profitable_iters): Use them.
16365 2015-06-22 Christian Bruel <christian.bruel@st.com>
16368 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
16369 (TARGET_INSERT_ATTRIBUTES): Define.
16370 (thumb_flipper): New var.
16371 * config/arm/arm.opt (-mflip-thumb): New switch.
16373 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
16374 Martin Liska <mliska@suse.cz>
16377 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
16378 construction of arg_types.
16379 (sem_function::sem_function): Likewise.
16380 (sem_function::~sem_function): Remove destruction of arg_types.
16381 (sem_function::compatible_parm_types_p): New function.
16382 (sem_function::equals_wpa): Reorg matching of return values
16383 and parameter types.
16384 (sem_function::equals_private): Reorg mathcing of argument types.
16385 (sem_function::parse_tree_args): Remove.
16386 * ipa-icf.h (init_wpa): Do not call it.
16387 (parse_tree_args): Remove.
16388 (compatible_parm_types_p): Declare.
16389 (result_type): Remove.
16390 (arg_types): Remove.
16392 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
16395 * ipa-polymorphic-call.c
16396 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
16397 initializing alias oracle; fix formating; set base_alias_set if it
16400 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
16402 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
16403 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
16404 (find_inc): Likewise.
16405 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
16407 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
16408 * df-scan.c (df_swap_refs): Remove.
16409 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
16410 * dominance.c (link_roots): Use std::swap instead of manually swapping.
16411 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
16412 * fold-const.c (fold_relational_const): Likewise.
16413 * genattrtab.c (simplify_test_exp): Likewise.
16414 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
16415 gimple_simplify): Likewise.
16416 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
16417 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
16418 * ipa-devirt.c (add_type_duplicate): Likewise.
16419 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
16420 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
16421 * lra.c (lra_create_copy): Likewise.
16422 * lto-streamer-out.c (DFS::DFS): Likewise.
16423 * modulo-sched.c (get_sched_window): Likewise.
16424 * omega.c (omega_pretty_print_problem): Likewise.
16425 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
16426 * reload1.c (reloads_unique_chain_p): Likewise.
16427 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
16428 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
16430 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
16432 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
16433 predicate_mem_writes): Likewise.
16434 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
16435 * tree-predcom.c (combine_chains): Likewise.
16436 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
16437 refs_may_alias_p_1): Likewise.
16438 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
16439 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
16440 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
16441 number_of_iterations_cond): Likewise.
16442 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
16443 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
16444 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
16445 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
16446 * tree-vrp.c (extract_range_from_binary_expr_1,
16447 extract_range_from_unary_expr_1): Likewise.
16449 2015-06-20 Marek Polacek <polacek@redhat.com>
16451 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
16453 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
16456 * config/sh/sh.c (prepare_move_operands): Replace subreg
16457 index term with R0 for base and index addressing.
16459 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
16461 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
16463 (movsf_aarch64): Change condition from register_operand to
16464 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
16465 load1. Change type for alternative 7 to store1.
16466 (movdf_aarch64): Likewise.
16468 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
16470 * config/vax/vax.md: Adjust sign/zero extend patterns to
16471 handle SUBREGs in operands[1].
16473 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16475 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
16476 of manually swapping.
16477 (expand_vec_perm_interleave2): Likewise.
16479 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
16481 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
16482 reuse bounds created for abnormal ssa names.
16484 2015-06-19 Jakub Jelinek <jakub@redhat.com>
16486 * config/nvptx/nvptx.md (allocate_stack): Rename to...
16487 (allocate_stack_<mode>): ... this, and add :P on both
16488 match_operand and unspec.
16489 (allocate_stack): New expander.
16491 2015-06-19 Christian Bruel <christian.bruel@st.com>
16495 * config/arm/arm.c (arm_set_current_function): Handle
16496 explicit default options.
16498 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
16500 * config/i386/i386.md (*movsicc_noc_zext): New insn.
16501 (zero-extended cmove with mem peephole2): New pattern.
16502 (cmove with mem peephole2): Merge patterns.
16504 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
16506 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
16508 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
16510 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
16511 * config/mips/mips.md (*madd4<mode>): Ditto.
16512 (*nmadd3<mode>) Ditto.
16513 (*nmadd4<mode>_fastmath): Ditto.
16514 (*nmadd3<mode>_fastmath): Ditto.
16515 (*nmsub4<mode>): Ditto.
16516 (*nmsub3<mode>): Ditto.
16517 (*nmsub4<mode>_fastmath): Ditto.
16518 (*nmsub3<mode>_fastmath): Ditto.
16520 2015-06-18 Michael Matz <matz@suse.de>
16522 PR middle-end/66253
16523 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
16524 grouped strided stores.
16525 (vectorizable_load): Don't use the DR from first_stmt in
16526 the non-SLP grouped strided case.
16528 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
16531 * function.c (assign_bounds): Add arguments assign_regs,
16532 assign_special, assign_bt.
16533 (assign_parms): For vararg functions handle bounds in BT
16534 and special slots after incoming vararg bounds.
16536 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
16538 PR middle-end/66568
16539 * cfgexpand.c (expand_return): Handle missing bounds.
16540 (expand_gimple_stmt_1): Likewise.
16541 * tree-chkp.c (chkp_expand_zero_bounds): New.
16542 * tree-chkp.h (chkp_expand_zero_bounds): New.
16544 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
16546 PR middle-end/66567
16547 * ipa-chkp.c (chkp_maybe_create_clone): Require
16548 functions to be instrumentable.
16549 * tree-chkp.c (chkp_replace_function_pointer): Use
16550 chkp_instrumentable_p instead of attribute check.
16552 2015-06-18 Richard Biener <rguenther@suse.de>
16554 PR tree-optimization/66510
16555 * tree-vect-stmts.c (vectorizable_load): Properly compute the
16556 number of vector loads for SLP permuted loads.
16557 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
16558 check the stride for loop vectorization.
16559 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
16560 vectorization factor.
16561 (vect_analyze_group_access): If the group size is not a power
16562 of two require a epilogue loop.
16563 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
16564 compute and optimizing and alias test pruning after final
16565 vectorization factor computation.
16566 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
16568 (vect_transform_slp_perm_load): Properly compute the original
16569 number of vector load stmts.
16571 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
16573 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
16574 "unlikely character , in @var" warning.
16576 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
16578 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
16579 (ix86_function_arg_advance): Ditto.
16580 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
16582 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16584 * function.h (struct rtl_data): Remove struct and accessor macros.
16585 * emit-rtl.h (struct rtl_data): Relocate to here.
16586 * Makefile.in (GTFILES): Add emit-rtl.h.
16587 * df-core.c: Include emit-rtl.h.
16588 * genattrtab.c: Likewise.
16589 * genconditions.c: Likewise.
16590 * genpreds.c: Likewise.
16591 * genrecog.c: Likewise.
16592 * regcprop.c: Likewise.
16593 * resource.c: Likewise.
16594 * sched-rgn.c: Likewise.
16595 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16596 * config/i386/winnt.c: Likewise.
16598 2015-06-17 Jakub Jelinek <jakub@redhat.com>
16600 PR middle-end/66429
16601 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
16602 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
16603 and has_force_vectorize_loops flags from cfun into
16605 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
16606 if simduid is non-NULL.
16607 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
16608 * passes.def (pass_simduid_cleanup): Add new pass after loop
16610 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
16611 indirection from htab argument's type.
16612 (shrink_simd_arrays): New function.
16613 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
16614 Don't call adjust_simduid_builtins if there are no loops.
16615 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
16616 (pass_simduid_cleanup::execute): New method.
16617 (make_pass_simduid_cleanup): New function.
16619 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
16621 * tree-core.h (tree_target_option): Make opts field a pointer to a
16622 cl_target_option instead of an instance of the struct.
16623 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
16625 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
16626 TARGET_OPTION_NODE.
16627 (copy_node_stat): Allocate and copy struct cl_target_option.
16629 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16631 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
16632 Remove conditional exposure of prototypes.
16633 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
16634 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
16635 definitions in tree.h with functions.
16636 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
16638 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
16640 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
16642 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
16643 (*cmp<mode>_signed): ... this.
16644 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
16645 (*cmp<mode>_unsigned): ... this. Remove %b.
16647 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
16649 * coretypes.h: Include input.h and as-a.h.
16650 * rtl.h: Include input.h and as-a.h for generator files.
16651 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
16652 * vec.c: Don't include diagnostic-core.h.
16653 * alias.c: Do not include input.h, line-map.h or is-a.h.
16654 * asan.c: Likewise.
16655 * attribs.c: Likewise.
16656 * auto-inc-dec.c: Likewise.
16657 * auto-profile.c: Likewise.
16658 * bb-reorder.c: Likewise.
16659 * bt-load.c: Likewise.
16660 * builtins.c: Likewise.
16661 * caller-save.c: Likewise.
16662 * calls.c: Likewise.
16663 * ccmp.c: Likewise.
16665 * cfganal.c: Likewise.
16666 * cfgbuild.c: Likewise.
16667 * cfgcleanup.c: Likewise.
16668 * cfgexpand.c: Likewise.
16669 * cfghooks.c: Likewise.
16670 * cfgloop.c: Likewise.
16671 * cfgloop.h: Likewise.
16672 * cfgloopanal.c: Likewise.
16673 * cfgloopmanip.c: Likewise.
16674 * cfgrtl.c: Likewise.
16675 * cgraph.c: Likewise.
16676 * cgraphbuild.c: Likewise.
16677 * cgraphclones.c: Likewise.
16678 * cgraphunit.c: Likewise.
16679 * cilk-common.c: Likewise.
16680 * combine-stack-adj.c: Likewise.
16681 * combine.c: Likewise.
16682 * compare-elim.c: Likewise.
16683 * convert.c: Likewise.
16684 * coverage.c: Likewise.
16685 * cppbuiltin.c: Likewise.
16686 * cprop.c: Likewise.
16688 * cselib.c: Likewise.
16689 * data-streamer-in.c: Likewise.
16690 * data-streamer-out.c: Likewise.
16691 * data-streamer.c: Likewise.
16692 * dbxout.c: Likewise.
16695 * debug.c: Likewise.
16696 * df-core.c: Likewise.
16697 * df-problems.c: Likewise.
16698 * df-scan.c: Likewise.
16701 * diagnostic-core.h: Likewise.
16702 * diagnostic.c: Likewise.
16703 * dojump.c: Likewise.
16704 * dominance.c: Likewise.
16705 * domwalk.c: Likewise.
16706 * double-int.c: Likewise.
16708 * dumpfile.c: Likewise.
16709 * dumpfile.h: Likewise.
16710 * dwarf2asm.c: Likewise.
16711 * dwarf2cfi.c: Likewise.
16712 * dwarf2out.c: Likewise.
16713 * emit-rtl.c: Likewise.
16714 * et-forest.c: Likewise.
16715 * except.c: Likewise.
16716 * explow.c: Likewise.
16717 * expmed.c: Likewise.
16718 * expr.c: Likewise.
16719 * final.c: Likewise.
16720 * fixed-value.c: Likewise.
16721 * fold-const.c: Likewise.
16722 * function.c: Likewise.
16723 * fwprop.c: Likewise.
16724 * gcc-plugin.h: Likewise.
16725 * gcse.c: Likewise.
16726 * generic-match-head.c: Likewise.
16727 * ggc-page.c: Likewise.
16728 * gimple-builder.c: Likewise.
16729 * gimple-expr.c: Likewise.
16730 * gimple-fold.c: Likewise.
16731 * gimple-iterator.c: Likewise.
16732 * gimple-low.c: Likewise.
16733 * gimple-match-head.c: Likewise.
16734 * gimple-pretty-print.c: Likewise.
16735 * gimple-ssa-isolate-paths.c: Likewise.
16736 * gimple-ssa-strength-reduction.c: Likewise.
16737 * gimple-streamer-in.c: Likewise.
16738 * gimple-streamer-out.c: Likewise.
16739 * gimple-streamer.h: Likewise.
16740 * gimple-walk.c: Likewise.
16741 * gimple.c: Likewise.
16742 * gimplify-me.c: Likewise.
16743 * gimplify.c: Likewise.
16744 * godump.c: Likewise.
16745 * graph.c: Likewise.
16746 * graphite-blocking.c: Likewise.
16747 * graphite-dependences.c: Likewise.
16748 * graphite-interchange.c: Likewise.
16749 * graphite-isl-ast-to-gimple.c: Likewise.
16750 * graphite-optimize-isl.c: Likewise.
16751 * graphite-poly.c: Likewise.
16752 * graphite-scop-detection.c: Likewise.
16753 * graphite-sese-to-poly.c: Likewise.
16754 * graphite.c: Likewise.
16755 * haifa-sched.c: Likewise.
16756 * hw-doloop.c: Likewise.
16757 * ifcvt.c: Likewise.
16758 * init-regs.c: Likewise.
16759 * input.c: Likewise.
16760 * internal-fn.c: Likewise.
16761 * ipa-chkp.c: Likewise.
16762 * ipa-comdats.c: Likewise.
16763 * ipa-cp.c: Likewise.
16764 * ipa-devirt.c: Likewise.
16765 * ipa-icf-gimple.c: Likewise.
16766 * ipa-icf.c: Likewise.
16767 * ipa-inline-analysis.c: Likewise.
16768 * ipa-inline-transform.c: Likewise.
16769 * ipa-inline.c: Likewise.
16770 * ipa-polymorphic-call.c: Likewise.
16771 * ipa-profile.c: Likewise.
16772 * ipa-prop.c: Likewise.
16773 * ipa-pure-const.c: Likewise.
16774 * ipa-ref.c: Likewise.
16775 * ipa-reference.c: Likewise.
16776 * ipa-split.c: Likewise.
16777 * ipa-utils.c: Likewise.
16778 * ipa-visibility.c: Likewise.
16780 * ira-build.c: Likewise.
16781 * ira-color.c: Likewise.
16782 * ira-conflicts.c: Likewise.
16783 * ira-costs.c: Likewise.
16784 * ira-emit.c: Likewise.
16785 * ira-lives.c: Likewise.
16787 * jump.c: Likewise.
16788 * langhooks.c: Likewise.
16790 * loop-doloop.c: Likewise.
16791 * loop-init.c: Likewise.
16792 * loop-invariant.c: Likewise.
16793 * loop-iv.c: Likewise.
16794 * loop-unroll.c: Likewise.
16795 * lower-subreg.c: Likewise.
16796 * lra-assigns.c: Likewise.
16797 * lra-coalesce.c: Likewise.
16798 * lra-constraints.c: Likewise.
16799 * lra-eliminations.c: Likewise.
16800 * lra-lives.c: Likewise.
16801 * lra-remat.c: Likewise.
16802 * lra-spills.c: Likewise.
16804 * lto-cgraph.c: Likewise.
16805 * lto-compress.c: Likewise.
16806 * lto-opts.c: Likewise.
16807 * lto-section-in.c: Likewise.
16808 * lto-section-out.c: Likewise.
16809 * lto-streamer-in.c: Likewise.
16810 * lto-streamer-out.c: Likewise.
16811 * lto-streamer.c: Likewise.
16813 * mode-switching.c: Likewise.
16814 * modulo-sched.c: Likewise.
16815 * omega.c: Likewise.
16816 * omp-low.c: Likewise.
16817 * optabs.c: Likewise.
16818 * opts-global.c: Likewise.
16819 * opts.h: Likewise.
16820 * passes.c: Likewise.
16821 * plugin.c: Likewise.
16822 * postreload-gcse.c: Likewise.
16823 * postreload.c: Likewise.
16824 * predict.c: Likewise.
16825 * pretty-print.h: Likewise.
16826 * print-rtl.c: Likewise.
16827 * print-tree.c: Likewise.
16828 * profile.c: Likewise.
16829 * real.c: Likewise.
16830 * realmpfr.c: Likewise.
16831 * recog.c: Likewise.
16833 * reg-stack.c: Likewise.
16834 * regcprop.c: Likewise.
16835 * reginfo.c: Likewise.
16836 * regrename.c: Likewise.
16837 * regstat.c: Likewise.
16838 * reload.c: Likewise.
16839 * reload1.c: Likewise.
16840 * reorg.c: Likewise.
16841 * resource.c: Likewise.
16842 * rtl-chkp.c: Likewise.
16843 * rtl-error.c: Likewise.
16844 * rtlanal.c: Likewise.
16845 * rtlhooks.c: Likewise.
16846 * sanopt.c: Likewise.
16847 * sched-deps.c: Likewise.
16848 * sched-ebb.c: Likewise.
16849 * sched-rgn.c: Likewise.
16850 * sched-vis.c: Likewise.
16851 * sdbout.c: Likewise.
16852 * sel-sched-dump.c: Likewise.
16853 * sel-sched-ir.c: Likewise.
16854 * sel-sched.c: Likewise.
16855 * sese.c: Likewise.
16856 * shrink-wrap.c: Likewise.
16857 * simplify-rtx.c: Likewise.
16858 * stack-ptr-mod.c: Likewise.
16859 * statistics.c: Likewise.
16860 * stmt.c: Likewise.
16861 * stor-layout.c: Likewise.
16862 * store-motion.c: Likewise.
16863 * streamer-hooks.c: Likewise.
16864 * stringpool.c: Likewise.
16865 * symtab.c: Likewise.
16866 * target-globals.c: Likewise.
16867 * targhooks.c: Likewise.
16868 * toplev.c: Likewise.
16869 * tracer.c: Likewise.
16870 * trans-mem.c: Likewise.
16871 * tree-affine.c: Likewise.
16872 * tree-browser.c: Likewise.
16873 * tree-call-cdce.c: Likewise.
16874 * tree-cfg.c: Likewise.
16875 * tree-cfgcleanup.c: Likewise.
16876 * tree-chkp-opt.c: Likewise.
16877 * tree-chkp.c: Likewise.
16878 * tree-chrec.c: Likewise.
16879 * tree-complex.c: Likewise.
16880 * tree-data-ref.c: Likewise.
16881 * tree-dfa.c: Likewise.
16882 * tree-diagnostic.c: Likewise.
16883 * tree-dump.c: Likewise.
16884 * tree-eh.c: Likewise.
16885 * tree-emutls.c: Likewise.
16886 * tree-if-conv.c: Likewise.
16887 * tree-inline.c: Likewise.
16888 * tree-into-ssa.c: Likewise.
16889 * tree-iterator.c: Likewise.
16890 * tree-loop-distribution.c: Likewise.
16891 * tree-nested.c: Likewise.
16892 * tree-nrv.c: Likewise.
16893 * tree-object-size.c: Likewise.
16894 * tree-outof-ssa.c: Likewise.
16895 * tree-parloops.c: Likewise.
16896 * tree-phinodes.c: Likewise.
16897 * tree-predcom.c: Likewise.
16898 * tree-pretty-print.c: Likewise.
16899 * tree-profile.c: Likewise.
16900 * tree-scalar-evolution.c: Likewise.
16901 * tree-sra.c: Likewise.
16902 * tree-ssa-address.c: Likewise.
16903 * tree-ssa-alias.c: Likewise.
16904 * tree-ssa-ccp.c: Likewise.
16905 * tree-ssa-coalesce.c: Likewise.
16906 * tree-ssa-copy.c: Likewise.
16907 * tree-ssa-copyrename.c: Likewise.
16908 * tree-ssa-dce.c: Likewise.
16909 * tree-ssa-dom.c: Likewise.
16910 * tree-ssa-dse.c: Likewise.
16911 * tree-ssa-forwprop.c: Likewise.
16912 * tree-ssa-ifcombine.c: Likewise.
16913 * tree-ssa-live.c: Likewise.
16914 * tree-ssa-loop-ch.c: Likewise.
16915 * tree-ssa-loop-im.c: Likewise.
16916 * tree-ssa-loop-ivcanon.c: Likewise.
16917 * tree-ssa-loop-ivopts.c: Likewise.
16918 * tree-ssa-loop-manip.c: Likewise.
16919 * tree-ssa-loop-niter.c: Likewise.
16920 * tree-ssa-loop-prefetch.c: Likewise.
16921 * tree-ssa-loop-unswitch.c: Likewise.
16922 * tree-ssa-loop.c: Likewise.
16923 * tree-ssa-math-opts.c: Likewise.
16924 * tree-ssa-operands.c: Likewise.
16925 * tree-ssa-phiopt.c: Likewise.
16926 * tree-ssa-phiprop.c: Likewise.
16927 * tree-ssa-pre.c: Likewise.
16928 * tree-ssa-propagate.c: Likewise.
16929 * tree-ssa-reassoc.c: Likewise.
16930 * tree-ssa-sccvn.c: Likewise.
16931 * tree-ssa-scopedtables.c: Likewise.
16932 * tree-ssa-sink.c: Likewise.
16933 * tree-ssa-strlen.c: Likewise.
16934 * tree-ssa-structalias.c: Likewise.
16935 * tree-ssa-tail-merge.c: Likewise.
16936 * tree-ssa-ter.c: Likewise.
16937 * tree-ssa-threadedge.c: Likewise.
16938 * tree-ssa-threadupdate.c: Likewise.
16939 * tree-ssa-uncprop.c: Likewise.
16940 * tree-ssa-uninit.c: Likewise.
16941 * tree-ssa.c: Likewise.
16942 * tree-ssanames.c: Likewise.
16943 * tree-stdarg.c: Likewise.
16944 * tree-streamer-in.c: Likewise.
16945 * tree-streamer-out.c: Likewise.
16946 * tree-streamer.c: Likewise.
16947 * tree-switch-conversion.c: Likewise.
16948 * tree-tailcall.c: Likewise.
16949 * tree-vect-data-refs.c: Likewise.
16950 * tree-vect-generic.c: Likewise.
16951 * tree-vect-loop-manip.c: Likewise.
16952 * tree-vect-loop.c: Likewise.
16953 * tree-vect-patterns.c: Likewise.
16954 * tree-vect-slp.c: Likewise.
16955 * tree-vect-stmts.c: Likewise.
16956 * tree-vectorizer.c: Likewise.
16957 * tree-vrp.c: Likewise.
16958 * tree.c: Likewise.
16959 * tsan.c: Likewise.
16960 * ubsan.c: Likewise.
16961 * valtrack.c: Likewise.
16962 * value-prof.c: Likewise.
16963 * var-tracking.c: Likewise.
16964 * varasm.c: Likewise.
16965 * varpool.c: Likewise.
16966 * vmsdbgout.c: Likewise.
16967 * vtable-verify.c: Likewise.
16969 * wide-int.cc: Likewise.
16970 * xcoffout.c: Likewise.
16971 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
16972 * common/common-targhooks.c: Likewise.
16973 * config/aarch64/aarch64-builtins.c: Likewise.
16974 * config/aarch64/aarch64.c: Likewise.
16975 * config/alpha/alpha.c: Likewise.
16976 * config/arc/arc.c: Likewise.
16977 * config/arm/aarch-common.c: Likewise.
16978 * config/arm/arm-builtins.c: Likewise.
16979 * config/arm/arm-c.c: Likewise.
16980 * config/arm/arm.c: Likewise.
16981 * config/avr/avr-c.c: Likewise.
16982 * config/avr/avr-log.c: Likewise.
16983 * config/avr/avr.c: Likewise.
16984 * config/bfin/bfin.c: Likewise.
16985 * config/c6x/c6x.c: Likewise.
16986 * config/cr16/cr16.c: Likewise.
16987 * config/cris/cris.c: Likewise.
16988 * config/darwin-c.c: Likewise.
16989 * config/darwin.c: Likewise.
16990 * config/default-c.c: Likewise.
16991 * config/epiphany/epiphany.c: Likewise.
16992 * config/epiphany/mode-switch-use.c: Likewise.
16993 * config/epiphany/resolve-sw-modes.c: Likewise.
16994 * config/fr30/fr30.c: Likewise.
16995 * config/frv/frv.c: Likewise.
16996 * config/ft32/ft32.c: Likewise.
16997 * config/glibc-c.c: Likewise.
16998 * config/h8300/h8300.c: Likewise.
16999 * config/i386/i386-c.c: Likewise.
17000 * config/i386/i386.c: Likewise.
17001 * config/i386/msformat-c.c: Likewise.
17002 * config/i386/winnt-cxx.c: Likewise.
17003 * config/i386/winnt-stubs.c: Likewise.
17004 * config/i386/winnt.c: Likewise.
17005 * config/ia64/ia64-c.c: Likewise.
17006 * config/ia64/ia64.c: Likewise.
17007 * config/iq2000/iq2000.c: Likewise.
17008 * config/lm32/lm32.c: Likewise.
17009 * config/m32c/m32c-pragma.c: Likewise.
17010 * config/m32c/m32c.c: Likewise.
17011 * config/m32r/m32r.c: Likewise.
17012 * config/m68k/m68k.c: Likewise.
17013 * config/mcore/mcore.c: Likewise.
17014 * config/mep/mep-pragma.c: Likewise.
17015 * config/mep/mep.c: Likewise.
17016 * config/microblaze/microblaze-c.c: Likewise.
17017 * config/microblaze/microblaze.c: Likewise.
17018 * config/mips/mips.c: Likewise.
17019 * config/mmix/mmix.c: Likewise.
17020 * config/mn10300/mn10300.c: Likewise.
17021 * config/moxie/moxie.c: Likewise.
17022 * config/msp430/msp430-c.c: Likewise.
17023 * config/msp430/msp430.c: Likewise.
17024 * config/nds32/nds32-cost.c: Likewise.
17025 * config/nds32/nds32-fp-as-gp.c: Likewise.
17026 * config/nds32/nds32-intrinsic.c: Likewise.
17027 * config/nds32/nds32-isr.c: Likewise.
17028 * config/nds32/nds32-md-auxiliary.c: Likewise.
17029 * config/nds32/nds32-memory-manipulation.c: Likewise.
17030 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17031 * config/nds32/nds32-predicates.c: Likewise.
17032 * config/nds32/nds32.c: Likewise.
17033 * config/nios2/nios2.c: Likewise.
17034 * config/nvptx/nvptx.c: Likewise.
17035 * config/pa/pa.c: Likewise.
17036 * config/pdp11/pdp11.c: Likewise.
17037 * config/rl78/rl78-c.c: Likewise.
17038 * config/rl78/rl78.c: Likewise.
17039 * config/rs6000/rs6000-c.c: Likewise.
17040 * config/rs6000/rs6000.c: Likewise.
17041 * config/rx/rx.c: Likewise.
17042 * config/s390/s390-c.c: Likewise.
17043 * config/s390/s390.c: Likewise.
17044 * config/sh/sh-c.c: Likewise.
17045 * config/sh/sh-mem.cc: Likewise.
17046 * config/sh/sh.c: Likewise.
17047 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17048 * config/sh/sh_treg_combine.cc: Likewise.
17049 * config/sol2-c.c: Likewise.
17050 * config/sol2-cxx.c: Likewise.
17051 * config/sol2-stubs.c: Likewise.
17052 * config/sol2.c: Likewise.
17053 * config/sparc/sparc-c.c: Likewise.
17054 * config/sparc/sparc.c: Likewise.
17055 * config/spu/spu-c.c: Likewise.
17056 * config/spu/spu.c: Likewise.
17057 * config/stormy16/stormy16.c: Likewise.
17058 * config/tilegx/mul-tables.c: Likewise.
17059 * config/tilegx/tilegx-c.c: Likewise.
17060 * config/tilegx/tilegx.c: Likewise.
17061 * config/tilepro/mul-tables.c: Likewise.
17062 * config/tilepro/tilepro-c.c: Likewise.
17063 * config/tilepro/tilepro.c: Likewise.
17064 * config/v850/v850-c.c: Likewise.
17065 * config/v850/v850.c: Likewise.
17066 * config/vax/vax.c: Likewise.
17067 * config/visium/visium.c: Likewise.
17068 * config/vms/vms-c.c: Likewise.
17069 * config/vms/vms.c: Likewise.
17070 * config/vxworks.c: Likewise.
17071 * config/winnt-c.c: Likewise.
17072 * config/xtensa/xtensa.c: Likewise.
17074 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
17076 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
17078 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
17080 2015-06-17 Richard Biener <rguenther@suse.de>
17082 PR tree-optimization/66251
17083 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
17084 stmts for SLP strided stores.
17087 2015-05-22 Richard Biener <rguenther@suse.de>
17089 PR tree-optimization/66251
17090 * tree-vect-stmts.c (vectorizable_conversion): Properly
17091 set STMT_VINFO_VEC_STMT even for the SLP case.
17093 2015-05-26 Michael Matz <matz@suse.de>
17095 PR middle-end/66251
17096 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
17097 STMT_VINFO_VEC_STMT, also with SLP.
17099 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
17102 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
17103 (*avx_addsubv4df3_1s): Ditto.
17104 (*sse3_addsubv2df3_1): Ditto.
17105 (*sse3_addsubv2df3_1s): Ditto.
17106 (*avx_addsubv8sf3_1): Ditto.
17107 (*avx_addsubv8sf3_1s): Ditto.
17108 (*sse3_addsubv4sf3_1): Ditto.
17109 (*sse3_addsubv4sf3_1s): Ditto.
17111 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
17113 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
17114 (SYSROOT_SUFFIX_SPEC): Update.
17115 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
17116 (STARTFILE_PREFIX_SPEC): Update.
17117 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
17118 (MULTILIB_REQUIRED): New.
17119 (MULTILIB_OSDIRNAMES): New.
17120 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
17121 (MULTILIB_REQUIRED): New.
17122 (MULTILIB_OSDIRNAMES): New.
17124 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
17126 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
17127 * config/aarch64/aarch64-options-extensions.def: Update "fP",
17128 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
17129 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
17130 (AARCH64_FL_PAN): New.
17131 (AARCH64_FL_LOR): New.
17132 (AARCH64_FL_RDMA): New.
17133 (AARCH64_FL_FOR_ARCH8_1): New.
17134 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
17135 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
17137 2015-06-16 Martin Liska <mliska@suse.cz>
17139 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
17140 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
17143 2015-06-16 Richard Biener <rguenther@suse.de>
17145 * tree-vect-stmts.c (vectorizable_store): Adjust.
17146 (vectorizable_load): Likewise.
17147 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
17149 (vect_create_data_ref_ptr): Likewise.
17150 (bump_vector_ptr): Adjust.
17152 2015-06-16 Richard Biener <rguenther@suse.de>
17154 * tree-vect-stmts.c (vectorizable_load): Properly start loads
17155 with the first element if this is grouped loads.
17157 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
17159 * config/arm/arm-protos.h (struct tune_params): Rename
17160 log_op_non_sc to log_op_non_short_circuit, and rename enum
17161 values to expand SC to SHORT_CIRCUIT.
17162 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
17163 to LOG_OP_NON_SHORT_CIRCUIT.
17164 (arm_fastmul_tune):Likewise
17165 (arm_strongarm_tune): Likewise.
17166 (arm_xscale_tune): Likewise.
17167 (arm_9e_tune): Likewise.
17168 (arm_marvell_pj4_tune): Likewise.
17169 (arm_v6t2_tune): Likewise.
17170 (arm_cortex_tune): Likewise.
17171 (arm_cortex_a8_tune): Likewise.
17172 (arm_cortex_a7_tune): Likewise.
17173 (arm_cortex_a15_tune): Likewise.
17174 (arm_cortex_a53_tune): Likewise.
17175 (arm_cortex_a57_tune): Likewise.
17176 (arm_xgene1_tune): Likewise.
17177 (arm_cortex_a5_tune): Likewise.
17178 (arm_cortex_a9_tune): Likewise.
17179 (arm_cortex_a12_tune): Likewise.
17180 (arm_v7m_tune): Likewise.
17181 (arm_cortex_m7_tune): Likewise.
17182 (arm_v6m_tune): Likewise.
17183 (arm_fa726te_tune): Likewise.
17185 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
17187 * altivec.md: Delete UNSPEC_VMLADDUHM.
17188 (mulv4si3_p8): New pattern.
17189 (mulv4si3): Use it for POWER8.
17190 (mulv8hi3): Use vmladduhm with zero addend.
17191 (altivec_vmladduhm): Descriptive RTL.
17193 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
17195 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
17196 to use neon_move instead of mov_imm.
17197 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
17198 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
17200 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
17201 aarch64_float_const_zero_rtx_p check before TFmode check.
17202 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
17204 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
17205 code and attributes to match. Change condition from register_operand
17206 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
17207 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
17210 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
17213 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
17214 there is no parent.
17216 2015-06-14 Shiva Chen <shiva0217@gmail.com>
17218 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
17219 HOST_WIDE_INT parameter.
17221 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
17224 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
17225 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
17227 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
17229 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
17231 * rtl.h (classify_insn): Declare.
17232 * emit-rtl.c (classify_insn): Move to...
17233 * rtl.c: ...here and add generator support.
17234 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
17235 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
17236 * genemit.c (gen_emit_seq): New function.
17237 (gen_expand, gen_split): Use it.
17239 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
17241 * tree.c (make_vector_stat): Fix comment to state that the
17242 function returns a VECTOR_CST.
17244 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
17246 * gensupport.h (add_implicit_parallel): Declare.
17247 * genrecog.c (add_implicit_parallel): Move to...
17248 * gensupport.c (add_implicit_parallel): ...here.
17249 (process_one_cond_exec): Use it.
17250 * genemit.c (gen_insn): Likewise.
17252 2015-06-13 Iain Sandoe <iain@codesourcery.com>
17255 * passes.c (rest_of_decl_compilation): Do not register globals for
17256 early debug if they are declared in built-ins.
17258 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
17260 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
17262 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17264 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
17266 (noce_try_cmove_arith): Likewise.
17267 (noce_get_alt_condition): Likewise.
17269 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
17271 * common/config/i386/i386-common.c
17272 (OPTION_MASK_ISA_MWAITX_SET): New.
17273 (ix86_handle_option): Handle mwaitx.
17274 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
17275 (x86_64-*-*): Likewise.
17276 * config/i386/mwaitxintrin.h: New header.
17277 * config/i386/cpuid.h (bit_MWAITX): Define.
17278 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
17280 * config/i386/i386.opt (mwaitx): New.
17281 * config/i386/i386-builtin-types.def
17282 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
17283 * config/i386/i386-c.c: Define __MWAITX__ if needed.
17284 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
17286 (ix86_option_override_internal): Handle new option.
17287 (processor_alias_table): Added PTA_MWAITX.
17288 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
17289 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
17290 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
17291 IX86_BUILTIN_MONITORX built-ins.
17292 * config/i386/i386.h (TARGET_MWAITX): New.
17293 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
17295 (mwaitx): New pattern.
17296 (monitorx_<mode>): New pattern.
17297 * config/i386/x86intrin.h: Include mwaitxintrin.h.
17298 * doc/extend.texi: Document monitorx and mwaitx builtins.
17299 * doc/invoke.texi: Document -mmwaitx option.
17301 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
17303 * emit-rtl.c (need_atomic_barrier_p): Mask model with
17304 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
17306 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
17308 * dbxout.c (xcoff_debug_hooks): Provide a function for
17309 register_main_translation_unit hook.
17311 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
17313 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
17314 variants cases from switch.
17315 (rs6000_post_atomic_barrier): Same.
17316 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
17317 (rs6000_expand_atomic_exchange): Same.
17318 (rs6000_expand_atomic_op): Same.
17319 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
17320 SYNC variants cases from switch.
17321 (atomic_load): Same.
17322 (atomic_store): Same.
17324 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
17326 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
17327 CONST_INT for goto.
17329 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
17332 * dwarf2out.c (check_die): Check for common duplicate attributes.
17333 (add_location_or_const_value_attribute): Do not add duplicate
17335 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
17337 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
17338 (gen_type_die_with_usage): Call check_die.
17339 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
17341 2015-06-11 Jason Merrill <jason@redhat.com>
17343 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
17346 2015-06-11 Marek Polacek <polacek@redhat.com>
17348 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
17350 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
17353 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
17354 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
17355 (*addx_extend_sp32): Fix pasto.
17356 (*subx_extend): Rename into...
17357 (*subx_extend_sp32): ...this.
17358 (*adddi3_extend_sp32): Add earlyclobber.
17359 (*subdi3_insn_sp32): Likewise.
17360 (*subdi3_extend_sp32): Likewise.
17361 (*and_not_di_sp32): Likewise.
17362 (*or_not_di_sp32): Likewise.
17363 (*xor_not_di_sp32): Likewise.
17364 (*negdi2_sp32): Likewise.
17365 (*one_cmpldi2_sp32): Likewise.
17367 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
17369 * debug.h (struct gcc_debug_hooks): Add a
17370 register_main_translation_unit hook.
17371 * debug.c (do_nothing_debug_hooks): Provide a function for this
17373 * dbxout.c (dbx_debug_hooks): Likewise.
17374 * sdbout.c (sdb_debug_hooks): Likewise.
17375 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
17376 * dwarf2out.c (main_translation_unit): New global variable.
17377 (dwarf2out_register_main_translation_unit): New function
17378 implementing the new hook.
17379 (dwarf2_debug_hooks): Assign
17380 dwarf2out_register_main_translation_unit to this new hook.
17381 (dwarf2out_init): Associate any main translation unit to
17384 2015-06-11 Marek Polacek <polacek@redhat.com>
17386 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
17388 2015-06-11 Marek Polacek <polacek@redhat.com>
17390 * match.pd: Use single_use throughout.
17392 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17394 * config/arm/arm.c (arm_option_params_internal): When optimising
17395 for speed set max_insns_skipped when arm_restrict_it.
17397 2015-06-11 Christian Bruel <christian.bruel@st.com>
17400 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
17402 (arm_cpu_builtins): New function.
17403 (arm_pragma_target_parse): Call arm_cpu_builtins.
17404 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
17405 (arm_register_target_pragmas): Likewise.
17406 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
17407 Call arm_register_target_pragmas.
17408 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
17409 (arm_pragma_target_parse): Likewise.
17411 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
17413 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
17414 of the second operand.
17416 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
17419 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
17420 to prepare mask operand for AVX512 modes.
17422 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
17425 * doc/md.texi (Machine Constraints): Document that on the PowerPC
17426 if you use a constraint that targets a VSX register, you must use
17427 %x<n> in the template.
17429 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
17431 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
17432 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
17433 (define_insn "trap"): New definition.
17435 2015-06-10 Richard Biener <rguenther@suse.de>
17437 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
17439 (vect_supported_load_permutation_p): ... here. Handle
17440 supportable permutations in reductions.
17441 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
17442 for vectorizing strided group loads.
17444 2015-06-10 Jakub Jelinek <jakub@redhat.com>
17447 * config/i386/i386.c (ix86_split_long_move): For collisions
17448 involving direct tls segment refs, move the UNSPEC_TP possibly
17449 wrapped in ZERO_EXTEND out of the address for lea, to each of
17452 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17454 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
17455 dmb sy. Adjust tabs.
17457 2015-06-10 Tom de Vries <tom@codesourcery.com>
17459 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
17461 2015-06-10 Martin Liska <mliska@suse.cz>
17464 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
17465 all enum values in mem_alloc_origin.
17466 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
17468 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
17469 * bitmap.c (bitmap_register): Likewise.
17470 (dump_bitmap_statistics): Likewise.
17471 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
17472 (ggc_record_overhead): Likewise.
17473 * hash-map.h: Likewise.
17474 * hash-set.h: Likewise.
17475 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
17476 * hash-table.h: Likewise.
17477 * vec.c (vec_prefix::register_overhead): Likewise.
17478 (vec_prefix::release_overhead): Likewise.
17479 (dump_vec_loc_statistics): Likewise.
17481 2015-06-09 Christian Bruel <christian.bruel@st.com>
17484 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
17485 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
17486 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
17487 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
17488 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
17489 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
17490 (arm_valid_target_attribute_p): Likewise.
17491 (arm_set_current_function, arm_can_inline_p): Likewise.
17492 (arm_valid_target_attribute_rec): Likewise.
17493 (arm_previous_fndecl): New variable.
17494 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17495 (TARGET_CAN_INLINE_P): Define.
17496 (arm_asm_trampoline_template): Emit mode.
17497 (arm_file_start): Don't set unified syntax.
17498 (arm_declare_function_name): Set unified syntax and mode.
17499 (arm_option_override): Init target_option_default_node.
17500 and target_option_current_node.
17501 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
17502 (*call_symbol): Likewise.
17503 * doc/extend.texi: Document ARM/Thumb target attribute.
17504 * doc/invoke.texi: Likewise.
17506 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17509 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17510 PR rtl-optimization/64164
17511 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17512 * tree-ssa-copyrename.c: Removed.
17513 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17514 -ftree-coalesce-vars.
17515 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17516 * common.opt (ftree-copyrename): Ignore.
17517 (ftree-coalesce-inlined-vars): Likewise.
17518 * doc/invoke.texi: Remove the ignored options above.
17519 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17520 * tree-ssa-coalesce.h: ... here.
17521 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17522 headers required by it.
17523 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17524 across variables when flag_tree_coalesce_vars. Check register
17525 use and promoted modes to allow coalescing. Moved to
17526 tree-ssa-coalesce.c.
17527 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17528 with its member functions to tree-ssa-coalesce.c.
17529 (var_map_base_init): Likewise. Renamed to
17530 compute_samebase_partition_bases.
17531 (partition_view_normal): Drop want_bases parameter.
17532 (partition_view_bitmap): Likewise.
17533 * tree-ssa-live.h: Adjust declarations.
17534 * tree-ssa-coalesce.c: Include explow.h.
17535 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17536 default defs at the entry point.
17537 (dump_part_var_map): New.
17538 (compute_optimized_partition_bases): New, called by...
17539 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17540 of compute_samebase_partition_bases. Adjust.
17541 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17542 * cfgexpand.c (leader_merge): New.
17543 (get_rtl_for_parm_ssa_default_def): New.
17544 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17545 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17546 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17547 redundant MEM attr setting.
17548 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17550 (expand_one_stack_var): ... this. New wrapper to check and
17551 skip already expanded SSA partitions.
17552 (record_alignment_for_reg_var): New, factored out of...
17553 (expand_one_var): ... this.
17554 (expand_one_ssa_partition): New.
17555 (adjust_one_expanded_partition_var): New.
17556 (expand_one_register_var): Check and skip already expanded SSA
17558 (expand_used_vars): Don't create DECLs for anonymous SSA
17559 names. Expand all SSA partitions, then adjust all SSA names.
17560 (pass::execute): Replace the loops that set
17561 SA.partition_to_pseudo from partition leaders and cleared
17562 DECL_RTL for multi-location variables, and that which used to
17563 rename vars and set attrs, with one that clears DECL_RTL and
17564 checks that PARMs and RESULTs default_defs match DECL_RTL.
17565 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17566 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17567 * explow.c (promote_ssa_mode): New.
17568 * explow.h (promote_ssa_mode): Declare.
17569 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17570 * function.c: Include cfgexpand.h.
17571 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17572 (use_register_for_parm_decl): Wrapper for the above to
17573 special-case the result_ptr.
17574 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17575 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17576 multiple locations.
17577 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17578 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17579 (assign_parm_setup_block): Prefer SSA-assigned location.
17580 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17581 if stack_parm is NULL.
17582 (assign_parm_setup_stack): Prefer SSA-assigned location.
17583 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17584 rtl before testing for pointer bounds. Special-case result_ptr.
17585 (expand_function_start): Maybe reset DECL_RTL of result.
17586 Prefer SSA-assigned location for result and static chain.
17587 Factor out DECL_RESULT and SET_DECL_RTL.
17588 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17589 anonymous SSA names. Use promote_ssa_mode.
17590 (get_temp_reg): Likewise.
17591 (remove_ssa_form): Adjust.
17592 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17593 and get its reg_usage for reg invalidation.
17594 (compute_bb_dataflow): Pass it insn.
17595 (emit_notes_in_bb): Likewise.
17596 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17597 fail assert on conversion between unsigned types.
17599 2015-06-09 Tom de Vries <tom@codesourcery.com>
17601 PR tree-optimization/65460
17602 * omp-low.c (expand_omp_target): Set parallelized_function on
17603 cgraph_node for child_fn.
17605 2015-06-09 Tom de Vries <tom@codesourcery.com>
17607 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
17608 parallelized_function before add_new_function.
17610 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
17612 * gcc-plugin.h: Move decls to plugin.h and include it.
17613 * plugin.h: Relocate decls from gcc-plugin.h
17614 * ggc-page.c: Include required header files.
17615 * passes.c: Likewise.
17616 * cgraphunit.c: Likewise.
17618 2015-06-09 Tom de Vries <tom@codesourcery.com>
17620 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
17622 2015-06-09 Jason Merrill <jason@redhat.com>
17625 * toplev.c (check_global_declaration): Don't warn about a clone.
17627 2015-06-09 Marek Polacek <polacek@redhat.com>
17629 PR tree-optimization/66299
17630 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
17631 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
17634 2015-06-09 Richard Biener <rguenther@suse.de>
17636 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
17637 (vect_analyze_slp_instance): Instead do not falsely drop
17640 2015-06-09 Richard Biener <rguenther@suse.de>
17642 PR middle-end/66423
17643 * match.pd: Handle A % (unsigned)(1 << B).
17645 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
17647 * varasm.c (output_object_block_htab): Remove.
17648 (output_object_block_compare): New.
17649 (output_object_blocks): Sort named object_blocks before outputting
17652 2015-06-09 Richard Biener <rguenther@suse.de>
17654 PR tree-optimization/66419
17655 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
17656 consider GROUP_GAP when detecting a perfect subchain.
17658 2015-06-09 Nick Clifton <nickc@redhat.com>
17660 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
17661 place read only data in the .frodata section.
17663 2015-06-09 Shiva Chen <shiva0217@gmail.com>
17665 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
17666 (atomic_store<mode>): Likewise.
17668 2015-06-09 Richard Biener <rguenther@suse.de>
17670 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
17672 2015-06-09 Richard Biener <rguenther@suse.de>
17674 PR middle-end/66413
17675 * tree-inline.c (insert_init_debug_bind): Unshare value.
17677 2015-06-09 Richard Biener <rguenther@suse.de>
17679 PR tree-optimization/66396
17680 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
17681 Rename virtual operands.
17683 2015-06-09 Tom de Vries <tom@codesourcery.com>
17685 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
17686 always return false.
17688 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17690 PR rtl-optimization/64164
17691 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
17692 * tree-ssa-copyrename.c: Removed.
17693 * opts.c (default_options_table): Drop -ftree-copyrename. Add
17694 -ftree-coalesce-vars.
17695 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
17696 * common.opt (ftree-copyrename): Ignore.
17697 (ftree-coalesce-inlined-vars): Likewise.
17698 * doc/invoke.texi: Remove the ignored options above.
17699 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
17700 * tree-ssa-coalesce.h: ... here.
17701 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
17702 headers required by it.
17703 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
17704 across variables when flag_tree_coalesce_vars. Check register
17705 use and promoted modes to allow coalescing. Moved to
17706 tree-ssa-coalesce.c.
17707 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
17708 with its member functions to tree-ssa-coalesce.c.
17709 (var_map_base_init): Likewise. Renamed to
17710 compute_samebase_partition_bases.
17711 (partition_view_normal): Drop want_bases parameter.
17712 (partition_view_bitmap): Likewise.
17713 * tree-ssa-live.h: Adjust declarations.
17714 * tree-ssa-coalesce.c: Include explow.h.
17715 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
17716 default defs at the entry point.
17717 (dump_part_var_map): New.
17718 (compute_optimized_partition_bases): New, called by...
17719 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
17720 of compute_samebase_partition_bases. Adjust.
17721 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
17722 * cfgexpand.c (leader_merge): New.
17723 (get_rtl_for_parm_ssa_default_def): New.
17724 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
17725 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
17726 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
17727 redundant MEM attr setting.
17728 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
17730 (expand_one_stack_var): ... this. New wrapper to check and
17731 skip already expanded SSA partitions.
17732 (record_alignment_for_reg_var): New, factored out of...
17733 (expand_one_var): ... this.
17734 (expand_one_ssa_partition): New.
17735 (adjust_one_expanded_partition_var): New.
17736 (expand_one_register_var): Check and skip already expanded SSA
17738 (expand_used_vars): Don't create DECLs for anonymous SSA
17739 names. Expand all SSA partitions, then adjust all SSA names.
17740 (pass::execute): Replace the loops that set
17741 SA.partition_to_pseudo from partition leaders and cleared
17742 DECL_RTL for multi-location variables, and that which used to
17743 rename vars and set attrs, with one that clears DECL_RTL and
17744 checks that PARMs and RESULTs default_defs match DECL_RTL.
17745 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
17746 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
17747 * explow.c (promote_ssa_mode): New.
17748 * explow.h (promote_ssa_mode): Declare.
17749 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
17750 * function.c: Include cfgexpand.h.
17751 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
17752 (use_register_for_parm_decl): Wrapper for the above to
17753 special-case the result_ptr.
17754 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
17755 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
17756 multiple locations.
17757 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
17758 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
17759 (assign_parm_setup_block): Prefer SSA-assigned location.
17760 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
17761 if stack_parm is NULL.
17762 (assign_parm_setup_stack): Prefer SSA-assigned location.
17763 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
17764 rtl before testing for pointer bounds. Special-case result_ptr.
17765 (expand_function_start): Maybe reset DECL_RTL of result.
17766 Prefer SSA-assigned location for result and static chain.
17767 Factor out DECL_RESULT and SET_DECL_RTL.
17768 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
17769 anonymous SSA names. Use promote_ssa_mode.
17770 (get_temp_reg): Likewise.
17771 (remove_ssa_form): Adjust.
17772 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
17773 and get its reg_usage for reg invalidation.
17774 (compute_bb_dataflow): Pass it insn.
17775 (emit_notes_in_bb): Likewise.
17776 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
17777 fail assert on conversion between unsigned types.
17779 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
17782 * tree-inline.c (reset_debug_binding): New.
17783 (reset_debug_bindings): Likewise.
17784 (expand_call_inline): Call it.
17786 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
17788 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
17791 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
17793 * lto-streamer-out.c (lto_output_location): Stream
17794 reserved locations correctly.
17795 * lto-streamer-in.c (lto_output_location): Likewise.
17797 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
17799 * coretypes.h: Include hash-table.h and hash-set.h for host files.
17800 * ggc.h: Don't include statistics.h>
17801 * hash-map.h: Remove all includes.
17802 * hash-set.h: Likewise.
17803 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
17804 the include list. Remove <new>.
17805 * inchash.h: Remove all includes.
17806 * mem-stats.h: Likewise.
17807 * vec.h: No special processing for generators or ggc.
17808 * alias.c : Adjust include files.
17809 * alloc-pool.c : Likewise.
17810 * alloc-pool.h : Likewise.
17811 * asan.c : Likewise.
17812 * attribs.c : Likewise.
17813 * auto-inc-dec.c : Likewise.
17814 * auto-profile.c : Likewise.
17815 * bb-reorder.c : Likewise.
17816 * bitmap.c : Likewise.
17817 * bitmap.h : Likewise.
17818 * bt-load.c : Likewise.
17819 * builtins.c : Likewise.
17820 * caller-save.c : Likewise.
17821 * calls.c : Likewise.
17822 * ccmp.c : Likewise.
17823 * cfg.c : Likewise.
17824 * cfganal.c : Likewise.
17825 * cfgbuild.c : Likewise.
17826 * cfgcleanup.c : Likewise.
17827 * cfgexpand.c : Likewise.
17828 * cfghooks.c : Likewise.
17829 * cfgloop.c : Likewise.
17830 * cfgloop.h : Likewise.
17831 * cfgloopanal.c : Likewise.
17832 * cfgloopmanip.c : Likewise.
17833 * cfgrtl.c : Likewise.
17834 * cgraph.c : Likewise.
17835 * cgraphbuild.c : Likewise.
17836 * cgraphclones.c : Likewise.
17837 * cgraphunit.c : Likewise.
17838 * cilk-common.c : Likewise.
17839 * combine-stack-adj.c : Likewise.
17840 * combine.c : Likewise.
17841 * compare-elim.c : Likewise.
17842 * context.c : Likewise.
17843 * convert.c : Likewise.
17844 * coverage.c : Likewise.
17845 * cppbuiltin.c : Likewise.
17846 * cprop.c : Likewise.
17847 * cse.c : Likewise.
17848 * cselib.c : Likewise.
17849 * data-streamer-in.c : Likewise.
17850 * data-streamer-out.c : Likewise.
17851 * data-streamer.c : Likewise.
17852 * data-streamer.h : Likewise.
17853 * dbxout.c : Likewise.
17854 * dce.c : Likewise.
17855 * ddg.c : Likewise.
17856 * debug.c : Likewise.
17857 * df-core.c : Likewise.
17858 * df-problems.c : Likewise.
17859 * df-scan.c : Likewise.
17861 * dfp.c : Likewise.
17862 * dojump.c : Likewise.
17863 * dominance.c : Likewise.
17864 * domwalk.c : Likewise.
17865 * double-int.c : Likewise.
17866 * dse.c : Likewise.
17867 * dumpfile.c : Likewise.
17868 * dwarf2asm.c : Likewise.
17869 * dwarf2cfi.c : Likewise.
17870 * dwarf2out.c : Likewise.
17871 * emit-rtl.c : Likewise.
17872 * et-forest.c : Likewise.
17873 * except.c : Likewise.
17874 * except.h : Likewise.
17875 * explow.c : Likewise.
17876 * expmed.c : Likewise.
17877 * expr.c : Likewise.
17878 * final.c : Likewise.
17879 * fixed-value.c : Likewise.
17880 * fold-const.c : Likewise.
17881 * function.c : Likewise.
17882 * fwprop.c : Likewise.
17883 * gcc-plugin.h : Likewise.
17884 * gcc.c : Likewise.
17885 * gcse-common.c : Likewise.
17886 * gcse.c : Likewise.
17887 * genattrtab.c : Likewise.
17888 * genautomata.c : Likewise.
17889 * genconditions.c : Likewise.
17890 * genemit.c : Likewise.
17891 * generic-match-head.c : Likewise.
17892 * genextract.c : Likewise.
17893 * gengtype-state.c : Likewise.
17894 * gengtype.c : Likewise.
17895 * genhooks.c : Likewise.
17896 * genmatch.c : Likewise.
17897 * genmodes.c : Likewise.
17898 * genrecog.c : Likewise.
17899 * gensupport.c : Likewise.
17900 * ggc-common.c : Likewise.
17901 * ggc-internal.h : Likewise.
17902 * ggc-none.c : Likewise.
17903 * ggc-page.c : Likewise.
17904 * gimple-builder.c : Likewise.
17905 * gimple-expr.c : Likewise.
17906 * gimple-fold.c : Likewise.
17907 * gimple-iterator.c : Likewise.
17908 * gimple-low.c : Likewise.
17909 * gimple-match-head.c : Likewise.
17910 * gimple-pretty-print.c : Likewise.
17911 * gimple-ssa-isolate-paths.c : Likewise.
17912 * gimple-ssa-strength-reduction.c : Likewise.
17913 * gimple-ssa.h : Likewise.
17914 * gimple-streamer-in.c : Likewise.
17915 * gimple-streamer-out.c : Likewise.
17916 * gimple-streamer.h : Likewise.
17917 * gimple-walk.c : Likewise.
17918 * gimple.c : Likewise.
17919 * gimplify-me.c : Likewise.
17920 * gimplify.c : Likewise.
17921 * godump.c : Likewise.
17922 * graph.c : Likewise.
17923 * graphds.c : Likewise.
17924 * graphite-blocking.c : Likewise.
17925 * graphite-dependences.c : Likewise.
17926 * graphite-interchange.c : Likewise.
17927 * graphite-isl-ast-to-gimple.c : Likewise.
17928 * graphite-optimize-isl.c : Likewise.
17929 * graphite-poly.c : Likewise.
17930 * graphite-scop-detection.c : Likewise.
17931 * graphite-sese-to-poly.c : Likewise.
17932 * graphite.c : Likewise.
17933 * haifa-sched.c : Likewise.
17934 * hard-reg-set.h : Likewise.
17935 * hw-doloop.c : Likewise.
17936 * ifcvt.c : Likewise.
17937 * inchash.c : Likewise.
17938 * incpath.c : Likewise.
17939 * init-regs.c : Likewise.
17940 * input.c : Likewise.
17941 * internal-fn.c : Likewise.
17942 * ipa-chkp.c : Likewise.
17943 * ipa-comdats.c : Likewise.
17944 * ipa-cp.c : Likewise.
17945 * ipa-devirt.c : Likewise.
17946 * ipa-icf-gimple.c : Likewise.
17947 * ipa-icf.c : Likewise.
17948 * ipa-inline-analysis.c : Likewise.
17949 * ipa-inline-transform.c : Likewise.
17950 * ipa-inline.c : Likewise.
17951 * ipa-polymorphic-call.c : Likewise.
17952 * ipa-profile.c : Likewise.
17953 * ipa-prop.c : Likewise.
17954 * ipa-pure-const.c : Likewise.
17955 * ipa-ref.c : Likewise.
17956 * ipa-reference.c : Likewise.
17957 * ipa-split.c : Likewise.
17958 * ipa-utils.c : Likewise.
17959 * ipa-visibility.c : Likewise.
17960 * ipa.c : Likewise.
17961 * ira-build.c : Likewise.
17962 * ira-color.c : Likewise.
17963 * ira-conflicts.c : Likewise.
17964 * ira-costs.c : Likewise.
17965 * ira-emit.c : Likewise.
17966 * ira-lives.c : Likewise.
17967 * ira.c : Likewise.
17968 * jump.c : Likewise.
17969 * langhooks.c : Likewise.
17970 * lcm.c : Likewise.
17971 * libfuncs.h : Likewise.
17972 * lists.c : Likewise.
17973 * loop-doloop.c : Likewise.
17974 * loop-init.c : Likewise.
17975 * loop-invariant.c : Likewise.
17976 * loop-iv.c : Likewise.
17977 * loop-unroll.c : Likewise.
17978 * lower-subreg.c : Likewise.
17979 * lra-assigns.c : Likewise.
17980 * lra-coalesce.c : Likewise.
17981 * lra-constraints.c : Likewise.
17982 * lra-eliminations.c : Likewise.
17983 * lra-lives.c : Likewise.
17984 * lra-remat.c : Likewise.
17985 * lra-spills.c : Likewise.
17986 * lra.c : Likewise.
17987 * lto-cgraph.c : Likewise.
17988 * lto-compress.c : Likewise.
17989 * lto-opts.c : Likewise.
17990 * lto-section-in.c : Likewise.
17991 * lto-section-out.c : Likewise.
17992 * lto-streamer-in.c : Likewise.
17993 * lto-streamer-out.c : Likewise.
17994 * lto-streamer.c : Likewise.
17995 * lto-streamer.h : Likewise.
17996 * mcf.c : Likewise.
17997 * mode-switching.c : Likewise.
17998 * modulo-sched.c : Likewise.
17999 * omega.c : Likewise.
18000 * omp-low.c : Likewise.
18001 * optabs.c : Likewise.
18002 * opts-global.c : Likewise.
18003 * opts.h : Likewise.
18004 * passes.c : Likewise.
18005 * plugin.c : Likewise.
18006 * postreload-gcse.c : Likewise.
18007 * postreload.c : Likewise.
18008 * predict.c : Likewise.
18009 * print-rtl.c : Likewise.
18010 * print-tree.c : Likewise.
18011 * profile.c : Likewise.
18012 * read-md.c : Likewise.
18013 * read-md.h : Likewise.
18014 * read-rtl.c : Likewise.
18015 * real.c : Likewise.
18016 * realmpfr.c : Likewise.
18017 * recog.c : Likewise.
18018 * ree.c : Likewise.
18019 * reg-stack.c : Likewise.
18020 * regcprop.c : Likewise.
18021 * reginfo.c : Likewise.
18022 * regrename.c : Likewise.
18023 * regstat.c : Likewise.
18024 * reload.c : Likewise.
18025 * reload1.c : Likewise.
18026 * reorg.c : Likewise.
18027 * resource.c : Likewise.
18028 * rtl-chkp.c : Likewise.
18029 * rtl.c : Likewise.
18030 * rtl.h : Likewise.
18031 * rtlanal.c : Likewise.
18032 * rtlhash.c : Likewise.
18033 * rtlhash.h : Likewise.
18034 * rtlhooks.c : Likewise.
18035 * sanopt.c : Likewise.
18036 * sched-deps.c : Likewise.
18037 * sched-ebb.c : Likewise.
18038 * sched-rgn.c : Likewise.
18039 * sched-vis.c : Likewise.
18040 * sdbout.c : Likewise.
18041 * sel-sched-dump.c : Likewise.
18042 * sel-sched-ir.c : Likewise.
18043 * sel-sched-ir.h : Likewise.
18044 * sel-sched.c : Likewise.
18045 * sese.c : Likewise.
18046 * shrink-wrap.c : Likewise.
18047 * shrink-wrap.h : Likewise.
18048 * simplify-rtx.c : Likewise.
18049 * stack-ptr-mod.c : Likewise.
18050 * statistics.c : Likewise.
18051 * stmt.c : Likewise.
18052 * stor-layout.c : Likewise.
18053 * store-motion.c : Likewise.
18054 * stringpool.c : Likewise.
18055 * symtab.c : Likewise.
18056 * target-globals.c : Likewise.
18057 * targhooks.c : Likewise.
18058 * tlink.c : Likewise.
18059 * toplev.c : Likewise.
18060 * tracer.c : Likewise.
18061 * trans-mem.c : Likewise.
18062 * tree-affine.c : Likewise.
18063 * tree-affine.h : Likewise.
18064 * tree-browser.c : Likewise.
18065 * tree-call-cdce.c : Likewise.
18066 * tree-cfg.c : Likewise.
18067 * tree-cfgcleanup.c : Likewise.
18068 * tree-chkp-opt.c : Likewise.
18069 * tree-chkp.c : Likewise.
18070 * tree-chrec.c : Likewise.
18071 * tree-complex.c : Likewise.
18072 * tree-data-ref.c : Likewise.
18073 * tree-dfa.c : Likewise.
18074 * tree-diagnostic.c : Likewise.
18075 * tree-dump.c : Likewise.
18076 * tree-eh.c : Likewise.
18077 * tree-eh.h : Likewise.
18078 * tree-emutls.c : Likewise.
18079 * tree-hasher.h : Likewise.
18080 * tree-if-conv.c : Likewise.
18081 * tree-inline.c : Likewise.
18082 * tree-inline.h : Likewise.
18083 * tree-into-ssa.c : Likewise.
18084 * tree-iterator.c : Likewise.
18085 * tree-loop-distribution.c : Likewise.
18086 * tree-nested.c : Likewise.
18087 * tree-nrv.c : Likewise.
18088 * tree-object-size.c : Likewise.
18089 * tree-outof-ssa.c : Likewise.
18090 * tree-parloops.c : Likewise.
18091 * tree-phinodes.c : Likewise.
18092 * tree-predcom.c : Likewise.
18093 * tree-pretty-print.c : Likewise.
18094 * tree-profile.c : Likewise.
18095 * tree-scalar-evolution.c : Likewise.
18096 * tree-sra.c : Likewise.
18097 * tree-ssa-address.c : Likewise.
18098 * tree-ssa-alias.c : Likewise.
18099 * tree-ssa-ccp.c : Likewise.
18100 * tree-ssa-coalesce.c : Likewise.
18101 * tree-ssa-copy.c : Likewise.
18102 * tree-ssa-copyrename.c : Likewise.
18103 * tree-ssa-dce.c : Likewise.
18104 * tree-ssa-dom.c : Likewise.
18105 * tree-ssa-dse.c : Likewise.
18106 * tree-ssa-forwprop.c : Likewise.
18107 * tree-ssa-ifcombine.c : Likewise.
18108 * tree-ssa-live.c : Likewise.
18109 * tree-ssa-loop-ch.c : Likewise.
18110 * tree-ssa-loop-im.c : Likewise.
18111 * tree-ssa-loop-ivcanon.c : Likewise.
18112 * tree-ssa-loop-ivopts.c : Likewise.
18113 * tree-ssa-loop-manip.c : Likewise.
18114 * tree-ssa-loop-niter.c : Likewise.
18115 * tree-ssa-loop-prefetch.c : Likewise.
18116 * tree-ssa-loop-unswitch.c : Likewise.
18117 * tree-ssa-loop.c : Likewise.
18118 * tree-ssa-math-opts.c : Likewise.
18119 * tree-ssa-operands.c : Likewise.
18120 * tree-ssa-phiopt.c : Likewise.
18121 * tree-ssa-phiprop.c : Likewise.
18122 * tree-ssa-pre.c : Likewise.
18123 * tree-ssa-propagate.c : Likewise.
18124 * tree-ssa-reassoc.c : Likewise.
18125 * tree-ssa-sccvn.c : Likewise.
18126 * tree-ssa-scopedtables.c : Likewise.
18127 * tree-ssa-sink.c : Likewise.
18128 * tree-ssa-strlen.c : Likewise.
18129 * tree-ssa-structalias.c : Likewise.
18130 * tree-ssa-tail-merge.c : Likewise.
18131 * tree-ssa-ter.c : Likewise.
18132 * tree-ssa-threadedge.c : Likewise.
18133 * tree-ssa-threadupdate.c : Likewise.
18134 * tree-ssa-uncprop.c : Likewise.
18135 * tree-ssa-uninit.c : Likewise.
18136 * tree-ssa.c : Likewise.
18137 * tree-ssanames.c : Likewise.
18138 * tree-stdarg.c : Likewise.
18139 * tree-streamer-in.c : Likewise.
18140 * tree-streamer-out.c : Likewise.
18141 * tree-streamer.c : Likewise.
18142 * tree-streamer.h : Likewise.
18143 * tree-switch-conversion.c : Likewise.
18144 * tree-tailcall.c : Likewise.
18145 * tree-vect-data-refs.c : Likewise.
18146 * tree-vect-generic.c : Likewise.
18147 * tree-vect-loop-manip.c : Likewise.
18148 * tree-vect-loop.c : Likewise.
18149 * tree-vect-patterns.c : Likewise.
18150 * tree-vect-slp.c : Likewise.
18151 * tree-vect-stmts.c : Likewise.
18152 * tree-vectorizer.c : Likewise.
18153 * tree-vectorizer.h : Likewise.
18154 * tree-vrp.c : Likewise.
18155 * tree.c : Likewise.
18156 * tsan.c : Likewise.
18157 * ubsan.c : Likewise.
18158 * valtrack.c : Likewise.
18159 * valtrack.h : Likewise.
18160 * value-prof.c : Likewise.
18161 * var-tracking.c : Likewise.
18162 * varasm.c : Likewise.
18163 * varpool.c : Likewise.
18165 * vmsdbgout.c : Likewise.
18166 * vtable-verify.c : Likewise.
18167 * vtable-verify.h : Likewise.
18168 * web.c : Likewise.
18169 * wide-int.cc : Likewise.
18170 * xcoffout.c : Likewise.
18171 * config/aarch64/aarch64-builtins.c : Likewise.
18172 * config/aarch64/aarch64.c : Likewise.
18173 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
18174 * config/alpha/alpha.c : Likewise.
18175 * config/arc/arc.c : Likewise.
18176 * config/arm/aarch-common.c : Likewise.
18177 * config/arm/arm-builtins.c : Likewise.
18178 * config/arm/arm-c.c : Likewise.
18179 * config/arm/arm.c : Likewise.
18180 * config/avr/avr-c.c : Likewise.
18181 * config/avr/avr-log.c : Likewise.
18182 * config/avr/avr.c : Likewise.
18183 * config/bfin/bfin.c : Likewise.
18184 * config/c6x/c6x.c : Likewise.
18185 * config/cr16/cr16.c : Likewise.
18186 * config/cris/cris.c : Likewise.
18187 * config/darwin-c.c : Likewise.
18188 * config/darwin.c : Likewise.
18189 * config/default-c.c : Likewise.
18190 * config/epiphany/epiphany.c : Likewise.
18191 * config/epiphany/mode-switch-use.c : Likewise.
18192 * config/epiphany/resolve-sw-modes.c : Likewise.
18193 * config/fr30/fr30.c : Likewise.
18194 * config/frv/frv.c : Likewise.
18195 * config/ft32/ft32.c : Likewise.
18196 * config/glibc-c.c : Likewise.
18197 * config/h8300/h8300.c : Likewise.
18198 * config/i386/i386-c.c : Likewise.
18199 * config/i386/i386.c : Likewise.
18200 * config/i386/msformat-c.c : Likewise.
18201 * config/i386/winnt-cxx.c : Likewise.
18202 * config/i386/winnt-stubs.c : Likewise.
18203 * config/i386/winnt.c : Likewise.
18204 * config/ia64/ia64-c.c : Likewise.
18205 * config/ia64/ia64.c : Likewise.
18206 * config/iq2000/iq2000.c : Likewise.
18207 * config/lm32/lm32.c : Likewise.
18208 * config/m32c/m32c-pragma.c : Likewise.
18209 * config/m32c/m32c.c : Likewise.
18210 * config/m32r/m32r.c : Likewise.
18211 * config/m68k/m68k.c : Likewise.
18212 * config/mcore/mcore.c : Likewise.
18213 * config/mep/mep-pragma.c : Likewise.
18214 * config/mep/mep.c : Likewise.
18215 * config/microblaze/microblaze-c.c : Likewise.
18216 * config/microblaze/microblaze.c : Likewise.
18217 * config/mips/mips.c : Likewise.
18218 * config/mmix/mmix.c : Likewise.
18219 * config/mn10300/mn10300.c : Likewise.
18220 * config/moxie/moxie.c : Likewise.
18221 * config/msp430/msp430-c.c : Likewise.
18222 * config/msp430/msp430.c : Likewise.
18223 * config/nds32/nds32-cost.c : Likewise.
18224 * config/nds32/nds32-fp-as-gp.c : Likewise.
18225 * config/nds32/nds32-intrinsic.c : Likewise.
18226 * config/nds32/nds32-isr.c : Likewise.
18227 * config/nds32/nds32-md-auxiliary.c : Likewise.
18228 * config/nds32/nds32-memory-manipulation.c : Likewise.
18229 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
18230 * config/nds32/nds32-predicates.c : Likewise.
18231 * config/nds32/nds32.c : Likewise.
18232 * config/nios2/nios2.c : Likewise.
18233 * config/nvptx/nvptx.c : Likewise.
18234 * config/pa/pa.c : Likewise.
18235 * config/pdp11/pdp11.c : Likewise.
18236 * config/rl78/rl78-c.c : Likewise.
18237 * config/rl78/rl78.c : Likewise.
18238 * config/rs6000/rs6000-c.c : Likewise.
18239 * config/rs6000/rs6000.c : Likewise.
18240 * config/rx/rx.c : Likewise.
18241 * config/s390/s390-c.c : Likewise.
18242 * config/s390/s390.c : Likewise.
18243 * config/sh/sh-c.c : Likewise.
18244 * config/sh/sh-mem.cc : Likewise.
18245 * config/sh/sh.c : Likewise.
18246 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
18247 * config/sh/sh_treg_combine.cc : Likewise.
18248 * config/sol2-c.c : Likewise.
18249 * config/sol2-cxx.c : Likewise.
18250 * config/sol2-stubs.c : Likewise.
18251 * config/sol2.c : Likewise.
18252 * config/sparc/sparc-c.c : Likewise.
18253 * config/sparc/sparc.c : Likewise.
18254 * config/spu/spu-c.c : Likewise.
18255 * config/spu/spu.c : Likewise.
18256 * config/stormy16/stormy16.c : Likewise.
18257 * config/tilegx/mul-tables.c : Likewise.
18258 * config/tilegx/tilegx-c.c : Likewise.
18259 * config/tilegx/tilegx.c : Likewise.
18260 * config/tilepro/mul-tables.c : Likewise.
18261 * config/tilepro/tilepro-c.c : Likewise.
18262 * config/tilepro/tilepro.c : Likewise.
18263 * config/v850/v850-c.c : Likewise.
18264 * config/v850/v850.c : Likewise.
18265 * config/vax/vax.c : Likewise.
18266 * config/visium/visium.c : Likewise.
18267 * config/vms/vms-c.c : Likewise.
18268 * config/vms/vms.c : Likewise.
18269 * config/vxworks.c : Likewise.
18270 * config/winnt-c.c : Likewise.
18271 * config/xtensa/xtensa.c : Likewise.
18273 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
18276 * ipa-utils.h (warn_types_mismatch): Update prototype.
18277 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
18279 (type_mismatch_p): New function.
18280 (warn_types_mismatch): Reorg to work better on non-C++ types.
18281 (odr_types_equivalent_p): Add loc1/loc2 parameters.
18282 (add_type_duplicate): Update.
18284 2015-06-08 Tom de Vries <tom@codesourcery.com>
18286 PR rtl-optimization/66444
18287 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
18290 2015-06-08 Richard Biener <rguenther@suse.de>
18292 PR tree-optimization/66422
18293 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
18294 block after inserted gcc_unreachable.
18296 2015-06-08 Nick Clifton <nickc@redhat.com>
18298 * config/rx/rx.c (rx_function_value): Do not promote vector types.
18299 (rx_promote_function_mode): Likewise.
18300 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
18302 2015-06-08 Jakub Jelinek <jakub@redhat.com>
18304 * genattrtab.c (insn_alternatives): Change type from int *
18306 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
18307 (get_attr_value): Change type of num_alt to uint64_t.
18308 (compute_alternative_mask): Change return type from
18309 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
18310 (make_alternative_compare, mk_attr_alt): Change argument type
18311 from int to uint64_t.
18312 (simplify_test_exp): Change type of i from int to uint64_t.
18313 Shift ((uint64_t) 1) instead of 1 up.
18314 (main): Adjust oballocvec first argument from int to uint64_t.
18315 Shift ((uint64_t) 1) instead of 1 up.
18317 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
18320 * gdbhooks.py: Import sys.
18321 (intptr): New function. Replace int(...) by intptr(...).
18323 2015-06-08 Richard Biener <rguenther@suse.de>
18325 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
18326 adjustment for gaps at the end of a SLP load group properly.
18327 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
18328 all permutations we can generate.
18329 (vect_transform_slp_perm_load): Use the correct group-size.
18331 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
18333 * genmatch.c (expr::gen_transform): For conditions, guess the type
18334 from the second operand.
18336 2015-06-08 Tom de Vries <tom@codesourcery.com>
18338 PR tree-optimization/66442
18339 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
18340 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
18341 if the loop latch is not a singleton. Use
18342 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
18344 2015-06-08 Marek Polacek <polacek@redhat.com>
18347 * toplev.c (check_global_declaration): Don't warn about artificial
18350 2015-06-08 Tom de Vries <tom@codesourcery.com>
18352 PR tree-optimization/66436
18353 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
18355 * gimplify.c: Add tree-dump.h include.
18356 (gimplify_function_tree): Dump function to gimple dump file.
18357 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
18360 2015-06-08 Tom de Vries <tom@codesourcery.com>
18362 PR tree-optimization/66435
18363 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
18366 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
18368 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
18369 of ptr_type_node to not be ptr_to_node.
18370 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
18371 TREE_TYPE of pointers.
18372 * gimple-expr.c (useless_type_conversion): Reorder the check for
18373 function pointers and TYPE_CANONICAL.
18375 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
18378 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
18379 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
18380 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
18382 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
18383 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
18384 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
18385 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
18386 and non iso if unix2003.
18388 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
18390 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
18392 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
18394 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
18395 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
18396 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
18397 except.c, final.c, function.c, gcse-common.c, genemit.c,
18398 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
18399 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
18400 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
18401 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
18404 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
18406 * combine.c (combine_split_insns): Remove cast.
18407 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
18408 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
18409 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
18410 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
18411 * genemit.c (gen_split): Change return type of generated functions to
18413 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
18414 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
18415 gen_peephole2_* functions.
18416 (print_subroutine, main): Likewise.
18417 * recog.c (peephole2_optimize): Remove cast.
18418 (peep2_next_insn): Promote return type to rtx_insn.
18419 * recog.h (peep2_next_insn): Fix prototype.
18420 * rtl.h (try_split, split_insns): Likewise.
18422 2015-06-06 DJ Delorie <dj@redhat.com>
18424 * config/msp430/msp430.c (msp430_asm_integer): Support addition
18425 and subtraction too.
18427 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
18430 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
18431 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
18432 instead of Snd. Disparage Sid/z alternative with '^'.
18434 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
18436 * dwarf2out.c: Remove deferred_locations*.
18437 (dwarf2_debug_hooks): Add early_finish hook.
18438 Remove global_decl hook.
18439 Add early_global_decl and late_global_decl hook.
18440 New global early_dwarf.
18441 New structure set_early_dwarf.
18442 (output_die): Indicate whether a DIE was generated early
18443 when generating assembly with -dA.
18444 (struct limbo_die_struct): Document created_for field.
18445 Remove file_table_last_lookup.
18446 (remove_AT): Return TRUE if successful.
18447 (remove_child_TAG): Clear die_parent.
18448 (reparent_child): New function abstracted from...
18449 (splice_child_die): ...here.
18450 (new_die): ICE if a DIE ends up in limbo too late.
18452 (defer_location): Remove.
18453 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
18454 (fill_variable_array_bounds): New.
18455 (decl_start_label): Call fill_variable_array_bounds.
18456 (gen_formal_parameter_die): Rewrite to reuse previously generated
18458 (gen_subprogram_die): Same.
18459 (gen_variable_die): Same.
18460 (gen_const_die): Same.
18461 (gen_label_die): Same.
18462 (gen_lexical_block_die): Same.
18463 (decl_will_get_specification_p): New.
18464 (local_function_static): New.
18465 (gen_struct_or_union_type_die): Fill in variable-length fields.
18466 (gen_typedef_die): Fill in variable-length typedefs.
18467 (gen_tagged_type_die): Gracefully return on error_mark_node.
18468 Handle re-entrancy.
18469 (gen_type_die_with_usage): Handle variable-length types.
18470 Remove duplicate code for ARRAY_TYPE case.
18471 (process_scope_var): Only process imported modules during early
18473 (dwarf2out_early_global_decl): New.
18474 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
18475 (dwarf2out_type_decl): Set early_dwarf while calling
18477 (dwarf2out_decl): Verify that we did not recreate a previously
18479 Do not return on DECL_EXTERNALs in VAR_DECLs.
18480 Abstract some code to local_function_static.
18481 (lookup_filename): Remove use of file_table_last_lookup.
18482 Gracefully exit on missing file_name.
18483 (dwarf2out_finish): Verify limbo list.
18484 Remove deferred_locations_list use.
18485 Move deferred_asm_name and limbo flushing to...
18486 (dwarf2out_early_finish): ...here. New.
18487 (dwarf2out_c_finalize): Remove set of deferred_location_list,
18488 deferred_asm_name, and file_table_last_lookup.
18489 * cgraph.h (referred_to_p): Add default argument.
18490 * cgraphunit.c (referred_to_p): Add and handle include_self
18492 (analyze_functions): Add first_time argument.
18493 Call check_global_declaration for all symbols.
18494 Call late_global_decl for nodes for moribund nodes.
18495 (finalize_compilation_unit): Add new argument to
18497 Call early_global_decl for functions.
18498 Call early_finish debug hook.
18499 * dbxout.c (dbxout_early_global_decl): New.
18500 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
18501 (dbx_debug_hooks): Add new hooks.
18502 (xcoff_debug_hooks): Same.
18503 * debug.c (do_nothing_debug_hooks): Add early_finish field.
18504 Add early and late debug hooks.
18505 Remove global_decl hook.
18506 * debug.h (struct gcc_debug_hooks): Add early_finish,
18507 early_global_decl, and late_global_decl fields.
18508 Remove global_decl field.
18509 Document gcc_debug_hooks.
18510 * gengtype.c (output_typename): Remove.
18511 * godump.c (go_early_global_decl): New.
18512 (go_late_global_decl): New.
18513 (go_global_decl): Remove.
18514 (dump_go_spec_init): Remove global_decl. Add
18515 {early,late}_global_decl.
18516 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
18517 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
18518 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
18519 (write_global_declarations): Remove.
18520 (global_decl_processing): New.
18521 * langhooks.h (struct lang_hooks_for_decls): Remove
18522 final_write_globals field.
18523 Add post_compilation_parsing_cleanups field.
18524 * passes.c (rest_of_decl_compilation): Call early_global_decl.
18525 * sdbout.c: Add early and late_global_decl hooks. Remove
18526 sdbout_global_decl hook.
18527 Add early_finish field for sdb_debug_hooks.
18528 (sdbout_global_decl): Remove.
18529 (sdbout_early_global_decl): New.
18530 (sdbout_late_global_decl): New.
18531 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
18532 * toplev.c (check_global_declaration): Rename from
18533 check_global_declaration_1.
18534 Adapt to use symtab infrastructure.
18535 (check_global_declarations): Remove.
18536 (emit_debug_global_declarations): Remove.
18537 (compile_file): Remove call to final_write_globals langhook.
18538 Run the actual compilation process.
18539 Perform any post compilation parser cleanups.
18540 Generate late debug info.
18541 * toplev.h (check_global_declaration): New.
18542 (check_global_declaration_1): Remove.
18543 (check_global_declarations): Remove.
18544 (write_global_declarations): Remove.
18545 (emit_debug_global_declarations): Remove.
18546 (global_decl_processing): New.
18547 * tree-core.h (struct tree_block): Add DIE field.
18548 * tree.h (BLOCK_DIE): New.
18549 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
18551 (vmsdbgout_early_global_decl): New.
18552 (vmsdbgout_late_global_decl): New.
18553 Add early_finish debug hook field to vmsdbg_debug_hooks.
18554 Remove vmsdbgout_decl to vmsdbgout_function_decl.
18555 Add early and late_global_decl debug hooks.
18557 2015-06-05 Julian Brown <julian@codesourcery.com>
18558 Sandra Loosemore <sandra@codesourcery.com>
18560 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
18561 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
18562 to print-sysroot-suffix.sh script.
18564 2015-06-05 Tom de Vries <tom@codesourcery.com>
18566 merge from gomp4 branch:
18567 2015-05-28 Tom de Vries <tom@codesourcery.com>
18569 PR tree-optimization/65443
18570 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
18571 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
18572 (try_transform_to_exit_first_loop_alt): New function.
18573 (transform_to_exit_first_loop): Use
18574 try_transform_to_exit_first_loop_alt.
18576 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
18578 * builtins.c (expand_builtin_atomic_compare_exchange): Call
18579 emit_cmp_and_jump_insns with the mode of target.
18581 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
18583 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
18585 2015-06-04 DJ Delorie <dj@redhat.com>
18587 * config/msp430/msp430.md (movsi_s): New. Special case for
18588 storing a 20-bit symbol into a 32-bit register.
18589 * config/msp430/msp430.c (msp430_subreg): Add support for it.
18590 * config/msp430/predicates.md (msp430_symbol_operand): New.
18592 2015-06-04 Sriraman Tallam <tmsriram@google.com>
18594 * c-family/c-common.c (noplt): New attribute.
18595 (handle_noplt_attribute): New handler.
18596 * calls.c (prepare_call_address): Check for noplt
18598 * config/i386/i386.c (ix86_expand_call): Check
18599 for noplt attribute.
18600 (ix86_nopic_noplt_attribute_p): New function.
18601 (ix86_output_call_insn): Output indirect call for non-pic
18603 * doc/extend.texi (noplt): Document new attribute.
18604 * doc/invoke.texi: Document new attribute.
18606 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
18608 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
18609 real.h, and fixed-value.h when included in host source files.
18610 * double-int.h: Remove redundant #includes listed above.
18611 * fixed-value.h: Likewise.
18612 * real.h: Likewise.
18613 * wide-int.h: Likewise.
18614 * inchash.h: Likewise.
18615 * rtl.h: Add some include files When included from a generator file.
18616 * target.h: Remove wide-int.h and insn-modes.h from the include list.
18617 * internal-fn.h: Don't include coretypes.h.
18618 * alias.c: Adjust includes for restructured coretypes.h.
18619 * asan.c: Likewise.
18620 * attribs.c: Likewise.
18621 * auto-inc-dec.c: Likewise.
18622 * auto-profile.c: Likewise.
18623 * bb-reorder.c: Likewise.
18624 * bt-load.c: Likewise.
18625 * builtins.c: Likewise.
18626 * caller-save.c: Likewise.
18627 * calls.c: Likewise.
18628 * ccmp.c: Likewise.
18630 * cfganal.c: Likewise.
18631 * cfgbuild.c: Likewise.
18632 * cfgcleanup.c: Likewise.
18633 * cfgexpand.c: Likewise.
18634 * cfghooks.c: Likewise.
18635 * cfgloop.c: Likewise.
18636 * cfgloop.h: Likewise.
18637 * cfgloopanal.c: Likewise.
18638 * cfgloopmanip.c: Likewise.
18639 * cfgrtl.c: Likewise.
18640 * cgraph.c: Likewise.
18641 * cgraphbuild.c: Likewise.
18642 * cgraphclones.c: Likewise.
18643 * cgraphunit.c: Likewise.
18644 * cilk-common.c: Likewise.
18645 * combine-stack-adj.c: Likewise.
18646 * combine.c: Likewise.
18647 * compare-elim.c: Likewise.
18648 * convert.c: Likewise.
18649 * coverage.c: Likewise.
18650 * cppbuiltin.c: Likewise.
18651 * cprop.c: Likewise.
18653 * cselib.c: Likewise.
18654 * data-streamer-in.c: Likewise.
18655 * data-streamer-out.c: Likewise.
18656 * data-streamer.c: Likewise.
18657 * dbxout.c: Likewise.
18660 * debug.c: Likewise.
18661 * df-core.c: Likewise.
18662 * df-problems.c: Likewise.
18663 * df-scan.c: Likewise.
18666 * dojump.c: Likewise.
18667 * dominance.c: Likewise.
18668 * domwalk.c: Likewise.
18669 * double-int.c: Likewise.
18671 * dumpfile.c: Likewise.
18672 * dwarf2asm.c: Likewise.
18673 * dwarf2cfi.c: Likewise.
18674 * dwarf2out.c: Likewise.
18675 * dwarf2out.h: Likewise.
18676 * emit-rtl.c: Likewise.
18677 * et-forest.c: Likewise.
18678 * except.c: Likewise.
18679 * explow.c: Likewise.
18680 * expmed.c: Likewise.
18681 * expr.c: Likewise.
18682 * final.c: Likewise.
18683 * fixed-value.c: Likewise.
18684 * fold-const.c: Likewise.
18685 * function.c: Likewise.
18686 * fwprop.c: Likewise.
18687 * gcc-plugin.h: Likewise.
18688 * gcse.c: Likewise.
18689 * generic-match-head.c: Likewise.
18690 * ggc-page.c: Likewise.
18691 * gimple-builder.c: Likewise.
18692 * gimple-expr.c: Likewise.
18693 * gimple-fold.c: Likewise.
18694 * gimple-iterator.c: Likewise.
18695 * gimple-low.c: Likewise.
18696 * gimple-match-head.c: Likewise.
18697 * gimple-pretty-print.c: Likewise.
18698 * gimple-ssa-isolate-paths.c: Likewise.
18699 * gimple-ssa-strength-reduction.c: Likewise.
18700 * gimple-streamer-in.c: Likewise.
18701 * gimple-streamer-out.c: Likewise.
18702 * gimple-streamer.h: Likewise.
18703 * gimple-walk.c: Likewise.
18704 * gimple.c: Likewise.
18705 * gimplify-me.c: Likewise.
18706 * gimplify.c: Likewise.
18707 * godump.c: Likewise.
18708 * graph.c: Likewise.
18709 * graphite-blocking.c: Likewise.
18710 * graphite-dependences.c: Likewise.
18711 * graphite-interchange.c: Likewise.
18712 * graphite-isl-ast-to-gimple.c: Likewise.
18713 * graphite-optimize-isl.c: Likewise.
18714 * graphite-poly.c: Likewise.
18715 * graphite-scop-detection.c: Likewise.
18716 * graphite-sese-to-poly.c: Likewise.
18717 * graphite.c: Likewise.
18718 * haifa-sched.c: Likewise.
18719 * hooks.h: Likewise.
18720 * hw-doloop.c: Likewise.
18721 * ifcvt.c: Likewise.
18722 * incpath.c: Likewise.
18723 * init-regs.c: Likewise.
18724 * internal-fn.c: Likewise.
18725 * ipa-chkp.c: Likewise.
18726 * ipa-comdats.c: Likewise.
18727 * ipa-cp.c: Likewise.
18728 * ipa-devirt.c: Likewise.
18729 * ipa-icf-gimple.c: Likewise.
18730 * ipa-icf.c: Likewise.
18731 * ipa-inline-analysis.c: Likewise.
18732 * ipa-inline-transform.c: Likewise.
18733 * ipa-inline.c: Likewise.
18734 * ipa-polymorphic-call.c: Likewise.
18735 * ipa-profile.c: Likewise.
18736 * ipa-prop.c: Likewise.
18737 * ipa-pure-const.c: Likewise.
18738 * ipa-ref.c: Likewise.
18739 * ipa-reference.c: Likewise.
18740 * ipa-split.c: Likewise.
18741 * ipa-utils.c: Likewise.
18742 * ipa-visibility.c: Likewise.
18744 * ira-build.c: Likewise.
18745 * ira-color.c: Likewise.
18746 * ira-conflicts.c: Likewise.
18747 * ira-costs.c: Likewise.
18748 * ira-emit.c: Likewise.
18749 * ira-lives.c: Likewise.
18751 * jump.c: Likewise.
18752 * langhooks.c: Likewise.
18754 * loop-doloop.c: Likewise.
18755 * loop-init.c: Likewise.
18756 * loop-invariant.c: Likewise.
18757 * loop-iv.c: Likewise.
18758 * loop-unroll.c: Likewise.
18759 * lower-subreg.c: Likewise.
18760 * lra-assigns.c: Likewise.
18761 * lra-coalesce.c: Likewise.
18762 * lra-constraints.c: Likewise.
18763 * lra-eliminations.c: Likewise.
18764 * lra-lives.c: Likewise.
18765 * lra-remat.c: Likewise.
18766 * lra-spills.c: Likewise.
18768 * lto-cgraph.c: Likewise.
18769 * lto-compress.c: Likewise.
18770 * lto-opts.c: Likewise.
18771 * lto-section-in.c: Likewise.
18772 * lto-section-out.c: Likewise.
18773 * lto-streamer-in.c: Likewise.
18774 * lto-streamer-out.c: Likewise.
18775 * lto-streamer.c: Likewise.
18777 * mode-switching.c: Likewise.
18778 * modulo-sched.c: Likewise.
18779 * omega.c: Likewise.
18780 * omp-low.c: Likewise.
18781 * optabs.c: Likewise.
18782 * opts-global.c: Likewise.
18783 * passes.c: Likewise.
18784 * plugin.c: Likewise.
18785 * postreload-gcse.c: Likewise.
18786 * postreload.c: Likewise.
18787 * predict.c: Likewise.
18788 * print-rtl.c: Likewise.
18789 * print-tree.c: Likewise.
18790 * profile.c: Likewise.
18791 * real.c: Likewise.
18792 * realmpfr.c: Likewise.
18793 * realmpfr.h: Likewise.
18794 * recog.c: Likewise.
18796 * reg-stack.c: Likewise.
18797 * regcprop.c: Likewise.
18798 * reginfo.c: Likewise.
18799 * regrename.c: Likewise.
18800 * regs.h: Likewise.
18801 * regstat.c: Likewise.
18802 * reload.c: Likewise.
18803 * reload1.c: Likewise.
18804 * reorg.c: Likewise.
18805 * resource.c: Likewise.
18806 * rtl-chkp.c: Likewise.
18807 * rtlanal.c: Likewise.
18808 * rtlhooks.c: Likewise.
18809 * sanopt.c: Likewise.
18810 * sched-deps.c: Likewise.
18811 * sched-ebb.c: Likewise.
18812 * sched-rgn.c: Likewise.
18813 * sched-vis.c: Likewise.
18814 * sdbout.c: Likewise.
18815 * sel-sched-dump.c: Likewise.
18816 * sel-sched-ir.c: Likewise.
18817 * sel-sched.c: Likewise.
18818 * sese.c: Likewise.
18819 * shrink-wrap.c: Likewise.
18820 * shrink-wrap.h: Likewise.
18821 * simplify-rtx.c: Likewise.
18822 * stack-ptr-mod.c: Likewise.
18823 * statistics.c: Likewise.
18824 * stmt.c: Likewise.
18825 * stor-layout.c: Likewise.
18826 * store-motion.c: Likewise.
18827 * stringpool.c: Likewise.
18828 * symtab.c: Likewise.
18829 * target-globals.c: Likewise.
18830 * targhooks.c: Likewise.
18831 * toplev.c: Likewise.
18832 * tracer.c: Likewise.
18833 * trans-mem.c: Likewise.
18834 * tree-affine.c: Likewise.
18835 * tree-affine.h: Likewise.
18836 * tree-browser.c: Likewise.
18837 * tree-call-cdce.c: Likewise.
18838 * tree-cfg.c: Likewise.
18839 * tree-cfgcleanup.c: Likewise.
18840 * tree-chkp-opt.c: Likewise.
18841 * tree-chkp.c: Likewise.
18842 * tree-chrec.c: Likewise.
18843 * tree-complex.c: Likewise.
18844 * tree-data-ref.c: Likewise.
18845 * tree-dfa.c: Likewise.
18846 * tree-diagnostic.c: Likewise.
18847 * tree-dump.c: Likewise.
18848 * tree-eh.c: Likewise.
18849 * tree-emutls.c: Likewise.
18850 * tree-if-conv.c: Likewise.
18851 * tree-inline.c: Likewise.
18852 * tree-into-ssa.c: Likewise.
18853 * tree-iterator.c: Likewise.
18854 * tree-loop-distribution.c: Likewise.
18855 * tree-nested.c: Likewise.
18856 * tree-nrv.c: Likewise.
18857 * tree-object-size.c: Likewise.
18858 * tree-outof-ssa.c: Likewise.
18859 * tree-parloops.c: Likewise.
18860 * tree-phinodes.c: Likewise.
18861 * tree-predcom.c: Likewise.
18862 * tree-pretty-print.c: Likewise.
18863 * tree-pretty-print.h: Likewise.
18864 * tree-profile.c: Likewise.
18865 * tree-scalar-evolution.c: Likewise.
18866 * tree-sra.c: Likewise.
18867 * tree-ssa-address.c: Likewise.
18868 * tree-ssa-alias.c: Likewise.
18869 * tree-ssa-ccp.c: Likewise.
18870 * tree-ssa-coalesce.c: Likewise.
18871 * tree-ssa-copy.c: Likewise.
18872 * tree-ssa-copyrename.c: Likewise.
18873 * tree-ssa-dce.c: Likewise.
18874 * tree-ssa-dom.c: Likewise.
18875 * tree-ssa-dse.c: Likewise.
18876 * tree-ssa-forwprop.c: Likewise.
18877 * tree-ssa-ifcombine.c: Likewise.
18878 * tree-ssa-live.c: Likewise.
18879 * tree-ssa-loop-ch.c: Likewise.
18880 * tree-ssa-loop-im.c: Likewise.
18881 * tree-ssa-loop-ivcanon.c: Likewise.
18882 * tree-ssa-loop-ivopts.c: Likewise.
18883 * tree-ssa-loop-manip.c: Likewise.
18884 * tree-ssa-loop-niter.c: Likewise.
18885 * tree-ssa-loop-prefetch.c: Likewise.
18886 * tree-ssa-loop-unswitch.c: Likewise.
18887 * tree-ssa-loop.c: Likewise.
18888 * tree-ssa-loop.h: Likewise.
18889 * tree-ssa-math-opts.c: Likewise.
18890 * tree-ssa-operands.c: Likewise.
18891 * tree-ssa-phiopt.c: Likewise.
18892 * tree-ssa-phiprop.c: Likewise.
18893 * tree-ssa-pre.c: Likewise.
18894 * tree-ssa-propagate.c: Likewise.
18895 * tree-ssa-reassoc.c: Likewise.
18896 * tree-ssa-sccvn.c: Likewise.
18897 * tree-ssa-scopedtables.c: Likewise.
18898 * tree-ssa-sink.c: Likewise.
18899 * tree-ssa-strlen.c: Likewise.
18900 * tree-ssa-structalias.c: Likewise.
18901 * tree-ssa-tail-merge.c: Likewise.
18902 * tree-ssa-ter.c: Likewise.
18903 * tree-ssa-threadedge.c: Likewise.
18904 * tree-ssa-threadupdate.c: Likewise.
18905 * tree-ssa-uncprop.c: Likewise.
18906 * tree-ssa-uninit.c: Likewise.
18907 * tree-ssa.c: Likewise.
18908 * tree-ssanames.c: Likewise.
18909 * tree-stdarg.c: Likewise.
18910 * tree-streamer-in.c: Likewise.
18911 * tree-streamer-out.c: Likewise.
18912 * tree-streamer.c: Likewise.
18913 * tree-switch-conversion.c: Likewise.
18914 * tree-tailcall.c: Likewise.
18915 * tree-vect-data-refs.c: Likewise.
18916 * tree-vect-generic.c: Likewise.
18917 * tree-vect-loop-manip.c: Likewise.
18918 * tree-vect-loop.c: Likewise.
18919 * tree-vect-patterns.c: Likewise.
18920 * tree-vect-slp.c: Likewise.
18921 * tree-vect-stmts.c: Likewise.
18922 * tree-vectorizer.c: Likewise.
18923 * tree-vrp.c: Likewise.
18924 * tree.c: Likewise.
18925 * tsan.c: Likewise.
18926 * ubsan.c: Likewise.
18927 * valtrack.c: Likewise.
18928 * value-prof.c: Likewise.
18929 * var-tracking.c: Likewise.
18930 * varasm.c: Likewise.
18931 * varpool.c: Likewise.
18932 * vmsdbgout.c: Likewise.
18933 * vtable-verify.c: Likewise.
18935 * wide-int-print.cc: Likewise.
18936 * wide-int-print.h: Likewise.
18937 * wide-int.cc: Likewise.
18938 * xcoffout.c: Likewise.
18939 * config/aarch64/aarch64-builtins.c: Likewise.
18940 * config/aarch64/aarch64.c: Likewise.
18941 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18942 * config/alpha/alpha.c: Likewise.
18943 * config/arc/arc.c: Likewise.
18944 * config/arm/aarch-common.c: Likewise.
18945 * config/arm/arm-builtins.c: Likewise.
18946 * config/arm/arm-c.c: Likewise.
18947 * config/arm/arm.c: Likewise.
18948 * config/avr/avr-c.c: Likewise.
18949 * config/avr/avr-log.c: Likewise.
18950 * config/avr/avr.c: Likewise.
18951 * config/bfin/bfin.c: Likewise.
18952 * config/c6x/c6x.c: Likewise.
18953 * config/cr16/cr16.c: Likewise.
18954 * config/cris/cris.c: Likewise.
18955 * config/darwin-c.c: Likewise.
18956 * config/darwin.c: Likewise.
18957 * config/default-c.c: Likewise.
18958 * config/epiphany/epiphany.c: Likewise.
18959 * config/epiphany/mode-switch-use.c: Likewise.
18960 * config/epiphany/resolve-sw-modes.c: Likewise.
18961 * config/fr30/fr30.c: Likewise.
18962 * config/frv/frv.c: Likewise.
18963 * config/ft32/ft32.c: Likewise.
18964 * config/glibc-c.c: Likewise.
18965 * config/h8300/h8300.c: Likewise.
18966 * config/i386/i386-c.c: Likewise.
18967 * config/i386/i386.c: Likewise.
18968 * config/i386/msformat-c.c: Likewise.
18969 * config/i386/winnt-cxx.c: Likewise.
18970 * config/i386/winnt-stubs.c: Likewise.
18971 * config/i386/winnt.c: Likewise.
18972 * config/ia64/ia64-c.c: Likewise.
18973 * config/ia64/ia64.c: Likewise.
18974 * config/iq2000/iq2000.c: Likewise.
18975 * config/lm32/lm32.c: Likewise.
18976 * config/m32c/m32c-pragma.c: Likewise.
18977 * config/m32c/m32c.c: Likewise.
18978 * config/m32r/m32r.c: Likewise.
18979 * config/m68k/m68k.c: Likewise.
18980 * config/mcore/mcore.c: Likewise.
18981 * config/mep/mep-pragma.c: Likewise.
18982 * config/mep/mep.c: Likewise.
18983 * config/microblaze/microblaze-c.c: Likewise.
18984 * config/microblaze/microblaze.c: Likewise.
18985 * config/mips/mips.c: Likewise.
18986 * config/mmix/mmix.c: Likewise.
18987 * config/mn10300/mn10300.c: Likewise.
18988 * config/moxie/moxie.c: Likewise.
18989 * config/msp430/msp430-c.c: Likewise.
18990 * config/msp430/msp430.c: Likewise.
18991 * config/nds32/nds32-cost.c: Likewise.
18992 * config/nds32/nds32-fp-as-gp.c: Likewise.
18993 * config/nds32/nds32-intrinsic.c: Likewise.
18994 * config/nds32/nds32-isr.c: Likewise.
18995 * config/nds32/nds32-md-auxiliary.c: Likewise.
18996 * config/nds32/nds32-memory-manipulation.c: Likewise.
18997 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18998 * config/nds32/nds32-predicates.c: Likewise.
18999 * config/nds32/nds32.c: Likewise.
19000 * config/nios2/nios2.c: Likewise.
19001 * config/nvptx/nvptx.c: Likewise.
19002 * config/pa/pa.c: Likewise.
19003 * config/pdp11/pdp11.c: Likewise.
19004 * config/rl78/rl78-c.c: Likewise.
19005 * config/rl78/rl78.c: Likewise.
19006 * config/rs6000/rs6000-c.c: Likewise.
19007 * config/rs6000/rs6000.c: Likewise.
19008 * config/rx/rx.c: Likewise.
19009 * config/s390/s390-c.c: Likewise.
19010 * config/s390/s390.c: Likewise.
19011 * config/sh/sh-c.c: Likewise.
19012 * config/sh/sh-mem.cc: Likewise.
19013 * config/sh/sh.c: Likewise.
19014 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19015 * config/sh/sh_treg_combine.cc: Likewise.
19016 * config/sol2-c.c: Likewise.
19017 * config/sol2-cxx.c: Likewise.
19018 * config/sol2-stubs.c: Likewise.
19019 * config/sol2.c: Likewise.
19020 * config/sparc/sparc-c.c: Likewise.
19021 * config/sparc/sparc.c: Likewise.
19022 * config/spu/spu-c.c: Likewise.
19023 * config/spu/spu.c: Likewise.
19024 * config/stormy16/stormy16.c: Likewise.
19025 * config/tilegx/mul-tables.c: Likewise.
19026 * config/tilegx/tilegx-c.c: Likewise.
19027 * config/tilegx/tilegx.c: Likewise.
19028 * config/tilepro/mul-tables.c: Likewise.
19029 * config/tilepro/tilepro-c.c: Likewise.
19030 * config/tilepro/tilepro.c: Likewise.
19031 * config/v850/v850-c.c: Likewise.
19032 * config/v850/v850.c: Likewise.
19033 * config/vax/vax.c: Likewise.
19034 * config/visium/visium.c: Likewise.
19035 * config/vms/vms-c.c: Likewise.
19036 * config/vms/vms.c: Likewise.
19037 * config/vxworks.c: Likewise.
19038 * config/winnt-c.c: Likewise.
19039 * config/xtensa/xtensa.c: Likewise.
19040 * common/config/bfin/bfin-common.c: Likewise.
19042 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
19044 * tree.h (tree_code_for_canonical_type_merging): New function.
19045 * tree.c (gimple_canonical_types_compatible_p): Use
19046 tree_code_for_canonical_type_merging..
19048 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19052 * doc/tm.texi: Regenerate.
19053 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
19054 * target.def (TARGET_RELAXED_ORDERING): Likewise.
19055 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
19056 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
19057 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
19058 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
19059 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
19060 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
19061 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
19063 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19065 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
19066 register fma steering pass.
19067 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
19068 AARCH64_TUNE_FMA_STEERING.
19070 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
19072 * tree.c (verify_type_variant): Verify that type and variant is
19074 (gimple_canonical_types_compatible_p): Look for main variants.
19076 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19078 * config.gcc (powerpc*-*-*): Add support for a new configure
19079 option --with-advance-toolchain=<xxx> which overrides using the
19080 default header files, libraries and dynamic linker.
19082 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
19083 specs to support the configure --with-advance-toolchain=<xxx>
19085 (INCLUDE_EXTRA_SPEC): Likewise.
19086 (LINK_OS_EXTRA_SPEC32): Likewise.
19087 (LINK_OK_EXTRA_SPEC64): Likewise.
19088 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
19089 (DYNAMIC_LINKER_PREFIX): Likewise.
19090 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
19092 (GLIBC_DYNAMIC_LINKER32): Likewise.
19093 (GLIBC_DYNAMIC_LINKER64): Likewise.
19094 (LINK_OS_LINUX_SPEC32): Likewise.
19095 (LINK_OS_LINUX_SPEC64): Likewise.
19097 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
19098 configuration option.
19100 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
19103 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
19104 to determine current function ABI.
19105 (ix86_function_value_regno_p): Ditto.
19107 2015-06-03 Martin Liska <mliska@suse.cz>
19109 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
19110 * bitmap.h (struct bitmap_usage): Likewise.
19111 * ggc-common.c (struct ggc_usage): Likewise.
19112 * mem-stats.h (struct mem_location): Likewise.
19113 (struct mem_usage): Likewise.
19114 * vec.c (struct vec_usage): Likewise.
19116 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
19118 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
19121 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
19123 * doc/plugins.texi (enum plugin_event): New event.
19124 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
19125 and PLUGIN_FINISH_FUNCTION.
19126 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
19127 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
19129 2015-06-03 Richard Biener <rguenther@suse.de>
19131 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
19132 compute GROUP_GAP for the first element.
19133 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
19136 2015-06-03 Nick Clifton <nickc@redhat.com>
19138 * config/rl78/rl78-real.md: Add peepholes to avoid a register
19139 copy when calling a function.
19140 * config/rl78/rl78.c (need_to_save): Do not push the frame
19141 pointer in an interrupt handler prologue if it is never used.
19143 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19145 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
19147 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19149 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
19150 reference when cloning alias node.
19152 2015-06-03 Martin Liska <mliska@suse.cz>
19154 * alloc-pool.h (struct pool_usage): Correct space padding.
19155 * ggc-page.c (ggc_print_statistics): Align columns in a report.
19156 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
19157 * tree.c (dump_tree_statistics): Align columns in a report.
19159 2015-06-03 Martin Liska <mliska@suse.cz>
19161 * alloc-pool.c (allocate_pool_descriptor): Remove.
19162 (struct pool_output_info): Likewise.
19163 (print_alloc_pool_statistics): Likewise.
19164 (dump_alloc_pool_statistics): Likewise.
19165 * alloc-pool.h (struct pool_usage): New struct.
19166 (pool_allocator::initialize): Change usage of memory statistics
19167 to a new interface.
19168 (pool_allocator::release): Likewise.
19169 (pool_allocator::allocate): Likewise.
19170 (pool_allocator::remove): Likewise.
19171 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
19172 for a pool allocator.
19173 * mem-stats.h (struct mem_location): Add new ctor.
19174 (struct mem_usage): Add counter for number of
19176 (mem_alloc_description::register_descriptor): New overload of
19177 * mem-stats.h (mem_location::to_string): New function.
19178 * bitmap.h (struct bitmap_usage): Use this new function.
19179 * ggc-common.c (struct ggc_usage): Likewise.
19182 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19184 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
19185 of GCC_INSN_FLAGS_H block.
19187 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
19189 * explow.c (plus_constant): Update check after force_const_mem call
19190 to see if the value returned is not a NULL_RTX.
19192 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
19194 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
19195 remove instumentation thunks calling reachable functions.
19196 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
19197 * lto/lto-partition.c (privatize_symbol_name_1): New.
19198 (privatize_symbol_name): Privatize both decl and orig_decl
19199 names for instrumented functions.
19200 * cgraph.c (cgraph_node::verify_node): Add transparent
19201 alias chain check for instrumented node.
19203 2015-06-03 Marek Polacek <polacek@redhat.com>
19207 * tree.c (attribute_value_equal): Handle attribute format.
19208 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
19210 2015-06-03 Richard Biener <rguenther@suse.de>
19212 PR tree-optimization/63916
19213 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
19214 Forward-propagate non-invariant addresses by splicing their
19215 reference ops if the result isn't going to be used by PRE.
19216 (vn_reference_lookup_3): Remove pointless assert.
19218 2015-06-03 Richard Biener <rguenther@suse.de>
19220 PR tree-optimization/66375
19221 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
19222 add to the evolution before following SSA edges.
19224 2015-06-03 Bin Cheng <bin.cheng@arm.com>
19226 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
19227 (dump_use, dump_cand, find_induction_variables): Pass new argument
19229 (record_use): Preserve the ssa name information in IV.
19231 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
19233 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
19235 (add_mode_tests): Don't add mode tests if the predicate only
19236 accepts scalar constant integers. Otherwise, allow the mode
19237 of "op" to be VOIDmode if the predicate does accept such integers.
19239 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
19242 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
19243 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
19244 (aarch64_secondary_reload): Likewise
19245 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
19247 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
19250 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
19251 Zhenqiang Chen <zhenqiang.chen@linaro.org>
19254 * cprop.c (try_replace_reg): Check cost of constants before propagating.
19256 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19258 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
19259 provide access to the IBM extended double floating point mode if
19260 long double is IEEE 128-bit floating point.
19261 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
19262 point if long double is the IBM extended double type.
19264 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
19265 enable adding IEEE 128-bit floating point support.
19266 (-mfloat128-software): Likewise.
19267 (-mfloat128-sw): Likewise.
19269 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
19270 128-bit floating point types to occupy any register if
19271 -mlong-double-64. Do not allow use of IFmode/KFmode unless
19272 -mfloat128-software is enabled.
19273 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
19275 (rs6000_option_override_internal): Add -mfloat128-* support.
19276 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
19278 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
19279 and float128 type nodes.
19280 (ieee128_float_type_node): Likewise.
19281 (ibm128_float_type_node): Likewise.
19283 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
19286 * config/aarch64/geniterators.sh: Rewrite in awk.
19288 2015-06-02 Martin Liska <mliska@suse.cz>
19290 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
19291 values to avoid -Wmaybe-uninitialized errors.
19293 2015-06-02 Richard Biener <rguenther@suse.de>
19296 * dwarf2out.c (lookup_context_die): New function.
19297 (resolve_addr): Avoid forcing a full DIE for the
19298 target of a DW_TAG_GNU_call_site during late compilation.
19299 Instead create a stub DIE without a type if we have a
19300 context DIE present.
19302 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
19304 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
19306 2015-06-02 Bin Cheng <bin.cheng@arm.com>
19308 PR tree-optimization/48052
19309 * cfgloop.h (struct control_iv): New.
19310 (struct loop): New field control_ivs.
19311 * tree-ssa-loop-niter.c : Include "stor-layout.h".
19312 (number_of_iterations_lt): Set no_overflow information.
19313 (number_of_iterations_exit): Init control iv in niter struct.
19314 (record_control_iv): New.
19315 (estimate_numbers_of_iterations_loop): Call record_control_iv.
19316 (loop_exits_before_overflow): New. Interface factored out of
19317 scev_probably_wraps_p.
19318 (scev_probably_wraps_p): Factor loop niter related code into
19319 loop_exits_before_overflow.
19320 (free_numbers_of_iterations_estimates_loop): Free control ivs.
19321 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
19323 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
19325 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
19326 the target doesn't belong to the current function.
19328 2015-06-02 Marek Polacek <polacek@redhat.com>
19330 PR middle-end/66345
19331 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
19332 get_maxval_strlen does not produce an INTEGER_CST.
19334 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
19336 * config/arc/constraints.md: Use lower-case names in match_code.
19337 * config/mmix/constraints.md: Likewise.
19339 2015-06-02 Richard Biener <rguenther@suse.de>
19341 PR tree-optimization/65961
19342 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
19343 check and clarify dump message.
19344 (vect_build_slp_tree): If all children are built up from scalars
19345 build up the parent from scalars instead.
19346 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
19348 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
19351 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
19352 instead of print ... .
19354 2015-06-02 Alan Modra <amodra@gmail.com>
19356 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
19359 2015-06-02 Bin Cheng <bin.cheng@arm.com>
19361 PR tree-optimization/52563
19362 PR tree-optimization/62173
19363 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
19364 (alloc_iv, set_iv): New parameter.
19365 (determine_biv_step): Delete.
19366 (find_bivs): Inline original determine_biv_step. Pass new
19367 argument to set_iv.
19368 (idx_find_step): Use no_overflow information for conversion.
19369 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
19370 resolve_mixers handle folded_casts.
19371 (instantiate_scev_name): Change bool parameter to bool pointer.
19372 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
19373 (instantiate_array_ref, instantiate_scev_not): Ditto.
19374 (instantiate_scev_3, instantiate_scev_2): Ditto.
19375 (instantiate_scev_1, instantiate_scev_r): Ditto.
19376 (instantiate_scev_convert, ): Change parameter. Pass argument
19377 to chrec_convert_aggressive.
19378 (instantiate_scev): Change argument.
19379 (resolve_mixers): New parameter and set it.
19380 (scev_const_prop): New argument.
19381 * tree-scalar-evolution.h (resolve_mixers): New parameter.
19382 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
19384 (chrec_convert): New parameter. Move definition below.
19385 (chrec_convert_aggressive): New parameter and set it. Call
19386 convert_affine_scev.
19387 * tree-chrec.h (chrec_convert): New parameter.
19388 (chrec_convert_aggressive): Ditto.
19390 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
19392 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
19393 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
19394 the LHS of a no-return call if its type has variable size.
19395 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
19396 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
19398 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
19400 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
19401 * config.in: Regenerate.
19403 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
19405 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
19406 consecutive accesses within outer-loop with force_vectorize
19407 for references with zero step in inner-loop.
19409 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
19411 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
19412 rather than from gcc/build directory.
19414 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
19417 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
19418 for __sync memory models, emit initial loads and final barriers as
19421 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
19424 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
19425 (aarch64_split_atomic_op): Check for __sync memory models, emit
19426 appropriate initial loads and final barriers.
19428 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
19430 * Makefile.in: Fix gcov dependencies that should
19431 not point to a build folder.
19433 2015-06-01 Richard Biener <rguenther@suse.de>
19436 2015-05-29 Richard Biener <rguenther@suse.de>
19438 PR tree-optimization/66314
19439 * tree-ssa-threadupdate.c (create_block_for_threading): Add
19440 parameter that says which loop the new block belongs to.
19441 (ssa_create_duplicates): Blocks duplicated for the threaded
19442 path belong to the loop of the thread destination.
19444 2015-06-01 Martin Liska <mliska@suse.cz>
19446 * sched-deps.c: Include pool-alloc.h before
19447 cselib.h header file is included.
19449 2015-06-01 Richard Biener <rguenther@suse.de>
19451 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
19454 2015-06-01 Martin Liska <mliska@suse.cz>
19456 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
19457 a function local variable.
19459 2015-06-01 Martin Liska <mliska@suse.cz>
19461 * alloc-pool.c (create_alloc_pool): Remove.
19462 (empty_alloc_pool): Likewise.
19463 (free_alloc_pool): Likewise.
19464 (free_alloc_pool_if_empty): Likewise.
19465 (pool_alloc): Likewise.
19466 (pool_free): Likewise.
19467 * alloc-pool.h: Remove old declarations.
19469 2015-06-01 Martin Liska <mliska@suse.cz>
19471 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
19472 (ira_create_object): Likewise.
19473 (ira_create_allocno): Likewise.
19474 (ira_create_live_range): Likewise.
19475 (copy_live_range): Likewise.
19476 (ira_finish_live_range): Likewise.
19477 (ira_free_allocno_costs): Likewise.
19478 (finish_allocno): Likewise.
19479 (finish_allocnos): Likewise.
19480 (initiate_prefs): Likewise.
19481 (ira_create_pref): Likewise.
19482 (finish_pref): Likewise.
19483 (finish_prefs): Likewise.
19484 (initiate_copies): Likewise.
19485 (ira_create_copy): Likewise.
19486 (finish_copy): Likewise.
19487 (finish_copies): Likewise.
19488 (finish_prefs): Likewise.
19490 2015-06-01 Martin Liska <mliska@suse.cz>
19492 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
19493 (allocate_and_init_ipcp_value): Likewise.
19494 (ipcp_lattice::add_value): Likewise.
19495 (merge_agg_lats_step): Likewise.
19496 (ipcp_driver): Likewise.
19497 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
19498 (ipa_free_all_structures_after_iinln): Likewise.
19499 * ipa-prop.h: Likewise.
19501 2015-06-01 Martin Liska <mliska@suse.cz>
19503 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
19505 (set_hint_predicate): Likewise.
19506 (inline_summary_alloc): Likewise.
19507 (reset_inline_edge_summary): Likewise.
19508 (reset_inline_summary): Likewise.
19509 (set_cond_stmt_execution_predicate): Likewise.
19510 (set_switch_stmt_execution_predicate): Likewise.
19511 (compute_bb_predicates): Likewise.
19512 (estimate_function_body_sizes): Likewise.
19513 (inline_free_summary): Likewise.
19515 2015-06-01 Martin Liska <mliska@suse.cz>
19517 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
19518 (ipa_edge_duplication_hook): Likewise.
19519 (ipa_free_all_structures_after_ipa_cp): Likewise.
19520 (ipa_free_all_structures_after_iinln): Likewise.
19522 2015-06-01 Martin Liska <mliska@suse.cz>
19524 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
19525 (ipa_profile_generate_summary): Likewise.
19526 (ipa_profile_read_summary): Likewise.
19527 (ipa_profile): Likewise.
19529 2015-06-01 Martin Liska <mliska@suse.cz>
19531 * tree-ssa-structalias.c (new_var_info): Use new type-based
19533 (new_constraint): Likewise.
19534 (init_alias_vars): Likewise.
19535 (delete_points_to_sets): Likewise.
19537 2015-06-01 Martin Liska <mliska@suse.cz>
19539 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
19540 (free_strinfo): Likewise.
19541 (pass_strlen::execute): Likewise.
19543 2015-06-01 Martin Liska <mliska@suse.cz>
19545 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
19547 (vn_reference_insert_pieces): Likewise.
19548 (vn_phi_insert): Likewise.
19549 (visit_reference_op_call): Likewise.
19550 (copy_phi): Likewise.
19551 (copy_reference): Likewise.
19552 (process_scc): Likewise.
19553 (allocate_vn_table): Likewise.
19554 (free_vn_table): Likewise.
19556 2015-06-01 Martin Liska <mliska@suse.cz>
19558 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
19560 (add_repeat_to_ops_vec): Likewise.
19561 (get_ops): Likewise.
19562 (maybe_optimize_range_tests): Likewise.
19563 (init_reassoc): Likewise.
19564 (fini_reassoc): Likewise.
19566 2015-06-01 Martin Liska <mliska@suse.cz>
19568 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
19570 (bitmap_set_new): Likewise.
19571 (get_or_alloc_expr_for_constant): Likewise.
19572 (get_or_alloc_expr_for): Likewise.
19573 (phi_translate_1): Likewise.
19574 (compute_avail): Likewise.
19575 (init_pre): Likewise.
19576 (fini_pre): Likewise.
19578 2015-06-01 Martin Liska <mliska@suse.cz>
19580 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
19581 (delete_dep_node): Likewise.
19582 (create_deps_list): Likewise.
19583 (free_deps_list): Likewise.
19584 (sched_deps_init): Likewise.
19585 (sched_deps_finish): Likewise.
19587 2015-06-01 Martin Liska <mliska@suse.cz>
19589 * regcprop.c (free_debug_insn_changes): Use new type-based
19591 (replace_oldest_value_reg): Likewise.
19592 (pass_cprop_hardreg::execute): Likewise.
19594 2015-06-01 Martin Liska <mliska@suse.cz>
19596 * ira-build.c (initiate_cost_vectors): Use new type-based
19598 (ira_allocate_cost_vector): Likewise.
19599 (ira_free_cost_vector): Likewise.
19600 (finish_cost_vectors): Likewise.
19602 2015-06-01 Martin Liska <mliska@suse.cz>
19604 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
19606 (free_sched_pools): Likewise.
19607 * sel-sched-ir.h (_list_alloc): Likewise.
19608 (_list_remove): Likewise.
19610 2015-06-01 Martin Liska <mliska@suse.cz>
19612 * stmt.c (add_case_node): Use new type-based pool allocator.
19613 (expand_case): Likewise.
19614 (expand_sjlj_dispatch_table): Likewise.
19616 2015-06-01 Martin Liska <mliska@suse.cz>
19618 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
19619 (free_bb): Likewise.
19620 (pass_cse_reciprocals::execute): Likewise.
19622 2015-06-01 Martin Liska <mliska@suse.cz>
19624 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
19625 (sra_deinitialize) Likewise.
19626 (create_access_1) Likewise.
19627 (build_accesses_from_assign) Likewise.
19628 (create_artificial_child_access) Likewise.
19630 2015-06-01 Martin Liska <mliska@suse.cz>
19632 * dse.c (get_group_info):Use new type-based pool allocator.
19633 (dse_step0) Likewise.
19634 (free_store_info) Likewise.
19635 (delete_dead_store_insn) Likewise.
19636 (free_read_records) Likewise.
19637 (record_store) Likewise.
19638 (replace_read) Likewise.
19639 (check_mem_read_rtx) Likewise.
19640 (scan_insn) Likewise.
19641 (dse_step1) Likewise.
19642 (dse_step7) Likewise.
19644 2015-06-01 Martin Liska <mliska@suse.cz>
19646 * df-scan.c (struct df_scan_problem_data):Use new type-based
19648 (df_scan_free_internal) Likewise.
19649 (df_scan_alloc) Likewise.
19650 (df_grow_reg_info) Likewise.
19651 (df_free_ref) Likewise.
19652 (df_insn_create_insn_record) Likewise.
19653 (df_mw_hardreg_chain_delete) Likewise.
19654 (df_insn_info_delete) Likewise.
19655 (df_free_collection_rec) Likewise.
19656 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
19657 (df_sort_and_compress_mws) Likewise.
19658 (df_ref_create_structure) Likewise.
19659 (df_ref_record) Likewise.
19661 2015-06-01 Martin Liska <mliska@suse.cz>
19663 * df-problems.c (df_chain_create):Use new type-based pool allocator.
19664 (df_chain_unlink_1) Likewise.
19665 (df_chain_unlink) Likewise.
19666 (df_chain_remove_problem) Likewise.
19667 (df_chain_alloc) Likewise.
19668 (df_chain_free) Likewise.
19669 * df.h (struct dataflow) Likewise.
19671 2015-06-01 Martin Liska <mliska@suse.cz>
19673 * cselib.c (new_elt_list):Use new type-based pool allocator.
19674 (new_elt_loc_list) Likewise.
19675 (unchain_one_elt_list) Likewise.
19676 (unchain_one_elt_loc_list) Likewise.
19677 (unchain_one_value) Likewise.
19678 (new_cselib_val) Likewise.
19679 (cselib_init) Likewise.
19680 (cselib_finish) Likewise.
19682 2015-06-01 Martin Liska <mliska@suse.cz>
19684 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
19685 (sh_reorg) Likewise.
19687 2015-06-01 Martin Liska <mliska@suse.cz>
19689 * cfg.c (initialize_original_copy_tables):Use new type-based
19691 (free_original_copy_tables) Likewise.
19692 (copy_original_table_clear) Likewise.
19693 (copy_original_table_set) Likewise.
19695 2015-06-01 Martin Liska <mliska@suse.cz>
19697 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
19699 (asan_mem_ref_new) Likewise.
19700 (free_mem_ref_resources) Likewise.
19702 2015-06-01 Martin Liska <mliska@suse.cz>
19704 * var-tracking.c (variable_htab_free):Use new type-based
19706 (attrs_list_clear) Likewise.
19707 (attrs_list_insert) Likewise.
19708 (attrs_list_copy) Likewise.
19709 (shared_hash_unshare) Likewise.
19710 (shared_hash_destroy) Likewise.
19711 (unshare_variable) Likewise.
19712 (var_reg_delete_and_set) Likewise.
19713 (var_reg_delete) Likewise.
19714 (var_regno_delete) Likewise.
19715 (drop_overlapping_mem_locs) Likewise.
19716 (variable_union) Likewise.
19717 (insert_into_intersection) Likewise.
19718 (canonicalize_values_star) Likewise.
19719 (variable_merge_over_cur) Likewise.
19720 (dataflow_set_merge) Likewise.
19721 (remove_duplicate_values) Likewise.
19722 (variable_post_merge_new_vals) Likewise.
19723 (dataflow_set_preserve_mem_locs) Likewise.
19724 (dataflow_set_remove_mem_locs) Likewise.
19725 (variable_from_dropped) Likewise.
19726 (variable_was_changed) Likewise.
19727 (set_slot_part) Likewise.
19728 (clobber_slot_part) Likewise.
19729 (delete_slot_part) Likewise.
19730 (loc_exp_insert_dep) Likewise.
19731 (notify_dependents_of_changed_value) Likewise.
19732 (emit_notes_for_differences_1) Likewise.
19733 (vt_emit_notes) Likewise.
19734 (vt_initialize) Likewise.
19735 (vt_finalize) Likewise.
19737 2015-06-01 Martin Liska <mliska@suse.cz>
19739 * ira-color.c (init_update_cost_records):Use new type-based
19741 (get_update_cost_record) Likewise.
19742 (free_update_cost_record_list) Likewise.
19743 (finish_update_cost_records) Likewise.
19744 (initiate_cost_update) Likewise.
19746 2015-06-01 Martin Liska <mliska@suse.cz>
19748 * lra.c (init_insn_regs): Use new type-based pool allocator.
19749 (new_insn_reg) Likewise.
19750 (free_insn_reg) Likewise.
19751 (free_insn_regs) Likewise.
19752 (finish_insn_regs) Likewise.
19753 (init_insn_recog_data) Likewise.
19754 (init_reg_info) Likewise.
19755 (finish_reg_info) Likewise.
19756 (lra_free_copies) Likewise.
19757 (lra_create_copy) Likewise.
19758 (invalidate_insn_data_regno_info) Likewise.
19760 2015-06-01 Martin Liska <mliska@suse.cz>
19762 * lra-lives.c (free_live_range): Use new type-based pool allocator.
19763 (free_live_range_list) Likewise.
19764 (create_live_range) Likewise.
19765 (copy_live_range) Likewise.
19766 (lra_merge_live_ranges) Likewise.
19767 (remove_some_program_points_and_update_live_ranges) Likewise.
19768 (lra_live_ranges_init) Likewise.
19769 (lra_live_ranges_finish) Likewise.
19771 2015-06-01 Martin Liska <mliska@suse.cz>
19773 * et-forest.c (et_new_occ): Use new type-based pool allocator.
19774 (et_new_tree): Likewise.
19775 (et_free_tree): Likewise.
19776 (et_free_tree_force): Likewise.
19777 (et_free_pools): Likewise.
19778 (et_split): Likewise.
19780 2015-06-01 Martin Liska <mliska@suse.cz>
19782 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
19784 * alloc-pool.h (pool_allocator::pool_allocator): New function.
19785 (pool_allocator::release): Likewise.
19786 (inline pool_allocator::release_if_empty): Likewise.
19787 (inline pool_allocator::~pool_allocator): Likewise.
19788 (pool_allocator::allocate): Likewise.
19789 (pool_allocator::remove): Likewise.
19791 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
19793 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
19796 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
19798 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
19800 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
19801 (arm_macro_fusion_p): Likewise.
19802 (arm_macro_fusion_pair_p): Likewise.
19804 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
19806 * config/aarch64/aarch64-protos.h (tune_params): Rename
19807 fuseable_ops to fusible_ops.
19808 * config/aarch64/aarch64.c (generic_tunings): Rename
19809 fuseable_ops to fusible_ops.
19810 (cortexa53_tunings): Likewise.
19811 (cortexa57_tunings): Likewise.
19812 (thunderx_tunings): Likewise.
19813 (xgene1_tunings): Likewise.
19814 (aarch64_macro_fusion_p): Likewise.
19815 (aarch64_macro_fusion_pair_p): Likewise.
19817 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
19819 * config/s390/driver-native.c: New file.
19820 * config/s390/x-native: New file.
19821 * config.host: Add new files for s390.
19822 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
19824 * config.gcc: Likewise.
19825 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
19826 * config/s390/s390-opts.h (enum processor_type): Ditto.
19827 * config/s390/s390.c (s390_option_override): Catch unhandled
19830 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
19833 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
19834 redirection for instrumented calls.
19835 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
19836 (append_compiler_options): Append -fcheck-pointer-bounds.
19837 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
19838 (chkp_redirect_edge): New.
19839 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
19840 (chkp_redirect_edge): New.
19842 2015-06-01 Richard Biener <rguenther@suse.de>
19844 PR tree-optimization/66280
19845 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
19848 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19850 * config/aarch64/aarch64.md
19851 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
19854 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
19856 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
19857 Remove obsolete kludge.
19859 2015-06-01 Richard Biener <rguenther@suse.de>
19861 * tree-ssa-reassoc.c (get_rank): Simplify.
19863 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
19865 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
19866 * configure: Regenerated.
19868 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
19870 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
19871 issue (add space between string literal and macro).
19872 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
19874 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
19876 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
19877 implict or explicit -fPIE or -fpie.
19879 2015-05-30 Mike Frysinger <vapier@gentoo.org>
19881 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
19883 2015-05-28 DJ Delorie <dj@redhat.com>
19885 * expmed.c (extract_bit_field_1): Avoid clobbering a
19886 yet-to-be-used base/index register.
19888 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
19890 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
19891 (alias_stats): Add num_universal.
19892 (alias_set_subset_of): Special case pointers; be ready for NULL
19894 (alias_sets_conflict_p): Special case pointers; be ready for NULL
19896 (init_alias_set_entry): Break out from ...
19897 (record_alias_subset): ... here; propagate new fields;
19898 allocate children only when really needed.
19899 (get_alias_set): Do less generous pointer globbing.
19900 (dump_alias_stats_in_alias_c): Update statistics.
19902 2015-05-30 Alan Modra <amodra@gmail.com>
19904 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
19905 correct block for use of r12.
19906 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
19908 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
19911 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
19914 2015-05-29 Jakub Jelinek <jakub@redhat.com>
19916 PR tree-optimization/66142
19917 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
19918 virtual phis that feed themselves.
19920 2015-05-29 Richard Biener <rguenther@suse.de>
19922 PR tree-optimization/66314
19923 * tree-ssa-threadupdate.c (create_block_for_threading): Add
19924 parameter that says which loop the new block belongs to.
19925 (ssa_create_duplicates): Blocks duplicated for the threaded
19926 path belong to the loop of the thread destination.
19928 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19930 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
19931 to cleanup-saved-temps.
19932 * doc/sourcebuild.texi (Clean up generated test files): Expand
19934 (dg-keep-saved-temps): Document new proc.
19935 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
19936 cleanup-saved-temps): Remove.
19938 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
19940 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
19941 gcc_AC_CHECK_DECLS.
19942 * configure: Regenerate.
19944 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19946 * config/nios2/linux.h (CPP_SPEC): Define.
19948 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19950 * config/microblaze/linux.h (CPP_SPEC): Define.
19952 2015-05-28 Mike Frysinger <vapier@gentoo.org>
19954 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
19955 -pthread is specified.
19957 2015-05-28 Richard Biener <rguenther@suse.de>
19959 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
19960 (vect_fixup_scalar_cycles_with_patterns): Likewise.
19961 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
19962 after pattern recog.
19963 (vect_create_epilog_for_reduction): Properly handle reductions
19965 (vectorizable_reduction): Likewise.
19966 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
19968 (vect_get_constant_vectors): Create the correct number of
19969 initial values for reductions.
19970 (vect_schedule_slp_instance): Handle reduction chains that are
19971 type changing properly.
19972 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
19974 2015-05-28 Richard Biener <rguenther@suse.de>
19976 PR tree-optimization/66142
19977 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
19978 values better in memcpy destination handling. Handle non-aliasing
19981 2015-05-28 Lawrence Velázquez <vq@larryv.me>
19984 * config/darwin-c.c (version_components): New global enum.
19985 (parse_version, version_as_legacy_macro)
19986 (version_as_modern_macro, macosx_version_as_macro): New functions.
19987 (version_as_macro): Remove.
19988 (darwin_cpp_builtins): Use new function.
19990 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
19992 * builtins.c (expand_builtin_acc_on_device): Mark parameters
19993 with ATTRIBUTE_UNUSED.
19995 2015-05-28 Julian Brown <julian@codesourcery.com>
19999 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
20000 sequence for !ACCEL_COMPILER.
20002 2015-05-28 Nick Clifton <nickc@redhat.com>
20004 * config/rx/rx.c (push_regs): New function. Extracts code from...
20005 (rx_expand_prologue): ... here. Use push_regs to push even small
20006 spans of registers.
20007 (pop_regs): New function.
20008 (rx_expand_epilogue): Use pop_regs to pop even small spans of
20011 2015-05-28 Richard Biener <rguenther@suse.de>
20013 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
20015 (SLP_INSTANCE_BODY_COST_VEC): Remove.
20016 (vect_update_slp_costs_according_to_vf): Likewise.
20017 (vect_slp_analyze_operations): Update prototype.
20018 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
20019 vect_update_slp_costs_according_to_vf, adjust.
20020 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
20021 (vect_analyze_slp_cost_1): Likewise.
20022 (vect_analyze_slp_cost): Likewise. Properly deal with
20023 widening reduction ops. Commit body costs.
20024 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
20025 cost for loops from here.
20026 (vect_slp_analyze_operations): But do it from here when
20027 the vectorization factor is known and stmts are analyzed.
20028 (vect_bb_vectorization_profitable_p): Simplify.
20029 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
20030 (vect_update_slp_costs_according_to_vf): Remove.
20032 2015-05-27 Magnus Granberg <zorry@gentoo.org>
20033 H.J. Lu <hongjiu.lu@intel.com>
20035 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
20036 (BUILD_CFLAGS): Likewise.
20037 (BUILD_CXXFLAGS): Likewise.
20038 (LINKER): Add @NO_PIE_FLAG@.
20039 (BUILD_LDFLAGS): Likewise.
20040 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
20041 --enable-default-pie.
20042 * common.opt (fPIE): Initialize to -1.
20044 (no-pie): New option.
20045 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
20046 * configure.ac: Add --enable-default-pie.
20047 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
20048 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
20049 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
20050 * gcc.c (NO_PIE_SPEC): New.
20051 (PIE_SPEC): Likewise.
20052 (NO_FPIE1_SPEC): Likewise.
20053 (FPIE1_SPEC): Likewise.
20054 (NO_FPIE2_SPEC): Likewise.
20055 (FPIE2_SPEC): Likewise.
20056 (NO_FPIE2_SPEC): Likewise.
20057 (FPIE_SPEC): Likewise.
20058 (NO_FPIE_SPEC): Likewise.
20059 (NO_FPIC1_SPEC): Likewise.
20060 (FPIC1_SPEC): Likewise.
20061 (NO_FPIC2_SPEC): Likewise.
20062 (FPIC2_SPEC): Likewise.
20063 (NO_FPIC2_SPEC): Likewise.
20064 (FPIC_SPEC): Likewise.
20065 (NO_FPIC_SPEC): Likewise.
20066 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
20067 (FPIE1_OR_FPIC1_SPEC): Likewise.
20068 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
20069 (FPIE2_OR_FPIC2_SPEC): Likewise.
20070 (NO_FPIE_AND_FPIC_SPEC): Likewise.
20071 (FPIE_OR_FPIC_SPEC): Likewise.
20072 (LD_PIE_SPEC): Likewise.
20073 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
20074 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
20075 * config/darwin.h (PIE_SPEC): Renamed to ...
20076 (DARWIN_PIE_SPEC): This.
20077 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
20078 * config/darwin9.h (PIE_SPEC): Renamed to ...
20079 (DARWIN_PIE_SPEC): This.
20080 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
20081 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20082 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
20083 FPIE2_OR_FPIC2_SPEC.
20084 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
20085 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
20086 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
20087 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20088 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20089 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
20090 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
20091 * config/m32r/m32r.h (ASM_SPEC): Likewise.
20092 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
20093 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
20094 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
20095 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
20096 * config/sparc/linux.h (ASM_SPEC): Likewise.
20097 * config/sparc/linux64.h (ASM_SPEC): Likewise.
20098 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
20099 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
20100 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
20101 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
20102 * config/sparc/sparc.h (ASM_SPEC): Likewise.
20103 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
20104 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
20105 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
20106 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
20107 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
20108 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
20109 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
20110 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
20111 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
20112 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
20113 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
20114 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
20115 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
20116 * config/vax/linux.h (ASM_SPEC): Likewise.
20117 * doc/install.texi: Document --enable-default-pie.
20118 * doc/invoke.texi: Document -no-pie.
20119 * config.in: Regenerated.
20120 * configure: Likewise.
20122 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
20124 PR rtl-optimization/66168
20125 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
20126 can_move_invariant_reg.
20128 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
20131 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
20132 REG_EQUAL note when doing insert.
20134 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
20135 instead of "%d" for 'o' operand.
20137 2015-05-27 Nathan Sidwell <nathan@acm.org>
20140 * tree.c (build_pointer_type_for_mode): Canonical type does not
20141 inherit can_alias_all.
20142 (build_reference_type_for_mode): Likewise.
20144 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
20146 * expr.h (array_at_struct_end_p): Move to...
20147 (array_ref_element_size): Likewise.
20148 (component_ref_field_offset): Likewise.
20149 * tree.h (array_ref_element_size): ...here.
20150 (array_at_struct_end_p): Likewise.
20151 (component_ref_field_offset): Likewise.
20152 * expr.c (array_ref_element_size): Move to...
20153 (array_ref_low_bound): Likewise.
20154 (array_at_struct_end_p): Likewise.
20155 (array_ref_up_bound): Likewise.
20156 (component_ref_field_offset): Likewise.
20157 * tree.c (array_ref_element_size): ...here.
20158 (array_ref_low_bound): Likewise.
20159 (array_ref_up_bound): Likewise.
20160 (array_at_struct_end_p): Likewise.
20161 (component_ref_field_offset): Likewise.
20163 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20164 Szabolcs Nagy <szabolcs.nagy@arm.com>
20166 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
20168 2015-05-27 Jason Merrill <jason@redhat.com>
20171 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
20172 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
20173 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
20175 2015-05-22 Aditya Kumar <hiraditya@msn.com>
20177 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
20180 * statistics.c (statistics_fini_pass): Print pass name.
20182 2015-05-27 Richard Biener <rguenther@suse.de>
20184 PR tree-optimization/66272
20186 2014-08-15 Richard Biener <rguenther@suse.de>
20188 PR tree-optimization/62031
20189 * tree-data-ref.c (dr_analyze_indices): Do not set
20190 DR_UNCONSTRAINED_BASE.
20191 (dr_may_alias_p): All indirect accesses have to go the
20192 formerly DR_UNCONSTRAINED_BASE path.
20193 * tree-data-ref.h (struct indices): Remove
20194 unconstrained_base member.
20195 (DR_UNCONSTRAINED_BASE): Remove.
20197 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
20199 * dwarf2out.c: Remove block_map.
20200 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
20201 (gen_lexical_block_die): Same.
20202 (dwarf2out_function_decl): Remove block_map use.
20203 (dwarf2out_c_finalize): Same.
20204 * tree-core.h (struct tree_block): Add die field.
20205 * tree.h (BLOCK_DIE): New.
20207 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20210 * expr.c (memory_load_overlap): New function.
20211 (emit_push_insn): When pushing partial args to the stack would
20212 clobber the register part load the overlapping part into a pseudo
20213 and put it into the hard reg after pushing. Change return type
20214 to bool. Add bool argument.
20215 * expr.h (emit_push_insn): Change return type to bool.
20217 * calls.c (expand_call): Cancel sibcall optimization when encountering
20218 partial argument on targets with ARGS_GROW_DOWNWARD and
20219 !STACK_GROWS_DOWNWARD.
20220 (emit_library_call_value_1): Update callsite of emit_push_insn.
20221 (store_one_arg): Likewise.
20223 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
20225 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
20227 2015-05-27 Martin Liska <mliska@suse.cz>
20229 * Makefile.in: Add additional dependencies related to memory report
20231 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
20232 * bitmap.c (struct bitmap_descriptor_d): Remove.
20233 (struct loc): Likewise.
20234 (struct bitmap_desc_hasher): Likewise.
20235 (bitmap_desc_hasher::hash): Likewise.
20236 (bitmap_desc_hasher::equal): Likewise.
20237 (get_bitmap_descriptor): Likewise.
20238 (bitmap_register): User new memory descriptor API.
20239 (register_overhead): Likewise.
20240 (bitmap_find_bit): Register nsearches and search_iter statistics.
20241 (struct bitmap_output_info): Remove.
20242 (print_statistics): Likewise.
20243 (dump_bitmap_statistics): Use new memory descriptor.
20244 * bitmap.h (struct bitmap_usage): New class.
20245 * genmatch.c: Extend header file inclusion.
20246 * genpreds.c: Likewise.
20247 * ggc-common.c (struct ggc_usage): New class.
20248 (struct ggc_loc_desc_hasher): Remove.
20249 (ggc_loc_desc_hasher::hash): Likewise.
20250 (ggc_loc_desc_hasher::equal): Likewise.
20251 (struct ggc_ptr_hash_entry): Likewise.
20252 (struct ptr_hash_hasher): Likewise.
20253 (ptr_hash_hasher::hash): Likewise.
20254 (ptr_hash_hasher::equal): Likewise.
20255 (make_loc_descriptor): Likewise.
20256 (ggc_prune_ptr): Likewise.
20257 (dump_ggc_loc_statistics): Use new memory descriptor.
20258 (ggc_record_overhead): Likewise.
20259 (ggc_free_overhead): Likewise.
20260 (final_cmp_statistic): Remove.
20261 (cmp_statistic): Likewise.
20262 (ggc_add_statistics): Liekwise.
20263 (ggc_prune_overhead_list): Likewise.
20264 * hash-map-traits.h: New file.
20265 * hash-map.h (struct default_hashmap_traits): Move the traits to a
20266 separate header file.
20267 * hash-set.h: Pass memory statistics info to ctor.
20268 * hash-table.c (void dump_hash_table_loc_statistics): New function.
20269 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
20270 (hash_table::~hash_table): Register memory release operation.
20271 (hash_table::alloc_entries): Handle memory allocation operation.
20272 (hash_table::expand): Likewise.
20273 * inchash.c (iterative_hash_hashval_t): Move implementation to header
20275 (iterative_hash_host_wide_int): Likewise.
20276 * inchash.h (class hash): Likewise.
20277 * mem-stats-traits.h: New file.
20278 * mem-stats.h: New file.
20279 (mem_location): Add new class.
20280 (mem_usage): Likewise.
20281 (mem_alloc_description): Likewise.
20282 * sese.c: Add new header file inclusision.
20283 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
20285 * tree-sra.c: Add new header file inclusision.
20286 * vec.c (struct vec_descriptor): Remove.
20287 (hash_descriptor): Likewise.
20288 (struct vec_usage): Likewise.
20289 (struct ptr_hash_entry): Likewise.
20290 (hash_ptr): Likewise.
20291 (eq_ptr): Likewise.
20292 (vec_prefix::register_overhead): Use new memory descriptor API.
20293 (vec_prefix::release_overhead): Likewise.
20294 (add_statistics): Remove.
20295 (dump_vec_loc_statistics): Use new memory descriptor API.
20296 * vec.h (struct vec_prefix): Likewise.
20297 (va_heap::reserve): Likewise.
20298 (va_heap::release): Likewise.
20299 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
20301 2015-05-27 Richard Biener <rguenther@suse.de>
20303 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
20304 earlier and remove ??? comment.
20305 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
20306 and got called from loop analysis bail out. Always pass the SLP
20307 node to the vectorizable_* functions.
20308 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
20309 the premature SLP check here.
20310 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
20311 detected SLP stmts.
20312 (vect_detect_hybrid_slp_1): Likewise.
20314 2015-05-26 Jeff Law <law@redhat.com>
20316 * combine.c (find_split_point): Verify that the shift count is a
20317 constant when choosing (plus (ashift ...)) as a split point.
20319 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
20320 No functional changes.
20322 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
20324 * ipa-polymorphic-call.c
20325 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
20326 case when call target is already known.
20328 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
20331 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
20332 take into account the case that operands[1] and operands[2]
20333 are the same register.
20335 2015-05-26 Michael Matz <matz@suse.de>
20337 PR middle-end/66251
20339 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
20341 (vect_create_vectorized_demotion_stmts): Always set
20342 STMT_VINFO_VEC_STMT, also with SLP.
20343 (vectorizable_store): Handle strided group stores.
20345 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20348 * config/aarch64/aarch64.md
20349 (*adds_shift_imm_<mode>): New pattern.
20350 (*subs_shift_imm_<mode>): Likewise.
20351 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20352 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
20353 (*add_uxt<mode>_shift2): Likewise.
20354 (*add_uxtsi_shift2_uxtw): Likewise.
20355 (*sub_uxt<mode>_shift2): Likewise.
20356 (*sub_uxtsi_shift2_uxtw): Likewise.
20358 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
20360 * config/rs6000/constraints.md (Y, U): Use match_test.
20362 2015-05-26 Christian Bruel <christian.bruel@st.com>
20365 * config/arm/arm.c (arm_option_check_internal)
20366 (arm_option_params_internal): Check opts->target_flags to set macros.
20367 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20368 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
20369 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20370 (builtin_define): Replaced with def_or_undef_macro.
20371 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
20372 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
20373 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
20374 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
20375 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
20376 (TARGET_ARM_FEATURE_LDREX_P)
20377 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
20378 * config/arm/arm-c.c (def_or_undef_macro): New function.
20379 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
20381 2015-05-26 Christian Bruel <christian.bruel@st.com>
20383 * c-common.h (builtin_define_with_int_value)
20384 (builtin_define_type_sizeof): Declare.
20385 * c-cppbuiltin.c (builtin_define_with_int_value)
20386 (builtin_define_type_sizeof): Externalize.
20387 (builtin_define_std): Cleanup declaration.
20388 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
20389 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
20390 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
20391 (builtin_define, builtin_assert): New macros.
20393 2015-05-26 Richard Biener <rguenther@suse.de>
20395 PR tree-optimization/66142
20396 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
20397 MEM_REFs for the same base address.
20399 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20402 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
20404 2015-05-26 Jason Merrill <jason@redhat.com>
20406 * configure.ac: Set CXXFLAGS for ISL test.
20407 * configure: Regenerate.
20409 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
20410 strstr and basename.
20411 * configure: Regenerate.
20413 2015-05-26 Richard Biener <rguenther@suse.de>
20415 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
20416 X % C -> X & (C - 1) for C being a power-of two to ...
20417 * match.pd: ... patterns.
20419 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
20421 * match.pd (swapped_tcc_comparison): New operator list.
20422 (-A CMP -B): New simplification.
20423 * fold-const.c (fold_comparison): Remove corresponding code.
20425 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
20427 * caller-save.c (init_caller_save): Base temporary register numbers
20428 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
20429 * cfgloopanal.c (init_set_costs): Likewise.
20430 * dojump.c (prefer_and_bit_test): Likewise.
20431 * expr.c (init_expr_target): Likewise.
20432 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20433 * lower-subreg.c (init_lower_subreg): Likewise.
20434 * postreload.c (reload_cse_regs_1): Likewise.
20436 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
20438 * gensupport.h (compute_test_codes): Declare.
20439 * gensupport.c (compute_predicate_codes): Rename to...
20440 (compute_test_codes): ...this. Generalize error message.
20441 (process_define_predicate): Update accordingly.
20442 * genpreds.c (compute_maybe_allows): Delete.
20443 (add_constraint): Use compute_test_codes to determine whether
20444 something can accept a SUBREG, REG or MEM.
20446 2015-05-26 Torvald Riegel <triegel@redhat.com>
20448 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
20449 'memory model' to align with C++11; fix description of memory orders;
20452 2015-05-26 Richard Biener <rguenther@suse.de>
20454 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
20455 (vect_analyze_loop_operations): ... here. Remove slp parameter,
20456 detect whether we apply SLP. Remove call to
20457 vect_update_slp_costs_according_to_vf.
20458 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
20459 vect_update_slp_costs_according_to_vf from here. Dispatch
20460 to vect_slp_analyze_operations to analyze SLP stmts.
20461 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
20462 unused bb_vec_info parameter, adjust assert.
20463 (vect_slp_analyze_operations): Pass in the slp instance tree
20464 instead of bb_vec_info.
20465 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
20466 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
20468 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
20470 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
20471 Q_REGS. Expand comment.
20472 (REG_CLASS_NAMES): Ditto.
20473 (REG_CLASS_CONTENTS): Ditto.
20475 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
20478 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
20479 when LEGACY_INT_REGNO_P is processed.
20481 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
20483 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
20485 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
20487 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
20488 register if not marked dead/unused, before return.
20490 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
20493 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
20494 is set; check for assembler name at LTO time.
20495 (type_in_anonymous_namespace): Remove hacks, check that all
20496 anonymous types are called "<anon>"
20497 (odr_type_p): Simplify; add check for "<anon>"
20498 (odr_subtypes_equivalent): Add odr_type_p check.
20499 * tree.c (need_assembler_name_p): Even anonymous namespace needs
20502 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
20504 * ipa-utils.h (method_class_type): Remove.
20505 * cgraphunit.c (walk_polymorphic_call_targets): Use
20506 TYPE_METHOD_BASETYPE.
20507 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
20508 on main variants only.
20509 (method_class_type): Remove.
20510 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
20511 (build_type_inheritance_graph): Likewise.
20512 * ipa-icf.c (sem_function::equals_wpa): Likewise.
20513 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
20514 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
20516 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
20518 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
20519 is_typedef_decl, typedef_variant_p): Constify.
20520 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
20521 is_typedef_decl, typedef_variant_p): Constify.
20523 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20525 * defaults.h (gen_tablejump): New function.
20526 (HAVE_tablejump): Add default value.
20528 * stmt.c: Likewise.
20530 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20532 * defaults.h (gen_store_multiple): New function.
20533 (HAVE_store_multiple): Add default value.
20534 * expr.c (move_block_from_reg): Adjust.
20536 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20538 * defaults.h (gen_load_multiple): New function.
20539 (HAVE_load_multiple): Add default value.
20540 * expr.c (move_block_to_reg): Adjust.
20542 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20544 * defaults.h (gen_mem_signal_fence): New function.
20545 (HAVE_mem_signal_fence): Add default value.
20546 * optabs.c: Adjust.
20548 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20550 * defaults.h (gen_memory_barrier): New function.
20551 (HAVE_memory_barrier): Add default value.
20552 * optabs.c: Adjust.
20554 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20556 * defaults.h (gen_mem_thread_fence): New function.
20557 (HAVE_mem_thread_fence): Add default definition.
20558 * optabs.c: Adjust.
20560 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20562 * combine.c (find_split_point): Check the value of HAVE_lo_sum
20563 instead of if it is defined.
20564 (combine_simplify_rtx): Likewise.
20565 * lra-constraints.c (process_address_1): Likewise.
20566 * config/darwin.c: Adjust.
20567 * genconfig.c (main): Always define HAVE_lo_sum.
20569 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20571 * genmatch.c (parser::parse_operation): Reject expanding
20572 operator-list inside 'for'.
20574 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20576 * genmatch.c (parser::parse_for): Reject iterator if used as
20579 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
20581 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
20582 after end of id-list.
20584 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
20586 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
20587 we do not try to compute canonical type for type that does not need
20589 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
20591 * tree.h (type_with_alias_set_p): New.
20593 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
20595 * tree.c (gimple_canonical_types_compatible_p): Do not compare
20596 function attributes.
20597 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
20599 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
20601 * Makefile.in (check_gcc_parallelize): Delete.
20602 (lang_checks_parallelized): Update comment.
20604 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
20606 PR rtl-optimization/66237
20607 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
20608 location of an "as_a" cast.
20610 2015-05-22 Jeff Law <law@redhat.com>
20612 * config/pa/pa.md (non-canonical shift-add insns): Remove.
20613 (peepholes with non-canonical RTL sources): Remove.
20614 (peepholes for indexed stores of FP regs in integer modes): Match and
20615 generate canonical RTL.
20617 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20619 PR tree-optimization/63387
20620 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
20621 ((x ord x) & (y ord y) -> (x ord y),
20622 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
20623 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
20624 vectors like scalars.
20626 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20628 * convert.c (convert_to_integer, convert_to_vector): Include the
20629 types in the error message.
20631 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
20633 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
20636 2015-05-22 Jeff Law <law@redhat.com>
20638 * config/pa/pa.md (integer_indexed_store splitters): Use
20639 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
20640 insns -- adjusting the constant 2nd operand accordingly.
20642 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
20643 (plus (ashift X log2) Y) if it is a split point.
20645 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
20646 out of hppa_legitimize_address to handle both forms of a multiply
20648 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
20649 Always generate the ASHIFT variant as the result is not directly
20650 used in a MEM. Update comments and refactor slightly to improve
20653 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20656 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
20657 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
20658 (aarch64_composite_type_p): Return false if given type and mode are
20659 for a short vector.
20661 2015-05-22 Richard Biener <rguenther@suse.de>
20663 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
20665 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
20666 patterns when determining whether SLP is pure.
20667 (vect_is_slp_reduction): Remove check for pattern stmts.
20668 (vect_is_simple_reduction_1): Remove dead code.
20669 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
20670 (vect_get_and_check_slp_defs): Pass in the stmt number.
20671 Allow the first def in a reduction to be not a pattern stmt when
20672 the rest of the stmts def are patterns.
20673 (vect_build_slp_tree_1): Allow tcc_expression codes like
20674 SAD_EXPR and DOT_PROD_EXPR.
20675 (vect_build_slp_tree): Adjust.
20676 (vect_analyze_slp): Refactor and move BB vect error message ...
20677 (vect_slp_analyze_bb_1): ... here.
20679 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
20681 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
20682 for CSWTCH temporary.
20684 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20686 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
20687 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
20690 2015-05-22 Richard Biener <rguenther@suse.de>
20692 PR tree-optimization/66251
20693 * tree-vect-stmts.c (vectorizable_conversion): Properly
20694 set STMT_VINFO_VEC_STMT even for the SLP case.
20696 2015-05-22 Marek Polacek <polacek@redhat.com>
20698 * doc/extend.texi: Use @pxref instead of @xref.
20700 2015-05-22 hiraditya <hiraditya@msn.com>
20702 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
20705 2015-05-22 Richard Biener <rguenther@suse.de>
20707 PR tree-optimization/65701
20708 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
20709 Move peeling cost models into one place. Peel for alignment
20710 for single loads only if an aligned load is cheaper than
20713 2015-05-22 Marek Polacek <polacek@redhat.com>
20716 * doc/extend.texi (Enumerator Attributes): New section.
20717 Document syntax of enumerator attributes.
20719 2015-05-22 Richard Biener <rguenther@suse.de>
20721 * tree-vect-loop.c (get_reduction_op): New function.
20722 (vect_model_reduction_cost): Use it, add reduc_index parameter.
20723 Make ready for BB reductions.
20724 (vect_create_epilog_for_reduction): Use get_reduction_op.
20725 (vectorizable_reduction): Init reduc_index to a valid value.
20726 Adjust vect_model_reduction_cost call.
20727 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
20728 operand for reduction defaults. Add SAD_EXPR support.
20729 Assert we have a neutral op for SLP reductions.
20730 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
20731 walking pattern stmt ops only recurse to SSA names.
20733 2015-05-22 Richard Biener <rguenther@suse.de>
20735 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
20736 assert with guard, remove check on detected reduction.
20737 (vect_recog_sad_pattern): Likewise.
20738 (vect_recog_widen_sum_pattern): Likewise.
20740 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20742 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
20743 __always_inline__ attribute.
20744 (vaesdq_u8): Likewise.
20745 (vaesmcq_u8): Likewise.
20746 (vaesimcq_u8): Likewise.
20747 (vsha1cq_u32): Likewise.
20748 (vsha1mq_u32): Likewise.
20749 (vsha1pq_u32): Likewise.
20750 (vsha1h_u32): Likewise.
20751 (vsha1su0q_u32): Likewise.
20752 (vsha1su1q_u32): Likewise.
20753 (vsha256hq_u32): Likewise.
20754 (vsha256h2q_u32): Likewise.
20755 (vsha256su0q_u32): Likewise.
20756 (vsha256su1q_u32): Likewise.
20757 (vmull_p64): Likewise.
20758 (vmull_high_p64): Likewise.
20760 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20762 * final.c (final_scan_insn): Don't check HAVE_peephole with the
20764 * output.h: Likewise.
20765 * genconfig.c (main): Alwways define HAVE_peephole.
20766 * genpeep.c: Don't emit checks of HAVE_peephole.
20768 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20770 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
20771 check HAVE_conditional_move with the preprocessor.
20773 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20775 * genconfig.c (main): Always define HAVE_conditional_move.
20776 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
20777 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
20780 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20782 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
20783 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
20784 and FRAME_POINTER_REGNUM with the preprocessor.
20786 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20788 * defaults.h: Add default for STACK_PUSH_CODE.
20789 * expr.c: Don't redefine STACK_PUSH_CODE.
20790 * recog.c: Likewise.
20792 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20794 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
20795 sched-deps.c: Use if instead of preprocessor checks with
20796 STACK_GROWS_DOWNWARD.
20798 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20800 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
20802 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
20803 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
20804 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
20805 * doc/tm.texi: Regenerate.
20807 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
20810 * config/i386/constraints.md (Bg): New constraint for GOT memory
20812 * config/i386/i386.md (*call_got_x32): New pattern.
20813 (*call_value_got_x32): Likewise.
20814 * config/i386/predicates.md (GOT_memory_operand): New predicate.
20816 2015-05-21 Jakub Jelinek <jakub@redhat.com>
20818 PR tree-optimization/66233
20819 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
20822 2015-05-21 Jeff Law <law@redhat.com>
20824 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
20825 than MULT for shadd sequences.
20827 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
20829 * alias.c (alias_stats): New static var.
20830 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
20831 (dump_alias_stats_in_alias_c): New function.
20832 * alias.h (dump_alias_stats_in_alias_c): Declare.
20833 * tree-ssa-alias.c (dump_alias_stats): Call it.
20835 2015-05-08 Michael Matz <matz@suse.de>
20837 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
20839 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
20840 (STMT_VINFO_STRIDED_P): ... this.
20841 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
20842 (vect_verify_datarefs_alignment): Likewise.
20843 (vect_enhance_data_refs_alignment): Likewise.
20844 (vect_analyze_data_ref_access): Likewise.
20845 (vect_analyze_data_refs): Accept strided stores.
20846 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
20847 (vect_model_load_cost): Adjust for macro rename.
20848 (vectorizable_mask_load_store): Likewise.
20849 (vectorizable_load): Likewise.
20850 (vectorizable_store): Open code strided stores.
20852 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20854 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
20855 Document sqrt_insn.
20857 2015-05-21 Richard Biener <rguenther@suse.de>
20860 * match.pd: Guard pattern optimzing (int)(float)int
20861 conversions to apply only on GIMPLE.
20863 2015-05-21 Jeff Law <law@redhat.com>
20865 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
20866 multiply-accumulate/shift-add insn generation.
20868 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
20871 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
20872 operands[1] are the same.
20874 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
20876 PR middle-end/66221
20877 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
20878 build_distinct_type_copy to copy bounds.
20880 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
20882 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
20883 Change to unsigned int.
20885 2015-05-20 Jeff Law <law@redhat.com>
20887 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
20888 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
20889 (pa_shadd_constant_p): Allow constants for shadd insns rather
20890 than valid scaling constants for memory addresses.
20891 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
20892 * config/pa/predicates.md (mem_shadd_operand): New predicate.
20893 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
20894 (shift-add insns using ASHIFT): New patterns.
20896 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
20898 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
20900 (fix_up_fall_thru_edges): Likewise.
20901 (fix_crossing_conditional_branches): Likewise. Promote jump targets
20902 from to rtx_insn to rtx_code_label where feasible.
20903 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
20904 gen_move_insn (returned type changed to rtx_insn).
20905 * builtins.c (expand_errno_check): Fix arguments of
20906 do_compare_rtx_and_jump (now expects rtx_code_label).
20907 (expand_builtin_acc_on_device): Likewise.
20908 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
20909 invert_jump (now exprects rtx_jump_insn).
20910 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
20911 (construct_init_block): Use rtx_code_label.
20912 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
20913 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
20914 calling redirect_jump.
20915 (patch_jump_insn): Likewise.
20916 (redirect_branch_edge): Likewise.
20917 (force_nonfallthru_and_redirect): Likewise.
20918 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
20920 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
20921 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
20922 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
20923 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
20924 to store the value retured by gen_label_rtx.
20925 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
20927 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
20928 (split_branches): Fix calls of redirect_jump.
20929 * dojump.c (jumpifnot): Promote argument type from rtx to
20931 (jumpifnot_1): Likewise.
20932 (jumpif): Likewise.
20933 (jumpif_1): Likewise.
20934 (do_jump_1): Likewise.
20935 (do_jump): Likewise. Use rtx_code_label when feasible.
20936 (do_jump_by_parts_greater_rtx): Likewise.
20937 (do_jump_by_parts_zero_rtx): Likewise.
20938 (do_jump_by_parts_equality_rtx): Likewise.
20939 (do_compare_rtx_and_jump): Likewise.
20940 * dojump.h: Update function prototypes.
20941 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
20943 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
20945 (emit_label_before): Likewise.
20946 (emit_jump_insn_after_noloc): Likewise.
20947 (emit_jump_insn_after_setloc): Likewise.
20948 (emit_jump_insn_after): Likewise
20949 (emit_jump_insn_before_setloc): Likewise.
20950 (emit_jump_insn_before): Likewise.
20951 (emit_label_before): Promote return type to rtx_code_label.
20952 (emit_label): Likewise.
20953 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
20954 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
20956 (emit_stack_restore): Likewise.
20957 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
20958 (do_cmp_and_jump): Likewise.
20959 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
20960 from rtx to rtx_code_label.
20961 (gen_move_insn_uncast): New function.
20962 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
20963 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
20964 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
20965 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
20966 invert_jump_1 and redirect_jump_1.
20967 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
20968 do_compare_rtx_and_jump.
20969 (expand_addsub_overflow): Likewise.
20970 (expand_neg_overflow): Likewise.
20971 (expand_mul_overflow): Likewise.
20972 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
20973 return value of gen_move_insn.
20974 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
20975 * loop-doloop.c (add_test): Use rtx_code_label.
20976 (doloop_modify): Likewise.
20977 (doloop_optimize): Likewise.
20978 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
20979 * lra-constraints.c (emit_spill_move): Remove cast of value returned
20981 (inherit_reload_reg): Add cast when calling dump_insn_slim.
20982 (split_reg): Likewise.
20983 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
20985 * optabs.c (expand_binop_directly): Remove casts of values returned by
20987 (expand_unop_direct): Likewise.
20988 (expand_abs): Likewise.
20989 (maybe_emit_unop_insn): Likewise.
20990 (maybe_gen_insn): Promote return type to rtx_insn.
20991 * optabs.h: Update prototype of maybe_gen_insn.
20992 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
20994 * recog.c (struct peep2_insn_data): Promote type of insn field to
20996 (peep2_reinit_state): Use NULL instead of NULL_RTX.
20997 (peep2_attempt): Remove casts of insn in peep2_insn_data.
20998 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
20999 * recog.h (struct insn_gen_fn): Promote return types of function
21000 pointers and operator ().from rtx to rtx_insn.
21001 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
21002 (fill_eager_delay_slots): Likewise.
21003 (relax_delay_slots): Likewise.
21004 (make_return_insns): Likewise.
21005 (dbr_schedule): Likewise.
21006 (optimize_skips): Likewise.
21007 (reorg_redirect_jump): Likewise.
21008 (fill_slots_from_thread): Likewise.
21009 * reorg.h: Update prototypes.
21010 * resource.c (find_dead_or_set_registers): Use dyn_cast to
21011 rtx_jump_insn instead of check. Use it's jump_target method.
21012 * rtl.h (rtx_jump_insn::jump_label): Define new method.
21013 (rtx_jump_insn::jump_target): Define new method.
21014 (rtx_jump_insn::set_jump_target): Define new method.
21015 * rtlanal.c (tablejump_p): Promote type of one local variable.
21016 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
21017 (sched_analyze_insn): Likewise.
21018 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
21019 (print_insn): Likewise.
21020 * stmt.c (label_rtx): Promote return type to rtx_insn.
21021 (force_label_rtx): Likewise.
21022 (jump_target_rtx): Define new function.
21023 (expand_label): Use it, get rid of one cast.
21024 (expand_naked_return): Promote rtx to rtx_code_label.
21025 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
21026 (expand_case): Use rtx_code_label instread of rtx where feasible.
21027 (expand_sjlj_dispatch_table): Likewise.
21028 (emit_case_nodes): Likewise.
21029 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
21030 * store-motion.c (insert_store): Make use of new return type of
21031 gen_move_insn and remove a cast.
21032 (replace_store_insn): Likewise.
21034 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
21036 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
21037 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
21039 2015-05-20 Jeff Law <law@redhat.com>
21041 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
21042 dispose of the jump thread path when the jump threading
21043 opportunity is cancelled.
21045 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
21047 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
21048 when printing the caret character.
21050 2015-05-20 Marek Polacek <polacek@redhat.com>
21052 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
21054 2015-05-20 Marek Polacek <polacek@redhat.com>
21056 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
21057 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
21058 * gimple-fold.c (canonicalize_bool): Likewise.
21059 (same_bool_result_p): Likewise.
21060 * tree-if-conv.c (parse_predicate): Likewise.
21062 2015-05-20 Marek Polacek <polacek@redhat.com>
21064 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
21065 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
21067 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21069 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
21070 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
21073 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
21075 * config/mips/mips.h (micromips_globals): Declare.
21077 2015-05-20 David Malcolm <dmalcolm@redhat.com>
21079 * timevar.def (TV_INITIALIZE_RTL): New.
21080 * toplev.c (initialize_rtl): Use an auto_timevar to account this
21081 function's time to TV_INITIALIZE_RTL.
21083 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
21085 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
21086 gimple_build_nop calls.
21087 (chkp_find_bounds_for_elem): Likewise.
21088 (chkp_get_zero_bounds): Likewise.
21089 (chkp_get_none_bounds): Likewise.
21090 (chkp_get_bounds_by_definition): Likewise.
21091 (chkp_generate_extern_var_bounds): Likewise.
21092 (chkp_get_bounds_for_decl_addr): Likewise.
21093 (chkp_get_bounds_for_string_cst): Likewise.
21095 2015-05-20 Bin Cheng <bin.cheng@arm.com>
21097 PR tree-optimization/65447
21098 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
21099 (dump_use, dump_uses): Support to dump sub use.
21100 (record_use): New parameters to support sub use. Remove call to
21102 (record_sub_use, record_group_use): New functions.
21103 (compute_max_addr_offset, split_all_small_groups): New functions.
21104 (group_address_uses, rewrite_use_address): New functions.
21105 (strip_offset): New declaration.
21106 (find_interesting_uses_address): Call record_group_use.
21107 (add_candidate): New assertion.
21108 (infinite_cost_p): Move definition forward.
21109 (add_costs): Check INFTY cost and return immediately.
21110 (get_computation_cost_at): Clear setup cost and dependent bitmap
21112 (determine_use_iv_cost_address): Compute cost for sub uses.
21113 (rewrite_use_address_1): Rename from old rewrite_use_address.
21114 (free_loop_data): Free sub uses.
21115 (tree_ssa_iv_optimize_loop): Call group_address_uses.
21117 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21118 Jim Wilson <jim.wilson@linaro.org>
21120 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
21121 new fields loadv and storev.
21122 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
21123 Initialize loadv and storev.
21124 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
21125 (cortexa53_extra_costs): Likewise.
21126 (cortexa57_extra_costs): Likewise.
21127 (xgene1_extra_costs): Likewise.
21128 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
21131 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
21133 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
21135 (cortexa8_extra_costs): Likewise.
21136 (cortexa5_extra_costs): Likewise.
21137 (cortexa7_extra_costs): Likewise.
21138 (cortexa12_extra_costs): Likewise.
21139 (cortexa15_extra_costs): Likewise.
21140 (v7m_extra_costs): Likewise.
21142 2015-05-20 Jeff Law <law@redhat.com>
21144 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
21145 instead of open-coded version. Also delete the jump thread created
21146 within this function.
21148 2015-05-20 Alan Modra <amodra@gmail.com>
21150 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
21151 stack adjusting insn. Formatting.
21152 (rs6000_emit_prologue): Track stack adjusting insn, and use of
21153 r12. If possible, emit first -fsplit-stack arg pointer insn
21154 before stack adjust. Don't use r12 to save cr if split-stack.
21156 2015-05-20 Alan Modra <amodra@gmail.com>
21158 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
21160 (rs6000_supports_split_stack): New function.
21161 * gcc/config/rs6000/rs6000.c (machine_function): Add
21162 split_stack_arg_pointer.
21163 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
21164 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
21165 rather than virtual_incoming_args_rtx.
21166 (rs6000_va_start): Likewise.
21167 (split_stack_arg_pointer_used_p): New function.
21168 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
21169 (morestack_ref): New var.
21170 (gen_add3_const, rs6000_expand_split_stack_prologue,
21171 rs6000_internal_arg_pointer, rs6000_live_on_entry,
21172 rs6000_split_stack_space_check): New functions.
21173 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
21174 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
21175 (UNSPECV_SPLIT_STACK_RETURN): Define.
21176 (split_stack_prologue, load_split_stack_limit,
21177 load_split_stack_limit_di, load_split_stack_limit_si,
21178 split_stack_return, split_stack_space_check): New expands and insns.
21179 * gcc/config/rs6000/rs6000-protos.h
21180 (rs6000_expand_split_stack_prologue): Declare.
21181 (rs6000_split_stack_space_check): Declare.
21183 2015-05-20 Alan Modra <amodra@gmail.com>
21185 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
21186 (direct_return): Test vrsave_size rather than vrsave_mask.
21187 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
21188 (rs6000_emit_epilogue): Likewise.
21190 2015-05-20 Alan Modra <amodra@gmail.com>
21192 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
21193 when not saving registers.
21194 (debug_stack_info): Adjust to omit printing unused offsets,
21196 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
21199 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21202 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
21203 value_type to const char *.
21205 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
21207 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
21208 to build a biarch toolchain again.
21210 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
21212 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
21213 or implicit declarations.
21214 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
21216 (get_odr_type): Check type has linkage before adding bases.
21217 (register_odr_type): Check that type has linkage before adding it.
21218 (type_known_to_have_no_deriavations_p): Rename to ..
21219 (type_known_to_have_no_derivations_p): This one.
21220 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
21221 (type_known_to_have_no_derivations_p): This one.
21222 * ipa-polymorphic-call.c
21223 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
21226 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
21228 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
21229 (layout_type): Use RECORD_OR_UNION_TYPE_P.
21231 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21233 * config/s390/s390.c (s390_vector_bool_type_p): New function.
21234 (s390_invalid_binary_op): New function.
21235 (TARGET_INVALID_BINARY_OP): Define macro.
21237 2015-05-19 David Sherwood <david.sherwood@arm.com>
21239 * loop-invariant.c (create_new_invariant): Don't calculate address cost
21240 if mode is not a scalar integer.
21241 (get_inv_cost): Increase computational cost for unused invariants.
21243 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21245 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
21246 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
21247 * config/s390/s390-builtin-types.def: New file.
21248 * config/s390/s390-builtins.def: New file.
21249 * config/s390/s390-builtins.h: New file.
21250 * config/s390/s390-c.c: New file.
21251 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
21252 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
21253 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
21254 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
21256 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
21258 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
21259 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
21260 variable definitions.
21261 (s390_const_operand_ok): New function.
21262 (s390_expand_builtin): Rewrite.
21263 (s390_init_builtins): New function.
21264 (s390_handle_vectorbool_attribute): New function.
21265 (s390_attribute_table): Add s390_vector_bool attribute.
21266 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
21267 (s390_branch_condition_mask): Generate masks for new modes.
21268 (s390_expand_vec_compare_cc): New function.
21269 (s390_mangle_type): Add mangling for vector bool types.
21270 (enum s390_builtin): Remove.
21271 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
21273 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
21274 s390_cpu_cpp_builtins.
21275 (REGISTER_TARGET_PRAGMAS): New macro.
21276 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
21277 (insn_cmp mode attribute): Add new CC modes.
21278 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
21279 (lcbb): New pattern definition.
21280 * config/s390/s390intrin.h: Include vecintrin.h.
21281 * config/s390/t-s390: New file.
21282 * config/s390/vecintrin.h: New file.
21283 * config/s390/vector.md: Include vx-builtins.md.
21284 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
21287 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21289 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
21291 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
21292 (s390_select_ccmode): Likewise.
21293 (s390_canonicalize_comparison): Swap operands if necessary.
21294 (s390_expand_vec_compare_scalar): Expand DFmode compare using
21295 single element vector instructions.
21296 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
21297 (s390_branch_condition_mask): Generate CC masks for the new modes.
21298 * config/s390/s390.md (v0, vf, vd): New mode attributes.
21299 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
21300 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
21301 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
21302 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
21303 (*extend<DSF:mode><BFP:mode>2): New insn definition.
21304 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
21305 (extend<DSF:mode><BFP:mode>2): Turn into expander.
21306 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
21307 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
21308 (sqrt<mode>2): Add vector instruction.
21310 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21312 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
21314 * config/s390/predicates.md (const0_operand, constm1_operand)
21315 (constable_operand): Accept vector operands.
21316 * config/s390/s390-modes.def: Add supported vector modes.
21317 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
21318 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
21319 (s390_bytemask_vector_p, s390_expand_vec_strlen)
21320 (s390_expand_vec_compare, s390_expand_vcond)
21321 (s390_expand_vec_init): Add prototypes.
21322 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
21323 (s390_vector_mode_supported_p): New function.
21324 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
21325 (s390_contiguous_bitmask_vector_p): New function.
21326 (s390_bytemask_vector_p): New function.
21327 (s390_split_ok_p): Vector regs don't work either.
21328 (regclass_map): Add VEC_REGS.
21329 (s390_legitimate_constant_p): Handle vector constants.
21330 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
21331 (legitimate_reload_vector_constant_p): New function.
21332 (s390_preferred_reload_class): Handle CONST_VECTOR.
21333 (s390_reload_symref_address): Likewise.
21334 (s390_secondary_reload): Vector memory instructions only support
21335 short displacements. Rename reload*_nonoffmem* to reload*_la*.
21336 (s390_emit_ccraw_jump): New function.
21337 (s390_expand_vec_strlen): New function.
21338 (s390_expand_vec_compare): New function.
21339 (s390_expand_vcond): New function.
21340 (s390_expand_vec_init): New function.
21341 (s390_dwarf_frame_reg_mode): New function.
21342 (print_operand): Handle addresses with 'O' and 'R' constraints.
21343 (NR_C_MODES, constant_modes): Add vector modes.
21344 (s390_output_pool_entry): Handle vector constants.
21345 (s390_hard_regno_mode_ok): Handle vector registers.
21346 (s390_class_max_nregs): Likewise.
21347 (s390_cannot_change_mode_class): New function.
21348 (s390_invalid_arg_for_unprototyped_fn): New function.
21349 (s390_function_arg_vector): New function.
21350 (s390_function_arg_float): Remove size variable.
21351 (s390_pass_by_reference): Handle vector arguments.
21352 (s390_function_arg_advance): Likewise.
21353 (s390_function_arg): Likewise.
21354 (s390_return_in_memory): Vector values are returned in a VR if
21356 (s390_function_and_libcall_value): Handle vector arguments.
21357 (s390_gimplify_va_arg): Likewise.
21358 (s390_call_saved_register_used): Consider the arguments named.
21359 (s390_conditional_register_usage): Disable v16-v31 for non-vec
21361 (s390_preferred_simd_mode): New function.
21362 (s390_support_vector_misalignment): New function.
21363 (s390_vector_alignment): New function.
21364 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
21365 (TARGET_VECTOR_MODE_SUPPORTED_P)
21366 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
21367 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
21368 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
21369 (TARGET_VECTOR_ALIGNMENT): Define target macro.
21370 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
21371 (FIRST_PSEUDO_REGISTER): Increase value.
21372 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
21373 (VECTOR_REG_P): Define macros.
21374 (FIXED_REGISTERS, CALL_USED_REGISTERS)
21375 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
21376 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
21377 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
21378 Add vector registers.
21379 (CANNOT_CHANGE_MODE_CLASS): Call C function.
21380 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
21381 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
21383 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
21384 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
21385 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
21386 (VR*_REGNUM): New constants.
21387 (ALL): New mode iterator.
21388 (INTALL): Remove mode iterator.
21390 (movti): Implement TImode moves for VRs.
21391 Disable TImode splitter for VR targets.
21392 Implement splitting TImode GPR<->VR moves.
21393 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
21394 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
21395 reload<mode>_la_in, reload<mode>_la_out.
21396 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
21397 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
21398 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
21399 (mov<mode> SF SD): Prefer lder, lde for loading.
21400 Add lrl and strl instructions.
21401 Add vector instructions.
21402 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
21403 Call s390_expand_vec_strlen on z13.
21404 (*cc_to_int): Change predicate to nonimmediate_operand.
21405 (addti3): Rename to *addti3. New expander.
21406 (subti3): Rename to *subti3. New expander.
21407 * config/s390/vector.md: New file.
21409 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21411 * common/config/s390/s390-common.c (processor_flags_table): Add
21413 * config.gcc: Add z13.
21414 * config/s390/s390-opts.h (enum processor_type): Add
21415 PROCESSOR_2964_Z13.
21416 * config/s390/s390.c (s390_adjust_priority): Check for
21417 PROCESSOR_2964_Z13.
21418 (s390_reorg): Likewise.
21419 (s390_sched_reorder): Likewise.
21420 (s390_sched_variable_issue): Likewise.
21421 (s390_loop_unroll_adjust): Likewise.
21422 (s390_option_override): Likewise. Default to -mvx when available.
21423 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
21424 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
21425 (TARGET_VX_ABI): Define macros.
21427 (TARGET_DEFAULT): Add MASK_OPT_VX.
21428 * config/s390/s390.md ("cpu" attribute): Add z13.
21429 ("cpu_facility" attribute): Add vec.
21430 * config/s390/s390.opt (processor_type): Add z13.
21431 (mvx): New options.
21432 * doc/invoke.texi: Add z13 option for -march.
21434 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21436 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
21437 mode check to make sure that only scalar integer values are
21440 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
21442 * tree.c (verify_type_variant): Fix #undef.
21443 (gimple_canonical_types_compatible_p): Move here from lto.c
21444 (verify_type): Verify TYPE_CANONICAL compatibility.
21445 * tree.h (gimple_canonical_types_compatible_p): Declare.
21447 2015-05-19 Jakub Jelinek <jakub@redhat.com>
21449 PR middle-end/66199
21450 * tree.h (OMP_TEAMS_COMBINED): Define.
21451 * gimplify.c (enum gimplify_omp_var_data): Add
21452 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
21453 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
21454 (omp_notice_variable): Accept both ORT_TEAMS
21455 and ORT_COMBINED_TEAMS. Don't recurse if
21456 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
21457 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
21459 (omp_no_lastprivate): New function.
21460 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
21461 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
21462 notice_outer and set appropriate bits, otherwise make
21463 sure default(none) combined constructs won't complain.
21464 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
21465 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
21466 omp_no_lastprivate either remove the clause or turn it
21467 into OMP_CLAUSE_PRIVATE.
21468 (gimplify_omp_for): Fix up handling of implicit
21469 lastprivate or linear iterators.
21470 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
21471 ORT_COMBINED_TEAMS.
21472 * omp-low.c (lower_omp_for_lastprivate): For combined
21473 for simd use fd.loop.n2 from the for rather than simd.
21475 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21477 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
21478 instead of gen_rtx_raw_REG.
21479 (cris_expand_epilogue): Likewise.
21480 * config/microblaze/microblaze.c (microblaze_classify_address):
21482 * config/sparc/sparc.md: Likewise.
21484 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
21486 * config/alpha/alpha.c (alpha_legitimize_reload_address)
21487 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
21488 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
21489 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
21490 Use CASE_CONST_SCALAR_INT.
21491 (print_operand) <case 'M'>: Use mode_width_operand to check the
21492 value of the constant.
21493 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
21494 * config/alpha/predicates.md (input_operand): Use general_operand
21495 instead of match_code as operand check.
21496 (symbolic_operand): Use match_code with subexpression digits.
21497 * config/alpha/constraints.md (Q): Ditto.
21499 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21501 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
21503 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21505 * config/s390/s390.c (s390_secondary_reload): Fix check for
21506 load/store relative.
21508 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21510 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
21511 alternative_mask to uint64_t.
21513 2015-05-19 Jakub Jelinek <jakub@redhat.com>
21515 PR tree-optimization/66187
21516 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
21517 Pass TYPE_SIGN to tree_int_cst_min_precision. If
21518 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
21520 2015-05-19 David Malcolm <dmalcolm@redhat.com>
21522 * diagnostic.c (diagnostic_report_current_module): Strengthen
21523 local "new_map" from const line_map * to
21524 const line_map_ordinary *.
21525 * genmatch.c (error_cb): Likewise for local "map".
21526 (output_line_directive): Likewise for local "map".
21527 * input.c (expand_location_1): Likewise for local "map".
21528 Pass NULL rather than &map to
21529 linemap_unwind_to_first_non_reserved_loc, since the value is never
21530 read from there, and the value written back not read from here.
21531 (is_location_from_builtin_token): Strengthen local "map" from
21532 const line_map * to const line_map_ordinary *.
21533 (dump_location_info): Strengthen locals "map" from
21534 line_map *, one to const line_map_ordinary *, the other
21535 to const line_map_macro *.
21536 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
21537 const line_map * to const line_map_macro *.
21538 (maybe_unwind_expanded_macro_loc): Add a call to
21539 linemap_check_macro when writing to the "map" field of the
21541 Introduce local const line_map_ordinary * "ord_map", using it in
21542 place of "map" in the part of the function where we know we have
21543 an ordinary map. Strengthen local "m" from const line_map * to
21544 const line_map_ordinary *.
21546 2015-05-19 Nick Clifton <nickc@redhat.com>
21549 * config/msp430/msp430.md (zero_extendhisi2): Add support for
21550 separate source and destination registers.
21552 2015-05-19 Richard Biener <rguenther@suse.de>
21554 PR tree-optimization/66165
21555 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
21556 for no load permutation.
21558 PR tree-optimization/66185
21559 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
21560 when building the SLP node from scalars.
21562 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
21563 Tristan Gingold <gingold@adacore.com>
21565 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
21566 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
21567 (expand_stack_restore): Call record_new_stack_level.
21568 (expand_stack_save): Do not call do_pending_stack_adjust.
21569 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
21570 * calls.c (expand_call): Call record_new_stack_level for alloca.
21571 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
21572 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
21573 (update_sjlj_context): New global function.
21574 * except.h (update_sjlj_context): Declare.
21575 * explow.c (record_new_stack_level): New global function.
21576 (allocate_dynamic_stack_space): Call record_new_stack_level.
21577 * explow.h (record_new_stack_level): Declare.
21578 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
21579 * cfgrtl.c (duplicate_insn_chain): Likewise.
21581 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21583 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
21584 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
21585 STACK_GROWS_DOWNWARD as normal if.
21586 (expand_call): Likewise.
21588 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
21591 * config/sh/sh.md (*round_int_even): New insn_and_split and
21592 accompanying new unnamed split.
21594 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21596 * bitmap.c (bitmap_set_range): Handle count==1 specially.
21597 (bitmap_clear_range): Likewise.
21598 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
21599 bitmap_set_range unconditionally.
21600 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21601 * df-scan.c (df_mark_reg): Likewise.
21602 * haifa-sched.c (setup_ref_regs): Likewise.
21603 * sched-rgn.c (update_live_1): Likewise.
21605 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21607 * regs.h (END_HARD_REGNO): Delete.
21608 (END_REGNO): Move to...
21610 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
21611 * caller-save.c (mark_set_regs): Likewise.
21612 * combine.c (move_deaths, distribute_notes): Likewise.
21613 * cse.c (invalidate, invalidate_for_call): Likewise.
21614 * df-scan.c (df_ref_record): Likewise.
21615 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
21616 (record_last_reg_set_info): Likewise.
21617 * reg-stack.c (convert_regs_exit): Likewise.
21618 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
21619 * resource.c (update_live_status): Likewise.
21620 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
21622 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21624 * rtl.h (reg_info): Add an nregs field.
21625 (REG_NREGS): Use it.
21626 (SET_REGNO_RAW): Delete.
21627 (set_regno_raw): New function.
21628 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
21629 (END_REGNO): Redefine in terms of REG_NREGS.
21630 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
21632 * emit-rtl.c (set_mode_and_regno): Likewise.
21633 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
21634 instead of SET_REGNO_RAW.
21636 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21638 * rtl.h (PUT_MODE_RAW): New macro.
21639 (PUT_REG_NOTE_KIND): Use it.
21640 (set_mode_and_regno): Declare.
21641 (gen_raw_REG): Change regno to "unsigned int".
21642 (gen_rtx_REG): Change "unsigned" to "unsigned int".
21643 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
21644 use set_mode_and_regno to change the mode of registers.
21645 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
21646 * emit-rtl.c (set_mode_and_regno): New function.
21647 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
21648 * caller-save.c (reg_save_code): Use set_mode_and_regno.
21649 * expr.c (init_expr_target): Likewise.
21650 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21651 * postreload.c (reload_cse_simplify_operands): Likewise.
21653 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21655 * caller-save.c (init_caller_save): Use word_mode and
21656 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
21657 * expr.c (init_expr_target): Likewise.
21658 * ira.c (setup_prohibited_mode_move_regs): Likewise.
21659 * postreload.c (reload_cse_regs_1): Likewise.
21661 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21663 * rtl.def (REG): Change format to "r".
21664 * rtl.h (rtunion): Remove rt_reg.
21665 (reg_info): New structure.
21666 (rtx_def): Add reg field to main union.
21667 (X0REGATTR): Delete.
21668 (REG_CHECK): New macro.
21669 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
21670 * rtl.c (rtx_format): Document "r".
21671 (rtx_code_size): Handle REG specially.
21672 * gengenrtl.c (special_format): Return true for formats
21674 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
21675 Deal with REG_ATTRS after the field loop.
21676 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
21677 * expmed.c (init_expmed): Call gen_raw_REG instead of
21679 * expr.c (init_expr_target): Likewise.
21680 * regcprop.c (maybe_mode_change): Likewise.
21681 * varasm.c (make_decl_rtl): Likewise.
21682 * final.c (leaf_renumber_regs_insn): Return early after
21684 * genemit.c (gen_exp): Handle 'r' fields.
21685 * genpeep.c (match_rtx): Likewise.
21686 * gensupport.c (subst_pattern_match): Likewise.
21687 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
21688 (alter_constraints, subst_dup): Likewise.
21689 * read-rtl.c (read_rtx_code): Likewise.
21690 * print-rtl.c (print_rtx): Likewise.
21691 * genrecog.c (find_operand, find_matching_operand): Likewise.
21692 (validate_pattern, match_pattern_2): Likewise.
21693 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
21694 (rtx_test::regno_field): New function.
21695 (operator ==, safe_to_hoist_p, transition_parameter_type)
21696 (parameter_type_string, print_parameter_value)
21697 (print_nonbool_test, print_test): Handle new enum values.
21698 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
21699 * lra-constraints.c (operands_match_p): Likewise.
21701 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21703 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
21704 Change type of new_regno to unsigned int.
21705 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
21706 new_regno to unsigned int.
21707 (df_ref_change_reg_with_loc): Remove old_regno parameter.
21708 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
21709 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
21710 (SET_REGNO_RAW): Add space after ",".
21712 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21714 * rtl.h (REG_NREGS): New macro
21715 * alias.c (record_set): Use it.
21716 * cfgcleanup.c (mark_effect): Likewise.
21717 * combine.c (likely_spilled_retval_1): Likewise.
21718 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
21719 (move_deaths, distribute_notes): Likewise.
21720 * cselib.c (cselib_record_set): Likewise.
21721 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
21722 * df-scan.c (df_mark_reg): Likewise.
21723 * dse.c (look_for_hardregs): Likewise.
21724 * dwarf2out.c (reg_loc_descriptor): Likewise.
21725 (multiple_reg_loc_descriptor): Likewise.
21726 * expr.c (write_complex_part, read_complex_part): Likewise.
21727 (emit_move_complex): Likewise.
21728 * haifa-sched.c (setup_ref_regs): Likewise.
21729 * ira-lives.c (mark_hard_reg_live): Likewise.
21730 * lra.c (lra_set_insn_recog_data): Likewise.
21731 * mode-switching.c (create_pre_exit): Likewise.
21732 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
21733 (reload_combine_recognize_pattern): Likewise.
21734 (reload_combine_note_use, move2add_record_mode): Likewise.
21735 (reload_cse_move2add): Likewise.
21736 * reg-stack.c (subst_stack_regs_pat): Likewise.
21737 * regcprop.c (kill_value, copy_value): Likewise.
21738 (copyprop_hardreg_forward_1): Likewise.
21739 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
21740 (build_def_use): Likewise.
21741 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
21742 (deps_analyze_insn): Likewise.
21743 * sched-rgn.c (check_live_1, update_live_1): Likewise.
21744 * sel-sched.c (count_occurrences_equiv): Likewise.
21745 * valtrack.c (dead_debug_insert_temp): Likewise.
21747 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
21749 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
21750 * dse.c (note_add_store): Likewise.
21751 * ira-lives.c (mark_hard_reg_dead): Likewise.
21752 * loop-invariant.c (mark_reg_store): Likewise.
21753 (mark_reg_death): Likewise.
21754 * postreload.c (reload_combine): Likewise.
21755 (reload_combine_note_store): Likewise.
21756 (reload_combine_note_use): Likewise.
21757 * recog.c (peep2_reg_dead_p): Likewise.
21759 2015-05-19 Alan Modra <amodra@gmail.com>
21761 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
21762 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
21763 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
21765 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
21766 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
21767 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
21768 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
21770 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
21772 * config/mips/mips.md (JOIN_MODE): New mode iterator.
21773 (join2_load_Store<JOIN_MODE:mode>): New pattern.
21774 (join2_loadhi): Likewise.
21775 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
21776 load-load and store-stores.
21777 * config/mips/mips.opt (mload-store-pairs): New option.
21778 (TARGET_LOAD_STORE_PAIRS): New macro.
21779 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
21780 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
21781 * config/mips/mips.c (mips_load_store_bonding_p): New function.
21783 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
21785 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
21787 * dojump.c (do_compare_rtx_and_jump): Likewise.
21788 * expmed.c (emit_store_flag_1): Likewise.
21789 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
21790 * final.c (sprint_ul): Use std::reverse for reversing a string.
21791 * fold-const.c (extract_muldiv_1): Use std::swap.
21792 * genmodes.c (emit_mode_int_n): Likewise.
21793 * ifcvt.c (dead_or_predicable): Likewise.
21794 * ira-build.c (ira_merge_live_ranges): Likewise.
21795 (swap_allocno_copy_ends_if_necessary): Likewise.
21796 * ira.c (ira_setup_alts): Likewise.
21797 * loop-iv.c (iv_analyze_expr): Likewise.
21798 (implies_p): Likewise.
21799 (canon_condition): Likewise.
21800 * lra-constraints.c (swap_operands): Likewise.
21801 * lra-lives.c (lra_merge_live_ranges): Likewise.
21802 * omega.c (swap): Remove.
21804 (omega_unprotect_1): Use std::swap.
21805 (omega_solve_geq): Likewise.
21806 * optabs.c (expand_binop_directly): Likewise.
21807 (expand_binop): Likewise.
21808 (emit_conditional_move): Likewise.
21809 (emit_conditional_add): Likewise.
21810 * postreload.c (reload_cse_simplify_operands): Likewise.
21811 * reg-stack.c (emit_swap_insn): Likewise.
21812 (swap_to_top): Likewise.
21813 (compare_for_stack_reg): Likewise.
21814 (subst_asm_stack_regs): Likewise.
21815 * reload.c (find_reloads): Likewise.
21816 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
21817 * sel-sched.c (invoke_reorder_hooks): Likewise.
21818 (create_block_for_bookkeeping): Likewise.
21819 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
21820 (lambda_matrix_right_hermite): Use std::swap.
21821 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
21822 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
21823 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
21824 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
21825 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
21826 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
21827 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
21828 * tree-vrp.c (compare_ranges): Likewise.
21829 * var-tracking.c (add_with_sets): Likewise.
21830 (vt_find_locations): Likewise.
21832 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
21834 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
21836 (FBSD_ENDFILE_SPEC): Likewise.
21837 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
21838 config/freebsd-spec.h.
21839 (ENDFILE_SPEC): Likewise.
21841 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
21842 Richard Henderson <rth@redhat.com>
21845 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
21846 Check for a memory location that is not a reference (using an AND)
21847 to an unaligned location here.
21848 * config/alpha/predicates.md (normal_memory_operand): Remove.
21850 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
21852 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
21853 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
21855 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
21857 * config/mips/mips.c (micromips_globals): New variable.
21858 (mips_set_compression_mode): Save and reinitialize target-dependent
21859 state for microMIPS.
21861 2015-05-18 Martin Liska <mliska@suse.cz>
21863 * dbgcnt.def: Add new counter.
21864 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
21866 2015-05-18 Martin Liska <mliska@suse.cz>
21868 * dbgcnt.def: Sort counters.
21869 * opts.c (common_handle_option): Do not compile if
21870 -fdbg-cnt-list is enabled.
21872 2015-05-18 Tom de Vries <tom@codesourcery.com>
21874 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
21875 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
21876 address operator to va_list operand.
21877 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
21879 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
21881 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
21882 * config/s390/s390.c (s390_gimplify_va_arg): Same.
21883 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
21885 2015-05-18 Tom de Vries <tom@codesourcery.com>
21887 * tree-ssa-tail-merge.c: Fix whitespace.
21889 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
21891 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
21892 cortex-a17, and cortex-a17.cortex-a7.
21894 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
21897 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
21899 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
21902 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
21903 QImode inner modes for TARGET_AVX512BW. Force mask operand
21904 to a register for AVX512F modes.
21906 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21908 * toplev.c (emit_debug_global_declarations): Do not output debug info
21909 when doing slim LTO objects.
21911 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21913 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
21914 odr_types_equivalent_p): Declare.
21915 (odr_type_p): Use gcc_checking_assert.
21916 (type_in_anonymous_namespace_p) Declare.
21917 (type_with_linkage_p): Declare.
21918 * common.opt (Wlto-type-mismatch): New warning.
21919 * ipa-devirt.c (compound_type_base): New function.
21920 (odr_or_derived_type_p): New function.
21921 (odr_types_equivalent_p): New function.
21922 (add_type_duplicate): Simplify.
21923 (type_with_linkage_p): Add hack to prevent false positives on C types
21924 (type_in_anonymous_namespace_p): Likewise.
21925 * tree.c (need_assembler_name_p): Use type_with_linkage.
21926 * tree.h (type_in_anonymous_namespace_p): Remove.
21927 * doc/invoke.texi (-Wlto-type-mismatch): Document
21929 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
21931 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
21932 (verify_type): Verify STRING_FLAG.
21934 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
21937 * tree-pretty-print.c (percent_K_format): Replace locus pointer
21938 with accessor function.
21939 * tree-diagnostic.c (diagnostic_report_current_function): Use
21940 diagnostic_location function.
21941 (maybe_unwind_expanded_macro_loc): Likewise.
21942 (virt_loc_aware_diagnostic_finalizer): Likewise.
21943 (default_tree_printer): Replace locus pointer with accessor function.
21944 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
21945 (diagnostic_set_info_translated): Initialize second location.
21946 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
21947 (diagnostic_show_locus): Handle two locations. Call
21948 diagnostic_print_caret_line.
21949 (diagnostic_print_caret_line): New.
21950 (default_diagnostic_starter): Use diagnostic_location function.
21951 (diagnostic_report_diagnostic): Use diagnostic_location function.
21952 (verbatim): Do not set text.locus.
21953 * diagnostic.h (struct diagnostic_info): Remove location field.
21954 (struct diagnostic_context): Make caret_chars an array of two.
21955 (diagnostic_location): New inline.
21956 (diagnostic_expand_location): Handle two locations.
21957 (diagnostic_same_line): New inline.
21958 (diagnostic_print_caret_line): Declare.
21959 (CARET_LINE_MARGIN): New constant.
21960 * pretty-print.c (pp_printf): Do not set text.locus.
21961 (pp_verbatim): Do not set text.locus.
21962 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
21963 (struct text_info): Replace locus pointer with locations
21964 array. Add accessor functions.
21966 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
21967 Zhenqiang Chen <zhenqiang.chen@linaro.org>
21970 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
21971 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
21972 large constants in register instead of splitting them.
21974 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
21977 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
21978 replacements in memory addresses.
21979 (get_unaligned_address): Ditto.
21981 2015-05-16 James Bowman <james.bowman@ftdichip.com>
21983 * config/ft32/*: New files for FT32 port.
21984 * doc/install.texi: Add FT32 information.
21985 * doc/invoke.texi: Add FT32 information.
21986 * doc/md.texi: Add FT32 information.
21987 * doc/contrib.texi: Self added.
21989 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
21991 PR tree-optimization/64454
21992 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
21993 (-1 - A -> ~A): Remove unnecessary condition.
21995 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
21997 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
21998 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
21999 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
22001 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
22003 * ipa-chkp.h (chkp_wrap_function): New.
22004 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
22005 (chkp_wrap_function_name): New.
22006 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
22007 to get wrapper name.
22008 * lto-cgraph.c: Include ipa-chkp.h.
22009 (input_cgraph_1): Avoid alias chain for wrappers.
22011 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
22013 PR middle-end/66134
22014 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
22015 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
22017 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22019 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
22020 (AARCH64_FL_SLOWMUL): Delete.
22021 (AARCH64_FL_CRC): Redefine to 1<<3.
22022 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
22024 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22026 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
22029 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22031 * config/alpha/alpha.md (extendqidi2): Use general_operand
22032 instead of some_operand for operand[1] predicate.
22033 (extendhidi2): Ditto.
22034 (cbranchdi4): Use general_operand instead of some_operand
22035 for operand[1] and operands[2] predicates.
22036 (cstoredi4): Ditto.
22037 * config/alpha/predicates.md (some_operand): Remove unused predicate.
22038 (some_ni_operand): Ditto.
22040 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
22042 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
22043 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
22044 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
22045 low part of the constant using alpha_emit_set_const_1.
22046 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
22048 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
22050 * varasm.c (output_constant_pool_1): Pass down alignment from
22051 constant pool entry's descriptor to output_constant_pool_2.
22052 (output_object_block): Add comment prior to call to
22053 output_constant_pool_1.
22055 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
22057 PR rtl-optimization/65862
22058 * target.def (ira_change_pseudo_allocno_class): New hook.
22059 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
22061 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
22062 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
22064 * ira-costs.c (find_costs_and_classes): Call the hook and change
22065 classes when it is necessary.
22066 * doc/tm.texi: Update.
22068 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
22070 * config/i386/i386.md (sibcall_memory): Check that register with
22071 callee address is not also used as one of the arguments, instead
22072 of checking that it is not live after the sibcall.
22073 (sibcall_pop_memory): Ditto.
22074 (sibcall_value_memory): Ditto.
22075 (sibcall_value_pop_memory): Ditto.
22077 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
22079 * generic-match-head.c (types_match): Handle non-types.
22080 * gimple-match-head.c (types_match): Likewise.
22081 * match.pd: Remove unnecessary TREE_TYPE for types_match.
22083 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
22085 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
22086 (csneg3<mode>_insn): Enable expansion of pattern.
22088 2015-05-14 Nick Clifton <nickc@redhat.com>
22090 * config/rl78/rl78.c (rl78_select_section): Select the correct
22091 default section based upon the category of the decl.
22093 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22095 PR rtl-optimization/30967
22096 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
22097 destination mode for the cost of scc patterns.
22099 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22101 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
22102 using SWIM248 mode iterator.
22103 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
22104 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
22105 for operand[2] constraint.
22106 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
22108 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22110 PR middle-end/66133
22111 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
22112 make sure it is never noreturn, even when the task body does not
22114 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
22115 right before GIMPLE_OMP_RETURN.
22116 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
22117 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
22118 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
22120 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22122 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
22123 * tree-ssa-math-opts.c: Include params.h
22124 (pow_synth_sqrt_info): New struct.
22125 (representable_as_half_series_p): New function.
22126 (get_fn_chain): Likewise.
22127 (print_nested_fn): Likewise.
22128 (dump_fractional_sqrt_sequence): Likewise.
22129 (dump_integer_part): Likewise.
22130 (expand_pow_as_sqrts): Likewise.
22131 (gimple_expand_builtin_pow): Use above to attempt to expand
22132 pow as series of square roots. Removed now unused variables.
22134 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
22136 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
22137 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
22138 Remove *p0 and *p1 arguments. Rewrite function.
22139 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
22140 (alpha_split_const_mov): Update calls to alpha_extract_integer and
22141 alpha_emit_set_long_const.
22142 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
22143 (alpha_output_mi_thunk_osf): Ditto.
22144 * config/alpha/alpha.md (movti): Do not check operands[1]
22147 2015-05-13 Richard Biener <rguenther@suse.de>
22149 PR tree-optimization/66129
22150 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
22152 (vect_schedule_slp_instance): Fix typo.
22154 2015-05-13 David Malcolm <dmalcolm@redhat.com>
22156 * common.opt (fdump-internal-locations): New option.
22157 * input.c: Include diagnostic-core.h.
22158 (get_end_location): New function.
22159 (write_digit): New function.
22160 (write_digit_row): New function.
22161 (dump_location_range): New function.
22162 (dump_labelled_location_range): New function.
22163 (dump_location_info): New function.
22164 * input.h (dump_location_info): New prototype.
22165 * toplev.c (compile_file): Handle flag_dump_locations.
22167 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
22169 * gimple-expr.h (is_gimple_constant): Reorder.
22170 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
22172 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
22174 * combine.c (simplify_set): When generating a CC set, if the
22175 source already is in the correct mode, do not wrap it in a
22176 compare. Simplify the rest of that code.
22178 2015-05-13 Richard Biener <rguenther@suse.de>
22180 PR tree-optimization/66123
22181 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
22184 2015-05-13 Richard Biener <rguenther@suse.de>
22186 PR middle-end/66110
22187 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
22189 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
22191 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
22193 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
22194 * aclocal.m4: Regenerated with automake-1.11.6.
22196 2015-05-13 Tom de Vries <tom@codesourcery.com>
22198 PR tree-optimization/66010
22199 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
22200 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
22201 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
22202 and rval based on do_deref.
22204 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22207 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
22208 link time constants into adress expressions and therefore set
22211 2015-05-13 Jakub Jelinek <jakub@redhat.com>
22214 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
22215 Use SWI248 iterator instead of SWI.
22216 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
22217 Use eq_attr "alternative" "0" instead of match_test in
22218 length_immediate attribute computation.
22219 (*mulvhi4, *mulvhi4_1): New define_insns.
22222 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
22223 SIGNED to get precision of non-negative value.
22225 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
22228 * function.c (diddle_return_value_1): Process bounds first.
22229 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
22232 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
22234 PR rtl-optimization/64616
22235 * loop-invariant.c (can_move_invariant_reg): New.
22236 (move_invariant_reg): Call above new function to decide whether
22237 instruction can just be moved, skipping creation of temporary
22240 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22242 PR target/pr66047.c
22243 * i386.c (ix86_function_sseregparm): Only return -1 if local function
22244 with implied regparm is called from -mno-sse function.
22245 (init_cumulative_args): Output error if ix86_function_sseregparm
22246 return -1 and SSE register would be needed.
22247 (function_arg_advance_32): Likewise.
22248 (function_arg_32): Likewise.
22249 * i386.h (ix86_args): Add decl field.
22251 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22254 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
22255 inlines across optimization boundary.
22257 2015-05-12 Jason Merrill <jason@redhat.com>
22259 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
22260 string literal and macro name.
22262 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
22264 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
22265 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
22266 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
22268 2015-05-12 David Malcolm <dmalcolm@redhat.com>
22270 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
22271 (-Wmisleading-indentation): New option.
22272 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
22274 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
22276 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
22277 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
22278 (alpha_extract_integer): Ditto.
22279 (alpha_legitimate_constant_p): Ditto.
22280 (alpha_split_tmode_pair): Ditto.
22281 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
22282 (alpha_expand_mov): Ditto.
22283 (print_operand): Remove handling of 'H' modifier.
22284 <case 'm'>: Remove CONST_DOUBLE handling.
22285 (summarize_insn): Handle CONST_WIDE_INT.
22286 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
22288 (movti): Handle CONST_WIDE_INT.
22289 * config/alpha/constraints.md ('H'): Remove constraint definition.
22290 ('G'): Do not match MODE_FLOAT class.
22291 * config/alpha/predicates.md (const0_operand): Also match
22293 (non_add_const_operand): Ditto.
22294 (non_zero_const_operand): Ditto.
22295 (some_operand): Ditto.
22296 (input_operand): Ditto. Handle CONST_WIDE_INT.
22297 (and_operand): Do not match const_double.
22298 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
22300 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
22303 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
22304 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
22305 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
22306 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
22307 is_mm_seq_cst, is_mm_sync): New accessor functions.
22308 * builtins.c (expand_builtin_sync_operation,
22309 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
22310 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
22311 (get_memmodel, expand_builtin_atomic_compare_exchange,
22312 expand_builtin_atomic_load, expand_builtin_atomic_store,
22313 expand_builtin_atomic_clear): Use new accessor routines.
22314 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
22315 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
22316 (maybe_emit_sync_lock_test_and_set): Use new accessors and
22317 MEMMODEL_SYNC_ACQUIRE.
22318 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
22319 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
22320 expand_atomic_store): Use new accessors.
22321 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
22322 * tsan.c (instrument_builtin_call): Update check for memory model beyond
22323 final enum to use MEMMODEL_LAST.
22324 * c-family/c-common.c: Use new accessor for memmodel_base.
22325 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
22327 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
22328 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
22329 mem_thread_fence, *dmb): Likewise.
22330 * config/alpha/alpha.c (alpha_split_compare_and_swap,
22331 alpha_split_compare_and_swap_12): Likewise.
22332 * config/arm/arm.c (arm_expand_compare_and_swap,
22333 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
22334 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
22335 atomic_loaddi): Likewise.
22336 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
22338 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
22339 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
22341 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
22342 atomic_store<mode>, atomic_compare_and_swap<mode>,
22343 atomic_exchange<mode>): Use new accessors.
22344 * config/mips/mips.c (mips_process_sync_loop): Likewise.
22345 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
22346 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
22347 rs6000_post_atomic_barrier): Add new cases.
22348 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
22349 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
22350 (atomic_load<mode>): Add new cases and use new accessors.
22351 (store_quadpti): Add new cases.
22352 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
22354 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
22355 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
22358 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
22360 * ipa-devirt.c (type_with_linkage_p): New function.
22361 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
22363 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
22364 (can_be_name_hashed_p): Simplify.
22365 (hash_odr_name): Check that type has linkage before checking if it is
22367 (types_same_for_odr): Likewise.
22368 (odr_name_hasher::equal): Likewise.
22369 (odr_subtypes_equivalent_p): Likewise.
22370 (warn_types_mismatch): Likewise.
22371 (get_odr_type): Likewise.
22372 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
22373 * ipa-utils.h (odr_type_p): Move offline.
22374 * tree.c (need_assembler_name_p): Fix handling of types
22376 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
22378 2015-05-12 David Malcolm <dmalcolm@redhat.com>
22380 * timevar.c (timevar_enable): Delete in favor of...
22381 (g_timer): New global.
22382 (struct timevar_def): Move to timevar.h inside class timer.
22383 (struct timevar_stack_def): Likewise.
22384 (timevars): Delete global in favor of field "m_timevars" within
22385 class timer in timevar.h
22386 (stack): Likewise, in favor of field "m_stack".
22387 (unused_stack_instances): Likewise, in favor of field
22388 "m_unused_stack_instances".
22389 (start_time): Likewise, in favor of field "m_start_time".
22390 (get_time): Eliminate check for timevar_enable.
22391 (timer::timer): New function, built from part of timevar_init.
22392 (timevar_init): Rewrite idempotency test from using
22393 "timevar_enable" bool to using dynamic allocation of "g_timer".
22394 Move rest of implementation into timer's constructor.
22395 (timevar_push_1): Rename to...
22396 (timer::push): ...this, adding "m_" prefixes to variables that
22397 are now fields of timer.
22398 (timevar_pop_1): Likewise, rename to...
22399 (timer::pop): ...this, and add "m_" prefixes.
22400 (timevar_start): Replace test for "timevar_enable" with one for
22401 "g_timer", and move bulk of implementation to...
22402 (timer::start): ...here, adding "m_" prefixes.
22403 (timevar_stop): Likewise, from here...
22404 (timer::stop): ...to here.
22405 (timevar_cond_start): Likewise, from here...
22406 (timer::cond_start): ...to here.
22407 (timevar_cond_stop): Likewise, from here...
22408 (timer::cond_stop): ...to here.
22409 (validate_phases): Rename to...
22410 (timer::validate_phases): ...this, and add "m_" prefixes. Make
22411 locals "total" and "tv" const.
22412 (timevar_print): Rename to...
22413 (timer::print): ...this, and add "m_" prefixes. Make locals
22414 "total" and "tv" const. Eliminate test for timevar_enable.
22415 * timevar.h (timevar_enable): Eliminate.
22416 (g_timer): New declaration.
22417 (timevar_push_1): Eliminate.
22418 (timevar_pop_1): Eliminate.
22419 (timevar_print): Eliminate.
22420 (class timer): New class.
22421 (timevar_push): Rewrite to use g_timer.
22422 (timevar_pop): Likewise.
22423 * toplev.c (toplev::~toplev): Likewise.
22425 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
22427 * arm-protos.h (arm_sched_autopref): Delete.
22428 (tune_params): Re-organize, use enums for flag values.
22429 (FUSE_OPS): New macro.
22430 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
22431 (ARM_PREFETCH_BENEFICIAL): Likewise.
22432 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
22433 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
22434 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
22435 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
22436 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
22437 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
22438 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
22439 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
22441 (arm_option_override, thumb2_reorg, arm_print_tune_info)
22442 (aarch_macro_fusion_pair_p): Update uses of current_tune.
22443 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
22445 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
22447 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
22450 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
22451 Sandra Loosemore <sandra@codesourcery.com>
22453 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
22455 (REG_CLASS_NAMES): Add "IJMP_REGS".
22456 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
22457 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
22458 use new "c" register constraint.
22459 * config/nios2/constraint.md (c): New register constraint
22460 corresponding to IJMP_REGS.
22462 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22464 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
22465 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
22466 define_splits): Delete, revamp, transmogrify into ...
22467 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22468 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22469 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22472 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22474 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
22475 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
22477 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22479 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
22480 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
22481 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
22482 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
22483 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
22484 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
22485 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
22486 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
22487 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
22488 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
22489 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
22490 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
22491 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
22492 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
22493 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
22494 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
22495 and 30 corresponding splitters): Delete.
22497 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22499 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
22502 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22504 * combine.c (recog_for_combine_1): New function, factored out
22505 from recog_for_combine.
22506 (change_zero_ext): New function.
22507 (recog_for_combine): If recog fails, try again with the pattern
22508 modified by change_zero_ext; if that still fails, restore the
22511 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
22513 * combine.c (get_undo_marker): New function.
22514 (undo_to_marker): New function, largely factored out from ...
22515 (undo_all): ... this. Adjust.
22517 2015-05-12 Richard Biener <rguenther@suse.de>
22519 PR tree-optimization/66101
22520 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
22521 fixup if we turn a loop exit edge to a fallthru edge.
22523 2015-05-12 Richard Biener <rguenther@suse.de>
22525 PR tree-optimization/37021
22526 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
22527 (SLP_TREE_TWO_OPERATORS): New define.
22528 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
22529 SLP_TREE_TWO_OPERATORS.
22530 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
22532 (vect_build_slp_tree): Adjust.
22533 (vect_analyze_slp_cost_1): Likewise.
22534 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
22535 emitting two vector stmts and mixing the results.
22537 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
22539 * call.c (print_z_candidates): Remove dead code.
22541 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22543 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
22544 and zEC12_simple_fp.
22545 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
22548 2015-05-12 Tom de Vries <tom@codesourcery.com>
22550 PR tree-optimization/66010
22551 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
22553 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
22554 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
22555 va_lists are passed, and remove corresponding handling.
22556 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
22557 do_deref argument to ifn_va_arg.
22558 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
22561 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22564 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
22565 REG before taking its REGNO.
22567 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
22569 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
22570 rsp->sign_bit_copies and rsp->nonzero_bits into ...
22571 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
22572 present to get more accurate information about the number of sign bit
22573 copies and non zero bits.
22575 2015-05-12 Richard Biener <rguenther@suse.de>
22577 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
22578 do not allow unrolling.
22580 2015-05-11 Richard Henderson <rth@redhat.com>
22582 * config/i386/i386-modes.def (CCP): New.
22583 * config/i386/i386.c (put_condition_code): Handle it.
22584 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
22586 2015-05-11 Richard Henderson <rth@redhat.com>
22588 * target.def (md_asm_clobbers): Replace with...
22589 (md_asm_adjust): this.
22590 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
22591 (TARGET_MD_ASM_ADJUST): New.
22592 * tm.texi: Rebuild.
22593 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
22594 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
22595 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
22597 * cfgexpand.c (check_operand_nalternatives): Accept vector of
22598 constraints instead of lists of outputs and inputs.
22599 (expand_asm_stmt): Save and restore input_location around the
22600 body of the function. Move asm data into vectors instead of
22601 building tree lists. Generate cleanup sequences as needed,
22602 rather than waiting til the end. Use new md_asm_adjust hook.
22604 * config/vxworks.c: Include vec.h before target.h.
22605 * gimple.c: Likewise.
22606 * incpath.c: Likewise.
22607 * mode-switching.c: Likewise.
22609 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
22610 (cris_md_asm_adjust): this.
22611 (TARGET_MD_ASM_CLOBBERS): Remove.
22612 (TARGET_MD_ASM_ADJUST): New.
22613 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
22614 (ix86_md_asm_adjust): this.
22615 (TARGET_MD_ASM_CLOBBERS): Remove.
22616 (TARGET_MD_ASM_ADJUST): New.
22617 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
22618 (mn10300_md_asm_adjust): this.
22619 (TARGET_MD_ASM_CLOBBERS): Remove.
22620 (TARGET_MD_ASM_ADJUST): New.
22621 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
22622 (rs6000_md_asm_adjust): this.
22623 (TARGET_MD_ASM_CLOBBERS): Remove.
22624 (TARGET_MD_ASM_ADJUST): New.
22625 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
22626 (visium_md_asm_adjust): this.
22627 (TARGET_MD_ASM_CLOBBERS): Remove.
22628 (TARGET_MD_ASM_ADJUST): New.
22630 2015-05-11 Richard Henderson <rth@redhat.com>
22632 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
22633 if noutputs is zero.
22634 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
22636 * cfgexpand.c (expand_asm_operands): Merge into...
22637 (expand_asm_stmt): ... here.
22639 * cfgexpand.c (expand_asm_operands): Don't call
22640 resolve_asm_operand_names.
22641 * stmt.c (resolve_asm_operand_names): Clarify block comment.
22643 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
22645 * dwarf2out.c (gen_member_die): Sanity check that we access
22646 TYPE_MAIN_VARIANT for TYPE_METHODS.
22647 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
22648 checking TYPE_METHODS.
22649 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
22651 (build_distinct_type_copy): Clear TYPE_METHODS.
22652 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
22653 (verify_type): Allow TYPE_METHODS to be error_mark_node.
22654 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
22656 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
22658 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
22659 (emit_pattern_before_setloc): Likewise.
22661 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
22663 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
22664 for define_peephole2s.
22665 (get_peephole2_pattern): New function.
22666 (main): Use it. Call validate_pattern.
22668 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
22670 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
22671 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
22672 (Last callee saved reg is different for AVR_TINY architecture)
22674 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
22676 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
22677 when looking for memory references.
22679 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
22682 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
22683 via function pointers.
22685 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
22687 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
22688 indirect call by forcing address into a pseudo with -fno-plt.
22689 * common.opt (flag_plt): New option.
22690 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
22691 ([-fno-plt]): Document.
22693 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
22696 * config/rs6000/option-defaults.h: Add space between string literal
22699 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
22701 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
22702 accross ARM targets.
22704 2015-05-11 Christian Bruel <christian.bruel@st.com>
22706 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
22707 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
22709 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
22711 PR rtl-optimization/66076
22712 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
22713 Don't grow the heap array if it is already big enough from a
22714 previous iteration.
22716 2015-05-11 Christian Bruel <christian.bruel@st.com>
22718 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
22719 (is_called_in_ARM_mode): Remove.
22720 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
22721 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
22722 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
22723 arm_declare_function_name.
22725 2015-05-11 Christian Bruel <christian.bruel@st.com>
22727 * config/arm/arm.c (arm_option_override): Reoganized and split into :
22728 (arm_option_params_internal); New function.
22729 (arm_option_check_internal): New function.
22730 (arm_option_override_internal): New function.
22731 (thumb_code, thumb1_code): Remove.
22732 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
22733 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
22734 (thumb_code, thumb1_code): Remove.
22735 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
22737 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
22739 * config/alpha/alpha.c (alpha_emit_set_const_1)
22740 (alpha_emit_set_long_const, alpha_extract_integer)
22741 (alpha_legitimate_constant_p, alpha_split_const_mov)
22742 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
22743 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22744 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
22746 * config/alpha/predicates.md (mode_mask_operand): Do not match
22748 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22749 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
22750 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
22751 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
22752 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
22754 2015-05-11 Jakub Jelinek <jakub@redhat.com>
22757 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
22758 default_binds_local_p_2.
22759 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
22760 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
22762 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22764 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
22766 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22768 Patch by Richard Biener
22769 * coverage.c (coverage_obj_init): Delay building of type variant
22770 until the type is finished.
22772 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22774 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
22775 mismatch between C and C++ type; compoare correctly ARG_TYPES
22776 for non-prototypes and output correctly parameter index for METHOD_TYPE.
22777 (odr_types_equivalent_p): Fix wording of warning about attributes;
22778 it is OK to match prototype and non-prototype.
22780 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22782 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
22783 TYPE_ARG_TYPES list.
22784 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
22785 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
22787 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
22789 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
22790 * tree.h (is_lang_specific): Constify.
22792 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
22794 PR tree-optimization/64454
22795 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
22798 2015-05-08 Jason Merrill <jason@redhat.com>
22800 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
22801 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
22802 config/darwin.h, config/darwin9.h, config/elfos.h,
22803 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
22804 config/microblaze/microblaze.h, config/mips/mips.h,
22805 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
22806 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
22807 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
22808 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
22809 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
22810 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
22811 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
22812 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
22813 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
22814 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
22815 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
22816 between string literal and macro name.
22818 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22820 * jump.c: Change argument types to rtx_insn *.
22823 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22825 * lra-constraints.c: Change argument type to rtx_insn *.
22827 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22829 * df-problems.c: Change argument type to rtx_insn *.
22831 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22833 * combine.c: Change argument type to rtx_insn *.
22835 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22838 * rtlanal.c: Change argument type to rtx_insn *.
22840 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22842 * sched-deps.c: Change argument types to rtx_insn *.
22843 * sched-int.h: Adjust.
22845 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22847 * dwarf2cfi.c: Change argument type to rtx_insn *.
22849 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22851 * ira.c (decrease_live_ranges_number): Changetype of local
22852 variable to rtx_insn *.
22853 * recog.c: Change argument types to rtx_insn *.
22856 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22858 * reorg.c: Change argument types to rtx_insn *.
22860 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22862 * ira-color.c: Change argument types to rtx_insn *.
22863 * lra-eliminations.c: Likewise.
22866 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22868 * gcse.c: Change argument types to rtx_insn *.
22870 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22872 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
22874 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22876 * emit-rtl.c (emit_debug_insn_before): Change argument type to
22880 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22882 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
22885 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22887 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
22890 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22892 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
22895 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22897 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
22900 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22902 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
22906 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22908 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
22912 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22914 * except.c (can_nonlocal_goto): Change type of argument to
22918 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22920 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
22923 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22925 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
22926 * cfgrtl.c (can_delete_label_p): Adjust.
22929 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22931 * reorg.c (stop_search_p): Change argument to rtx_insn *.
22933 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22935 * except.c (make_reg_eh_region_note): Change argument to
22937 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
22938 * except.h: Adjust.
22940 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22942 * mode-switching.c (commit_mode_sets): Change type of local
22943 variable from rtx to rtx_insn *.
22945 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
22947 * doc/install.texi (--enable-languages): Add missing jit and lto info.
22948 Add ^ to grep command.
22949 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
22950 arg to last gimple_simplify declaration. Add missing gimple_build
22951 declaration for built-in function case with four tree args.
22953 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
22954 Szabolcs Nagy <szabolcs.nagy@arm.com>
22956 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
22957 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
22958 (GNU_USER_DYNAMIC_LINKERN32): Update.
22960 2015-05-08 Richard Biener <rguenther@suse.de>
22962 PR tree-optimization/66036
22963 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
22964 Handle strided group loads.
22965 (vect_verify_datarefs_alignment): Likewise.
22966 (vect_enhance_data_refs_alignment): Likewise.
22967 (vect_analyze_group_access): Likewise.
22968 (vect_analyze_data_ref_access): Likewise.
22969 (vect_analyze_data_ref_accesses): Likewise.
22970 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
22971 (vectorizable_load): Likewise.
22973 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
22975 * config/rs6000/rs6000.md: Require operand inequality in one
22978 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
22979 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
22981 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
22983 * config/rx/rx.md (movdi, movdf): Likewise.
22984 Likewise for define_peephole2s.
22986 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22988 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
22989 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
22990 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
22991 vtst_u64): Rewrite using gcc vector extensions.
22993 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
22995 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
22996 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
22998 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
23000 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
23002 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
23004 * config/glibc-stdint.h (OPTION_MUSL): Define.
23005 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
23006 Change the definition based on OPTION_MUSL for 64 bit targets.
23007 * config/linux.h (OPTION_MUSL): Redefine.
23008 * config/alpha/linux.h (OPTION_MUSL): Redefine.
23009 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
23010 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
23012 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
23013 Szabolcs Nagy <szabolcs.nagy@arm.com>
23015 * config.gcc (LIBC_MUSL): New tm_defines macro.
23016 * config/linux.h (OPTION_MUSL): Define.
23017 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
23018 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
23019 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
23020 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
23021 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
23022 * config/linux.opt (mmusl): New option.
23023 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
23024 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
23025 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
23026 * configure: Regenerate.
23028 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
23029 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23032 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
23033 * config/i386/knetbsd-gnu64.h: New file.
23035 2015-05-08 Marek Polacek <polacek@redhat.com>
23038 * doc/invoke.texi: Document -Woverride-init-side-effects.
23040 2015-05-07 Marek Polacek <polacek@redhat.com>
23043 * doc/invoke.texi: Document -Wshift-negative-value.
23045 2015-05-06 Aditya Kumar <hiraditya@msn.com>
23047 * gcov-tool.c (do_merge): Refactore to remove int ret.
23048 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
23049 !type == FUNC to type != FUNC.
23050 * reload.h (struct target_reload): Changee to type of
23051 x_spill_indirect_levels from bool to unsigned char.
23053 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
23055 * rtl.h (always_void_p): New function.
23056 * gengenrtl.c (always_void_p): Likewise.
23057 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
23058 with code foo are always VOIDmode.
23059 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
23060 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
23061 compare-elim.c, config/aarch64/aarch64.c,
23062 config/aarch64/aarch64.md, config/alpha/alpha.c,
23063 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
23064 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
23065 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
23066 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
23067 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
23068 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
23069 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
23070 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
23071 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
23072 config/ia64/vect.md, config/iq2000/iq2000.c,
23073 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
23074 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
23075 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
23076 config/mep/mep.c, config/microblaze/microblaze.c,
23077 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
23078 config/mn10300/mn10300.c, config/msp430/msp430.c,
23079 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
23080 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
23081 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
23082 config/rs6000/altivec.md, config/rs6000/rs6000.c,
23083 config/rs6000/rs6000.md, config/rs6000/vector.md,
23084 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
23085 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
23086 config/sh/sh.md, config/sh/sh_treg_combine.cc,
23087 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
23088 config/spu/spu.md, config/stormy16/stormy16.c,
23089 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
23090 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
23091 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
23092 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
23093 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
23094 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
23095 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
23096 var-tracking.c: Update calls accordingly.
23098 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
23101 PR middle-end/54303
23102 * varasm.c (function_mergeable_rodata_prefix): New function.
23103 (mergeable_string_section): Use it.
23104 (mergeable_constant_section): Use it.
23106 2015-05-07 Jeff Law <law@redhat.com>
23109 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23110 simplifier to narrow arithmetic.
23111 * generic-match-head.c: (types_match, single_use): New functions.
23112 * gimple-match-head.c: (types_match, single_use): New functions.
23114 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23116 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
23119 2015-05-07 Richard Biener <rguenther@suse.de>
23121 PR tree-optimization/66002
23122 * passes.def: Schedule another pass_merge_phi after ifcombine, right
23125 2015-05-07 Marek Polacek <polacek@redhat.com>
23126 Martin Uecker <uecker@eecs.berkeley.edu>
23128 * doc/invoke.texi: Document -fsanitize=bounds-strict.
23129 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
23130 into SANITIZE_NONDEFAULT.
23131 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
23133 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
23136 * config/alpha/alpha.c (alpha_override_options_after_change): New.
23137 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
23138 (alpha_override_options): Move align_loops, align_jumps and
23139 align_functions handling into alpha_override_options_after_change.
23141 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
23142 Chris Jones <chrisj@nvidia.com>
23143 Joshua Conner <jconner@nvidia.com>
23145 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
23146 linking of crtfastmath.o.
23147 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
23149 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
23151 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
23152 (cstore<mode>4_unsigned_imm): New expander.
23153 (cstore<mode>4): Remove empty constraint strings. Use the new
23156 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
23159 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
23162 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
23164 * config/aarch64/geniterators.sh: Use standard BRE in sed.
23166 2015-05-06 Alan Modra <amodra@gmail.com>
23169 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
23170 (UNSPEC_NOP): Define.
23171 (reload_vsx_from_gpr<mode>): Add missing DONE.
23172 (reload_gpr_from_vsx<mode>): Likewise.
23173 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
23174 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
23176 2015-05-06 Christian Bruel <christian.bruel@st.com>
23179 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
23180 align_jumps, align_functions into aarch64_override_options_after_change.
23182 2015-05-06 Richard Biener <rguenther@suse.de>
23184 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
23185 vect_transform_slp_perm_load to check if we support a permutation
23186 for basic-block vectorization.
23188 2015-05-06 Nick Clifton <nickc@redhat.com>
23190 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
23191 used, even if it is not being used as a frame pointer.
23193 2015-05-05 Jason Merrill <jason@redhat.com>
23195 * dwarf2out.c (gen_member_die): Don't emit anything for an
23196 anonymous class constructor.
23198 2015-05-05 David Malcolm <dmalcolm@redhat.com>
23200 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
23201 that it reflects the block structure.
23202 (afdo_propagate_edge): Likewise.
23203 (afdo_calculate_branch_prob): Likewise.
23204 (afdo_annotate_cfg): Likewise.
23205 * cfgcleanup.c (equal_different_set_p): Likewise.
23206 (try_crossjump_to_edge): Likewise.
23207 * cgraph.c (cgraph_node::verify_node): Likewise.
23208 * cgraphunit.c (expand_all_functions): Likewise.
23209 * config/i386/i386.c (ix86_expand_copysign): Likewise.
23210 (exact_dependency_1): Likewise.
23211 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
23212 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
23213 * gensupport.c (process_define_subst): Likewise.
23214 * lto-wrapper.c (merge_and_complain): Likewise.
23215 * tree-if-conv.c (if_convertible_bb_p): Likewise.
23216 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
23217 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
23218 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
23219 * tree-vect-loop.c (vectorizable_reduction): Likewise.
23220 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
23221 * tree-vect-stmts.c (vectorizable_shift): Likewise.
23222 * tree-vrp.c (vrp_finalize): Likewise.
23223 * tree.c (variably_modified_type_p): Likewise.
23225 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
23227 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
23228 on darwin12 and later.
23229 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
23230 file to pass -rdynamic on darwin12 and later.
23231 * config/darwin.opt (rdynamic): Add.
23233 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23235 * doc/extend.texi (C Extensions): Update menu for moved Variable
23236 Attributes and Type Attributes sections.
23238 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23241 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
23242 if rep_8byte stringop strategy was specified for 32-bit target.
23244 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
23247 * config/i386/i386.md (vector convert to float spltiter): Check for
23248 xmm16+, when splitting scalar float conversion.
23249 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
23251 2015-05-05 Nick Clifton <nickc@redhat.com>
23253 * config/msp430/msp430-opts.h (enum msp430_regions): New.
23254 * config/msp430/msp430.c (msp430_override_options): Complain if
23255 -mcode-region or -mdata-region is used on a non MSP430X.
23256 (msp430_section_attr): New function. Checks lower, upper and
23258 (msp430_attribute_table): Add lower, upper and either.
23259 (gen_prefix): New function. Generates a prefix for a section
23261 (msp430_select_section): New function - handles the choice of
23262 section for an object. Takes into account memory region
23263 attributes and options.
23264 (msp430_function_section): Use gen_prefix.
23265 (TARGET_SECTION_TYPE_FLAGS): Define.
23266 (msp430_section_type_flags): New function.
23267 (TARGET_ASM_UNIQUE_SECTION): Define.
23268 (msp430_unique_section): New function.
23269 (msp430_output_aligned_decl_common): New function.
23270 (msp430_do_not_relax_short_jumps): New function.
23271 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
23273 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
23274 * config/msp430/msp430-protos.h
23275 (msp430_do_not_relax_short_jumps): New prototype.
23276 (msp430_output_aligned_decl_common): New prototype.
23277 * config/msp430/msp430.md (length): New attribute.
23278 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
23279 then use a long code sequence for short jumps.
23280 * config/msp430/msp430.opt (mcode-region): New.
23281 (mdata-region): New.
23282 * doc/invoke.texi: Document new options.
23283 * doc/extend.texi: Document new attributes.
23285 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
23287 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
23288 (tune_params): Add field branch_costs.
23289 (aarch64_branch_cost): Declare.
23290 * gcc/config/aarch64.c (generic_branch_cost): New.
23291 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
23292 (cortexa53_tunings): Likewise.
23293 (cortexa57_tunings): Likewise.
23294 (thunderx_tunings): Likewise.
23295 (xgene1_tunings): Likewise.
23296 (aarch64_branch_cost): Define.
23297 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
23299 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23301 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
23302 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
23303 * config/i386/i386.md: Ditto.
23304 * config/i386/winnt.c: Ditto.
23306 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
23308 * doc/extend.texi (__atomic Builtins): Move implementation details
23309 to the end of the description, rewrite opening paragraphs, state
23310 difference with __sync builtins, state C11/C++11 assumptions,
23311 weaken itemized descriptions, add explanation of memory model
23312 behaviour, expand description of compare-exchange, simplify text.
23314 2015-05-05 Renlin Li <renlin.li@arm.com>
23316 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
23318 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
23320 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
23321 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23322 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
23323 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
23324 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
23325 * configure: Regenerate.
23326 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
23327 * doc/install.texi (aarch64*-*-*): Document new
23328 --enable-fix-cortex-a53-843419 option.
23329 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
23330 and -mno-fix-cortex-a53-843419 options.
23332 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
23335 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
23337 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
23339 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
23340 fix overactive TYPE_MIN_VALUE check and add FIXME for type
23341 compatibility problems.
23343 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
23345 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
23347 (cbranchsi4_reg): New.
23348 * config/microblaze/microblaze.c
23349 (microblaze_expand_conditional_branch_reg): New.
23350 * config/microblaze/microblaze-protos.h
23351 (microblaze_expand_conditional_branch_reg): New prototype.
23353 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
23355 * config/microblaze/microblaze.md (peephole2): New.
23357 2015-05-04 Jeff Law <law@redhat.com>
23360 2015-05-04 Jeff Law <law@redhat.com>
23362 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23363 simplifier to narrow arithmetic.
23364 * generic-match-head.c: (types_match, single_use): New functions.
23365 * gimple-match-head.c: (types_match, single_use): New functions.
23367 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
23370 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
23371 (split_branches): Likewise.
23373 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
23375 * common.opt (fdelete-null-pointer-checks): Init to -1.
23376 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
23377 override flag_delete_null_pointer_checks default.
23378 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
23379 behavior re address zero. Better document target-specific behavior.
23380 (-fisolate-errneous-paths-dereference): Mention relationship to
23381 -fdelete-null-pointer-checks.
23383 2015-05-04 Jakub Jelinek <jakub@redhat.com>
23385 PR tree-optimization/65984
23386 * ubsan.c: Include tree-cfg.h.
23387 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
23388 stmt_could_throw_p test, rename can_throw variable to ends_bb.
23390 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
23392 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
23393 to CONST_DOUBLE_P predicate.
23394 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
23395 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
23396 allow only operands that satisfy standard_sse_constant_p predicate.
23397 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
23398 to CONST_DOUBLE_P predicate.
23400 2015-05-04 Jeff Law <law@redhat.com>
23402 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
23403 simplifier to narrow arithmetic.
23404 * generic-match-head.c: (types_match, single_use): New functions.
23405 * gimple-match-head.c: (types_match, single_use): New functions.
23407 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
23409 * config/arm/arm.c: Restore bootstrap.
23411 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
23413 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
23414 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
23415 as CONST_WIDE_INT, not CONST_DOUBLE.
23416 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
23417 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
23418 (ix86_find_base_term): Do not check for CONST_DOUBLE.
23419 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
23420 (ix86_build_signbit_mask): Rewrite using wide ints.
23421 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
23422 (ix86_rtx_costs): Handle CONST_WIDE_INT.
23423 (find_constant): Ditto.
23424 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
23425 using gen_int_mode.
23426 * config/i386/predicates.md (x86_64_immediate_operand)
23427 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23428 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
23429 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
23430 (const0_operand): Also match const_wide_int.
23431 (constm1_operand): Ditto.
23432 (const1_operand): Ditto.
23434 2015-05-04 Richard Biener <rguenther@suse.de>
23436 PR tree-optimization/65965
23437 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
23438 store groups at gaps.
23440 2015-05-04 Richard Biener <rguenther@suse.de>
23442 PR tree-optimization/65935
23443 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
23444 then make sure to apply that swapping to the IL.
23446 2015-05-04 Jakub Jelinek <jakub@redhat.com>
23448 * Makefile.in (PATCHLEVEL_c): New variable.
23449 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
23450 expand the same way as if DEVPHASE_c was non-empty.
23452 2015-05-04 Kai Tietz <ktietz@redhat.com>
23455 * lto-wrapper.c (run_gcc): Open filename
23458 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
23460 * doc/extend.texi (Variable Attributes, Type Attributes): Move
23461 sections up in file, to immediately after the Function Attributes
23464 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
23466 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
23468 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23470 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
23471 (insert_partition_copy_on_edge): Adjust.
23472 (insert_rtx_to_part_on_edge): Likewise.
23473 (insert_part_to_rtx_on_edge): Likewise.
23475 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23477 * function.c (set_return_jump_label): Change type of argument to
23479 * function.h (set_return_jump_label): Adjust.
23481 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23483 * reload.h (struct reg_equivs_t): Change type of init to
23485 * ira.c (fix_reg_equiv_init): Adjust.
23486 * reload1.c (eliminate_regs_1): Likewise.
23487 (init_eliminable_invariants): Likewise.
23489 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23491 * cselib.c (fp_setter_insn): Take a rtx_insn *.
23492 * cselib.h (fp_setter_insn): Adjust.
23494 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23496 * recog.c (struct validate_replace_src_data): Change type of
23497 insn field to rtx_insn *.
23498 (validate_replace_src_group): Change type of argument to rtx_insn *.
23499 * recog.h (validate_replace_src_group): Adjust.
23501 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23503 * haifa-sched.c: Change the type of some variables to rtx_insn *.
23504 * sched-deps.c: Likewise.
23505 * sched-int.h: Likewise.
23506 * sched-rgn.c: Likewise.
23507 * sel-sched.c: Likewise.
23509 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23512 * config/i386/i386.c: Change the type of some arguments to
23514 * config/arm/arm.c: Likewise.
23516 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23518 * lra-constraints.c: Change type of some arguments to rtx_insn *.
23520 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23522 * regcprop.c (kill_autoinc_value): Change type of argument to
23525 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23527 * genrecog.c (print_subroutine): Adjust.
23528 * recog.c (get_bool_attr_mask_uncached): Likewise.
23529 * recog.h (struct recog_data_d): Change the type of insn to
23532 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23534 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
23536 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23538 * df-problems.c (df_set_note): Change type of argument to
23541 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23543 * builtins.c (expand_builtin_trap): Change type of local
23544 variable to rtx_insn *.
23545 (add_sched_insns_for_speculation): Likewise.
23546 (ix86_emit_save_regs): Likewise.
23547 (get_scratch_register_on_entry): Likewise.
23548 (ix86_emit_restore_reg_using_pop): Likewise.
23549 (ix86_emit_leave): Likewise.
23550 (ix86_emit_restore_regs_using_mov): Likewise.
23551 (ix86_expand_epilogue): Likewise.
23553 (rl78_alloc_physical_registers_umul): Likewise.
23554 * cselib.c (discard_useless_locs): Likewise.
23555 (cselib_invalidate_regno): Likewise.
23556 (cselib_invalidate_mem): Likewise.
23557 * function.c (expand_function_start): Likewise.
23558 (emit_use_return_register_into_block): Likewise.
23559 * gcse.c: Likewise.
23560 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
23561 * ifcvt.c (noce_get_alt_condition): Likewise.
23562 * loop-doloop.c (doloop_condition_get): Likewise.
23563 * lra-constraints.c (inherit_in_ebb): Likewise.
23564 * modulo-sched.c (sms_schedule_by_order): Likewise.
23565 * recog.c (next_insn_tests_no_inequality): Likewise.
23566 * reorg.c (emit_delay_sequence): Likewise.
23567 (update_reg_dead_notes): Likewise.
23568 (fix_reg_dead_note): Likewise.
23569 (fill_slots_from_thread): Likewise.
23570 (delete_computation): Likewise.
23572 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
23574 * doc/extend.texi (Variable Attributes): Add menu and proper
23575 @nodes to subsections. Move Microsoft Windows attributes to
23576 their own subsection.
23577 (Type Attributes): Reorganize introduction to remove duplicate
23578 list of attributes. Add menu and proper @nodes to subsections.
23579 Alphabetize the main table of common attributes.
23581 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
23583 * match.pd: New simplification patterns.
23584 (x + (x & 1)) -> ((x + 1) & ~1)
23585 (x & ~(x & y)) -> ((x & ~y))
23586 (x | ~(x | y)) -> ((x | ~y))
23588 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23590 * target.def (attribute_table): Mention that struct attribute_spec
23591 is defined in tree-core.h rather than tree.h
23592 * doc/tm.texi: Regenerate.
23594 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
23596 * genrecog.c (test): Rename to rtx_test. Update rest of file
23599 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
23601 PR translation/65959
23602 * params.h (DEFPARAM): Rename msgid to nocmsgid.
23604 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23606 * gcc/config/aarch64/aarch64-protos.h (tune_params):
23607 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
23608 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
23609 Return value depending on target.
23610 (generic_tunings): Initialize new target settings.
23611 (cortexa53_tunings): Likewise.
23612 (cortexa57_tunings): Likewise.
23613 (thunderx_tunings): Likewise.
23614 (xgene1_tunings): Likewise.
23616 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23618 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
23619 Make Cortex-A53 shift costs more accurate.
23621 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23623 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
23626 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
23628 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
23629 Calculate cost of op0 and op1 in PLUS and MINUS cases.
23631 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23633 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
23634 Add cost of op0 in the compare-with-fpzero case.
23636 2015-04-30 David Malcolm <dmalcolm@redhat.com>
23638 * builtins.c (fold_builtin_1): Remove spurious second
23640 * cgraph.h (symtab_node::get_availability): Likewise.
23641 * opts.c (common_handle_option): Remove spurious second semicolon.
23642 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
23643 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
23645 2015-04-30 Caroline Tice <cmtice@google.com>
23647 PR gcov-profile/65929
23648 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
23649 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
23650 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
23651 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
23652 * doc/tm.texi: Regenerate.
23653 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
23654 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
23655 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
23656 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
23658 2015-04-30 Marek Polacek <polacek@redhat.com>
23660 * varasm.c (handle_cache_entry): Fix logic.
23662 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23664 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
23665 (*extrsi5_insn_uxtw_alt): Likewise.
23666 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
23667 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
23670 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23672 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
23675 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23677 * config/aarch64/aarch64.md
23678 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
23679 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
23680 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
23681 appropriately. Handle alternative EON form.
23683 2015-04-30 Renlin Li <renlin.li@arm.com>
23685 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
23686 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
23688 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
23691 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
23692 -fstrict-aliasing boundaries.
23694 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23696 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
23697 and [SU]MNEGL patterns.
23699 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23701 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
23702 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
23703 combined arithmetic-shift ops. Properly handle all shift and extend
23704 operations that can occur in combination with PLUS/MINUS.
23705 Rename maybe_fma to compound_p.
23706 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
23707 arithmetic and shift operations.
23709 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23711 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
23712 rather than arith_shift cost when costing ADD/MINUS of an
23715 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
23718 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
23721 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
23723 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
23724 are for the same position.
23726 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
23728 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
23730 (vectorize_loops): Use it.
23732 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
23734 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
23735 for aggregate types.
23736 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
23737 type to be non_ODR.
23738 * tree.c (need_assembler_name_p): Compute mangled name for
23739 non-fundamental types and integer types.
23741 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
23743 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
23745 * expr.c (expand_expr_real_2): Likewise.
23747 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
23749 * tree.c (build_common_builtin_nodes): Do not build
23750 __builtin_alloca_with_align as equivalent of library alloca.
23752 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
23754 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
23755 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
23757 * tree.c: Include print-tree.h and ipa-utils.h
23758 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
23759 (free_lang_data_in_cgraph): Call verify_type.
23760 (verify_type_variant): New function.
23761 (verify_type): New function.
23762 * tree.h (verify_type): Declare.
23764 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
23766 * config/mips/mips-cpus.def: (mips4): Change default processor
23767 from PROCESSOR_R8000 to PROCESSOR_R10000.
23769 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
23771 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
23772 la/jalr instead of jal.
23774 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
23777 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
23778 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
23779 (setcc+movzbl peephole2): Check also clobbered reg.
23780 (setcc+andl peephole2): Ditto.
23782 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
23785 * config/nvptx/mkoffload.c (target_ilp32): New variable.
23786 (main): Set it depending on "-foffload-abi=[...]".
23787 (compile_native, main): Use it to pass "-m32" or "-m64" to the
23790 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
23793 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
23794 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
23795 Flip lane index back at assembly time for bigendian.
23797 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
23799 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
23800 * gimplify.c (gimplify_omp_workshare): Use it.
23802 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
23804 * Makefile.in (build/genrecog.o): Depend on inchash.h.
23805 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
23807 * genrecog.c: Rewrite most of the code except for the third page.
23809 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
23811 * inchash.h, inchash.c: Include bconfig.h for build objects.
23812 * Makefile.in (build/inchash.o): New rule.
23814 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
23817 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
23818 number in type attribute expression.
23820 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
23822 * loop-iv.c (canon_condition): Generalize to all types of integer
23825 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
23827 * gimple-walk.c: Prune duplicate or unneeded includes.
23828 (walk_gimple_asm): Only call parse_input_constraint or
23829 parse_output_constraint if their findings are used.
23830 Honour parse_input_constraint and parse_output_constraint
23833 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
23835 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
23837 2015-04-29 Tom de Vries <tom@codesourcery.com>
23839 PR tree-optimization/65893
23840 * passes.def (pass_all_optimizations): Move pass_stdarg to after
23843 2015-04-29 Richard Biener <rguenther@suse.de>
23845 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
23846 compute GROUP_SIZE for basic-block SLP.
23847 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
23848 take into account gaps.
23849 (vect_get_mask_element): Properly reject references to previous
23851 (vect_transform_slp_perm_load): Likewise.
23853 2015-04-29 Christian Bruel <christian.bruel@st.com>
23856 * config/i386/i386.c (ix86_default_align): New function.
23857 (ix86_override_options_after_change): Call ix86_default_align.
23858 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
23859 (ix86_override_options_after_change): New function.
23861 2015-04-28 Jeff Law <law@redhat.com>
23863 * tree-ssa-dom.c (record_equality); Fix comment typos.
23865 2015-04-28 Tom de Vries <tom@codesourcery.com>
23867 PR tree-optimization/65887
23868 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
23870 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
23872 * doc/extend.texi (Declaring Attributes of Functions): Split into
23873 subsections by target. Alphabetize the table of common attributes.
23874 Rewrite some of the introductory text to reflect the new structure.
23875 Update some cross-references to point to the new subsections.
23876 (Attribute Syntax): Put paragraph about "__" naming here. Remove
23877 duplicate copies in the discussion of function, label, and type
23880 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
23883 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
23885 2015-04-28 Jason Merrill <jason@redhat.com>
23888 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
23889 (finalize_type_size): Respect TYPE_USER_ALIGN.
23890 (layout_type) [ARRAY_TYPE]: Likewise.
23892 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
23894 * config/arm/arm.md (*arm_movt): Fix type attribute.
23895 (*cmpsi_shiftsi): Likewise.
23896 (*cmpsi_shiftsi_swp): Likewise.
23897 (*movsicc_insn): Likewise.
23898 (*cond_move): Likewise.
23899 (*if_plus_move): Likewise.
23900 (*if_move_plus): Likewise.
23901 (*if_arith_move): Likewise.
23902 (*if_move_arith): Likewise.
23903 (*if_shift_move): Likewise.
23904 (*if_move_shift): Likewise.
23905 (*arm_movtas_ze): Likewise.
23906 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
23907 redundancy and type attribute.
23908 (*thumb2_movsi_insn): Fix type attribute.
23909 (*thumb2_addsi_short): Likewise.
23910 (thumb2_addsi3_compare0): Likewise.
23911 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
23912 attributes accordingly.
23914 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
23917 * function.c (pad_to_arg_alignment): Add parentheses.
23919 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
23921 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
23922 libgcc/config/frv/elf-lib.h.
23924 2015-04-28 Tom de Vries <tom@codesourcery.com>
23926 * tree-call-cdce.c: Fix example in header comment.
23928 2015-04-28 Richard Biener <rguenther@suse.de>
23930 PR tree-optimization/62283
23931 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
23932 fails fatally and we are vectorizing a basic-block simply
23933 cause the child to be constructed piecewise.
23934 (vect_analyze_slp_cost_1): Adjust.
23935 (vect_detect_hybrid_slp_stmts): Likewise.
23936 (vect_bb_slp_scalar_cost): Likewise.
23937 (vect_get_constant_vectors): For piecewise constructed
23938 constants place them after the last def.
23939 (vect_get_slp_defs): Adjust.
23940 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
23941 externals for basic-block vectorization.
23943 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23946 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
23948 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
23949 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
23950 (AARCH64_TUNE_FMA_STEERING): Likewise.
23951 * config/aarch64/aarch64-cores.def: Set
23952 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
23953 FMUL/FMADD instructions.
23954 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
23955 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
23956 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
23957 * config/aarch64/cortex-a57-fma-steering.h: New file.
23958 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23960 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
23962 * gensupport.c (std_preds): Add missing codes to address_operand entry.
23964 2015-04-28 Richard Biener <rguenther@suse.de>
23966 PR tree-optimization/65851
23967 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
23968 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
23969 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
23970 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
23971 (ccp_visit_phi_node): Adjust.
23972 (evaluate_stmt): For simplifications to SSA names return its
23973 lattice value if that isn't VARYING. Return immediately when
23974 simplified to a constant.
23975 (visit_assignment): Adjust.
23976 (ccp_visit_stmt): Likewise.
23978 2015-04-28 Tom de Vries <tom@codesourcery.com>
23980 PR tree-optimization/65818
23981 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
23984 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23986 * calls.c (save_fixed_argument_area): Don't check
23987 ARGS_GROW_DOWNWARD with the preprocessor.
23988 (restore_fixed_argument_area): Likewise.
23989 (mem_overlaps_already_clobbered_arg_p): Likewise.
23990 (check_sibcall_argument_overlap): Likewise.
23991 (expand_call): Likewise.
23992 (emit_library_call_value_1): Likewise.
23993 (store_one_arg): Likewise.
23994 * function.c (assign_parms): Likewise.
23995 (locate_and_pad_parm): Likewise.
23996 (pad_to_arg_alignment): Likewise.
23997 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
23999 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24001 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
24002 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
24003 * calls.c (save_fixed_argument_area): Don't chekc if
24004 ARGS_GROW_DOWNWARD is defined.
24005 (restore_fixed_argument_area): Likewise.
24006 (mem_overlaps_already_clobbered_arg_p): Likewise.
24007 (check_sibcall_argument_overlap): Likewise.
24008 (expand_call): Likewise.
24009 (emit_library_call_value_1): Likewise.
24010 (store_one_arg): Likewise.
24011 * function.c (assign_parms): Likewise.
24012 (locate_and_pad_parm): Likewise.
24013 (pad_to_arg_alignment): Likewise.
24014 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
24016 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24018 * defaults.h (gen_epilogue): New function.
24019 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
24021 * cfgrtl.c (cfg_layout_finalize): Likewise.
24022 * df-scan.c: Likewise.
24023 * function.c (thread_prologue_and_epilogue_insns): Likewise.
24024 (reposition_prologue_and_epilogue_notes): Likewise.
24025 * reorg.c (find_end_label): Likewise.
24026 * toplev.c: Likewise.
24028 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24030 * bb-reorder.c (HAVE_return): Don't check if its undefined.
24031 * defaults.h (gen_simple_return): New function.
24032 (gen_simple_return): Likewise.
24033 (HAVE_return): Add default definition to false.
24034 (HAVE_simple_return): Likewise.
24035 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
24036 HAVE_return and HAVE_simple_return are defined.
24037 * function.c (gen_return_pattern): Likewise.
24038 (convert_jumps_to_returns): Likewise.
24039 (thread_prologue_and_epilogue_insns): Likewise.
24040 * reorg.c (find_end_label): Likewise.
24041 (dbr_schedule): Likewise.
24042 * shrink-wrap.c: Likewise.
24043 * shrink-wrap.h: Likewise.
24045 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24047 * defaults.h (EPILOGUE_USES): Add default definition of false.
24048 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
24049 * resource.c (init_resource_info): Likewise.
24051 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24053 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
24055 * dwarf2out.c (field_byte_offset): REmove check if
24056 PCC_BITFIELD_TYPE_MATTERS is defined.
24057 * stor-layout.c (layout_decl): Likewise.
24058 (update_alignment_for_field): Likewise.
24059 (place_field): Likewise.
24061 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24063 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
24065 * regrename.c (check_new_reg_p): Remove check if
24066 HARD_REGNO_RENAME_OK is defined.
24067 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
24069 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24071 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
24072 * cse.c (fold_rtx): Likewise.
24073 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
24074 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
24075 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
24076 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
24077 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
24078 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
24079 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
24080 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
24081 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
24082 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
24084 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
24085 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
24086 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
24087 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
24088 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
24089 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
24090 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
24091 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
24092 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
24093 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
24094 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
24095 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
24096 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
24097 * doc/tm.texi: Regenerate.
24098 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
24099 either true or false.
24101 2015-04-27 Jeff Law <law@redhat.com>
24103 PR tree-optimization/65217
24104 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
24105 of them has a single use, make sure it is the LHS of the implied
24108 2015-04-28 Alan Modra <amodra@gmail.com>
24111 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
24112 (offsettable_ok_by_alignment): Use minimum of decl and toc
24113 pointer alignment. Replace dead code with assertion.
24114 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
24115 case if size exceeds toc pointer alignment.
24116 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
24117 (rs6000_emit_move): Likewise.
24118 * configure.ac: Add linker toc pointer alignment check.
24119 * configure: Regenerate.
24120 * config.in: Regenerate.
24122 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
24124 * config.gcc: Add h8300-*-linux.
24125 * config/h8300/linux.h: New.
24126 * config/h8300/t-linux: New.
24127 * config/h8300/h8300.c (h8300_option_override): Normal mode
24128 is not supported for h8300-*-linux.
24129 (h8300_file_start): Target priority change.
24130 (get_shift_alg): Likewise.
24131 (h8300_shift_need_scratch_p): Likewise.
24132 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
24133 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
24135 2015-04-27 Caroline Tice <cmtice@google.com>
24137 * final.c (final_scan_insn): Output cold_function_name as function
24139 * varasm.c (cold_function_name): Make global.
24140 (assemble_start_function): Re-set cold_function_name.
24141 (assemble_end_function): Output cold partition size.
24142 * varasm.h (cold_function_name): Declare global.
24144 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
24146 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
24147 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
24149 (*movxi_internal_avx512f): Ditto.
24150 (define_split): Check for xmm16+, when splitting scalar float_extend.
24151 (*extendsfdf2_mixed): Use "v" constraint.
24152 (define_split): Check for xmm16+, when splitting scalar float_truncate.
24153 (*truncdfsf_fast_sse): Use "v" constraint.
24154 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
24155 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
24156 (define_peephole2): Check for xmm16+, when converting scalar
24158 (define_peephole2): Check for xmm16+, when converting scalar
24160 (*fop_<mode>_comm_mixed): Use "v" constraint.
24161 (*fop_<mode>_comm_sse): Ditto.
24162 (*fop_<mode>_1_mixed): Ditto.
24163 (*sqrt<mode>2_sse): Ditto.
24164 (*ieee_s<ieee_maxmin><mode>3): Ditto.
24166 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24168 * combine.c (simplify_if_then_else): Use std::swap instead
24169 of manually swapping.
24170 (known_cond): Likewise.
24171 (simplify_comparison): Likewise.
24173 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
24176 * config/rs6000/htm.md: Remove all define_expands.
24177 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
24178 UNSPECV_HTM_TABORTWCI): Remove.
24179 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
24180 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
24181 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
24182 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
24183 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
24184 tabortwci_internal): Remove define_insns.
24185 (tabort<wd>c, tabort<wd>ci): New define_insns.
24186 (tabort): Use gpc_reg_operand.
24187 (tcheck): Remove operand.
24188 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
24189 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
24191 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
24192 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
24193 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
24194 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
24195 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
24196 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
24197 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
24198 (tcheck): Remove builtin argument.
24199 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
24201 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
24202 tabortdc and tabortdci builtins when not in 64-bit mode.
24203 Modify code to handle the loss of the HTM define_expands.
24204 Emit code to copy the CR register to TARGET.
24205 (htm_init_builtins): Modify code to handle the loss of the HTM
24207 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
24208 (RS6000_BTC_64BIT): Likewise.
24209 (RS6000_BTC_CR): New macro.
24210 * doc/extend.texi: Update documentation for htm builtins.
24212 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24214 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
24215 of manually swapping.
24216 (simplify_associative_operation): Likewise.
24217 (simplify_binary_operation): Likewise.
24218 (simplify_plus_minus): Likewise.
24219 (simplify_relational_operation): Likewise.
24220 (simplify_ternary_operation): Likewise.
24222 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
24224 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
24225 (xs_hi_nonmemory_operand): Remove error.
24226 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
24227 general_operand rather than xs_hi_general_operand.
24229 2015-04-27 Richard Biener <rguenther@suse.de>
24231 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
24232 (record_equivalences_from_stmt): Valueize rhs.
24233 (record_equality): Canonicalize x and y order via
24234 tree_swap_operands_p. Do not swap operands for same loop depth.
24236 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
24240 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
24241 Add hint how to use own spec file.
24243 2015-04-27 Jakub Jelinek <jakub@redhat.com>
24245 PR tree-optimization/65875
24246 * tree-vrp.c (update_value_range): If in is_new case setting
24247 old_vr to VR_VARYING, also set new_vr to it. Remove
24248 old_vr->type == VR_VARYING test.
24249 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
24250 SSA_PROP_INTERESTING if update_value_range returned true,
24251 but new range is VR_VARYING.
24253 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
24255 * combine.c (sign_extend_short_imm): New.
24256 (set_nonzero_bits_and_sign_copies): Use above new function for sign
24257 extension of src short immediate.
24258 (reg_nonzero_bits_for_combine): Likewise for tem.
24260 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
24262 * stor-layout.c (self_referential_component_ref_p): New predicate.
24263 (copy_self_referential_tree_r): Use it.
24264 (self_referential_size): Punt for simple operations directly involving
24265 self-referential component references.
24266 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
24268 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
24270 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
24272 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
24274 * vec.h (vec): Make splice arguments const. Update definitions
24277 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
24279 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
24282 2015-04-26 Tom de Vries <tom@codesourcery.com>
24284 PR tree-optimization/65826
24285 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
24287 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
24289 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
24290 (*madd3<mode>): Ditto.
24291 (*msub4<mode>): Ditto.
24292 (*msub3<mode>): Ditto.
24293 (*nmadd4<mode>): Ditto.
24294 (*nmadd3<mode>): Ditto.
24295 (*nmadd4<mode>_fastmath): Ditto.
24296 (*nmadd3<mode>_fastmath): Ditto.
24297 (*nmsub4<mode>): Ditto.
24298 (*nmsub3<mode>): Ditto.
24299 (*nmsub4<mode>_fastmath): Ditto.
24300 (*nmsub3<mode>_fastmath): Ditto.
24302 2015-04-24 Jason Merrill <jason@redhat.com>
24305 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
24306 down when building TYPE_CANONICAL.
24307 (build_pointer_type_for_mode): Likewise.
24309 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
24311 * genrecog.c (validate_pattern): Check matching constraint refers
24312 to a lower numbered operand.
24314 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
24317 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
24318 save to independent variables use the Save attribute. This will
24319 allow these options to be modified with the #pragma/attribute
24321 (-mallow-movmisalign): Likewise.
24322 (-mallow-df-permute): Likewise.
24323 (-msched-groups): Likewise.
24324 (-malways-hint): Likewise.
24325 (-malign-branch-targets): Likewise.
24326 (-mvectorize-builtins): Likewise.
24327 (-msave-toc-indirect): Likewise.
24329 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
24330 can be set via the #pragma/attribute target support.
24331 (rs6000_opt_vars): Likewise.
24332 (rs6000_inner_target_options): If VSX was set, also set
24333 -mno-avoid-indexed-addresses.
24335 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24337 * config/arm/iterators.md (shiftable_ops): Rename to...
24338 (SHIFTABLE_OPS): ... This. Update use in comments.
24339 (ior_xor): Rename to...
24340 (IOR_XOR): ... This.
24341 (vqh_ops): Rename to...
24342 (VQH_OPS): ... This.
24343 (vqhs_ops): Rename to...
24344 (VQHS_OPS): ... This.
24345 (rshifts): Rename to...
24346 (RSHIFTS): ... This.
24347 (returns): Rename to...
24348 (RETURNS): ... This.
24349 * config/arm/arm.md: Update uses of the above.
24350 * config/arm/neon.md: Likewise.
24352 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24354 * config.host (case ${host}): Add aarch64*-*-linux case.
24355 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
24356 fields to all the cores.
24357 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
24358 Add MCPU_MTUNE_NATIVE_SPECS.
24359 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
24360 field to all extensions.
24361 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
24362 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
24363 Adjust definition of AARCH64_OPT_EXTENSION.
24364 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
24365 (MCPU_MTUNE_NATIVE_SPECS): Define.
24366 * config/aarch64/driver-aarch64.c: New file.
24367 * config/aarch64/x-arch64: New file.
24368 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
24371 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
24372 Wei Mi <wmi@google.com>
24374 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
24375 * config/i386/i386.c (extract_base_offset_in_addr): New function.
24376 (ix86_operands_ok_for_move_multiple): Ditto.
24377 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
24378 (movlpd/movhpd to movupd peephole2): Ditto.
24380 2015-04-24 Marek Polacek <polacek@redhat.com>
24383 * input.h (from_macro_expansion_at): Define.
24386 * doc/invoke.texi: Update description of -Wlogical-op.
24388 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
24390 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
24391 ternary operator in fprintf and harmonize spacing.
24393 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
24395 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
24396 Mark operand1 commutative.
24398 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
24400 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
24401 input operands in memory.
24402 (*vec_concatv2si_sse4_1): Ditto.
24403 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
24404 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
24406 (vec_extract_hi_v32hi): Ditto.
24407 (vec_extract_hi_v64hi): Ditto.
24408 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
24410 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
24411 Steven Bosscher <steven@gcc.gnu.org>
24413 PR rtl-optimization/34503
24414 * cprop.c (cprop_reg_p): New.
24415 (hash_scan_set): Use above function to check if register can be
24417 (find_avail_set): Return up to two sets, one whose source is a
24418 register and one whose source is a constant. Sets are returned in an
24419 array passed as parameter rather than as a return value.
24420 (cprop_insn): Use a do while loop rather than a goto. Try each of the
24421 sets returned by find_avail_set, starting with the one whose source is
24422 a constant. Use cprop_reg_p to check if register can be propagated.
24423 (do_local_cprop): Use cprop_reg_p to check if register can be
24425 (implicit_set_cond_p): Likewise.
24427 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24429 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
24430 (sem_function::equals): IGNORED_NODES parameter is now unused;
24431 update call of equals_private.
24432 (sem_function::equals_private): Do not call equals_wpa; skip
24433 gimple body matching if there is no body.
24434 (sem_function::init): Add logic to hash tthunk info.
24435 (sem_function::parse): Also parse thunks.
24436 * ipa-icf.h (equals_private): Update declaration.
24438 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24440 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
24441 asterisk from name so this can be generated directly.
24442 (*altivec_stvx_<mode>_internal): Likewise.
24443 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
24444 that this is never called during or after reload/lra.
24445 (rs6000_frame_related): Remove split_reg
24446 argument and logic that references it.
24447 (emit_frame_save): Remove last parameter from call to
24448 rs6000_frame_related.
24449 (rs6000_emit_prologue): Remove last parameter from eight calls to
24450 rs6000_frame_related. Force generation of stvx instruction for
24451 Altivec register saves. Remove split_reg handling, which is no
24453 (rs6000_emit_epilogue): Force generation of lvx instruction for
24454 Altivec register restores.
24456 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24458 * config/rs6000/rs6000.opt (mcrypto): Change option description to
24459 match category changes in ISA 2.07B.
24461 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24463 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
24465 (cmp_op, cmp_type): New code attributes.
24466 (NEON_VCMP, NEON_VACMP): New int iterators.
24467 (cmp_op_unsp): New int attribute.
24468 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
24469 (neon_vceq<mode>): Delete.
24470 (neon_vc<cmp_op><mode>_insn): New pattern.
24471 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
24472 (neon_vcgeu<mode>): Delete.
24473 (neon_vcle<mode>): Likewise.
24474 (neon_vclt<mode>: Likewise.
24475 (neon_vcage<mode>): Likewise.
24476 (neon_vcagt<mode>): Likewise.
24477 (neon_vca<cmp_op><mode>): New define_expand.
24478 (neon_vca<cmp_op><mode>_insn): New pattern.
24479 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
24481 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24483 * tree.h (attribute_value_equal): Declare.
24484 * tree.c (attribute_value_equal): Export.
24486 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24488 * ipa-icf.c (sem_item::compare_attributes): New function.
24489 (sem_item::compare_referenced_symbol_properties): Compare variable
24491 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
24492 (sem_function::param_used_p): New function.
24493 (sem_function::equals_wpa): Fix attribute comparsion; match
24494 parameter type codes; do not compare paremter flags when
24495 they are not used; compare edge flags; compare indirect calls.
24496 (sem_item::update_hash_by_addr_refs): Hash reference type.
24497 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
24498 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
24499 reference use type.
24500 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
24501 * ipa-icf.h (compare_attributes, param_used_p): Declare.
24503 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
24505 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
24507 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
24508 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
24509 (sem_item::compare_referenced_symbol_properties): New.
24510 (sem_item::hash_referenced_symbol_properties): New.
24511 (sem_item::compare_cgraph_references): Rename to ...
24512 (sem_item::compare_symbol_references): ... this one; use
24513 compare_referenced_symbol_properties.
24514 (sem_function::equals_wpa): Do not compare
24515 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
24516 DECL_IS_OPERATOR_NEW; compare pointer sizes.
24517 (sem_item::update_hash_by_addr_refs): Call
24518 hash_referenced_symbol_properties.
24519 (sem_item::update_hash_by_local_refs): Cleanup.
24520 (sem_function::merge): Do not mix up symbol properties.
24521 (sem_variable::equals_wpa): Use compare_symbol_references.
24522 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
24523 (sem_item::hash_referenced_symbol_properties): New.
24524 (sem_item::compare_symbol_references): New.
24525 (sem_item::compare_cgraph_references): Remove.
24527 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
24530 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
24531 Emit size of local.
24533 2015-04-23 Nick Clifton <nickc@redhat.com>
24535 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
24536 ATTRIBUTE_UNUSED to x parameter.
24537 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
24539 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24541 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
24542 TARGET_CRYPTO to TARGET_P8_VECTOR>
24543 (crypto_vpermxor_<mode>): Likewise.
24544 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
24545 (BU_CRYPTO_3A): Likewise.
24546 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
24547 (BU_CRYPTO_OVERLOAD_3A): New #define.
24548 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
24549 (VPMSUMH): Likewise.
24550 (VPMSUMW): Likewise.
24551 (VPMSUMD): Likewise.
24552 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
24553 (VPERMXOR_V4SI): Likewise.
24554 (VPERMXOR_V8HI): Likewise.
24555 (VPERMXOR_V16QI): Likewise.
24556 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
24557 BU_CRYPTO_OVERLOAD_2A.
24558 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
24559 BU_CRYPTO_OVERLOAD_3A.
24560 * config/rs6000/rs6000.opt (mcrypto): Change description of
24563 2015-04-23 Richard Biener <rguenther@suse.de>
24565 * passes.def: Remove copy propagation passes run directly after CCP.
24566 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
24568 (ccp_visit_phi_node): Rework to handle first executable edge
24571 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
24573 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
24574 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24575 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
24576 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
24577 (thumb_legimitimize_reload_address): Remove.
24578 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
24580 (thumb_legimitimize_reload_address): Remove.
24582 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24584 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
24586 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24588 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
24590 (store_multiple): Likewise.
24592 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24594 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
24595 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
24596 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
24597 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
24598 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
24599 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
24600 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
24601 Specify issue_rate value.
24602 (arm_issue_rate): Look up issue rate from tuning structs. Remove
24603 large switch statement.
24604 (arm_marvell_pj4_tune): New struct.
24605 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
24608 2015-04-23 Richard Biener <rguenther@suse.de>
24610 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
24611 (vect_find_last_store_in_slp_instance): Rename to ...
24612 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
24613 (vect_analyze_slp_cost_1): Use vector_load for constant defs
24614 and vec_construct for external defs when estimating prologue cost.
24615 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
24616 Compute costs here only when vectorizing loops.
24617 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
24618 have been determined.
24619 (vect_schedule_slp_instance): Simplify vectorized code placement
24620 and prepare for in-BB external defs.
24621 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
24622 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
24623 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
24625 (vect_model_load_cost): Likewise.
24626 (vectorizable_store): Instead add it here.
24627 (vectorizable_load): Likewise.
24628 (vect_is_simple_use): Dump def type textually.
24630 2015-04-23 Richard Biener <rguenther@suse.de>
24632 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
24633 * cfgloop.c (verify_loop_structure): Verify the root loop node.
24634 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
24635 instead of get_eh_region_from_lp_number.
24636 * loop-init.c (fix_loop_structure): If we removed a loop, reset
24639 2015-04-23 Anton Blanchard <anton@samba.org>
24641 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
24642 need for -mprofile-kernel to save LR to stack.
24644 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24646 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
24648 (insn_is_swappable_p): Return 1 for a convert from double to
24649 single precision when all of its uses are splats of BE element
24652 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
24654 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
24656 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24659 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
24660 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
24661 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
24663 (rs6000_builtin_mask_for_load): Return 0 for targets with
24664 efficient unaligned VSX accesses so that the vectorizer will use
24665 direct unaligned loads.
24666 (rs6000_builtin_support_vector_misalignment): Always return true
24667 for targets with efficient unaligned VSX accesses.
24668 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
24669 stores on targets with efficient unaligned VSX accesses is almost
24670 always the same as the cost of an aligned load or store, so model
24672 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
24673 unaligned vectors if we have efficient unaligned VSX accesses.
24674 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
24675 undocumented option.
24677 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24680 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
24682 * config.gcc (LIBC_MUSL): New tm_defines macro.
24683 * config/linux.h (OPTION_MUSL): Define.
24684 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24685 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24686 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24688 * config/linux.opt (mmusl): New option.
24689 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24690 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24692 * configure: Regenerate.
24694 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
24696 * config.gcc (LIBC_MUSL): New tm_defines macro.
24697 * config/linux.h (OPTION_MUSL): Define.
24698 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
24699 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
24700 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
24702 * config/linux.opt (mmusl): New option.
24703 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
24704 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
24706 * configure: Regenerate.
24708 2015-04-22 Yury Gribov <y.gribov@samsung.com>
24710 * doc/invoke.texi (-fsanitize-sections): Update description.
24711 * asan.c (set_sanitized_sections): Parse incoming arg.
24712 (section_sanitized_p): Support wildcards.
24714 2015-04-22 Tom de Vries <tom@codesourcery.com>
24716 PR tree-optimization/65823
24717 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
24718 equality between ap_copy and ap.
24720 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24723 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
24725 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24728 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
24730 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24733 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
24734 remove already contained t-files.
24736 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24738 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
24739 Remove unneeded forward declarations.
24740 (suitable_for_tail_call_opt_p): Commentary typo fix.
24742 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24744 * varasm.c (emit_bss): Remove redundant guard.
24746 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24748 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
24750 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24752 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
24754 2015-04-22 Hale Wang <hale.wang@arm.com>
24755 Terry Guo <terry.guo@arm.com>
24757 PR rtl-optimization/64818
24758 * combine.c (can_combine_p): Don't combine user-specified
24759 register if it is in an asm input.
24761 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
24764 * passes.def (early_optimizations): Add pass_dse.
24766 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24768 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
24769 * reorg.c (redundant_insn): Remove ifdef
24770 INSN_REFERENCES_ARE_DELAYED.
24771 * resource.c (mark_referenced_resources): Likewise.
24773 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24775 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
24776 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
24777 * resource.c (mark_set_resources): Likewise.
24779 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24781 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
24782 * cfgcleanup.c (flow_find_cross_jump): Likewise.
24783 (flow_find_head_matching_sequence): Likewise.
24784 (try_head_merge_bb): Likewise.
24785 * combine.c (can_combine_p): Likewise.
24786 (try_combine): Likewise.
24787 (distribute_notes): Likewise.
24788 * df-problems.c (can_move_insns_across): Likewise.
24789 * final.c (final): Likewise.
24790 * gcse.c (insert_insn_end_basic_block): Likewise.
24791 * ira.c (find_moveable_pseudos): Likewise.
24792 * reorg.c (try_merge_delay_insns): Likewise.
24793 (fill_simple_delay_slots): Likewise.
24794 (fill_slots_from_thread): Likewise.
24795 * sched-deps.c (sched_analyze_2): Likewise.
24797 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24799 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
24800 PIC_OFFSET_TABLE_REGNUM.
24802 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24804 * alias.c (init_alias_target): Remove ifdef
24805 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
24806 * df-scan.c (df_insn_refs_collect): Likewise.
24807 (df_get_regular_block_artificial_uses): Likewise.
24808 (df_get_eh_block_artificial_uses): Likewise.
24809 (df_get_entry_block_def_set): Likewise.
24810 (df_get_exit_block_use_set): Likewise.
24811 * emit-rtl.c (gen_rtx_REG): Likewise.
24812 * ira.c (ira_setup_eliminable_regset): Likewise.
24813 * reginfo.c (init_reg_sets_1): Likewise.
24814 * regrename.c (rename_chains): Likewise.
24815 * reload1.c (reload): Likewise.
24816 (eliminate_regs_in_insn): Likewise.
24817 * resource.c (mark_referenced_resources): Likewise.
24818 (init_resource_info): Likewise.
24820 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24822 * defaults.h (MASK_RETURN_ADDR): New definition.
24823 * except.c (expand_builtin_extract_return_addr): Remove ifdef
24826 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24828 * defaults.h (RETURN_ADDR_OFFSET): New definition.
24829 * except.c (expand_builtin_extract_return_addr): Remove ifdef
24830 RETURN_ADDR_OFFSET.
24831 (expand_builtin_frob_return_addr): Likewise.
24833 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24835 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
24836 (try_redirect_by_replacing_jump): Likewise.
24837 (rtl_tidy_fallthru_edge): Likewise.
24838 * combine.c (insn_a_feeds_b): Likewise.
24839 (find_split_point): Likewise.
24840 (simplify_set): Likewise.
24841 * cprop.c (cprop_jump): Likewise.
24842 * cse.c (cse_extended_basic_block): Likewise.
24843 * df-problems.c (can_move_insns_across): Likewise.
24844 * function.c (emit_use_return_register_into_block): Likewise.
24845 * haifa-sched.c (sched_init): Likewise.
24846 * ira.c (find_moveable_pseudos): Likewise.
24847 * loop-invariant.c (find_invariant_insn): Likewise.
24848 * lra-constraints.c (curr_insn_transform): Likewise.
24849 * postreload.c (reload_combine_recognize_const_pattern):
24851 * reload.c (find_reloads): Likewise.
24852 * reorg.c (delete_scheduled_jump): Likewise.
24853 (steal_delay_list_from_target): Likewise.
24854 (steal_delay_list_from_fallthrough): Likewise.
24855 (redundant_insn): Likewise.
24856 (fill_simple_delay_slots): Likewise.
24857 (fill_slots_from_thread): Likewise.
24858 (delete_computation): Likewise.
24859 * sched-rgn.c (add_branch_dependences): Likewise.
24861 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24863 * genconfig.c (main): Always define HAVE_cc0.
24864 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
24866 * cfgcleanup.c (flow_find_cross_jump): Likewise.
24867 (flow_find_head_matching_sequence): Likewise.
24868 (try_head_merge_bb): Likewise.
24869 * cfgrtl.c (rtl_merge_blocks): Likewise.
24870 (try_redirect_by_replacing_jump): Likewise.
24871 (rtl_tidy_fallthru_edge): Likewise.
24872 * combine.c (do_SUBST_MODE): Likewise.
24873 (insn_a_feeds_b): Likewise.
24874 (combine_instructions): Likewise.
24875 (can_combine_p): Likewise.
24876 (try_combine): Likewise.
24877 (find_split_point): Likewise.
24879 (simplify_set): Likewise.
24880 (distribute_notes): Likewise.
24881 * cprop.c (cprop_jump): Likewise.
24882 * cse.c (cse_extended_basic_block): Likewise.
24883 * df-problems.c (can_move_insns_across): Likewise.
24884 * final.c (final): Likewise.
24885 (final_scan_insn): Likewise.
24886 * function.c (emit_use_return_register_into_block): Likewise.
24887 * gcse.c (insert_insn_end_basic_block): Likewise.
24888 * haifa-sched.c (sched_init): Likewise.
24889 * ira.c (find_moveable_pseudos): Likewise.
24890 * loop-invariant.c (find_invariant_insn): Likewise.
24891 * lra-constraints.c (curr_insn_transform): Likewise.
24892 * optabs.c (prepare_cmp_insn): Likewise.
24893 * postreload.c (reload_combine_recognize_const_pattern):
24895 * reload.c (find_reloads): Likewise.
24896 (find_reloads_address_1): Likewise.
24897 * reorg.c (delete_scheduled_jump): Likewise.
24898 (steal_delay_list_from_target): Likewise.
24899 (steal_delay_list_from_fallthrough): Likewise.
24900 (try_merge_delay_insns): Likewise.
24901 (redundant_insn): Likewise.
24902 (fill_simple_delay_slots): Likewise.
24903 (fill_slots_from_thread): Likewise.
24904 (delete_computation): Likewise.
24905 (relax_delay_slots): Likewise.
24906 * sched-deps.c (sched_analyze_2): Likewise.
24907 * sched-rgn.c (add_branch_dependences): Likewise.
24909 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24911 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
24912 that is trivially ded on non cc0 targets.
24913 (simplify_set): Likewise.
24914 (mark_used_regs_combine): Likewise.
24915 * cse.c (new_basic_block): Likewise.
24916 (fold_rtx): Likewise.
24917 (cse_insn): Likewise.
24918 (cse_extended_basic_block): Likewise.
24919 (set_live_p): Likewise.
24920 * rtlanal.c (canonicalize_condition): Likewise.
24921 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24923 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24925 * conditions.h: Define macros even if HAVE_cc0 is undefined.
24926 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
24927 * final.c: Likewise.
24928 * jump.c: Likewise.
24929 * recog.c: Likewise.
24930 * recog.h: Declare functions even when HAVE_cc0 is undefined.
24931 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
24933 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24935 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
24936 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
24937 * builtins.c (expand_builtin): Remove check if
24938 EH_RETURN_DATA_REGNO is defined.
24939 * df-scan.c (df_bb_refs_collect): Likewise.
24940 (df_get_exit_block_use_set): Likewise.
24941 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
24942 * ira-lives.c (process_bb_node_lives): Likewise.
24943 * lra-lives.c (process_bb_lives): Likewise.
24945 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
24947 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
24948 FIRST_PSEUDO_REG): New.
24949 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
24950 (ARG_POINTER_REGNUM): Define to ARGP_REG.
24951 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
24952 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
24953 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
24954 (FIRST_INT_REG): New.
24955 (LAST_INT_REG): New.
24956 (FIRST_*_REG): Define using *_REG.
24957 (LAST_*_REG): Ditto.
24958 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
24959 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
24960 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
24962 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24964 * expmed.c: (synth_mult): Only assume overlapping
24965 shift with previous steps in alg_sub_t_m2 case.
24967 2015-04-21 Richard Biener <rguenther@suse.de>
24969 PR tree-optimization/65650
24970 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
24971 transitions involving copies.
24972 (set_lattice_value): Adjust for copy lattice state.
24973 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
24974 if that doesn't dominate the merge point.
24975 (bit_value_unop): Adjust what we treat as varying mask.
24976 (bit_value_binop): Likewise.
24977 (bit_value_assume_aligned): Likewise.
24978 (evaluate_stmt): When we simplified to a SSA name record a copy
24979 instead of dropping to varying.
24980 (visit_assignment): Simplify.
24982 * gimple-match.h (gimple_simplify): Add another callback.
24983 * gimple-fold.c (fold_stmt_1): Adjust caller.
24984 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
24985 for the 2nd callback.
24986 * gimple-match-head.c (gimple_simplify): Add a callback that is
24987 used to valueize the stmt operands and use it that way.
24989 2015-04-21 Richard Biener <rguenther@suse.de>
24991 PR tree-optimization/65788
24992 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
24994 2015-04-21 Richard Biener <rguenther@suse.de>
24996 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
24997 vec_construct cost by vec_stmt_cost.
24999 2015-04-21 Richard Biener <rguenther@suse.de>
25001 * cfghooks.h (create_basic_block): Replace with two overloads
25002 for RTL and GIMPLE.
25003 (split_block): Likewise.
25004 * cfghooks.c (split_block): Rename to ...
25005 (split_block_1): ... this.
25006 (split_block): Add two type-safe overloads for RTL and GIMPLE.
25007 (split_block_after_labels): Call split_block_1.
25008 (create_basic_block): Rename to ...
25009 (create_basic_block_1): ... this.
25010 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
25011 (create_empty_bb): Call create_basic_block_1.
25012 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
25013 split_block_after_labels.
25014 * omp-low.c (expand_parallel_call): Likewise.
25015 (expand_omp_target): Likewise.
25016 (simd_clone_adjust): Likewise.
25017 * tree-chkp.c (chkp_get_entry_block): Likewise.
25018 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
25019 create_basic_block overload.
25020 (cgraph_node::expand_thunk): Likewise.
25021 * tree-cfg.c (make_blocks): Likewise.
25022 (handle_abnormal_edges): Likewise.
25023 * tree-inline.c (copy_bb): Likewise.
25025 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25027 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
25029 (*xor_one_cmplsidi3_ze): Likewise.
25031 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
25033 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
25034 use df_remove_problem rather than manually removing problems, leaving
25035 holes in df->problems_in_order[].
25037 2015-04-21 Tom de Vries <tom@codesourcery.com>
25039 PR tree-optimization/65802
25040 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
25042 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25044 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
25046 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
25047 at '.'. Assert that there's enough space for everything.
25049 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
25051 PR tree-optimization/64950
25053 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
25056 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
25059 2015-04-20 Shiva Chen <shiva0217@gmail.com>
25061 PR rtl-optimization/64916
25062 * cfgcleanup.c (values_equal_p): New function.
25063 (can_replace_by): Use it.
25065 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
25068 * doc/invoke.texi ([-Wnarrowing]): Update.
25070 2015-04-20 Jeff Law <law@redhat.com>
25072 PR tree-optimization/65658
25073 * tree-ssa-threadupdate.c (redirection_block_p): Remove
25074 redundant test for GIMPLE_ASSIGN in last change.
25076 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
25078 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
25079 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
25080 (legitimize_tls_address): Ditto.
25081 (ix86_expand_move): Ditto.
25082 (ix86_expand_binary_operator): Remove reload_in_progress checks.
25083 (ix86_expand_unary_operator): Ditto.
25084 * config/i386/predicates.md (index_register_operand): Ditto.
25086 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
25088 * reorg.c (try_merge_delay_insns): Improve correctness checking
25089 for targets with multiple delay slots.
25091 2015-04-20 Jeff Law <law@redhat.com>
25093 PR tree-optimization/65658
25094 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
25097 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25099 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
25100 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
25103 2015-04-20 Jakub Jelinek <jakub@redhat.com>
25106 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
25108 2015-04-20 Richard Biener <rguenther@suse.de>
25110 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
25111 * gimple-fold.c (gimple_build_valueize): New function.
25112 (gimple_build): Always use gimple_build_valueize as valueize hook.
25114 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
25117 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
25118 and overwrite variable parts if <= 1/2 the elements are variable.
25120 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
25122 PR rtl-optimization/65805
25123 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
25124 Don't use difference of offset and previous offset if
25125 update_sp_offset is non-zero.
25126 (eliminate_regs_in_insn): Ditto.
25127 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
25128 lra_eliminate_regs_1 call.
25129 * lra-constraints.c (get_equiv_with_elimination): Ditto.
25131 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
25133 * hash-table.h: Remove version of hash_table that stored value_type *.
25134 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
25135 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
25136 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
25137 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
25138 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
25139 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
25140 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
25141 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
25142 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
25143 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
25144 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
25145 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
25146 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
25147 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
25148 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
25149 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
25151 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25152 Jakub Jelinek <jakub@redhat.com>
25155 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
25156 subsequent SH_NONE operand does not overwrite an existing *special
25158 (adjust_extract): Handle case where a vec_extract operation is
25159 wrapped in a PARALLEL.
25161 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25164 * config/i386/i386.c (ix86_binds_local_p): Define only if
25165 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
25167 2015-04-17 Jeff Law <law@redhat.com>
25169 PR tree-optimization/47679
25170 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
25171 * tree-ssa-scopedtables.c: New file.
25172 * tree-ssa-scopedtables.h: New file.
25173 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
25174 (const_and_copies): Change name/type.
25175 (record_const_or_copy): Move into tree-ssa-scopedtables.c
25176 (record_const_or_copy_1): Similarly.
25177 (restore_vars_to_original_value): Similarly.
25178 (pass_dominator::execute): Create and destroy const_and_copies table.
25179 (thread_across_edge): Update passing of const_and_copies.
25180 (record_temporary_equivalence): Use method calls rather than
25181 manipulating const_and_copies directly.
25182 (record_equality, cprop_into_successor_phis): Similarly.
25183 (dom_opt_dom_walker::before_dom_children): Similarly.
25184 (dom_opt_dom_walker::after_dom_children): Similarly.
25185 (eliminate_redundant_computations): Similarly.
25186 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
25187 (record_temporary_equivalence): Likewise.
25188 (invalidate_equivalences): Likewise.
25189 (record_temporary_equivalences_from_phis): Update due to type
25190 change of const_and_copies. Use method calls rather than
25191 manipulating the stack directly.
25192 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
25193 (thread_through_normal_block, thread_across_edge): Likewise.
25194 (thread_across_edge): Likewise.
25195 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
25196 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
25198 (identify_jump_threads): Update due to type change of equiv_stack.
25199 (finalize_jump_threads): Delete the equiv_stack when complete.
25201 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
25203 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
25204 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
25205 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
25207 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
25210 * config.gcc: Exit with a comment when we do not have a major version
25211 number for the FreeBSD target.
25213 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25216 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
25217 maybe_allows_mem bitfields.
25218 (maybe_allows_none_start, maybe_allows_none_end,
25219 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
25220 maybe_allows_mem_end): New variables.
25221 (compute_maybe_allows): New function.
25222 (add_constraint): Use it to initialize maybe_allows_reg and
25223 maybe_allows_mem fields.
25224 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
25225 is_address constraints such that those that allow neither mem nor
25226 reg come first, then those that only allow reg but not mem, then
25227 those that only allow mem but not reg, then the rest.
25228 (write_allows_reg_mem_function): New function.
25229 (write_tm_preds_h): Call it.
25230 * stmt.c (parse_output_constraint, parse_input_constraint): Use
25231 the generated insn_extra_constraint_allows_reg_mem function
25232 instead of always setting *allows_reg = true; *allows_mem = true;
25233 for unknown extra constraints.
25235 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
25238 * output.h (default_binds_local_p_3): New.
25239 * varasm.c (default_binds_local_p_3): Make it public. Take an
25240 argument to indicate if common symbol may be local. If common
25241 symbol may be local, treat non-external variable as defined
25243 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
25244 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
25245 * config/i386/i386.c (ix86_binds_local_p): New.
25246 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
25247 ix86_binds_local_p.
25249 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25252 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
25253 trying mem_loc_descriptor on XEXP (rtl, 0).
25255 2015-04-17 Martin Liska <mliska@suse.cz>
25257 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
25258 Release symbol_compare_collection.
25259 * ipa-reference.c: Add TODO that a vector should be released.
25261 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
25264 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
25265 to new AVR-LibC file layout (bug #44574).
25266 (*avrlibc_devicelib): Same.
25267 * config/avr/avr-mcus.def: Adjust comments.
25268 * config/avr/avr.opt (nodevicelib): Adjust help.
25270 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
25272 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
25274 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
25277 * gimplify.c (gimplify_init_constructor): Always emit a
25278 side-effecting constructor.
25280 2015-04-17 Tom de Vries <tom@codesourcery.com>
25282 PR tree-optimization/64950
25283 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
25284 in cfun->curr_properties.
25285 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
25286 if we generate an IFN_VA_ARG.
25287 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
25288 function if PROP_gimple_lva is not set in src function.
25290 2015-04-17 Tom de Vries <tom@codesourcery.com>
25291 Michael Matz <matz@suse.de>
25293 PR tree-optimization/64950
25294 * gimple-iterator.c (update_modified_stmts): Remove static.
25295 * gimple-iterator.h (update_modified_stmts): Declare.
25296 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
25297 (gimplify_va_arg_internal): New function.
25298 (gimplify_va_arg_expr): Use IFN_VA_ARG.
25299 * gimplify.h (gimplify_va_arg_internal): Declare.
25300 * internal-fn.c (expand_VA_ARG): New unreachable function.
25301 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
25302 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
25303 (expand_ifn_va_arg): New function.
25304 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
25305 (pass_stdarg::execute): Call expand_ifn_va_arg.
25306 (pass_data_lower_vaarg): New pass_data.
25307 (pass_lower_vaarg): New gimple_opt_pass.
25308 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
25309 (make_pass_lower_vaarg): New function.
25310 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
25311 properties_required field.
25312 * passes.def (all_passes): Add pass_lower_vaarg.
25313 * tree-pass.h (PROP_gimple_lva): Add define.
25314 (make_pass_lower_vaarg): Declare.
25316 2015-04-17 Tom de Vries <tom@codesourcery.com>
25318 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
25319 * calls.c (call_expr_flags): Same.
25321 2015-04-17 Tom de Vries <tom@codesourcery.com>
25323 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
25324 (pass_stdarg::execute): ... here.
25326 2015-04-17 Tom de Vries <tom@codesourcery.com>
25327 Michael Matz <matz@suse.de>
25329 * tree-cfg.c (make_blocks_1): Factor out of ...
25330 (make_blocks): ... here.
25331 (make_edges_bb): Factor out of ...
25332 (make_edges): ... here.
25333 (gimple_find_sub_bbs): New function.
25334 * tree-cfg.h (gimple_find_sub_bbs): Declare.
25336 2015-04-17 Tom de Vries <tom@codesourcery.com>
25338 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
25340 2015-04-17 Yury Gribov <y.gribov@samsung.com>
25342 * asan.c (set_sanitized_sections): New function.
25343 (section_sanitized_p): Ditto.
25344 (asan_protect_global): Optionally sanitize user-defined
25346 * asan.h (set_sanitized_sections): Declare new function.
25347 * common.opt (fsanitize-sections): New option.
25348 * doc/invoke.texi (-fsanitize-sections): Document new option.
25349 * opts-global.c (handle_common_deferred_options): Handle new
25352 2015-04-17 Jakub Jelinek <jakub@redhat.com>
25355 * dwarf2out.c (loc_list_from_tree): Return NULL
25356 for DEBUG_EXPR_DECL.
25358 2015-04-17 Christian Bruel <christian.bruel@st.com>
25360 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
25363 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
25365 * ira-color.c (setup_left_conflict_sizes_p): Do not process
25366 node itself when computing left conflict subnode size.
25368 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
25370 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
25371 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
25372 *fop_<mode>_1_sse using enabled attribute. Use
25373 register_mixssei387nonimm_operand operand 1 predicate. Change
25374 alternative 3 constraints from "x" to "v".
25376 2015-04-16 Richard Biener <rguenther@suse.de>
25378 PR tree-optimization/65774
25379 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
25380 bit-value tracking on.
25382 2015-04-16 Richard Biener <rguenther@suse.de>
25384 PR tree-optimization/64277
25385 * tree-vrp.c (check_array_ref): Fix anti-range handling,
25386 simplify upper bound handling.
25387 (search_for_addr_array): Simplify.
25388 (check_array_bounds): Handle ADDR_EXPRs here.
25389 (check_all_array_refs): Simplify.
25391 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
25393 * config/i386/i386.c (print_reg): Rewrite function.
25395 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25397 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
25398 Invert the condition.
25400 2015-04-16 Renlin Li <renlin.li@arm.com>
25402 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
25403 simplifications for UNSIGNED_FLOAT.
25405 2015-04-16 Nick Clifton <nickc@redhat.com>
25407 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
25409 (enum rl78_cpu_type): New.
25410 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
25411 (umulhi3_shift_virt): Remove m constraint from operand 1.
25412 (umulqihi3_virt): Likewise.
25413 * config/rl78/rl78.c (rl78_option_override): Add code to process
25414 -mcpu and -mmul options.
25415 (rl78_alloc_physical_registers): Add code to handle divhi and
25416 divsi valloc attributes.
25417 (set_origin): Likewise.
25418 * config/rl78/rl78.h (RL78_MUL_G14): Define.
25419 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
25420 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
25422 (ASM_SPEC): Pass -mcpu on to assembler.
25423 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
25424 (mulqi3_rl78): Likewise.
25425 (mulhi3_g13): Likewise.
25426 (mulhi3): Generate the G13 or G14 versions of the insn directly.
25427 (mulsi3): Likewise.
25428 (mulhi3_g14): Add clobbers of AX and BC.
25429 (mulsi3_g14): Likewise.
25430 (mulsi3_g13): Likewise.
25431 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
25432 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
25433 * config/rl78/rl78.opt (mmul): Initialise value to
25435 (mcpu): New option.
25436 (m13, m14, mrl78): New option aliases.
25437 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
25438 (MULTILIB_DIRNAMES): Add g13 and g14.
25439 * doc/invoke.texi: Document -mcpu and -mmul options.
25441 2015-04-16 Richard Biener <rguenther@suse.de>
25443 * tree-ssa-ccp.c (likely_value): See if we have operands that
25444 are marked as never simulate again and return CONSTANT in this
25446 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
25447 not have any operands that will be simulated again as
25448 not being simulated again.
25450 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
25452 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
25453 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
25454 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
25456 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
25458 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
25459 *float<SWI48:mode><MODEF:mode>2_sse.
25460 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
25462 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
25465 2015-04-15 Tom de Vries <tom@codesourcery.com>
25468 * function.c (push_dummy_function): New function.
25469 (init_dummy_function_start): Use push_dummy_function.
25470 (pop_dummy_function): New function. Factored out of ...
25471 (expand_dummy_function_end): ... here.
25472 * function.h (push_dummy_function, pop_dummy_function): Declare.
25473 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
25474 pop_dummy_function.
25475 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
25477 2015-04-15 Jeff Law <law@redhat.com>
25479 PR tree-optimization/47679
25480 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
25481 need for forward declaration in upcoming changes.
25482 (record_conditions, record_edge_info): Likewise.
25484 PR rtl-optimization/42522
25485 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
25486 SIGN_EXTRACT as a whole object rather than simplifying
25489 2015-04-15 Jakub Jelinek <jakub@redhat.com>
25492 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
25493 and GIMPLE_PREDICT use break instead of return true. For
25494 GIMPLE_EH_DISPATCH, compare dispatch region.
25496 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
25498 * doc/extend.texi (__sync Builtins): Simplify some text. Update
25499 details about the implementation. Make clear preference for
25500 __atomic builtins. Reduce possibility of future change.
25502 2015-04-15 Nick Clifton <nickc@redhat.com>
25504 * config/rx/rx.opt (mallow-string-insns): New option.
25505 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
25506 builtin if string instructions are denied.
25507 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
25508 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
25510 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
25511 * config/rx/rx.md (movstr): Enable pattern only if string
25512 instructions are allowed.
25513 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
25514 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
25515 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
25516 (MULTILIB_DIRNAMES): Add no-strings.
25517 * doc/invoke.texi: Document -mno-allow-string-insns.
25519 2015-04-15 Alan Modra <amodra@gmail.com>
25523 PR middle-end/36043
25524 * calls.c (load_register_parameters): Don't load past end of
25525 mem unless suitably aligned.
25527 2015-04-15 Nick Clifton <nickc@redhat.com>
25529 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
25530 decrement instruction as being frame related.
25531 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
25533 If zero extending a function address enclose the operation in
25535 (rl78_preferred_reload_class): New function.
25536 (TARGET_PREFERRED_RELOAD_CLASS): Define.
25537 * config/rl78/rl78.md: Remove useless constraints in expanders.
25538 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
25539 (mulhi3_rl78): Likewise.
25540 (mulhi3_g13): Likewise.
25541 (mulsi3_rl78): Likewise.
25542 (es_addr): Move to before the multiply patterns.
25544 2015-04-15 Alan Modra <amodra@gmail.com>
25546 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
25547 and sequence_stack. Add seq.
25548 (seq_stack): Delete.
25549 * function.c (prepare_function_start): Don't access x_last_insn.
25550 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
25551 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
25552 * emit_rtl.c (start_sequence, push_topmost_sequence,
25553 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
25554 sequence accessors.
25555 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
25556 remove_insn): Likewise. Simplify.
25557 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
25558 and pop_topmost_sequence.
25559 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
25561 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
25563 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
25566 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
25569 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
25571 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
25572 (LEGACY_INT_REGNO_P): Ditto.
25573 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
25574 (ANY_MASK_REG_P): Remove.
25575 (BND_REG_P): Rename from ANY_BND_REG_P.
25576 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
25577 legacy integer registers. Do not handle MMX_REG_P in a special way.
25578 Merge 64byte and 32byte SSE handling.
25580 2015-04-14 Nick Clifton <nickc@redhat.com>
25582 * expr.c (expand_assignment): Force an address offset computation
25583 into a register before changing its mode.
25584 (expand_expr_real_1): Likewise.
25586 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
25588 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
25589 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
25590 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
25591 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
25592 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
25593 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
25594 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
25595 and __aarch64_vget_lane_any.
25597 2015-04-14 Jakub Jelinek <jakub@redhat.com>
25599 PR rtl-optimization/65761
25600 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
25601 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
25603 2015-04-14 Richard Biener <rguenther@suse.de>
25605 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
25606 (graphite_can_represent_scev): Use POINTER_TYPE_P.
25608 2015-04-14 Richard Biener <rguenther@suse.de>
25610 PR tree-optimization/65758
25611 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
25613 (ccp_lattice_meet): Likewise.
25614 (bit_value_unop): Likewise.
25615 (bit_value_binop): Likewise.
25616 (bit_value_assume_aligned): Likewise.
25618 2015-04-14 Christian Bruel <christian.bruel@st.com>
25620 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
25623 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
25625 PR tree-optimization/63387
25626 * match.pd ((x unord x) | (y unord y) -> (x unord y),
25627 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
25629 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
25631 * config/i386/predicates.md (any_QIreg_operand): Rename from
25632 q_regs_operand. Do not process subregs.
25633 (QIreg_operand): Use QI_REGNO_P predicate.
25634 (ext_QIreg_operand): Ditto.
25635 (ext_register_operand): Ditto.
25636 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
25637 (AND splitters): Ditto.
25638 (AND with -65536 splitter): Add SWI48 mode for operand 0.
25639 (AND with -256 splitter): Use any_QIreg_operand predicate and
25640 SWI248 mode for operand 0.
25641 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
25642 mode for operand 0.
25643 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
25645 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
25647 * doc/plugins.texi: Rewrite first introductory paragraph.
25649 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25651 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
25652 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
25654 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25656 * ipa-profie.c (ipa_profile): Check number of parameters
25657 and possible polymorphic call targets before
25660 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
25662 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
25663 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
25665 2015-04-13 Richard Biener <rguenther@suse.de>
25667 PR tree-optimization/65204
25668 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
25669 takens for bit-CCP.
25671 2015-04-13 Richard Biener <rguenther@suse.de>
25674 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
25675 and cond_not_taken_branch_cost to 4 and 2.
25676 (bdver2_cost): Likewise.
25677 (bdver3_cost): Likewise.
25678 (bdver4_cost): Likewise.
25680 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25682 * hash-table.h (hash_table constructor): Add mem stats.
25683 (alloc_entries): Likewise.
25685 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25687 * ipa-cp.c (ipcp_driver): Relase prev_edge.
25688 * passes.c (execute_one_pass): Only add transform if pass has one.
25690 2015-04-12 Joseph Myers <joseph@codesourcery.com>
25692 * config/i386/i386.c (ix86_option_override_internal): Don't set
25693 -fprefetch-loop-arrays if optimizing for size.
25695 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
25696 Gerald Pfeifer <gerald@pfeifer.com>
25698 * doc/contrib.texi (Contributors): Add Martin Jambor and
25701 2015-04-12 Jakub Jelinek <jakub@redhat.com>
25703 * BASE-VER: Set to 6.0.0.
25705 PR tree-optimization/65747
25706 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
25707 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
25709 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
25711 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
25712 sentence. Improve grammar.
25714 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
25716 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
25718 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
25721 * ipa-inline-transform.c (speculation_removed): Remove static var.
25722 (check_speculations): New function.
25723 (clone_inlined_nodes): Do not check spculations.
25724 (inline_call): Call check_speculations.
25725 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
25726 consider non-invariants.
25728 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
25729 Martin Liska <mliska@suse.cz>
25732 * ipa-icf.c (sem_item::compare_cgraph_references): function and
25733 variable can not match.
25734 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
25735 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
25737 2015-04-11 Jakub Jelinek <jakub@redhat.com>
25739 PR tree-optimization/65735
25740 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
25741 Remove visited_phis argument, add visited_bbs, avoid recursing into the
25742 same bb rather than just into the same phi node.
25743 (thread_through_normal_block): Adjust caller.
25745 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
25747 * doc/contrib.texi (Contributors): Add Ira Rosen.
25749 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
25751 * gcov.c (find_source): Fix miswording in error message.
25752 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
25753 (ix86_expand_sse_comi_round): Fix typo in error message.
25755 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
25757 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
25759 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
25761 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
25763 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
25766 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
25767 Print bad_spills_num and insn_pseudos_num.
25769 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25772 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
25773 when creating +1 values for SImode.
25775 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
25778 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
25781 2015-04-10 Jakub Jelinek <jakub@redhat.com>
25782 Iain Sandoe <iain@codesourcery.com>
25785 * configure: Regenerate.
25787 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
25790 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
25792 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
25794 * doc/contrib.texi (Contributors): Add John Marino.
25796 2015-04-09 Jakub Jelinek <jakub@redhat.com>
25798 PR tree-optimization/65709
25799 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
25800 TREE_TYPE (TREE_TYPE (t)).
25802 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
25805 * lra-int.h (lra_bad_spill_regno_start): New.
25806 * lra.c (lra_bad_spill_regno_start): New.
25807 (lra): Set up lra_bad_spill_regno_start. Set up
25808 lra_constraint_new_regno_start unconditionally.
25809 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
25812 2015-04-09 Marek Polacek <polacek@redhat.com>
25813 Jakub Jelinek <jakub@redhat.com>
25815 PR middle-end/65554
25816 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
25817 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
25820 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
25822 PR rtl-optimization/65693
25823 * combine.c (is_parallel_of_n_reg_sets): Move outside of
25826 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
25829 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
25830 device specs file if "device-specs%s" didn't resolve to a path.
25832 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
25835 * config/i386/i386.c (fixup_modeless_constant): New.
25836 (ix86_expand_args_builtin): Fixup modeless constant operand.
25837 (ix86_expand_round_builtin): Ditto.
25838 (ix86_expand_special_args_builtin): Ditto.
25839 (ix86_expand_builtin): Ditto.
25841 2015-04-09 Jakub Jelinek <jakub@redhat.com>
25844 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
25845 any pow2 integer in between 2 and 0x80000000U inclusive.
25847 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
25849 PR rtl-optimization/65693
25850 * combine.c (is_parallel_of_n_reg_sets): Change first argument
25851 from an rtx_insn * to an rtx.
25852 (try_combine): Adjust both callers. Use it once more.
25854 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25856 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
25857 (chkp_make_static_const_bounds): Search existing
25858 symbol by assembler name. Use make_decl_one_only.
25859 (chkp_get_zero_bounds_var): Remove node search which
25860 is now performed in chkp_make_static_const_bounds.
25861 (chkp_get_none_bounds_var): Likewise.
25863 2015-04-08 Michael Witten <mfwitten@gmail.com>
25865 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
25868 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25870 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
25872 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
25874 * doc/extend.texi (__sync Builtins): Fix grammar.
25876 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25878 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
25880 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
25882 * varasm.c (emit_local): Move definition of align.
25884 2015-04-08 Julian Brown <julian@codesourcery.com>
25886 * config/nvptx/mkoffload.c (process): Support variable mapping.
25888 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
25890 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
25892 (alpha_write_one_linkage): Correct typo.
25894 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25896 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
25898 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
25900 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
25902 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
25904 * tree-chkp.h (chkp_insert_retbnd_call): New.
25905 * tree-chkp.c (chkp_insert_retbnd_call): New.
25906 * ipa-split.c (insert_bndret_call_after): Remove.
25907 (split_function): Use chkp_insert_retbnd_call.
25908 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
25909 bounds for instrumented functions.
25911 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
25914 * calls.c (initialize_argument_information): When producing tail
25915 call also turn SSA_NAMES passed by references to original PARM_DECLs
25917 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
25920 * lra-remat.c (do_remat): Process input and non-input insn
25921 registers separately.
25923 2015-04-07 Jakub Jelinek <jakub@redhat.com>
25926 * valtrack.c (debug_lowpart_subreg): New function.
25927 (dead_debug_insert_temp): Use it.
25929 PR middle-end/65680
25930 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
25931 into signed HOST_WIDE_INT the same as negative bit_offset.
25933 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
25935 * ipa-comdats.c (ipa_comdats): Visit all thunks
25936 to set proper comdat group.
25938 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25941 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
25942 on constants for NEON VSTRUCT modes.
25944 2015-04-07 Jakub Jelinek <jakub@redhat.com>
25945 Iain Sandoe <iain@codesourcery.com>
25948 * configure: Regenerate.
25950 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25953 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
25954 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
25955 that LFD is used to load double constants instead of LFS. Add
25956 defaults for all costs structures. Add comments for missing
25957 initialization fields.
25958 (size32_cost): Likewise.
25959 (size64_cost): Likewise.
25960 (rs64a_cost): Likewise.
25961 (mpccore_cost): Likewise.
25962 (ppc403_cost): Likewise.
25963 (ppc405_cost): Likewise.
25964 (ppc440_cost): Likewise.
25965 (ppc476_cost): Likewise.
25966 (ppc601_cost): Likewise.
25967 (ppc603_cost): Likewise.
25968 (ppc604_cost): Likewise.
25969 (ppc604e_cost): Likewise.
25970 (ppc620_cost): Likewise.
25971 (ppc630_cost): Likewise.
25972 (ppccell_cost): Likewise.
25973 (ppc750_cost): Likewise.
25974 (ppc7450_cost): Likewise.
25975 (ppc8540_cost): Likewise.
25976 (ppce300c2c3_cost): Likewise.
25977 (ppce500mc_cost): Likewise.
25978 (ppce500mc64_cost): Likewise.
25979 (ppce5500_cost): Likewise.
25980 (ppce6500_cost): Likewise.
25981 (titan_cost): Likewise.
25982 (power4_cost): Likewise.
25983 (power6_cost): Likewise.
25984 (power7_cost): Likewise.
25985 (power8_cost): Likewise.
25986 (ppca2_cost): Likewise.
25987 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
25989 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
25990 instead of XXLOR to copy SFmode to clear out dirty bits created
25991 when SFmode denormals are generated.
25992 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
25993 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
25995 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
25997 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
25998 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
25999 * config/aarch64/aarch64-tune.md: Regenerate.
26001 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
26003 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
26004 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
26005 * config/arm/arm-cores.def (exynos-m1): New core.
26006 * config/arm/arm-tune.md: Regenerate.
26007 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
26008 * config/arm/bpabi.h: Likewise.
26010 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26012 * ipa-cp (set_single_call_flag): Remove too
26013 restrictive assert.
26015 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
26017 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
26018 GOMP_offload_unregister from the destructor.
26020 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
26022 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
26023 flags for instrumentation thunk.
26024 (chkp_produce_thunks): Likewise.
26026 2015-04-05 Martin Liska <mliska@suse.cz>
26029 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
26030 has computed data structure.
26031 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26033 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
26035 * invoke.texi (inline-unit-growth): Increase growth to 20%
26036 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
26038 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
26041 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
26043 (lra_rematerialization_iter): New.
26044 * lra.c (lra): Initialize lra_rematerialization_iter.
26045 Stop updating lra_constraint_new_regno_start after switching of
26046 inheritance and rematerialization.
26047 * lra-remat.c (lra_rematerialization_iter): New.
26048 (lra_remat): Add printing pass iteration. Do rematerialization
26049 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
26051 2015-04-04 Richard Biener <rguenther@suse.de>
26053 PR tree-optimization/64909
26054 PR tree-optimization/65660
26055 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
26056 to take a cost vector for scalar iteration cost.
26057 (vect_get_single_scalar_iteration_cost): Likewise.
26058 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
26059 Compute the scalar iteration cost into a cost vector.
26060 (vect_get_known_peeling_cost): Use the scalar cost vector to
26061 account for the cost of the peeled iterations.
26062 (vect_estimate_min_profitable_iters): Likewise.
26063 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
26066 2015-04-04 Alan Modra <amodra@gmail.com>
26070 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
26071 0.0 constant unless TARGET_VSX.
26072 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
26075 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26078 * ipa-inline-transform.c (inline_call): Skip sanity check to work
26081 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26084 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
26085 speculative indirect edges to avoid ordering issue.
26087 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
26090 * ipa-inline.c (edge_badness): Add combined size to the denominator.
26092 2015-04-03 Jakub Jelinek <jakub@redhat.com>
26094 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
26095 TYPE_ARTIFICIAL on the .omp_data* types.
26097 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26099 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
26100 instrumentation thunks.
26102 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26104 * config/i386/i386.c (ix86_expand_call): Avoid nested
26105 PARALLEL in returned call value.
26107 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26109 * lto-cgraph.c (input_cgraph_1): Always link instrumented
26110 assembler name with original one.
26112 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26114 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
26116 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26118 Revert parts of r216820.
26119 * config/i386/i386.md (movqi_internal): Correct type calculation
26120 for alternatives 3 and 5.
26122 2015-04-02 Jakub Jelinek <jakub@redhat.com>
26124 PR preprocessor/61977
26125 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
26126 predefine __vector/__bool/__pixel macros nor context sensitive
26127 macros for CLK_ASM.
26128 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
26130 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
26132 * config/pa/pa.c (pa_output_move_double): Directly handle register
26133 indexed memory operand. Simplify handling of scaled register indexed
26136 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
26139 * config/i386/linux-common.h (MPX_SPEC): New.
26140 (CHKP_SPEC): Add MPX_SPEC.
26141 * doc/invoke.texi (-fcheck-pointer-boudns): Document
26142 possible issues with '-z bndplt' support in linker.
26144 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
26146 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
26147 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
26148 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
26149 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
26150 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
26152 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
26154 * config/i386/sync.md (UNSPEC_MOVA): Remove.
26155 (atomic_load<mode>): Change operand 0 predicate to
26156 nonimmediate_operand and fix up the destination when needed.
26158 (atomic_loaddi_fpu): Use UNSPEC_LDA.
26159 (atomic_store<mode>): Change operand 1 predicate to
26160 nonimmendate_operand and move the source to register when needed.
26162 (atomic_store<mode>_1): Use UNSPEC_STA.
26163 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
26164 Fix moves from memory operand. Use UNSPEC_STA.
26166 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
26168 * expmed.c (strict_volatile_bitfield_p): Check that the access will
26169 not cross a MODESIZE boundary.
26170 (store_bit_field, extract_bit_field): Added assertions in the
26171 strict volatile bitfields code path.
26173 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
26176 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
26177 Increase args array size by one to avoid buffer overflow.
26179 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26181 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
26183 * ipa-inline.c (edge_badness): Add wrapper penalty.
26184 (sum_callers): Move up.
26185 (inline_small_functions): Set single_caller.
26186 * ipa-inline.h (inline_summary): Add single_caller.
26187 * ipa-split.c (split_function): Set split_part.
26188 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
26189 * cgraph.h (cgraph_node): Add split_part.
26191 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
26194 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
26195 Do not split operands 0 and operands 2 to halfmode.
26196 (atomic_compare_and_swap<mode>): Update for
26197 atomic_compare_and_swap<dwi>_doubleword changes.
26199 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
26201 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
26202 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
26203 no caching is done.
26205 2015-03-31 Martin Liska <mliska@suse.cz>
26208 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
26209 has already filled up function summary.
26210 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
26212 2015-03-31 Richard Biener <rguenther@suse.de>
26214 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
26217 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
26219 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
26221 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
26222 (s390_asm_output_function_label): Adapt to new signature of
26223 s390_function_num_hotpatch_hw
26224 Optimise the code generating assembler output.
26225 Add comments to assembler file.
26227 2015-03-31 Richard Biener <rguenther@suse.de>
26229 PR middle-end/65626
26230 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
26231 of the noreturn call so it is last and cleanup_control_flow_bb
26232 can do the CFG part.
26234 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
26237 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
26238 same_comdat_group for external symbols.
26239 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
26240 infinite same_comdat_group traversal loop.
26242 2015-03-31 Jakub Jelinek <jakub@redhat.com>
26245 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
26246 automatically to $headers.
26248 2015-03-30 Jakub Jelinek <jakub@redhat.com>
26251 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
26252 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
26254 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
26256 * ipa-prop.c (param_type_may_change_p): Likewise.
26257 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
26258 (remove_unused_scope_block_p): Add in_ctor_dtor_block
26259 argument. Before inlining, preserve
26260 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
26261 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
26263 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
26265 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26268 * ipa-inline.c (edge_badness): Base denominator on callee's
26271 2015-03-27 Martin Jambor <mjambor@suse.cz>
26274 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
26275 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
26276 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
26277 node_calling_single_call.
26278 * ipa-cp.c (count_callers): New function.
26279 (set_single_call_flag): Likewise.
26280 (initialize_node_lattices): Count callers and set single_flag_call if
26282 (incorporate_penalties): New function.
26283 (good_cloning_opportunity_p): Use it, dump new flags.
26284 (propagate_constants_topo): Set node_within_scc flag if appropriate.
26285 * doc/invoke.texi (ipa-cp-recursion-penalty,
26286 ipa-cp-single-call-pentalty): Document.
26288 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26291 * symtab.c (symtab_node::get_partitioning_class): Register vars
26293 * varpool.c (symbol_table::output_variables) Do not assemble unefined
26294 decls for non-symbols.
26296 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
26299 * output.h (default_binds_local_p_2): New.
26300 * varasm.c (default_binds_local_p_2): Renamed to ...
26301 (default_binds_local_p_3): This. Don't return true on protected
26302 data symbol if protected data may be external.
26303 (default_binds_local_p): Use default_binds_local_p_3.
26304 (default_binds_local_p_1): Likewise.
26305 (default_binds_local_p_2): New.
26306 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
26307 default_binds_local_p_2 if TARGET_MACHO is undefined.
26309 2015-03-27 Jakub Jelinek <jakub@redhat.com>
26312 * config/i386/i386.c (legitimize_pic_address): If base
26313 is SYMBOL_REF or LABEL_REF using %rip addressing, force
26314 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
26316 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26319 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
26322 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
26325 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
26326 of optimized out indirect call.
26327 (redirect_to_unreachable): Always build symbol table node for
26328 BUILT_IN_UNREACHABLE
26330 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
26333 * ira-costs.c (record_reg_classes): Process all constraint string
26336 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
26338 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
26342 * config/c6x/constraints.md (S3): New constraint.
26343 * config/c6x/c6x.md (real_jump): Use it.
26345 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26347 PR middle-end/65595
26348 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
26349 do redirection if the call is not optimized out.
26351 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
26354 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
26355 (fchkp-check-incomplete-type): Add LTO.
26356 (fchkp-zero-input-bounds-for-main): Likewise.
26357 (fchkp-first-field-has-own-bounds): Likewise.
26358 (fchkp-narrow-bounds): Likewise.
26359 (fchkp-narrow-to-innermost-array): Likewise.
26360 (fchkp-use-static-bounds): Likewise.
26361 (fchkp-use-static-const-bounds): Likewise.
26362 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26364 2015-03-27 Marek Polacek <polacek@redhat.com>
26366 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
26368 2015-03-27 Marek Polacek <polacek@redhat.com>
26371 * ubsan.c (ubsan_create_edge): New function.
26372 (instrument_bool_enum_load): Call it.
26373 (instrument_nonnull_arg): Likewise.
26374 (instrument_nonnull_return): Likewise.
26375 (instrument_object_size): Likewise.
26377 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26379 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
26382 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26385 * lto-streamer.h (class lto_location_cache): New.
26386 (struct data_in): Add location_cache.
26387 (lto_input_location): Update prototype.
26388 (stream_input_location_now): New.
26389 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
26390 pointer to location.
26391 (stream_input_location): Update.
26392 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
26393 (warn_odr): Apply location cache before warning.
26394 (lto_input_location): Update prototype.
26395 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
26396 Use stream_input_location_now.
26397 * lto-streamer-in.c (lto_location_cache::current_cache): New static
26399 (lto_location_cache::cmp_loc): New function.
26400 (lto_location_cache::apply_location_cache): New function.
26401 (lto_location_cache::accept_location_cache): New function.
26402 (lto_location_cache::revert_location_cache): New function.
26403 (lto_location_cache::input_location): New function.
26404 (lto_input_location): Do location caching.
26405 (stream_input_location_now): New function.
26406 (input_eh_region, input_struct_function_base): Use
26407 stream_input_location_now.
26408 (lto_data_in_create): use new.
26409 (lto_data_in_delete): Use delete.
26410 * tree-streamer-in.c (unpack_ts_block_value_fields,
26411 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
26412 lto_input_ts_exp_tree_pointers): Update for cached location api.
26414 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26417 * passes.def: Add pass_nothrow.
26418 * ipa-pure-const.c: (pass_data_nothrow): New.
26419 (pass_nothrow): New.
26420 (pass_nothrow::execute): New.
26421 (make_pass_nothrow): New.
26422 * tree-pass.h (make_pass_nothrow): Declare.
26424 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26426 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
26427 edge to change by speculation resolution or redirection.
26428 (edge_set_predicate): Likewise.
26429 (inline_summary_t::duplicate): Likewise.
26430 (remap_edge_summaries): Likewise.
26432 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26434 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
26436 (can_inline_edge_p): Relax option matching for always inline functions.
26438 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
26441 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
26442 Check operand 4 and operand 0 for equality.
26443 (avx512f_vextract<shuffletype>32x4_1_maskm):
26444 Check operand 6 and operand 0 for equality.
26445 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
26447 (vec_extract_hi_<mode>_maskm): Ditto.
26449 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26451 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
26452 dead calls back to live.
26453 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
26455 (cgraph_node::verify_node): ... here; verify only callee edges,
26457 * cif-code.def (CILK_SPAWN): New code.
26459 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
26461 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
26462 (edge_set_predicate): Use it to mark unreachable edges.
26463 (inline_summary_t::duplicate): Remove unnecesary code.
26464 (remap_edge_summaries): Likewise.
26465 (dump_inline_summary): Report contains_cilk_spawn.
26466 (compute_inline_parameters): Compute contains_cilk_spawn.
26467 (inline_read_section, inline_write_summary): Stream
26468 contains_cilk_spawn.
26469 * ipa-inline.c (can_inline_edge_p): Do not touch
26470 DECL_STRUCT_FUNCTION that may not be available;
26471 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
26472 remove check for callee_fun->can_throw_non_call_exceptions and
26473 replace it by optimization attribute check; check for flag_exceptions.
26474 * ipa-inline-transform.c (inline_call): Maintain
26475 DECL_FUNCTION_PERSONALITY
26476 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
26478 2015-03-26 Jakub Jelinek <jakub@redhat.com>
26480 PR tree-optimization/65551
26481 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
26482 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
26484 2015-03-26 Richard Biener <rguenther@suse.de>
26486 PR middle-end/65555
26487 * tree-cfg.c (verify_gimple_call): Do not require a call to
26488 have no LHS if it wasn't recognized as control altering yet.
26490 2015-03-26 Jakub Jelinek <jakub@redhat.com>
26492 PR tree-optimization/64715
26493 * passes.def: Add another instance of pass_object_sizes before ccp1.
26494 * tree-object-size.c (pass_object_sizes::execute): In
26495 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
26496 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
26497 __bos result and the computed constant. Remove redundant
26498 checks, obsoleted by gimple_call_builtin_p test.
26500 * var-tracking.c (variable_tracking_main_1): Don't track
26501 variables for targetm.no_register_allocation targets.
26503 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
26505 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
26506 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
26508 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
26511 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
26512 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
26513 0.0 is correctly setup.
26514 (extenddftf2_internal): Likewise.
26516 2015-03-25 Sebastian Pop <s.pop@samsung.com>
26518 PR tree-optimization/65177
26519 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
26521 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
26522 edges not adjacent on the path to the original code.
26524 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
26527 * doc/install.texi (Building a native compiler): Document new
26528 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
26529 configuration assumes that the host supports the linker plugin.
26531 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
26534 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
26535 chain for generated call.
26537 2015-03-25 Richard Biener <rguenther@suse.de>
26539 * passes.c (pass_manager::execute_early_local_passes): Guard
26540 execution of pass_chkp_instrumentation_passes with
26541 flag_check_pointer_bounds.
26542 (pass_chkp_instrumentation_passes::gate): Likewise.
26544 2015-03-25 Martin Liska <mliska@suse.cz>
26546 PR tree-optimization/65538
26547 * symbol-summary.h (function_summary::~function_summary):
26548 Relese memory for allocated summaries.
26549 (function_summary::release): New function.
26551 2015-03-25 Jakub Jelinek <jakub@redhat.com>
26554 * lto-streamer-out.c (DFS::worklist): New struct.
26555 (DFS::worklist_vec): New data member.
26556 (DFS::next_dfs_num): Remove.
26557 (DFS::DFS): Rewritten using worklist instead of recursion,
26558 using most of code from DFS::DFS_write_tree.
26559 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
26560 pass it to DFS_write_tree calls.
26561 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
26562 quick initial checks push it into worklist_vec and return.
26564 2015-03-25 Richard Biener <rguenther@suse.de>
26566 PR middle-end/65519
26567 * genmatch.c (expr::gen_transform): Re-write to avoid
26568 using gimple_build.
26570 2015-03-25 Bin Cheng <bin.cheng@arm.com>
26572 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
26574 2015-03-25 Bin Cheng <bin.cheng@arm.com>
26576 * config/arm/arm.opt (print_tune_info): New option.
26577 * config/arm/arm.c (arm_print_tune_info): New function.
26578 (arm_file_start): Call arm_print_tune_info.
26579 * config/arm/arm-protos.h (struct tune_params): Add comment.
26580 * doc/invoke.texi (@item -mprint-tune-info): New item.
26581 (-mtune): mention it in ARM Option Summary.
26583 2015-03-25 DJ Delorie <dj@redhat.com>
26585 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
26588 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
26589 Martin Liska <mliska@suse.cz>
26591 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
26592 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
26593 (sem_item::add_type): New function.
26594 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
26595 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
26596 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
26597 (sem_function::equals_wpa): Fix typo.
26598 * ipa-icf.h (sem_item::add_type): New function.
26599 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
26602 2015-03-24 Jakub Jelinek <jakub@redhat.com>
26604 PR tree-optimization/65533
26605 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
26606 with swapped operands, call vect_free_slp_tree on
26607 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
26610 2015-03-24 Richard Biener <rguenther@suse.de>
26612 PR middle-end/65517
26613 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
26614 for fixup if necessary.
26616 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
26618 * doc/extend.texi (Function Attributes): Add @cindex entries
26619 for all attributes and regularize their format. Delete text
26620 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
26621 information about "eightbit_data", "tiny_data", and "model"
26622 variable attributes to the Variable Attributes section. Fix
26623 some obvious typos and copy-editing issues.
26624 (Variable Attributes, Type Attributes): Likewise add/fix
26625 @cindex entries for all attributes.
26627 2015-03-23 Jakub Jelinek <jakub@redhat.com>
26630 * tree-chkp.c (chkp_build_returned_bound): Ignore
26631 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
26633 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
26636 * config/sh/predicates.md (simple_mem_operand,
26637 displacement_mem_operand): Add test for reg.
26638 (short_displacement_mem_operand): Test for displacement_mem_operand
26639 before invoking sh_disp_addr_displacement.
26640 * config/sh/constraints.md (Sdd, Sra): Simplify.
26641 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
26642 Remove redundant displacement_mem_operand tests.
26644 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
26647 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
26648 the same -mmcu=MCU more than once.
26650 2015-03-23 Jakub Jelinek <jakub@redhat.com>
26653 * ipa-devirt.c: Remove duplicate demangle.h include.
26656 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
26658 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
26659 REG_POINTER on *destptr after adjusting it for prologue size.
26662 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
26663 ultimate_alias_target ()->order ints instead of
26664 ultimate_alias_target () pointers.
26666 2015-03-23 Richard Biener <rguenther@suse.de>
26668 PR tree-optimization/65518
26669 * tree-vect-stmts.c (vectorizable_load): Reject single-element
26670 interleaving cases we generate absymal code for.
26672 2015-03-23 Richard Biener <rguenther@suse.de>
26674 PR tree-optimization/65494
26675 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
26677 (vect_analyze_slp_instance): But do that here, always and once.
26679 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26681 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
26682 adding T or multiplying by T+1 and subracting T.
26684 2015-03-22 Jeff Law <law@redhat.com>
26686 PR rtl-optimization/64317
26687 * Makefile.in (OBJS): Add gcse-common.c
26688 * gcse.c: Include gcse-common.h
26689 (struct modify_pair_s): Move structure definition to gcse-common.h
26690 (compute_transp): Move function to gcse-common.c.
26691 (canon_list_insert): Similarly.
26692 (record_last_mem_set_info): Break out some code and put it into
26693 gcse-common.c. Call into the new common code.
26694 (compute_local_properties): Pass additional arguments to compute_transp.
26695 * postreload-gcse.c: Include gcse-common.h and df.h
26696 (modify_mem_list_set, blocks_with_calls): New variables.
26697 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
26698 (get_bb_avail_insn): Pass in the expression index too.
26699 (alloc_mem): Allocate memory for the new bitmaps and lists.
26700 (free_mem): Free memory for the new bitmaps and lists.
26701 (insert_expr_in_table): Record a bitmap index for each entry we
26703 (record_last_mem_set_info): Call into common code in gcse-common.c.
26704 (get_bb_avail_insn): If no available insn was found in the requested
26705 BB. If BB has a single predecessor, see if the expression is
26706 transparent in BB and available in that single predecessor.
26707 (compute_expr_transp): New wrapper for compute_transp.
26708 (eliminate_partially_redundant_load): Pass expression's bitmap_index
26709 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
26710 (gcse_after_reload_main): If there are elements in the hash table,
26711 then compute transparency for all the elements in the hash table.
26712 * gcse-common.h: New file.
26713 * gcse-common.c: New file.
26715 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
26717 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
26719 (System Headers): Likewise.
26721 (Traditional macros): Likewise.
26722 (Invocation): Likewise.
26723 (Option Index): Likewise.
26724 * doc/cppopts.texi (-M): Likewise.
26725 (-finput-charset): Likewise.
26726 (--help): Likewise.
26727 * doc.invoke.texi (AVR Options): Likewise.
26728 (V850 Options): Likewise.
26730 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
26733 * ipa-devirt.c: Include demangle.h
26734 (odr_type_d): Add field rtti_broken.
26735 (odr_subtypes_equivalent_p): Do not require name to match.
26736 (compare_virtual_tables): Fix typo; if type already has ODR violation,
26737 bypass the tests; be ready for function referneces in vtables that are
26738 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
26739 (warn_odr): Give up for nameless types.
26740 (warn_types_mismatch): Report mismatch in mangled names;
26741 report mismatch in anonymous namespaces; look into component types to
26742 give useful error; report when mismatch is dragged in from other ODR
26744 (odr_types_equivalent_p): Match types for being polymorphic; avoid
26745 duplicated diagnostics.
26746 (add_type_duplicate): Reorder checks so more informative ones come
26747 first; fix typo; do not output "the extra base is defined here" when
26749 (BINFO_N_BASE_BINFOS): Relax sanity check.
26751 2015-03-22 Martin Liska <mliska@suse.cz>
26752 Jakub Jelinek <jakub@redhat.com>
26754 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
26755 masks that can potentially include a builtin.
26756 (ix86_add_new_builtins): Introduce fast filter for isa values
26757 that cannot trigger builtin inclusion.
26759 2015-03-22 Martin Liska <mliska@suse.cz>
26761 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
26762 (sem_item::update_hash_by_local_refs): Likewise.
26763 (sem_variable::get_hash): Empty line is fixed.
26764 (sem_item_optimizer::execute): Include adding of hash references.
26765 (sem_item_optimizer::update_hash_by_addr_refs): New function.
26766 (sem_item_optimizer::build_hash_based_classes): Use local hash.
26767 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
26768 (sem_item::update_hash_by_local_refs): Likewise.
26770 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
26773 * ipa-comdats.c (enqueue_references): Walk through thunks.
26774 (ipa_comdats): Likewise.
26775 (set_comdat_group_1): New function.
26777 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
26780 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
26783 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
26784 Gerald Pfeifer <gerald@pfeifer.com>
26786 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
26788 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
26789 Sandra Loosemore <sandra@codesourcery.com>
26791 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
26792 function parameter declaration.
26793 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
26794 Update arguments to nios2_adjust_call_address().
26795 (sibcall_internal): Rename from *sibcall.
26796 (sibcall_value_internal): Rename from *sibcall_value.
26797 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
26798 (nios2_large_got_address): Add target temp reg parameter.
26799 (nios2_got_address): Adjust call to nios2_large_got_address, add
26800 force_reg around it.
26801 (nios2_load_pic_address): Add target temp reg parameter, replace call
26802 to nios2_got_address with corresponding code.
26803 (nios2_legitimize_constant_address): Update call to
26804 nios2_load_pic_address.
26805 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
26806 to use temp reg for PIC loading purposes.
26807 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
26808 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
26809 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
26811 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
26813 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
26814 usage of "the @option{...}".
26815 (-Wopenmp-simd): Likewise.
26816 (-fsanitize-recover): Likewise.
26817 (-fsanitize-undefined-trap-on-error): Likewise.
26819 (tracer-dynamic-coverage-feedback): Likewise.
26820 (reorder-block-duplicate-feedback): Likewise.
26821 (loop-unroll-jam-size): Likewise.
26824 (-mabs=legacy): Likewise.
26825 (-mupper-regs-df): Likewise.
26826 (-mupper-regs-sf): Likewise.
26827 (-mpointers-to-nested-functions): Likewise.
26829 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
26831 * doc/extend.texi (Cilk Plus Builtins): Add markup.
26833 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
26835 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
26836 additional index entries and cross-references.
26837 (-fchkp-check-incomplete-type): Likewise.
26838 (-fchkp-first-field-has-own-bounds): Likewise.
26839 (-fchkp-narrow-to-innermost-array): Likewise.
26840 (-fchkp-use-fast-string-functions): Likewise.
26841 (-fchkp-use-nochk-string-functions): Likewise.
26842 (-fchkp-use-static-const-bounds): Likewise.
26843 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
26844 (-fchkp-instrument-marked-only): Likewise.
26845 (-fchkp-use-wrappers): Likewise.
26846 (-static-libmpx): Likewise.
26847 (-static-libmpxwrappers): Likewise.
26848 * doc/extend.texi (bnd_legacy): Likewise.
26849 (bnd_instrument): Likewise.
26850 (bnd_variable_size): Likewise.
26851 (Pointer Bounds Checker builtins): Likewise.
26853 2015-03-21 Tom de Vries <tom@codesourcery.com>
26855 PR tree-optimization/65458
26856 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
26857 * cgraph.h (cgraph_node): Add parallelized_function field.
26858 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
26859 (input_overwrite_node): Read parallelized_function field.
26860 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
26861 parallelized_function on cgraph_node for child_fn.
26862 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
26863 Remove include of gt-tree-parloops.h.
26864 (parallelized_functions): Remove static variable.
26865 (parallelized_function_p): Rewrite using parallelized_function field of
26867 (create_loop_fn): Remove adding to parallelized_functions.
26868 * Makefile.in (GTFILES): Remove tree-parloops.c
26870 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
26872 PR rtl-optimization/64366
26873 * lra.c (lra_update_insn_regno_info): Consider regs in
26874 CALL_INSN_FUNCTION_USAGE memory.
26876 2015-03-20 Richard Biener <rguenther@suse.de>
26878 PR middle-end/64715
26879 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
26880 for type comparison and gcc_checking_assert.
26881 (chrec_fold_plus_poly_poly): Likewise.
26882 (chrec_fold_multiply_poly_poly): Likewise.
26883 (chrec_convert_1): Likewise.
26884 * gimplify.c (gimplify_expr): Remove premature folding of
26885 &X + CST to &MEM[&X, CST].
26887 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
26889 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
26891 (ipa_inline): Recompute inline_failed codes.
26892 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
26893 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
26896 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
26898 PR rtl-optimization/60851
26899 * recog.c (constrain_operands): Accept a pseudo register before reload
26900 for LRA enabled targets.
26902 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
26905 * config/rs6000/predicates.md (easy_fp_constant): Remove special
26906 -ffast-math handling that kept non-0 constants live in the RTL
26907 until reload. Remove logic testing the number of instructions it
26908 took to create a constant in a GPR that was never used, due to a
26909 test for soft-float earlier.
26910 (memory_fp_constant): Delete, no longer used.
26912 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
26913 alternatives for loading non-0 constants into GPRs for hard
26914 floating point that is no longer needed due to changes in
26915 easy_fp_constant. Add support for loading 0.0 into GPRs.
26916 (mov<mode>_hardfloat32): Likewise.
26917 (mov<mode>_hardfloat64): Likewise.
26918 (mov<mode>_64bit_dm): Likewise.
26919 (movtd_64bit_nodm): Likewise.
26920 (pre-reload move FP constant define_split): Delete define_split,
26921 since it is no longer used.
26922 (extenddftf2_internal): Remove GHF constraints that are not valid
26925 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
26927 PR rtl-optimization/63491
26928 * lra-constraints.c (check_and_process_move): Use src instead of
26929 sreg. Remove some dead code.
26931 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
26934 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
26935 (sem_variable::merge): Likewise.
26937 2015-03-19 Martin Liska <mliska@suse.cz>
26940 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
26941 all fields of cgraph_thunk_info.
26943 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
26945 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
26946 clone instrumented thunks.
26948 2015-03-19 Richard Biener <rguenther@suse.de>
26951 2015-03-10 Richard Biener <rguenther@suse.de>
26953 PR middle-end/63155
26954 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
26955 * tree-ssa-coalesce.c: Include timevar.h.
26956 (attempt_coalesce): Handle graph being NULL.
26957 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
26958 Split out abnormal coalescing to ...
26959 (perform_abnormal_coalescing): ... this function.
26960 (coalesce_ssa_name): Perform abnormal coalescing without computing
26962 (verify_ssa_coalescing_worker): New function.
26963 (verify_ssa_coalescing): Likewise.
26965 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
26966 Jakub Jelinek <jakub@redhat.com>
26969 * tsan.c (instrument_gimple): Clear tail call flag on
26972 2015-03-19 Jakub Jelinek <jakub@redhat.com>
26975 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
26976 call in the return bb.
26977 (find_split_points): Add RETURN_BB argument, don't call
26979 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
26980 if true append TSAN_FUNC_EXIT internal call after the call to
26981 the split off function.
26982 (execute_split_functions): Call find_return_bb here.
26983 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
26984 Adjust find_split_points and split_function calls.
26986 2015-03-18 DJ Delorie <dj@redhat.com>
26988 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
26989 (iorqi3_virt): Likewise.
26991 2015-03-18 Tom de Vries <tom@codesourcery.com>
26993 * tree-parloops.c (parallelize_loops): Make static.
26994 * tree-parloops.h (parallelize_loops): Remove extern declaration.
26996 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
26998 PR middle-end/64491
27000 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
27002 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
27003 condition would be removed due to undefined behaviour.
27005 2015-03-18 Martin Liska <mliska@suse.cz>
27008 * cgraph.c (cgraph_node::get_create): Remove unnecessary
27009 xstrdup_for_dump wrapper.
27010 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
27012 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
27013 with xstrdup_for_dump.
27014 (sem_variable::equals): Likewise.
27015 (sem_item_optimizer::read_section): Use symtab_node::name instead of
27017 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
27018 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
27019 symtab_node::asm_name with xstrdup_for_dump.
27020 (congruence_class::dump): Use symtab_node::name instead of
27022 * ipa-icf.h (symtab_node::name): Remove.
27023 (symtab_node::asm_name): Likewise.
27025 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27027 PR tree-optimization/65450
27028 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
27030 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
27031 it instead of duplicate_ssa_name_ptr_info.
27034 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
27036 2015-03-18 Richard Biener <rguenther@suse.de>
27038 * tree-data-ref.h (struct access_matrix): Remove.
27039 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
27040 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
27041 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
27042 (am_vector_index_for_loop): Likewise.
27043 (struct data_reference): Remove access_matrix member.
27044 (DR_ACCESS_MATRIX): Remove.
27045 (lambda_vector_new): Add comment.
27046 (lambda_matrix_new): Use XOBNEWVEC.
27048 2015-03-18 Richard Biener <rguenther@suse.de>
27050 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
27051 (pass_ch::execute): Cleanup the CFG only if we did sth.
27052 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
27054 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27056 * expmed.c (synth_mult): Use std::swap instead of manually
27057 swapping algorithms.
27059 2015-03-18 Jakub Jelinek <jakub@redhat.com>
27062 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
27064 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
27067 * config/avr/avr.opt (-nodevicelib): New option.
27068 * doc/invoke.texi (AVR Options): Document it.
27069 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
27070 libgcc.a, libc.a, libm.a.
27071 * config/avr/specs.h: Same.
27072 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
27073 which don't (directly) depend on the device. Print more help.
27074 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
27075 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
27076 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
27078 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
27079 for specs file name.
27080 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
27081 * config/avr/avr-mcus.def: Adjust initializers and comments.
27083 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
27085 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
27086 DECL_ONE_ONLY to check if decl is one only.
27087 * ipa-split.c (consider_split): Limit splitt of one only functions.
27089 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27091 PR tree-optimization/65427
27092 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
27094 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
27096 2015-03-16 Marek Polacek <polacek@redhat.com>
27098 * cgraph.h (add_new_static_var): Remove declaration.
27099 * varpool.c (add_new_static_var): Remove function.
27101 2015-03-16 Jakub Jelinek <jakub@redhat.com>
27103 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
27104 instead of vec<tree> * with vec_alloc and release for args.
27107 PR middle-end/65431
27108 * omp-low.c (delete_omp_context): Only splay_tree_delete
27109 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
27110 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
27112 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
27115 * cfgexpand.c (align_base): New function.
27116 (alloc_stack_frame_space): Call it.
27117 (expand_stack_vars): Align prev_frame to be sure
27118 data->asan_vec elements aligned properly.
27120 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
27122 PR middle-end/65409
27123 * expr.c (store_field): Do not do a direct block copy if the source is
27124 a PARALLEL with BLKmode.
27126 2015-03-16 Tom de Vries <tom@codesourcery.com>
27128 PR middle-end/65414
27130 2015-03-12 Tom de Vries <tom@codesourcery.com>
27132 PR rtl-optimization/64895
27133 * lra-lives.c (check_pseudos_live_through_calls): Use
27134 actual_call_used_reg_set instead of call_used_reg_set, if available.
27136 2015-03-16 Alan Modra <amodra@gmail.com>
27139 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
27140 Modify Z->r bswapdi splitter to use dest in place of scratch.
27141 In r->Z and Z->r bswapdi splitter rename word_high, word_low
27142 to word1, word2 and rearrange logic to suit.
27143 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
27144 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
27145 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
27146 Add one '?' on r->r. Modify Z->r splitter to avoid need for
27149 2015-03-14 Jakub Jelinek <jakub@redhat.com>
27151 PR tree-optimization/65369
27152 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
27153 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
27154 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
27156 PR tree-optimization/65418
27157 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
27158 are casts in the first PLUS_EXPR operand, ensure tbias and
27159 *totallowp are in the inner type.
27161 PR rtl-optimization/65401
27162 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
27163 argument. If true, adjust_address_nv of x with big-endian
27164 correction for the mode widening to GET_MODE (y).
27165 (make_field_assignment): Don't do MEM mode widening here.
27166 Use MEM_P instead of GET_CODE == MEM.
27168 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
27170 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
27171 the external decls.
27173 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27176 * config/arm/arm.c (arm_gen_constant, AND case): Use
27177 ARM_SIGN_EXTEND when constructing AND mask.
27179 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27181 * graph.c (print_graph_cfg): Make function names visible and append
27182 parenthesis to it. Also make groups of basic blocks belonging to the
27183 same function visible.
27185 2015-03-12 Richard Biener <rguenther@suse.de>
27187 PR middle-end/44563
27188 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
27189 to avoid quadratic behavior with inline expansion splitting blocks.
27190 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
27191 with the successor if the predecessor will be merged with it.
27192 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
27193 entry block with its successor.
27195 2015-03-13 Richard Biener <rguenther@suse.de>
27197 PR middle-end/44563
27198 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
27199 (cleanup_tree_cfg_1): Do not call it.
27200 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
27201 (fixup_noreturn_call): Mark the stmt as control altering.
27202 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
27204 (pass_data_fixup_cfg): Produce a dump file.
27205 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
27206 (need_noreturn_fixup): New global.
27207 (pass_dominator::execute): Fixup queued noreturn calls.
27208 (optimize_stmt): Queue calls that became noreturn for fixup.
27209 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
27210 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
27211 (el_to_fixup): New global.
27212 (eliminate_dom_walker::before_dom_childre): Queue calls that
27213 became noreturn for fixup.
27214 (eliminate): Fixup queued noreturn calls.
27215 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
27216 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
27217 (substitute_and_fold_dom_walker::before_dom_children): Queue
27218 alls that became noreturn for fixup.
27219 (substitute_and_fold): Fixup queued noreturn calls.
27221 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
27223 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
27224 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
27225 are building; for methods check ODR type of class they belong to if
27226 they may lead to a polymorphic call.
27227 (sem_function::compare_polymorphic_p): Be bit smarter about testing
27228 when function may lead to a polymorphic call.
27229 (sem_function::compare_type_list): Remove.
27230 (sem_variable::equals): Update use of compatible_types_p.
27231 (sem_variable::parse_tree_refs): Remove.
27232 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
27234 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
27236 (func_checker::compatible_polymorphic_types_p): Break out from ...
27237 (unc_checker::compatible_types_p): ... here.
27238 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
27240 (unc_checker::compatible_types_p): Update.
27241 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
27244 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27246 PR rtl-optimization/65235
27247 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
27248 When first element of vec_concat is const_int, calculate its size
27249 using second element.
27251 2015-03-12 Richard Biener <rguenther@suse.de>
27253 PR middle-end/65270
27254 * fold-const.c (operand_equal_p): Fix ordering of resetting
27255 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
27257 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
27259 * config/s390/s390.c (s390_reorg): Move code to output nops after label
27261 (s390_asm_output_function_label): Likewise.
27262 * config/s390/s390.c (s390_asm_output_function_label):
27263 Fix function label alignment with -mhtopatch.
27264 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
27265 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
27266 ("nop_2_byte"): New define_insn.
27267 ("nop_4_byte"): Likewise.
27268 ("nop_6_byte"): Likewise.
27269 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
27270 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
27272 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
27275 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
27278 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
27281 * toplev.c (process_options): Restrict Pointer Bounds Checker
27282 usage with Address Sanitizer.
27284 2015-03-12 Richard Biener <rguenther@suse.de>
27286 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
27288 * omp-low.c (expand_omp_taskreg): Split block before removing
27290 (expand_omp_target): Likewise.
27291 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
27292 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
27293 stmt to split_block.
27295 2015-03-12 Tom de Vries <tom@codesourcery.com>
27297 PR rtl-optimization/64895
27298 * lra-lives.c (check_pseudos_live_through_calls): Use
27299 actual_call_used_reg_set instead of call_used_reg_set, if available.
27301 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
27303 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
27304 (cgraph_node::remove): Likewise.
27305 (cgraph_node::get_untransformed_body): Likewise.
27306 * varpool.c (varpool_node::remove): Likewise.
27307 (varpool_node::get_constructor): Add sanity check.
27309 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
27311 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
27313 (-fabi-compat-version): Likewise.
27314 (-ffriend-injection): Likewise.
27315 (-Wdeclaration-after-statement): Likewise.
27316 (-fomit-frame-pointer): Likewise.
27317 (-ftree-coalesce-inlined-vars): Likewise.
27318 (-fvisibility=): Likewise.
27319 * doc/extend.texi (Typeof): Likewise.
27320 (Zero Length): Likewise.
27321 (Escaped Newlines): Likewise.
27322 (Compound Literals): Likewise.
27323 (Function Attributes): Likewise.
27324 (Label Attributes): Likewise.
27325 (Type Attributes): Likewise.
27326 (Function Names): Likewise.
27327 (Other Builtins): Likewise.
27328 (Function Specific Option Pragmas): Likewise.
27329 (C++ Interface): Likewise.
27331 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
27333 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
27335 2015-03-11 Marek Polacek <polacek@redhat.com>
27337 PR tree-optimization/65388
27338 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
27340 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
27343 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
27344 * configure: Regenerate.
27345 * config.in: Regenerate.
27346 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
27347 [-mn-flash]: Document it.
27348 [__AVR_ARCH__]: Document avrtiny.
27350 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
27351 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
27352 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
27354 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27356 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
27358 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27361 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
27362 allow reloads of PLUS in floating point/VSX registers.
27364 2015-03-11 Junmo Park <junmoz.park@samsung.com>
27366 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
27367 crypto_sha256_fast.
27368 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
27370 2015-03-11 Richard Biener <rguenther@suse.de>
27372 PR tree-optimization/65310
27373 * tree-sra.c (build_ref_for_offset): Also preserve larger
27376 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
27378 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
27380 2015-03-10 Jakub Jelinek <jakub@redhat.com>
27383 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
27385 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
27387 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
27389 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
27390 (sem_function::equals_wpa): ... here.
27392 2015-03-10 Marek Polacek <polacek@redhat.com>
27393 Jakub Jelinek <jakub@redhat.com>
27396 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
27397 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
27400 2015-03-10 Jakub Jelinek <jakub@redhat.com>
27403 * config/rs6000/t-linux: For powerpc64* target set
27404 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
27406 2015-03-10 Richard Biener <rguenther@suse.de>
27408 PR middle-end/44563
27409 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
27410 for redirect_all_calls.
27412 2015-03-10 Marek Polacek <polacek@redhat.com>
27414 * gdbinit.in (pcfun): Define and document.
27416 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
27418 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
27419 of libgomp-plugin.h.
27420 (find_target_compiler): Support a case when the path to gcc is
27421 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
27422 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
27423 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
27425 (main): Use GCC_INSTALL_NAME as target_driver_name.
27426 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
27428 (mkoffload.o): Remove obsolete include path and defines.
27429 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
27431 2015-03-10 Richard Biener <rguenther@suse.de>
27433 PR middle-end/63155
27434 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
27435 * tree-ssa-coalesce.c: Include timevar.h.
27436 (attempt_coalesce): Handle graph being NULL.
27437 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
27438 Split out abnormal coalescing to ...
27439 (perform_abnormal_coalescing): ... this function.
27440 (coalesce_ssa_name): Perform abnormal coalescing without computing
27442 (verify_ssa_coalescing_worker): New function.
27443 (verify_ssa_coalescing): Likewise.
27445 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
27448 * config.gcc (extra_options) [avr]: Remove.
27449 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
27450 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
27451 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
27453 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
27454 (-mmcu=): Add Var and MissingArgError properties.
27456 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
27457 * config/avr/t-multilib: Regenerate.
27458 * config/avr/specs.h: New file.
27459 * config/avr/driver-avr.c: New file.
27460 * config/avr/genopt.sh: Remove file.
27461 * config/avr/avr-tables.opt: Remove file.
27462 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
27463 * config/avr/avr-c.c: Same.
27464 * avr-arch.h: Same.
27465 (avr_current_device): Remove proto.
27466 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
27467 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
27468 (EXTRA_SPEC_FUNCTIONS): Define.
27469 (avr_devicespecs_file): New specs function proto.
27470 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
27471 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
27472 (avr_current_device): Remove definition and usage.
27473 (avr_set_core_architecture): New static function.
27474 (avr_option_override): Use it.
27475 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
27476 (mcu_name): New static array.
27477 (comparator, avr_archs_str, avr_mcus_str): New static functions.
27478 (avr_inform_devices, avr_inform_core_architectures): New functions.
27479 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
27480 (avrlibc.h) [WITH_AVRLIBC]: Include.
27481 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
27482 (print_mcu): Rewrite from scratch.
27483 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
27484 Forward to avr-specific specs defined in device-specs file.
27485 * config/avr/t-avr (driver-avr.o): New rule.
27486 (avr-devices.o): Depend on avr-arch.h.
27487 (avr-mcus): No more depend on avr-tables.opt.
27488 (avr-tables.opt): Remove rule.
27489 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
27491 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
27493 * c-family/c.opt (fchkp-use-wrappers): New.
27494 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
27495 (chkp_wrap_function): New.
27496 (chkp_build_instrumented_fndecl): Support wrapped
27498 * doc/invoke.texi (-fcheck-pointer-bounds): New.
27499 (-fchkp-check-incomplete-type): New.
27500 (-fchkp-first-field-has-own-bounds): New.
27501 (-fchkp-narrow-bounds): New.
27502 (-fchkp-narrow-to-innermost-array): New.
27503 (-fchkp-optimize): New.
27504 (-fchkp-use-fast-string-functions): New.
27505 (-fchkp-use-nochk-string-functions): New.
27506 (-fchkp-use-static-bounds): New.
27507 (-fchkp-use-static-const-bounds): New.
27508 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
27509 (-fchkp-check-read): New.
27510 (-fchkp-check-write): New.
27511 (-fchkp-store-bounds): New.
27512 (-fchkp-instrument-calls): New.
27513 (-fchkp-instrument-marked-only): New.
27514 (-fchkp-use-wrappers): New.
27515 (-static-libmpx): New.
27516 (-static-libmpxwrappers): New.
27518 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
27520 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
27521 (CHKP_SPEC): Add wrappers library.
27522 * c-family/c.opt (static-libmpxwrappers): New.
27524 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
27526 * config/i386/linux-common.h (LIBMPX_LIBS): New.
27527 (LIBMPX_SPEC): New.
27529 * gcc.c (CHKP_SPEC): New.
27530 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
27531 * c-family/c.opt (static-libmpx): New.
27533 2015-03-10 Richard Biener <rguenther@suse.de>
27535 PR middle-end/44563
27536 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
27538 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
27539 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
27540 (cgraph_add_edge_to_call_site_hash): Likewise.
27541 (cgraph_node::get_edge): Likewise.
27542 (cgraph_edge::set_call_stmt): Likewise.
27543 (cgraph_edge::remove_caller): Likewise.
27545 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
27547 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
27548 (callee_saved_gpr_regs_size): ... this.
27549 (callee_saved_regs_first_regno): Rename to ...
27550 (callee_saved_first_gpr_regno): ... this.
27551 (callee_saved_regs_last_regno) Rename to ...
27552 (callee_saved_last_gpr_regno): ... this.
27553 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
27555 (nds32_initial_elimination_offset): Likewise.
27556 (nds32_expand_prologue): Likewise.
27557 (nds32_expand_epilogue): Likewise.
27558 (nds32_expand_prologue_v3push): Likewise.
27559 (nds32_expand_epilogue_v3pop): Likewise.
27560 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
27561 Adjust renamed variables.
27562 (nds32_output_stack_pop): Likewise.
27564 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
27566 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
27569 2015-03-10 Jakub Jelinek <jakub@redhat.com>
27571 PR rtl-optimization/65321
27572 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
27574 * var-tracking.c (use_narrower_mode): Likewise.
27576 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
27578 PR tree-optimization/65355
27579 * varasm.c (notice_global_symbol): Do not produce RTL.
27580 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
27582 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
27583 check for section anchors.
27585 2015-03-10 Alan Modra <amodra@gmail.com>
27588 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
27589 to be single-arch by default. Set cpu_is_64bit for powerpc64
27590 given --with-cpu=native.
27591 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
27592 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
27594 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
27595 rs6000_isa_flags rather than TARGET_64BIT.
27597 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
27598 Kaz Kojima <kkojima@gcc.gnu.org>
27600 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
27602 2015-03-09 Jakub Jelinek <jakub@redhat.com>
27605 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
27606 on a TREE_BINFO, instead use BINFO_TYPE.
27608 2015-03-09 Richard Biener <rguenther@suse.de>
27610 PR middle-end/65270
27611 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
27612 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
27613 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
27614 of that. When comparing dereferences compare alignment.
27615 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
27617 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
27619 * ipa-inline-analysis.c (check_callers): Check
27620 node->can_remove_if_no_direct_calls_and_refs_p.
27621 (growth_likely_positive): Reorganize to call
27622 can_remove_if_no_direct_calls_p later.
27623 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
27624 will_be_removed_from_program_if_no_direct_calls_p): Add
27625 will_inline parameter.
27626 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
27627 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27628 Handle inliner case correctly.
27630 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
27632 PR tree-optimization/63743
27633 * cfgexpand.c (reorder_operands): Also reorder if only second operand
27634 had its definition forwarded by TER.
27636 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
27639 * ipa-utils.h (types_odr_comparable): Add strict argument.
27640 * ipa-devirt.c: Fix whitespace;
27641 (odr_hasher): Remove.
27642 (odr_name_hasher, odr_vtable_hasher): New hashers.
27643 (can_be_name_hashed_p): New predicate.
27644 (hash_type_name): remove.
27645 (hash_odr_name): New.
27646 (odr_name_hasher::hash): new.
27647 (can_be_vtable_hashed_p): New.
27648 (hash_odr_vtable): New.
27649 (odr_vtable_hasher::hash): New.
27650 (types_same_for_odr): Add strict parameter.
27651 (types_odr_comparable): Likewise.
27652 (odr_name_hasher::equal): New.
27653 (odr_vtable_hasher::equal): New.
27654 (odr_name_hasher::remove): New.
27655 (odr_hash_type): Change to hash_table<odr_name_hasher>.
27656 (odr_vtable_hash_type): New.
27657 (odr_vtable_hash): New.
27658 (odr_subtypes_equivalent_p): Do strict comparsion.
27659 (add_type_duplicate): Merge type names; cleanup; avoid type
27661 (register_odr_type): Initialize vtable hash.
27662 (build_type_inheritance_graph): Likewise
27663 (get_odr_type): Reorg to use two hashes.
27664 (dump_possible_polymorphic_call_targets): Move sanity check after debug
27666 (ipa_devirt): Dump type_inheritance_graph.
27667 (types_same_for_odr): Add strict mode.
27669 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27672 * cgraph.h (symtab_node): Add definition_alignment,
27673 can_increase_alignment_p and increase_alignment.
27674 * symtab.c (symtab_node::can_increase_alignment_p,
27675 increase_alignment_1, symtab_node::increase_alignment,
27676 symtab_node::definition_alignment): New.
27677 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
27678 can_increase_alignment_p.
27679 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
27680 * tree-vect-stmts.c (ensure_base_align): Likewise.
27681 * varasm.c (function_section_1): Use definition_alignment.
27682 (assemble_start_function): Likewise.
27683 (emit_local): likewise.
27684 (build_constant_desc): Likewsie.
27685 (output_constant_def_contents): Likewise.
27686 (place_block_symbol): Likewise.
27687 (output_object_block): Likewise.
27689 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27692 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
27693 when outputting debug.
27695 2015-03-07 Marek Polacek <polacek@redhat.com>
27696 Martin Uecker <uecker@eecs.berkeley.edu>
27699 * doc/invoke.texi: Update description of -fsanitize=bounds.
27701 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
27703 * tree-ssa-phiopt.c (neg_replacement): Remove.
27704 (tree_ssa_phiopt_worker): Remove negate optimization.
27706 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27709 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
27711 2015-03-06 Richard Biener <rguenther@suse.de>
27713 PR middle-end/64928
27714 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
27715 and liveout_obstack members.
27716 (calculate_live_on_exit): Remove.
27717 (calculate_live_ranges): Change declaration.
27718 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
27719 (new_tree_live_info): Adjust.
27720 (calculate_live_ranges): Delete livein when not wanted.
27721 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
27722 Deal with partly deleted live info.
27723 (loe_visit_block): Remove temporary bitmap by using
27724 bitmap_ior_and_compl_into.
27725 (live_worklist): Adjust accordingly.
27726 (calculate_live_on_exit): Make static.
27727 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
27728 we do not need livein.
27730 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
27732 * real.c (real_from_string): Fix typo in assertion.
27734 2015-03-06 Alex Velenko <alex.velenko@arm.com>
27736 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
27739 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
27741 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
27743 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
27746 * lra-assigns.c (find_hard_regno_for): Rename to
27747 find_hard_regno_for_1. Add a new parameter.
27748 (find_hard_regno_for): New function using find_hard_regno_for_1.
27750 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
27752 PR rtl-optimization/65067
27753 * expmed.c (store_bit_field, extract_bit_field): Reworked the
27754 strict volatile bitfield handling.
27756 2015-03-05 Martin Liska <mliska@suse.cz>
27759 * ipa-icf.c (sem_variable::equals): Compare variables types.
27761 2015-03-05 Richard Henderson <rth@redhat.com>
27764 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
27765 correctly check weak symbol binding.
27767 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
27769 PR middle-end/65315
27770 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
27773 2015-03-05 Martin Liska <mliska@suse.cz>
27775 * ipa-inline.c (inline_small_functions): Set default value to
27776 prevent warning during bootstrap.
27777 * tree.h: Add pragma guard that ignores false positives during
27780 2015-03-05 Richard Biener <rguenther@suse.de>
27782 PR tree-optimization/65310
27783 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27784 Properly preserve alignment of the base of the access.
27786 2015-03-05 Richard Biener <rguenther@suse.de>
27789 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
27790 Compare dependence info.
27792 2015-03-05 Richard Biener <rguenther@suse.de>
27794 PR middle-end/65233
27795 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
27797 (walk_ssa_copies): Revert last chage. Instead do not walk
27798 SSA names registered for SSA update.
27800 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
27803 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
27804 vtable references for their containing type.
27805 (sem_function::equals_wpa): Compare TYPE_RESTRICT
27806 and type attributes.
27808 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
27810 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
27811 before negating it.
27812 * stor-layout.c (finalize_record_size): Revert latest change.
27814 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
27816 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
27818 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
27820 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
27821 for correct comdat handling.
27822 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
27824 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
27825 (used_from_object_file_p_worker): Remove.
27826 (cgraph_node::only_called_directly_or_alised): Add
27827 used_from_object_file_p.
27828 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
27829 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
27830 can_remove_if_no_direct_calls_and_refs_p.
27832 2015-03-04 Nick Clifton <nickc@redhat.com>
27834 * config/rl78/rl78.h (enum reg_class): Remove real registers from
27835 General register class.
27836 * config/rl78/rl78-real.md: Replace general register constraints
27837 with real+virtual register constraints.
27839 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27841 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
27842 from checking for -mhtm option.
27844 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
27846 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
27847 (struct ipa_sra_check_caller_data): Add has_thunk field.
27848 (ipa_sra_check_caller): Check for thunk.
27849 (ipa_sra_preliminary_function_checks): Give up on function with
27851 (ipa_early_sra): Use call_for_symbol_and_aliases.
27853 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
27856 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
27857 called for __stack_chk_guard symbol.
27859 2015-03-03 DJ Delorie <dj@redhat.com>
27861 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
27863 (*addhi3_real): Likewise.
27864 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
27865 pattern to match incrementing memory.
27866 * config/rl78/predicates.md (rl78_1_2_operand): New.
27867 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
27868 it's the same and only mem.
27869 (rl78_alloc_physical_registers_op2): If there's effectively only
27870 one MEM, transcode it into HL.
27871 (rl78_far_p): Reject addresses that aren't legitimate.
27873 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
27875 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
27878 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
27880 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
27882 Implement call0 ABI for xtensa
27883 * config/xtensa/constraints.md ("a" constraint): Include stack
27884 pointer in case of call0 ABI.
27885 ("q" constraint): Make empty in case of call0 ABI.
27886 ("D" constraint): Include stack pointer in case of call0 ABI.
27887 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
27888 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
27890 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
27892 (xtensa_regno_to_class): Make it a local variable in the
27893 function xtensa_regno_to_class.
27894 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
27895 macro, function prototype and implementation.
27896 (reg_nonleaf_alloc_order): Make it a local variable in the
27897 function order_regs_for_local_alloc.
27898 (xtensa_conditional_register_usage): New function.
27899 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
27900 (xtensa_valid_move): Allow direct moves to stack pointer
27901 register in call0 ABI.
27902 (xtensa_setup_frame_addresses): Only spill register windows in
27904 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
27905 call0 ABI respectively.
27906 (xtensa_function_arg_1): Only mark a7 register for copying in
27908 (xtensa_call_save_reg): New function.
27909 (compute_frame_size): Add space for callee saved register
27910 storage to the frame size in call0 ABI.
27911 (xtensa_expand_prologue): Generate code to set up stack frame
27912 and save callee-saved registers in call0 ABI.
27913 (xtensa_expand_epilogue): New function.
27914 (xtensa_set_return_address): New function.
27915 (xtensa_return_addr): Calculate return address in call0 ABI.
27916 (xtensa_builtin_saveregs): Only mark a7 register for copying and
27917 emit copying code in windowed ABI.
27918 (order_regs_for_local_alloc): Add preferred register allocation
27919 order for non-leaf function in call0 ABI.
27920 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
27921 (xtensa_asm_trampoline_template): Add trampoline generation for
27923 (xtensa_trampoline_init): Add trampoline initialization for
27925 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
27927 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
27928 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
27929 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
27930 ABI call-used registers.
27931 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
27932 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
27934 (REG_CLASS_CONTENTS): Include all registers into the preferred
27935 reload registers set, adjust the set in the
27936 xtensa_conditional_register_usage.
27937 (xtensa_regno_to_class): Drop variable declaration.
27938 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
27940 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
27942 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
27943 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
27944 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
27945 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
27946 location in call0 ABI.
27947 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
27948 stack adjustment size when handling exception.
27949 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
27950 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
27952 ("return" pattern): Generate ret.n/ret in call0 ABI.
27953 ("epilogue" pattern): Expand epilogue.
27954 ("nonlocal_goto" pattern): Use default in call0 ABI.
27955 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
27956 emit eh_set_a0_* depending on ABI.
27957 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
27958 ("eh_set_a0_call0", "blockage"): New patterns.
27960 2015-03-03 Martin Liska <mliska@suse.cz>
27963 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
27965 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27968 * config/rs6000/rs6000-tables.opt: Regenerate table.
27970 2015-03-03 Renlin Li <renlin.li@arm.com>
27972 * doc/md.texi (@item ^): Change ? into ^.
27974 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
27976 * doc/tm.texi: Regenerated.
27978 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
27980 * builtins.c (expand_builtin_return_addr): Add
27981 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
27982 surrounding #ifdef.
27983 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
27985 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
27987 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
27989 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
27992 2015-03-03 Martin Jambor <mjambor@suse.cz>
27993 Eric Botcazou <ebotcazou@adacore.com>
27995 * tree-sra.c (ipa_sra_check_caller_data): New type.
27996 (has_caller_p): Removed.
27997 (ipa_sra_check_caller): New function.
27998 (ipa_sra_preliminary_function_checks): Use it.
28000 2015-03-03 Martin Liska <mliska@suse.cz>
28002 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
28003 instead of if branch.
28005 2015-03-03 Martin Liska <mliska@suse.cz>
28008 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
28010 2015-03-23 Jeff Law <law@redhat.com>
28012 PR tree-optimization/65241
28013 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
28014 hash table if INSERT is true.
28016 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28019 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
28021 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28024 * config/avr/avr.c (context.h, tree-pass.h): Include them.
28025 (avr_pass_data_recompute_notes): New static variable.
28026 (avr_pass_recompute_notes): New class.
28027 (avr_register_passes): New static function.
28028 (avr_option_override): Call it.
28030 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
28032 Fix various problems with specs file generation.
28035 * config.gcc (extra_gcc_objs) [avr]: Remove.
28036 * config/avr/driver-avr.c: Remove file.
28037 * config/avr/t-avr (driver-avr.o): Remove rule.
28038 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
28039 INCLUDES to build. Depend on TM_H.
28040 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
28041 build warnings. Fix non-matching types and non-existing %-codes.
28043 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
28044 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
28045 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
28046 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
28047 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
28048 (LIBGCC_SPEC): Remove definitions.
28050 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
28052 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
28053 to create a register in testing mode.
28055 2015-03-03 Martin Liska <mliska@suse.cz>
28056 Jan Hubicka <hubicka@ucw.cz>
28059 * cgraph.c (cgraph_node::has_thunk_p): New function.
28060 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
28061 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
28062 (sem_function::merge): Assert is changed.
28064 2015-03-03 Martin Liska <mliska@suse.cz>
28065 Martin Jambor <mjambor@suse.cz>
28068 * ipa-icf.c (sem_item_optimizer::execute): Change function
28069 return value to boolean.
28070 (sem_item_optimizer::merge_classes): Likewise.
28071 (ipa_icf_driver): Return TODO_remove_functions in case there's
28072 a merge operation processed.
28073 * ipa-icf.h: Change function return value to boolean.
28075 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
28078 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
28079 processor type for 64-bit little endian PowerPC.
28081 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
28082 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
28083 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
28084 printing built-in mask so it does not pass NULL pointers.
28086 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
28089 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
28092 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
28093 !ISA_HAS_FP_CONDMOVE.
28095 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
28097 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
28100 2015-03-02 Ulrich Drepper <drepper@gmail.com>
28102 * doc/invoke.texi (Options for Code Generation Conventions):
28103 Fix URL of DSO paper.
28105 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28108 * ipa-inline.c (check_callers): Looks for recursion.
28109 (inline_to_all_callers): Give up on uninlinable or recursive edges.
28110 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
28111 summary of inline clones.
28112 (do_estimate_growth_1): Fix recursion check.
28114 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28117 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
28120 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
28121 Aldy Hernandez <aldyh@redhat.com>
28124 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
28125 when checking TYPE_BINFO.
28127 2015-03-02 Richard Biener <rguenther@suse.de>
28130 * ipa-icf-gimple.c: Include builtins.h.
28131 (func_checker::compare_memory_operand): Compare base alignment.
28133 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28136 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
28137 are never passed by reference.
28139 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
28142 * tree-chkp.c (chkp_check_lower): Don't check against
28143 zero bounds for already instrumented functions.
28144 (chkp_check_upper): Likewise.
28145 (chkp_fini): Clean pass local data to avoid wrong reusage.
28147 2015-02-28 Martin Liska <mliska@suse.cz>
28148 Jan Hubicka <hubicka@ucw.cz>
28150 * ipa-icf.c (sem_variable::equals): Improve debug output;
28151 get variable constructor.
28152 (sem_variable::parse): Do not filter out too early; give up on
28153 volatile and register vars.
28154 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
28156 * ipa-icf.h (sem_variable::init): Do not set ctor.
28157 (sem_variable::ctor): Remove.
28159 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
28161 PR middle-end/65233
28162 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
28164 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28166 * ipa-icf.c: Include stor-layout.h
28167 (sem_function::compare_cgraph_references): Rename to ...
28168 (sem_item::compare_cgraph_references): ... this one.
28169 (sem_variable::equals_wpa): New function
28170 (sem_variable::equals): Do not check stuff already verified by
28172 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
28173 * ipa-icf.h (sem_item): Add compare_cgraph_references.
28174 (sem_function): Remove compare_cgraph_references.
28175 (sem_variable): Turns equals_wpa into non-inline.
28177 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28179 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
28180 (sem_item::add_expr): New function.
28181 (sem_function::hash_stmt): Handle operands of most statements.
28182 (sem_variable::get_hash): Hash the actual constructor.
28183 * ipa-icf.h (sem_item): Add add_expr.
28184 (sem_function): Update prototype of hash_stmt
28186 2015-02-28 Martin Liska <mliska@suse.cz>
28187 Jan Hubicka <hubicka@ucw.cz>
28190 * ipa-icf-gimple.c (func_checker::compare_function_decl):
28192 (func_checker::compare_variable_decl): Skip symtab vars.
28193 (func_checker::compare_cst_or_decl): Update.
28194 * ipa-icf.c (sem_function::parse): Do not consider aliases.
28195 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
28196 use correct symtab predicates.
28197 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
28198 (sem_variable::parse): Update comment.
28199 (sem_item_optimizer::build_graph): Consider ultimate aliases
28202 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28204 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
28207 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28209 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
28210 (sem_variable::merge) Likewise.
28212 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28214 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
28215 target; also match flag_ipa_devirt.
28217 2015-03-01 Martin Liska <mliska@suse.cz>
28218 Jan Hubicka <hubicka@ucw.cz>
28220 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
28221 Validate variable alignment.
28222 * ipa-icf.c (sem_function::equals_private): Be more precise
28223 about non-common function attributes.
28224 (sem_variable::equals): Likewise.
28226 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28229 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
28230 across COMDAT group boundary.
28232 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28235 * ipa-icf.c (clear_decl_rtl): New function.
28236 (sem_function::merge): Clear RTL before forming alias.
28237 (sem_variable::merge): Clear RTL before forming alias.
28239 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
28242 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
28244 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
28246 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
28249 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28251 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
28252 a typo in the description.
28254 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28257 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28258 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
28259 * lra-constraints.c: Include "params.h".
28260 (EBB_PROBABILITY_CUTOFF): Use
28261 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
28262 (lra_inheritance): Use '<' instead of '<=' for
28263 EBB_PROBABILITY_CUTOFF.
28264 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
28267 2015-02-27 Martin Liska <mliska@suse.cz>
28269 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
28270 vector length condition.
28272 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
28274 * doc/extend.texi (x86 transactional memory intrinsics):
28275 Reorganize discussion of _xbegin. Clarify that the return
28276 value is a bit mask. Expand example and move to end of section.
28278 2015-02-26 Jakub Jelinek <jakub@redhat.com>
28279 Aldy Hernandez <aldyh@redhat.com>
28281 PR rtl-optimization/65220
28282 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
28284 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
28287 * lra-remat.c (update_scratch_ops): New.
28288 (do_remat): Call it.
28289 * lra.c (lra_register_new_scratch_op): New. Take code from ...
28290 (remove_scratches): ... here.
28291 * lra-int.h (lra_register_new_scratch_op): New prototype.
28293 2015-02-27 Marek Polacek <polacek@redhat.com>
28296 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
28297 -Wformat-signedness anymore.
28299 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28301 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
28303 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
28305 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28307 * config/s390/s390.c (enum s390_builtin):
28308 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
28309 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
28310 (s390_init_builtins): Generate new builtin functions.
28311 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
28312 (s390_sfpc, s390_efpc): New pattern definitions.
28314 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28316 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
28317 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
28318 (s390_builtin_decls): New array.
28319 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
28320 (s390_builtin_decl): New function.
28321 (TARGET_BUILTIN_DECL): Define macro.
28323 2015-02-27 Richard Biener <rguenther@suse.de>
28325 PR middle-end/63175
28326 * builtins.c (get_object_alignment_2): Make sure to re-apply
28327 the ANDed mask after recursing to its operand gets us a new
28328 misalignment bit position.
28330 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
28331 Martin Liska <mliska@suse.cz>
28334 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
28335 Use address_matters_p.
28336 (redirect_all_callers, set_addressable): New functions.
28337 (sem_function::merge): Reorganize and fix merging issues.
28338 (sem_variable::merge): Likewise.
28339 (sem_variable::compare_sections): Remove.
28340 * common.opt (fmerge-all-constants, fmerge-constants): Remove
28342 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
28344 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
28346 (address_matters_1): New function.
28347 (symtab_node::address_matters_p): New function.
28348 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
28349 check for merged flag.
28350 * cgraph.h (address_matters_p): Declare.
28351 (symtab_node::address_taken_from_non_vtable_p): Remove.
28352 (symtab_node::address_can_be_compared_p): New method.
28353 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
28354 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
28356 (comdat_can_be_unshared_p_1) Use address_matters_p.
28357 (update_vtable_references): Fix formating.
28358 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
28359 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
28360 * cgraphclones.c: Preserve merged and icf_merged flags.
28362 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
28364 * doc/extend.texi (Function Attributes): Fix spelling and typos.
28365 (Label Attributes): Likewise.
28366 (Cilk Plus Builtins): Likewise.
28367 (ARC SIMD Built-in Functions): Likewise.
28368 (ARM C Language Extensions (ACLE)): Likewise.
28369 (PowerPC Built-in Functions): Likewise.
28370 (PowerPC Hardware Transactional Memory Built-in Functions):
28373 2015-02-26 Jakub Jelinek <jakub@redhat.com>
28375 PR tree-optimization/65216
28376 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
28377 new stmt and new SSA_NAME for lhs whenever the arguments have
28378 changed and weren't just swapped. Fix comment typo.
28380 PR tree-optimization/65215
28381 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
28382 for PDP endian targets.
28383 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
28384 Fix up formatting issues.
28385 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
28386 size is smaller than the original, adjust MEM_REF offset by the
28387 difference of sizes. Use is_gimple_mem_ref_addr instead of
28388 is_gimple_min_invariant test to avoid adding address temporaries.
28390 2015-02-26 Martin Liska <mliska@suse.cz>
28391 Jan Hubicka <hubicka@ucw.cz>
28394 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
28395 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
28396 (sem_item_optimizer::process_cong_reduction): Include division by
28397 sensitive references.
28398 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
28399 * ipa-ref.c (ipa_ref::address_matters_p): New function.
28400 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
28402 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
28405 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
28407 * config/avr/avr.c: Same.
28408 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
28409 Refuse any constant address not in 0..0xbf.
28410 * config/avr/avr.md (*mov<mode>, *movsf): Remove
28411 tiny_valid_direct_memory_access_range from insn conditions.
28412 (mov<mode>): Don't special-case expansion of avrtiny addresses.
28414 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
28417 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
28418 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
28419 * config/sh/predicates.md (const_logical_operand): New predicate.
28420 * config/sh/sh.md: Add new peephole2 patterns.
28422 2015-02-26 Marek Polacek <polacek@redhat.com>
28425 * ipa-inline.c (early_inliner): Recompute inline parameters.
28427 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28430 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
28431 instructions with TImode operands are included in the analysis.
28433 2015-02-26 Sebastian Pop <s.pop@samsung.com>
28435 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
28436 of an EDGE_FSM_THREAD.
28438 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
28440 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
28442 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
28445 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
28447 2015-02-26 Sebastian Pop <s.pop@samsung.com>
28449 PR tree-optimization/65048
28450 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
28451 (thread_through_all_blocks): Call valid_jump_thread_path.
28452 Remove invalid FSM jump-thread paths.
28454 2015-02-26 Jakub Jelinek <jakub@redhat.com>
28456 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
28457 (ipa_write_optimization_summaries): Likewise.
28458 * tree-streamer.h: Include data-streamer.h.
28459 (streamer_mode_table): Declare extern variable.
28460 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
28461 * lto-streamer-out.c (lto_output_init_mode_table,
28462 lto_write_mode_table): New functions.
28463 (produce_asm_for_decls): Call lto_write_mode_table when streaming
28465 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
28466 (lto_create_simple_input_block): Add mode_table argument to the
28467 lto_input_block constructors.
28468 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
28470 * data-streamer-in.c (string_for_index): Likewise.
28471 * ipa-inline-analysis.c (inline_read_section): Likewise.
28472 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
28473 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
28474 * lto-streamer-in.c (lto_read_body_or_constructor,
28475 lto_input_toplevel_asms): Likewise.
28476 (lto_input_mode_table): New function.
28477 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
28478 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
28479 Use bp_pack_machine_mode.
28480 * real.h (struct real_format): Add name field.
28481 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
28482 (class lto_input_block): Add mode_table member.
28483 (lto_input_block::lto_input_block): Add mode_table_ argument,
28484 initialize mode_table.
28485 (struct lto_file_decl_data): Add mode_table field.
28486 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
28487 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
28488 unpack_ts_decl_common_value_fields,
28489 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
28490 * tree-streamer.c (streamer_mode_table): New variable.
28491 * real.c (ieee_single_format, mips_single_format,
28492 motorola_single_format, spu_single_format, ieee_double_format,
28493 mips_double_format, motorola_double_format,
28494 ieee_extended_motorola_format, ieee_extended_intel_96_format,
28495 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
28496 ibm_extended_format, mips_extended_format, ieee_quad_format,
28497 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
28498 decimal_single_format, decimal_double_format, decimal_quad_format,
28499 ieee_half_format, arm_half_format, real_internal_format): Add name
28501 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
28503 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
28506 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
28507 reordering for selective scheduling.
28509 2015-02-26 Terry Guo <terry.guo@arm.com>
28511 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
28512 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
28513 (arm_arch_no_volatile_ce): Declare new global variable.
28514 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
28515 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
28516 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
28517 (TARGET_NO_VOLATILE_CE): New macro.
28518 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
28519 volatile memory access in IT block
28521 2015-02-25 Kai Tietz <ktietz@redhat.com>
28523 PR tree-optimization/61917
28524 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
28525 that reduc_def_stmt is null.
28527 2015-02-25 Martin Liska <mliska@suse.cz>
28529 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
28530 hard register variables.
28532 2015-02-25 Kai Tietz <ktietz@redhat.com>
28535 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
28536 (symtab::noninterposable_alias): Likewise.
28538 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
28541 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
28543 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
28545 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
28548 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
28549 as split condition; force split via '#' in output pattern.
28551 2015-02-25 Richard Biener <rguenther@suse.de>
28552 Kai Tietz <ktietz@redhat.com>
28554 PR tree-optimization/61917
28555 * tree-vect-loop.c (vectorizable_reduction): Allow
28556 vect_internal_def without reduction to exit graceful.
28558 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
28561 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
28562 only with NONDEBUG_INSN_P.
28564 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
28566 Use variadic macros with avr-log.c.
28568 * config/avr/avr-protos.h (avr_vdump): New prototype.
28569 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
28570 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
28571 * config/avr/avr-log.c: Adjust comments.
28572 (avr_vdump): New function.
28573 (avr_vadump): Pass caller as 2nd argument instead of format string.
28574 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
28575 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
28577 2015-02-25 Jakub Jelinek <jakub@redhat.com>
28580 * target.def (target_option_stream_in): New target hook.
28581 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
28582 targetm.target_option.post_stream_in if non-NULL.
28583 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
28584 * doc/tm.texi: Updated.
28585 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
28587 (TARGET_OPTION_POST_STREAM_IN): Redefine.
28589 2015-02-24 Jeff Law <law@redhat.com>
28592 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
28593 of operand 0 and operand 2.
28594 (zero_cost_loop_end, loop_end): Similarly.
28596 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
28598 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
28601 2015-02-24 DJ Delorie <dj@redhat.com>
28603 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
28604 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
28605 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
28606 instead of hardcoding SImode.
28608 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
28610 * omp-low.c (create_omp_child_function): Tag entrypoint
28611 functions with a special attribute.
28613 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
28616 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
28618 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
28620 PR rtl-optimization/65123
28621 * lra-remat.c (operand_to_remat): Check hard regs in insn
28624 2015-02-24 Nick Clifton <nickc@redhat.com>
28626 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
28629 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
28632 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
28633 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
28634 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
28635 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
28636 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
28637 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
28638 (BUILT_IN_GOACC_PARALLEL): Specify as
28639 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
28640 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
28641 * builtin-types.def
28642 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28643 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28644 Remove function types.
28645 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
28646 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
28647 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
28648 New function types.
28650 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
28652 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
28654 2015-02-24 Jakub Jelinek <jakub@redhat.com>
28656 PR tree-optimization/65170
28657 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
28658 if val[1] < 0, clear also val[2] and return 3.
28660 2015-02-24 Alan Modra <amodra@gmail.com>
28663 * config/rs6000/rs6000.c (get_memref_parts): Only return true
28664 when *base is a reg. Handle nested plus addresses. Simplify
28667 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
28669 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
28670 use natural alignment when optimizing for size.
28672 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
28675 * config/sh/sh.md (movsicc_true+3): Remove peephole.
28676 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
28677 * config/sh/sh.c (replace_n_hard_rtx): Remove.
28679 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
28682 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
28683 too big for a wide_int. Implement missing wrapping operation.
28685 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
28688 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
28689 instead of const_int 4294901760.
28691 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
28693 * config/avr/t-avr: Fix typo in comment.
28695 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
28697 * doc/rtl.texi (fma): Clarify documentation.
28699 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
28702 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
28703 over input_location.
28705 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
28707 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
28708 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
28709 restrict alignments to absolute_biggest_alignment.
28710 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
28712 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
28713 * doc/tm.texi: Regenerate.
28714 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
28716 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
28719 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
28721 2015-02-20 Richard Biener <rguenther@suse.de>
28723 PR tree-optimization/65136
28724 * tree-ssa-propagate.c: Include cfgloop.h.
28725 (replace_phi_args_in): Avoid replacing loop latch edge PHI
28726 arguments with constants.
28728 2015-02-20 Jakub Jelinek <jakub@redhat.com>
28729 Martin Liska <mliska@suse.cz>
28732 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
28733 don't try to create_thunk if stdarg_p. If
28734 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
28735 redirect_callers if possible.
28736 (sem_item_optimizer::execute): Call unregister_hooks here...
28737 (ipa_icf_driver): ... instead of here.
28739 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28741 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
28742 Mark operand 0 as earlyclobber in 2nd alternative.
28743 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
28744 Write negated shift amount into QI lowpart operand 0 and use it
28746 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
28748 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
28750 * cgraph.h (clone_function_name_1): Declare.
28751 * cgraphclones.c (clone_function_name_1): New function.
28752 (clone_function_name): Use it.
28753 * lto-partition.c: Include "stringpool.h".
28754 (must_not_rename, maybe_rewrite_identifier)
28755 (validize_symbol_for_target): New static functions.
28756 (privatize_symbol_name): Use must_not_rename.
28757 (promote_symbol): Call validize_symbol_for_target.
28758 (lto_promote_cross_file_statics): Likewise.
28759 (lto_promote_statics_nonwpa): Likewise.
28761 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
28764 * config/avr/avr.md (pushhi_insn): New insn.
28765 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
28767 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
28768 Jakub Jelinek <jakub@redhat.com>
28770 * tree-streamer.c (preload_common_nodes): Don't preload
28771 TI_VA_LIST* for offloading.
28772 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
28775 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
28777 * config/pa/pa.c (pa_emit_move_sequence): Always force
28778 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
28781 * config/pa/pa.c (pa_reloc_rw_mask): New function.
28782 (TARGET_ASM_RELOC_RW_MASK): Define.
28783 (pa_cannot_force_const_mem): Revert previous change.
28785 2015-02-19 Martin Jambor <mjmabor@suse.cz>
28786 Jan Hubicka <hubicka@ucw.cz>
28789 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
28790 across jump functions.
28792 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
28794 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
28796 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
28798 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
28800 2015-02-19 Richard Henderson <rth@redhat.com>
28802 PR middle-end/65074
28803 * varasm.c (default_binds_local_p_2): Don't test node->definition;
28804 test DECL_EXTERNAL independent of symtab_node.
28806 2015-02-19 Jakub Jelinek <jakub@redhat.com>
28809 * varpool.c (varpool_node::get_constructor): Return early
28810 if this->lto_file_data is NULL.
28812 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
28814 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
28815 (rank_for_schedule_debug): Update.
28816 (ready_sort): Make static. Move sorting logic to ...
28817 (ready_sort_debug, ready_sort_real): New static functions.
28818 (schedule_block): Sort both debug insns and real insns in preparation
28819 for ready list trimming. Improve debug output.
28820 * sched-int.h (ready_sort): Remove global declaration.
28822 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
28824 * ipa-icf.c (sem_function::equals_private): Adjust.
28825 (sem_function::bb_dict_test): Take a vec<int> * instead of
28827 * ipa-icf.h (bb_dict_test): Likewise.
28829 2015-02-18 Jakub Jelinek <jakub@redhat.com>
28831 PR gcov-profile/64634
28832 * tree-eh.c (frob_into_branch_around): Fix up typos
28833 in function comment.
28834 (lower_catch): Put eh_seq resulting from EH lowering of
28835 the cleanup sequence after the cleanup rather than before it.
28837 2015-02-18 Tom de Vries <tom@codesourcery.com>
28839 * common.opt (fstdarg-opt): New option.
28840 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
28841 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
28842 (@item -fstdarg-opt): New item.
28844 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
28847 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
28848 for common symbols.
28850 2015-02-18 Jakub Jelinek <jakub@redhat.com>
28852 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
28854 (ALL_HOST_OBJS): Add mkoffload.o.
28855 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
28857 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
28859 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
28860 (compare_virtual_tables): Be smarter about skipping typeinfos;
28861 do sane output on virtual table table mismatch.
28862 (warn_odr): Be ready for forward declarations of enums;
28863 output sane info on base mismatch and virtual table mismatch.
28864 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
28865 when only one type is polymorphic.
28866 (get_odr_type): Fix hashtable corruption.
28867 (dump_odr_type): Dump mangled names.
28869 2015-02-18 Richard Biener <rguenther@suse.de>
28871 PR tree-optimization/65063
28872 * tree-predcom.c (determine_unroll_factor): Return 1 if we
28873 have replaced looparound PHIs.
28875 2015-02-18 Martin Liska <mliska@suse.cz>
28877 * lto-streamer.c (lto_streamer_init): Encapsulate
28878 streamer_check_handled_ts_structures with checking macro.
28880 2015-02-18 Jakub Jelinek <jakub@redhat.com>
28883 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
28884 section if !implicit_section.
28885 (cgraph_node::create_version_clone_with_body): Likewise.
28886 * trans-mem.c (ipa_tm_create_version): Likewise.
28888 2015-02-18 Richard Biener <rguenther@suse.de>
28890 PR tree-optimization/62217
28891 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
28894 2015-02-18 Marek Polacek <polacek@redhat.com>
28897 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
28898 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
28899 is in range [-16K, -1]. Don't issue run-time error if
28900 (ptr > ptr + offset).
28902 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
28904 * doc/install.texi (nvptx-*-none): New section.
28905 * doc/invoke.texi (Nvidia PTX Options): Likewise.
28906 * config/nvptx/nvptx.opt: Update.
28908 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
28909 (access_check): New functions, copied from
28910 config/i386/intelmic-mkoffload.c.
28911 (main): For non-installed testing, look in all COMPILER_PATHs for
28914 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
28916 2015-02-18 Andrew Pinski <apinski@cavium.com>
28917 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
28919 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
28920 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
28922 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
28924 * ipa-visibility.c (function_and_variable_visibility): Only
28925 check locality if node is not already local.
28926 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28927 call_for_symbol_and_aliases instead of
28928 call_for_symbol_thunks_and_aliases.
28929 (ipa_inline): Likewise.
28930 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28931 first walk aliases.
28932 * ipa.c (symbol_table::remove_unreachable_nodes): Use
28933 call_for_symbol_and_aliases.
28934 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28935 (ipa_propagate_frequency_1): Use it; use opt_for_fn
28936 (ipa_propagate_frequency): Update.
28937 (ipa_profile): Add opt_for_fn gueards.
28939 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
28941 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
28942 * doc/invoke.texi (SH options): Document it.
28943 * config/sh/sh.c (sh_insn_length_adjustment): Check
28944 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
28946 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
28948 * common.opt (fipa-cp-alignment): New.
28949 * ipa-cp.c (ipcp_store_alignment_results): Check
28950 flag_ipa_cp_alignment.
28951 * opts.c (default_options_table): Enable -fipa-cp-alignment for
28953 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
28954 * doc/invoke.texi: Document -fipa-cp-alignment.
28956 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
28959 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
28960 to nil. Adjust comments.
28962 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
28964 * ipa-visibility.c (function_and_variable_visibility): Only
28965 check locality if node is not already local.
28966 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
28967 call_for_symbol_and_aliases instead of
28968 call_for_symbol_thunks_and_aliases.
28969 (ipa_inline): Likewise.
28970 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
28971 first walk aliases.
28972 * ipa.c (symbol_table::remove_unreachable_nodes): Use
28973 call_for_symbol_and_aliases.
28974 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
28975 (ipa_propagate_frequency_1): Use it; use opt_for_fn
28976 (ipa_propagate_frequency): Update.
28977 (ipa_profile): Add opt_for_fn guards.
28979 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
28981 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
28982 skipping of "strange" tokens.
28984 2015-02-17 Jeff Law <law@redhat.com>
28986 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
28989 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
28991 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
28992 as forcing a HARD_DEP between instructions, thereby
28993 disallowing rewriting to break dependencies.
28995 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
28997 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
28998 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
28999 variables in boundary that have no inlitalizer encoded and are
29001 * varasm.c (default_binds_local_p_2): External definitions do not
29002 count as definitions here.
29004 2015-02-16 Jeff Law <law@redhat.com>
29006 PR tree-optimization/64823
29007 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
29009 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29010 threading through blocks with PHIs, but no statements.
29011 (thread_through_normal_block): Distinguish between blocks where
29012 we did not process all the statements and blocks with no statements.
29014 2015-02-16 Jakub Jelinek <jakub@redhat.com>
29015 James Greenhalgh <james.greenhalgh@arm.com>
29018 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
29019 section if not linkonce. Fix up formatting.
29020 (cgraph_node::create_version_clone_with_body): Copy section.
29021 * trans-mem.c (ipa_tm_create_version): Likewise.
29023 2015-02-16 Richard Biener <rguenther@suse.de>
29025 PR tree-optimization/65077
29026 * tree-ssa-structalias.c (get_constraint_for_1): Handle
29027 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
29028 (find_func_aliases): Allow float values to carry pointers again.
29030 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
29032 * doc/install.texi (Specific): Reorder targets list to put
29033 aarch64 in alphabetical order. Add a link to aarch64*-*-*
29036 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
29037 David Edelsohn <dje.gcc@gmail.com>
29040 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
29041 mapping class to external variable or function reference.
29042 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
29045 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
29048 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
29049 ASM_WEAKEN_DECL if defined.
29051 2015-02-16 Richard Biener <rguenther@suse.de>
29054 * varasm.c (default_file_start): For LTO produced units
29055 emit <artificial> as file directive.
29057 2015-02-16 Richard Biener <rguenther@suse.de>
29059 PR tree-optimization/63593
29060 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
29061 stmts and releasing SSA names until...
29062 (execute_pred_commoning): ... after processing all chains.
29064 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
29067 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
29068 external functions.
29070 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
29072 * doc/bugreport.texi: Adjust section titles throughout the file
29073 to use "Title Case".
29074 * doc/extend.texi: Likewise.
29075 * doc/gcov.texi: Likewise.
29076 * doc/implement-c.texi: Likewise.
29077 * doc/implement-cxx.texi: Likewise.
29078 * doc/invoke.texi: Likewise.
29079 * doc/objc.texi: Likewise.
29080 * doc/standards.texi: Likewise.
29081 * doc/trouble.texi: Likewise.
29083 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
29085 * cgraph.h (symtab_node::has_aliases_p): Simplify.
29086 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
29087 * tree.c (lookup_binfo_at_offset): Make static.
29088 (get_binfo_at_offset): Do not shadow offset; add explanatory
29091 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
29093 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
29094 for all floading point loads and stores except those using a register
29096 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
29099 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29101 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
29102 (do_estimate_growth_1): Record if any uninlinable edge was seen.
29103 (estimate_growth): Handle uninlinable edges correctly.
29104 (check_callers): New.
29105 (growth_likely_positive): Handle aliases correctly.
29107 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
29109 * ipa-chkp.c: Use iterate_direct_aliases.
29110 * symtab.c (resolution_used_from_other_file_p): Move inline.
29111 (symtab_node::create_reference): Fix formating.
29112 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29113 (symtab_node::iterate_reference): Move inline.
29114 (symtab_node::iterate_referring): Move inline.
29115 (symtab_node::iterate_direct_aliases): Move inline.
29116 (symtab_node::used_from_object_file_p_worker): Inline into ...
29117 (symtab_node::used_from_object_file_p): ... this one; move inline.
29118 (symtab_node::call_for_symbol_and_aliases): Move inline;
29119 use iterate_direct_aliases.
29120 (symtab_node::call_for_symbol_and_aliases_1): New method.
29121 (cgraph_node::call_for_symbol_and_aliases): Move inline;
29122 use iterate_direct_aliases.
29123 (cgraph_node::call_for_symbol_and_aliases_1): New method.
29124 (varpool_node::call_for_node_and_aliases): Rename to ...
29125 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
29126 use iterate_direct_aliases.
29127 (varpool_node::call_for_symbol_and_aliases_1): New method.
29128 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
29129 (ipa_discover_readonly_nonaddressable_var): Update.
29130 * ipa-devirt.c: Fix formating.
29131 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
29133 (cgraph_node::call_for_symbol_and_aliases): Move inline.
29134 (cgraph_node::call_for_symbol_and_aliases_1): New function..
29135 * cgraph.h (used_from_object_file_p_worker): Remove.
29136 (resolution_used_from_other_file_p): Move inline.
29137 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
29138 (symtab_node::iterate_reference): Move inline.
29139 (symtab_node::iterate_referring): Move inline.
29140 (symtab_node::iterate_direct_aliases): Move inline.
29141 (symtab_node::used_from_object_file_p_worker): Inline into ...
29142 (symtab_node::used_from_object_file_p): Move inline.
29143 * tree-emutls.c (ipa_lower_emutls): Update.
29144 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
29145 (varpool_node::call_for_node_and_aliases): Remove.
29147 2015-02-14 Jakub Jelinek <jakub@redhat.com>
29149 PR tree-optimization/62209
29150 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
29151 op == range->exp, insert seq and gimplified code after labels
29152 instead of after the phi.
29154 2015-02-13 Jeff Law <law@redhat.com>
29157 Revert my change for tree-optimization/64823.
29159 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29161 PR tree-optimization/65053
29162 * tree-ssa-phiopt.c (value_replacement): When moving assign before
29163 cond, either reset VR on lhs or set it to phi result VR.
29165 2015-02-13 Jeff Law <law@redhat.com>
29167 PR tree-optimization/64823
29168 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
29169 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
29170 threading through blocks with PHIs, but no statements.
29171 (thread_through_normal_block): Distinguish between blocks where
29172 we did not process all the statements and blocks with no statements.
29174 PR rtl-optimization/47477
29175 * match.pd (convert (plus/minus (convert @0) (convert @1): New
29176 simplifier to narrow arithmetic.
29178 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
29181 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
29182 polymorphic call info when type is not known to be preserved.
29184 2015-02-13 Maritn Jambor <mjambor@suse.cz>
29187 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
29188 (inline_call): Use it.
29190 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
29192 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
29193 GOMP_DEVICE_NVIDIA_PTX.
29195 2015-02-13 Jakub Jelinek <jakub@redhat.com>
29198 * stmt.c (emit_case_nodes): Use void_type_node instead of
29199 NULL_TREE as LABEL_DECL type.
29201 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
29203 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
29205 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
29206 symbolic references to data to be forced to constant memory on the
29209 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
29211 PR tree-optimization/65002
29212 * tree-cfg.c (pass_data_fixup_cfg): Don't update
29214 * tree-sra.c (some_callers_have_no_vuse_p): New.
29215 (ipa_early_sra): Reject functions whose callers
29216 assume function is read only.
29218 2015-02-13 Richard Biener <rguenther@suse.de>
29221 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
29222 for LTO produced CUs.
29224 2015-02-13 Bin Cheng <bin.cheng@arm.com>
29226 PR tree-optimization/64705
29227 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
29228 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
29229 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
29230 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
29231 expand_simple_operations.
29233 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
29234 Richard Henderson <rth@redhat.com>
29237 * cgraphunit.c (cgraph_node::finalize_function): Set definition
29238 before notice_global_symbol.
29239 (varpool_node::finalize_decl): Likewise.
29240 * varasm.c (default_binds_local_p_2): Rename from
29241 default_binds_local_p_1, add weak_dominate argument. Use direct
29242 returns instead of assigning to local variable. Unify varpool and
29243 cgraph paths via symtab_node. Reject undef weak variables before
29244 testing visibility. Reorder tests for simplicity.
29245 (default_binds_local_p): Use default_binds_local_p_2.
29246 (default_binds_local_p_1): Likewise.
29247 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
29249 (default_elf_asm_output_external): Emit visibility when specified.
29251 2015-02-13 Alan Modra <amodra@gmail.com>
29253 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
29254 code setting up r11 for out-of-line fp restore.
29256 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
29258 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
29259 (muser-mode): Likewise.
29261 2015-02-13 Alan Modra <amodra@gmail.com>
29263 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
29264 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
29266 2015-02-12 David Howells <dhowells@redhat.com>
29268 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
29270 * tree-ssa-uninit.c (dump_predicates): Likewise.
29271 * opts.c (print_filtered_help): Likewise.
29273 2015-02-12 Jakub Jelinek <jakub@redhat.com>
29275 * dwarf2out.c (output_die): Use "%s", name instead of name to
29276 avoid -Wformat-security warning.
29278 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
29279 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29280 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
29281 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
29283 2015-02-12 Jason Merrill <jason@redhat.com>
29285 * common.opt (-flifetime-dse): New.
29287 2015-02-12 Jakub Jelinek <jakub@redhat.com>
29290 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
29292 PR tree-optimization/65014
29293 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
29294 use original second operand of arg0 or arg1 instead of
29295 that adjusted by STRIP_NOPS.
29297 2015-02-11 Jeff Law <law@redhat.com>
29300 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
29301 that needs to be queued, just queue it for a single cycle.
29303 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
29305 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
29306 bodies of thunks; comment on why.
29307 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
29308 symbols are extern.
29310 2015-02-11 Richard Henderson <rth@redhat.com>
29313 * tree-eh.c (mark_reachable_handlers): Mark source and destination
29314 regions of __builtin_eh_copy_values.
29316 2015-02-11 Jakub Jelinek <jakub@redhat.com>
29318 PR middle-end/65003
29319 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
29320 ultimate alias is MEM with SYMBOL_REF satisfying
29321 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
29322 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
29324 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
29326 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
29327 "diagnostic-core.h".
29328 (main): Initialize progname, and call diagnostic_initialize.
29330 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
29331 instead of __OPENMP_TARGET__.
29333 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
29334 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
29335 hard-coding PTX_ID.
29337 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
29339 * doc/sourcebuild.texi (pie_enabled): Document.
29341 2015-02-11 Martin Liska <mliska@suse.cz>
29344 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
29345 a return value for call to a function that is noreturn.
29347 2015-02-11 Richard Biener <rguenther@suse.de>
29350 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
29353 2015-02-11 Andrew Pinski <apinski@cavium.com>
29356 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
29357 Change the first argument type to size_type_node and add another
29359 (aarch64_simd_expand_builtin): Handle the new argument to
29360 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
29361 print an out when the first two arguments are not
29362 nonzero integer constants.
29363 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
29364 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
29366 2015-02-11 Jakub Jelinek <jakub@redhat.com>
29369 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
29370 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
29371 (ix86_set_current_function): Rewritten.
29372 (ix86_add_new_builtins): Temporarily clear current_target_pragma
29373 when creating builtin fndecls.
29375 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
29378 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
29380 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
29381 have no comdat group.
29382 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
29383 (lto_output_varpool_node): Always output alias info.
29384 (output_refs): Output refs of boundary aliases, too.
29385 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
29386 (output_symtab): Output call eges in thunks in boundary.
29387 (get_alias_symbol): Remove.
29388 (input_node, input_varpool_node): Do not special case weakrefs.
29389 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
29390 alias and thunks targets in the boundary; do not take removed symbols
29391 from their comdat groups.
29392 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
29393 (cgraph_node::global_info): Remove.
29394 (cgraph_node::rtl_info): Look through aliases and thunks.
29395 * cgrpah.h (global_info): Remove.
29396 (non_local_p): Remove.
29398 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
29399 Sandra Loosemore <sandra@codesourcery.com>
29401 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
29402 to inline asm. List dialects in proper order.
29404 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
29405 Sandra Loosemore <sandra@codesourcery.com>
29407 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
29409 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
29411 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
29412 modified) reference to Solaris.
29414 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
29416 * doc/extend.texi (Extended Asm): Fix typos.
29418 2015-02-10 Jakub Jelinek <jakub@redhat.com>
29421 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
29423 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
29426 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
29427 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
29428 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
29429 * config/sh/constraints.md (Ara, Add): New constraints.
29430 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
29432 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
29433 atomic_mem_operand_0. Don't use force_reg on the memory address.
29434 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
29435 Sra constraint. Convert to insn_and_split. Add workaround for
29437 (atomic_compare_and_swap<mode>_hard): Copy to
29438 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
29439 Use atomic_mem_operand_0 predicate.
29440 (atomic_compare_and_swap<mode>_soft_gusa,
29441 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
29442 AraAdd constraints.
29443 (atomic_compare_and_swap<mode>_soft_tcb,
29444 atomic_compare_and_swap<mode>_soft_imask,
29445 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
29446 atomic_mem_operand_0 predicate and SraSdd constraints.
29447 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
29449 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
29450 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
29451 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
29452 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
29453 force_reg on the memory address.
29454 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
29455 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
29456 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
29457 atomic_mem_operand_1 predicate and Sra constraint.
29458 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
29459 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
29460 Use atomic_mem_operand_1 predicate.
29461 (atomic_<fetchop_name><mode>_hard): Copy to
29462 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
29463 Use atomic_mem_operand_1 predicate.
29464 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
29465 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
29466 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
29467 insn_and_split. Use atomic_mem_operand_1 predicate.
29468 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
29469 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
29470 Use atomic_mem_operand_1 predicate.
29471 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
29472 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
29473 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
29474 in generated insn with original mem operand before emitting the insn.
29475 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
29476 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
29477 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
29478 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
29479 Use atomic_mem_operand_1 predicate and AraAdd constraints.
29480 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
29481 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
29482 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
29483 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
29484 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
29485 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
29486 atomic_not_fetch<mode>_soft_tcb,
29487 atomic_<fetchop_name>_fetch<mode>_soft_imask,
29488 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
29489 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
29490 Use atomic_mem_operand_1 predicate and SraSdd constraints.
29492 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
29494 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
29495 and 3 earlyclobber operands.
29497 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
29499 * common.opt (fstack-reuse): Mark as optimization.
29501 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
29504 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
29506 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
29508 PR tree-optimization/64326
29509 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
29511 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
29513 PR gcov-profile/61889
29514 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
29516 2015-02-10 Richard Biener <rguenther@suse.de>
29518 PR tree-optimization/64995
29519 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
29520 value we use is final.
29521 (visit_reference_op_store): Always valueize op.
29522 (visit_use): Properly valueize vuses.
29524 2015-02-10 Richard Biener <rguenther@suse.de>
29526 PR tree-optimization/64909
29527 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
29528 pass a scalar-stmt count estimate to the cost model.
29529 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
29531 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
29533 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
29534 enabled by default together with var-tracking.
29536 2015-02-10 Nick Clifton <nickc@redhat.com>
29538 * config/rl78/rl78.c: Remove DIV attribute code accidentally
29539 included in previous rl78 commit.
29541 2015-02-10 Richard Biener <rguenther@suse.de>
29543 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
29544 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
29545 return the bitpack.
29547 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
29549 PR gcov-profile/61889
29550 * config.in: regenerate.
29551 * configure.in: Likewise.
29552 * configure.ac: Check for ftw.h.
29553 * gcov-tool.c: Check for ftw.h before using nftw.
29555 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
29558 * ipa-visibility.c (update_visibility_by_resolution_info): Only
29559 assert when not in lto mode.
29561 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
29563 * ira-color.c (setup_left_conflict_sizes_p): Simplify
29564 initialization/assignment of conflict_size.
29566 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
29569 * ipa-cp.c (gather_caller_stats): Skip thunks.
29570 (propagate_constants_topo): Skip aliases.
29572 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
29575 * config/sh/sh.c (sh_option_override): Don't change
29576 -freorder-blocks-and-partition to -freorder-blocks even when
29577 unwinding is enabled.
29578 (sh_can_follow_jump): Return false if the followee jump is
29579 a crossing jump when -freorder-blocks-and-partition is specified.
29580 * config/sh/sh.md (*jump_compact_crossing): New insn.
29582 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
29583 Kaz Kojima <kkojima@gcc.gnu.org>
29586 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
29587 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
29588 (sh_can_redirect_branch): Rename to ...
29589 (sh_can_follow_jump): ... this. Constify argument types.
29590 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
29591 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
29592 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
29593 * doc/tm.texi: Regenerate.
29595 2015-02-09 Jakub Jelinek <jakub@redhat.com>
29598 * builtins.c (expand_builtin): Call targetm.expand_builtin
29599 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
29601 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29604 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
29606 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29609 * ipa-icf.c (set_local): New function.
29610 (sem_function::merge): Use it.
29612 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29614 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
29615 (add_type_duplicate): Fix comparison of BINFOs.
29617 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29619 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
29620 on getting VOID pointer.
29622 2015-02-09 Jakub Jelinek <jakub@redhat.com>
29625 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
29628 2015-02-09 Richard Biener <rguenther@suse.de>
29630 * genmatch.c (replace_id): Copy expr_type.
29632 2015-02-09 Richard Biener <rguenther@suse.de>
29634 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
29635 (streamer_write_tree_bitfields): Declare.
29636 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
29637 properly unpack padding.
29638 (unpack_value_fields): Inline ...
29639 (streamer_read_tree_bitfields): ... here.
29640 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
29641 and properly add padding bits.
29642 (streamer_pack_tree_bitfields): Fold into ...
29643 (streamer_write_tree_bitfields): ... this new function,
29644 exposing the bitpack object.
29645 * lto-streamer-out.c (lto_write_tree_1): Call
29646 streamer_write_tree_bitfields.
29648 2015-02-09 Richard Biener <rguenther@suse.de>
29650 PR tree-optimization/54000
29651 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
29652 (struct ivopts_data): Add loop_loc member.
29653 (tree_ssa_iv_optimize_loop): Dump loop location.
29654 (create_new_ivs): Likewise, also dump number of IVs generated.
29656 2015-02-09 Martin Liska <mliska@suse.cz>
29658 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
29659 just if not yet registered.
29660 (ipa_icf_generate_summary): Register callgraph hooks.
29662 2015-02-08 Andrew Pinski <apinski@cavium.com>
29664 * config/aarch64/aarch64.c (gty_dummy): Delete.
29666 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29669 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
29670 (cgraph_node::local_p): Remove thunk related FIXME.
29672 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29675 * i386.c (ix86_function_regparm): Look through aliases to see if callee
29676 is local and optimized.
29677 (ix86_function_sseregparm): Likewise; also use target's SSE math
29678 settings; error out instead of silently generating wrong code
29680 (init_cumulative_args): Look through aliases.
29682 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29685 * ipa-split.c (execute_split_functions): Split if function has aliases.
29687 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
29690 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
29691 aliases before trying to expand it.
29692 (cgraph_node::expand_thunk): Fix formating.
29694 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
29696 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
29697 (Using Assembly Language with C): Expand introduction.
29698 (Basic Asm): Copy-edit. Add more information about uses of
29700 (Extended Asm): Copy-edit. Document new escape syntax and
29702 (Global Reg Vars): Copy-edit.
29703 (Local Reg Vars): Likewise.
29705 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
29709 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
29710 (DBX_CONTIN_CHAR): Define.
29712 2015-02-06 Sebastian Pop <s.pop@samsung.com>
29713 Brian Rzycki <b.rzycki@samsung.com>
29715 PR tree-optimization/64878
29716 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
29717 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
29718 Stop recursion at loop phi nodes after having visited a loop phi node.
29720 2015-02-06 Jakub Jelinek <jakub@redhat.com>
29722 * toplev.c (process_options): Change flag_ipa_ra before creating
29723 optimization_{default,current}_node.
29726 * cgraphunit.c (cgraph_node::expand_thunk): If
29727 restype is not is_gimple_reg_type nor the thunk_fndecl
29728 returns aggregate_value_p, set restmp to a temporary variable
29729 instead of resdecl.
29731 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
29733 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
29735 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29738 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
29739 add a general secondary reload handler for SDmode, unless we have
29740 both read/write support for SDmode.
29742 2015-02-06 Jakub Jelinek <jakub@redhat.com>
29744 PR middle-end/64937
29745 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
29746 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
29747 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
29748 1 before, push it to abstract_vec.
29749 (dwarf2out_abstract_function): Adjust caller. Don't call
29750 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
29751 DECL_ABSTRACT_P flags for all abstract_vec elts.
29753 2015-02-06 Renlin Li <renlin.li@arm.com>
29755 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
29757 * tree-ssa.c (execute_update_addresses_taken): Likewise.
29759 2015-02-06 Jeff Law <law@redhat.com>
29762 * config/h8300/h8300.c (push): New argument "in_prologue".
29763 Pass "in_prologue" along to "F".
29764 (h8300_push_pop): Corresponding changes.
29765 (h8300_expand_prologue): Likewise.
29766 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
29768 2015-02-06 Jakub Jelinek <jakub@redhat.com>
29770 PR rtl-optimization/64957
29772 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
29773 IOR rather than for AND.
29775 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
29778 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
29779 of shift-add and (add + shift) operations. Rename local variable.
29781 2015-02-05 Jeff Law <law@redhat.com>
29784 * config/h8300/constraints.md (U): Correctly dectect
29785 "eightbit_data" memory addresses.
29786 * config/h8300/h8300.c (eightbit_constant_address_p): Also
29787 handle (const (plus (symbol_ref (x)))) where x is declared
29788 as an 8-bit data memory address.
29789 * config/h8300/h8300.md (call, call_value): Correctly detect
29790 "funcvec" functions.
29793 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
29794 24 to 28 bits for the H8/300.
29796 2015-02-06 Alan Modra <amodra@gmail.com>
29799 * config/rs6000/rs6000.c (chain_already_loaded): New function.
29800 (rs6000_call_aix): Use it.
29802 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
29804 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
29807 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
29809 * config/h8300/constraints.md ("U" constraint): Use strict
29810 variant of REG_OK_FOR_BASE_P after reload has started.
29812 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
29814 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
29815 define to zero if !TARGET_NEON.
29816 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
29818 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29819 Trevor Saunders <tsaunders@mozilla.com>
29822 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
29824 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29827 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
29828 when removing varpool nodes.
29830 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29833 * varpool.c (varpool_node::remove): Fix order of variables.
29835 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29838 * ipa-inline.c (inline_small_functions): Fix ordering issue between
29839 speculation resolution and key updates.
29841 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29843 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
29844 about not letting any speculative edges unupdated.
29846 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29849 * gcov-io.c (gcov_var): Export.
29851 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29853 PR middle-end/64922
29854 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
29855 edges that become speculative.
29857 2015-02-04 Jakub Jelinek <jakub@redhat.com>
29859 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
29860 or DW_LANG_Fortran08.
29861 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
29863 (gen_compile_unit_die): Handle "GNU Fortran2003" and
29864 "GNU Fortran2008" language strings.
29865 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
29866 * langhooks.h (lang_GNU_Fortran): New prototype.
29867 * langhooks.c (lang_GNU_Fortran): New function.
29868 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
29871 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
29873 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
29874 (RTX_OK_FOR_OLO10_P): Likewise.
29876 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
29878 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
29880 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
29882 PR middle-end/64922
29883 * gimple.c: Include gimple-ssa.h.
29884 (maybe_remove_unused_call_args): New function.
29885 * gimple.h (maybe_remove_unused_call_args): Declare.
29886 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
29887 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
29888 * gimple-fold.c (gimple_fold_call): Likewise.
29890 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
29892 PR rtl-optimization/64905
29893 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
29894 pointer alignment if it isn't needed.
29896 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
29898 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
29899 cortex-a72.cortex-a53.
29900 * config/aarch64/aarch64-tune.md: Regenerate.
29901 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
29903 2015-02-04 Nick Clifton <nickc@redhat.com>
29905 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
29908 2015-02-04 Jakub Jelinek <jakub@redhat.com>
29910 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
29911 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
29912 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
29914 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
29915 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
29916 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
29917 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
29918 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
29919 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
29920 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
29921 * tree-core.h (enum built_in_function): In between
29922 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
29923 for builtins that use DEF_BUILTIN_CHKP macro.
29925 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
29928 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
29929 operands for tcc_comparison exprs. Fix typos.
29932 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
29933 of two XORs that have an intervening AND or IOR.
29936 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
29937 simplification of XOR of AND to not allocate new rtx before
29938 committing to a simplification.
29940 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29942 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
29943 manual swaps in all peepholes.
29945 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29947 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
29948 of manual swapping implementation.
29949 (aarch64_expand_vec_perm_const_1): Likewise.
29951 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
29953 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
29954 (generic_addrcost_table): Remove NAMED_PARAM.
29955 (cortexa57_addrcost_table): Likewise.
29956 (xgene1_addrcost_table): Likewise.
29957 (generic_regmove_table): Likewise.
29958 (cortexa53_regmove_table): Likewise.
29959 (xgene1_regmove_table): Likewise.
29960 (generic_vector_table): Likewise.
29961 (cortexa57_vector_table): Likewise.
29962 (xgene1_vector_table): Likewise.
29963 (generic_tunings): Likewise.
29964 (cortexa53_tunings): Likewise.
29965 (cortexa57_tunings): Likewise.
29966 (xgene1_tunings): Likewise.
29968 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
29970 * config/arm/arm-cores.def: Add cortex-a72 and
29971 cortex-a72.cortex-a53.
29972 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
29973 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
29974 * config/arm/arm-tune.md: Regenerate.
29975 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
29976 "cortex-a72.cortex-a53".
29977 * doc/invoke.texi (ARM Options/-mtune): Likewise.
29979 2015-02-04 Nick Clifton <nickc@redhat.com>
29982 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
29984 (nonimmediate_di_operand): Likewise.
29986 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
29987 prefixes of known F5 using MSP430 MCUs.
29989 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29991 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
29992 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
29993 instead of __builtin_sqrt.
29995 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
29997 * varasm.c (do_assemble_alias): Follow transparent alias
29999 (default_assemble_visibility): Follow transparent alias
30000 chain for decl name.
30002 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
30004 PR middle-end/62103
30005 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
30006 to compute size of referenced value in the constant case.
30008 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30010 PR rtl-optimization/64756
30011 * cse.c (invalidate_dest): New function.
30012 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
30013 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
30014 invalidate and do not record it.
30016 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
30019 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
30020 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
30021 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
30022 atomic_nand<mode>_soft_tcb): New insns.
30023 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
30024 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
30025 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
30026 Split into atomic_not_fetchsi_hard if operands[0] is unused.
30027 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
30028 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30029 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
30030 atomic_not<mode>_hard if operands[0] is unused.
30031 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
30032 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
30033 if operands[0] is unused.
30034 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
30035 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
30036 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
30037 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30039 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
30040 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30041 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
30042 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
30043 if operands[0] is unused.
30044 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
30045 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
30046 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
30047 atomic_nand_fetchsi_hard if operands[0] is unused.
30048 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
30049 atomic_nand<mode>_hard if operands[0] is unused.
30050 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
30051 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
30052 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
30053 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30054 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
30055 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
30056 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
30057 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
30058 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
30059 atomic_not<mode>_hard if operands[0] is unused.
30060 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
30061 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
30063 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30064 into atomic_not<mode>_soft_tcb if operands[0] is unused.
30065 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
30066 atomic_nand<mode>_hard if operands[0] is unused.
30067 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
30068 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
30070 2015-02-03 David Malcolm <dmalcolm@redhat.com>
30073 * Makefile.in (GCC_OBJS): Add gcc-main.o.
30074 * gcc-main.c: New file, containing "main" taken from gcc.c.
30075 * gcc.c (do_self_spec): Free decoded_options.
30076 (class driver): Move declaration to gcc.h.
30077 (main): Move declaration and implementation to new file
30079 (driver_get_configure_time_options): New function.
30080 * gcc.h (class driver): Move this declaration here, from
30082 (driver_get_configure_time_options): New declaration.
30084 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
30086 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
30087 cross-module inlining.
30088 * cgraph.h (cgraph_node): Add flag merged.
30089 * ipa-icf.c (sem_function::merge): Maintain it.
30091 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
30093 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
30094 instead of OBJECT_P.
30096 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
30099 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
30100 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
30101 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
30102 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
30104 2015-02-03 Jakub Jelinek <jakub@redhat.com>
30107 * combine.c (reg_n_sets_max): New variable.
30108 (can_change_dest_mode, reg_nonzero_bits_for_combine,
30109 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
30110 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
30111 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
30112 (rest_of_handle_combine): Initialize reg_n_sets_max.
30114 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
30116 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
30117 if some always_inline was inlined, apply changes before inlining
30120 2015-02-02 David Malcolm <dmalcolm@redhat.com>
30123 * config/arm/arm.c (arm_option_override): Set
30124 arm_selected_arch/cpu/tune to NULL on entry.
30126 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
30127 Andrew Pinski <pinskia@gcc.gnu.org>
30128 Jakub Jelinek <jakub@gcc.gnu.org>
30131 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
30132 integer typing for small model. Use IN_RANGE.
30134 2015-02-02 Richard Biener <rguenther@suse.de>
30136 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
30137 * tree-vrp.c (vrp_valueize_1): Likewise.
30139 2015-02-02 Alan Modra <amodra@gmail.com>
30141 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
30142 than mem for toc_restore.
30143 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
30144 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
30145 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
30147 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
30150 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
30151 explicit default options.
30153 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
30156 * ipa-utils.c (ipa_merge_profiles): Add release argument.
30157 * ipa-icf.c (sem_function::merge): Do not release body when merging.
30158 * ipa-utils.h (ipa_merge_profiles): Update prototype.
30160 2015-02-01 Jakub Jelinek <jakub@redhat.com>
30163 * cfgexpand.c (deep_ter_debug_map): New variable.
30164 (avoid_deep_ter_for_debug): New function.
30165 (expand_debug_expr): If TERed SSA_NAME is in
30166 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
30167 instead of trying to expand SSA_NAME's def stmt.
30168 (expand_debug_locations): When expanding debug bind
30169 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
30170 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
30172 (pass_expand::execute): Call avoid_deep_ter_for_debug on
30173 all debug bind stmts. Delete deep_ter_debug_map after
30174 expand_debug_location if non-NULL and clear it.
30176 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
30179 * config/sh/sync.md (atomic_fetch_notsi_hard,
30180 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
30181 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
30182 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
30183 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
30184 atomic_not_fetch<mode>_soft_imask): New insns.
30186 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
30188 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
30189 (rank_for_schedule_debug): Split from ...
30190 (rank_for_schedule): ... this.
30191 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
30192 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
30194 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30196 * doc/md.texi (Machine Constraints): Alphabetize table by target.
30197 * doc/extend.texi (x86 Variable Attributes): Move section to
30198 correct alphabetization after renaming.
30199 (x86 Type Attributes): Likewise.
30200 (Target Builtins): Re-alphabetize menu.
30201 (x86 Built-in Functions): Move section to correct alphabetization
30203 (x86 transactional memory intrinsics): Likewise.
30204 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
30205 and x86 Windows Options in table and menu.
30206 (x86 Options): Move section to correct alphabetization after
30208 (x86 Windows Options): Likewise.
30210 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
30212 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
30213 preferred names of the architecture and its 32- and 64-bit
30215 * doc/invoke.texi: Likewise.
30216 * doc/md.texi: Likewise.
30218 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30221 * config/i386/predicates.md (address_no_seg_operand): Reject
30222 non-CONST_INT_P operands in invalid mode.
30224 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
30226 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
30227 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
30228 * config/i386/predicates.md (address_no_seg_operand): Call
30229 address_operand with VOIDmode.
30230 (vsib_address_operand): Ditto.
30231 (address_mpx_no_base_operand): Ditto.
30232 (address_mpx_no_index_operand): Ditto.
30234 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
30237 * lra-constraints.c (original_subreg_reg_mode): New.
30238 (simplify_operand_subreg): Try to simplify subreg of const. Use
30239 original_subreg_reg_mode for it.
30240 (swap_operands): Update original_subreg_reg_mode.
30241 (curr_insn_transform): Set up original_subreg_reg_mode.
30243 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
30246 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
30248 (process_alt_operands): Use it.
30249 (curr_insn_transform): Check the optional reload pseudo class is
30252 2015-01-30 Joseph Myers <joseph@codesourcery.com>
30254 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
30255 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
30257 * toplev.h (init_asm_output): Update comment on use of
30258 UNKNOWN_LOCATION with fatal_error.
30259 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
30260 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
30261 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
30262 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
30263 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
30264 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
30265 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
30266 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
30267 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
30268 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
30269 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
30270 fatal_error changed to pass input_location as first argument.
30272 2015-01-30 Martin Liska <mliska@suse.cz>
30274 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
30275 in #pragma GCC diagnostic guards.
30277 2015-01-30 Richard Biener <rguenther@suse.de>
30279 PR tree-optimization/64829
30280 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
30281 not add a widening conversion pattern but hand off extra
30282 widenings to callers.
30283 (vect_recog_widen_mult_pattern): Handle extra widening produced
30284 by vect_handle_widen_op_by_const.
30285 (vect_recog_widen_shift_pattern): Likewise.
30286 (vect_pattern_recog_1): Remove excess vertical space in dumping.
30287 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
30288 (vect_init_vector_1): Likewise.
30289 (vect_get_vec_def_for_operand): Likewise.
30290 (vect_finish_stmt_generation): Likewise.
30291 (vectorizable_load): Likewise.
30292 (vect_analyze_stmt): Likewise.
30293 (vect_is_simple_use): Likewise.
30295 2015-01-29 Jeff Law <law@redhat.com>
30297 * combine.c (try_combine): Fix typo in comment.
30299 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
30302 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
30303 (rs6000_stack_info): Add assert.
30304 (rs6000_output_savres_externs): New function, split off from...
30305 (rs6000_output_function_prologue): ... here. Do not call it for
30308 2015-01-29 Jeff Law <law@redhat.com>
30311 * combine.c (try_combine): If I0 is a memory load and I3 a store
30312 to a related address, increase the "goodness" of doing a 4-insn
30313 combination with I0-I3.
30314 (make_field_assignment): Handle SUBREGs in the ior+and case.
30316 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
30318 PR tree-optimization/64746
30319 * tree-if-conv.c (mask_exists): New function.
30320 (predicate_mem_writes): Save created mask with given size for further
30322 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
30323 (ifcvt_repair_bool_pattern): Collect all statements that are root
30324 of bool pattern and use iterative algorithm to remove multiple uses
30325 of predicates, display number of required iterations.
30327 2015-01-29 Richard Biener <rguenther@suse.de>
30329 PR tree-optimization/64853
30330 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
30331 stmt will get simulated again.
30332 * tree-ssa-ccp.c (valueize_op_1): Likewise.
30334 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30336 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
30337 return_in_pc. Remove redundant assignments.
30338 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
30339 (arm_expand_epilogue): Don't compare boolean with true in if condition.
30341 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
30343 * config/i386/i386.c (ix86_mode_after): Make static.
30345 2015-01-29 Richard Biener <rguenther@suse.de>
30347 PR tree-optimization/64844
30348 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
30349 dump cost model analysis.
30350 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
30351 Do not register adjusted load/store costs here.
30353 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
30354 Uros Bizjak <ubizjak@gmail.com>
30356 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
30357 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
30358 using x86_use_pseudo_pic_reg.
30359 * config/i386/i386.c (ix86_conditional_register_usage): Remove
30360 support for fixed PIC register.
30361 (ix86_use_pseudo_pic_reg): Not static any more.
30363 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
30365 PR middle-end/64805
30366 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
30367 to avoid error in cgraph node verification.
30369 2015-01-29 Marek Polacek <polacek@redhat.com>
30371 * doc/standards.texi: Reflect that the default for C is gnu11.
30373 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
30376 * reorg.c (switch_text_sections_between_p): New function.
30377 (relax_delay_slots): Call it when testing if the jump insn
30378 is removable. Use targetm.can_follow_jump when testing if
30379 the conditional branch can follow an unconditional jump.
30381 2015-01-27 Caroline Tice <cmtice@google.com>
30383 Committing VTV Cywin/Ming patch for Patrick Wollgast
30384 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
30385 if -fvtable-verify=preinit/std is used.
30386 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
30387 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
30388 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
30389 if -fvtable-verify=preinit/std is used.
30390 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
30391 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
30392 if -fvtable-verify=preinit/std is used.
30393 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
30394 * config/i386/mingw32.h (LIB_SPEC): Likewise.
30395 * varasm.c (assemble_variable): Add code to properly set the comdat
30396 section and name for the .vtable_map_vars section in case the
30397 target is PE or COFF.
30399 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
30402 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
30403 make sane BB profile.
30404 (cgraph_node::expand_thunk): Make sane BB profile.
30405 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
30406 * cgraph.h (init_lowered_empty_function): Update prototype.
30407 * config/i386/i386.c (make_resolver_func): Update call.
30408 * predict.c (gate): Disable branch prediction pass if
30409 profile is already there.
30411 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
30413 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
30414 * opth-gen.awk: Likewise.
30415 * common.opt: Mark flag_fp_contract_mode as Optimization.
30417 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
30419 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
30420 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
30422 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
30425 * config/sh/predicates.md (atomic_arith_operand,
30426 atomic_logical_operand): Remove.
30427 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
30428 (atomic_arith_operand_0): New predicate.
30429 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
30430 Use atomic_arith_operand_0 for input values.
30431 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
30432 atomic_compare_and_swap<mode>_soft_gusa,
30433 atomic_compare_and_swap<mode>_soft_tcb,
30434 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
30435 arith_reg_operand instead of register_operand.
30436 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
30437 atomic_arith_operand_0 for newval input.
30438 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
30439 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
30440 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
30441 arith_reg_operand instead of register_operand.
30442 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
30443 fetchop_predicate_1, fetchop_constraint_1_llcs,
30444 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
30445 fetchop_constraint_1_imask): New code iterator attributes.
30446 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
30447 register_operand. Use fetchop_predicate_1.
30448 (atomic_fetch_<fetchop_name>si_hard,
30449 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
30450 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
30451 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
30452 and arith_reg_operand instead of register_operand. Use
30453 fetchop_predicate_1, fetchop_constraint_1_gusa.
30454 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
30455 and arith_reg_operand instead of register_operand. Use
30456 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
30458 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
30459 and arith_reg_operand instead of register_operand. Use
30460 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
30462 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
30463 register_operand. Use atomic_logical_operand_1.
30464 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
30465 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
30466 arith_reg_operand instead of register_operand.
30467 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
30468 Use arith_reg_dest and arith_reg_operand instead of register_operand.
30469 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
30470 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
30471 register_operand. Use fetchop_predicate_1.
30472 (atomic_<fetchop_name>_fetchsi_hard,
30473 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
30474 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30475 fetchop_constraint_1_llcs.
30476 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
30477 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30478 fetchop_constraint_1_gusa.
30479 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
30480 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30481 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
30482 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
30483 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
30484 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
30485 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
30486 register_operand. Use atomic_logical_operand_1.
30487 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
30488 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
30489 arith_reg_operand instead of register_operand.
30490 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
30491 arith_reg_operand instead of register_operand. Use logical_operand
30492 and K08. Adjust asm sequence to allow R0 usage.
30493 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
30494 arith_reg_operand instead of register_operand. Use logical_operand
30497 2015-01-28 Jakub Jelinek <jakub@redhat.com>
30500 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
30501 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
30502 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
30503 only get_full_len HOST_WIDE_INTs from get_val () array rather than
30504 all bits in *val_wide.
30506 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
30508 * varpool.c (tls_model_names): Fix names.
30509 (varpool_node::dump): Dump tls- prefix for tls models.
30511 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
30512 Bernd Schmidt <bernds@codesourcery.com>
30513 Nathan Sidwell <nathan@codesourcery.com>
30515 * config/nvptx/mkoffload.c: New file.
30516 * config/nvptx/t-nvptx: Add build rules for it.
30517 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
30518 (extra_programs): Add mkoffload.
30519 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
30521 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
30523 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
30525 PR middle-end/64809
30526 * cfgexpand.c (reorder_operands): Skip debug gimples.
30528 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
30530 PR tree-optimization/64277
30531 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
30532 range info when possible to refine estimation.
30534 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30536 PR tree-optimization/64718
30537 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
30538 be a 16bit unsigned integer when n->range is 16.
30539 (bswap_replace): Convert src to that type if necessary for all bswap
30540 sizes. Fix rotation right notation in nearby comment. Use bswap_type
30541 set in pass_optimize_bswap::execute ().
30543 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
30545 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
30546 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
30547 integer and floating point variants.
30548 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
30550 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
30552 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
30553 for all vector modes.
30555 2015-01-28 Jakub Jelinek <jakub@redhat.com>
30558 * doc/sourcebuild.texi (comdat_group): Document.
30560 2015-01-28 Terry Guo <terry.guo@arm.com>
30562 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
30564 2015-01-27 David Malcolm <dmalcolm@redhat.com>
30566 * toplev.c (print_version): Add param "show_global_state", and
30567 only print GGC and plugin information if it is true.
30568 (init_asm_output): Pass in "true" for the new param when calling
30570 (process_options): Likewise.
30571 (toplev::main): Likewise.
30572 * toplev.h (print_version): Add new param to decl.
30574 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
30578 * tree.c (lookup_binfo_at_offset): New function.
30579 (get_binfo_at_offset): Use it.
30581 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
30584 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
30585 on vtable being vtable.
30587 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
30589 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
30590 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
30591 -mhotpatch= option.
30592 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
30593 -mno-hotpatch options. Change syntax of -mhotpatch= option.
30594 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
30596 (s390_hotpatch_trampoline_halfwords_max): Renamed.
30597 (s390_hotpatch_hw_max): New name.
30598 (s390_hotpatch_trampoline_halfwords): Renamed.
30599 (s390_hotpatch_hw_before_label): New name.
30600 (get_hotpatch_attribute): Removed.
30601 (s390_hotpatch_hw_after_label): New name.
30602 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
30604 (s390_attribute_table): Ditto.
30605 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
30606 (s390_function_num_hotpatch_hw): New name.
30607 Remove special handling of inline functions and hotpatching.
30608 Return number of nops before and after the function label.
30609 (s390_can_inline_p): Removed.
30610 (s390_asm_output_function_label): Emit a configurable number of nops
30611 after the function label.
30612 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
30613 (TARGET_CAN_INLINE_P) Removed.
30614 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
30616 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30617 Jiong Wang <jiong.wang@arm.com>
30619 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
30621 (cb<optab><mode>1): Likewise.
30622 * config/aarch64/iterators.md (bcond): New define_code_attr.
30624 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30626 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
30629 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30631 * config/s390/s390.c (s390_register_move_cost): Increase costs for
30634 2015-01-27 Richard Biener <rguenther@suse.de>
30636 * tree-vrp.c (update_value_range): Intersect the range with
30637 old recorded SSA name range information.
30639 2015-01-27 Nick Clifton <nickc@redhat.com>
30641 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
30642 BC, DE and HL registers directly, not via AX.
30643 When decrementing the stack pointer by a large amount, transfer SP
30644 into AX and perform the subtraction there.
30645 (rl78_expand_epilogue): Perform the inverse of the above
30648 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
30650 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
30652 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30653 Yury Gribov <y.gribov@samsung.com>
30656 * ubsan.c (ubsan_source_location): Refactor code.
30657 (ubsan_type_descriptor): Update type size. Refactor code.
30659 2015-01-27 Richard Biener <rguenther@suse.de>
30661 PR tree-optimization/56273
30662 PR tree-optimization/59124
30663 PR tree-optimization/64277
30664 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
30665 from the first VRP pass.
30667 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30670 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
30671 handle the first argument in the same loop as all the other arguments.
30673 PR rtl-optimization/61058
30674 * jump.c (cleanup_barriers): Update basic block boundaries
30675 if BLOCK_FOR_INSN is non-NULL on PREV.
30677 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
30679 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
30680 bounds narrowing, already instrumented calls and calls to
30681 not instrumentable functions.
30683 2015-01-27 Jakub Jelinek <jakub@redhat.com>
30685 PR tree-optimization/64807
30686 * wide-int.cc (wi::divmod_internal): Clear
30687 b_dividend[dividend_blocks_needed].
30689 2015-01-26 DJ Delorie <dj@redhat.com>
30691 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
30692 volatile memory references.
30694 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
30697 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
30699 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
30700 shifts if it already fits into K08.
30702 2015-01-26 Jakub Jelinek <jakub@redhat.com>
30705 * ipa-inline.c (inline_small_functions): Print "unknown" even
30706 if edge->call_stmt is non-NULL, but has builtins or unknown
30709 PR middle-end/64421
30710 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
30711 with asterisk, skip the first character.
30713 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
30716 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
30719 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
30722 * config/i386/i386.md (*movdi_internal): Also check operand 0
30723 to determine TYPE_LEA operand.
30724 (*movsi_internal): Ditto.
30726 2015-01-26 Jakub Jelinek <jakub@redhat.com>
30728 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
30729 OPTION_MASK_QUAD_MEMORY_ATOMIC.
30731 2015-01-26 Renlin Li <renlin.li@arm.com>
30733 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
30735 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
30738 2015-01-26 Richard Biener <rguenther@suse.de>
30740 PR middle-end/64764
30741 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
30742 combining two BIT_AND_EXPR predicates.
30744 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
30747 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
30749 2015-01-26 Terry Guo <terry.guo@arm.com>
30751 * config/arm/arm.c (arm_file_start): Update the assignment of
30752 Tag_ABI_HardFP_use.
30754 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
30756 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
30758 config/arm/arm.md: Include the new Cortex-A57 model.
30759 (generic_sched): Don't use generic_sched when tuning for
30762 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
30763 Uros Bizjak <ubizjak@gmail.com>
30765 * config/i386/i386.c (get_builtin_code_for_version): Add
30766 support for BMI and BMI2 multiversion functions.
30768 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
30770 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
30771 (extract_bit_field): Likewise.
30772 (extract_low_bits): Likewise.
30773 (expand_mult): Likewise.
30774 (expand_mult_highpart_adjust): Likewise.
30776 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
30778 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
30779 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
30780 * config/i386/i386.c (processor_model): Add
30781 M_INTEL_COREI7_BROADWELL.
30782 (arch_names_table): Add "broadwell".
30784 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
30793 * config/sh/sh-protos.h
30794 (sh_extending_set_of_reg::can_use_as_unextended_reg,
30795 sh_extending_set_of_reg::use_as_unextended_reg,
30796 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
30797 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
30798 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
30799 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
30800 (sh_treg_insns): New class.
30801 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
30802 (scope_counter): New class.
30803 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
30804 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
30805 sh_extending_set_of_reg::can_use_as_unextended_reg,
30806 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
30807 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
30808 sh_split_treg_set_expr): New functions.
30809 (addsubcosts): Handle treg_set_expr.
30810 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
30811 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
30812 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
30813 (sh_insn_operands_modified_between_p): Make non-static.
30814 * config/sh/predicates.md (zero_extend_movu_operand): Allow
30815 simple_mem_operand in addition to displacement_mem_operand.
30816 (zero_extend_operand): Don't allow zero_extend_movu_operand.
30817 (treg_set_expr, treg_set_expr_not_const01,
30818 arith_reg_or_treg_set_expr): New predicates.
30819 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
30820 arith_or_int_operand instead of logical_operand. Convert to
30821 insn_and_split. Try to optimize constant operand in splitter.
30822 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
30823 (*tstqi_t_zero): Delete.
30824 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
30825 (tstsi_t_and_not): Delete.
30826 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
30827 Convert to insn_and_split.
30828 (unnamed split, tstsi_t_zero_extract_xor,
30829 tstsi_t_zero_extract_subreg_xor_little,
30830 tstsi_t_zero_extract_subreg_xor_big): Delete.
30831 (*tstsi_t_shift_mask): New insn_and_split.
30832 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
30833 to recombine with surrounding insns when splitting.
30834 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
30835 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
30836 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
30837 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
30838 (*cbranch_div0s: Delete.
30839 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
30840 Try to recombine with surrounding insns when splitting. Add operand
30842 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
30843 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
30844 *addc_r_r_msb, *addc_2r_msb): Delete.
30845 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
30847 (*addc_negreg_t): New insn_and_split.
30848 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
30849 Try to recombine with surrounding insns when splitting.
30850 Add operand order variants.
30851 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
30852 insn_and_split patterns.
30853 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
30854 surrounding insns when splitting.
30855 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
30856 (*rotcl): Likewise. Add zero_extract variant.
30857 (*ashrsi2_31): New insn_and_split.
30858 (*negc): Convert to insn_and_split. Use treg_set_expr.
30859 (*zero_extend<mode>si2_disp_mem): Update comment.
30860 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
30862 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
30863 with surrounding insns when splitting.
30864 (any_treg_expr_to_reg): New insn_and_split.
30865 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
30866 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
30867 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
30868 *zero_extract_2): New single bit zero extract patterns.
30869 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
30870 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
30871 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
30872 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
30874 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
30875 register_operand for set source.
30877 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
30879 * i386.opt (prefetch_sse): New targetsave.
30880 * i386.c (ix86_function_specific_save): Save prefetch_sse.
30881 (ix86_function_specific_restore): Restore prefetch_sse and initialize
30882 ix86_cost/ix86_tune_cost.
30884 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30886 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
30887 Support the JIT by using 0 as the language type.
30889 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
30892 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
30893 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
30894 (mark_regno_live, process_bb_lives): Pass new parameter value to
30895 make_hard_regno_born.
30897 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30899 PR rtl-optimization/63637
30900 PR rtl-optimization/60663
30901 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
30902 if elt->cost is MAX_COST for ASM_OPERANDS.
30903 (find_sets_in_insn): Fix up comment typo.
30904 (cse_insn): Don't set src_volatile for all non-volatile
30905 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
30906 or with "memory" clobber. Set elt->cost to MAX_COST
30907 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
30908 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
30910 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
30912 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
30915 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
30917 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
30918 libgcc/config/i386/elf-lib.h.
30920 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30923 * gcc.c (print_configuration): Don't print a blank line at the end
30925 (run_attempt): ... but here unstead.
30927 PR middle-end/64734
30928 * omp-low.c (scan_sharing_clauses): Don't ignore
30929 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
30930 on target data/update constructs.
30932 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
30935 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
30936 (DEBUG_RELOAD): Removed define.
30937 (m32c_limit_reload_class): Enable traces with if DEBUG0.
30938 (m32c_function_arg): Added a type cast.
30939 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
30940 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
30941 * config/m32c/bitops.md (andqi3_16): Likewise.
30942 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
30943 (push_a01_l): Likewise.
30945 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30948 * main.c (main): Construct toplev instances with init_signals=true.
30949 * toplev.c (general_init): Add param "init_signals", and use it to
30950 conditionalize the calls to signal and host_hooks.extra_signals.
30951 (toplev::toplev): Add param "init_signals".
30952 (toplev::main): When invoking general_init, pass m_init_signals
30953 to control whether signal-handlers are installed.
30954 * toplev.h (toplev::toplev): Add param "init_signals".
30955 (toplev::m_init_signals): New field.
30957 2015-01-23 David Malcolm <dmalcolm@redhat.com>
30960 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
30961 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
30962 latter may be affected by the former (e.g. on i686).
30964 2015-01-23 Martin Liska <mliska@suse.cz>
30966 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
30967 false positive during profiledbootstrap.
30969 2015-01-23 Tom de Vries <tom@codesourcery.com>
30972 * lto-opts.c (lto_write_options): Output non-explicit conservative
30974 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
30975 (append_compiler_options): Pass -fopenacc through.
30977 2015-01-23 Tom de Vries <tom@codesourcery.com>
30980 * lto-opts.c (lto_write_options): Output non-explicit conservative
30982 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
30983 (append_compiler_options): Pass -fopenmp through.
30985 2015-01-23 Jakub Jelinek <jakub@redhat.com>
30988 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
30991 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
30992 * diagnostic.def (DK_ICE_NOBT): New kind.
30993 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
30994 like DK_ICE, but never print backtrace.
30995 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
30996 (internal_error_no_backtrace): New function.
30997 * gcc.c (execute): Use internal_error_no_backtrace instead of
31000 2015-01-22 Jeff Law <law@redhat.com>
31003 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
31004 improve code density for small immediate to memory case.
31005 (insv): Better handle bitfield assignments when the field is
31006 being set to all ones.
31007 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
31010 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31011 Jakub Jelinek <jakub@redhat.com>
31013 PR middle-end/64729
31014 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
31015 for !TARGET_LIBC_PROVIDES_SSP version and
31016 -fstack-protector-{all,strong,explicit} otherwise.
31017 * config/freebsd.h (LINK_SSP_SPEC): Handle
31018 -fstack-protector-{strong,explicit}.
31020 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
31021 H.J. Lu <hongjiu.lu@intel.com>
31024 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
31027 2015-01-22 Wei Mi <wmi@google.com>
31029 PR rtl-optimization/64557
31030 * dse.c (record_store): Call get_addr for mem_addr.
31031 (check_mem_read_rtx): Likewise.
31033 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
31035 * fold-const.c (const_binop): Add early return for non-tcc_binary.
31037 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
31039 * toplev.c (init_local_tick): Process the failure when read
31040 fails for random_seed.
31042 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
31043 'pretty_name' to avoid memory overflow.
31045 2015-01-22 Richard Biener <rguenther@suse.de>
31047 PR middle-end/64728
31048 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
31049 abnormal coalescing on undefined SSA names.
31051 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
31055 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
31057 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
31059 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
31061 PR middle-end/63325
31062 * fold-const.c (fold_checksum_tree): Don't include value of
31063 expr->decl_with_vis.symtab_node in the checksum.
31065 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31067 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
31069 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
31072 * gcc.c (insert_comments): New function.
31073 (try_generate_repro): Call it.
31074 (append_text): Removed.
31076 2015-01-22 Richard Biener <rguenther@suse.de>
31078 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
31079 with IL incompatible options. Properly honor user optimize
31082 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
31084 PR rtl-optimization/64682
31085 * combine.c (distribute_notes): When moving a death note for
31086 a register that is set in the new I2, make sure to put it
31087 before that new I2.
31089 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
31091 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
31092 not TARGET_DEFAULT.
31094 2015-01-21 Jakub Jelinek <jakub@redhat.com>
31097 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
31098 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
31099 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
31102 * doc/invoke.texi (-fsanitize=vptr): Document.
31104 PR rtl-optimization/62078
31105 * dse.c: Include cfgcleanup.h.
31106 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
31107 anything call purge_all_dead_edges and cleanup_cfg at the end
31110 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
31112 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
31115 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
31117 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
31120 2015-01-21 David Sherwood <david.sherwood@arm.com>
31121 Tejas Belagod <Tejas.Belagod@arm.com>
31123 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
31124 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
31125 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
31128 2015-01-21 David Sherwood <david.sherwood@arm.com>
31129 Tejas Belagod <Tejas.Belagod@arm.com>
31131 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
31132 (aarch64_reverse_mask): New decls.
31133 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
31134 (insn_count): New mode_attr.
31135 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
31136 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
31137 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
31138 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
31139 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
31140 (aarch64_simd_st4): New patterns.
31141 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
31142 (aarch64_reverse_mask): New functions.
31144 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31146 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
31148 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
31149 addressing modes for BE.
31150 (aarch64_print_operand): Add 'R' specifier.
31151 (aarch64_simd_disambiguate_copy): Delete.
31152 (aarch64_simd_emit_reg_reg_move): New function.
31153 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
31154 in define_splits for structural moves.
31155 (mov<mode>): Use less restrictive predicates.
31156 (*aarch64_mov<mode>): Simplify and only allow for LE.
31157 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
31159 2015-01-21 Alan Hayward <alan.hayward@arm.com>
31161 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
31163 2015-01-21 Richard Henderson <rth@redhat.com>
31166 * ccmp.c (used_in_cond_stmt_p): Remove.
31167 (expand_ccmp_expr): Don't use it.
31169 2015-01-21 Nick Clifton <nickc@redhat.com>
31171 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
31174 2015-01-21 Richard Biener <rguenther@suse.de>
31176 PR middle-end/64313
31177 * tree-core.h (builtin_info, builtin_info_type): Turn from
31178 an object with two arrays into an array of an object with
31179 decl and two flags, implicit_p and declared_p.
31180 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
31181 set_builtin_decl, set_builtin_decl_implicit_p,
31182 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
31183 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
31184 * builtins.c (builtin_info): Adjust.
31185 * gimplify.c (gimplify_addr_expr): References to builtins
31186 that have been declared by the user makes them eligible for
31187 use by the compiler. Call set_builtin_decl_implicit_p on them.
31189 2015-01-20 Jeff Law <law@redhat.com>
31192 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
31193 allow pc-relative addresses in operand predicates or constraints.
31195 2015-01-21 Bin Cheng <bin.cheng@arm.com>
31197 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
31198 neon on aarch32 processors for stringops.
31200 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31203 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
31205 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31208 * ipa-inline.c: Include lto-streamer.h
31209 (report_inline_failed_reason): Output source file differences and
31210 flags on optimization/target node mismatch.
31211 (can_inline_edge_p): Consider caller to be the outer inline function;
31212 be less restrictive about matching opimize and optimize_size attributes.
31213 (inline_account_function_p): Break out from ...
31214 (inline_small_functions): ... here.
31215 * ipa-inline-transform.c (clone_inlined_nodes): Use
31216 inline_account_function_p.
31217 (inline_call): Use optimize attribution; use inline_account_function_p.
31218 (inline_transform): Use opt_for_fn.
31219 * ipa-inline.h (inline_account_function_p): Declare.
31221 2015-01-20 Jakub Jelinek <jakub@redhat.com>
31224 * dwarf2out.c (decl_piece_node): Don't put bitsize into
31225 mode if bitsize <= 0.
31226 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
31227 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
31228 sizes and positions.
31230 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
31232 * config/nios2/nios2.c (nios2_asm_file_end): Implement
31233 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
31235 (TARGET_ASM_FILE_END): Define.
31237 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31239 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
31240 (struct tune_params): Use the enum.
31241 * arm.c (arm_*_tune): Update.
31242 (arm_option_override): Update.
31244 2015-01-20 Richard Biener <rguenther@suse.de>
31247 * ipa-reference.c (add_static_var): Inline ...
31248 (analyze_function): ... here after splitting out from ...
31249 (is_proper_for_analysis): ... this.
31251 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
31254 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
31255 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
31256 replace the conditional with it's true branch.
31257 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
31258 (arm_lra_p): Remove.
31260 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
31262 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
31264 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31266 * config/tilegx/mul-tables.c: Move symtab.h include after
31267 coretypes.h include.
31268 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
31269 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
31270 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
31271 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
31272 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
31274 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
31278 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
31280 PR rtl-optimization/64081
31281 * loop-iv.c (def_pred_latch_p): New function.
31282 (latch_dominating_def): Allow specific cases with non-single
31284 (iv_get_reaching_def): Likewise.
31285 (check_complex_exit_p): New function.
31286 (check_simple_exit): Use check_complex_exit_p to allow certain cases
31287 with exits not executing on any iteration.
31289 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31292 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
31293 to set branch cost.
31295 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31298 * i386.c (gate): Check flag_expensive_optimizations and
31300 (ix86_option_override_internal): Drop optimize_size condition
31301 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
31302 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
31303 MASK_PREFER_AVX128.
31304 (ix86_avx256_split_vector_move_misalign,
31305 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
31306 * sse.md (all uses of TARGET_PREFER_AVX128): Add
31307 optimize_insn_for_speed_p check.
31309 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
31311 * config/mips/mips.h (FP_ASM_SPEC): New define.
31312 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
31315 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
31318 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
31319 nullptr for insn when reaching the first insn.
31320 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
31321 (sh_insn_operands_modified_between_p): Add nullptr check.
31322 (sh_find_extending_set_of_reg): Fix log message. Don't accept
31323 sign extending mem load if the insn contains any UNSPEC or
31326 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31328 * params.def (inline-unit-growth): Drop to 15%.
31329 * invoke.texi (inline-unit-growth): Document change.
31331 2015-01-19 Martin Liska <mliska@suse.cz>
31334 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
31335 function for second argument of OBJ_TYPE_REF.
31337 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31340 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
31341 whether function is an alias.
31343 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
31345 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
31348 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
31350 PR rtl-optimization/64671
31351 * lra-remat.c (operand_to_remat): Don't consider jump and call
31354 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
31357 * config/rs6000/default64.h: Include rs6000-cpus.def.
31358 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
31359 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
31360 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
31362 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
31364 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
31365 pseudo-op to specify assembler dialect.
31367 2015-01-19 Martin Liska <mliska@suse.cz>
31370 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
31371 Handle safe potentially removed nodes during filtering.
31373 2015-01-19 Martin Liska <mliska@suse.cz>
31375 * doc/extend.texi (no_icf): Add new attribute description.
31376 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
31377 where the pass attempts to merge a function with no_icf attribute.
31379 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31382 * doc/md.texi (ARM Options): Document register constraints.
31384 2015-01-19 Jiong Wang <jiong.wang@arm.com>
31385 Andrew Pinski <apinski@cavium.com>
31388 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
31389 (ashl<mode>3): Don't expand if operands[2] is not constant.
31391 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31394 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
31395 Match xor-and-xor RTL pattern.
31397 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
31399 PR rtl-optimization/64081
31400 * loop-iv.c (def_pred_latch_p): New function.
31401 (latch_dominating_def): Allow specific cases with non-single
31403 (iv_get_reaching_def): Likewise.
31404 (check_complex_exit_p): New function.
31405 (check_simple_exit): Use check_complex_exit_p to allow certain cases
31406 with exits not executing on any iteration.
31408 2015-01-19 Jakub Jelinek <jakub@redhat.com>
31410 * common.opt (fgraphite): Fix a typo.
31412 2015-01-19 Felix Yang <felix.yang@huawei.com>
31414 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
31416 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
31417 uminp, smax_nanp, smin_nanp): New builtins.
31418 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
31419 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
31420 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
31421 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
31422 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
31423 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
31424 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
31425 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
31426 vpminnms_f32): Rewrite using builtin functions.
31428 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
31431 * omp-low.c (offload_symbol_decl): Remove variable.
31432 (get_offload_symbol_decl): Remove function.
31433 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
31434 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
31435 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
31436 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
31437 BUILT_IN_GOACC_UPDATE don't pass it at all.
31439 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
31441 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
31444 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
31446 * ipa-chkp.c (chkp_produce_thunks): Add early param
31447 to split thunks production into two passes. Keep
31448 'always_inline' function bodies after the first pass.
31449 (pass_data_ipa_chkp_early_produce_thunks): New.
31450 (pass_ipa_chkp_early_produce_thunks): New.
31451 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
31452 chkp_produce_thunks signature.
31453 (make_pass_ipa_chkp_early_produce_thunks): New.
31454 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
31455 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
31456 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
31458 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
31460 * cgraph.c (cgraph_node::dump): Dump profile flags.
31462 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
31465 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
31466 reg appear first in the parallel.
31468 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
31470 * ipa-reference.c (set_reference_optimization_summary,
31471 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
31473 (ignore_module_statics): New static var.
31474 (propagate_bits): If ipa-reference is disabled, do not look into local
31476 (analyze_function): Disable analysis when ipa_reference is disabled.
31477 (generate_summary): Do not dump when reference is disabled;
31478 collect vars accessed from functions with ipa-reference disabled.
31479 (get_read_write_all_from_node): When ipa-reference is disabled, use the
31481 (gate): Enable for LTO.
31482 (ignore_edge_p): New function.
31483 (propagate): Skip functions w/o ipa-reference analysis.
31484 * optc-save-gen.awk: Handle optimize_debug correctly.
31485 * opth-gen.awk: Likewise.
31486 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
31487 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
31488 fira-share-save-slots, fira-share-spill-slots,
31489 fmodulo-sched-allow-regmoves, fpartial-inlining,
31490 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
31491 ftracer, ftree-parallelize-loops, fassociative-math,
31492 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
31494 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
31495 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
31497 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
31500 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
31503 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
31505 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
31507 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
31509 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
31510 Remove duplicate option listings.
31512 2015-01-18 Felix Yang <felix.yang@huawei.com>
31514 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
31515 (autofdo_source_profile::get_callsite_total_count,
31516 function_instance::get_function_instance_by_decl,
31517 string_table::get_index, string_table::get_index_by_decl,
31518 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
31519 Fix comment typos. Reformatting and minor code rearrangement.
31521 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
31523 * config/rs6000/rs6000.md (probe_stack): Delete.
31524 (probe_stack_address): New.
31526 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
31528 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
31529 to test for 32-bit ABIs, not !TARGET_POWERPC64.
31531 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
31533 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
31534 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
31535 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
31537 (rs6000_libcall_value): Use the new function.
31539 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
31541 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
31543 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
31545 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
31546 implement a more precise life analysis for it during backward scan.
31548 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
31550 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
31552 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
31554 PR rtl-optimization/52773
31555 * calls.c (emit_library_call_value): When pushing arguments use
31556 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
31557 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
31558 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
31560 2015-01-17 Jeff Law <law@redhat.com>
31562 PR rtl-optimization/32790
31563 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
31564 not ZERO_EXTEND in SET_DESTs.
31566 2015-01-17 Alan Modra <amodra@gmail.com>
31568 * cprop.c (do_local_cprop): Revert last change.
31570 2015-01-16 DJ Delorie <dj@redhat.com>
31571 Nick Clifton <nickc@redhat.com>
31573 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
31574 (addhi3_real): Likewise. Fix [HL+0] syntax.
31575 (subqi3_real): Likewise.
31576 (subhi3_real): Likewise.
31577 (cbranchqi4_real): Likewise. Allow saddr,#imm.
31578 (cbranchhi4_real): Likewise.
31579 (cbranchhi4_real_inverted): Likewise.
31580 (cbranchsi4_real_lt): Likewise.
31581 (cbranchsi4_real_ge): Likewise.
31582 (cbranchsi4_real_ge): Likewise.
31583 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
31584 (sub<mode>3_virt): Likewise.
31585 (cbranchqi4_virt): Likewise.
31586 (cbranchhi4_virt): Likewise.
31587 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
31588 always use '[reg+imm]' even when imm is zero.
31589 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
31590 (rl78_general_operand): New.
31591 (rl78_nonimmediate_operand): New.
31592 (rl78_nonfar_operand): Use them.
31593 (rl78_nonfar_nonimm_operand): Likewise.
31594 (rl78_stack_based_mem): Fix.
31595 * config/rl78/constraints.md (Ibqi): New.
31600 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
31601 (iorqi3): Likewise.
31602 (xorqi3): Likewise.
31603 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
31605 * config/rl78/constrains (Qs8): New constraint.
31606 * config/rl78/rl78.c (rl78_flags_already_set): New function.
31607 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
31608 * config/rl78/rl78-real.md (update_Z): New attribute.
31609 Update patterns to set it.
31610 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
31611 shorter compare and branch sequence can be used.
31612 (cbranchhi4_real): Likewise.
31613 (cbranchhi4_real_inverted): Likewise.
31615 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
31616 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
31618 * config/rl78/rl78.c (rl78_get_name_encoding): New.
31619 (rl78_option_override): Allow -mes0 only if C.
31620 (characterize_address): Support subregs of symbol_refs.
31621 (rl78_addr_space_address_mode): Move. Add __near.
31622 (rl78_far_p): Likewise.
31623 (rl78_addr_space_pointer_mode): Likewise.
31624 (rl78_as_legitimate_address): Likewise.
31625 (rl78_addr_space_subset_p): Likewise.
31626 (rl78_addr_space_convert): Likewise.
31627 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
31628 symbols with -mes0.
31629 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
31631 (rl78_alloc_physical_registers_op1): Change logic to prefer
31632 symbol[BC] addressing.
31633 (frodata_section): New.
31634 (rl78_asm_init_sections): Initialize it.
31635 (rl78_select_section): Put __far readonly symbols in .frodata.
31636 (rl78_make_type_far): New.
31637 (rl78_insert_attributes): Force all readonly symbols to be
31639 (rl78_asm_out_integer): New.
31640 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
31641 * config/rl78/rl78.opt (-mes0): New.
31643 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
31644 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
31645 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
31646 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
31647 (rl78_saddr_p): New.
31648 (rl78_output_aligned_common): New.
31649 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
31650 (rl78_handle_saddr_attribute): New.
31651 (rl78_handle_naked_attribute): New.
31652 (rl78_attribute_table): Add saddr.
31653 (rl78_print_operand_1): Don't print '!' on saddr operands.
31654 (rl78_print_operand_1): Strip encodings.
31656 (rl78_strip_name_encoding): New.
31657 (rl78_attrlist_to_encoding): New.
31658 (rl78_encode_section_info): New.
31659 (rl78_asm_init_sections): New.
31660 (rl78_select_section): New.
31661 (rl78_output_labelref): New.
31662 (rl78_output_aligned_common): New.
31663 (rl78_asm_out_integer): New.
31664 (rl78_asm_ctor_dtor): New.
31665 (rl78_asm_constructor): New.
31666 (rl78_asm_destructor): New.
31668 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
31669 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
31670 (transcode_memory_rtx): Update.
31671 (rl78_expand_epilogue): Use A_REG instead of 0.
31673 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31675 * config/arm/arm-protos.h (struct tune_params): New field
31676 sched_autopref_queue_depth.
31677 * config/arm/arm.c (sched-int.h): Include header.
31678 (arm_first_cycle_multipass_dfa_lookahead_guard,)
31679 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
31680 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
31681 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
31682 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
31683 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
31684 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
31685 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
31686 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
31687 * config/arm/t-arm (arm.o): Update.
31688 * haifa-sched.c (update_insn_after_change): Update.
31689 (rank_for_schedule): Use auto-prefetcher model, if requested.
31690 (autopref_multipass_init): New static function.
31691 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
31692 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
31693 variable for debug dumps.
31694 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
31695 (autopref_multipass_dfa_lookahead_guard): New global function that
31696 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
31697 (init_h_i_d): Update.
31698 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
31699 * sched-int.h (enum autopref_multipass_data_status): New const enum.
31700 (autopref_multipass_data_): Structure for auto-prefetcher data.
31701 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
31702 (struct _haifa_insn_data:autopref_multipass_data): New field.
31703 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
31704 (autopref_multipass_dfa_lookahead_guard): Declare.
31706 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31708 * rtlanal.c (get_base_term): Handle SCRATCH.
31710 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
31712 * config/aarch64/aarch64.c
31713 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
31714 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31716 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
31717 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
31719 2015-01-17 Alan Modra <amodra@gmail.com>
31721 * cprop.c (do_local_cprop): Disallow replacement of fixed
31724 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31727 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
31730 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
31732 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
31733 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
31735 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31737 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
31738 * config/arm/thumb1.md: ... Here.
31740 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31742 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
31743 TImode for TARGET_32BIT.
31745 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31747 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
31748 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
31750 (rs6000_abi_word_mode): New function.
31752 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31754 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
31755 instead of UNITS_PER_WORD to describe the size of stack slots.
31757 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31759 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
31760 as rs6000_promote_function_mode. Move comment to there.
31761 (rs6000_promote_function_mode): New function.
31763 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
31765 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
31766 -mpowerpc64 is active.
31768 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
31770 PR middle-end/64353
31771 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
31774 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
31776 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
31777 introduced in revision 219724.
31779 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31780 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31783 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
31784 destination is not a GP reg.
31785 (*movdi_aarch64): Likewise.
31787 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
31790 * config/rs6000/default64.h: Revert ISA change.
31792 2015-01-16 Richard Biener <rguenther@suse.de>
31794 PR middle-end/64614
31795 * tree-ssa-uninit.c: Include tree-cfg.h.
31796 (MAX_SWITCH_CASES): New define.
31797 (convert_control_dep_chain_into_preds): Handle switch statements.
31798 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
31799 (normalize_one_pred_1): Do not split bit-manipulations.
31802 2015-01-16 Richard Biener <rguenther@suse.de>
31804 PR tree-optimization/64568
31805 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
31806 complex load rewriting for TARGET_MEM_REFs.
31808 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
31810 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
31812 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
31815 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
31817 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
31818 (aarch64_lra_p): Remove.
31820 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
31823 * ipa-chkp.h (chkp_instrumentable_p): New.
31824 * ipa-chkp.c: Include tree-inline.h.
31825 (chkp_instrumentable_p): New.
31826 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
31827 Fix processing of not instrumentable functions.
31828 (chkp_versioning): Use chkp_instrumentable_p. Warn about
31829 not instrumentable functions.
31830 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
31831 chkp_instrumentable_p.
31832 * tree-inline.h (copy_forbidden): New.
31833 * tree-inline.c (copy_forbidden): Not static anymore.
31835 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
31837 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
31840 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
31842 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
31843 type OP_OUT to OP_INOUT.
31845 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
31847 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
31848 (high x) y) to y if x and y have the same base.
31850 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
31852 * config/arm/cortex-a57.md: New.
31853 * config/aarch64/aarch64.md: Include it.
31854 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
31855 * config/aarch64/aarch64-tune.md: Regenerate.
31857 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
31860 * ccmp.c (expand_ccmp_next): New function.
31861 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
31862 and compare insn sequence.
31863 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
31864 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
31865 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
31866 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
31867 (*ccmp_ior): Changed to ccmp_ior<mode>.
31868 (cmp<mode>): New pattern.
31869 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
31871 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
31873 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
31875 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
31876 _mm256_bsrli_epi128): New.
31877 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
31879 2015-01-15 Jiong Wang <jiong.wang@arm.com>
31881 * expmed.c (store_bit_field_using_insv): Improve warning message.
31882 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
31884 2015-01-15 Jiong Wang <jiong.wang@arm.com>
31886 PR rtl-optimization/64011
31887 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
31888 there is partial overflow.
31890 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31892 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
31894 (nds32_expand_epilogue_v3pop): Likewise.
31895 * config/nds32/nds32.md (sibcall): Define this for sibling call
31897 (sibcall_register): Likewise.
31898 (sibcall_immediate): Likewise.
31899 (sibcall_value): Likewise.
31900 (sibcall_value_register): Likewise.
31901 (sibcall_value_immediate): Likewise.
31902 (sibcall_epilogue): Likewise.
31903 (epilogue): Pass false to indicate this is not a sibcall epilogue.
31904 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
31905 (nds32_expand_epilogue_v3pop): Likewise.
31907 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31909 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
31910 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
31911 (return_internal): New.
31912 (return): Define this named pattern.
31913 (simple_return): Define this named pattern.
31914 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
31915 pattern instead of unspec_volatile_func_return.
31916 (nds32_expand_epilogue_v3pop): Likewise.
31917 (nds32_can_use_return_insn): New function.
31919 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31921 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
31922 * config/nds32/nds32.md (pop25return): New.
31923 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
31924 pop25return pattern.
31926 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31928 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
31929 -mforbid-fp-as-gp, and -mex9 options.
31931 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
31933 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
31934 remove -mgp-direct option.
31936 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31938 * doc/invoke.texi (--param early-inlining-insns): Update default value.
31939 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
31941 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31943 * ipa-inline.c (inline_small_functions): Work around hints
31946 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
31949 * doc/invoke.texi (Option Summary): Document new Nios II
31951 (Nios II Options): Likewise.
31952 * config/nios2/nios2.opt: Add -mgpopt= option support.
31953 Modify existing -mgpopt and -mno-gpopt options to be aliases.
31954 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
31955 * config/nios2/nios2.c (nios2_option_override): Adjust
31956 -mgpopt defaulting.
31957 (nios2_in_small_data_p): Return true for explicit small data
31958 sections even with -G0.
31959 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
31962 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
31965 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
31967 (inline_call): Fix removal of aliases.
31969 2015-01-15 Jakub Jelinek <jakub@redhat.com>
31971 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
31972 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
31973 * opts.c (common_handle_option): Add -fsanitize=vptr.
31974 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
31975 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
31976 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
31977 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
31978 (ubsan_expand_vptr_ifn): New prototype.
31979 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
31980 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
31981 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
31982 expand_LOOP_VECTORIZED): Make argument nameless, remove
31984 (expand_UBSAN_VPTR): New function.
31985 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
31987 (UBSAN_VPTR): New internal function.
31988 * sanopt.c (tree_map_traits): Renamed to ...
31989 (sanopt_tree_map_traits): ... this.
31990 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
31991 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
31992 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
31993 (maybe_optimize_ubsan_vptr_ifn): New function.
31994 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
31995 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
31997 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
31998 internal calls like pure functions for aliasing, even when they
31999 have other side-effects that prevent making them ECF_PURE.
32000 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
32001 (ubsan_expand_vptr_ifn): New function.
32003 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
32005 PR rtl-optimization/64110
32006 * stmt.c (parse_output_constraint): Process '^' and '$'.
32007 (parse_input_constraint): Ditto.
32008 * lra-constraints.c (process_alt_operands): Process the new
32010 * ira-costs.c (record_reg_classes): Process the new constraint
32012 * genoutput.c (indep_constraints): Add '^' and '$'.
32013 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
32014 * doc/md.texi: Add description of the new constraints.
32016 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
32017 Bernd Schmidt <bernds@codesourcery.com>
32018 Cesar Philippidis <cesar@codesourcery.com>
32019 James Norris <jnorris@codesourcery.com>
32020 Tom de Vries <tom@codesourcery.com>
32021 Ilmir Usmanov <i.usmanov@samsung.com>
32022 Dmitry Bocharnikov <dmitry.b@samsung.com>
32023 Evgeny Gavrin <e.gavrin@samsung.com>
32024 Jakub Jelinek <jakub@redhat.com>
32026 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
32027 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32028 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32029 New function types.
32030 * builtins.c: Include "gomp-constants.h".
32031 (expand_builtin_acc_on_device): New function.
32032 (expand_builtin, is_inexpensive_builtin): Handle
32033 BUILT_IN_ACC_ON_DEVICE.
32034 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
32036 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
32038 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
32039 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
32040 i386/intelmic-offload.h.
32041 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
32042 to libgomp and its dependencies.
32043 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
32044 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
32045 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
32046 * config/ia64/hpux.h (LIB_SPEC): Likewise.
32047 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
32048 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
32049 * doc/generic.texi: Update for OpenACC changes.
32050 * doc/gimple.texi: Likewise.
32051 * doc/invoke.texi: Likewise.
32052 * doc/sourcebuild.texi: Likewise.
32053 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
32054 GF_OMP_FOR_KIND_OACC_LOOP.
32055 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
32056 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
32057 GF_OMP_TARGET_KIND_OACC_UPDATE,
32058 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32060 * gimple.c: Update comments for OpenACC changes.
32061 * gimple.def: Likewise.
32062 * gimple.h: Likewise.
32063 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
32064 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32065 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
32066 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
32067 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
32069 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
32070 * gimplify.c: Include "gomp-constants.h".
32071 Update comments for OpenACC changes.
32072 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
32073 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
32074 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32075 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
32076 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32077 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32078 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
32079 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32080 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
32082 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
32083 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32084 OMP_CLAUSE_SET_MAP_KIND.
32085 (gimplify_oacc_cache): New function.
32086 (gimplify_omp_for): Handle OACC_LOOP.
32087 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
32089 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
32090 OACC_EXIT_DATA, OACC_UPDATE.
32091 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
32092 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
32093 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
32094 (gimplify_body): Consider flag_openacc next to flag_openmp.
32095 * lto-streamer-out.c: Include "gomp-constants.h".
32096 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
32097 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
32098 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
32099 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
32100 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
32101 (BUILT_IN_ACC_ON_DEVICE): New builtins.
32102 * omp-low.c: Include "gomp-constants.h".
32103 Update comments for OpenACC changes.
32104 (struct omp_context): Add reduction_map, gwv_below, gwv_this
32106 (extract_omp_for_data, use_pointer_for_field, install_var_field)
32107 (new_omp_context, delete_omp_context, scan_sharing_clauses)
32108 (create_omp_child_function, scan_omp_for, scan_omp_target)
32109 (check_omp_nesting_restrictions, lower_reduction_clauses)
32110 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
32111 Update for OpenACC changes.
32112 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
32113 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
32114 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
32115 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
32116 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
32117 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
32119 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
32120 Handle GF_OMP_FOR_KIND_OACC_LOOP.
32121 (expand_omp_target, lower_omp_target): Handle
32122 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
32123 GF_OMP_TARGET_KIND_OACC_UPDATE,
32124 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
32125 GF_OMP_TARGET_KIND_OACC_DATA.
32126 (pass_expand_omp::execute, execute_lower_omp)
32127 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
32129 (offload_symbol_decl): New variable.
32130 (oacc_get_reduction_array_id, oacc_max_threads)
32131 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
32132 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
32133 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
32134 (oacc_gimple_assign, oacc_initialize_reduction_data)
32135 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
32137 (is_targetreg_ctx): Remove function.
32138 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
32139 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
32140 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
32141 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
32142 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
32143 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
32144 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
32145 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
32146 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
32147 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
32148 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
32149 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
32150 * tree-core.h: Update comments for OpenACC changes.
32151 (enum omp_clause_map_kind): Remove.
32152 (struct tree_omp_clause): Change type of map_kind member from enum
32153 omp_clause_map_kind to unsigned char.
32154 * tree-inline.c: Update comments for OpenACC changes.
32155 * tree-nested.c: Likewise. Include "gomp-constants.h".
32156 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
32157 (convert_tramp_reference_stmt, convert_gimple_call): Update for
32158 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
32159 OMP_CLAUSE_SET_MAP_KIND.
32160 * tree-pretty-print.c: Include "gomp-constants.h".
32161 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
32162 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
32163 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
32164 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
32165 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
32166 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
32167 instead of OMP_CLAUSE_MAP_*.
32168 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
32169 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
32170 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
32171 * tree-streamer-in.c: Include "gomp-constants.h".
32172 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
32173 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
32174 * tree-streamer-out.c: Include "gomp-constants.h".
32175 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
32177 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
32178 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
32179 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
32180 * tree.c (omp_clause_num_ops): Update accordingly.
32181 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
32183 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
32184 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
32185 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
32186 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
32187 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
32188 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
32189 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
32190 (OMP_CLAUSE_SET_MAP_KIND): New macro.
32191 * varpool.c (varpool_node::get_create): Consider flag_openacc next
32193 * config/i386/intelmic-offload.h: New file.
32194 * config/nvptx/offload.h: Likewise.
32196 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32198 * explow.h: Remove duplicate contents.
32199 * dojump.h: Likewise.
32201 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
32203 * arm.c (arm_xgene_tune): Add default initializer for instruction
32206 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
32210 * ipa.c (symbol_table::remove_unreachable_nodes):
32211 Do not put abstract origins into boundary.
32213 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
32215 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
32216 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
32218 2015-01-15 Steve Ellcey <sellcey@mips.com>
32220 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
32221 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
32222 builtins.def, and chkp-builtins.def.
32224 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
32226 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
32229 2015-01-15 Richard Biener <rguenther@suse.de>
32231 PR tree-optimization/61743
32232 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
32233 information on PHIs for some simple cases.
32235 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
32237 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
32239 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
32240 * config/arm/arm-cores.def (xgene1): New entry.
32241 * config/arm/arm-tables.opt: Regenerate.
32242 * config/arm/arm-tune.md: Regenerate.
32243 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
32245 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
32247 * tree-if-conv.c: Include hash-map.h.
32248 (aggressive_if_conv): New variable.
32249 (fold_build_cond_expr): Add simplification of non-zero condition.
32250 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
32251 destination block is not always executed.
32252 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
32253 than two predecessors if AGGRESSIVE_IF_CONV is true.
32254 (if_convertible_stmt_p): Fix commentary.
32255 (all_preds_critical_p): New function.
32256 (has_pred_critical_p): New function.
32257 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
32258 BB can have more than two predecessors and all incoming edges can be
32260 (predicate_bbs): Skip predication for loop exit block, use build2_loc
32261 to compute predicate for true edge.
32262 (find_phi_replacement_condition): Delete this function.
32263 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
32264 Allow interchange PHI arguments if EXTENDED is false.
32265 Change check that block containing reduction statement candidate
32266 is predecessor of phi-block since phi may have more than two arguments.
32267 (phi_args_hash_traits): New helper structure.
32268 (struct phi_args_hash_traits): New type.
32269 (phi_args_hash_traits::hash): New function.
32270 (phi_args_hash_traits::equal_keys): New function.
32271 (gen_phi_arg_condition): New function.
32272 (predicate_scalar_phi): Add handling of phi nodes with more than two
32273 arguments, delete COND and TRUE_BB arguments, insert body of
32274 find_phi_replacement_condition to predicate ordinary phi nodes.
32275 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
32276 delete call of find_phi_replacement_condition and invoke
32277 predicate_scalar_phi with two arguments.
32278 (insert_gimplified_predicates): Add assert that non-predicated block
32279 don't have statements to insert.
32280 (ifcvt_split_critical_edges): New function.
32281 (ifcvt_split_def_stmt): Likewise.
32282 (ifcvt_walk_pattern_tree): Likewise.
32283 (stmt_is_root_of_bool_pattern): Likewise.
32284 (ifcvt_repair_bool_pattern): Likewise.
32285 (ifcvt_local_dce): Likewise.
32286 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
32287 is copy of inner or outer loop force_vectorize field, invoke
32288 ifcvt_split_critical_edges, ifcvt_local_dce and
32289 ifcvt_repair_bool_pattern for aggressive if-conversion.
32291 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
32293 * config/aarch64/aarch64.md: Include xgene1.md.
32294 * config/aarch64/xgene1.md: New file.
32296 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
32298 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
32299 xgene1 (APM XGene-1) core definition.
32300 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
32301 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
32302 * doc/invoke.texi: Document -mcpu=xgene1.
32304 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
32306 * dojump.h: New header file.
32307 * explow.h: Likewise.
32308 * expr.h: Remove includes.
32309 Move expmed.c prototypes to expmed.h.
32310 Move dojump.c prototypes to dojump.h.
32311 Move alias.c prototypes to alias.h.
32312 Move explow.c prototypes to explow.h.
32313 Move calls.c prototypes to calls.h.
32314 Move emit-rtl.c prototypes to emit-rtl.h.
32315 Move varasm.c prototypes to varasm.h.
32316 Move stmt.c prototypes to stmt.h.
32317 (saved_pending_stack_adjust): Move to dojump.h.
32318 (adjust_address): Move to explow.h.
32319 (adjust_address_nv): Move to emit-rtl.h.
32320 (adjust_bitfield_address): Likewise.
32321 (adjust_bitfield_address_size): Likewise.
32322 (adjust_bitfield_address_nv): Likewise.
32323 (adjust_automodify_address_nv): Likewise.
32324 * explow.c (expr_size): Move to expr.c.
32325 (int_expr_size): Likewise.
32326 (tree_expr_size): Likewise.
32327 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32328 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32329 * genemit.c (main): Generate includes statistics.h, real.h,
32330 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
32332 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
32333 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
32334 explow.h, emit-rtl.h, stmt.h.
32335 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
32336 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
32337 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
32338 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
32339 emit-rtl.h, varasm.h, stmt.h.
32340 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
32341 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
32342 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
32343 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
32344 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
32345 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
32346 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
32347 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
32348 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
32349 tm.h tree.h varasm.h vec.h wide-int.h.
32350 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32351 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32352 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
32353 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
32354 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
32355 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
32356 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
32357 * loop-iv.c: Likewise.
32358 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
32359 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
32360 statistics.h stmt.h tree.h varasm.h wide-int.h.
32361 * lra-constraints.c: Likewise.
32362 * lra-eliminations.c: Likewise.
32363 * lra-lives.c: Likewise.
32364 * lra-remat.c: Likewise.
32365 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32366 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
32367 statistics.h stmt.h tree.h varasm.h wide-int.h.
32368 * hw-doloop.c: Likewise.
32369 * ira-color.c: Likewise.
32370 * ira-emit.c: Likewise.
32371 * loop-doloop.c: Likewise.
32372 * loop-invariant.c: Likewise.
32373 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32374 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
32375 statistics.h stmt.h tree.h varasm.h wide-int.h.
32376 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
32377 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
32378 statistics.h stmt.h tree.h varasm.h wide-int.h.
32379 * combine-stack-adj.c: Likewise.
32382 * ifcvt.c: Likewise.
32383 * ira-costs.c: Likewise.
32384 * jump.c: Likewise.
32385 * lra-coalesce.c: Likewise.
32386 * lra-spills.c: Likewise.
32387 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32388 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
32389 stmt.h varasm.h wide-int.h.
32390 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
32391 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32393 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
32394 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
32395 statistics.h stmt.h varasm.h wide-int.h.
32396 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
32397 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
32398 varasm.h wide-int.h.
32399 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
32400 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32401 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
32402 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
32403 statistics.h stmt.h.
32404 * config/tilepro/tilepro.c: Likewise.
32405 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
32406 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
32407 * config/pdp11/pdp11.c: Likewise.
32408 * config/xtensa/xtensa.c: Likewise.
32409 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
32410 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
32412 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32413 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32414 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
32415 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32416 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
32417 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
32418 * rtl-chkp.c: Likewise.
32419 * tree-chkp-opt.c: Likewise.
32420 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
32421 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
32422 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
32423 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32424 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32425 statistics.h stmt.h.
32426 * tree-vect-data-refs.c: Likewise.
32427 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
32428 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32429 rtl.h statistics.h stmt.h varasm.h.
32430 * internal-fn.c: Likewise.
32431 * ipa-icf-gimple.c: Likewise.
32432 * lto-section-out.c: Likewise.
32433 * tree-data-ref.c: Likewise.
32434 * tree-nested.c: Likewise.
32435 * tree-outof-ssa.c: Likewise.
32436 * tree-predcom.c: Likewise.
32437 * tree-pretty-print.c: Likewise.
32438 * tree-scalar-evolution.c: Likewise.
32439 * tree-ssa-strlen.c: Likewise.
32440 * tree-vect-loop.c: Likewise.
32441 * tree-vect-patterns.c: Likewise.
32442 * tree-vect-slp.c: Likewise.
32443 * tree-vect-stmts.c: Likewise.
32444 * tsan.c: Likewise.
32445 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32446 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
32448 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
32449 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32450 statistics.h stmt.h varasm.h.
32451 * loop-unroll.c: Likewise.
32452 * ubsan.c: Likewise.
32453 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
32454 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
32456 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32457 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
32458 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
32459 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32460 statistics.h stmt.h.
32461 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
32462 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
32463 statistics.h stmt.h varasm.h.
32464 * gimple-match-head.c: Likewise.
32465 * lto-cgraph.c: Likewise.
32466 * lto-section-in.c: Likewise.
32467 * lto-streamer-in.c: Likewise.
32468 * lto-streamer-out.c: Likewise.
32469 * tree-affine.c: Likewise.
32470 * tree-cfg.c: Likewise.
32471 * tree-cfgcleanup.c: Likewise.
32472 * tree-if-conv.c: Likewise.
32473 * tree-into-ssa.c: Likewise.
32474 * tree-ssa-alias.c: Likewise.
32475 * tree-ssa-copyrename.c: Likewise.
32476 * tree-ssa-dse.c: Likewise.
32477 * tree-ssa-forwprop.c: Likewise.
32478 * tree-ssa-live.c: Likewise.
32479 * tree-ssa-math-opts.c: Likewise.
32480 * tree-ssa-pre.c: Likewise.
32481 * tree-ssa-sccvn.c: Likewise.
32482 * tree-tailcall.c: Likewise.
32483 * tree-vect-generic.c: Likewise.
32484 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32485 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
32486 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32487 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
32488 * varasm.c: Likewise.
32489 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32490 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
32492 * init-regs.c: Likewise.
32494 * omp-low.c: Likewise.
32495 * stack-ptr-mod.c: Likewise.
32496 * tree-ssa-reassoc.c: Likewise.
32497 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32498 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
32500 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32501 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
32502 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32503 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
32504 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32505 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
32506 * tree-ssa-phiopt.c: Likewise.
32507 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32508 fixed-value.h hashtab.h real.h statistics.h stmt.h.
32509 * config/fr30/fr30.c: Likewise.
32510 * config/frv/frv.c: Likewise.
32511 * expr.c: Likewise.
32512 * final.c: Likewise.
32513 * optabs.c: Likewise.
32514 * passes.c: Likewise.
32515 * simplify-rtx.c: Likewise.
32516 * stmt.c: Likewise.
32517 * toplev.c: Likewise.
32518 * var-tracking.c: Likewise.
32519 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32520 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32521 * lower-subreg.c: Likewise.
32522 * postreload-gcse.c: Likewise.
32524 * reginfo.c: Likewise.
32525 * store-motion.c: Likewise.
32526 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32527 fixed-value.h hashtab.h real.h stmt.h varasm.h.
32528 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32529 fixed-value.h hashtab.h statistics.h stmt.h.
32530 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32531 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
32532 * except.c: Likewise.
32533 * explow.c: Likewise.
32534 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32535 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
32537 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32538 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
32539 * tree-ssa-structalias.c: Likewise.
32540 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32541 fixed-value.h insn-config.h real.h statistics.h.
32542 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32543 fixed-value.h insn-config.h real.h statistics.h stmt.h.
32544 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32545 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32546 * cfgbuild.c: Likewise.
32547 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32548 fixed-value.h real.h rtl.h statistics.h stmt.h.
32549 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32550 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32551 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32552 fixed-value.h real.h statistics.h stmt.h.
32553 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
32554 fixed-value.h real.h statistics.h stmt.h varasm.h.
32555 * cprop.c: Likewise.
32556 * modulo-sched.c: Likewise.
32557 * postreload.c: Likewise.
32558 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32559 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
32560 statistics.h stmt.h varasm.h.
32561 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
32562 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32563 rtl.h statistics.h stmt.h varasm.h.
32564 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
32565 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
32567 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
32568 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
32570 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
32571 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
32573 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
32574 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32575 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32576 function.h real.h statistics.h stmt.h varasm.h.
32577 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32578 insn-config.h real.h statistics.h stmt.h.
32579 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
32580 statistics.h stmt.h.
32581 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
32582 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
32583 statistics.h stmt.h varasm.h.
32584 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
32585 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
32586 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32587 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
32588 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
32589 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
32590 statistics.h stmt.h varasm.h.
32591 * ipa-polymorphic-call.c: Likewise.
32592 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
32593 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32594 statistics.h stmt.h.
32595 * config/c6x/c6x.c: Likewise.
32596 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
32597 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
32598 statistics.h stmt.h varasm.h.
32599 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
32600 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
32602 * ipa-split.c: Likewise.
32603 * tree-eh.c: Likewise.
32604 * tree-ssa-dce.c: Likewise.
32605 * tree-ssa-loop-niter.c: Likewise.
32606 * tree-vrp.c: Likewise.
32607 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
32608 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
32610 * config/nds32/nds32-fp-as-gp.c: Likewise.
32611 * config/nds32/nds32-intrinsic.c: Likewise.
32612 * config/nds32/nds32-isr.c: Likewise.
32613 * config/nds32/nds32-md-auxiliary.c: Likewise.
32614 * config/nds32/nds32-memory-manipulation.c: Likewise.
32615 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
32616 * config/nds32/nds32-predicates.c: Likewise.
32617 * config/nds32/nds32.c: Likewise.
32618 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
32619 fixed-value.h hashtab.h real.h statistics.h.
32620 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
32621 fixed-value.h hashtab.h real.h statistics.h stmt.h.
32622 * config/arm/arm.c: Likewise.
32623 * config/avr/avr.c: Likewise.
32624 * config/bfin/bfin.c: Likewise.
32625 * config/h8300/h8300.c: Likewise.
32626 * config/i386/i386.c: Likewise.
32627 * config/ia64/ia64.c: Likewise.
32628 * config/iq2000/iq2000.c: Likewise.
32629 * config/m32c/m32c.c: Likewise.
32630 * config/m32r/m32r.c: Likewise.
32631 * config/m68k/m68k.c: Likewise.
32632 * config/mcore/mcore.c: Likewise.
32633 * config/mep/mep.c: Likewise.
32634 * config/mips/mips.c: Likewise.
32635 * config/mn10300/mn10300.c: Likewise.
32636 * config/moxie/moxie.c: Likewise.
32637 * config/pa/pa.c: Likewise.
32638 * config/rl78/rl78.c: Likewise.
32639 * config/rx/rx.c: Likewise.
32640 * config/s390/s390.c: Likewise.
32641 * config/sh/sh.c: Likewise.
32642 * config/sparc/sparc.c: Likewise.
32643 * config/spu/spu.c: Likewise.
32644 * config/stormy16/stormy16.c: Likewise.
32645 * config/v850/v850.c: Likewise.
32646 * config/vax/vax.c: Likewise.
32647 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
32648 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
32649 * config/msp430/msp430.c: Likewise.
32650 * predict.c: Likewise.
32651 * value-prof.c: Likewise.
32652 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
32653 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
32654 * config/microblaze/microblaze.c: Likewise.
32655 * config/nios2/nios2.c: Likewise.
32656 * config/rs6000/rs6000.c: Likewise.
32657 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32658 insn-config.h real.h rtl.h statistics.h stmt.h.
32659 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
32660 insn-config.h real.h statistics.h stmt.h.
32661 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
32662 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
32663 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
32664 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
32665 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
32666 fixed-value.h real.h statistics.h stmt.h.
32667 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
32668 fixed-value.h statistics.h stmt.h.
32669 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
32672 2015-01-15 Jakub Jelinek <jakub@redhat.com>
32674 * gengtype.c (create_user_defined_type): Workaround
32675 -Wmaybe-uninitialized false positives.
32676 * cse.c (fold_rtx): Likewise.
32677 * loop-invariant.c (gain_for_invariant): Likewise.
32679 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
32681 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
32682 set the memory attributes in all cases but clear MEM_EXPR if need be.
32684 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
32686 PR tree-optimization/64434
32687 * cfgexpand.c (reorder_operands): New function.
32688 (expand_gimple_basic_block): Insert call of reorder_operands if
32691 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
32693 * config/mips/micromips.md (*swp): Remove explicit parallel.
32694 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
32695 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
32696 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
32697 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
32698 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
32699 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
32700 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
32701 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
32702 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
32703 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
32704 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
32705 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
32706 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
32707 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
32708 (mips_wrdsp): Likewise.
32709 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
32711 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
32712 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
32713 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
32714 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
32715 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
32716 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
32717 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
32718 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
32719 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
32721 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
32723 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
32724 (mips_print_operand): Support 'y' to print exact log2 in decimal
32726 * config/mips/mips.h (ISA_HAS_LSA): New define.
32727 (ISA_HAS_DLSA): Likewise.
32728 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
32729 * config/mips/predicates.md (const_immlsa_operand): New predicate.
32731 2015-01-15 Martin Liska <mliska@suse.cz>
32734 * optc-save-gen.awk: Add support for array types.
32736 2015-01-15 Richard Biener <rguenther@suse.de>
32738 PR middle-end/64365
32739 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
32740 for MEM_REF access functions with the same base can never partially
32743 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
32745 * common.opt: New option -fstack-protector-explicit.
32746 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
32747 (stack_protect_decl_phase): Handle stack_protect attribute for
32748 explicit stack protection requests.
32749 (expand_used_vars): Similarly.
32750 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
32751 * doc/extend.texi: Add documentation for "stack_protect" attribute.
32752 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
32754 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
32757 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
32759 (sh_extending_set_of_reg): New struct.
32760 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
32761 sh_remove_reg_dead_or_unused_notes): New Declarations.
32762 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
32763 sh_find_extending_set_of_reg, sh_split_tst_subregs,
32764 sh_extending_set_of_reg::use_as_extended_reg): New functions.
32765 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
32766 convert to insn_and_split and use new function sh_split_tst_subregs.
32768 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
32770 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
32772 (Optimization Options): Move -fuse-ld documentation to...
32773 (Link Options): ...here.
32775 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
32777 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
32779 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
32780 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
32781 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
32782 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
32783 instead of ZR for the memory operand of LL/SC.
32784 (compare_and_swap_12, sync_add<mode>): Likewise.
32785 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
32786 (sync_new_<optab>_12, sync_nand_12): Likewise.
32787 (sync_old_nand_12, sync_new_nand_12): Likewise.
32788 (sync_sub<mode>, sync_old_add<mode>): Likewise.
32789 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
32790 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
32791 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
32792 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
32793 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
32794 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
32795 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
32796 * doc/md.texi (ZC): Update description.
32798 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
32800 * builtins.c (expand_builtin_atomic_exchange): Remove error when
32801 memory model is CONSUME.
32802 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
32803 expand_builtin_atomic_store): Change invalid memory model errors to
32805 (expand_builtin_atomic_clear): Change invalid model errors to warnings
32806 and issue warning for CONSUME.
32808 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
32810 * lto-cgraph: Update function comments for
32811 lto_symtab_encoder_encode_*.
32813 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
32815 * Makefile.in (site.exp): Do not set ENABLE_LTO.
32817 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
32819 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
32820 * lto-cgraph.c (select_what_to_stream): Remove argument, use
32821 lto_stream_offload_p instead.
32822 * lto-streamer.h (select_what_to_stream): Remove argument.
32823 * passes.c (ipa_write_summaries): Likewise.
32824 * tree-pass.h (ipa_write_summaries): Likewise.
32826 2015-01-14 Richard Biener <rguenther@suse.de>
32828 PR tree-optimization/59354
32829 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
32830 groups larger than the slp group size as having gaps.
32832 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
32834 PR middle-end/59448
32835 * builtins.c (get_memmodel): Promote consume to acquire always.
32837 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
32840 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
32843 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
32846 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
32848 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
32849 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
32850 AVX512VBMI, as it implies AVX512BW.
32852 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
32855 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
32856 (vec_unpacks_hi_v16sf): Ditto.
32858 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32860 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
32863 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32865 * doc/invoke.texi (mapcs): Mention deprecation.
32866 (mapcs-frame): Likewise.
32868 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
32871 * config/arm/arm.c (callee_saved_reg_p): Define.
32872 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
32873 register is callee saved instead of !call_used_regs[reg].
32874 (thumb1_compute_save_reg_mask): Likewise.
32876 2015-01-14 Hale Wang <hale.wang@arm.com>
32878 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
32881 2015-01-14 Richard Biener <rguenther@suse.de>
32884 * tree-inline.c (insert_debug_decl_map): Check destination
32885 function MAY_HAVE_DEBUG_STMTS.
32886 (insert_init_debug_bind): Likewise.
32887 (insert_init_stmt): Remove redundant check.
32888 (remap_gimple_stmt): Drop debug stmts if the destination
32889 function has var-tracking assignments disabled.
32891 2015-01-14 Martin Liska <mliska@suse.cz>
32893 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
32894 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
32896 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32899 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
32900 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
32902 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
32904 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
32905 level from an ARCH; do not inject the default.
32906 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
32907 MIPS_ISA_LEVEL_SPEC.
32908 (MIPS_ISA_NAN2008_SPEC): Update comment.
32909 (BASE_DRIVER_SELF_SPECS): Likewise.
32910 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
32911 MIPS_DEFAULT_ISA_LEVEL_SPEC.
32912 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
32913 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
32914 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
32916 2015-01-14 Richard Biener <rguenther@suse.de>
32918 PR tree-optimization/64493
32919 PR tree-optimization/64495
32920 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
32921 assign the proper vectorized PHI to the inner loop exit PHIs.
32923 2015-01-14 Joey Ye <joey.ye@arm.com>
32925 * config/arm/arm.c (arm_compute_save_reg_mask):
32926 Do not save lr in case of tail call.
32927 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
32929 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
32931 * tree-vrp.c (check_array_ref): Emit more warnings
32932 for warn_array_bounds >= 2.
32933 * common.opt: New option -Warray-bounds=.
32934 * doc/invoke.texi: Document -Warray-bounds=.
32936 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
32938 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
32939 (mforbid-fp-as-gp): Remove.
32941 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
32942 (nds32_symbol_load_store_p): Remove.
32943 (nds32_fp_as_gp_check_available): Clean up implementation.
32944 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
32946 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
32947 fp-as-gp and ex9 cases.
32949 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32951 * tree-profile.c (init_ic_make_global_vars): Drop workaround
32952 for bintuils bug 14342.
32953 (init_ic_make_global_vars): Likewise.
32954 (gimple_init_edge_profiler): Likewise.
32955 (gimple_gen_ic_func_profiler): Likewise.
32957 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32959 * ipa-inline.c (inline_small_functions): Swap the operands in
32962 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32965 * ipa-inline-analysis.c (node_growth_cache): Remove.
32966 (initialize_growth_caches): Do not initialize it.
32967 (free_growth_caches): Do not free it.
32968 (do_estimate_growth): Rename to ...
32969 (estimate_growth): ... this one; drop growth cache code.
32970 (growth_likely_positive): Always go the heuristics way.
32971 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
32972 (reset_edge_caches): Do not reset node growth.
32973 (heap_edge_removal_hook): Do not maintain cache.
32974 (inline_small_functions): Likewise; strenghten sanity check.
32975 (ipa_inline): Do not maintain caches.
32976 * ipa-inline.h (node_growth_cache): Remove.
32977 (do_estimate_growth): Remove to ...
32978 (estimate_growth): this one; remove inline version.
32979 (reset_node_growth_cache): Remove.
32981 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
32984 * ipa-inline.c (inline_small_functions): Update callee keys after
32985 resolving speculation
32986 (inline_small_functions): Always check monotonicity of the queue.
32988 2015-01-13 Marek Polacek <polacek@redhat.com>
32990 PR middle-end/64391
32991 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
32993 2015-01-13 Jakub Jelinek <jakub@redhat.com>
32995 PR rtl-optimization/64286
32996 * ree.c (combine_reaching_defs): Move part of comment earlier,
32997 remove !SCALAR_INT_MODE_P check.
32998 (add_removable_extension): Don't add vector mode
32999 extensions if all uses of the source register aren't the same
33002 2015-01-13 Renlin Li <renlin.li@arm.com>
33004 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
33005 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
33007 2015-01-13 Martin Liska <mliska@suse.cz>
33009 * ipa-icf.c (sem_function::equals_private): Call new functions
33010 cl_target_option_print_diff and cl_optimization_print_diff.
33011 * optc-save-gen.awk (cl_target_option_print_diff): New function.
33012 (cl_optimization_print_diff): Likewise.
33013 * opth-gen.awk: Likewise.
33015 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
33017 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
33018 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
33019 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
33020 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
33021 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
33022 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
33024 2015-01-13 Andrew Pinski <apinski@cavium.com>
33026 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
33027 instead of src mode.
33029 2015-01-13 Richard Biener <rguenther@suse.de>
33032 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
33035 2015-01-13 Andrew Pinski <apinski@cavium.com>
33037 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
33039 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
33041 2015-01-13 Jakub Jelinek <jakub@redhat.com>
33043 PR middle-end/63974
33044 * cfgexpand.c (expand_computed_goto): Don't call
33045 convert_memory_address here.
33047 2015-01-13 Richard Biener <rguenther@suse.de>
33049 PR tree-optimization/64406
33050 * tree-loop-distibution.c (pass_loop_distribution::execute):
33051 Reset the SCEV hashtable if we distributed anything.
33053 2015-01-13 Richard Biener <rguenther@suse.de>
33055 PR tree-optimization/64404
33056 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
33057 SLP types for CSEd loads.
33059 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33061 PR tree-optimization/64436
33062 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
33063 merge of two symbolic numbers for a bitwise OR to ...
33064 (perform_symbolic_merge): This. Also fix computation of the range and
33065 end of the symbolic number corresponding to the result of a bitwise OR.
33067 2015-01-13 Richard Biener <rguenther@suse.de>
33069 PR tree-optimization/64568
33070 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
33071 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
33073 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33075 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
33076 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
33078 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33080 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
33081 target-specific symbol_ref flag.
33082 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
33083 resides in rodata section.
33084 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
33085 (nds32_encode_section_info): New function.
33087 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33089 * config/nds32/nds32.md (call): Use pseudo instruction bal which
33090 clobbers TA_REGNUM if large code model is specified.
33091 (call_register): Likewise.
33092 (call_immediate): Likewise.
33093 (call_value): Likewise.
33094 (call_value_register): Likewise.
33095 (call_value_immediate): Likewise.
33097 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33099 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
33100 (TARGET_CMODEL_MEDIUM): New macro.
33101 (TARGET_CMODEL_LARGE): New macro.
33102 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
33103 code model setting in assembly code.
33105 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33107 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
33108 Remove MASK_GP_DIRECT flag.
33109 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
33110 one of the multilib default options.
33111 * config/nds32/nds32.opt (mgp-direct): Remove.
33112 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
33113 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
33115 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
33117 * config/nds32/nds32.opt (mcmodel): Add new option.
33118 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
33119 to describe code model.
33121 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
33124 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
33126 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
33128 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
33129 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
33130 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
33131 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
33132 __builtin_sh_set_fpscr.
33134 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33136 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
33137 after a funtion name just to indicate it is a function.
33138 ([-fsanitize-undefined-trap-on-error]): Likewise.
33139 ([-fdbg-cnt=]): Likewise.
33140 ([-mmemcpy]): Likewise.
33141 ([-mflush-func]): Likewise.
33142 ([-msynci]): Likewise.
33144 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
33146 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
33149 2015-01-12 Jakub Jelinek <jakub@redhat.com>
33151 PR tree-optimization/64563
33152 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
33153 instead of != VR_VARYING.
33156 * config/i386/i386.c (ix86_expand_prologue): Add
33157 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
33159 PR tree-optimization/64454
33160 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
33161 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
33162 for signed or [0, op1 - 1] for unsigned modulo.
33163 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
33164 even if op1 does not satisfy integer_pow2p.
33167 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
33169 2015-01-12 Jeff Law <law@redhat.com>
33172 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
33173 (trunchiqi2, truncsihi2): Similarly.
33175 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
33176 rather than calling F.
33178 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
33180 * tsan.c (instrument_expr): Use force_gimple_operand.
33181 Use may_be_nonaddressable_p instead of is_gimple_addressable.
33183 2015-01-12 Richard Biener <rguenther@suse.de>
33185 PR tree-optimization/64530
33186 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
33189 2015-01-12 Richard Biener <rguenther@suse.de>
33191 PR middle-end/64357
33192 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
33195 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33197 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
33198 Cortex-A17 tuning parameters.
33199 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
33201 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33203 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
33204 * config/arm/arm.c (arm_macro_fusion_p): New function.
33205 (arm_macro_fusion_pair_p): Likewise.
33206 (TARGET_SCHED_MACRO_FUSION_P): Define.
33207 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
33208 (ARM_FUSE_NOTHING): Likewise.
33209 (ARM_FUSE_MOVW_MOVT): Likewise.
33210 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
33211 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
33212 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
33213 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
33214 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
33215 arm_cortex_a5_tune): Specify fuseable_ops value.
33217 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
33220 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
33221 test for PIE with copy reloc.
33222 * configure: Regenerated.
33224 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33226 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
33228 (arm_tls_descseq_addr): Likewise.
33229 (arm_gen_movmemqi): Likewise.
33230 (arm_expand_epilogue_apcs_frame): Likewise.
33231 (arm_expand_epilogue): Likewise.
33232 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
33235 2015-01-12 Martin Liska <mliska@suse.cz>
33238 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
33239 volatility for correct operands.
33241 2015-01-12 Martin Liska <mliska@suse.cz>
33243 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
33244 indication that a function is not leaf.
33245 (sem_function::compare_polymorphic_p): Likewise.
33247 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
33249 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
33250 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
33251 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
33252 fold-const.h, tree-check.h.
33254 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
33258 * ipa-inline.c (compute_uninlined_call_time,
33259 compute_inlined_call_time): Use counts for extra precision when
33261 (big_speedup_p): Fix formating.
33262 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
33263 (relative_time_benefit): Remove.
33264 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
33265 merge guessed and read profile paths.
33266 (inline_small_functions): Count only !optimize_size functions into
33267 initial size; be more lax about sanity check when profile is used;
33268 be sure to update inlined function profile when profile is read.
33270 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
33273 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
33274 cost when edge becomes direct.
33275 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
33276 is resolved or when introducing new speculation.
33278 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
33282 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
33283 '||' to fix typo issue.
33285 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
33286 accept and return NULL.
33288 2015-01-12 Martin Liska <mliska@suse.cz>
33290 * cgraph.c (cgraph_edge::remove_callee): Move function to header
33291 file for being inlined.
33292 (cgraph_set_edge_callee): Delete.
33293 (cgraph_edge::redirect_callee): Move function to header file
33295 (cgraph_edge::make_direct): Use new function.
33296 (cgraph_edge::dump_edge_flags): New function created from
33297 static dump_edge_flags function.
33298 (cgraph_node::dump): Use new function.
33299 (cgraph_edge::verify_count_and_frequency): New function created
33300 from verify_edge_count_and_frequency.
33301 (cgraph_edge::verify_corresponds_to_fndecl): New function created
33302 from verify_edge_corresponds_to_fndecl.
33303 (verify_edge_corresponds_to_fndecl): Delete.
33304 (cgraph_node::verify_node): Use new function.
33305 * cgraph.h (cgraph_edge::set_callee): New function.
33306 (cgraph_edge::dump_edge_flags): Likewise.
33307 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
33309 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
33311 * ipa-utils.c (estimate_function_body_sizes): Do not
33312 free node params when called late with early=true.
33314 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
33316 * doc/md.texi (Instruction Patterns): Rewrite text for
33318 (Example): Likewise.
33320 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
33322 * doc/invoke.texi (Option Summary): Break long lines.
33323 [(-fdiagnostics-color)]: Put long literal in @smallexample
33325 [(-fsanitize-recover)]: Likewise.
33326 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
33327 [(-ffast-math)]: Likewise.
33328 [(--param max-inline-insns-recursive)]: Likewise.
33329 [(--param max-inline-recursive-depth)]: Likewise.
33330 [(-mno-text-section-literals)]: Likewise.
33332 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
33334 * doc/install.texi: Update for libgomp being renamed from "GNU
33335 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
33337 * doc/sourcebuild.texi: Likewise.
33339 2015-01-10 Anthony Green <green@moxielogic.com>
33341 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
33342 mul.x availability for moxiebox configuration.
33344 2015-01-09 Anthony Green <green@moxielogic.com>
33346 * config/moxie/moxie.md: Tabify assembly output.
33348 2015-01-09 Anthony Green <green@moxielogic.com>
33350 * config/moxie/moxie.md (CC_REG): Correct register definition.
33352 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
33354 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
33355 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
33358 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
33360 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
33362 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
33363 Jakub Jelinek <jakub@redhat.com>
33365 PR middle-end/64412
33366 * lto-streamer.h (lto_stream_offload_p): New declaration.
33367 * lto-streamer.c (lto_stream_offload_p): New variable.
33368 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
33369 at the same time as section_name_prefix.
33370 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
33371 if lto_stream_offload_p.
33372 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
33373 stream TREE_TARGET_OPTION if lto_stream_offload_p.
33374 (write_ts_function_decl_tree_pointers): Don't
33375 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
33376 * tree-streamer-in.c (unpack_value_fields): Don't stream
33377 TREE_TARGET_OPTION in if ACCEL_COMPILER.
33378 (lto_input_ts_function_decl_tree_pointers): Don't stream
33379 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
33380 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
33381 instead of section_name_prefix string comparisons.
33383 2015-01-09 Jakub Jelinek <jakub@redhat.com>
33385 PR rtl-optimization/64536
33386 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
33389 2015-01-09 Michael Collison <michael.collison@linaro.org>
33391 PR tree-optimization/64322
33392 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
33393 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
33395 2015-01-09 Tom de Vries <tom@codesourcery.com>
33397 PR rtl-optimization/64539
33398 * regcprop.c (kill_clobbered_values): Factor out of ...
33399 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
33400 instead of note_stores with kill_clobbered_value.
33402 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
33404 * ginclude/unwind-arm-common.h: Revert previous commit.
33406 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
33408 * config.gcc (arm*-*-freebsd*): New configuration.
33409 * config/arm/freebsd.h: New file.
33410 * config.host: Add extra components for arm*-*-freebsd*.
33411 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
33412 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
33414 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33416 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
33418 * config/rs6000/t-rtems: Add e6500 multilibs.
33420 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33422 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
33425 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33427 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
33428 MULTILIB_EXCEPTIONS.
33430 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33432 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
33433 MULTILIB_EXCEPTIONS.
33435 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
33437 * config/arm/t-rtems-eabi: Rename to...
33438 * config/arm/t-rtems: ...this.
33439 * config/arm/rtems-eabi.h: Rename to...
33440 * config/arm/rtems.h: ...this.
33441 * config.gcc (arm*-*-rtems*): Reflect changes above.
33443 2015-01-09 Richard Biener <rguenther@suse.de>
33445 PR tree-optimization/64410
33446 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
33448 (execute_update_addresses_taken): Deal with that.
33449 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
33450 loads/stores for complex variables.
33452 2015-01-09 Martin Liska <mliska@suse.cz>
33454 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
33456 (func_checker::compare_memory_operand): New function.
33457 (func_checker::compare_operand): Split case to newly
33459 (func_checker::compare_cst_or_decl): New function.
33460 (func_checker::compare_gimple_call): Identify
33462 (func_checker::compare_gimple_assign): Likewise.
33463 * ipa-icf-gimple.h: New function.
33465 2015-01-09 Martin Liska <mliska@suse.cz>
33468 * sreal.c (sreal::dump): Change unsigned format to signed for
33470 (sreal::to_double): Replace exp2 with scalbln.
33472 2015-01-09 Martin Liska <mliska@suse.cz>
33474 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
33475 * ipa-icf.c (sem_function::equals_private): Add support for target and
33476 (sem_item_optimizer::merge_classes): Remove redundant function
33477 optimization flags comparison.
33478 * tree.h (target_opts_for_fn): New function.
33480 2015-01-09 Tom de Vries <tom@codesourcery.com>
33482 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
33484 2015-01-09 Kito Cheng <kito@0xlab.org>
33486 PR rtl-optimization/64348
33487 * lra-constraints.c (split_reg): Fix caller-save store/restore
33488 instruction generation.
33490 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
33492 PR gcov-profile/61790
33493 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
33494 long long. Fallback to int64_t if host doesn't have long long and
33495 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
33497 2015-01-08 Jakub Jelinek <jakub@redhat.com>
33499 PR tree-optimization/63989
33500 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
33501 from 1000 to 10000.
33502 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
33503 (get_stridx): If we don't have a record for certain SSA_NAME,
33504 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
33505 constant offset, call get_stridx_plus_constant.
33506 (get_stridx_plus_constant): New function.
33507 (zero_length_string): Don't use get_stridx here.
33510 PR middle-end/64388
33511 * dse.c (struct insn_info): Mention frame_read set also
33512 before reload for tail calls on some targets.
33513 (scan_insn): Revert 2014-12-22 change. Set frame_read
33514 also before reload for tail calls if
33515 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
33516 instead of add_non_frame_wild_read for non-const/memset
33517 tail calls after reload.
33519 2015-01-08 Jason Merrill <jason@redhat.com>
33521 * ubsan.c (do_ubsan_in_current_function): New.
33522 (pass_ubsan::gate): Use it.
33523 * ubsan.h: Declare it.
33524 * convert.c (convert_to_integer): Use it.
33526 2015-01-08 Jakub Jelinek <jakub@redhat.com>
33529 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
33530 compare_code when it is unconditionally overwritten afterwards.
33531 Use ix86_reverse_condition instead of reverse_condition. Don't
33532 change code if *reverse_condition* returned UNKNOWN and don't
33533 swap ct/cf and negate diff in that case.
33535 2015-01-08 Mike Stump <mikestump@comcast.net>
33537 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
33538 (pass_tsan_O0::gate): Likewise.
33539 * extend.texi (Function Attributes): Add no_sanitize_thread
33542 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
33544 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
33545 for registering builtins.
33546 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
33547 add -fopenmp to the argv_obstack used when invoking
33548 compile_for_target.
33550 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
33551 add "-m32" or "-m64" to argv_obstack.
33552 (generate_host_descr_file): Likewise, when invoking host_compiler.
33553 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
33556 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
33558 * config/sh/sh-mem.cc: Use constant as second operand when emitting
33561 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
33564 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
33565 constant load if constant operand fits into I08.
33567 2015-01-08 Jakub Jelinek <jakub@redhat.com>
33570 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
33571 and TREE_THIS_VOLATILE for MEM_REFs.
33572 (build5_stat): Fix up initialization of TREE_READONLY and
33573 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
33575 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
33578 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
33579 of r for the second alternative of the destination operand.
33581 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
33584 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
33586 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
33588 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
33590 ([-fivar-visibility], [-fvisibility]): Likewise.
33592 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
33594 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
33595 the file where @code, @command, etc is more appropriate.
33597 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
33599 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
33600 of -mrecip= documentation.
33602 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33605 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
33606 correct reload handler if -m32 -mpowerpc64 is used.
33608 2015-01-06 Tom de Vries <tom@codesourcery.com>
33610 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
33612 2015-01-08 Christian Bruel <christian.bruel@st.com>
33615 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
33617 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
33619 PR tree-optimization/63259
33620 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
33621 if optab exists for 16bit byteswap.
33623 2015-01-06 Jakub Jelinek <jakub@redhat.com>
33625 * opts.c (common_handle_option): Add support for
33626 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
33627 * doc/invoke.texi: Document -fno-sanitize=all,
33628 -f{,no-}sanitize-recover=all. Document that
33629 -fsanitize=float-cast-overflow is not enabled
33630 by -fsanitize=undefined. Fix up documentation
33631 of -f{,no-}sanitize-recover.
33633 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
33635 * config.gcc: Add Visium support.
33636 * configure.ac: Likewise.
33637 * configure: Regenerate.
33638 * doc/extend.texi (interrupt attribute): Add Visium.
33639 * doc/invoke.texi: Document Visium options.
33640 * doc/install.texi: Document Visium target.
33641 * doc/md.texi: Document Visium constraints.
33642 * common/config/visium: New directory.
33643 * config/visium: Likewise.
33645 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
33647 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
33648 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
33650 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
33652 * combine.c (combine_validate_cost): Do not count the cost of a
33653 split I2 twice. Do not display it twice in the dump, either.
33655 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
33657 Revert parts of r219199.
33658 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
33660 ([-Wtraditional]): Restore markup on <limits.h>.
33662 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
33665 * doc/invoke.texi: Document -Wsuggest-override.
33667 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
33669 PR rtl-optimization/64287
33670 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
33671 (process_options): Disable flag_ipa_ra if profiling.
33673 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
33675 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
33677 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
33679 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
33680 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
33681 put under #if TARGET_LOOPS guard.
33683 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
33685 * config/i386/i386.c (output_387_binary_op): Use std::swap.
33687 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
33689 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
33690 * rtl.h (refers_to_regno_p): Add overload.
33692 * bt-load.c: Likewise.
33693 * combine.c: Likewise.
33694 * df-scan.c: Likewise.
33695 * sched-deps.c: Likewise.
33696 * config/s390/s390.c: Likewise.
33697 * config/m32r/m32r.c: Likewise.
33698 * config/rs6000/spe.md: Likewise.
33699 * config/rs6000/rs6000.c: Likewise.
33700 * config/pa/pa.c: Likewise.
33701 * config/stormy16/stormy16.c: Likewise.
33702 * config/cris/cris.c: Likewise.
33703 * config/arc/arc.md: Likewise.
33704 * config/arc/arc.c: Likewise.
33705 * config/sh/sh.md: Likewise.
33706 * config/sh/sh.c: Likewise.
33707 * config/frv/frv.c: Likewise.
33709 2015-01-05 Jakub Jelinek <jakub@redhat.com>
33712 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
33713 call as cleanup of the whole body.
33714 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
33715 * tsan.c (replace_func_exit): New function.
33716 (instrument_func_exit): Moved earlier.
33717 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
33718 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
33720 (tsan_pass): Don't call instrument_func_exit.
33721 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
33722 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
33726 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
33727 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
33728 it to libubsan handler instead of EXPR. Fold comparisons earlier,
33729 if the result is integer_zerop, return NULL_TREE.
33730 * convert.c (convert_to_integer): Pass expr as ARG.
33732 PR tree-optimization/64465
33733 * tree-inline.c (redirect_all_calls): During inlining
33734 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
33735 changed the stmt to a non-throwing call.
33737 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
33739 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
33740 etc markup throughout the file.
33742 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
33744 Enable experimental TSAN support for Ada.
33745 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
33747 2015-01-05 Jakub Jelinek <jakub@redhat.com>
33749 PR tree-optimization/64494
33750 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
33751 clear SSA_NAME_ANTI_RANGE_P flag.
33753 2015-01-05 Marek Polacek <polacek@redhat.com>
33755 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
33757 2015-01-05 Jakub Jelinek <jakub@redhat.com>
33759 Update copyright years.
33761 * gcc.c (process_command): Update copyright notice dates.
33762 * gcov-dump.c: Ditto.
33764 * doc/cpp.texi: Bump @copying's copyright year.
33765 * doc/cppinternals.texi: Ditto.
33766 * doc/gcc.texi: Ditto.
33767 * doc/gccint.texi: Ditto.
33768 * doc/gcov.texi: Ditto.
33769 * doc/install.texi: Ditto.
33770 * doc/invoke.texi: Ditto.
33772 * auto-profile.c, auto-profile.h: Fix up Copyright line.
33774 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
33776 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
33778 ([-fvtable-verify], [-fvtv-debug]): Likewise.
33779 ([-Wabi]): Likewise.
33780 ([-fmessage-length]): Likewise.
33781 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
33782 ([-Wno-discarded-qualifiers]): Likewise.
33783 ([-Wnodiscarded-array-qualifiers]): Likewise.
33784 ([-Wno-virtual-move-assign]): Likewise.
33785 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
33786 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
33787 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
33788 ([-fsanitize-undefined-trap-on-error]): Likewise.
33789 ([-floop-interchange]): Likewise.
33790 ([-ftree-coalesce-inlined-vars]): Likewise.
33791 ([-fvect-cost-model]): Likewise.
33792 ([-flto]): Likewise.
33793 ([--param]): Likewise.
33794 (Spec Files): Likewise.
33795 ([-mstrict-align]): Likewise.
33796 ([-mfix-cortex-a53-835769]): Likewise.
33797 ([-march], [-mtune]): Likewise.
33798 ([-mpic-register]): Likewise.
33799 ([-munaligned-access]): Likewise.
33800 ([-msp8]): Likewise.
33801 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
33802 (AVR Built-in Macros): Likewise.
33803 ([-mpreferred-stack-boundary]): Likewise.
33804 ([-mtune-crtl]): Likewise.
33805 ([-mashf]): Likewise.
33806 ([-mmcu=]): Likewise.
33807 ([-minrt]): Likewise.
33808 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
33809 ([-mupper-regs]): Likewise.
33810 ([-matomic-model]): Likewise.
33811 ([-mdiv]): Likewise.
33812 ([-mzdcbranch]): Likewise.
33813 ([-mdisable-callt]): Likewise.
33814 ([-msoft-float]): Likewise.
33815 ([-m8byte-align]): Likewise.
33816 ([-fstack-reuse]): Likewise.
33818 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33820 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
33821 Fix markup, light copy-editing.
33822 ([-fauto-profile]): Rewrite to fix formatting and content
33825 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33827 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
33828 Copy-edit description.
33829 ([-fisolate-erroneous-paths-attribute]): Likewise.
33830 * common.opt (fisolate-erroneous-paths-dereference):
33831 Copy-edit description.
33832 (fisolate-erroneous-paths-attribute): Likewise.
33834 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33836 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
33839 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
33841 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
33842 ([-fvtv-debug]): Likewise.
33843 ([-Wc++-compat]): Likewise.
33844 ([-Wc++11-compat]): Likewise.
33845 ([-Wc++14-compat]): Likewise.
33846 ([-Wno-sized-deallocation]): Likewise.
33847 ([-femit-class-debug-always]): Likewise.
33848 ([-femit-struct-debug-detailed]): Likewise.
33849 ([-fno-keep-inline-dllexport]): Likewise.
33850 ([-fira-algorithm]): Likewise.
33851 ([-fira-region]): Likewise.
33852 ([-flra-remat]): Likewise.
33853 ([-fipa-ra]): Likewise.
33854 ([-fhoist-adjacent-loads]): Likewise.
33855 ([-fisolate-erroneous-paths-dereference]): Likewise.
33856 ([-fisolate-erroneous-paths-attribute]): Likewise.
33857 ([-ftree-switch-conversion]): Likewise.
33858 ([-ftree-tail-merge]): Likewise.
33859 ([-ftree-loop-if-convert]): Likewise.
33860 ([-ftree-loop-if-convert-stores]): Likewise.
33861 ([-ftree-loop-distribution]): Likewise.
33862 ([-ftree-loop-distribute-patterns]): Likewise.
33863 ([-flto-compression-level]): Likewise.
33864 ([-flto-report]): Likewise.
33865 ([-flto-report-wpa]): Likewise.
33866 ([-fuse-linker-plugin]): Likewise.
33867 ([-mfix-cortex-a53-835769]): Likewise.
33868 ([-mno-fix-cortex-a53-835769]): Likewise.
33869 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
33870 explicit listing; add a note to the discussion indicating they
33871 exist. Reorder table to group similar options. Add missing
33872 @opindex entries. Add @need commands throughout the table to
33873 allow it to be split across multiple pages.
33874 ([-m8bit-idiv]): Fix @opindex.
33875 ([-mavx256-split-unaligned-load]): Likewise.
33876 ([-mavx256-split-unaligned-store]): Likewise.
33877 ([-mstack-protector-guard]): Likewise.
33878 ([-mcpu=]): Likewise.
33879 ([-mcpu]): Likewise.
33880 ([-mpointer-size=]): Likewise.
33882 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
33884 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
33885 instead of `m' constraint. Likewise for unnamed movb comparison
33886 patterns using reg_before_reload_operand predicate.
33887 * config/pa/predicates.md (reg_before_reload_operand): Tighten
33888 predicate to reject register index and LO_SUM DLT memory forms
33891 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
33893 * doc/invoke.texi (Option Summary): Fix spelling of
33894 -fdevirtualize-at-ltrans.
33895 ([-fdevirtualize]): Fix markup.
33896 ([-fdevirtualize-speculatively]): Fix typo.
33897 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
33898 implementor-speaky.
33899 * common.opt (fdevirtualize-at-ltrans): Likewise.
33900 * ipa-devirt.c: Fix typos in comments throughout the file.
33901 (ipa_devirt): Fix typos in format strings for dump output.
33903 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
33905 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
33906 discussion of defaults, light copy-editing.
33908 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
33910 * tsan.c (instrument_expr): corrected previous checkin.
33912 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
33914 Instrument bit field and unaligned accesses for TSAN.
33915 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
33916 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
33917 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
33918 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
33919 unaligned memory regions.
33921 2015-01-01 Anthony Green <green@moxielogic.com>
33923 * config/moxie/predicates.md (moxie_general_movsrc_operand):
33924 Restrict move source register offsets to 16 bits.
33926 Copyright (C) 2015 Free Software Foundation, Inc.
33928 Copying and distribution of this file, with or without modification,
33929 are permitted in any medium without royalty provided the copyright
33930 notice and this notice are preserved.