1 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
2 Marek Polacek <polacek@redhat.com>
3 Jason Merrill <jason@redhat.com>
5 * convert.c (maybe_fold_build1_loc): New.
6 (maybe_fold_build2_loc): New.
7 (convert_to_pointer_1): Split out from convert_to_pointer.
8 (convert_to_pointer_nofold): New.
9 (convert_to_real_1): Split out from convert_to_real.
10 (convert_to_real_nofold): New.
11 (convert_to_integer_1): Split out from convert_to_integer.
12 (convert_to_integer_nofold): New.
13 (convert_to_complex_1): Split out from convert_to_complex.
14 (convert_to_complex_nofold): New.
15 * convert.h: Declare new functions.
16 * tree-complex.c (create_one_component_var): Break up line to
17 avoid sequence point issues.
19 2015-11-13 Jason Merrill <jason@redhat.com>
21 * fold-const.c (fold_convert_const): Fold changing cv-quals on
24 * hash-map.h (hash_map::empty): New.
26 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
28 * gcc/omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO &
30 (oacc_loop_fixed_partitions): Correct return type to bool.
31 (oacc_loop_auto_partitions): New.
32 (oacc_loop_partition): Take mask argument, call
33 oacc_loop_auto_partitions.
34 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
36 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
38 * config/rs6000/constraints.md (we constraint): New constraint for
39 64-bit power9 vector support.
40 (wL constraint): New constraint for the element in a vector that
41 can be addressed by the MFVSRLD instruction.
43 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
45 (convert_int_to_float128): Likewise.
46 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
47 hardware support for IEEE 128-bit floating point.
48 (rs6000_expand_float128_convert): Likewise.
49 (convert_float128_to_int): Likewise.
50 (convert_int_to_float128): Likewise.
52 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
53 ISA 3.0 hardware IEEE 128-bit floating point.
54 (UNSPEC_IEEE128_MOVE): Likewise.
55 (UNSPEC_IEEE128_CONVERT): Likewise.
56 (FMA_F): Add support for IEEE 128-bit floating point hardware
58 (Ff): Add support for DImode.
60 (any_fix code iterator): New and updated iterators for IEEE
61 128-bit floating point hardware support.
62 (any_float code iterator): Likewise.
63 (s code attribute): Likewise.
64 (su code attribute): Likewise.
65 (az code attribute): Likewise.
66 (uns code attribute): Likewise.
67 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
68 floating point hardware support.
69 (abs<mode>2, FLOAT128 iterator): Likewise.
70 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
71 floating point hardware.
72 (sub<mode>3, IEEE128 iterator): Likewise.
73 (mul<mode>3, IEEE128 iterator): Likewise.
74 (div<mode>3, IEEE128 iterator): Likewise.
75 (copysign<mode>3, IEEE128 iterator): Likewise.
76 (sqrt<mode>2, IEEE128 iterator): Likewise.
77 (neg<mode>2, IEEE128 iterator): Likewise.
78 (abs<mode>2, IEEE128 iterator): Likewise.
79 (nabs<mode>2, IEEE128 iterator): Likewise.
80 (fma<mode>4_hw, IEEE128 iterator): Likewise.
81 (fms<mode>4_hw, IEEE128 iterator): Likewise.
82 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
83 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
84 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
85 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
86 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
87 (fix_fixuns code attribute): Likewise.
88 (float_floatuns code attribute): Likewise.
89 (fix<uns>_<mode>si2_hw): Likewise.
90 (fix<uns>_<mode>di2_hw): Likewise.
91 (float<uns>_<mode>si2_hw): Likewise.
92 (float<uns>_<mode>di2_hw): Likewise.
93 (xscvqp<su>wz_<mode>): Likewise.
94 (xscvqp<su>dz_<mode>): Likewise.
95 (xscv<su>dqp_<mode): Likewise.
96 (ieee128_mfvsrd): Likewise.
97 (ieee128_mfvsrwz): Likewise.
98 (ieee128_mtvsrw): Likewise.
99 (ieee128_mtvsrd): Likewise.
100 (trunc<mode>df2_odd): Likewise.
101 (cmp<mode>_h): Likewise.
102 (128-bit GPR splitters): Don't split a 128-bit move that is a
103 direct move between GPR and vector registers using ISA 3.0 direct
105 (maddld4): Add support for the ISA 3.0 integer multiply-add
108 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
110 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
111 constraint. Disable the VSX<->GPR direct move helpers if we have
112 the MFVSRLD and MTVSRDD instructions.
113 (rs6000_secondary_reload_simple_move): Add support for doing
114 vector direct moves directly without additional scratch registers
115 if we have ISA 3.0 instructions.
116 (rs6000_secondary_reload_direct_move): Update comments.
117 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
120 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
121 direct move instructions.
122 (vsx_movti_64bit): Likewise.
123 (vsx_extract_<mode>): Likewise.
125 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
126 macros for ISA 3.0 direct move instructions.
127 (TARGET_DIRECT_MOVE_128): Likewise.
128 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
131 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
132 constraints. Update wa documentation to say not to use %x<n> on
133 instructions that only take Altivec registers.
135 2015-11-13 David Malcolm <dmalcolm@redhat.com>
137 * Makefile.in (OBJS): Add gcc-rich-location.o.
138 * diagnostic.c (diagnostic_append_note): Pass line_table to
140 (emit_diagnostic): Likewise.
142 (inform_n): Likewise.
144 (warning_at): Likewise.
145 (warning_n): Likewise.
147 (permerror): Likewise.
150 (error_at): Likewise.
152 (fatal_error): Likewise.
153 (internal_error): Likewise.
154 (internal_error_no_backtrace): Likewise.
155 (source_range::debug): Likewise.
156 * gcc-rich-location.c: New file.
157 * gcc-rich-location.h: New file.
158 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
159 (warning_at): Likewise.
160 * gimple.h (gimple_set_block): Use set_block function.
161 * input.c (dump_line_table_statistics): Dump stats on how many
162 ranges were optimized vs how many needed ad-hoc table.
163 (write_digit_row): Add "map" param; use its range_bits
164 to calculate the per-character offset.
165 (dump_location_info): Print the range and column bits for each
166 ordinary map. Use the range bits to calculate the per-character
167 offset. Pass the map as a new param to the various calls to
168 write_digit_row. Eliminate uses of
169 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
170 * print-tree.c (print_node): Print any source range information.
171 * rtl-error.c (diagnostic_for_asm): Likewise.
172 * toplev.c (general_init): Initialize line_table's
174 * tree-cfg.c (move_block_to_fn): Likewise.
175 (move_block_to_fn): Likewise.
176 * tree-inline.c (copy_phis_for_bb): Likewise.
177 * tree.c (tree_set_block): Likewise.
178 (get_pure_location): New function.
179 (set_source_range): New functions.
180 (set_block): New function.
181 (set_source_range): New functions.
182 * tree.h (CAN_HAVE_RANGE_P): New.
183 (EXPR_LOCATION_RANGE): New.
184 (EXPR_HAS_RANGE): New.
185 (get_expr_source_range): New inline function.
186 (DECL_LOCATION_RANGE): New.
187 (set_source_range): New decls.
188 (get_decl_source_range): New inline function.
190 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
192 PR tree-optimization/67682
193 * tree-vect-slp.c (vect_split_slp_store_group): New.
194 (vect_analyze_slp_instance): During basic block SLP, recurse on
195 subgroups if vect_build_slp_tree fails after 1st vector.
197 2015-11-13 Christian Bruel <christian.bruel@st.com>
200 * config/arm/arm.c (arm_option_override): Move NEON check...
201 (arm_option_check_internal): here
202 (arm_file_start): Move .fpu print...
203 (arm_declare_function_name): here
204 (arm_option_print): Dump current fpu name.
205 * config/arm/arm.opt (arm_fpu_index): Mark Save.
207 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
208 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
210 * combine.c (subst): Don't substitute or simplify when
211 handling register-wise widening multiply.
212 (force_to_mode): Likewise.
214 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
216 PR tree-optimization/68264
217 * tree-call-cdce.c (gen_one_condition): Update commentary.
218 (gen_conditions_for_pow_int_base): Invert the sense of the tests
219 passed to gen_one_condition.
220 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
221 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
222 using EDGE_FALSE_VALUE for edges to the call block and
223 EDGE_TRUE_VALUE for the others.
225 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
227 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
230 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
232 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
234 2015-11-13 Tom de Vries <tom@codesourcery.com>
236 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
239 2015-11-13 Tom de Vries <tom@codesourcery.com>
241 * gen-pass-instances.awk (handle_line): Add args_str variable.
243 2015-11-13 Martin Liska <mliska@suse.cz>
245 * graphite-poly.c (free_scop): Release scop->drs vector.
246 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
248 (try_generate_gimple_bb): Use vNULL as a default initialization
251 2015-11-13 Martin Liska <mliska@suse.cz>
254 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
255 Replace array initialization (using a variable post-increment)
256 that possible triggers multiple unsequenced modifications
257 with a pair of pushes to a vector.
259 2015-11-13 Richard Biener <rguenther@suse.de>
261 PR tree-optimization/68306
262 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
263 loop related checks ...
264 (vect_verify_datarefs_alignment): ... here.
265 (vect_slp_analyze_and_verify_node_alignment): Compute and
266 verify alignment of the single DR that it matters.
267 * tree-vect-stmts.c (vectorizable_store): Add an assert.
268 (vectorizable_load): Add a comment.
269 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
270 for determining load cost.
272 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
274 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
275 mix of boolean and integer vectors in a single statement.
276 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
277 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
278 determine constant type.
279 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
282 2015-11-13 Alan Hayward <alan.hayward@arm.com>
284 PR tree-optimization/66558
285 * tree-vect-loop.c (is_integer_induction):Add.
286 (vectorizable_reduction): Add integer induction checks.
288 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
290 Revert [ARM] Remove neon-testgen.ml and generated tests.
292 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
294 [ARM] Remove neon-testgen.ml and generated tests.
296 * config/arm/neon-testgen.ml: Remove.
298 2015-11-13 Richard Biener <rguenther@suse.de>
300 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
301 Signal fatal failure if early checks fail.
302 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
303 do not bother testing further vector sizes.
305 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
307 * config/i386/predicates.md (misaligned_operand): Return true if
308 operand is aligned to less than its natural alignmnet.
310 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
312 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
313 (vec_cmpu@var{m}@var{n}): New item.
314 (vcond@var{m}@var{n}): Specify comparison is signed.
315 (vcondu@var{m}@var{n}): New item.
316 (vcond_mask_@var{m}@var{n}): New item.
317 (maskload@var{m}@var{n}): New item.
318 (maskstore@var{m}@var{n}): New item.
320 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
322 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
323 types of stored value and storage are compatible.
325 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
327 * gcc.c (POST_LINK_SPEC): Define if not already defined.
328 (LINK_COMMAND_SPEC): Use post_link.
329 (post_link_spec): New, initialize to POST_LINK_SPEC.
330 (post_link): Initialize new static spec.
331 * doc/tm.texi.in (POST_LINK_SPEC): Document.
332 * doc/tm.texi: Regenerated.
334 2015-11-13 David Malcolm <dmalcolm@redhat.com>
337 * Makefile.in (GCC_OBJS): Add spellcheck.o.
338 (OBJS): Add spellcheck-tree.o.
339 * gcc.c: Include "spellcheck.h".
340 (suggest_option): New function.
341 (driver::handle_unrecognized_options): Call suggest_option to
342 provide a hint about misspelled options.
343 * spellcheck.c: Update file comment.
344 (levenshtein_distance): Convert 4-param implementation from static
345 to extern scope. Remove note about unit tests from leading
346 comment for const char * implementation. Move tree
348 * spellcheck-tree.c: New file.
349 * spellcheck.h (levenshtein_distance): Add 4-param decl.
351 2015-11-13 David Malcolm <dmalcolm@redhat.com>
353 * Makefile.in (OBJS): Add spellcheck.o.
354 * spellcheck.c: New file.
355 * spellcheck.h: New file.
357 2015-11-13 James Bowman <james.bowman@ftdichip.com>
359 * config/ft32/ft32.md (*sne): New insn pattern.
361 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
363 * gcc/cprop.c (is_too_expensive): Remove.
365 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
367 * gcc/gcse.h (gcse_or_cprop_is_too_expensive): Declare.
368 * gcc/gcse.c (is_too_expensive): Rename to ...
369 (gcse_or_cprop_is_too_expensive): ... this.
370 Expand warning to add required size of max-gcse-memory.
371 (one_pre_gcse_pass): Use it.
372 (one_code_hoisting_pass): Use it.
373 * gcc/params.def (max-gcse-memory): Increase from 50MB to 128MB.
375 2015-11-12 James Norris <jnorris@codesourcery.com>
376 Joseph Myers <joseph@codesourcery.com>
378 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
379 GF_OMP_TARGET_KIND_OACC_DECLARE.
380 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
381 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
382 * gimplify.c (oacc_declare_returns): New.
383 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
384 (device_resident_p): New function.
385 (oacc_default_clause): Handle device_resident clause.
386 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
387 (gimplify_expr): Handle OACC_DECLARE.
388 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
389 * omp-low.c (expand_omp_target): Handle
390 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
391 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
392 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
393 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
394 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
395 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
396 GOMP_MAP_DEVICE_RESIDENT.
398 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
400 [ARM] Remove neon-testgen.ml and generated tests.
402 * config/arm/neon-testgen.ml: Remove.
404 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
406 * config/aarch64/aarch64-cores.def (qdf24xx): New.
407 * config/aarch64/aarch64-tune.md: Regenerated.
408 * config/arm/arm-cores.def (qdf24xx): New.
409 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
410 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
411 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
412 (ARM Options/-mtune); Likewise.
414 2015-11-12 Martin Liska <mliska@suse.cz>
416 * config/i386/i386.c (ix86_valid_target_attribute_p):
417 Finalize options at the of the function.
418 * gcc.c (driver_get_configure_time_options): Call newly
419 introduced init_opts_obstack.
420 * lto-wrapper.c (main): Likewise.
421 * opts.c (init_opts_obstack): New function.
422 (init_options_struct): Call newly
423 introduced init_opts_obstack.
424 * opts.h (init_options_struct): Declare.
426 2015-11-12 Martin Liska <mliska@suse.cz>
429 * ipa-icf.c (void sem_item::set_hash): New function.
430 (sem_function::get_hash): Use renamed m_hash member variable.
431 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
432 (sem_item::update_hash_by_local_refs): Likewise.
433 (sem_variable::get_hash): Use renamed m_hash member variable.
434 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
435 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
436 (sem_item_optimizer::build_graph): As the hash value of an item
437 is lazy initialized, force the calculation.
438 * ipa-icf.h (set_hash): Declare new function and rename hash member
441 2015-11-12 Richard Biener <rguenther@suse.de>
443 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
444 Rename to vect_slp_analyze_instance_dependence.
445 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
446 Remove WAR special-case.
447 (vect_slp_analyze_node_dependences): Instead add more specific
448 code here, not relying on other instances being vectorized.
449 (vect_slp_analyze_instance_dependence): Adjust accordingly.
450 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
451 vertical space in dump files.
452 (vect_print_slp_tree): Likewise.
453 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
454 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
455 not vectorized stmts until after dependence analysis removed
456 instances. Merge alignment and dependence checks.
457 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
460 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
462 * config/aarch64/aarch64-protos.h (tune_params): Add new members
463 "max_case_values" and "cache_line_size".
464 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
466 (aarch64_override_options_internal): Tune heuristics based on new
467 members in "tune_params".
468 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
470 2015-11-12 Richard Biener <rguenther@suse.de>
472 PR tree-optimization/68306
473 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
474 relevant and vectorizable checks here.
475 (vect_verify_datarefs_alignment): Add relevant check here.
477 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
479 * gimplify.c (oacc_default_clause): New.
480 (omp_notice_variable): Call it.
482 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
484 PR tree-optimization/68305
485 * tree-vect-slp.c (vect_get_constant_vectors): Support
486 COND_EXPR with SSA_NAME as a condition.
488 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
490 * config/visium/visium-protos.h (notice_update_cc): Delete.
491 (print_operand): Likewise.
492 (print_operand_address): Likewise.
494 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
496 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
497 FUNCTION_VALUE_REGNO_P): Remove.
498 * config/alpha/alpha-protos.h (function_value): Remove.
499 * config/alpha/alpha.c (function_value): Rename to...
500 (alpha_function_value_1): ... this. Make static.
501 (alpha_function_value, alpha_libcall_value,
502 alpha_function_value_regno_p): New functions.
503 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
504 TARGET_FUNCTION_VALUE_REGNO_P): Define.
506 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
508 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
509 * config/alpha/alpha.c (alpha_memory_latency): Make static.
510 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
511 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
513 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
516 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
517 assertion on the CFA register.
519 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
521 * expr.c (do_store_flag): Expand vector comparison as
522 VEC_COND_EXPR if vector comparison is not supported
525 2015-11-12 Renlin Li <renlin.li@arm.com>
527 * config/arm/arm.md (addsi3_compare_op2): Make the order of
528 assembly pattern consistent with constraint order.
530 2015-11-12 Tom de Vries <tom@codesourcery.com>
532 * gen-pass-instances.awk (handle_line): Simplify match regexp.
534 2015-11-12 Tom de Vries <tom@codesourcery.com>
536 * gen-pass-instances.awk (handle_line): Simplify init of
539 2015-11-12 Tom de Vries <tom@codesourcery.com>
541 * gen-pass-instances.awk (handle_line): Rename var where to
544 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
546 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
547 do not expand to rtl.
549 2015-11-12 Richard Biener <rguenther@suse.de>
551 PR tree-optimization/58497
552 * tree-vect-generic.c: Include gimplify.h.
553 (tree_vec_extract): Lookup constant/constructor DEFs.
554 (do_cond): Unshare cond.
556 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
558 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
559 combined insn if the alignment of vector mode memory operand
560 is less than ssememalign.
562 2015-11-12 Tom de Vries <tom@codesourcery.com>
564 * gen-pass-instances.awk (handle_line): Print parentheses and
565 pass_name explicitly.
567 2015-11-12 Tom de Vries <tom@codesourcery.com>
569 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
572 2015-11-12 Tom de Vries <tom@codesourcery.com>
574 * gen-pass-instances.awk (handle_line): Add comments.
576 2015-11-12 Tom de Vries <tom@codesourcery.com>
578 * gen-pass-instances.awk (handle_line): Rename len_of_end to
581 2015-11-12 Tom de Vries <tom@codesourcery.com>
583 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
585 2015-11-12 Tom de Vries <tom@codesourcery.com>
587 * gen-pass-instances.awk (handle_line): Restructure using early-out.
589 2015-11-12 Tom de Vries <tom@codesourcery.com>
591 * gen-pass-instances.awk (handle_line): Unify semicolon use.
593 2015-11-12 Tom de Vries <tom@codesourcery.com>
595 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
597 2015-11-12 Tom de Vries <tom@codesourcery.com>
599 * gen-pass-instances.awk: Add emacs indent setting.
601 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
603 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
605 Move Convert A/(B/C) to (A/B)*C to match.pd.
606 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
607 Move Optimize (X & (-A)) / A where A is a power of 2, to
608 X >> log2(A) to match.pd.
610 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
611 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
612 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
614 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
616 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
618 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
620 (neon_vst2_lane<mode>): Likewise.
621 (neon_vld3_lane<mode>): Likewise.
622 (neon_vst3_lane<mode>): Likewise.
623 (neon_vld4_lane<mode>): Likewise.
624 (neon_vst4_lane<mode>): Likewise.
626 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
627 Sebastian Pop <s.pop@samsung.com>
629 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
630 New member codegen_error
631 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
633 (translate_isl_ast_node_user): Early return in case of error.
634 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
635 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
636 (add_parameters_to_ivs_params): Remove macro.
637 (graphite_regenerate_ast_isl): Add if_region pointer to region.
638 * graphite-poly.c (new_poly_dr): Remove macro.
640 (new_gimple_poly_bb): Same.
641 (free_gimple_poly_bb): Same.
642 (print_scop_params): Same.
643 * graphite-poly.h (struct poly_dr): Same.
644 (struct poly_bb): Add new_bb.
645 (gbb_from_bb): Remove dead code.
647 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
648 (parameter_index_in_region): Same.
649 (find_scop_parameters): Same.
650 (build_cross_bb_scalars_def): New.
651 (build_cross_bb_scalars_use): New.
652 (graphite_find_cross_bb_scalar_vars): New
653 (try_generate_gimple_bb): Reads and Writes.
654 (build_alias_set): Move.
655 (gather_bbs::before_dom_children): Gather bbs visited.
656 (build_scops): call build_alias_set.
657 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
658 (remove_simple_copy_phi): Delete.
659 (remove_invariant_phi): Delete.
660 (simple_copy_phi_p): Delete.
661 (reduction_phi_p): Delete.
662 (isl_id_for_dr): Remove unused param.
663 (parameter_index_in_region_1): Remove macro usage.
664 (set_scop_parameter_dim): Same.
665 (add_param_constraints): Same.
666 (add_conditions_to_constraints): Same
667 (build_scop_iteration_domain): Same.
668 (pdr_add_alias_set): Comment.
669 (add_scalar_version_numbers): New.
670 (build_poly_dr): ISL id.
671 (build_scop_drs): Move.
672 (build_poly_sr_1): Same.
673 (insert_stmts): Remove.
674 (build_poly_sr): New.
675 (new_pbb_from_pbb): Delete.
676 (insert_out_of_ssa_copy_on_edge): Delete.
677 (create_zero_dim_array): Delete.
678 (scalar_close_phi_node_p): Delete.
679 (propagate_expr_outside_region): Delete.
680 (rewrite_close_phi_out_of_ssa): Delete.
681 (rewrite_phi_out_of_ssa): Delete.
682 (rewrite_degenerate_phi): Delete.
683 (rewrite_reductions_out_of_ssa): Delete.
684 (rewrite_cross_bb_scalar_dependence): Delete.
685 (handle_scalar_deps_crossing_scop_limits):
686 (rewrite_cross_bb_scalar_deps): Delete.
687 (build_poly_scop): Remove calls to out-of-ssa functions.
688 * graphite.c (graphite_transform_loops): Early return in case of
690 * sese.c (debug_rename_map_1): Delete.
691 (debug_rename_map): Delete.
692 (sese_record_loop): Remove macro.
693 (build_sese_loop_nests): Same.
694 (new_sese_info): Same.
695 (free_sese_info): Same.
696 (sese_insert_phis_for_liveouts):
697 (is_loop_closed_ssa_use): New.
698 (number_of_phi_nodes): New.
699 (bb_contains_loop_close_phi_nodes): New.
700 (bb_contains_loop_phi_nodes): New.
701 (phi_uses_name): New.
703 (get_rename): Add old_bb and loop_phi for more precise matching of
705 (set_rename): Pass region.
706 (later_of_the_two): New.
707 (gsi_insert_earliest): New.
708 (collect_all_ssa_names): New.
709 (substitute_ssa_name): New.
710 (rename_all_uses): New.
711 (get_rename_from_scev): New.
712 (rename_uses): Pass old_bb for more precise matching of exprs.
713 (get_def_bb_for_const): New.
717 (copy_loop_phi_args): New.
718 (copy_loop_phi_nodes): New.
719 (get_loop_init_value): New.
720 (find_init_value): New.
721 (find_init_value_close_phi): New.
722 (copy_loop_close_phi_args): New.
723 (copy_loop_close_phi_nodes): New.
724 (add_phi_arg_for_new_expr): New.
725 (copy_cond_phi_args): New.
726 (copy_cond_phi_nodes): New.
727 (copy_phi_nodes): New.
728 (should_copy_to_new_region): New.
729 (set_rename_for_each_def): New.
730 (graphite_copy_stmts_from_block): Early return in case of error.
731 (copy_bb_and_scalar_dependences): Same.
732 * sese.h (vec_find): New.
733 (SESE_PARAMS): Delete.
734 (SESE_LOOPS): Delete.
735 (SESE_LOOP_NEST): Delete.
736 (sese_contains_loop): Remove macro usage.
737 (sese_nb_params): Same.
738 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
740 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
742 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
743 isl_union_map_add_map on every pbb->schedule.
745 2015-11-11 Tom de Vries <tom@codesourcery.com>
747 * tree-parloops.c (create_parallel_loop): Return void.
749 2015-11-11 Tom de Vries <tom@codesourcery.com>
751 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
752 block only when needed.
754 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
756 * config/alpha/alpha-protos.h (print_operand): Remove.
757 (print_operand_address): Remove.
758 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
759 (PRINT_OPERAND_ADDRESS): Remove.
760 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
761 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
762 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
763 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
764 (print_operand_address): Rename to...
765 (alpha_print_operand_address): ...this and make static.
766 (print_operand): Rename to...
767 (alpha_print_operand): ...this and make static.
768 (alpha_print_operand_punct_valid_p): New static function.
770 2015-11-11 Richard Biener <rguenther@suse.de>
772 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
774 (vect_analyze_data_refs_alignment): Make loop vect specific.
775 (vect_verify_datarefs_alignment): Likewise.
776 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
777 Add missing continue.
778 (vect_compute_data_ref_alignment): Export.
779 (vect_compute_data_refs_alignment): Merge into...
780 (vect_analyze_data_refs_alignment): ... this.
781 (verify_data_ref_alignment): Split out from ...
782 (vect_verify_datarefs_alignment): ... here.
783 (vect_slp_analyze_and_verify_node_alignment): New function.
784 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
785 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
786 misplaced checks on alignment.
787 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
788 alignment analysis after SLP discovery and do it per instance.
789 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
790 bother to re-try using different vector sizes.
792 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
793 Cesar Philippidis <cesar@codesourcery.com>
795 * gimplify.c (enum omp_region_type): Add ORT_ACC,
796 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
797 (gimple_add_tmp_var): Add ORT_ACC checks.
798 (gimplify_var_or_parm_decl): Likewise.
799 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a
801 (omp_add_variable): Look in outer contexts for openacc and allow
802 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA
804 (omp_notice_variable, omp_is_private, omp_check_private): Add
806 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
807 Permit private openacc reductions.
808 (gimplify_oacc_cache): Specify ORT_ACC.
809 (gimplify_omp_workshare): Adjust OpenACC region types.
810 (gimplify_omp_target_update): Likewise.
811 * omp-low.c (scan_sharing_clauses): Remove Openacc
813 (lower-rec_input_clauses): Don't handle openacc firstprivate
815 (lower_omp_target): Emit initializers for openacc firstprivate vars.
817 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
820 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
821 frame pointer for stack checking if non-call exceptions aren't used.
822 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
824 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
826 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
829 2015-11-11 Martin Liska <mliska@suse.cz>
830 Richard Biener <rguenther@suse.de>
832 PR rtl-optimization/68287
833 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
836 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
838 * config/mips/mips.c (mips_breakable_sequence_p): New function.
839 (mips_break_sequence): New function.
840 (mips_reorg_process_insns): Use them. Use compact branches in selected
843 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
845 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
847 2015-11-11 Jiong Wang <jiong.wang@arm.com>
848 Jim Wilson <wilson@gcc.gnu.org>
851 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
852 be true and eliminable registers mentioned.
854 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
856 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
858 * config/arc/arc-opts.h: Add ARCv2 CPUs.
859 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
860 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
861 situation, and store instructions with large offsets.
862 (arc_secondary_reload_conv): New function.
863 (arc_init): Add ARCv2 options.
864 (arc_conditional_register_usage): Select the proper register usage
865 for ARCv2 processors.
866 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
868 (arc_compute_function_type): Likewise.
869 (arc_print_operand): Handle new ARCv2 punctuation characters.
870 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16
872 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
874 (arc_reorg, arc_hazard): Use it.
875 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and
877 (ASM_SPEC): Add ARCv2 options.
878 (TARGET_NORM): ARC HS has norm instructions by default.
879 (TARGET_OPTFPE): Use optimized floating point emulation for ARC
881 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
882 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI):
884 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
886 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
887 (TARGET_LP_WR_INTERLOCK): Likewise.
889 (commutative_binary_mult_comparison_result_used, movsicc_insn)
890 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
891 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
892 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
894 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
895 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
896 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
897 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
898 (extzvsi): New pattern.
899 * config/arc/arc.opt: New ARCv2 options.
900 * config/arc/arcEM.md: New file.
901 * config/arc/arcHS.md: Likewise.
902 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
904 (Cm2): A signed 9-bit integer constant constraint.
905 (C62): An unsigned 6-bit integer constant constraint.
906 (C16): A signed 16-bit integer constant constraint.
907 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
908 (short_const_int_operand): New predicate.
909 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
910 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
911 -mcode-density and -mdiv-rem.
913 2015-11-11 Julia Koval <julia.koval@intel.com>
915 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
917 2015-11-11 Julia Koval <julia.koval@intel.com>
919 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
921 2015-11-11 Martin Liska <mliska@suse.cz>
923 * gimple-ssa-strength-reduction.c (create_phi_basis):
925 * passes.c (release_dump_file_name): New function.
926 (pass_init_dump_file): Used from this function.
927 (pass_fini_dump_file): Likewise.
928 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
929 * var-tracking.c (vt_initialize): Use pool_allocator.
931 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
932 Jiong Wang <jiong.wang@arm.com>
934 PR tree-optimization/68234
935 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
936 node which estimiated to be VR_VARYING initially.
938 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
940 * regname.c (scan_rtx_reg): Check the matching number of consecutive
941 registers when tying chains.
942 (build_def_use): Move terminated_this_insn earlier in the function.
944 2015-11-10 Mike Frysinger <vapier@gentoo.org>
946 * configure.ac: Use = with test and not ==.
947 * configure: Regenerated.
949 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
951 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
952 machine asserts. Update defines for 64 bit.
954 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
957 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
959 (neon_vst1_lane<mode>): Likewise.
960 (neon_vld2_lane<mode>): Likewise.
961 (neon_vst2_lane<mode>): Likewise.
962 (neon_vld3_lane<mode>): Likewise.
963 (neon_vst3_lane<mode>): Likewise.
964 (neon_vld4_lane<mode>): Likewise.
965 (neon_vst4_lane<mode>): Likewise.
967 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
970 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
971 qualifier_struct_load_store_lane_index.
972 (arm_storestruct_lane_qualifiers) Likewise.
973 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
975 (neon_vst1_lane<mode>) Likewise.
976 (neon_vld2_lane<mode>) Likewise.
977 (neon_vst2_lane<mode>) Likewise.
978 (neon_vld3_lane<mode>) Likewise.
979 (neon_vst3_lane<mode>) Likewise.
980 (neon_vld4_lane<mode>) Likewise.
981 (neon_vst4_lane<mode>) Likewise.
983 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
986 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
987 qualifier_struct_load_store_lane_index.
988 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
989 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
991 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
992 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
994 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
996 * config/nvptx/nvptx.opt (moptimize): New flag.
997 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
999 (nvptx_optimize_inner): New.
1000 (nvptx_process_pars): Call it when optimizing.
1001 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
1003 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1005 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
1006 Remove redundant code.
1008 2015-11-10 Jeff Law <law@redhat.com>
1010 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
1011 call to output_address.
1012 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
1013 Add unnamed machine_mode argument.
1015 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
1017 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
1020 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
1022 * config/i386/i386.md (*movabs<mode>_1): Add explicit
1023 size directives for -masm=intel.
1024 (*movabs<mode>_2): Ditto.
1026 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
1028 * config/i386/i386.c (ix86_print_operand): Remove dead code that
1029 tried to avoid (%rip) for call operands.
1031 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
1033 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
1034 argument. Do not use RIP relative addressing when no_rip is set.
1035 (ix86_print_operand): Update call to ix86_print_operand_address_as.
1036 (ix86_print_operand_address): Ditto.
1037 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
1038 absolute movabs operand 0. Add square braces for -masm=intel.
1039 (*movabs<mode>_2): Ditto for operand 1.
1041 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1043 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
1044 combine_vcvtf2i pattern.
1046 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1048 * config/arm/arm.c (neon_valid_immediate): Remove integer
1049 CONST_DOUBLE handling. It should never occur.
1051 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
1053 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
1054 (ATOMIC_LDOP): Likewise.
1055 (atomic_ldop): Likewise.
1056 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
1057 (ATOMIC_LDOP): Likewise.
1058 (atomic_ldop): Likewise.
1060 2015-11-10 Martin Liska <mliska@suse.cz>
1062 * alloc-pool.h (allocate_raw): New function.
1063 (operator new (size_t, object_allocator<T> &a)): Use the
1064 function instead of object_allocator::allocate).
1066 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1068 * config/i386/sse.md (HALFMASKMODE): New attribute.
1069 (DOUBLEMASKMODE): New attribute.
1070 (vec_pack_trunc_qi): New.
1071 (vec_pack_trunc_<mode>): New.
1072 (vec_unpacks_lo_hi): New.
1073 (vec_unpacks_lo_si): New.
1074 (vec_unpacks_lo_di): New.
1075 (vec_unpacks_hi_hi): New.
1076 (vec_unpacks_hi_<mode>): New.
1078 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1080 * optabs.c (expand_binop_directly): Allow scalar mode for
1081 vec_pack_trunc_optab.
1082 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
1083 boolean vector producers from pattern sequence when computing VF.
1084 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
1085 vect_recog_mask_conversion_pattern.
1086 (search_type_for_mask): Choose the smallest
1087 type if different size types are mixed.
1088 (build_mask_conversion): New.
1089 (vect_recog_mask_conversion_pattern): New.
1090 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
1091 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
1093 (vectorizable_conversion): Support boolean vectors.
1094 (free_stmt_vec_info): Allow patterns for statements with no lhs.
1095 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
1097 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1099 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
1100 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
1101 Cast mask to FP mode if required.
1102 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
1103 (vcond_mask_<mode><avx512fmaskmodelower>): New.
1104 (vcond_mask_<mode><sseintvecmodelower>): New.
1105 (vcond_mask_<mode><sseintvecmodelower>): New.
1106 (vcond_mask_v2div2di): New.
1107 (vcond_mask_<mode><sseintvecmodelower>): New.
1108 (vcond_mask_<mode><sseintvecmodelower>): New.
1110 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1112 * optabs-query.h (get_vcond_mask_icode): New.
1113 * optabs-tree.c (expand_vec_cond_expr_p): Use
1114 get_vcond_mask_icode for VEC_COND_EXPR with mask.
1115 * optabs.c (expand_vec_cond_mask_expr): New.
1116 (expand_vec_cond_expr): Use get_vcond_mask_icode
1118 * optabs.def (vcond_mask_optab): New.
1119 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
1120 generate redundant comparison for COND_EXPR.
1121 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
1123 (vectorizable_condition): Likewise.
1124 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
1125 cond_exp with no embedded comparison.
1126 (vect_build_slp_tree_1): Likewise.
1128 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1130 * config/i386/sse.md (maskload<mode>): Rename to ...
1131 (maskload<mode><sseintvecmodelower>): ... this.
1132 (maskstore<mode>): Rename to ...
1133 (maskstore<mode><sseintvecmodelower>): ... this.
1134 (maskload<mode><avx512fmaskmodelower>): New.
1135 (maskstore<mode><avx512fmaskmodelower>): New.
1137 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1139 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
1140 (expand_MASK_STORE): Adjust to maskstore optab changes.
1141 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
1142 Adjust to maskload, maskstore optab changes.
1143 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
1144 * optabs.def (maskload_optab): Transform into convert optab.
1145 (maskstore_optab): Likewise.
1146 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
1147 can_vec_mask_load_store_p signature change.
1148 (predicate_mem_writes): Use boolean mask.
1149 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
1150 can_vec_mask_load_store_p signature change. Allow invariant masks.
1151 (vectorizable_operation): Ignore type precision for boolean vectors.
1153 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1155 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
1156 (const_vector_mask_from_tree): New.
1157 (const_vector_from_tree): Use const_vector_mask_from_tree
1158 for boolean vectors.
1159 * optabs-query.h (get_vec_cmp_icode): New.
1160 * optabs-tree.c (expand_vec_cmp_expr_p): New.
1161 * optabs-tree.h (expand_vec_cmp_expr_p): New.
1162 * optabs.c (vector_compare_rtx): Add OPNO arg.
1163 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
1164 (expand_vec_cmp_expr): New.
1165 * optabs.def (vec_cmp_optab): New.
1166 (vec_cmpu_optab): New.
1167 * optabs.h (expand_vec_cmp_expr): New.
1168 * tree-vect-generic.c (expand_vector_comparison): Add vector
1169 comparison optabs check.
1170 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
1171 operations for VF. Add mask type computation.
1172 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
1173 (vectorizable_comparison): New.
1174 (vect_analyze_stmt): Add vectorizable_comparison.
1175 (vect_transform_stmt): Likewise.
1176 (vect_init_vector): Support boolean vector invariants.
1177 (vect_get_vec_def_for_operand): Add VECTYPE arg.
1178 (vectorizable_condition): Directly provide vectype for invariants
1180 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
1181 (enum vect_var_kind): Add vect_mask_var.
1182 (enum stmt_vec_info_type): Add comparison_vec_info_type.
1183 (vectorizable_comparison): New.
1184 (vect_get_vec_def_for_operand): Add VECTYPE arg.
1185 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
1186 (vect_create_destination_var): Likewise.
1187 * tree-vect-patterns.c (check_bool_pattern): Check fails
1188 if we can vectorize comparison directly.
1189 (search_type_for_mask): New.
1190 (vect_recog_bool_pattern): Support cases when bool pattern
1192 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
1193 comparison statements.
1194 (vect_get_constant_vectors): Support boolean vector
1196 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
1197 (ix86_expand_int_vec_cmp): New.
1198 (ix86_expand_fp_vec_cmp): New.
1199 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
1200 op_true and op_false.
1201 (ix86_int_cmp_code_to_pcmp_immediate): New.
1202 (ix86_fp_cmp_code_to_pcmp_immediate): New.
1203 (ix86_cmp_code_to_pcmp_immediate): New.
1204 (ix86_expand_mask_vec_cmp): New.
1205 (ix86_expand_fp_vec_cmp): New.
1206 (ix86_expand_int_sse_cmp): New.
1207 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
1208 (ix86_expand_int_vec_cmp): New.
1209 (ix86_get_mask_mode): New.
1210 (TARGET_VECTORIZE_GET_MASK_MODE): New.
1211 * config/i386/sse.md (avx512fmaskmodelower): New.
1212 (vec_cmp<mode><avx512fmaskmodelower>): New.
1213 (vec_cmp<mode><sseintvecmodelower>): New.
1214 (vec_cmpv2div2di): New.
1215 (vec_cmpu<mode><avx512fmaskmodelower>): New.
1216 (vec_cmpu<mode><sseintvecmodelower>): New.
1217 (vec_cmpuv2div2di): New.
1219 2015-11-10 Richard Biener <rguenther@suse.de>
1221 PR tree-optimization/68240
1222 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
1224 (visit_phi): For PHIs with just a single executable edge
1225 take its value directly.
1226 (expressions_equal_p): Handle VN_TOP properly.
1228 2015-11-10 Richard Biener <rguenther@suse.de>
1230 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
1231 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
1234 2015-11-10 Richard Biener <rguenther@suse.de>
1236 PR tree-optimization/56118
1237 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
1238 cost favor vectorized version.
1240 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1242 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
1243 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
1244 (neg_not_op): New code attribute.
1246 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1248 * ifcvt.c (noce_try_inverse_constants): New function.
1249 (noce_process_if_block): Call it.
1250 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
1251 * optabs.def (negcc_optab, notcc_optab): Declare.
1252 * optabs.c (emit_conditional_neg_or_complement): New function.
1253 * doc/tm.texi (Standard Names): Document negcc, notcc names.
1255 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1257 PR rtl-optimization/68236
1258 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
1259 if insn_queue doesn't exist.
1260 (haifa_sched_finish): Reset insn_queue to NULL.
1262 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
1264 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
1265 (build_def_use): Initialize terminated_this_insn.
1266 (find_best_rename_reg): Pick and check register from the tied chain.
1267 (regrename_do_replace): Mark head as renamed.
1268 (struct du_head *terminated_this_insn). New static variable.
1269 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
1270 * regrename.h (struct du_head): Add tied_chain, renamed members.
1272 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1275 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
1278 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1281 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
1282 not promote the mode for aggregate types.
1284 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1286 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
1287 * omp-low.c (build_oacc_routine_dims): New.
1289 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1291 * config/rs6000/constraints.md (wF constraint): New constraints
1292 for power9/toc fusion.
1293 (wG constraint): Likewise.
1295 * config/rs6000/predicates.md (u6bit_cint_operand): New
1296 predicate, recognize 0..63.
1297 (upper16_cint_operand): New predicate for power9 and toc fusion.
1298 (fpr_reg_operand): Likewise.
1299 (toc_fusion_or_p9_reg_operand): Likewise.
1300 (toc_fusion_mem_raw): Likewise.
1301 (toc_fusion_mem_wrapped): Likewise.
1302 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
1304 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
1306 (fusion_addis_mem_combo_load): Add support for power9 fusion of
1307 floating point loads, floating point stores, and gpr stores.
1308 (fusion_addis_mem_combo_store): Likewise.
1309 (fusion_offsettable_mem_operand): Likewise.
1311 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add
1313 (emit_fusion_load_store): Likewise.
1314 (fusion_p9_p): Likewise.
1315 (expand_fusion_p9_load): Likewise.
1316 (expand_fusion_p9_store): Likewise.
1317 (emit_fusion_p9_load): Likewise.
1318 (emit_fusion_p9_store): Likewise.
1319 (fusion_wrap_memory_address): Likewise.
1321 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
1322 elements for power9 fusion.
1323 (rs6000_debug_print_mode): Rework debug information to print more
1324 information about fusion.
1325 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion
1327 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
1328 offsettable memory address.
1329 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
1330 (emit_fusion_gpr_load): Move most of the code from
1331 emit_fusion_gpr_load into emit_fusion-addis that handles both
1332 power8 and power9 fusion.
1333 (emit_fusion_addis): Likewise.
1334 (emit_fusion_load_store): Likewise.
1335 (fusion_wrap_memory_address): Add support for TOC fusion.
1336 (fusion_split_address): Likewise.
1337 (fusion_p9_p): Add support for power9 fusion.
1338 (expand_fusion_p9_load): Likewise.
1339 (expand_fusion_p9_store): Likewise.
1340 (emit_fusion_p9_load): Likewise.
1341 (emit_fusion_p9_store): Likewise.
1343 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
1344 new instructions in ISA 3.0.
1345 (TARGET_CTZ): Likewise.
1346 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
1347 (TARGET_TOC_FUSION_FP): Likewise.
1349 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
1351 (UNSPEC_FUSION_ADDIS): Likewise.
1352 (QHSI mode iterator): New iterator for power9 fusion.
1353 (GPR_FUSION): Likewise.
1354 (FPR_FUSION): Likewise.
1355 (mod<mode>3): Add support for ISA 3.0
1356 modulus instructions.
1357 (umod<mode>3): Likewise.
1358 (divmod peephole): Likewise.
1359 (udivmod peephole): Likewise.
1360 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
1362 (ctz<mode>2_h): Likewise.
1363 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
1364 (ashdi3_extswsli_dot): Likewise.
1365 (ashdi3_extswsli_dot2): Likewise.
1366 (power9 fusion splitter): New power9/toc fusion support.
1367 (toc_fusionload_<mode>): Likewise.
1368 (toc_fusionload_di): Likewise.
1369 (fusion_gpr_load_<mode>): Update predicate function.
1370 (power9 fusion peephole2s): New power9/toc fusion support.
1371 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
1372 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
1373 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
1374 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
1375 (fusion_p9_<mode>_constant): Likewise.
1377 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
1379 * optabs.c (prepare_libcall_arg): New function.
1380 (expand_fixed_convert): Add call to prepare_libcall_arg.
1382 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
1384 * sched-int.h (dump_rgn_dependencies_dot): Declare
1385 * sched-rgn.c (dump_rgn_dependencies_dot): New function
1386 * print-rtl.h (print_insn): Add prototype
1388 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
1389 * common.opt (-fsched-verbose): Set default value to 1.
1390 * invoke.texi (-fsched-verbose): Update the option's description.
1392 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1394 * config/visium/visium.h (PRINT_OPERAND): Delete.
1395 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
1396 (PRINT_OPERAND_ADDRESS): Likewise.
1397 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
1399 (visium_print_operand_punct_valid_p): ...this. New function.
1400 (TARGET_PRINT_OPERAND): Define to...
1401 (print_operand): Rename to...
1402 (visium_print_operand): ...this.
1403 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
1404 (visium_output_address): Rename to...
1405 (visium_print_operand_address): ...this.
1406 (print_operand_address): Delete.
1408 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1411 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
1412 Check that the type of the first operand is an aggregate type.
1414 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
1416 * omp-low.c: Fix some OpenACC comment typos.
1417 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
1418 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
1419 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
1421 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
1423 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
1425 2015-11-09 Jeff Law <law@redhat.com>
1427 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
1428 being in gimple/ssa form. Remove redundant check for SSA_NAME.
1431 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
1432 Peter Bergner <bergner@vnet.ibm.com>
1434 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
1436 (-mpower9-vector): Likewise.
1437 (-mpower9-dform): Likewise.
1438 (-mpower9-minmax): Likewise.
1439 (-mtoc-fusion): Likewise.
1440 (-mmodulo): Likewise.
1441 (-mfloat128-hardware): Likewise.
1443 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
1444 mask for ISA 3.0 (power9).
1445 (POWERPC_MASKS): Add new ISA 3.0 switches.
1446 (power9 cpu): Add power9 cpu.
1448 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
1450 (ASM_CPU_SPEC): Likewise.
1451 (EXTRA_SPECS): Likewise.
1453 * config/rs6000/rs6000-opts.h (enum processor_type): Add
1456 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
1458 (rs6000_debug_reg_global): Add support for power9 fusion.
1459 (rs6000_setup_reg_addr_masks): Cache mode size.
1460 (rs6000_option_override_internal): Until real power9 tuning is
1461 added, use -mtune=power8 for -mcpu=power9.
1462 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
1463 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
1464 of Altivec registers.
1465 (rs6000_option_override_internal): Add support for ISA 3.0
1467 (rs6000_loop_align): Add support for power9 cpu.
1468 (rs6000_file_start): Likewise.
1469 (rs6000_adjust_cost): Likewise.
1470 (rs6000_issue_rate): Likewise.
1471 (insn_must_be_first_in_group): Likewise.
1472 (insn_must_be_last_in_group): Likewise.
1473 (force_new_group): Likewise.
1474 (rs6000_register_move_cost): Likewise.
1475 (rs6000_opt_masks): Likewise.
1477 * config/rs6000/rs6000.md (cpu attribute): Add power9.
1478 * config/rs6000/rs6000-tables.opt: Regenerate.
1480 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
1481 _ARCH_PWR9 if power9 support is available.
1483 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
1484 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
1486 * configure.ac: Determine if the assembler supports the ISA 3.0
1488 * config.in (HAVE_AS_POWER9): Likewise.
1489 * configure: Regenerate.
1491 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
1494 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1496 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
1497 Remove integer CONST_DOUBLE handling. It should never occur.
1499 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1502 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
1503 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
1504 Delete VOIDmode case. Assert that mode is not VOIDmode.
1505 * config/aarch64/predicates.md (const0_operand): Remove const_double
1508 2015-11-09 Martin Liska <mliska@suse.cz>
1510 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
1511 body_info release function.
1512 * ipa-prop.c (ipa_release_body_info): New function.
1513 (ipa_analyze_node): Call the function.
1514 (ipa_node_params::~ipa_node_params): Release known_csts.
1515 * ipa-prop.h (ipa_release_body_info): Declare.
1517 2015-11-09 Martin Liska <mliska@suse.cz>
1519 * gcc.c (record_temp_file): Release name string.
1520 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
1522 * lra-lives.c (free_live_range_list): Utilize
1523 lra_live_range_pool for allocation and deallocation.
1524 (create_live_range): Likewise.
1525 (copy_live_range): Likewise.
1526 (lra_merge_live_ranges): Likewise.
1527 (remove_some_program_points_and_update_live_ranges): Likewise.
1528 (lra_create_live_ranges_1): Release point_freq_vec that can
1529 be not freed from previous iteration of the function.
1530 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
1532 * tree-sra.c (sra_deinitialize): Release all vectors in
1534 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
1535 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
1536 Release edge_info for a removed edge.
1537 (thread_through_all_blocks): Free region vector.
1538 * tree-ssa.h (free_dom_edge_info): Declare function extern.
1540 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
1542 * optabs.c (expand_vec_cond_expr): Always get sign from type.
1543 * tree.c (wide_int_to_tree): Support negative values for boolean.
1544 (build_nonstandard_boolean_type): Use signed type for booleans.
1546 2015-11-09 Richard Biener <rguenther@suse.de>
1548 PR tree-optimization/68248
1549 * tree-vect-generic.c (expand_vector_operations_1): Handle
1552 2015-11-09 Richard Biener <rguenther@suse.de>
1554 PR tree-optimization/56118
1555 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
1556 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
1557 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
1559 (vect_slp_analyze_data_ref_dependences): Instead of computing
1560 all dependences of the region DRs just analyze the code motions
1561 SLP vectorization will perform. Remove SLP instances that
1562 cannot have their store/load motions applied.
1563 (vect_analyze_data_refs): Allow DRs without a vectype
1564 in BB vectorization.
1566 2015-11-09 Julian Brown <julian@codesourcery.com>
1568 * final.c (output_asm_insn): Pass VOIDmode to output_address.
1569 (output_address): Add MODE argument. Pass to print_operand_address
1571 * targhooks.c (default_print_operand_address): Add MODE argument.
1572 * targhooks.h (default_print_operand_address): Update prototype.
1573 * output.h (output_address): Update prototype.
1574 * target.def (print_operand_address): Add MODE argument.
1575 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
1577 (print_operand): Pass access mode to output_address.
1578 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
1580 (mcore_print_operand): Update calls to mcore_print_operand_address.
1581 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
1583 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
1585 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
1587 (tilegx_print_operand): Don't set above global. Update calls to
1589 (tilegx_print_operand_address): Add MODE argument. Use instead of
1590 output_memory_reference_mode global.
1591 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
1592 (frv_print_operand): Pass mode to frv_print_operand_address calls.
1593 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
1595 * config/cris/cris.c (cris_print_operand_address): Add MODE
1597 (cris_print_operand): Pass mode to output_address calls.
1598 * config/spu/spu.c (print_operand): Pass mode to output_address
1600 * config/aarch64/aarch64.h (aarch64_print_operand)
1601 (aarch64_print_operand_address): Remove prototypes.
1602 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
1604 (aarch64_print_operand): Make static. Update calls to
1606 (aarch64_print_operand_address): Add MODE argument. Use instead of
1607 aarch64_memory_reference_mode global.
1608 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
1610 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
1611 Delete macro definitions.
1612 * config/pa/pa.c (pa_print_operand): Pass mode in output_address
1614 * config/xtensa/xtensa.c (print_operand): Pass mode in
1615 output_address calls.
1616 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
1618 (h83000_print_operand): Update calls to h8300_print_operand_address
1620 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
1622 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
1624 (tilepro_print_operand): Pass mode to output_address.
1625 (tilepro_print_operand_address): Add MODE argument. Use instead of
1626 output_memory_reference_mode.
1627 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
1628 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
1629 to output_address calls.
1630 (nvptx_print_operand_address): Add MODE argument.
1631 * config/alpha/alpha.c (print_operand): Pass mode argument in
1632 output_address calls.
1633 * config/m68k/m68k.c (print_operand): Pass mode argument in
1634 output_address call.
1635 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
1636 (avr_print_operand): Update calls to avr_print_operand_address.
1637 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
1638 argument. Update calls to output_address.
1639 (sparc_print_operand): Pass mode to output_address.
1640 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
1642 (iq2000_print_operand): Pass mode in output_address calls.
1643 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
1645 (xstormy16_print_operand): Pass mode to
1646 xstormy16_print_operand_address calls.
1647 * config/mips/mips.c (mips_print_operand): Update calls to
1649 (mips_print_operand_address): Add MODE argument.
1650 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
1652 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
1653 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
1655 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
1656 (rx_print_operand): Update calls to output_address,
1657 rx_print_operand_address.
1658 * config/nds32/nds32.c (nds32_print_operand): Update calls to
1660 (nds32_print_operand_address): Add MODE argument.
1661 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
1662 output_address calls.
1663 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
1664 output_address call.
1665 (c6x_print_address_operand): Update calls to output_address.
1666 (c6x_print_operand_address): Pass mode to above.
1667 * config/v850/v850.c (v850_print_operand_address): Add MODE
1669 (v850_print_operand): Pass mode to v850_print_operand_address,
1671 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
1673 (mmix_print_operand): Pass mode in output_address calls.
1674 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
1675 (sh_print_operand): Pass mem mode to output_address,
1676 sh_print_operand_address.
1677 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
1679 (cr16_print_operand): Pass mode to output_address,
1680 cr16_print_operand_address.
1681 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
1683 * config/microblaze/microblaze.c (print_operand): Pass mode to
1685 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
1687 (nios2_print_operand_address): Add MODE argument. Update call to
1688 nios2_print_operand_address.
1689 * config/s390/s390.c (print_operand): Pass mode to output_address.
1690 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
1692 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
1694 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
1695 Use instead of output_memory_reference_mode.
1696 (output_memory_reference_mode): Delete global.
1697 (arm_print_operand): Pass mem mode to output_address.
1698 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
1700 (m32r_print_operand): Pass mode to output_address.
1701 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
1703 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
1704 * config/i386/i386.c (ix86_print_operand): Pass mode to
1705 output_address calls.
1706 (ix86_print_operand_address): Add MODE argument.
1708 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1711 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
1712 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
1713 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
1714 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1716 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1718 PR rtl-optimization/67749
1719 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
1720 case before emitting the two blocks. Instead modify the register
1721 in the corresponding final insn of the basic block.
1723 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1725 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
1728 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
1730 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
1731 HAVE_INITFINI_ARRAY_SUPPORT.
1732 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
1735 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
1736 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
1737 Don't check HAVE_AS_SPARC_NOBITS.
1738 Heed SECTION_NOTYPE.
1740 * configure: Regenerate.
1741 * config.in: Regenerate.
1743 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
1746 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
1748 2015-11-09 Richard Henderson <rth@redhat.com>
1750 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
1751 __SEG_GS, __SEG_TLS.
1752 (ix86_register_pragmas): Register address spaces __seg_fs,
1753 __seg_gs, __seg_tls.
1754 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
1755 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
1756 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
1757 * config/i386/i386.c (ix86_decompose_address): Likewise.
1758 (ix86_legitimate_address_p): Likewise.
1759 (memory_address_length): Likewise. Check mem address space too.
1760 (ix86_print_operand): Use ix86_print_operand_address_as.
1761 (ix86_print_operand_address_as): Rename from
1762 ix86_print_operand_address, add new addr_space_t parameter.
1763 Validate that either the parameter or the ix86_address segment
1764 is default address space. Handle ADDR_SPACE_SEG_TLS.
1765 (ix86_print_operand_address): New.
1766 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
1767 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
1768 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
1769 (ix86_addr_space_zero_address_valid): New.
1770 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1771 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
1772 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
1773 * config/i386/predicates.md (address_no_seg_operand): Likewise.
1774 (vsib_address_operand): Likewise.
1775 (address_mpx_no_base_operand): Likewise.
1776 (address_mpx_no_index_operand): Likewise.
1777 * doc/extend.texi (x86 Named Address Spaces): New section.
1779 * config/i386/i386.c (ix86_check_no_addr_space): New.
1780 (decide_alg): Add have_as parameter.
1781 (alg_usable_p): Likewise; disable rep algorithms if set.
1782 (ix86_expand_set_or_movmem): Notice if either MEM has a
1783 non-default address space.
1784 (ix86_expand_strlen): Likewise.
1785 * config/i386/i386.md (strmov, strset): Likewise.
1786 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
1787 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
1788 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
1789 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
1790 *cmpstrnqi_1, *strlenqi_1): Likewise.
1792 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
1793 (*movabs<mode>_2): Likewise.
1795 * dwarf2out.c (modified_type_die): Pass the address space number
1796 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
1797 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
1798 * targhooks.c (default_addr_space_debug): New.
1799 * targhooks.h (default_addr_space_debug): Declare.
1800 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
1801 * doc/tm.texi: Rebuild.
1803 * gimple.c (check_loadstore): Return false when 0 is a valid address.
1804 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
1805 null when 0 is valid in the source address space.
1806 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
1807 * targhooks.c (default_addr_space_zero_address_valid): New.
1808 * targhooks.h (default_addr_space_zero_address_valid): Declare.
1809 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
1810 * doc/tm.texi: Rebuild.
1812 * cselib.c (add_mem_for_addr): Compare address spaces when
1814 (cselib_lookup_mem): Likewise.
1815 * fold-const.c (operand_equal_p): Check address spaces of
1816 pointer types before checking integer constants.
1819 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
1820 the correct type for the base.
1822 2015-11-09 Jeff Law <law@redhat.com>
1824 * tree-into-ssa.c (names_to_release): No longer static.
1825 * tree-into-ssa.h (names_to_release): Declare.
1826 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
1827 (release_free_names_and_compact_live_names): New function extracted
1828 from pass_release_ssa_names::execute.
1829 (pass_release_ssa_names::execute): Use it.
1831 2015-11-09 Alan Modra <amodra@gmail.com>
1833 * gensupport.c (add_mnemonic_string): Make len param a size_t.
1834 (gen_mnemonic_setattr): Make "size" var a size_t. Use
1835 obstack_blank_fast to shrink obstack. Cast obstack_next_free
1838 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
1840 PR rtl-optimization/68182
1841 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
1842 branch with only one successor just like unconditional branches.
1844 2015-11-08 Jeff Law <law@redhat.com>
1846 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
1847 non-FSM path has no edges marked with EDGE_DFS_BACK.
1848 (ssa_redirect_edges): No longer call mark_loop_for_removal.
1849 (thread_single_edge, def_split_header_continue_p): Remove.
1850 (bb_ends_with_multiway_branch): Likewise.
1851 (thread_through_loop_header): Remove cases of threading from
1852 latch through the header. Simplify knowing we won't thread
1854 (thread_through_all_blocks): Simplify knowing that only the FSM
1855 threader needs to handle backedges.
1857 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
1859 * doc/extend.texi (type attributes): Document scalar_storage_order.
1860 (Structure-Packing Pragmas): Rename into...
1861 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
1862 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
1863 (Warnings): Document -Wno-scalar-storage-order.
1864 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
1865 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
1866 extract_bit_field and store_bit_field.
1867 (initialize_argument_information): Adjust call to store_expr.
1868 (load_register_parameters): Adjust call to extract_bit_field.
1869 * expmed.c (check_reverse_storage_order_support): New function.
1870 (check_reverse_float_storage_order_support): Likewise.
1871 (flip_storage_order): Likewise.
1872 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
1873 of the value if it is true. Pass REVERSE to recursive call after
1874 adjusting the target offset.
1875 Do not use extraction or movstrict instruction if REVERSE is true.
1876 Pass REVERSE to store_fixed_bit_field.
1877 (store_bit_field): Add REVERSE parameter and pass to it to above.
1878 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
1879 store_split_bit_field and store_fixed_bit_field_1.
1880 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1881 order of the value if it is true and adjust the target offset.
1882 (store_split_bit_field): Add REVERSE parameter and pass it to
1883 store_fixed_bit_field. Adjust the target offset if it is true.
1884 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
1885 of the value if it is true. Pass REVERSE to recursive call after
1886 adjusting the target offset.
1887 Do not use extraction or subreg instruction if REVERSE is true.
1888 Pass REVERSE to extract_fixed_bit_field.
1889 (extract_bit_field): Add REVERSE parameter and pass to it to above.
1890 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
1891 extract_split_bit_field and extract_fixed_bit_field_1.
1892 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
1893 order of the value if it is true and adjust the target offset.
1894 (extract_split_bit_field): Add REVERSE parameter and pass it to
1895 extract_fixed_bit_field. Adjust the target offset if it is true.
1896 * expmed.h (flip_storage_order): Declare.
1897 (store_bit_field): Adjust prototype.
1898 (extract_bit_field): Likewise.
1899 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
1900 (emit_group_store): Adjust call to store_bit_field.
1901 (copy_blkmode_from_reg): Likewise.
1902 (copy_blkmode_to_reg): Likewise.
1903 (write_complex_part): Likewise.
1904 (read_complex_part): Likewise.
1905 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
1906 that it isn't true if the target is a register.
1907 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
1908 and flip the storage order of the value.
1909 <BIT_IOR_EXPR>: Flip the storage order of the value.
1910 (get_bit_range): Adjust call to get_inner_reference.
1911 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
1912 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
1913 with reverse storage order.
1914 (store_expr_with_bounds): Add REVERSE parameter and pass it to
1915 recursive calls and call to store_bit_field. Force the value into a
1916 register if it is true and then flip the storage order of the value.
1917 (store_expr): Add REVERSE parameter and pass it to above.
1918 (categorize_ctor_elements_1): Adjust call to
1919 initializer_constant_valid_p.
1920 (store_constructor_field): Add REVERSE parameter and pass it to
1921 recursive calls and call to store_field.
1922 (store_constructor): Add REVERSE parameter and pass it to calls to
1923 store_constructor_field and store_expr. Set it to true for an
1924 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
1925 (store_field): Add REVERSE parameter and pass it to recursive calls
1926 and calls to store_expr and store_bit_field. Temporarily flip the
1927 storage order of the value with record type and integral mode and
1928 adjust the shift if it is true.
1929 (get_inner_reference): Add PREVERSEP parameter and set it to true
1930 upon encoutering a reference with reverse storage order.
1931 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
1932 (expand_constructor): Adjust call to store_constructor.
1933 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
1934 of the union type to store_expr in the MEM case and assert that it
1935 isn't set in the REG case. Adjust call to store_field.
1936 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
1937 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
1938 get_inner_reference and extract_bit_field. Temporarily flip the
1939 storage order of the value with record type and integral mode and
1940 adjust the shift if it is true. Flip the storage order of the value
1941 at the end if it is true.
1942 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
1943 get_inner_reference. Do not fetch an inner reference if it is true.
1944 * expr.h (store_expr_with_bounds): Ajust prototype.
1945 (store_expr): Likewise.
1946 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
1947 REF_REVERSE_STORAGE_ORDER on the reference according to it.
1948 (optimize_bit_field_compare): Deal with reverse storage order.
1949 Adjust calls to get_inner_reference and make_bit_field_ref.
1950 (decode_field_reference): Add PREVERSEP parameter and adjust call to
1951 get_inner_reference.
1952 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
1953 to decode_field_reference and make_bit_field_ref.
1954 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
1955 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
1956 (fold_comparison): Adjust call to get_inner_reference.
1957 (split_address_to_core_and_offset): Adjust call to
1958 get_inner_reference.
1959 * gimple-expr.c (useless_type_conversion_p): Return false for array
1960 types with different TYPE_REVERSE_STORAGE_ORDER flag.
1961 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
1962 REF_REVERSE_STORAGE_ORDER flag.
1963 * lto-streamer-out.c (hash_tree): Deal with
1964 TYPE_REVERSE_STORAGE_ORDER.
1965 * output.h (assemble_real): Adjust prototype.
1966 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
1967 * stor-layout.c (finish_record_layout): Propagate the
1968 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
1969 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
1970 (TYPE_SATURATING): Adjust.
1971 (REF_REVERSE_STORAGE_ORDER): Document.
1972 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
1973 set it to true upon encoutering a reference with reverse storage
1975 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
1976 * tree-inline.c (remap_gimple_op_r): Propagate the
1977 REF_REVERSE_STORAGE_ORDER flag.
1978 (copy_tree_body_r): Likewise.
1979 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
1981 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
1982 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
1983 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
1984 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
1985 REF_REVERSE_STORAGE_ORDER flag.
1986 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
1987 (gimple_canonical_types_compatible_p): Likewise.
1988 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
1989 (TYPE_SATURATING): Adjust.
1990 (REF_REVERSE_STORAGE_ORDER): New flag.
1991 (reverse_storage_order_for_component_p): New inline predicate.
1992 (storage_order_barrier_p): Likewise.
1993 (get_inner_reference): Adjust prototype.
1994 * varasm.c: Include expmed.h.
1995 (assemble_variable_contents): Adjust call to output_constant.
1996 (assemble_real): Add REVERSE parameter. Flip the storage
1997 order of the value if REVERSE is true.
1998 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
1999 (assemble_constant_contents): Adjust call to output_constant.
2000 (output_constant_pool_2): Adjust call to assemble_real.
2001 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
2002 TYPE_REVERSE_STORAGE_ORDER.
2003 (initializer_constant_valid_p): Add REVERSE parameter.
2004 (output_constant): Add REVERSE parameter.
2005 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
2006 <REAL_TYPE>: Adjust call to assemble_real.
2007 <COMPLEX_TYPE>: Pass it to recursive calls.
2008 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
2009 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
2010 (struct oc_local_state): Add REVERSE field.
2011 (output_constructor_array_range): Adjust calls to output_constant.
2012 (output_constructor_regular_field): Likewise.
2013 (output_constructor_bitfield): Adjust call to output_constructor.
2014 Flip the storage order of the value if REVERSE is true.
2015 (output_constructor): Add REVERSE parameter. Set it to true for an
2016 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
2017 output_constructor_bitfield.
2018 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
2019 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
2020 * builtins.c (get_object_alignment_2): Likewise.
2021 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
2022 and get_ref_base_and_extent.
2023 * dbxout.c (dbxout_expand_expr): Likewise.
2024 * dwarf2out.c (add_var_loc_to_decl): Likewise.
2025 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
2026 (loc_list_from_tree): Likewise.
2027 (fortran_common): Likewise.
2028 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
2029 get_ref_base_and_extent.
2030 (get_base_constructor): Likewise.
2031 (fold_const_aggregate_ref_1): Likewise.
2032 * gimple-laddress.c (pass_laddress::execute): Adjust call to
2033 get_inner_reference.
2034 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
2035 get_inner_reference and bail out on reverse storage order.
2036 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
2037 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
2038 build_ref_for_offset.
2039 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
2040 get_ref_base_and_extent.
2041 (ipa_polymorphic_call_context): Likewise.
2042 (extr_type_from_vtbl_ptr_store): Likewise.
2043 (check_stmt_for_type_change): Likewise.
2044 (get_dynamic_type): Likewise.
2045 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
2046 get_ref_base_and_extent.
2047 (compute_complex_assign_jump_func): Likewise.
2048 (get_ancestor_addr_info): Likewise.
2049 (compute_known_type_jump_func): Likewise.
2050 (determine_known_aggregate_parts): Likewise.
2051 (ipa_get_adjustment_candidate): Likewise.
2052 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
2054 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
2055 (build_ref_for_offset): Adjust prototype.
2056 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
2057 get_inner_reference.
2058 * tree-affine.c (tree_to_aff_combination): Adjust call to
2059 get_inner_reference.
2060 (get_inner_reference_aff): Likewise.
2061 * tree-data-ref.c (split_constant_offset_1): Likewise.
2062 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
2063 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
2064 get_inner_reference.
2065 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
2066 (dump_access): Print new fields.
2067 (create_access): Adjust call to get_ref_base_and_extent and set the
2068 REVERSE flag according to the result.
2069 (completely_scalarize_record): Set the REVERSE flag.
2070 (scalarize_elem): Add REVERSE parameter.
2071 (build_access_from_expr_1): Preserve storage order barriers.
2072 (build_accesses_from_assign): Likewise.
2073 (build_ref_for_offset): Add REVERSE parameter and set the
2074 REF_REVERSE_STORAGE_ORDER flag accordingly.
2075 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
2076 the REF_REVERSE_STORAGE_ORDER flag if there are components.
2077 (analyze_access_subtree): Likewise.
2078 (create_artificial_child_access): Set the REVERSE flag.
2079 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
2080 (turn_representatives_into_adjustments): Propagate REVERSE flag.
2081 (ipa_sra_check_caller): Adjust call to get_inner_reference.
2082 * tree-ssa-alias.c (ao_ref_base): Adjust call to
2083 get_ref_base_and_extent.
2084 (aliasing_component_refs_p): Likewise.
2085 (stmt_kills_ref_p_1): Likewise.
2086 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
2087 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
2088 Return true if reverse storage order.
2089 <BIT_FIELD_REF>: Likewise.
2090 <COMPONENT_REF>: Likewise.
2091 <ARRAY_REF>: Likewise.
2092 <ARRAY_RANGE_REF>: Likewise.
2093 (split_address_cost): Likewise. Bail out if reverse storage order.
2094 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
2095 get_inner_reference. Bail out if reverse storage order.
2096 (bswap_replace): Adjust call to get_inner_reference.
2097 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
2098 the REF_REVERSE_STORAGE_ORDER flag.
2099 <BIT_FIELD_REF>: Likewise.
2100 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
2102 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
2103 to the REF_REVERSE_STORAGE_ORDER flag.
2104 <BIT_FIELD_REF>: Likewise.
2105 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
2106 (contains_storage_order_barrier_p): New predicate.
2107 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
2108 Punt on storage order barriers if necessary.
2109 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
2110 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
2111 call to get_ref_base_and_extent.
2112 (do_structure_copy): Likewise.
2113 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
2114 get_inner_reference.
2115 (vect_analyze_data_refs): Likewise. Bail out if reverse storage
2117 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
2118 * ubsan.c (instrument_bool_enum_load): Likewise.
2119 (instrument_object_size): Likewise.
2120 * var-tracking.c (track_expr_p): Adjust call to
2121 get_ref_base_and_extent
2122 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
2123 get_inner_reference.
2124 * config/s390/s390.c (s390_expand_atomic): Adjust call to
2126 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
2128 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
2130 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
2132 * config/sparc/sparc.opt (mfix-at697f): Add final period.
2134 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
2136 PR rtl-optimization/67864
2137 * common/config/i386/i386-common.c (ix86_option_optimization_table)
2138 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
2141 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2143 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
2146 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2148 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
2149 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
2151 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2153 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
2154 * internal-fn.c: Don't undef it here.
2155 * tree-core.h: Likewise.
2157 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2159 * builtins.c (fold_builtin_nan): Delete.
2160 (fold_builtin_memcmp): Remove case where both arguments are constant.
2161 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
2162 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
2163 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
2164 * fold-const-call.c: Include fold-const.h.
2165 (host_size_t_cst_p): New function.
2166 (build_cmp_result, fold_const_builtin_nan): Likewise.
2167 (fold_const_call_1): New function, split out from...
2168 (fold_const_call): ...here (for all three interfaces). Handle
2169 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
2171 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2173 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
2174 (fold_builtin_1): Don't call them.
2175 * fold-const-call.c: Include tm.h.
2176 (fold_const_call_ss): New variant for integer-to-integer folds.
2177 (fold_const_call): Call it.
2179 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2181 * builtins.c (fold_builtin_classify): Move constant cases to...
2182 * fold-const-call.c (fold_const_call_ss): ...here.
2184 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2186 * builtins.h (c_getstr): Move to...
2187 * fold-const.h (c_getstr): ...here.
2188 * builtins.c (c_getstr): Move to...
2189 * fold-const.c (c_getstr): ...here.
2191 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2193 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
2194 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
2196 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
2198 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
2199 the dominance info; free it if we can't.
2200 (pass_call_cdce::execute): Don't free the dominance info here.
2202 2015-11-06 Jeff Law <law@redhat.com>
2204 * tree-ssa-threadedge.c (dummy_simplify): Remove.
2205 (thread_around_empty_blocks): Remove backedge_seen_p argument.
2206 If we thread to a backedge, then return false. Update recursive
2207 call to eliminate backedge_seen_p argument.
2208 (thread_through_normal_block): Remove backedge_seen_p argument.
2209 Remove backedge_seen_p argument from calls to
2210 thread_around_empty_blocks. Remove checks on backedge_seen_p.
2211 If we thread to a backedge, then return 0.
2212 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
2213 pass it to thread_through_normal_block or thread_through_empty_blocks.
2214 For joiner handling, if we see a backedge, do not try normal
2217 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2219 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
2220 * graphite-poly.c (new_scop): Initialize original_schedule.
2221 (free_scop): Free original_schedule.
2222 * graphite-poly.h (struct scop): Add field original_schedule.
2223 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
2224 (build_poly_scop): Call build_scop_original_schedule.
2226 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
2228 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
2229 (build_pbb_minimal_scattering_polyhedrons): New.
2230 (build_scop_scattering): Remove.
2231 (build_scop_minimal_scattering): New.
2232 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
2233 (build_poly_scop): Call build_scop_minimal_scattering.
2235 2015-11-06 Jeff Law <law@redhat.com>
2237 * cfg-flags.def (IGNORE): New edge flag.
2238 * tree-vrp.c (identify_jump_threads): Mark and clear edges
2239 scheduled for removal with EDGE_IGNORE around call into
2240 jump threader. Do no thread across edges with EDGE_IGNORE,
2241 but do allow threading across those with EDGE_DFS_BACK.
2243 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
2245 * doc/md.texi (multi-alternative constraints): Don't document
2246 alternatives inherently tied to reload for the user documentation.
2248 2015-11-06 Michael Collison <michael.collison@linaro.org
2249 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2252 2015-08-01 Michael Collison <michael.collison@linaro.org
2253 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
2255 * config/arm/arm.md (*arm_smin_cmp): New pattern.
2256 (*arm_umin_cmp): Likewise.
2258 2015-11-06 Jakub Jelinek <jakub@redhat.com>
2260 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
2262 * omp-low.c (check_omp_nesting_restrictions): Update for the
2263 various new OpenMP 4.5 nesting restrictions, clarified
2264 nesting glossary, closely nested region relationship clarified
2265 to mean explicit or implicit parallel regions (target/teams),
2266 use %</%> or %qs where appropriate.
2268 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
2269 Sebastian Pop <s.pop@samsung.com>
2271 * graphite-scop-detection.c (loop_is_valid_scop): Call
2272 optimize_loop_nest_for_speed_p.
2274 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
2275 Sebastian Pop <s.pop@samsung.com>
2277 * graphite-optimize-isl.c (optimize_isl): Call
2278 isl_options_set_schedule_maximize_band_depth.
2280 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
2281 Sebastian Pop <s.pop@samsung.com>
2283 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
2284 and exit edges should not be a part of irreducible loop.
2285 (scop_detection::can_represent_loop_1): Loops should not be
2287 (scop_detection::harmful_stmt_in_region): All the basic block
2288 should belong to reducible loops.
2290 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
2292 * config/aarch64/aarch64-simd-builtins.def: Update builtins
2293 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
2294 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
2295 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
2296 (aarch64_tbx4v8qi): Rename to...
2297 aarch64_tbx4<mode>): ... this.
2298 (aarch64_qtbl3<mode>): New pattern.
2299 (aarch64_qtbx3<mode>): New pattern.
2300 (aarch64_qtbl4<mode>): New pattern.
2301 (aarch64_qtbx4<mode>): New pattern.
2302 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
2303 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
2304 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
2305 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
2306 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
2307 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
2308 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
2309 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
2312 2015-11-06 Mike Stump <mikestump@comcast.net>
2315 * dwarf2out.c (get_full_len): Return a value based upon the actual
2316 precision needed for the value.
2317 (add_const_value_attribute): Use a maximal wide-int for
2318 CONST_WIDE_INTs, not VOIDmode.
2319 (output_die): Don't ever output NULL with printf.
2321 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
2322 BLKmode nor VOIDmode values.
2324 2015-11-06 David Malcolm <dmalcolm@redhat.com>
2326 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
2328 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
2329 * diagnostic-core.h (warning_at_rich_loc): New declaration.
2330 (error_at_rich_loc): New declaration.
2331 (permerror_at_rich_loc): New declaration.
2332 (inform_at_rich_loc): New declaration.
2333 * diagnostic-show-locus.c (adjust_line): Delete.
2334 (struct point_state): New struct.
2335 (class colorizer): New class.
2336 (class layout_point): New class.
2337 (class layout_range): New class.
2338 (struct line_bounds): New.
2339 (class layout): New class.
2340 (colorizer::colorizer): New ctor.
2341 (colorizer::~colorizer): New dtor.
2342 (layout::layout): New ctor.
2343 (layout::print_source_line): New method.
2344 (layout::print_annotation_line): New method.
2345 (layout::get_state_at_point): New method.
2346 (layout::get_x_bound_for_row): New method.
2347 (diagnostic_show_locus): Reimplement in terms of class layout.
2348 (diagnostic_print_caret_line): Delete.
2349 * diagnostic.c (diagnostic_initialize): Replace
2350 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
2351 (diagnostic_set_info_translated): Convert param from location_t
2352 to rich_location *. Eliminate calls to set_location on the
2353 message in favor of storing the rich_location ptr there.
2354 (diagnostic_set_info): Convert param from location_t to
2356 (diagnostic_build_prefix): Break out array into...
2357 (diagnostic_kind_color): New variable.
2358 (diagnostic_get_color_for_kind): New function.
2359 (diagnostic_report_diagnostic): Colorize the option_text
2360 using the color for the severity.
2361 (diagnostic_append_note): Update for change in signature of
2362 diagnostic_set_info.
2363 (diagnostic_append_note_at_rich_loc): New function.
2364 (emit_diagnostic): Update for change in signature of
2365 diagnostic_set_info.
2367 (inform_at_rich_loc): New function.
2368 (inform_n): Update for change in signature of diagnostic_set_info.
2369 (warning): Likewise.
2370 (warning_at): Likewise.
2371 (warning_at_rich_loc): New function.
2372 (warning_n): Update for change in signature of diagnostic_set_info.
2373 (pedwarn): Likewise.
2374 (permerror): Likewise.
2375 (permerror_at_rich_loc): New function.
2376 (error): Update for change in signature of diagnostic_set_info.
2377 (error_n): Likewise.
2378 (error_at): Likewise.
2379 (error_at_rich_loc): New function.
2380 (sorry): Update for change in signature of diagnostic_set_info.
2381 (fatal_error): Likewise.
2382 (internal_error): Likewise.
2383 (internal_error_no_backtrace): Likewise.
2384 (source_range::debug): New function.
2385 * diagnostic.h (struct diagnostic_info): Eliminate field
2386 "override_column". Add field "richloc".
2387 (struct diagnostic_context): Add field "colorize_source_p".
2388 (diagnostic_override_column): Delete.
2389 (diagnostic_set_info): Convert param from location_t to
2391 (diagnostic_set_info_translated): Likewise.
2392 (diagnostic_append_note_at_rich_loc): New function.
2393 (diagnostic_num_locations): New function.
2394 (diagnostic_expand_location): Get the location from the
2396 (diagnostic_print_caret_line): Delete.
2397 (diagnostic_get_color_for_kind): New declaration.
2398 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
2399 (error_cb): Update for change in signature of "error" callback.
2400 (fatal_at): Likewise.
2401 (warning_at): Likewise.
2402 * input.c (linemap_client_expand_location_to_spelling_point): New.
2403 * pretty-print.c (text_info::set_range): New method.
2404 (text_info::get_location): New method.
2405 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
2406 (struct text_info): Eliminate "locations" array in favor of
2407 "m_richloc", a rich_location *.
2408 (textinfo::set_location): Add a "caret_p" param, and reimplement
2409 in terms of a call to set_range.
2410 (textinfo::get_location): Eliminate inline implementation in favor of
2411 an out-of-line reimplementation.
2412 (textinfo::set_range): New method.
2413 * rtl-error.c (diagnostic_for_asm): Update for change in signature
2414 of diagnostic_set_info.
2415 * tree-diagnostic.c (default_tree_printer): Update for new
2416 "caret_p" param for textinfo::set_location.
2417 * tree-pretty-print.c (percent_K_format): Likewise.
2419 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2422 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2423 * config/aarch64/aarch64.c
2424 (aarch64_can_use_per_function_literal_pools_p): New.
2425 (aarch64_use_blocks_for_constant_p): Adjust declaration
2426 and use aarch64_can_use_function_literal_pools_p.
2427 (aarch64_select_rtx_section): Update.
2429 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2431 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
2432 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
2433 (arm_output_multireg_pop): Likewise.
2434 (output_move_double): Likewise.
2435 (output_move_quad): Likewise.
2436 (output_return_instruction): Likewise.
2437 (arm_print_operand): Remove support for %( and %. print modifiers.
2438 (arm_output_shift): Make unified asm.
2439 (arm_declare_function_name): Likewise.
2440 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
2441 (ASM_APP_OFF): Adjust.
2442 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
2443 (ASM_OUTPUT_REG_POP): Likewise.
2444 * config/arm/arm.md: Adjust uses of %., %(, %)
2445 * config/arm/sync.md: Likewise.
2446 * config/arm/thumb2.md: Likewise.
2447 * config/arm/ldmstm.md: Regenerate.
2448 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
2449 * doc/invoke.texi (masm-unified-syntax): Update documentation.
2451 2015-11-06 David Malcolm <dmalcolm@redhat.com>
2453 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
2455 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2457 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
2458 add OEP_MATCH_SIDE_EFFECTS.
2459 * fold-const.c (operand_equal_p): Update documentation; handle
2460 OEP_MATCH_SIDE_EFFECTS.
2461 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
2462 OEP_MATCH_SIDE_EFFECTS.
2464 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
2465 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
2467 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
2468 * config/aarch64/aarch64-protos.h: Declare.
2469 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
2471 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
2472 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
2473 code when applicable.
2474 * config/aarch64/aarch64.md: Added enum entries.
2475 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
2476 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common
2477 macros for assembly checks.
2478 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
2479 frsqrts and frsqrte are not emitted.
2480 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure
2481 frsqrts and frsqrte are emitted.
2482 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
2484 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2488 * ipa-polymorphic-call.c
2489 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
2490 issue when offset is out of range.
2491 (contains_type_p): Fix out of range check, clear dynamic flag.
2493 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
2495 * config.gcc (e6500): Fix cpu_is_64bit typo.
2497 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
2499 * tree-sra.c (completely_scalarize): Properly handle negative array
2500 indices using offset_int.
2502 2015-11-06 Richard Biener <rguenther@suse.de>
2504 * alloc-pool.h (object_allocator::allocate): Default-initialize
2507 2015-11-06 Richard Biener <rguenther@suse.de>
2509 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
2510 * lra.c (init_reg_info): Truncate copy_vec instead of
2511 re-allocating a new one and leaking the old.
2512 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
2514 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
2515 * postreload-gcse.c (free_mem): Free modify_mem_list and
2516 canon_modify_mem_list.
2518 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
2520 PR tree-optimization/68145
2521 * tree-vect-stmts.c (vectorizable_operation): Fix
2522 determination for booleans.
2524 2015-11-06 Tom de Vries <tom@codesourcery.com>
2526 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
2527 cond_jump, instead of split after last nondebug insn before cond_jump.
2528 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
2531 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2534 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
2535 subregs from accumulator and make sure it's a register.
2537 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
2539 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
2541 (reduc_uplus_<mode>): Remove.
2542 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
2543 loongson_extract_lo_<mode>.
2544 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
2545 reduc_smax_<mode>, reduc_smax_<mode>, use vec
2546 loongson_extract_lo_<mode>.
2547 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
2549 2015-11-06 Richard Biener <rguenther@suse.de>
2551 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
2553 (vect_stmt_in_region_p): Declare.
2554 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
2555 (destroy_bb_vec_info): Likewise.
2556 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
2557 (vect_get_and_check_slp_defs): Likewise.
2558 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
2559 (vect_slp_bb): Likewise.
2560 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
2561 in terms of vect_stmt_in_region_p.
2562 (vect_pattern_recog): Iterate over the BB region.
2563 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
2564 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
2565 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
2566 * config/i386/i386.c: Include gimple-iterator.h.
2567 * config/aarch64/aarch64.c: Likewise.
2569 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
2571 PR rtl-optimization/67753
2572 PR rtl-optimization/64164
2573 * function.c (assign_parm_setup_block): Avoid allocating a
2574 stack slot if we don't have an ABI-reserved one. Emit the
2575 copy to target_reg in the conversion seq if the copy from
2576 entry_parm is in it too. Don't use the conversion seq to copy
2577 a PARALLEL to a REG or a CONCAT.
2579 2015-11-06 Richard Biener <rguenther@suse.de>
2581 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
2584 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
2585 Thomas Schwinge <thomas@codesourcery.com>
2586 James Norris <jnorris@codesourcery.com>
2589 * gimplify.c (gimplify_scan_omp_clauses): Add support for
2590 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
2591 (gimplify_adjust_omp_clauses): Likewise.
2592 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
2593 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
2594 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
2595 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
2596 (omp_clause_code_name): Likewise.
2597 (walk_tree_1): Handle OMP_CLAUSE_TILE.
2598 * tree.h (OMP_TILE_LIST): New macro.
2600 2015-11-05 Martin Sebor <msebor@redhat.com>
2603 * doc/invoke.texi (-Wplacement-new): Document new option.
2605 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
2607 PR tree-optimization/65963
2608 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
2609 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
2611 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
2613 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
2614 (noce_convert_multiple_sets): Likewise.
2615 (noce_process_if_block): Call them.
2617 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
2619 * gimple-fold.c: Include omp-low.h.
2620 (fold_internal_goacc_dim): New.
2621 (gimple_fold_call): Call it.
2623 2015-11-05 Jakub Jelinek <jakub@redhat.com>
2624 Ilya Verbin <ilya.verbin@intel.com>
2627 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
2628 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
2629 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
2630 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
2631 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
2632 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
2633 (struct cgraph_simd_clone_arg): Adjust comment.
2634 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
2635 to GOMP_target_ext. Add num_teams and thread_limit arguments.
2636 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
2637 to GOMP_target_data_ext.
2638 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
2639 to GOMP_target_update_ext.
2640 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
2641 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
2642 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
2643 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
2644 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
2645 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
2646 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
2647 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
2648 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
2649 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
2650 * tree-core.h (enum omp_clause_schedule_kind): Add
2651 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
2652 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
2653 OMP_CLAUSE_SCHEDULE_LAST value.
2654 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
2655 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
2656 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
2657 OMP_FOR_CHECK. Remove comment.
2658 * tree-pretty-print.c (dump_omp_clause): Handle
2659 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
2660 Simplify. Print schedule clause modifiers.
2661 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
2662 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
2664 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
2665 (omp_default_clause): Tweak for
2666 private/firstprivate/is_device_ptr variables on target
2667 construct and use_device_ptr on target data.
2668 (omp_check_private): Likewise.
2669 (omp_notice_variable): For references check whether what it refers
2670 to has mappable type, rather than the reference itself.
2671 (omp_is_private): Diagnose linear iteration variables on non-simd
2673 (omp_no_lastprivate): Return true only for Fortran.
2674 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
2675 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
2676 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
2677 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
2678 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
2679 lastprivate and linear when combined with distribute. Gimplify
2680 variable low-bound for array reduction. Look through
2681 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
2683 (gimplify_adjust_omp_clauses_1): For implicit references to
2684 variables with reference type and when not ref to scalar or
2685 ref to pointer, map what they refer to using tofrom and
2686 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
2687 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
2688 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
2689 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
2690 Diagnose the same var on both firstprivate and lastprivate on
2691 distribute construct.
2692 (gimplify_omp_for): Fix up handling of predetermined
2693 lastprivate or linear iter vars when combined with distribute.
2694 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
2696 (gimplify_omp_workshare): Call optimize_target_teams.
2697 * omp-low.c (struct omp_region): Add sched_modifiers field.
2698 (struct omp_for_data): Likewise.
2699 (omp_any_child_fn_dumped): New variable.
2700 (extract_omp_for_data): Fill in sched_modifiers, and mask out
2701 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
2703 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
2704 bits of OMP_CLAUSE_SCHED_KIND.
2705 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
2706 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
2707 for array section reductions.
2708 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
2709 for distribute parallel for, if there are lastprivate clauses on the
2711 (lower_rec_input_clauses): Handle non-zero low-bound on array
2713 (lower_reduction_clauses): Likewise.
2714 (lower_send_clauses): Look through POINTER_PLUS_EXPR
2715 for array section reductions.
2716 (expand_parallel_call): Use nonmonotonic entrypoints for
2717 nonmonotonic: dynamic/guided.
2718 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
2719 child_fn if current_function_decl has assembler name set, but child_fn
2720 does not. Dump the header and IL of the child function when not in SSA
2722 (expand_omp_target): Likewise. Pass num_teams and thread_limit
2723 arguments to BUILT_IN_GOMP_TARGET.
2724 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2725 Initialize the extra _looptemp_ clause to fd->loop.n2.
2726 (expand_omp_for): Use nonmonotonic entrypoints for
2727 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
2728 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
2729 again if we have dumped any child functions.
2730 (lower_omp_for_lastprivate): Determine the right count variable
2731 for distribute simd, or distribute parallel for{, simd}.
2732 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
2733 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
2735 (simd_clone_clauses_extract): Handle variable step
2736 for references and arguments passed by reference.
2737 (simd_clone_mangle): Mangle ref/uval/val variable steps.
2738 (simd_clone_adjust_argument_types): Handle
2739 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
2740 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
2741 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
2742 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
2743 (simd_clone_linear_addend): New function.
2744 (simd_clone_adjust): Handle variable step like similarly
2745 to constant step, use simd_clone_linear_addend to determine
2746 the actual step at runtime.
2748 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
2750 * target.def (goacc.dim_limit): New hook.
2751 * targhooks.h (default_goacc_dim_limit): Declare.
2752 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
2753 * doc/tm.texi: Rebuilt.
2754 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
2755 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
2756 (default_goacc_dim_limit): New.
2757 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2758 (nvptx_goacc_dim_limit) New.
2759 (TARGET_GOACC_DIM_LIMIT): Override.
2760 * tree-vrp.c: Include omp-low.h, target.h.
2761 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
2764 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2766 * tree-vect-generic.c (do_compare): Use -1 for true
2767 result instead of 1.
2769 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2771 * config/aarch64/aarch64.c
2772 (aarch64_can_use_per_function_literal_pools_p): New.
2773 (aarch64_use_blocks_for_constant_p): Adjust declaration
2774 and use aarch64_can_use_function_literal_pools_p.
2775 (aarch64_select_rtx_section): Update.
2777 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
2779 * targhooks.c (default_get_mask_mode): Use BLKmode in
2780 case target doesn't support required vector mode.
2781 * stor-layout.c (layout_type); Check for BLKmode.
2783 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2784 Sebastian Pop <s.pop@samsung.com>
2786 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
2787 Remove use of parameter_rename_map.
2789 (copy_internal_parameters): Remove.
2790 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
2791 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
2792 (free_sese_info): Do not free parameter_rename_map.
2793 (set_rename): Do not use parameter_rename_map.
2794 (rename_uses): Update call to set_rename.
2795 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
2796 * sese.h (parameter_rename_map_t): Remove.
2797 (struct sese_info_t): Remove field parameter_rename_map.
2799 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
2800 Sebastian Pop <s.pop@samsung.com>
2802 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
2803 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
2804 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
2805 anonymous namespace.
2806 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
2807 (isl_id_for_pbb): Use a buffer of size 10.
2808 (isl_id_for_ssa_name): Same.
2809 * sese.c (set_rename): Add more dumps.
2811 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2813 * omp-low.c (struct omp_context): Remove reduction_map field.
2814 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
2815 (new_omp_context, delete_omp_context, scan_omp_target): Remove
2816 reduction_map handling.
2817 (lower_omp_target): Remove obsolete openacc reduction handling.
2819 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2821 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
2823 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2824 Cesar Philippidis <cesar@codesourcery.com>
2826 * config/nvptx/nvptx.c: Include gimple headers.
2827 (worker_red_size, worker_red_align, worker_red_name,
2828 worker_red_sym): New.
2829 (nvptx_option_override): Initialize worker reduction buffer.
2830 (nvptx_file_end): Write out worker reduction buffer var.
2831 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
2832 nvptx_expand_cmp_swap): New builtin expanders.
2833 (enum nvptx_builtins): New.
2834 (nvptx_builtin_decls): New.
2835 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
2836 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
2837 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
2838 nvptx_lockless_update): New helpers.
2839 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
2840 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
2841 (nvptx_goacc_reduction): New.
2842 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
2843 TARGET_BUILTIN_DECL): Override.
2844 (TARGET_GOACC_REDUCTION): Override.
2846 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
2847 Cesar Philippidis <cesar@codesourcery.com>
2849 * internal-fn.def (GOACC_REDUCTION): New.
2850 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
2851 * internal-fn.c (expand_GOACC_REDUCTION): New.
2852 * target.def (goacc.reduction): New OpenACC hook.
2853 * targhooks.h (default_goacc_reduction): Declare.
2854 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
2855 * doc/tm.texi: Rebuilt.
2856 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
2857 scan_sharing_clauses): Remove oacc reduction handling here.
2858 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
2859 (oacc_lower_reduction_var_helper): Delete.
2860 (lower_oacc_reductions): New.
2861 (lower_reduction_clauses): Don't handle OpenACC reductions here.
2862 (lower_oacc_head_tail): Call lower_oacc_reductions.
2863 (oacc_gimple_assign, oacc_init_reduction_array,
2864 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
2865 oacc_process_reduction_data): Delete.
2866 (lower_omp_target): Remove old OpenACC reduction handling. Insert
2867 dummy OpenACC gang reduction for reductions at outer level.
2868 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
2869 (default_goacc_reduction): New.
2870 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
2872 2015-11-04 Martin Liska <mliska@suse.cz>
2874 * cgraphunit.c (cgraph_node::expand_thunk): Call
2875 allocate_struct_function before init_function_start.
2876 (cgraph_node::expand): Use push_cfun and pop_cfun.
2877 * config/i386/i386.c (ix86_code_end): Call
2878 allocate_struct_function before init_function_start.
2879 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
2880 * function.c (init_function_start): Move preamble to all
2882 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
2883 (execute_one_pass): Handle newly added TODO_discard_function.
2884 (execute_pass_list_1): Terminate if cfun equals to NULL.
2885 (execute_pass_list): Do not push and pop cfun, expect that
2887 * tree-pass.h (TODO_discard_function): Define.
2889 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
2891 * cfganal.c (inverted_post_order_compute): Remove conditional
2892 compilation, use flag_checking.
2893 * config.in: Regenerate.
2894 * configure: Regenerate.
2895 * configure.ac: Remove ENABLE_CHECKING.
2896 * genconditions.c: Do not #undef ENABLE_CHECKING.
2897 * sese.h (bb_in_region): Comment out broken check.
2898 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
2899 conditional compilation, use flag_checking.
2901 2015-11-04 Tom de Vries <tom@codesourcery.com>
2903 PR tree-optimization/67742
2904 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
2906 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
2907 (create_variable_info_for_1): Add and handle handle_param parameter.
2908 Add restrict handling.
2909 (create_variable_info_for): Call create_variable_info_for_1 with extra
2911 (make_param_constraints): Drop restrict_name parameter. Ignore
2912 vi->only_restrict_pointers.
2913 (intra_create_variable_infos): Call create_variable_info_for_1 with
2914 extra arg. Remove restrict handling. Call make_param_constraints with
2917 2015-11-04 Tom de Vries <tom@codesourcery.com>
2919 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
2922 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
2924 * config/arm/coff.h: Remove.
2926 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
2928 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
2929 check for aggregate types and beef up comment for mode check.
2931 2015-11-03 Richard Biener <rguenther@suse.de>
2933 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
2934 data references here.
2935 * tree-vect-loop.c: Include cgraph.h.
2936 (vect_analyze_loop_2): Collect data references here.
2937 * tree-vect-slp.c (find_bb_location): Inline ...
2938 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
2939 Factor in vect_slp_transform_bb.
2940 (vect_slp_transform_bb): Removed.
2941 (vect_slp_analyze_bb_1): Collect data references here.
2942 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
2944 * tree-vectorizer.h (vect_slp_bb): Declare.
2945 (vect_slp_analyze_bb): Remove.
2946 (vect_slp_transform_bb): Remove.
2947 (find_bb_location): Remove.
2948 (vect_analyze_data_refs): Remove stmt count reference parameter.
2950 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
2952 * multiple_target.c (create_dispatcher_calls): Add target check
2954 (create_target_clone): Change assembler name for versioned declarations.
2956 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
2957 Chung-Lin Tang <cltang@codesourcery.com>
2959 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
2960 * omp-low.c (check_omp_nesting_restrictions): Allow
2961 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
2964 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
2966 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
2967 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
2968 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
2970 (vmulxq_f32): Likewise.
2972 (vmulxq_f64): Rewrite to call fmulx builtin.
2973 (vmulxs_f32): Likewise.
2974 (vmulxd_f64): Likewise.
2975 (vmulx_lane_f32): Remove.
2976 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
2978 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
2980 * config/aarch64/aarch64.md (*movhf_aarch64): Use
2981 aarch64_reg_or_fp_zero for second operand.
2983 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
2985 * gimple-expr.c: Include hash-set.h and rtl.h.
2986 (mark_addressable_queue): New var.
2987 (mark_addressable): Factor actual marking into...
2988 (mark_addressable_1): ... this. Queue it up during expand.
2989 (mark_addressable_2): New.
2990 (flush_mark_addressable_queue): New.
2991 * gimple-expr.h (flush_mark_addressable_queue): Declare.
2992 * cfgexpand.c: Include gimple-expr.h.
2993 (pass_expand::execute): Flush mark_addressable queue.
2995 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
2997 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
2998 bb_no_side_effects_p tests...
2999 (tree_ssa_ifcombine_bb): ... here.
3001 PR tree-optimization/68083
3002 * tree-ssa-ifcombine.c: Include tree-ssa.h.
3003 (bb_no_side_effects_p): Test for undefined uses too.
3004 * tree-ssa.c (gimple_uses_undefined_value_p): New.
3005 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
3007 2015-11-02 Jeff Law <law@redhat.com>
3009 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
3010 cases where the loop latch edge is in the middle of an FSM path.
3012 2015-11-03 Tom de Vries <tom@codesourcery.com>
3014 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
3015 (make_param_constraints): ... this. Add and handle restrict_name
3016 parameter. Handle is_full_var case.
3017 (intra_create_variable_infos): Use make_param_constraints.
3019 2015-11-03 Tom de Vries <tom@codesourcery.com>
3021 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
3022 make_copy_constraint call with make_constraint_from call.
3024 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
3026 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
3029 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
3031 * builtins.h (fold_fma): Move to fold-const-call.h.
3032 * builtins.c: Include fold-const-call.h.
3033 (mathfn_built_in_2): New function, split out from...
3034 (mathfn_built_in_1): ...here.
3035 (do_real_to_int_conversion, fold_const_builtin_pow)
3036 (fold_const_builtin_logb, fold_const_builtin_significand)
3037 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
3038 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
3039 (fold_builtin_sincos): Use fold_const_call to handle constants.
3040 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
3041 checks for ERROR_MARK. Use fold_const_call to handle constant
3042 folds for math functions.
3043 (fold_fma): Move to fold-const-call.c.
3044 * fold-const.c: Include fold-const-call.h.
3045 * Makefile.in (OBJS): Add fold-const-call.o.
3046 (PLUGIN_HEADERS): Add fold-const-call.h.
3047 * realmpfr.h (real_from_mpfr): Allow the format to be specified
3049 * realmpfr.c (real_from_mpfr): Likewise.
3050 * fold-const-call.h, fold-const-call.c: New files.
3052 2015-11-02 Julian Brown <julian@codesourcery.com>
3054 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
3055 brackets and semicolon.
3057 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
3060 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
3062 PR tree-optimization/65963
3063 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3064 LSHIFT_EXPRs as equivalent MULT_EXPRs.
3066 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
3069 * fold-const.c: Include "md5.h".
3071 2015-11-01 Jeff Law <law@redhat.com>
3073 * vmsdbgout.c: Revert unused header file reduction patch.
3075 * config/mcore/mcore.c: Include regs.h.
3077 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
3079 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
3081 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
3083 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
3084 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
3085 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
3087 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
3089 * ggc-common.c: Restore needed header for checking=release.
3091 2015-10-31 Tom de Vries <tom@codesourcery.com>
3093 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
3095 2015-10-31 Tom de Vries <tom@codesourcery.com>
3097 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
3098 existing varinfo for arguments.
3100 2015-10-31 Tom de Vries <tom@codesourcery.com>
3102 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
3103 create_function_info_for. Dump constraints generated during
3104 create_function_info_for. Move intra_create_variable_infos call and
3105 function-return-values-escape bit to ...
3106 (create_function_info_for): ... here, and merge
3107 intra_create_variable_infos call with argument loop. Add and handle
3108 nonlocal_p parameter.
3110 2015-10-31 Tom de Vries <tom@codesourcery.com>
3112 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
3113 updating is alap, and seperated from preceding code. Make sure
3114 insert_vi_for_tree is seperated from surrounding code.
3116 2015-10-31 Tom de Vries <tom@codesourcery.com>
3118 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
3120 2015-10-30 Jeff Law <law@redhat.com>
3121 Nathan Sidwell <nathan@acm.org>
3123 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
3125 (MOVE_MAX): Set to 8.
3127 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
3129 * cgraph.c: Include context.h for offloading.
3130 * varpool.c: Include context.h and omp-low.h.
3132 2015-10-30 Anatoly Sokolov <aesok@post.ru>
3134 * rtl.h (contains_symbol_ref_p): Declare.
3135 (SYMBOL_REF_P): Define.
3136 * rtlanal.c (contains_symbol_ref_p: New function.
3137 * lra-constraints.c (contains_symbol_ref_p): Remove.
3138 * var-tracking.c (contains_symbol_ref): Remove.
3139 (track_expr_p): Use contains_symbol_ref_p instead of
3140 contains_symbol_ref.
3142 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
3144 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
3145 * fold-const.c (get_array_ctor_element_at_index): New.
3146 (fold): Remove binary-search through CONSTRUCTOR, call previous.
3148 * fold-const.h (get_array_ctor_element_at_index): New.
3150 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
3152 * Makefile.in (OBJS): Add multiple_target.o.
3153 * attrib.c (make_attribute): Moved from config/i386/i386.c
3154 * config/i386/i386.c (make_attribute): Deleted.
3155 * multiple_target.c (create_dispatcher_calls): New.
3156 (get_attr_len): Ditto.
3157 (get_attr_str): Ditto.
3158 (separate_attrs): Ditto.
3159 (is_valid_asm_symbol): Ditto.
3160 (create_new_asm_name): Ditto.
3161 (create_target_clone): Ditto.
3162 (expand_target_clones): Ditto.
3163 (ipa_target_clone): Ditto.
3164 (ipa_dispatcher_calls): Ditto.
3165 * passes.def (pass_target_clone): Two new ipa passes.
3166 * tree-pass.h (make_pass_target_clone): Ditto.
3167 * doc/extend.texi (target_clones): New attribute description.
3169 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
3171 PR rtl-optimization/68106
3172 * lra-remat.c (input_regno_present_p): Process hard regs
3173 explicitly present in machine description insns.
3174 (call_used_input_regno_present_p): Ditto.
3175 (calculate_gen_cands): Ditto.
3178 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
3180 * config/arm/neon-testgen.ml: Fix comment typo.
3182 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3184 * rtlanal.c (reg_set_p): Expand function comment.
3186 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
3188 * alias.c: Remove unused headers.
3190 * attribs.c: Likewise.
3191 * auto-inc-dec.c: Likewise.
3192 * auto-profile.c: Likewise.
3193 * bb-reorder.c: Likewise.
3194 * bitmap.c: Likewise.
3195 * bt-load.c: Likewise.
3196 * builtins.c: Likewise.
3197 * caller-save.c: Likewise.
3198 * calls.c: Likewise.
3201 * cfganal.c: Likewise.
3202 * cfgbuild.c: Likewise.
3203 * cfgcleanup.c: Likewise.
3204 * cfgexpand.c: Likewise.
3205 * cfghooks.c: Likewise.
3206 * cfgloop.c: Likewise.
3207 * cfgloopanal.c: Likewise.
3208 * cfgloopmanip.c: Likewise.
3209 * cfgrtl.c: Likewise.
3210 * cgraph.c: Likewise.
3211 * cgraphbuild.c: Likewise.
3212 * cgraphclones.c: Likewise.
3213 * cgraphunit.c: Likewise.
3214 * cilk-common.c: Likewise.
3215 * combine-stack-adj.c: Likewise.
3216 * combine.c: Likewise.
3217 * compare-elim.c: Likewise.
3218 * convert.c: Likewise.
3219 * coverage.c: Likewise.
3220 * cppbuiltin.c: Likewise.
3221 * cprop.c: Likewise.
3223 * cselib.c: Likewise.
3224 * data-streamer-in.c: Likewise.
3225 * data-streamer-out.c: Likewise.
3226 * data-streamer.c: Likewise.
3227 * dbxout.c: Likewise.
3230 * debug.c: Likewise.
3231 * df-core.c: Likewise.
3232 * df-problems.c: Likewise.
3233 * df-scan.c: Likewise.
3235 * dojump.c: Likewise.
3236 * dominance.c: Likewise.
3237 * domwalk.c: Likewise.
3238 * double-int.c: Likewise.
3240 * dumpfile.c: Likewise.
3241 * dwarf2asm.c: Likewise.
3242 * dwarf2cfi.c: Likewise.
3243 * dwarf2out.c: Likewise.
3244 * emit-rtl.c: Likewise.
3245 * except.c: Likewise.
3246 * explow.c: Likewise.
3247 * expmed.c: Likewise.
3249 * final.c: Likewise.
3250 * fixed-value.c: Likewise.
3251 * fold-const.c: Likewise.
3252 * function.c: Likewise.
3253 * fwprop.c: Likewise.
3255 * generic-match-head.c: Likewise.
3256 * ggc-common.c: Likewise.
3257 * gimple-builder.c: Likewise.
3258 * gimple-expr.c: Likewise.
3259 * gimple-fold.c: Likewise.
3260 * gimple-iterator.c: Likewise.
3261 * gimple-low.c: Likewise.
3262 * gimple-match-head.c: Likewise.
3263 * gimple-pretty-print.c: Likewise.
3264 * gimple-ssa-isolate-paths.c: Likewise.
3265 * gimple-ssa-strength-reduction.c: Likewise.
3266 * gimple-streamer-in.c: Likewise.
3267 * gimple-streamer-out.c: Likewise.
3268 * gimple-walk.c: Likewise.
3269 * gimple.c: Likewise.
3270 * gimplify-me.c: Likewise.
3271 * gimplify.c: Likewise.
3272 * godump.c: Likewise.
3273 * graph.c: Likewise.
3274 * graphds.c: Likewise.
3275 * haifa-sched.c: Likewise.
3276 * hw-doloop.c: Likewise.
3277 * ifcvt.c: Likewise.
3278 * init-regs.c: Likewise.
3279 * internal-fn.c: Likewise.
3280 * ipa-chkp.c: Likewise.
3281 * ipa-comdats.c: Likewise.
3282 * ipa-cp.c: Likewise.
3283 * ipa-devirt.c: Likewise.
3284 * ipa-icf-gimple.c: Likewise.
3285 * ipa-icf.c: Likewise.
3286 * ipa-inline-analysis.c: Likewise.
3287 * ipa-inline-transform.c: Likewise.
3288 * ipa-inline.c: Likewise.
3289 * ipa-polymorphic-call.c: Likewise.
3290 * ipa-profile.c: Likewise.
3291 * ipa-prop.c: Likewise.
3292 * ipa-pure-const.c: Likewise.
3293 * ipa-ref.c: Likewise.
3294 * ipa-reference.c: Likewise.
3295 * ipa-split.c: Likewise.
3296 * ipa-utils.c: Likewise.
3297 * ipa-visibility.c: Likewise.
3299 * ira-build.c: Likewise.
3300 * ira-color.c: Likewise.
3301 * ira-conflicts.c: Likewise.
3302 * ira-costs.c: Likewise.
3303 * ira-emit.c: Likewise.
3304 * ira-lives.c: Likewise.
3307 * langhooks.c: Likewise.
3309 * lists.c: Likewise.
3310 * loop-doloop.c: Likewise.
3311 * loop-init.c: Likewise.
3312 * loop-invariant.c: Likewise.
3313 * loop-iv.c: Likewise.
3314 * loop-unroll.c: Likewise.
3315 * lower-subreg.c: Likewise.
3316 * lra-assigns.c: Likewise.
3317 * lra-coalesce.c: Likewise.
3318 * lra-constraints.c: Likewise.
3319 * lra-eliminations.c: Likewise.
3320 * lra-lives.c: Likewise.
3321 * lra-remat.c: Likewise.
3322 * lra-spills.c: Likewise.
3324 * lto-cgraph.c: Likewise.
3325 * lto-compress.c: Likewise.
3326 * lto-opts.c: Likewise.
3327 * lto-section-in.c: Likewise.
3328 * lto-section-out.c: Likewise.
3329 * lto-streamer-in.c: Likewise.
3330 * lto-streamer-out.c: Likewise.
3331 * lto-streamer.c: Likewise.
3333 * mode-switching.c: Likewise.
3334 * modulo-sched.c: Likewise.
3335 * optabs.c: Likewise.
3336 * opts-global.c: Likewise.
3337 * passes.c: Likewise.
3338 * plugin.c: Likewise.
3339 * postreload-gcse.c: Likewise.
3340 * postreload.c: Likewise.
3341 * predict.c: Likewise.
3342 * print-tree.c: Likewise.
3343 * profile.c: Likewise.
3345 * realmpfr.c: Likewise.
3346 * recog.c: Likewise.
3348 * reg-stack.c: Likewise.
3349 * regcprop.c: Likewise.
3350 * reginfo.c: Likewise.
3351 * regrename.c: Likewise.
3352 * regstat.c: Likewise.
3353 * reload.c: Likewise.
3354 * reload1.c: Likewise.
3355 * reorg.c: Likewise.
3356 * resource.c: Likewise.
3357 * rtl-chkp.c: Likewise.
3358 * rtl-error.c: Likewise.
3359 * rtlanal.c: Likewise.
3360 * rtlhooks.c: Likewise.
3361 * sanopt.c: Likewise.
3362 * sched-deps.c: Likewise.
3363 * sched-ebb.c: Likewise.
3364 * sched-rgn.c: Likewise.
3365 * sdbout.c: Likewise.
3366 * sel-sched-dump.c: Likewise.
3367 * sel-sched-ir.c: Likewise.
3368 * sel-sched.c: Likewise.
3370 * shrink-wrap.c: Likewise.
3371 * simplify-rtx.c: Likewise.
3372 * stack-ptr-mod.c: Likewise.
3373 * statistics.c: Likewise.
3375 * stor-layout.c: Likewise.
3376 * store-motion.c: Likewise.
3377 * stringpool.c: Likewise.
3378 * symtab.c: Likewise.
3379 * target-globals.c: Likewise.
3380 * targhooks.c: Likewise.
3381 * toplev.c: Likewise.
3382 * tracer.c: Likewise.
3383 * trans-mem.c: Likewise.
3384 * tree-affine.c: Likewise.
3385 * tree-call-cdce.c: Likewise.
3386 * tree-cfg.c: Likewise.
3387 * tree-cfgcleanup.c: Likewise.
3388 * tree-chkp-opt.c: Likewise.
3389 * tree-chkp.c: Likewise.
3390 * tree-chrec.c: Likewise.
3391 * tree-complex.c: Likewise.
3392 * tree-data-ref.c: Likewise.
3393 * tree-dfa.c: Likewise.
3394 * tree-diagnostic.c: Likewise.
3395 * tree-dump.c: Likewise.
3396 * tree-eh.c: Likewise.
3397 * tree-emutls.c: Likewise.
3398 * tree-if-conv.c: Likewise.
3399 * tree-inline.c: Likewise.
3400 * tree-into-ssa.c: Likewise.
3401 * tree-iterator.c: Likewise.
3402 * tree-loop-distribution.c: Likewise.
3403 * tree-nested.c: Likewise.
3404 * tree-nrv.c: Likewise.
3405 * tree-object-size.c: Likewise.
3406 * tree-outof-ssa.c: Likewise.
3407 * tree-parloops.c: Likewise.
3408 * tree-phinodes.c: Likewise.
3409 * tree-predcom.c: Likewise.
3410 * tree-pretty-print.c: Likewise.
3411 * tree-profile.c: Likewise.
3412 * tree-scalar-evolution.c: Likewise.
3413 * tree-sra.c: Likewise.
3414 * tree-ssa-address.c: Likewise.
3415 * tree-ssa-alias.c: Likewise.
3416 * tree-ssa-ccp.c: Likewise.
3417 * tree-ssa-coalesce.c: Likewise.
3418 * tree-ssa-copy.c: Likewise.
3419 * tree-ssa-dce.c: Likewise.
3420 * tree-ssa-dse.c: Likewise.
3421 * tree-ssa-forwprop.c: Likewise.
3422 * tree-ssa-ifcombine.c: Likewise.
3423 * tree-ssa-live.c: Likewise.
3424 * tree-ssa-loop-ch.c: Likewise.
3425 * tree-ssa-loop-im.c: Likewise.
3426 * tree-ssa-loop-ivcanon.c: Likewise.
3427 * tree-ssa-loop-ivopts.c: Likewise.
3428 * tree-ssa-loop-manip.c: Likewise.
3429 * tree-ssa-loop-niter.c: Likewise.
3430 * tree-ssa-loop-prefetch.c: Likewise.
3431 * tree-ssa-loop-unswitch.c: Likewise.
3432 * tree-ssa-loop.c: Likewise.
3433 * tree-ssa-math-opts.c: Likewise.
3434 * tree-ssa-operands.c: Likewise.
3435 * tree-ssa-phiopt.c: Likewise.
3436 * tree-ssa-phiprop.c: Likewise.
3437 * tree-ssa-pre.c: Likewise.
3438 * tree-ssa-propagate.c: Likewise.
3439 * tree-ssa-reassoc.c: Likewise.
3440 * tree-ssa-scopedtables.c: Likewise.
3441 * tree-ssa-sink.c: Likewise.
3442 * tree-ssa-strlen.c: Likewise.
3443 * tree-ssa-structalias.c: Likewise.
3444 * tree-ssa-tail-merge.c: Likewise.
3445 * tree-ssa-ter.c: Likewise.
3446 * tree-ssa-threadupdate.c: Likewise.
3447 * tree-ssa-uncprop.c: Likewise.
3448 * tree-ssa-uninit.c: Likewise.
3449 * tree-ssa.c: Likewise.
3450 * tree-ssanames.c: Likewise.
3451 * tree-stdarg.c: Likewise.
3452 * tree-streamer-in.c: Likewise.
3453 * tree-streamer-out.c: Likewise.
3454 * tree-streamer.c: Likewise.
3455 * tree-switch-conversion.c: Likewise.
3456 * tree-tailcall.c: Likewise.
3457 * tree-vect-data-refs.c: Likewise.
3458 * tree-vect-generic.c: Likewise.
3459 * tree-vect-loop-manip.c: Likewise.
3460 * tree-vect-loop.c: Likewise.
3461 * tree-vect-patterns.c: Likewise.
3462 * tree-vect-slp.c: Likewise.
3463 * tree-vect-stmts.c: Likewise.
3464 * tree-vectorizer.c: Likewise.
3465 * tree-vrp.c: Likewise.
3468 * ubsan.c: Likewise.
3469 * value-prof.c: Likewise.
3470 * var-tracking.c: Likewise.
3471 * varasm.c: Likewise.
3472 * varpool.c: Likewise.
3473 * vmsdbgout.c: Likewise.
3474 * vtable-verify.c: Likewise.
3476 * wide-int-print.cc: Likewise.
3477 * wide-int.cc: Likewise.
3478 * xcoffout.c: Likewise.
3480 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
3482 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
3483 between pass numbering and execution order.
3485 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3487 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
3488 check for dependencies.
3490 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3492 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
3495 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3497 * real.h (format_helper): New.
3498 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
3499 (real_from_target, real_nan, real_2expN, real_value_truncate)
3500 (significand_size, real_from_string2, exact_real_inverse)
3501 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
3502 (real_round, real_isinteger, real_from_integer): Replace
3503 machine_mode arguments with format_helper arguments.
3504 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
3505 (real_from_integer, real_nan, real_2expN, real_convert)
3506 (real_value_truncate, exact_real_truncate, real_to_target)
3507 (real_from_target, significand_size, real_powi, real_trunc)
3508 (real_floor, real_ceil, real_round, real_isinteger): Replace
3509 machine_mode arguments with format_helper arguments.
3510 (real_to_target_fmt, real_from_target_fmt): Delete.
3511 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
3512 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
3513 argument with real_format.
3514 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
3516 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3518 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
3519 (fixed_to_decimal, fixed_convert_from_real)
3520 (real_convert_from_fixed): Fix mode arguments to real_2expN.
3522 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
3524 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
3525 SCALAR_FLOAT_MODE_P.
3527 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
3529 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
3530 (completely_scalarize): Comment zero-length arrays.
3531 (get_access_replacement): Correct comment re. precondition.
3533 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3535 * config/i386/i386.c (get_builtin_code_for_version): Set priority
3536 for PROCESSOR_ZNVER1.
3537 (enum processor_model): Add M_AMDFAM17H_znver1.
3538 (struct arch_names_table): Likewise.
3539 * doc/extend.texi: ADD znver1.
3541 2015-10-30 Richard Biener <rguenther@suse.de>
3543 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
3544 fold () on single RHSs. Allow CONSTRUCTORS with trailing
3545 zeros to be folded to VECTOR_CSTs.
3546 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
3547 * fold-const.c (fold): Use build_vector_from_ctor.
3549 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
3551 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
3552 "mov %0.h[0], %1.h[0] to "neon_move".
3553 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
3554 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
3556 (*cmovsi_insn_uxtw): Likewise.
3558 2015-10-30 Tom de Vries <tom@codesourcery.com>
3560 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
3561 unsigned, and initialize, and use initial value instead of hardcoded
3562 constant. Add generic constraints dumping section. Don't dump global
3563 initializers constraints dumping section if empty. Don't update
3564 variable from if unused.
3566 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
3568 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
3569 flag_checking and/or CHECKING_P to eliminate conditional compilation
3571 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
3572 * config/bfin/bfin.c (hwloop_optimize): Likewise.
3573 * config/i386/i386.c (ix86_print_operand_address): Likewise.
3574 (output_387_binary_op): Likewise.
3575 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
3576 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
3577 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
3579 * config/rs6000/rs6000.h: Likewise.
3580 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
3582 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
3584 * config/sh/sh.opt (mfdpic): Add missing period.
3586 2015-08-29 Anatoly Sokolov <aesok@post.ru>
3588 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
3589 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
3590 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
3591 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
3592 mcore_base_register_rtx_p, mcore_legitimate_index_p,
3593 mcore_legitimate_address_p): New functions.
3594 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
3596 2015-10-29 Jeff Law <law@redhat.com>
3598 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
3600 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
3601 * tree-ssa-threadedge.c
3602 (record_temporary_equivalences_from_stmts_at_dest): Remove
3603 backedge_seen argument and associated code which invalidated
3604 equivalences based on the value of that argument.
3605 (thread_through_normal_block): Corresponding changes.
3607 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
3609 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
3610 function earlier in the file.
3611 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
3612 df_regs_ever_live_p.
3614 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
3616 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
3619 2015-10-29 Richard Henderson <rth@redhat.com>
3623 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
3624 sse check to the exact conditions of PR 67609.
3626 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3628 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
3629 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
3630 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
3631 of the traditional names that TFmode uses for handling IEEE
3632 extended double. If -mfloat128, add KFmode functions for all of
3633 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
3634 make TFmode use the same emulation functions as KFmode.
3635 (init_float128_ibm): Likewise.
3636 (init_float128_ieee): Likewise.
3637 (rs6000_generate_compare): For IEEE 128-bit floating point
3638 comparisons, call the unordered comparison function instead of the
3639 ordered comparison function.
3640 (rs6000_expand_float128_convert): Deal with operands that are
3641 memory operands. Restructure the code to use a switch statement on
3642 the mode. Add support for TFmode defaulting to either IBM extended
3643 double or IEEE 128-bit floating point. If the underlying types are
3644 the same, use a move instead of a conversion function.
3645 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
3646 use for IEEE 128-bit floating point constants with -mfloat128.
3647 (rs6000_c_mode_for_suffix): Likewise.
3648 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
3649 128-bit floating point with IBM extended double floating point.
3650 (rs6000_invalid_binary_op): Likewise.
3651 (rs6000_gen_le_vsx_permute): On little endian systems generate a
3652 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
3653 types that can go in vector registers.
3654 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
3655 point types that can go in vector registers on little endian
3657 (mark_swaps_for_removal): Likewise.
3658 (rs6000_analyze_swaps): Likewise.
3659 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
3661 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
3662 rework IEEE 128-bit floating point insns to deal with TFmode being
3663 either IBM extended double or IEEE 128-bit floating point.
3665 (IBM128): Update iterator to add condition that the mode is IBM
3667 (IEEE128): New iterator for IEEE 128-bit floating point.
3668 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
3669 (FLOAT128): Likewise.
3670 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
3672 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
3673 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
3674 instead of hard coding TFmode or KFmode.
3675 (negtf2_internal): Likewise.
3676 (neg<mode>2_internal): Likewise.
3677 (abs<mode>2): Likewise.
3678 (abstf2_internal): Likewise.
3679 (abs<mode>2_internal): Likewise.
3680 (ieee_128bit_neg<mode>2): Likewise.
3681 (ieee_128bit_neg<mode>2_internal): Likewise.
3682 (ieee_128bit_abs<mode>2): Likewise.
3683 (ieee_128bit_abs<mode>2_internal): Likewise.
3684 (ieee_128bit_nabs<mode>2): Likewise.
3685 (ieee_128bit_nabs<mode>2_internal): Likewise.
3686 (extendiftf2): Add explicit conversions between 128-bit floating
3687 point types. Drop the old conversions that had become unwieldy.
3688 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
3689 (extendifkf2): Likewise.
3690 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
3691 (extendtfkf2): Likewise.
3692 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
3693 (trunciftf2): Likewise.
3694 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
3695 (truncifkf2): Likewise.
3696 (float<SDI:mode><IFKF:mode>2): Likewise.
3697 (trunckftf2): Likewise.
3698 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
3699 (trunctfif2): Likewise.
3700 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
3701 (extenddftf2): Rework 128-bit floating point conversions to
3702 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
3703 KFmode expanders into one function.
3704 (extenddf<mode>2): Likewise.
3705 (extenddftf2_fprs): Likewise.
3706 (extenddf<mode>2_fprs): Likewise.
3707 (extenddftf2_vsx): Likewise.
3708 (extenddf<mode>2_vsx): Likewise.
3709 (extendsftf2): Likewise.
3710 (extendsf<mode>2): Likewise.
3711 (trunctfdf2): Likewise.
3712 (trunc<mode>df2): Likewise.
3713 (trunctfdf2_internal1): Likewise.
3714 (trunc<mode>df2_internal1): Likewise.
3715 (trunctfdf2_internal2): Likewise.
3716 (trunc<mode>df2_internal2): Likewise.
3717 (trunctfsf2): Likewise.
3718 (trunc<mode>sf2): Likewise.
3719 (trunctfsf2_fprs): Likewise.
3720 (trunc<mode>sf2_fprs): Likewise.
3721 (floatsit2f): Likewise.
3722 (floatsi<mode>2): Likewise.
3723 (fix_trunc_helper): Likewise.
3724 (fix_trunc_helper<mode>): Likewise.
3725 (fix_trunctfsi2): Likewise.
3726 (fix_trunc<mode>si2): Likewise.
3727 (fix_trunctfsi2_fprs): Likewise.
3728 (fix_trunc<mode>si2_fprs): Likewise.
3729 (fix_trunctfsi2_internal): Likewise.
3730 (fix_trunc<mode>si2_internal): Likewise.
3731 (fix_trunctfdi2): Likewise.
3732 (fix_trunc<mode>di2): Likewise.
3733 (fixuns_trunctf<mode>2): Likewise.
3734 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
3735 (floatditf2): Likewise.
3736 (floatdi<mode>2): Likewise.
3737 (floatuns<mode>tf2): Likewise.
3738 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
3739 (cmptf_internal1): Use a mode iterator to add support for both
3740 types (IFmode, TFmode) that support IBM extended double.
3741 (cmp<mode>_internal1): Likewise.
3742 (cmptf_internal2): Likewise.
3743 (cmp<mode>_internal2): Likewise.
3745 * doc/extend.texi (Floating Types): Document __ibm128 and
3746 __float128 on PowerPC.
3748 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
3749 -mfloat128 and -mno-float128.
3751 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
3753 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
3754 floating point modes that can go in vector registers.
3755 (MODES_TIEABLE_P): Move tests for vector modes before tests for
3756 scalar floating point, so that IEEE 128-bit floating point that
3757 can go in vector registers bind with vectors and not FP.
3758 (struct rs6000_args): Add libcall field.
3760 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
3761 and -mfloat128-software switches. Replace them with a binary
3763 (-mfloat128): Likewise.
3765 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
3766 128-bit floating point types in GPRs, even if the appropriate
3767 option enabling the type was not used.
3768 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
3770 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
3771 pre-decrement on IEEE 128-bit floating point values.
3772 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
3773 is IEEE 128-bit floating point.
3774 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
3775 128-bit floating point types that can go in vector registers.
3776 (rs6000_option_override_internal): Change -mfloat128-none and
3777 -mfloat128-software to -mfloat128, and move code to be near other
3778 VSX option handling.
3779 (rs6000_option_override_internal): Disable -mfloat128 if we don't
3780 have the Altivec ABI.
3781 (rs6000_init_builtins): Don't make TFmode use either IFmode or
3782 KFmode floating point nodes. Instead, have three separate nodes.
3783 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
3784 eventually moving the long double default to IEEE 128-bit floating
3786 (rs6000_opt_masks): Add -mfloat128.
3787 (struct rs6000_opt_var): Fix typo in comment.
3788 (init_cumulative_args): Initialize libcall field in
3790 (rs6000_function_arg): Treat library functions as if they had
3791 prototypes to prevent IEEE 128-bit support functions from passing
3792 arguments in both GPRs and vector registers.
3793 (rs6000_arg_partial_bytes): Likewise.
3795 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
3796 an option that can be turned on via -mcpu=<xxx>.
3798 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
3801 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
3802 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
3803 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
3804 double is IBM extended double.
3806 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
3809 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
3811 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
3812 * genconditions.c: Define CHECKING_P in the generated code.
3813 * genextract.c: Use flag_checking in insn_extract.
3814 * gengtype.c (main): Remove conditional compilation.
3815 * gengtype.h: Likewise.
3817 2015-10-29 Jeff Law <law@redhat.com>
3819 PR tree-optimization/67892
3820 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
3822 (thread_through_normal_block): If we have seen a backedge, then
3823 do nothing. No longer call find_jump_threads_backwards here.
3824 (thread_across_edge): Use find_jump_threads_backwards to find
3825 jump threads if the old style threader was not successful.
3826 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
3827 gsi_last_nondebug_bb. Return NULL if the block does not end
3828 with a control statement.
3829 (find_jump_threads_backwards): Setup code moved here from
3830 tree-ssa-threadedge.c::thread_through_normal_block. Accept
3831 single edge argument instead of name & block.
3832 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
3835 2015-10-29 Tom de Vries <tom@codesourcery.com>
3837 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
3840 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
3842 * omp-low.c (lower_omp_target): Remove unreachable code & merge
3845 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
3847 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
3849 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3851 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3852 guard_bb0 and use guard_bb throughout.
3854 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
3856 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
3859 2015-10-29 Richard Biener <rguenther@suse.de>
3862 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
3865 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
3867 * alias.c: Reorder #include statements and remove duplicates.
3869 * attribs.c: Likewise.
3870 * auto-inc-dec.c: Likewise.
3871 * auto-profile.c: Likewise.
3872 * bb-reorder.c: Likewise.
3873 * bt-load.c: Likewise.
3874 * builtins.c: Likewise.
3875 * caller-save.c: Likewise.
3876 * calls.c: Likewise.
3879 * cfganal.c: Likewise.
3880 * cfgbuild.c: Likewise.
3881 * cfgcleanup.c: Likewise.
3882 * cfgexpand.c: Likewise.
3883 * cfghooks.c: Likewise.
3884 * cfgloop.c: Likewise.
3885 * cfgloopanal.c: Likewise.
3886 * cfgloopmanip.c: Likewise.
3887 * cfgrtl.c: Likewise.
3888 * cgraph.c: Likewise.
3889 * cgraphbuild.c: Likewise.
3890 * cgraphclones.c: Likewise.
3891 * cgraphunit.c: Likewise.
3892 * cilk-common.c: Likewise.
3893 * combine-stack-adj.c: Likewise.
3894 * combine.c: Likewise.
3895 * compare-elim.c: Likewise.
3896 * convert.c: Likewise.
3897 * coverage.c: Likewise.
3898 * cppbuiltin.c: Likewise.
3899 * cprop.c: Likewise.
3901 * cselib.c: Likewise.
3902 * data-streamer-in.c: Likewise.
3903 * data-streamer-out.c: Likewise.
3904 * data-streamer.c: Likewise.
3905 * dbxout.c: Likewise.
3908 * debug.c: Likewise.
3909 * df-core.c: Likewise.
3910 * df-problems.c: Likewise.
3911 * df-scan.c: Likewise.
3913 * dojump.c: Likewise.
3914 * dominance.c: Likewise.
3915 * double-int.c: Likewise.
3917 * dumpfile.c: Likewise.
3918 * dwarf2asm.c: Likewise.
3919 * dwarf2cfi.c: Likewise.
3920 * dwarf2out.c: Likewise.
3921 * emit-rtl.c: Likewise.
3922 * except.c: Likewise.
3923 * explow.c: Likewise.
3924 * expmed.c: Likewise.
3926 * final.c: Likewise.
3927 * fixed-value.c: Likewise.
3928 * fold-const.c: Likewise.
3929 * function.c: Likewise.
3930 * fwprop.c: Likewise.
3932 * generic-match-head.c: Likewise.
3933 * ggc-common.c: Likewise.
3934 * gimple-builder.c: Likewise.
3935 * gimple-expr.c: Likewise.
3936 * gimple-fold.c: Likewise.
3937 * gimple-iterator.c: Likewise.
3938 * gimple-low.c: Likewise.
3939 * gimple-match-head.c: Likewise.
3940 * gimple-pretty-print.c: Likewise.
3941 * gimple-ssa-isolate-paths.c: Likewise.
3942 * gimple-ssa-strength-reduction.c: Likewise.
3943 * gimple-streamer-in.c: Likewise.
3944 * gimple-streamer-out.c: Likewise.
3945 * gimple-walk.c: Likewise.
3946 * gimple.c: Likewise.
3947 * gimplify-me.c: Likewise.
3948 * gimplify.c: Likewise.
3949 * godump.c: Likewise.
3950 * graph.c: Likewise.
3951 * graphite-poly.c: Likewise.
3952 * haifa-sched.c: Likewise.
3953 * hw-doloop.c: Likewise.
3954 * ifcvt.c: Likewise.
3955 * incpath.c: Likewise.
3956 * init-regs.c: Likewise.
3957 * internal-fn.c: Likewise.
3958 * ipa-chkp.c: Likewise.
3959 * ipa-comdats.c: Likewise.
3960 * ipa-cp.c: Likewise.
3961 * ipa-devirt.c: Likewise.
3962 * ipa-icf-gimple.c: Likewise.
3963 * ipa-icf.c: Likewise.
3964 * ipa-inline-analysis.c: Likewise.
3965 * ipa-inline-transform.c: Likewise.
3966 * ipa-inline.c: Likewise.
3967 * ipa-polymorphic-call.c: Likewise.
3968 * ipa-profile.c: Likewise.
3969 * ipa-prop.c: Likewise.
3970 * ipa-pure-const.c: Likewise.
3971 * ipa-ref.c: Likewise.
3972 * ipa-reference.c: Likewise.
3973 * ipa-split.c: Likewise.
3974 * ipa-utils.c: Likewise.
3975 * ipa-visibility.c: Likewise.
3977 * ira-build.c: Likewise.
3978 * ira-color.c: Likewise.
3979 * ira-conflicts.c: Likewise.
3980 * ira-costs.c: Likewise.
3981 * ira-emit.c: Likewise.
3982 * ira-lives.c: Likewise.
3985 * langhooks.c: Likewise.
3987 * lists.c: Likewise.
3988 * loop-doloop.c: Likewise.
3989 * loop-init.c: Likewise.
3990 * loop-invariant.c: Likewise.
3991 * loop-iv.c: Likewise.
3992 * loop-unroll.c: Likewise.
3993 * lower-subreg.c: Likewise.
3994 * lra-assigns.c: Likewise.
3995 * lra-coalesce.c: Likewise.
3996 * lra-constraints.c: Likewise.
3997 * lra-eliminations.c: Likewise.
3998 * lra-lives.c: Likewise.
3999 * lra-remat.c: Likewise.
4000 * lra-spills.c: Likewise.
4002 * lto-cgraph.c: Likewise.
4003 * lto-compress.c: Likewise.
4004 * lto-opts.c: Likewise.
4005 * lto-section-in.c: Likewise.
4006 * lto-section-out.c: Likewise.
4007 * lto-streamer-in.c: Likewise.
4008 * lto-streamer-out.c: Likewise.
4009 * lto-streamer.c: Likewise.
4010 * mode-switching.c: Likewise.
4011 * modulo-sched.c: Likewise.
4012 * omp-low.c: Likewise.
4013 * optabs.c: Likewise.
4014 * opts-global.c: Likewise.
4015 * passes.c: Likewise.
4016 * plugin.c: Likewise.
4017 * postreload-gcse.c: Likewise.
4018 * postreload.c: Likewise.
4019 * predict.c: Likewise.
4020 * print-tree.c: Likewise.
4021 * profile.c: Likewise.
4023 * realmpfr.c: Likewise.
4024 * recog.c: Likewise.
4026 * reg-stack.c: Likewise.
4027 * regcprop.c: Likewise.
4028 * reginfo.c: Likewise.
4029 * regrename.c: Likewise.
4030 * regstat.c: Likewise.
4031 * reload.c: Likewise.
4032 * reload1.c: Likewise.
4033 * reorg.c: Likewise.
4034 * resource.c: Likewise.
4035 * rtl-chkp.c: Likewise.
4036 * rtl-error.c: Likewise.
4037 * rtlanal.c: Likewise.
4038 * rtlhooks.c: Likewise.
4039 * sanopt.c: Likewise.
4040 * sched-deps.c: Likewise.
4041 * sched-ebb.c: Likewise.
4042 * sched-rgn.c: Likewise.
4044 * shrink-wrap.c: Likewise.
4045 * simplify-rtx.c: Likewise.
4046 * stack-ptr-mod.c: Likewise.
4047 * statistics.c: Likewise.
4049 * stor-layout.c: Likewise.
4050 * store-motion.c: Likewise.
4051 * stringpool.c: Likewise.
4052 * symtab.c: Likewise.
4053 * target-globals.c: Likewise.
4054 * targhooks.c: Likewise.
4055 * toplev.c: Likewise.
4056 * tracer.c: Likewise.
4057 * trans-mem.c: Likewise.
4058 * tree-affine.c: Likewise.
4059 * tree-call-cdce.c: Likewise.
4060 * tree-cfg.c: Likewise.
4061 * tree-cfgcleanup.c: Likewise.
4062 * tree-chkp-opt.c: Likewise.
4063 * tree-chkp.c: Likewise.
4064 * tree-chrec.c: Likewise.
4065 * tree-complex.c: Likewise.
4066 * tree-data-ref.c: Likewise.
4067 * tree-dfa.c: Likewise.
4068 * tree-diagnostic.c: Likewise.
4069 * tree-dump.c: Likewise.
4070 * tree-eh.c: Likewise.
4071 * tree-emutls.c: Likewise.
4072 * tree-if-conv.c: Likewise.
4073 * tree-inline.c: Likewise.
4074 * tree-into-ssa.c: Likewise.
4075 * tree-iterator.c: Likewise.
4076 * tree-loop-distribution.c: Likewise.
4077 * tree-nested.c: Likewise.
4078 * tree-nrv.c: Likewise.
4079 * tree-object-size.c: Likewise.
4080 * tree-outof-ssa.c: Likewise.
4081 * tree-parloops.c: Likewise.
4082 * tree-phinodes.c: Likewise.
4083 * tree-predcom.c: Likewise.
4084 * tree-pretty-print.c: Likewise.
4085 * tree-profile.c: Likewise.
4086 * tree-scalar-evolution.c: Likewise.
4087 * tree-sra.c: Likewise.
4088 * tree-ssa-address.c: Likewise.
4089 * tree-ssa-alias.c: Likewise.
4090 * tree-ssa-ccp.c: Likewise.
4091 * tree-ssa-coalesce.c: Likewise.
4092 * tree-ssa-copy.c: Likewise.
4093 * tree-ssa-dce.c: Likewise.
4094 * tree-ssa-dom.c: Likewise.
4095 * tree-ssa-dse.c: Likewise.
4096 * tree-ssa-forwprop.c: Likewise.
4097 * tree-ssa-ifcombine.c: Likewise.
4098 * tree-ssa-live.c: Likewise.
4099 * tree-ssa-loop-ch.c: Likewise.
4100 * tree-ssa-loop-im.c: Likewise.
4101 * tree-ssa-loop-ivcanon.c: Likewise.
4102 * tree-ssa-loop-ivopts.c: Likewise.
4103 * tree-ssa-loop-manip.c: Likewise.
4104 * tree-ssa-loop-niter.c: Likewise.
4105 * tree-ssa-loop-prefetch.c: Likewise.
4106 * tree-ssa-loop-unswitch.c: Likewise.
4107 * tree-ssa-loop.c: Likewise.
4108 * tree-ssa-math-opts.c: Likewise.
4109 * tree-ssa-operands.c: Likewise.
4110 * tree-ssa-phiopt.c: Likewise.
4111 * tree-ssa-phiprop.c: Likewise.
4112 * tree-ssa-pre.c: Likewise.
4113 * tree-ssa-propagate.c: Likewise.
4114 * tree-ssa-reassoc.c: Likewise.
4115 * tree-ssa-sccvn.c: Likewise.
4116 * tree-ssa-scopedtables.c: Likewise.
4117 * tree-ssa-sink.c: Likewise.
4118 * tree-ssa-strlen.c: Likewise.
4119 * tree-ssa-structalias.c: Likewise.
4120 * tree-ssa-tail-merge.c: Likewise.
4121 * tree-ssa-ter.c: Likewise.
4122 * tree-ssa-threadedge.c: Likewise.
4123 * tree-ssa-threadupdate.c: Likewise.
4124 * tree-ssa-uncprop.c: Likewise.
4125 * tree-ssa-uninit.c: Likewise.
4126 * tree-ssa.c: Likewise.
4127 * tree-ssanames.c: Likewise.
4128 * tree-stdarg.c: Likewise.
4129 * tree-streamer-in.c: Likewise.
4130 * tree-streamer-out.c: Likewise.
4131 * tree-streamer.c: Likewise.
4132 * tree-switch-conversion.c: Likewise.
4133 * tree-tailcall.c: Likewise.
4134 * tree-vect-data-refs.c: Likewise.
4135 * tree-vect-generic.c: Likewise.
4136 * tree-vect-loop-manip.c: Likewise.
4137 * tree-vect-loop.c: Likewise.
4138 * tree-vect-patterns.c: Likewise.
4139 * tree-vect-slp.c: Likewise.
4140 * tree-vect-stmts.c: Likewise.
4141 * tree-vectorizer.c: Likewise.
4142 * tree-vrp.c: Likewise.
4145 * ubsan.c: Likewise.
4146 * value-prof.c: Likewise.
4147 * var-tracking.c: Likewise.
4148 * varasm.c: Likewise.
4149 * varpool.c: Likewise.
4150 * vtable-verify.c: Likewise.
4152 * wide-int-print.cc: Likewise.
4153 * wide-int.cc: Likewise.
4154 * xcoffout.c: Likewise.
4156 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
4158 * Makefile.in (NO_PIE_CFLAGS): New.
4159 (NO_PIE_FLAG): Likewise.
4160 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
4161 (NO_PIE_FLAG_FOR_BUILD): Likewise.
4162 (BUILD_NO_PIE_CFLAGS): Likewise.
4163 (BUILD_NO_PIE_FLAG): Likewise.
4164 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
4165 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
4166 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
4167 $(BUILD_NO_PIE_CFLAGS).
4168 (BUILD_CXXFLAGS): Likewise.
4169 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
4170 $(BUILD_NO_PIE_FLAG).
4171 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
4172 (BUILD_NO_PIE_FLAG): Likewise.
4173 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
4174 (NO_PIE_FLAG_FOR_BUILD): Likewise.
4175 * configure: Regenerated.
4177 2015-10-29 Richard Biener <rguenther@suse.de>
4180 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
4181 unsigned conditonal negation to ABS_EXPR.
4183 2015-10-29 Richard Biener <rguenther@suse.de>
4185 * gimple-match-head.c (gimple_simplify): Remove premature checking
4186 of builtin_decl_implicit of function calls we simplify.
4188 2015-10-29 Bin Cheng <bin.cheng@arm.com>
4190 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
4191 (get_computation_cost_at): Ditto.
4192 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
4195 2015-10-28 Tom de Vries <tom@codesourcery.com>
4197 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
4200 2015-10-28 Jason Merrill <jason@redhat.com>
4202 * Makefile.in (TAGS): Include libcpp and libiberty.
4204 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4206 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
4207 (extract_omp_for_data): Remove OpenACC special handling of
4210 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
4211 (struct parallel): Update comment.
4212 (nvptx_reorg): Likewise.
4213 (nvptx_neuter): Cleanup whitespace.
4215 2015-10-28 Richard Henderson <rth@redhat.com>
4217 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
4219 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4222 * config/avr/predicates.md (low_io_address_operand): Don't
4223 consider MODE when computing upper bound.
4224 (io_address_operand): Likewise.
4226 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
4228 * fold-const.c (operand_equal_p): Do not verify that types are
4229 compatible for MEM_REFs.
4231 2015-10-28 Richard Biener <rguenther@suse.de>
4233 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
4234 in simplifying VEC_COND_EXPR conditions.
4236 2015-10-28 Tom de Vries <tom@codesourcery.com>
4238 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
4239 into vi_next of a full_var.
4241 2015-10-28 Tom de Vries <tom@codesourcery.com>
4243 * tree-ssa-structalias.c (new_var_info, make_heapvar)
4244 (make_constraint_from_restrict, make_constraint_from_global_restrict)
4245 (create_function_info_for, create_variable_info_for_1)
4246 (create_variable_info_for): Add and handle add_id parameter.
4247 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
4248 (init_base_vars): Add extra argument to calls to new_var_info.
4249 (get_vi_for_tree): Add extra argument to call to
4250 create_variable_info_for.
4251 (process_constraint, do_deref, process_all_all_constraints): Add extra
4252 argument to calls to new_scalar_tmp_constraint_exp.
4253 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
4254 argument to calls to make_heapvar.
4255 (make_restrict_var_constraints): Add extra argument to call to
4256 make_constraint_from_global_restrict.
4257 (intra_create_variable_infos): Add extra argument to call to
4258 create_variable_info_for_1.
4259 (ipa_pta_execute): Add extra argument to call to
4260 create_function_info_for.
4262 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4264 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
4265 (sibcall_value): Likewise.
4267 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
4269 * config/nvptx/nvptx.h (struct machine_function): Add
4271 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
4272 nvptx_expand_oacc_join): Declare.
4273 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
4274 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
4275 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
4276 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
4277 UNSPECV_JOINING, UNSPECV_JOIN): New.
4278 (BITS, BITD): New mode iterators.
4279 (br_true_uni, br_false_uni): New.
4280 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
4281 (oacc_dim_size, oacc_dim_pos): New.
4282 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
4283 (oacc_fork, oacc_join): New.
4284 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
4285 (worker_load<mode>, worker_store<mode>): New.
4286 (nvptx_barsync): New.
4287 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
4288 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
4289 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
4290 worker_bcast_sym): New.
4291 (nvptx_option_override): Initialize worker broadcast buffer.
4292 (nvptx_emit_forking, nvptx_emit_joining): New.
4293 (nvptx_init_axis_predicate): New.
4294 (nvptx_declare_function_name): Init axis predicates.
4295 (nvptx_expand_call): Add fork/join markers around routine call.
4296 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
4297 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
4298 (nvptx_gen_vcast): New.
4299 (struct wcast_data_t): New.
4300 (enum propagate_mask): New.
4301 (nvptx_gen_wcast): New.
4302 (nvptx_print_operand): Add 'S' case.
4303 (struct parallel): New.
4304 (parallel::parallel, parallel::~parallel): New.
4305 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
4306 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
4307 nvptx_find_par, nvptx_discover_pars): New.
4308 (nvptx_propagate): New.
4309 (vprop_gen, nvptx_vpropagate): New.
4310 (wprop_gen, nvptx_wpropagate): New.
4312 (nvptx_single, nvptx_skip_par): New.
4313 (nvptx_process_pars, nvptx_neuter_pars): New.
4314 (ntptx_reorg): Split blocks, generate parallel structure, apply
4316 (nvptx_cannot_copy_insn_p): New.
4317 (nvptx_file_end): Emit worker broadcast decl.
4318 (nvptx_goacc_fork_join): New.
4319 (TARGET_CANNOT_COPY_INSN_P): Override.
4320 (TARGET_GOACC_FORK_JOIN): Override.
4322 2015-10-28 Richard Biener <rguenther@suse.de>
4324 * fold-const.c (negate_expr_p): Adjust the division case to
4325 properly avoid introducing undefined overflow.
4326 (fold_negate_expr): Likewise.
4328 2015-10-28 Richard Biener <rguenther@suse.de>
4330 PR tree-optimization/65962
4331 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4332 Avoid creating loop carried dependences also for outer loops
4333 of the loop a use to replace is in.
4335 2015-10-28 Richard Biener <rguenther@suse.de>
4337 * common.opt (fchecking): New flag controlling flag_checking.
4338 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
4339 * timevar.c (timer::print): Adjust output.
4340 * doc/invoke.texi (fchecking): Document.
4342 2015-10-28 Richard Biener <rguenther@suse.de>
4345 * fold-const.c (negate_expr_p): We cannot negate plus or minus
4346 if overflow is not wrapping. Likewise multiplication unless
4347 one operand is constant and not power of two.
4348 (fold_negate_expr): Adjust accordingly.
4350 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4352 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
4354 (is_oacc_parallel, is_oacc_kernels): New.
4355 (enclosing_target_ctx): May return NULL.
4356 (ctx_in_oacc_kernels_region): New.
4357 (check_oacc_kernel_gwv): New.
4358 (oacc_loop_or_target_p): Delete.
4359 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
4360 operands. Strip reductions fro kernels.
4361 (scan_omp_target): Don't calculate gwv mask.
4362 (lower_oacc_head_mark, lower_oacc_loop_marker,
4363 lower_oacc_head_tail): New.
4364 (struct oacc_collapse): New.
4365 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
4366 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
4367 Remove OpenACC handling.
4368 (expand_oacc_for): New.
4369 (expand_omp_for): Call expand_oacc_for.
4370 (lower_omp_for): Call lower_oacc_head_tail.
4372 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
4374 * attribs.c (check_attribute_tables): New function, broken out from...
4375 (init_attributes): Use it.
4376 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
4377 gcc_checking_assert and checking_* functions to eliminate
4378 ENABLE_CHECKING conditionals.
4379 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
4380 (pass_expand::execute): Likewise.
4381 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
4382 * cgraphunit.c (mark_functions_to_output): Likewise.
4383 (cgraph_node::expand_thunk): Likewise.
4384 (symbol_table::compile): Likewise.
4385 * ddg.c (add_cross_iteration_register_deps): Likewise.
4386 (create_ddg_all_sccs): Likewise.
4387 * df-core.c (df_finish_pass, df_analyze): Likewise.
4388 * diagnostic-core.h: Likewise.
4389 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
4390 * dominance.c (calculate_dominance_info): Likewise.
4391 * dwarf2out.c (add_AT_die_ref): Likewise.
4392 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
4393 (loc_list_from_tree, gen_lexical_block_die): Likewise.
4394 gen_type_die_with_usage, gen_type_die): Likewise.
4395 (dwarf2out_decl): Likewise.
4396 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
4397 * except.c (duplicate_eh_regions): Likewise.
4398 * fwprop.c (register_active_defs, update_df_init): Likewise.
4399 (fwprop_init, fwprop_done): Likewise.
4400 (update_uses): Likewise.
4401 * ggc-page.c (ggc_grow): Likewise.
4402 * gimplify.c (gimplify_body): Likewise.
4403 (gimplify_hasher::equal): Likewise.
4404 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
4405 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
4407 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
4408 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
4409 * hash-table.h (::find_empty_slot_for_expand): Likewise.
4410 * ifcvt.c (if_convert): Likewise.
4411 * ipa-cp.c (ipcp_propagate_stage): Likewise.
4412 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
4413 (odr_type_p, odr_types_equivalent_p): Likewise.
4414 (add_type_duplicate, get_odr_type): Likewise.
4415 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
4416 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
4417 (sem_item_optimizer::verify_classes): Likewise.
4418 (sem_item_optimizer::traverse_congruence_split): Likewise.
4419 (sem_item_optimizer::checking_verify_classes): New.
4420 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
4422 * cfgrtl.c (commit_edge_insertions): Likewise.
4423 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
4424 (rtl_flow_call_edges_add): Likewise.
4425 * cgraph.c (symbol_table::create_edge): Likewise.
4426 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
4427 * cgraph.h (symtab_node): Likewise.
4428 (symtab_node::checking_verify_symtab_nodes): Define.
4429 (cgraph_node::checking_verify_cgraph_nodes): Define.
4430 * cfghooks.h (checking_verify_flow_info): Define.
4431 * cfgloop.h (checking_verify_loop_structure): Define.
4432 * dominance.h (checking_verify_dominators): Define.
4433 * et-forest.c: Fix comment.
4434 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
4435 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4436 ENABLE_CHECKING conditionals.
4437 * ipa-inline-transform.c (save_inline_function_body): Likewise.
4438 * ipa-inline.c (inline_small_functions): Likewise.
4439 (early_inliner): Likewise.
4440 * ipa-inline.h (estimate_edge_growth): Likewise.
4441 * ipa-visibility.c (function_and_variable_visibility): Likewise.
4442 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
4443 (ipa_single_use): Likewise.
4444 * ira-int.h: Likewise.
4445 * ira.c (ira): Likewise.
4446 * loop-doloop.c (doloop_optimize_loops): Likewise.
4447 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
4448 * loop-invariant.c (move_loop_invariants): Likewise.
4449 * lra-assigns.c (lra_assign): Likewise.
4450 * lra-constraints.c (lra_constraints): Likewise.
4451 * lra-eliminations.c (lra_eliminate): Likewise.
4452 * lra-int.h (struct lra_reg): Likewise.
4453 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
4454 (lra_create_live_ranges_1): Likewise.
4455 * lra-remat.c (create_remat_bb_data): Likewise.
4456 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
4458 (check_rtl): Always define. Remove incorrect guard around
4459 extract_constrain_insn call.
4460 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
4461 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4462 ENABLE_CHECKING conditionals.
4463 * lto-streamer-out.c (DFS::DFS): Likewise.
4464 (lto_output): Likewise.
4465 * lto-streamer.c (lto_streamer_init): Likewise.
4466 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
4467 expand_omp_target, execute_expand_omp): Likewise.
4468 (lower_omp_target): Likewise.
4469 * passes.c (execute_function_todo): Likewise.
4470 (execute_todo, execute_one_pass): Likewise.
4471 (verify_curr_properties): Always define.
4472 * predict.c (tree_estimate_probability: Use flag_checking,
4473 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
4474 ENABLE_CHECKING conditionals.
4475 (propagate_freq): Likewise.
4476 * pretty-print.c (pp_format): Likewise.
4477 * real.c (real_to_decimal_for_mode): Likewise.
4478 * recog.c (split_all_insns): Likewise.
4479 * regcprop.c (kill_value_one_regno): Likewise.
4480 (copy_value): Likewise.
4481 (validate_value_data): Define unconditionally.
4482 * reload.c: Fix comment.
4483 * timevar.c: Include options.h
4484 * tree-ssa.h (checking_verify_ssa): Define.
4485 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
4486 * sched-deps.c (CHECK): Remove unused macro.
4487 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
4488 gcc_checking_assert and checking_* functions to eliminate
4489 ENABLE_CHECKING conditionals.
4490 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
4491 * sel-sched.c (struct moveop_static_params): Likewise.
4492 (find_best_reg_for_expr, move_cond_jump): Likewise.
4493 (move_op_orig_expr_not_found): Likewise.
4494 (code_motion_process_successors, move_op): Likewise.
4495 * ssa-iterators.h (first_readonly_imm_use): Likewise.
4496 (next_readonly_imm_use): Likewise.
4497 * store-motion.c (compute_store_table): Likewise.
4498 * symbol-summary.h (function_summary::function_summary): Likewise.
4499 * target.h (cumulative_args_t): Likewise.
4500 (get_cumulative_args, pack_cumulative_args): Likewise.
4501 * timevar.c: (timer::print): Likewise.
4502 * trans-mem.c (ipa_tm_execute): Likewise.
4503 * tree-cfg.c (move_stmt_op): Likewise.
4504 (move_sese_region_to_fn): Likewise.
4505 (gimple_flow_call_edges_add): Likewise.
4506 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
4508 * tree-eh.c (remove_unreachable_handlers): Likewise.
4509 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
4510 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
4511 * tree-into-ssa.c (update_ssa): Likewise.
4512 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
4513 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
4514 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
4515 * tree-predcom.c (suitable_component_p): Likewise.
4516 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
4517 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
4518 * tree-ssa-live.c (verify_live_on_entry): Likewise.
4519 * tree-ssa-live.h (register_ssa_partition): Likewise.
4520 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
4521 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
4522 (tree_transform_and_unroll_loop): Likewise.
4523 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
4524 * tree-ssa-operands.c (get_expr_operands): Likewise.
4525 * tree-ssa-propagate.c (replace_exp_1): Likewise.
4526 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
4527 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
4528 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
4529 * tree-ssanames.c (release_ssa_name_fn): Likewise.
4530 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
4531 * tree-vect-loop-manip.c
4532 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
4533 (slpeel_checking_verify_cfg_after_peeling): Likewise.
4534 (vect_do_peeling_for_loop_bound): Likewise.
4535 (vect_do_peeling_for_alignment): Likewise.
4536 * tree-vrp.c (supports_overflow_infinity): Likewise.
4537 (set_value_range): Likewise.
4538 * tree.c (free_lang_data_in_cgraph): Likewise.
4539 * value-prof.c (gimple_remove_histogram_value): Likewise.
4540 (free_hist): Likewise.
4541 * var-tracking.c (canonicalize_values_star): Likewise.
4542 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
4544 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4546 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
4547 IFN_GOACC_LOOP): New.
4548 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
4549 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
4550 IFN_UNIQUE_OACC_TAIL_MARK.
4551 (enum ifn_goacc_loop_kind): New.
4552 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
4553 IFN_UNIQUE_OACC_JOIN cases.
4554 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
4555 (expand_GOACC_LOOP): New.
4556 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
4557 * omp-low.c: Include gimple-pretty-print.h.
4558 (struct oacc_loop): New.
4559 (enum oacc_loop_flags): New.
4560 (oacc_thread_numbers): New.
4561 (oacc_xform_loop): New.
4562 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
4563 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
4564 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
4565 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
4566 oacc_loop_discovery): New.
4567 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
4568 oacc_loop_process): New.
4569 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
4570 (execute_oacc_device_lower): Discover & process loops. Process
4572 * target.def (goacc.fork_join): Change sense of hook, clarify
4574 * doc/tm.texi: Regenerated.
4576 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4578 * target-insns.def (oacc_fork, oacc_join): Define.
4579 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
4580 (goacc.fork_join): New GOACC hook.
4581 * targhooks.h (default_goacc_fork_join): Declare.
4582 * omp-low.c (default_goacc_forkjoin): New.
4583 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
4584 * doc/tm.texi: Regenerate.
4586 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4588 * omp-low.c (oacc_init_rediction_array): New.
4589 (oacc_initialize_reduction_data): Initialize array.
4591 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4593 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
4595 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
4597 * internal-fn.c (expand_UNIQUE): New.
4598 * internal-fn.h (enum ifn_unique_kind): New.
4599 * internal-fn.def (IFN_UNIQUE): New.
4600 * target-insns.def (unique): Define.
4601 * gimple.h (gimple_call_internal_unique_p): New.
4602 * gimple.c (gimple_call_same_target_p): Check internal fn
4604 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
4605 * tree-ssa-threadedge.c
4606 (record_temporary_equivalences_from_stmts): Likewise.
4607 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
4609 2015-10-27 Richard Henderson <rth@redhat.com>
4612 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
4613 narrowing subregs on SSE and MMX registers.
4614 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
4615 appear to be sub-words of multi-register pseudos must be rejected.
4616 * doc/tm.texi: Regenerate.
4618 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4621 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
4622 operands[0] is a reg before taking its REGNO in split condition.
4623 (*movdi_aarch64): Likewise.
4625 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4627 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
4628 Handle floating point inner modes properly.
4630 2015-10-27 Alan Hayward <alan.hayward@arm.com>
4633 (vectorizable_live_operation): Change iterator.
4635 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4636 Aditya Kumar <aditya.k7@samsung.com>
4638 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
4639 function to schedule based on isl_schedule_node.
4640 (get_schedule_map_st): New schedule optimizer based on
4642 (scop_get_domains): New. Return the isl_union_set containing the
4643 domains of all the pbbs.
4644 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
4646 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
4649 * calls.c (prepare_call_address): Don't handle -fno-plt here.
4650 * config/i386/i386.c (ix86_expand_call): Generate indirect call
4651 via GOT for -fno-plt. Support indirect call via GOT for x32.
4652 * config/i386/predicates.md (sibcall_memory_operand): Allow
4655 2015-10-27 Richard Biener <rguenther@suse.de>
4657 PR tree-optimization/68104
4658 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
4659 strided access check ...
4660 (vect_compute_data_refs_alignment): ... here.
4662 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
4663 Joseph Myers <joseph@codesourcery.com>
4664 Mark Shinwell <shinwell@codesourcery.com>
4665 Andrew Stubbs <ams@codesourcery.com>
4666 Rich Felker <dalias@libc.org>
4668 * config.gcc: Handle --enable-fdpic.
4669 * config/sh/constraints.md (Ccl): New constraint.
4670 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
4671 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
4673 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
4675 * config/sh/sh-protos.h (function_symbol_result): New struct.
4676 (function_symbol): Return function_symbol_result.
4677 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
4679 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
4681 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
4682 (sh_option_override): Force -fPIC if FDPIC is in effect.
4683 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
4684 UNSPEC_GOTOFFFUNCDESC cases.
4685 (prepare_move_operands): Use FDPIC initial GOT register for
4686 TLS-related GOT access; inhibit cross-section address offset constants
4688 (sh_assemble_integer): New function.
4689 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
4690 PC-relative call sites.
4691 (expand_ashiftrt): Adapt invocation of function_symbol.
4692 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
4693 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
4694 UNSPEC_GOTOFFFUNCDESC.
4695 (legitimize_pic_address): Resolve function symbols to function
4696 descriptors for FDPIC. Do not use GOT-relative addressing for local
4697 data that may be read-only on FDPIC.
4698 (sh_emit_storesi, sh_emit_storehi): New functions.
4699 (sh_trampoline_init): Generate FDPIC trampolines.
4700 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
4701 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
4702 (sh_output_mi_thunk): Generate FDPIC call.
4703 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
4704 FDPIC, generate call site labels to use PC-relative addressing rather
4705 than GOT-relative addressing.
4706 (sh_conditional_register_usage): Make PIC register fixed and call used
4707 when FDPIC is in effect.
4708 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
4709 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
4710 sh_get_fdpic_reg_initial_val): New functions.
4711 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
4713 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
4714 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
4715 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
4716 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
4718 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
4719 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
4720 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
4721 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
4723 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
4724 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
4725 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
4726 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
4727 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
4728 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
4729 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
4730 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
4731 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
4732 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
4733 block_move_real, block_lump_real, block_move_real_i4,
4734 block_lump_real_i4): Add support for FDPIC calls.
4735 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
4736 call_value_pop): Adjust for new function_symbol signature.
4737 * config/sh/sh.opt (-mfdpic): New option.
4738 * doc/install.texi (Options specification): Document --enable-fdpic.
4739 * doc/invoke.texi (SH Options): Document -mfdpic.
4742 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
4744 PR tree-optimization/65963
4745 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
4746 LSHIFT_EXPRs as equivalent MULT_EXPRs.
4748 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4751 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
4752 * config/arm/constraints.md (Dp): Update callsite.
4753 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
4755 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4757 * builtins.c (fold_builtin_load_exponent): Rename to...
4758 (fold_const_builtin_load_exponent): ...this and only handle
4760 (fold_builtin_2): Update accordingly.
4761 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
4763 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4765 * builtins.c (fold_builtin_logb): Rename to...
4766 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
4767 (fold_builtin_significand): Rename to...
4768 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
4769 (fold_builtin_1): Update accordingly.
4771 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4773 * builtins.c (fold_builtin_fmin_fmax): Delete.
4774 (fold_builtin_2): Handle constant fmin and fmax arguments here.
4775 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
4777 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
4779 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
4780 for register extension into sign and zero register extension.
4781 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
4782 for sign and zero register extension.
4783 (cortexa57_addrcost_table): Likewise.
4784 (xgene1_addrcost_table): Likewise.
4786 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4788 * fold-const.c (fold_minmax): Delete.
4789 (fold_binary_loc): Don't call it.
4790 * match.pd: Add rules previously handled by fold_minmax.
4792 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4794 * builtins.c (fold_builtin_fma): Remove constant handling.
4795 (fold_builtin_3): Handle constant fma arguments here.
4797 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4799 * builtins.c (fold_builtin_fabs): Remove constant handling.
4800 (fold_builtin_abs): Likewise.
4802 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4804 * builtins.c (fold_builtin_copysign): Delete.
4805 (fold_builtin_2): Handle constant copysign arguments here.
4806 * match.pd: Add rules previously handled by fold_builtin_copysign.
4808 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4810 * builtins.c (fold_builtin_signbit): Delete.
4811 (fold_builtin_2): Handle constant signbit arguments here.
4812 * match.pd: Add rules previously handled by fold_builtin_signbit.
4814 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4816 * match.pd: Handle sqrt(x) cmp 0 specially.
4818 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
4820 * tree-vect-generic.c (expand_vector_operations_1): Check
4821 optab type before using it.
4823 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4825 * config/aarch64/aarch64-protos.h
4826 (struct tune_params): Add autoprefetcher_model field.
4827 * config/aarch64/aarch64.c: Include params.h
4828 (generic_tunings): Specify autoprefetcher_model value.
4829 (cortexa53_tunings): Likewise.
4830 (cortexa57_tunings): Likewise.
4831 (cortexa72_tunings): Likewise.
4832 (thunderx_tunings): Likewise.
4833 (xgene1_tunings): Likewise.
4834 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
4835 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
4836 (aarch64_override_options_internal): Set
4837 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
4839 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4841 * builtins.c (fold_builtin_exponent): Delete.
4842 (fold_builtin_2): Handle constant expN arguments here.
4843 * match.pd: Fold expN(logN(x)) -> x.
4845 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4847 * builtins.c (fold_builtin_powi): Delete.
4848 (fold_builtin_2): Handle constant powi arguments here.
4849 * match.pd: Add rules previously handled by fold_builtin_powi.
4851 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4853 * builtins.c (fold_builtin_pow): Delete in favor of...
4854 (fold_const_builtin_pow): ...this new function. Only handle constant
4856 (fold_builtin_2): Update accordingly.
4857 * match.pd: Add rules previously handled by fold_builtin_pow.
4859 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4861 * builtins.c (fold_builtin_hypot): Delete.
4862 (fold_builtin_2): Handle constant hypot arguments here.
4863 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
4864 hypot(x, x) to fabs(x)*sqrt(2).
4866 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
4868 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
4869 instead of make_ssa_name if not yet in SSA form.
4871 2015-10-27 Richard Biener <rguenther@suse.de>
4873 * cfg.c (free_edge): Add function argument and use it instead of cfun.
4874 (clear_edges): Likewise.
4875 * cfg.h (clear_edges): Adjust prototype.
4876 * cfgexpand.c (pass_expand::execute): Adjust.
4877 * cfgloop.c (release_recorded_exits): Add function argument and use
4879 * cfgloop.h (release_recorded_exits): Adjust prototype.
4880 (loops_state_satisfies_p): Add overload with function argument.
4881 (loops_state_set): Likewise.
4882 (loops_state_clear): Likewise.
4883 (struct loop_iterator): Add function argument to constructor
4884 and iterator and use it instead of cfun.
4885 (FOR_EACH_LOOP_FN): New macro.
4886 (loop_optimizer_finalize): Add overload with function argument.
4887 * loop-init.c (loop_optimizer_init): Adjust.
4888 (fix_loop_structure): Likewise.
4889 (loop_optimizer_finaliz): Add function argument and use it
4891 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
4892 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
4893 * cgraph.c (release_function_body): Do not push/pop cfun.
4894 * final.c (rest_of_clean_state): Adjust.
4895 * graphite.c (graphite_finalize): Likewise.
4896 * tree-ssa-copy.c (fini_copy_prop): Likewise.
4897 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
4898 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
4899 (tree_unroll_loops_completely): Likewise.
4900 (pass_complete_unrolli::execute): Likewise.
4901 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
4902 Add function argument and use it instead of cfun.
4903 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
4905 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
4906 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
4908 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
4909 * tree-ssanames.c (fini_ssanames): Add function argument and use it
4911 * tree-ssanames.c (fini_ssanames): Adjust prototype.
4912 * tree-vrp.c (execute_vrp): Adjust.
4913 * value-prof.c (free_histograms): Add function argument and use it
4915 * value-prof.h (free_histograms): Adjust prototype.
4917 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
4919 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
4920 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
4921 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
4923 2015-10-27 Tom de Vries <tom@codesourcery.com>
4925 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
4928 2015-10-27 Bin Cheng <bin.cheng@arm.com>
4930 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
4931 (inv_can_prop_to_addr_use): New function.
4932 (record_use): Call can_prop_to_addr_uses, set the new field.
4933 (get_inv_cost): Count cost if inv can't be propagated into its
4936 2015-10-26 Doug Evans <dje@google.com>
4938 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
4940 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
4942 * match.pd (fold_widened_comparison): Apply simplifications to all
4945 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
4947 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
4948 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
4949 * doc/tm.texi: Regenerated.
4950 * reorg.c (dbr_schedule): Use new hook.
4951 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
4953 2015-10-26 Jeff Law <law@redhat.com>
4955 PR tree-optimization/68013
4956 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4957 Make sure the first block in the path is in VISITED_BBs.
4959 2015-10-26 Richard Biener <rguenther@suse.de>
4960 Dominik Vogt <vogt@linux.vnet.ibm.com>
4963 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
4964 Properly prune ref->ref for accesses outside of ref.
4966 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
4968 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
4969 new statements to be inserted if inplace. Allow calls to have
4972 2015-10-26 Richard Biener <rguenther@suse.de>
4974 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
4975 (do_valueize): New function.
4976 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
4978 * tree-ssa-threadedge.c: Remove builtins.h include, include
4980 (fold_assignment_stmt): Remove.
4981 (threadedge_valueize): New function.
4982 (record_temporary_equivalences_from_stmts): Use
4983 gimple_fold_stmt_to_constant_1, note additional cleanup
4986 2015-10-26 Richard Biener <rguenther@suse.de>
4988 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
4989 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
4991 2015-10-26 Alan Hayward <alan.hayward@arm.com>
4993 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
4994 VEC_COND_EXPR types.
4996 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4998 * auto-inc-dec.c (insert_move_insn_before): Delete.
4999 (attempt_change): Remember to cost the simple move in the
5000 FORM_PRE_ADD and FORM_POST_ADD cases.
5002 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
5005 * config/sh/sh.c (sh_vector_mode_supported_p): Use
5006 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
5008 2015-10-26 Tom de Vries <tom@codesourcery.com>
5010 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
5012 (intra_create_variable_infos): ... here.
5014 2015-10-26 Tom de Vries <tom@codesourcery.com>
5016 * tree-ssa-structalias.c (intra_create_variable_infos): Add
5017 restrict_pointer_p and recursive_restrict_p variables.
5019 2015-10-26 Tom de Vries <tom@codesourcery.com>
5021 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
5022 get_vi_for_tree call.
5024 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5027 * optabs.c (expand_atomic_compare_and_swap): Handle case when
5028 ptarget_oval or ptarget_bool are const0_rtx.
5030 2015-10-26 Christian Bruel <christian.bruel@st.com>
5032 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
5033 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
5034 * cp/method.c (implicitly_declare_fn): Likewise.
5035 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
5036 * java/class.c (add_method_1): Likewise.
5038 2015-10-26 Richard Biener <rguenther@suse.de>
5040 * alloc-pool.h (base_pool_allocator): Use placement new.
5041 (base_pool_allocator::remove): Likewise. Compute size outside of
5044 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
5046 * builtins.c (do_real_to_int_conversion): New function.
5047 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
5048 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
5050 * match.pd: Add rules previously handled by fold_fixed_mathfn
5051 and fold_builtin_int_roundingfn.
5053 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
5055 * match.pd: Use macros to define built-in operator lists.
5057 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
5058 Richard Biener <rguenther@suse.de>
5060 * genmatch.c (dt_simplify::gen): Skip captures that are
5062 (parser::parse_expr): Allow captures in results too.
5063 * builtins.c (fold_builtin_cexp): Delete.
5064 (fold_builtin_1): Handle constant cexp arguments here.
5065 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
5067 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
5069 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
5070 conditional compilation.
5071 (base_pool_allocator::remove): Use flag_checking.
5073 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
5075 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
5078 * dojump.c (do_compare_and_jump): Canonicalize both function and
5081 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
5084 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
5087 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
5090 * ipa-polymorphic-call.c
5091 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
5092 instance offset with offset of outer type.
5094 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
5096 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
5098 2015-10-23 Caroline Tice <cmtice@google.com>
5100 (from Richard Biener
5101 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
5102 call to iterative_hash_host_wide_int.
5104 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
5106 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
5109 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
5111 * tree-vect-generic.c (expand_vector_operations_1): Check
5112 optab exists before use it.
5114 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
5116 * tree-vect-generic.c (expand_vector_condition): Avoid
5117 uninitialized variable warning.
5119 2015-10-23 Jeff Law <law@redhat.com>
5121 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
5123 (execute_todo): Call it here.
5124 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
5126 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
5128 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
5129 Szabolcs Nagy <szabolcs.nagy@arm.com>
5131 * config.gcc (enable_secureplt): Add *-linux*-musl*.
5133 2015-10-23 Jeff Law <law@redhat.com>
5135 PR tree-optimization/67830
5136 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
5137 Explicitly verify the mask has no bits outside the type of
5138 the innermost operands.
5140 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
5141 Szabolcs Nagy <szabolcs.nagy@arm.com>
5143 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
5144 (MUSL_DYNAMIC_LINKER64): Define.
5145 (GNU_USER_DYNAMIC_LINKER32): Update.
5146 (GNU_USER_DYNAMIC_LINKER64): Update.
5147 (CHOOSE_DYNAMIC_LINKER): Update.
5149 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
5150 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
5151 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
5152 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
5153 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
5154 (CHOOSE_DYNAMIC_LINKER): Update.
5155 (INCLUDE_DEFAULTS): Redefine.
5157 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
5159 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
5161 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
5162 comparing addresses.
5164 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
5166 * fold-const.c (operand_equal_p): Handle matching of vector
5169 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
5171 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
5173 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
5174 Andrew Pinski <apinski@cavium.com>
5176 PR rtl-optimization/67736
5177 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
5180 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
5183 * tree.c (build_truth_vector_type): Support BLK mode
5184 returned for boolean vector.
5186 2015-10-23 Alan Hayward <alan.hayward@arm.com>
5188 PR tree-optimization/65947
5190 (vect_is_simple_reduction_1): Find condition reductions.
5191 (vect_model_reduction_cost): Add condition reduction costs.
5192 (get_initial_def_for_reduction): Add condition reduction initial var.
5193 (vect_create_epilog_for_reduction): Add condition reduction epilog.
5194 (vectorizable_reduction): Condition reduction support.
5195 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
5196 * doc/sourcebuild.texi (Vector-specific attributes): Document
5199 2015-10-23 Richard Biener <rguenther@suse.de>
5201 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
5204 2015-10-23 Richard Biener <rguenther@suse.de>
5205 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5207 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
5208 into (A ^ B) - B to match.pd
5209 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
5211 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
5213 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
5215 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
5217 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
5219 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
5220 INTEGER_CST@1)): New simplifier.
5222 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
5224 * builtins.c (integer_valued_real_p): Move to fold-const.c.
5225 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
5226 (fold_builtin_ceil, fold_builtin_round): Delete.
5227 (fold_builtin_1): Handle constant trunc, floor, ceil and round
5229 * convert.c (convert_to_real): Remove narrowing of rounding
5231 * fold-const.h (integer_valued_real_unary_p)
5232 (integer_valued_real_binary_p, integer_valued_real_call_p)
5233 (integer_valued_real_single_p, integer_valued_real_p): Declare.
5234 * fold-const.c (tree_single_nonnegative_warnv_p): Move
5235 name_registered_for_update_p check to SSA_NAME case statement.
5236 Don't call tree_simple_nonnegative_warnv_p for SSA names.
5237 (integer_valued_real_unary_p, integer_valued_real_binary_p)
5238 (integer_valued_real_call_p, integer_valued_real_single_p)
5239 (integer_valued_real_invalid_p): New functions.
5240 (integer_valued_real_p): Move from fold-const.c and rework
5241 to call the functions above. Handle SSA names.
5242 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
5243 * gimple-fold.c (gimple_assign_integer_valued_real_p)
5244 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
5245 (gimple_stmt_integer_valued_real_p): New functions.
5246 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
5247 Fold f(x)->x for the same f if x is known to be integer-valued.
5248 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
5249 the result. Canonicalize floor(x) as trunc(x) if x is
5252 2015-10-23 Tom de Vries <tom@codesourcery.com>
5254 * tree-ssa-structalias.c (intra_create_variable_infos): Use
5255 make_constraint_from.
5257 2015-10-23 Tom de Vries <tom@codesourcery.com>
5259 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
5260 setting of is_full_var in case of a single field.
5262 2015-10-22 Martin Sebor <msebor@redhat.com>
5265 * config/i386/i386.opt: Add missing periods to the ends of sentences.
5266 * config/msp430/msp430.opt: Same.
5268 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
5270 * doc/extend.exp (Global Register Variables): Rewrite.
5272 2015-10-22 Jeff Law <law@redhat.com>
5274 * genattrtab.c (main): If we do not have any annul-true or annul-false
5275 slots, then write out a dummy eligible_for_annul_true or
5276 eligible_for_annul_false as needed.
5278 2015-10-22 Nick Clifton <nickc@redhat.com>
5280 * config/msp430/msp430.opt: Add -msilicon-errata and
5281 -msilicon-errata-warn.
5282 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
5284 * doc/invoke.texi: Document new options.
5286 2015-10-22 Richard Biener <rguenther@suse.de>
5288 PR tree-optimization/58497
5289 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
5290 (expand_vector_operations_1): Use it. Lower operations on
5291 all uniform vectors to scalar operations if the HW supports it.
5293 2015-10-22 Richard Biener <rguenther@suse.de>
5295 PR tree-optimization/19049
5296 PR tree-optimization/65962
5297 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
5298 to strided accesses if single-element interleaving doesn't work.
5300 2015-10-22 Richard Biener <rguenther@suse.de>
5304 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
5305 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
5306 (expand_unop): Likewise.
5308 2015-10-22 Richard Biener <rguenther@suse.de>
5310 * fold-const.c (fold_addr_of_array_ref_difference): Properly
5311 convert operands before folding a MINUS_EXPR.
5312 (fold_binary_loc): Move simplification of MINUS_EXPR on
5313 converted POINTER_PLUS_EXPRs ...
5314 * match.pd: ... here.
5316 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
5318 * builtins.c (fold_builtin_tan): Delete.
5319 (fold_builtin_1): Handle constant tan arguments here.
5320 * match.pd: Simplify (tan (atan x)) to x.
5322 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
5324 * builtins.c (fold_builtin_cproj): Delete.
5325 (fold_builtin_1): Handle constant arguments here.
5326 (build_complex_cproj): Move and rename to...
5327 * tree.c: (build_complex_inf): ...this.
5328 * tree.h (build_complex_inf): Declare.
5329 * match.pd: Fold cproj(x)->x if x has no infinity.
5330 Use build_complex_inf for existing cproj rules.
5332 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5335 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
5336 already have a comparison result.
5338 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5341 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
5342 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
5343 (aarch64_classify_address): Likewise.
5344 (aarch64_secondary_reload): Likewise.
5345 (aarch64_override_options_after_change_1): Adjust.
5346 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
5347 Use aarch64_nopcrelative_literal_loads.
5348 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
5349 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
5352 2015-10-21 Martin Sebor <msebor@redhat.com>
5355 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
5356 (print_filtered_help): Reference aliased option's name and encourage
5357 readers to use it in preference to the alias if the former is not
5358 documented. Mention when using an option is diagnosed.
5359 * gcc.c (display_help): End each sentence with a period.
5361 * common.opt: End each sentence that describes an option with
5363 * config/aarch64/aarch64.opt: Same.
5364 * config/alpha/alpha.opt: Same.
5365 * config/arc/arc.opt: Same.
5366 * config/arm/arm.opt: Same.
5367 * config/avr/avr.opt: Same.
5368 * config/bfin/bfin.opt: Same.
5369 * config/c6x/c6x.opt: Same.
5370 * config/cr16/cr16.opt: Same.
5371 * config/cris/cris.opt: Same.
5372 * config/cris/linux.opt: Same.
5373 * config/darwin.opt: Same.
5374 * config/epiphany/epiphany.opt: Same.
5375 * config/fr30/fr30.opt: Same.
5376 * config/frv/frv.opt: Same.
5377 * config/ft32/ft32.opt: Same.
5378 * config/g.opt: Same.
5379 * config/h8300/h8300.opt: Same.
5380 * config/i386/cygming.opt: Same.
5381 * config/i386/djgpp.opt: Same.
5382 * config/i386/i386.opt: Same.
5383 * config/i386/interix.opt: Same.
5384 * config/i386/mingw-w64.opt: Same.
5385 * config/i386/mingw.opt: Same.
5386 * config/ia64/ia64.opt: Same.
5387 * config/ia64/ilp32.opt: Same.
5388 * config/iq2000/iq2000.opt: Same.
5389 * config/linux.opt: Same.
5390 * config/lm32/lm32.opt: Same.
5391 * config/lynx.opt: Same.
5392 * config/m32c/m32c.opt: Same.
5393 * config/m32r/m32r.opt: Same.
5394 * config/m68k/ieee.opt: Same.
5395 * config/m68k/m68k.opt: Same.
5396 * config/mcore/mcore.opt: Same.
5397 * config/mep/mep.opt: Same.
5398 * config/microblaze/microblaze.opt: Same.
5399 * config/mips/mips.opt: Same.
5400 * config/mmix/mmix.opt: Same.
5401 * config/mn10300/mn10300.opt: Same.
5402 * config/moxie/moxie.opt: Same.
5403 * config/msp430/msp430.opt: Same.
5404 * config/nios2/elf.opt: Same.
5405 * config/nios2/nios2.opt: Same.
5406 * config/nvptx/nvptx.opt: Same.
5407 * config/pa/pa-hpux.opt: Same.
5408 * config/pa/pa-hpux1010.opt: Same.
5409 * config/pa/pa-hpux1111.opt: Same.
5410 * config/pa/pa-hpux1131.opt: Same.
5411 * config/pa/pa.opt: Same.
5412 * config/pa/pa64-hpux.opt: Same.
5413 * config/pdp11/pdp11.opt: Same.
5414 * config/rl78/rl78.opt: Same.
5415 * config/rs6000/476.opt: Same.
5416 * config/rs6000/aix64.opt: Same.
5417 * config/rs6000/darwin.opt: Same.
5418 * config/rs6000/linux64.opt: Same.
5419 * config/rs6000/rs6000.opt: Same.
5420 * config/rs6000/sysv4.opt: Same.
5421 * config/s390/s390.opt: Same.
5422 * config/s390/tpf.opt: Same.
5423 * config/sh/sh.opt: Same.
5424 * config/sol2.opt: Same.
5425 * config/sparc/long-double-switch.opt: Same.
5426 * config/sparc/sparc.opt: Same.
5427 * config/spu/spu.opt: Same.
5428 * config/stormy16/stormy16.opt: Same.
5429 * config/tilegx/tilegx.opt: Same.
5430 * config/tilepro/tilepro.opt: Same.
5431 * config/v850/v850.opt: Same.
5432 * config/vax/vax.opt: Same.
5433 * config/visium/visium.opt: Same.
5434 * config/vms/vms.opt: Same.
5435 * config/vxworks.opt: Same.
5436 * config/xtensa/xtensa.opt: Same.
5438 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5439 Sebastian Pop <s.pop@samsung.com>
5441 * graphite-scop-detection.c (parameter_index_in_region): Update call to
5442 invariant_in_sese_p_rec.
5443 * graphite-sese-to-poly.c (extract_affine): Same.
5444 * sese.c (invariant_in_sese_p_rec): Pass in an extra
5445 parameter has_vdefs.
5446 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
5447 variable depends on virtual definitions in the current region.
5448 * sese.h (invariant_in_sese_p_rec): Update declaration.
5450 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5451 Sebastian Pop <s.pop@samsung.com>
5453 * graphite-scop-detection.c (build_scops): Do not handle scops
5454 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
5455 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
5457 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
5459 * config.in: Regenerate.
5460 * configure: Regenerate.
5461 * configure.ac (CHECKING_P): Define.
5462 * system.h: Use CHECKING_P.
5464 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5467 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
5468 is negative we don't know the type.
5469 (check_stmt_for_type_change): Skip constructors of non-polymorphic
5470 types as those won't help devirutalization.
5472 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5474 * fold-const.c (operand_equal_p): Add code matching empty constructors.
5476 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
5478 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
5480 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
5481 Add comments on sign of the result.
5482 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
5483 Recurse on operand #1 instead of operand #0.
5484 <CEIL_MOD_EXPR>: Do not recurse.
5485 <ROUND_MOD_EXPR>: Likewise.
5487 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5489 * cfgrtl.c (pass_free_cfg::execute): Adjust.
5490 * final.c (dbr_sequence_length): Always define.
5491 (shorten_branches): Adjust.
5492 * genattr-common.c (main): Always define DELAY_SLOTS.
5493 * genattr.c (main): Unconditionally declare functions and define
5494 macros related to delay slots.
5495 * genattrtab.c (write_eligible_delay): Adjust.
5496 (main): Always write out delay slot functions.
5497 * opts.c (default_options_table): Adjust.
5498 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
5499 (redirect_with_delay_list_safe_p): Likewise.
5500 (fill_simple_delay_slots): Likewise.
5501 (fill_slots_from_thread): Likewise.
5502 (make_return_insns): Likewise.
5503 (dbr_schedule): Likewise.
5504 (rest_of_handle_delay_slots): Likewise.
5505 (pass_delay_slots::gate): Likewise.
5506 * toplev.c (process_options): Likewise.
5508 2015-10-21 Richard Henderson <rth@redhat.com>
5510 * targhooks.c (default_addr_space_pointer_mode): Remove check
5511 for generic address space.
5512 (default_addr_space_address_mode): Likewise.
5513 (default_addr_space_valid_pointer_mode): Likewise.
5514 (default_addr_space_legitimate_address_p): Likewise.
5515 (default_addr_space_legitimize_address): Likewise.
5516 * target.def (addr_space.pointer_mode): Update documentation
5517 of default behavior.
5518 (addr_space.address_mode): Likewise.
5521 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
5524 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5526 * builtins.c (fold_builtin_cabs): Delete.
5527 (fold_builtin_1): Update accordingly. Handle constant arguments here.
5528 * match.pd: Add rules previously handled by fold_builtin_cabs.
5530 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5532 * fold-const.h (fold_strip_sign_ops): Delete.
5533 * fold-const.c (fold_strip_sign_ops): Likewise.
5534 (fold_unary_loc, fold_binary_loc): Remove calls to it.
5535 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
5536 (fold_builtin_ccos): Delete.
5537 (fold_builtin_pow): Don't call fold_strip_sign_ops.
5538 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
5539 Remove fndecl argument.
5540 (fold_builtin_1): Update calls accordingly. Handle constant
5541 cos, cosh, ccos and ccosh here.
5543 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5545 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
5546 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
5547 * common.opt (fssa-backprop): New option.
5548 * fold-const.h (negate_mathfn_p): Declare.
5549 * fold-const.c (negate_mathfn_p): Make public.
5550 * timevar.def (TV_TREE_BACKPROP): New.
5551 * tree-pass.h (make_pass_backprop): Declare.
5552 * passes.def (pass_backprop): Add.
5553 * gimple-ssa-backprop.c: New file.
5555 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5556 Sebastian Pop <s.pop@samsung.com>
5558 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
5559 Do not call create_empty_if_region_on_edge when cond_expr is true.
5560 (translate_isl_ast_node_for): Check whether a guard has been generated.
5562 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5564 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
5565 (operator=): Removed.
5566 (dr_info): Make alias_set number the last argument with default
5567 value of invalid_alias_set.
5568 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
5570 (rewrite_reductions_out_of_ssa): Iterate only through the
5571 basic blocks which are inside region.
5572 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
5573 * sese.h (struct sese_l): Removed assignment operator.
5574 (split_region_for_bb): Removed dead code.
5576 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
5578 * graphite-poly.h (struct dr_info): Removed conversion constructor.
5579 (struct scop): Renamed scop::region to scop::scop_info
5580 (scop_set_region): Same.
5581 (SCOP_REGION): Removed
5582 (SCOP_CONTEXT): Removed.
5583 (POLY_SCOP_P): Removed.
5584 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
5585 Rename scop->region to scop->scop_info.
5586 (add_parameters_to_ivs_params): Same.
5587 (graphite_regenerate_ast_isl): Same.
5588 * graphite-poly.c (new_scop): Same.
5590 (print_scop_params): Same.
5591 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
5592 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
5593 (dot_all_scops_1): Rename scop->region to scop->scop_info.
5594 (scop_detection::nb_pbbs_in_loops): Same.
5595 (find_scop_parameters): Same.
5596 (try_generate_gimple_bb): Same.
5597 (gather_bbs::before_dom_children): Same.
5598 (gather_bbs::after_dom_children): Same.
5599 (build_scops): Same.
5600 * graphite-sese-to-poly.c (build_scop_scattering): Same.
5601 (extract_affine_chrec): Same.
5602 (extract_affine): Same.
5603 (set_scop_parameter_dim): Same.
5604 (build_loop_iteration_domains): Same.
5605 (create_pw_aff_from_tree): Same.
5606 (add_param_constraints): Same.
5607 (build_scop_iteration_domain): Same.
5608 (build_scop_drs): Same.
5609 (analyze_drs_in_stmts): Same.
5610 (insert_out_of_ssa_copy_on_edge): Same.
5611 (rewrite_close_phi_out_of_ssa):Same.
5612 (rewrite_reductions_out_of_ssa):Same.
5613 (handle_scalar_deps_crossing_scop_limits):Same.
5614 (rewrite_cross_bb_scalar_deps):Same.
5615 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
5616 (build_poly_scop):Same.
5617 (build_alias_set): Use pointer to dr_info.
5618 * graphite.c (print_graphite_scop_statistics):
5619 (graphite_transform_loops):
5620 * sese.h (struct sese_l): Remove conversion constructor.
5622 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5625 * tree.c (verify_type): Verify that TYPE_MODE match
5626 between TYPE_CANONICAL and type.
5627 * expr.c (store_expr_with_bounds): Revert my previous change.
5628 * expmed.c (store_bit_field_1): Revert prevoius change.
5629 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
5630 to match for all types.
5632 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
5634 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
5637 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5639 * doc/tm.texi: Regenerated.
5640 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
5641 * stor-layout.c (layout_type): Use mode to get vector mask size.
5642 * target.def (get_mask_mode): New.
5643 * targhooks.c (default_get_mask_mode): New.
5644 * targhooks.h (default_get_mask_mode): New.
5645 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
5647 * tree.c (MAX_BOOL_CACHED_PREC): New.
5648 (nonstandard_boolean_type_cache): New.
5649 (build_nonstandard_boolean_type): New.
5650 (make_vector_type): Vector mask has no canonical type.
5651 (build_truth_vector_type): New.
5652 (build_same_sized_truth_vector_type): New.
5653 (truth_type_for): Support vector masks.
5654 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
5655 (build_truth_vector_type): New.
5656 (build_same_sized_truth_vector_type): New.
5657 (build_nonstandard_boolean_type): New.
5658 * tree-cfg.c (verify_gimple_comparison) Require boolean
5659 vector type for vector comparison.
5660 (verify_gimple_assign_ternary): Likewise.
5661 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
5663 * tree-vect-stmts.c (vectorizable_condition): Use boolean
5664 vector type for vector comparison.
5665 * tree-vect-generic.c (elem_op_func): Add new operand to hold
5667 (do_unop): Adjust to modified function type.
5668 (do_binop): Likewise.
5669 (do_plus_minus): Likewise.
5670 (do_negate); Likewise.
5671 (expand_vector_piecewise): Likewise.
5672 (do_cond): Likewise.
5673 (do_compare): Use comparison instead of condition.
5674 (expand_vector_divmod): Use boolean vector type for comparison.
5675 (expand_vector_operations_1): Skip scalar mask operations.
5677 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
5679 * omp-low.c (simd_clone_create): Set in_other_partition
5682 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
5684 * doc/extend.exp (Local Register Variables): Rewrite.
5686 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
5688 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
5689 and x*x in cases where the operands are sign ops. Extend these
5690 rules to handle copysign as a sign op (including for cos, cosh
5691 and pow, which already treated negate and abs as sign ops).
5693 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
5696 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
5697 for 64-bit MS_ABI targets also when default incoming stack boundary
5700 2015-10-21 Richard Biener <rguenther@suse.de>
5702 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
5703 cond stmts, enhanced and split out from ...
5704 (vn_phi_eq): ... here.
5706 2015-10-21 Richard Biener <rguenther@suse.de>
5709 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
5710 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
5711 (tree_single_nonnegative_warnv_p): ... here. For SSA names
5712 make sure they are not registered for update.
5714 2015-10-21 Richard Biener <rguenther@suse.de>
5716 PR tree-optimization/68026
5717 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
5718 unsigned VARYING values.
5720 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
5722 * asan.c (asan_emit_stack_protection): Don't pass local stack to
5723 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
5724 NULL and use local stack than.
5725 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
5726 in addition to __asan_init.
5727 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
5728 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
5729 * asan.h (asan_intercepted_p): Handle new string builtins.
5730 * ubsan.c (ubsan_use_new_style_p): New function.
5731 (ubsan_instrument_float_cast): If location is unknown, assign
5732 input_location to loc. Propagate loc to ubsan_create_data if
5733 ubsan_use_new_style_p returned true.
5735 2015-10-21 Jeff Law <law@redhat.com>
5737 * Makefile.in (OBJS): Remove sched-vis.c
5738 * sched-vis.c: Removed. Code moved into...
5739 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
5740 * rtl.h: Remove prototypes for functions now living in print-rtl.c
5741 * print-rtl.h Add prototypes for new functions in print-rtl.c.
5742 * auto-inc-dec.c: Include print-rtl.h
5743 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
5744 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
5746 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
5749 2015-10-21 Richard Biener <rguenther@suse.de>
5750 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
5752 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
5754 Move (a * (1 << b)) is (a << b) to match.pd.
5755 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
5756 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
5757 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
5759 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
5761 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
5762 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
5763 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
5765 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
5767 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
5769 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
5770 Szabolcs Nagy <szabolcs.nagy@arm.com>
5771 Alan Modra <amodra@gmail.com>
5773 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
5774 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
5775 (LINK_SPEC): Add %(link_secure_plt).
5776 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
5777 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
5779 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
5780 Szabolcs Nagy <szabolcs.nagy@arm.com>
5782 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
5783 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
5785 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5787 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
5789 (fusion_load_store): Use it.
5790 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
5791 ldp and stp in VD modes.
5792 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
5793 (store_pair<mode>, VD): Likewise.
5795 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
5797 PR rtl-optimization/67609
5798 * lra-splill.c (lra_final_code_change): Don't remove all
5801 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5803 * simplify-rtx.c (simplify_binary_operation): If either operand was
5804 a constant pool reference use them if all other simplifications failed.
5806 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5808 * config/aarch64/aarch64.md
5809 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
5810 * config/aarch64/aarch64-simd.md
5811 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
5812 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
5813 (aarch64_fpconst_pow_of_2): New function.
5814 (aarch64_vec_fpconst_pow_of_2): Likewise.
5815 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
5817 (aarch64_vec_fpconst_pow_of_2): Likewise.
5818 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
5819 (aarch64_fp_vec_pow2): Likewise.
5821 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
5823 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
5824 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
5825 * config/alpha/alpha.c (alpha_function_arg_advance): Update
5826 ALPHA_ARG_SIZE usage.
5827 (alpha_arg_partial_bytes): Ditto.
5829 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5832 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
5833 error_mark_node decls.
5835 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
5839 * common/config/i386/i386-common.c (ix86_handle_option): Remove
5840 OPT_miamcu handling.
5841 * config/i386/i386.c (PTA_NO_80387): New macro.
5842 (processor_alias_table): Add PTA_NO_80387 to lakemont.
5843 (ix86_option_override_internal): Update MASK_80387 from
5844 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
5845 SSE math only if 80387 is supported. Don't change
5847 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
5849 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
5850 if TARGET_80387 is true and TARGET_IAMCU is false.
5851 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
5852 is true and TARGET_IAMCU_P is false.
5854 2015-10-20 Richard Biener <rguenther@suse.de>
5856 PR tree-optimization/68017
5857 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
5859 2015-10-20 Martin Liska <mliska@suse.cz>
5861 * cgraphclones.c (cgraph_node::create_virtual_clone):
5862 Verify cgraph_node.local.versionable instead of calling
5863 tree_versionable_function_p.
5864 * ipa-cp.c (determine_versionability): Save the information
5865 to ipa_node_params summary.
5866 (ipcp_versionable_function_p): Use it.
5867 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
5868 (ipcp_generate_summary): Do not compute cgraph_node
5870 * ipa-inline-analysis.c (inline_generate_summary): Compute
5871 versionability for all cgraph nodes.
5872 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
5873 ipa_node_params::versionability.
5874 * ipa-prop.h (struct ipa_node_params): Declare it.
5876 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5879 * varasm.c (assemble_variable): Move special vtv handling to..
5880 (handle_vtv_comdat_sections): .. here. New function.
5881 (output_object_block): Handle vtv sections.
5883 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
5886 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
5888 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
5890 * doc/extend.texi: Update documentation WRT inline functions.
5892 2015-10-20 Alan Modra <amodra@gmail.com>
5895 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
5896 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
5897 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
5899 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
5901 PR rtl-optimization/66790
5902 * df.h (DF_MIR): New macro.
5903 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
5904 (DF_MIR_INFO_BB): New macro.
5905 (DF_MIR_IN, DF_MIR_OUT): New macros.
5906 (struct df_mir_bb_info): New.
5907 (df_mir): New macro.
5908 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
5910 (df_mir_get_bb_info): New.
5911 * df-problems.c (struct df_mir_problem_data): New.
5912 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
5913 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
5914 df_mir_confluence_0, df_mir_confluence_n,
5915 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
5916 df_mir_bottom_dump, df_mir_verify_solution_start,
5917 df_mir_verify_solution_end): New.
5919 (df_mir_add_problem, df_mir_simulate_one_insn): New.
5920 * timevar.def (TV_DF_MIR): New.
5921 * ree.c: Include bitmap.h
5922 (add_removable_extension): Add an INIT_REGS parameter. Use it
5923 to skip zero-extensions that may get an uninitialized register.
5924 (find_removable_extensions): Compute must-initialized registers
5925 using the MIR dataflow problem. Update the call to
5926 add_removable_extension.
5927 (find_and_remove_re): Call df_mir_add_problem.
5929 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
5931 * common/config/mn10300/mn10300-common.c
5932 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
5933 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
5935 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
5937 * doc/extend.texi (Explicit Register Variables): Simplify and
5938 avoid unnecessary and confusion abbreviations. Update cross
5940 doc/implement-c.tex: Update cross reference.
5942 2015-10-19 Jeff Law <law@redhat.com>
5944 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
5945 that create irreducible loops unless the path elimiantes a multiway
5948 2015-10-19 Richard Biener <rguenther@suse.de>
5950 PR tree-optimization/67975
5951 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
5952 * tree-cfg.c (extract_true_false_controlled_edges): Split out
5953 core worker from ...
5954 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
5955 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
5956 instead of block number for PHIs with two or one args.
5957 (vn_phi_eq): Compare edge predicates of PHIs that are in different
5960 2015-10-19 Richard Biener <rguenther@suse.de>
5962 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
5963 (gimple_stmt_nonnegative_warnv_p): Use it.
5964 * match.pd (CPROJ): New operator list.
5965 (cproj (complex ...)): Move simplifications from ...
5966 * builtins.c (fold_builtin_cproj): ... here.
5968 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5970 * config/i386/i386.c (ix86_expand_vector_move): Use
5971 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
5974 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5976 * doc/invoke.texi: Replace @optindex with @opindex.
5978 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
5981 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
5982 arch= is set, clear all bits in x_ix86_isa_flags, except for
5983 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
5985 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
5988 * common.opt (fkeep-static-functions): New option.
5989 * doc/invoke.texi: Document it.
5990 * cgraphunit.c (cgraph_node::finalize_function): Use it.
5992 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5994 * sched-int.h (struct autopref_multipass_data_): Remove offset
5995 field. Add min_offset, max_offset, multi_mem_insn_p fields.
5996 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
5997 (autopref_multipass_init): Use it. Handle PARALLEL sets.
5998 (autopref_rank_data): New function.
5999 (autopref_rank_for_schedule): Use it.
6000 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
6002 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
6005 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
6007 2015-10-18 Iain Sandoe <iain@codesourcery.com>
6009 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
6010 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
6011 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
6012 (STANDARD_STARTFILE_PREFIX_1): New.
6013 (STANDARD_STARTFILE_PREFIX_2): New.
6015 2015-10-18 Iain Sandoe <iain@codesourcery.com>
6017 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
6018 (darwin_driver_init): Note a version-min when provided on the c/l.
6019 * config/darwin.h (%darwin_minversion): Remove.
6020 * config/i386/darwin.h: Likewise.
6021 * config/rs6000/darwin.h: Likewise.
6022 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
6023 rather than an arbitrary constant.
6025 2015-10-18 Iain Sandoe <iain@codesourcery.com>
6027 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
6028 PPC, detect conflicts between -arch and multilib settings. Detect
6029 and warn about conflicts between multiple -arch definitions.
6031 2015-10-18 Iain Sandoe <iain@codesourcery.com>
6033 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
6035 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6037 * lra-constraints.c (add_next_usage_insn): Change argument type
6038 from rtx to rtx_insn *.
6040 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
6042 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
6045 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
6047 * config/tilepro/gen-mul-tables.cc: Adjust include files.
6048 * config/tilegx/mul-tables.c: Regenerate.
6049 * config/tilepro/mul-tables.c: Regenerate.
6051 * config/tilegx/tilegx-c.c: Adjust include files.
6052 * config/tilegx/tilegx.c: Likewise.
6053 * config/tilepro/tilepro-c.c: Likewise.
6054 * config/tilepro/tilepro.c: Likewise.
6055 * config/aarch64/aarch64-builtins.c: Likewise.
6056 * config/aarch64/aarch64.c: Likewise.
6057 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
6058 * config/alpha/alpha.c: Likewise.
6059 * config/arc/arc.c: Likewise.
6060 * config/arm/aarch-common.c: Likewise.
6061 * config/arm/arm-builtins.c: Likewise.
6062 * config/arm/arm-c.c: Likewise.
6063 * config/arm/arm.c: Likewise.
6064 * config/avr/avr-c.c: Likewise.
6065 * config/avr/avr-devices.c: Likewise.
6066 * config/avr/avr-log.c: Likewise.
6067 * config/avr/avr.c: Likewise.
6068 * config/bfin/bfin.c: Likewise.
6069 * config/c6x/c6x.c: Likewise.
6070 * config/cr16/cr16.c: Likewise.
6071 * config/cris/cris.c: Likewise.
6072 * config/darwin-c.c: Likewise.
6073 * config/darwin-driver.c: Likewise.
6074 * config/darwin.c: Likewise.
6075 * config/default-c.c: Likewise.
6076 * config/epiphany/epiphany.c: Likewise.
6077 * config/epiphany/mode-switch-use.c: Likewise.
6078 * config/epiphany/resolve-sw-modes.c: Likewise.
6079 * config/fr30/fr30.c: Likewise.
6080 * config/frv/frv.c: Likewise.
6081 * config/ft32/ft32.c: Likewise.
6082 * config/glibc-c.c: Likewise.
6083 * config/h8300/h8300.c: Likewise.
6084 * config/i386/host-cygwin.c: Likewise.
6085 * config/i386/host-mingw32.c: Likewise.
6086 * config/i386/i386-c.c: Likewise.
6087 * config/i386/i386.c: Likewise.
6088 * config/i386/msformat-c.c: Likewise.
6089 * config/i386/winnt-cxx.c: Likewise.
6090 * config/i386/winnt-stubs.c: Likewise.
6091 * config/i386/winnt.c: Likewise.
6092 * config/ia64/ia64-c.c: Likewise.
6093 * config/ia64/ia64.c: Likewise.
6094 * config/iq2000/iq2000.c: Likewise.
6095 * config/lm32/lm32.c: Likewise.
6096 * config/m32c/m32c-pragma.c: Likewise.
6097 * config/m32c/m32c.c: Likewise.
6098 * config/m32r/m32r.c: Likewise.
6099 * config/mcore/mcore.c: Likewise.
6100 * config/mep/mep-pragma.c: Likewise.
6101 * config/mep/mep.c: Likewise.
6102 * config/microblaze/microblaze-c.c: Likewise.
6103 * config/microblaze/microblaze.c: Likewise.
6104 * config/mips/mips-tables.opt
6105 * config/mips/mips.c: Likewise.
6106 * config/mmix/mmix.c: Likewise.
6107 * config/mn10300/mn10300.c: Likewise.
6108 * config/moxie/moxie.c: Likewise.
6109 * config/msp430/msp430-c.c: Likewise.
6110 * config/msp430/msp430.c: Likewise.
6111 * config/nds32/nds32-cost.c: Likewise.
6112 * config/nds32/nds32-fp-as-gp.c: Likewise.
6113 * config/nds32/nds32-intrinsic.c: Likewise.
6114 * config/nds32/nds32-isr.c: Likewise.
6115 * config/nds32/nds32-md-auxiliary.c: Likewise.
6116 * config/nds32/nds32-memory-manipulation.c: Likewise.
6117 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
6118 * config/nds32/nds32-predicates.c: Likewise.
6119 * config/nds32/nds32.c: Likewise.
6120 * config/nios2/nios2.c: Likewise.
6121 * config/nvptx/mkoffload.c: Likewise.
6122 * config/nvptx/nvptx.c: Likewise.
6123 * config/pa/pa.c: Likewise.
6124 * config/pdp11/pdp11.c: Likewise.
6125 * config/rl78/rl78-c.c: Likewise.
6126 * config/rl78/rl78.c: Likewise.
6127 * config/rs6000/host-darwin.c: Likewise.
6128 * config/rs6000/rs6000-c.c: Likewise.
6129 * config/rs6000/rs6000-linux.c: Likewise.
6130 * config/rs6000/rs6000.c: Likewise.
6131 * config/rx/rx.c: Likewise.
6132 * config/s390/s390-c.c: Likewise.
6133 * config/s390/s390.c: Likewise.
6134 * config/sh/sh-c.c: Likewise.
6135 * config/sh/sh-mem.cc: Likewise.
6136 * config/sh/sh.c: Likewise.
6137 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
6138 * config/sh/sh_treg_combine.cc: Likewise.
6139 * config/sol2-c.c: Likewise.
6140 * config/sol2-cxx.c: Likewise.
6141 * config/sol2-stubs.c: Likewise.
6142 * config/sol2.c: Likewise.
6143 * config/sparc/sparc-c.c: Likewise.
6144 * config/sparc/sparc.c: Likewise.
6145 * config/spu/spu-c.c: Likewise.
6146 * config/spu/spu.c: Likewise.
6147 * config/stormy16/stormy16.c: Likewise.
6148 * config/v850/v850-c.c: Likewise.
6149 * config/v850/v850.c: Likewise.
6150 * config/vax/vax.c: Likewise.
6151 * config/visium/visium.c: Likewise.
6152 * config/vms/vms-c.c: Likewise.
6153 * config/vms/vms.c: Likewise.
6154 * config/vxworks.c: Likewise.
6155 * config/winnt-c.c: Likewise.
6156 * config/xtensa/xtensa.c: Likewise.
6158 2015-10-16 Christian Bruel <christian.bruel@st.com>
6161 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
6162 (FUNCTION_BOUNDARY_P): New macro:
6163 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
6165 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
6166 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
6167 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
6168 * function.c (allocate_struct_function): Call
6169 relayout_function hook.
6170 * passes.c (rest_of_decl_compilation): Likewise.
6172 2015-10-16 Christian Bruel <christian.bruel@st.com>
6175 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
6176 * config/arm/arm.c (arm_option_override_internal): Call
6177 arm_override_options_after_change_1.
6178 (arm_override_options_after_change): New function.
6179 (arm_override_options_after_change_1): Likewise.
6180 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
6182 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6185 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
6188 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
6190 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
6191 argument is an ADDR_EXPR.
6193 2015-10-16 Richard Biener <rguenther@suse.de>
6195 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
6196 and get rid of force_gimple_operand_gsi.
6197 (gimple_fold_builtin_memory_chk): Likewise.
6198 (gimple_fold_builtin_stxcpy_chk): Likewise.
6199 (rewrite_to_defined_overflow): Likewise.
6200 (gimple_convert_to_ptrofftype): New function.
6201 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
6203 2015-10-16 Richard Biener <rguenther@suse.de>
6205 * tree-nested.h (build_addr): Adjust prototype.
6206 * tree-nested.c (build_addr): Remove context argument and use
6208 (get_static_chain): Adjust calls to build_addr.
6209 (convert_nl_goto_reference): Likewise.
6210 (convert_tramp_reference_op): Likewise.
6211 (finalize_nesting_tree_1): Likewise.
6212 * value-prof.c (gimple_ic): Likewise.
6213 * gimple-low.c (lower_builtin_setjmp): Likewise.
6214 * tree-parloops.c (take_address_of): Likewise.
6215 (create_call_for_reduction_1): Likewise.
6216 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
6217 (gimple_gen_ic_func_profiler): Likewise.
6219 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6221 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
6224 2015-10-16 Michael Collison <michael.collison@linaro.org>
6225 Andrew Pinski <andrew.pinski@caviumnetworks.com>
6227 * match.pd ((x < y) && (x < z) -> x < min (y,z),
6228 (x > y) and (x > z) -> x > max (y,z))
6230 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
6231 Szabolcs Nagy <szabolcs.nagy@arm.com>
6233 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
6234 (DYNAMIC_LINKER): Renamed to ...
6235 (GLIBC_DYNAMIC_LINKER): This.
6236 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
6238 2015-10-15 Marek Polacek <polacek@redhat.com>
6240 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
6241 gimple_call_builtin instead of is_gimple_call.
6243 2015-10-15 Richard Biener <rguenther@suse.de>
6245 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
6247 2015-10-15 Richard Biener <rguenther@suse.de>
6249 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
6250 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
6251 * tree-vect-loop.c (get_initial_def_for_induction): Drop
6252 use of force_gimple_operand in favor of gimple_build.
6253 Use vect_get_new_ssa_name.
6254 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
6255 (vectorizable_mask_load_store): Likewise.
6256 (vectorizable_call): Likewise.
6257 (vectorizable_store): Likewise.
6258 (vectorizable_load): Likewise.
6259 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
6261 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
6263 PR tree-optimization/67945
6264 * tree-pass.h (PROP_gimple_opt_math): New property flag.
6265 * generic-match-head.c (canonicalize_math_p): New function.
6266 * gimple-match-head.c: Include tree-pass.h.
6267 (canonicalize_math_p): New function.
6268 * match.pd: Group math built-in rules into simplifications
6269 and canonicalizations. Guard the latter with canonicalize_math_p.
6270 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
6271 PROP_gimple_opt_math property.
6273 2015-10-15 Marek Polacek <polacek@redhat.com>
6275 PR tree-optimization/67953
6276 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
6278 2015-10-15 Jiong Wang <jiong.wang@arm.com>
6280 * config.gcc: Recognize "." in architecture base name for AArch64.
6282 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
6284 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
6286 * config/mips/mips.c (mips_setup_incoming_varargs): Use
6287 ROUND_DOWN to calculate off.
6288 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
6289 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
6292 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
6294 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
6296 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
6297 Torvald Riegel <triegel@redhat.com>
6300 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
6301 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6302 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
6303 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
6304 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
6305 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
6306 trechkpt, treclaim, tsr, ttest): New define_expands.
6307 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
6308 __TM_FENCE__ for htm.
6309 * doc/extend.texi: Update documentation for htm builtins.
6311 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
6314 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
6315 REG_CFA_EXPRESSION to aligned SSE stores.
6317 2015-10-14 Jeff Law <law@redhat.com>
6319 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
6320 num_threaded_edges for successful FSM threads too.
6322 2015-10-14 Richard Biener <rguenther@suse.de>
6324 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
6325 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
6326 (vect_get_vec_def_for_operand): Remove unused parameter.
6327 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
6328 (vect_create_epilog_for_reduction): Likewise.
6329 (vectorizable_reduction): Likewise.
6330 (vectorizable_live_operation): Likewise.
6331 * tree-vect-patterns.c (type_conversion_p): Likewise.
6332 (vect_recog_vector_vector_shift_pattern): Likewise.
6333 (check_bool_pattern): Likewise.
6334 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
6335 (vect_analyze_slp_cost_1): Likewise.
6336 * tree-vect-stmts.c (process_use): Likewise.
6337 (vect_get_vec_def_for_operand): Do not handle reductions.
6338 (vect_get_vec_defs): Adjust.
6339 (vectorizable_mask_load_store): Likewise.
6340 (vectorizable_call): Likewise.
6341 (vectorizable_simd_clone_call): Likewise.
6342 (vect_get_loop_based_defs): Likewise.
6343 (vectorizable_conversion): Likewise.
6344 (vectorizable_assignment): Likewise.
6345 (vectorizable_shift): Likewise.
6346 (vectorizable_operation): Likewise.
6347 (vectorizable_store): Likewise.
6348 (vectorizable_load): Likewise.
6349 (vect_is_simple_cond): Likewise.
6350 (vectorizable_condition): Likewise.
6351 (vect_is_simple_use): Remove unused parameters.
6352 (vect_is_simple_use_1): Adjust and rename.
6354 2015-10-14 Richard Biener <rguenther@suse.de>
6356 PR tree-optimization/67915
6357 * match.pd: Handle comparisons of addresses of STRING_CSTs.
6358 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
6359 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
6360 stmt folding in favor of GIMPLE one.
6362 2015-10-14 Marek Polacek <polacek@redhat.com>
6364 PR tree-optimization/67815
6365 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
6366 (reassociate_bb): Call it.
6368 2015-10-14 Richard Biener <rguenther@suse.de>
6370 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
6371 Reset info at start.
6372 (vect_analyze_group_access_1): Add debug print.
6373 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
6374 (vect_compute_single_scalar_iteration_cost): ... to this.
6375 (vect_analyze_loop_2): Adjust.
6376 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
6377 * tree-vectorizer.h: ... here.
6378 (add_stmt_info_to_vec): Remove.
6379 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
6381 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
6383 * targhooks.c (default_target_option_pragma_parse): Do not warn if
6384 called on behalf of "#pragma GCC pop_options".
6386 2015-10-14 Tom de Vries <tom@codesourcery.com>
6388 * cfganal.c (verify_no_unreachable_blocks): New function.
6389 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
6390 verify_no_unreachable_blocks.
6391 cfganal.h (verify_no_unreachable_blocks): Declare.
6393 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
6395 * common.opt: Add flag_checking.
6396 * system.h (CHECKING_P): Define.
6398 2015-10-13 Jakub Jelinek <jakub@redhat.com>
6399 Aldy Hernandez <aldyh@redhat.com>
6400 Ilya Verbin <ilya.verbin@intel.com>
6402 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
6403 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
6404 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
6405 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
6406 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
6407 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
6408 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
6409 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
6410 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
6411 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
6412 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
6413 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
6414 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
6415 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6416 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
6417 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6418 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6419 (struct cgraph_simd_clone_arg): Adjust comment.
6420 * coretypes.h (struct gomp_ordered): New forward decl.
6421 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
6422 set critical clauses to it.
6423 (gimple_build_omp_ordered): Return gomp_ordered * instead of
6424 gimple *. Add CLAUSES argument, set ordered clauses to it.
6425 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
6427 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
6428 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
6429 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
6430 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
6431 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
6432 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
6433 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
6434 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
6436 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
6437 (gomp_critical): Add clauses field.
6438 (gomp_ordered): New struct.
6439 (is_a_helper <gomp_ordered *>::test): New inline.
6440 (gimple_build_omp_critical): Add CLAUSES argument.
6441 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
6442 instead of gimple *.
6443 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
6444 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
6445 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
6446 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
6448 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
6449 (dump_gimple_omp_target): Handle enter data and exit data.
6450 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
6451 (dump_gimple_omp_critical): Print clauses.
6452 (dump_gimple_omp_ordered): New function.
6453 (dump_gimple_omp_task): Handle taskloop.
6454 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
6456 * gimple-walk.c (walk_gimple_op): Walk clauses on
6457 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
6458 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
6459 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
6460 (struct gimplify_omp_ctx): Add loop_iter_var,
6461 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
6462 and target_firstprivatize_array_bases fields.
6463 (delete_omp_context): Release loop_iter_var.
6464 (gimplify_bind_expr): Handle ORT_NONE.
6465 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
6466 ORT_COMBINED_TARGET.
6467 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
6468 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
6469 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
6470 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
6471 ctx->target_map_scalars_firstprivate.
6472 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
6473 data sharing clauses. For data sharing clause with VLA decl
6474 on omp target/target data don't add firstprivate for the pointer.
6475 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
6476 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
6477 the addition of ORT_COMBINED_TARGET.
6478 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
6479 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
6480 pointers as zero length array sections and
6481 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
6483 (omp_check_private): Handle omp_member_access_dummy_var vars.
6484 (find_decl_expr): New function.
6485 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
6486 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
6487 Handle OMP_CLAUSE_GANG separately. Handle
6488 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6489 clauses. Diagnose linear clause on combined
6490 distribute {, parallel for} simd construct, unless it is the loop
6491 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
6492 Handle map clauses with COMPONENT_REF. Initialize
6493 ctx->target_map_scalars_firstprivate,
6494 ctx->target_firstprivatize_array_bases and
6495 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
6496 linear clause even to target region if combined. Remove
6497 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
6498 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
6499 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
6500 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
6501 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
6502 For linear clause on worksharing loop combined with parallel add
6503 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
6504 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
6505 omp_member_access_dummy_var vars. Add lastprivate clause to outer
6507 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
6508 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
6509 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
6511 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
6512 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
6513 in target body. Handle removal of struct mapping if struct is not
6514 seen in target body. Remove GOMP_MAP_STRUCT map clause on
6515 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
6516 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
6517 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
6518 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
6519 clause appear together. Handle
6520 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
6521 clause if it has map-type-modifier always. Handle
6522 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
6524 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
6525 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
6527 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
6528 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
6529 iterators in doacross loops.
6530 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
6531 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
6532 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
6533 for the addition of ORT_COMBINED_TARGET.
6534 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
6535 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
6536 and OMP_TARGET_EXIT_DATA.
6537 (gimplify_omp_ordered): New function.
6538 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
6539 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
6540 Gimplify clauses on OMP_CRITICAL.
6541 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
6542 expand_GOMP_SIMD_ORDERED_END): New functions.
6543 * internal-fn.def (GOMP_SIMD_ORDERED_START,
6544 GOMP_SIMD_ORDERED_END): New internal functions.
6545 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
6546 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
6547 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
6548 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
6549 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
6550 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
6551 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
6552 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
6553 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
6554 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
6555 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
6556 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
6557 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
6558 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
6560 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
6561 GOMP_target_data_41, adjust type.
6562 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
6563 GOMP_target_update_41, adjust type.
6564 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
6566 (struct omp_for_data): Add ordered and simd_schedule fields.
6567 (omp_member_access_dummy_var, unshare_and_remap_1,
6568 unshare_and_remap, is_taskloop_ctx): New functions.
6569 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
6570 (extract_omp_for_data): Handle taskloops and doacross loops
6571 and simd schedule modifier.
6572 (omp_adjust_chunk_size): New function.
6573 (get_ws_args_for): Use it.
6574 (lookup_sfield): Change first argument to splay_tree_key,
6575 add overload with first argument tree.
6576 (maybe_lookup_field): Likewise.
6577 (use_pointer_for_field): Handle omp_member_access_dummy_var.
6578 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
6579 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
6580 (build_outer_var_ref): Add LASTPRIVATE argument, handle
6581 taskloops and omp_member_access_dummy_var vars.
6582 (build_sender_ref): Change first argument to splay_tree_key,
6583 add overload with first argument tree.
6584 (install_var_field): For mask & 8 use &DECL_UID as key instead
6586 (fixup_child_record_type): Const qualify *.omp_data_i.
6587 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
6588 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
6589 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
6590 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
6591 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
6592 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
6593 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
6595 (add_taskreg_looptemp_clauses): New function.
6596 (scan_omp_parallel): Use it.
6597 (scan_omp_task): Likewise.
6598 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6599 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
6600 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6601 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
6602 sandwiched taskloop constructs. Type check
6603 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
6604 region. Diagnose depend(source) or depend(sink:...) on
6605 target constructs or task/taskloop.
6606 (handle_simd_reference): Use get_name.
6607 (lower_rec_input_clauses): Likewise. Ignore all
6608 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
6609 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
6610 before passing it to omp_clause_{default,copy}_ctor. Handle
6611 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
6612 lastprivate_firstprivate flag for linear that needs copyin and
6613 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
6614 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
6615 on taskloop lookup decl in outer context. Pass true to
6616 build_outer_var_ref lastprivate argument. Handle
6617 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
6618 outside of outer taskloop for.
6619 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
6621 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
6622 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
6623 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
6624 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
6625 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
6626 abstract origin. Handle omp_member_access_dummy_var vars.
6627 (expand_parallel_call): Use expand_omp_build_assign.
6628 (expand_task_call): Handle taskloop construct expansion. Add
6629 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
6630 integers. Add priority argument to GOMP_task* calls. Or in
6631 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
6633 (expand_omp_build_assign): Add prototype. Add AFTER
6634 argument, if true emit statements after *GSI_P and continue linking.
6635 (expand_omp_taskreg): Adjust expand_task_call caller.
6636 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
6637 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
6638 zero_iter2_bb and first_zero_iter2 arguments, handle computation
6639 of counts even for ordered loops.
6640 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
6641 (expand_omp_ordered_source, expand_omp_ordered_sink,
6642 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
6644 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
6645 clauses on worksharing loop. Handle DOACROSS loop expansion.
6646 (expand_omp_for_static_nochunk): Handle linear clauses on
6647 worksharing loop. Adjust expand_omp_for_init_counts
6649 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
6650 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
6651 expand_omp_for_init_counts callers.
6652 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
6654 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
6655 Handle doacross loops.
6656 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6657 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
6658 GOMP_target_{41,update_41,enter_exit_data} libcalls.
6659 (expand_omp): Don't expand ordered depend constructs here, record
6660 ord_stmt instead for later expand_omp_for_generic.
6661 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6662 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
6663 clause as stand-alone directive.
6664 (lower_omp_ordered_clauses): New function.
6665 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
6666 don't lower anything.
6667 (lower_omp_for_lastprivate): Use last _looptemp_ clause
6668 on taskloop for comparison.
6669 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
6670 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
6671 expansion for linear adjustments.
6672 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
6673 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
6674 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
6675 to tree * pointing to the stmt's clauses.
6676 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
6677 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
6678 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
6679 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
6680 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
6681 clauses. Always use short kind and 8-bit align shift.
6682 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
6683 (struct lower_omp_regimplify_operands_data): New type.
6684 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
6686 (lower_omp_1): Use lower_omp_regimplify_operands instead of
6687 gimple_regimplify_operands.
6688 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
6689 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
6690 clause as stand-alone directive.
6691 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
6692 (simd_clone_mangle): Mangle the various linear kinds
6694 (simd_clone_adjust_argument_types): Handle
6695 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
6696 (simd_clone_init_simd_arrays): Don't do anything for uval.
6697 (simd_clone_adjust): Handle
6698 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
6699 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
6700 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
6701 * omp-low.h (omp_member_access_dummy_var): New prototype.
6702 * passes.def (pass_simduid_cleanup): Schedule another copy of the
6703 pass after all optimizations.
6704 * tree.c (omp_clause_code_name): Add entries for
6705 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6706 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6707 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
6708 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
6709 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
6710 OMP_CLAUSE_REDUCTION 5 arguments. Handle
6711 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6712 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
6714 * tree-core.h (enum omp_clause_linear_kind): New.
6715 (struct tree_omp_clause): Change type of map_kind
6716 from unsigned char to unsigned int. Add subcode.if_modifier
6717 and subcode.linear_kind fields.
6718 (enum omp_clause_code): Add
6719 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
6720 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
6721 (OMP_CLAUSE_REDUCTION): Document
6722 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6723 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
6724 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
6725 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
6727 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
6729 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
6731 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
6732 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
6734 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
6735 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
6736 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
6737 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
6738 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
6739 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
6740 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
6741 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
6742 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
6743 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
6744 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
6745 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
6746 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
6747 * tree-inline.c (remap_gimple_stmt): Handle clauses on
6748 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
6749 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
6750 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
6751 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6752 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6753 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
6754 (convert_local_omp_clauses): Likewise.
6755 * tree-pretty-print.c (dump_omp_clause): Handle
6756 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
6757 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
6758 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
6759 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
6760 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
6761 GOMP_MAP_FORCE_DEALLOC. Handle
6762 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
6763 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
6764 and clauses on OMP_ORDERED and OMP_CRITICAL.
6765 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
6766 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
6767 (vectorize_loops): Adjust comments.
6768 (pass_simduid_cleanup::execute): Likewise.
6769 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
6770 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
6771 * wide-int.h (wi::gcd): New.
6773 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
6775 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
6776 (ix86_function_arg_advance): Ditto.
6777 (ix86_function_arg): Ditto.
6778 (ix86_gimplify_va_arg): Ditto.
6779 (ix86_class_max_nregs): Ditto.
6780 (inline_memory_move_cost): Ditto.
6781 (ix86_set_reg_reg_cost): Ditto.
6782 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
6784 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
6787 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
6789 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
6791 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
6792 ROUND_UP macro and UNITS_PER_WORD * 2.
6793 * config/sparc/sparc.c (sparc_compute_frame_size):
6794 Use ROUND_UP and ROUND_DOWN macros where applicable.
6795 (function_arg_record_value, function_arg_record_value_1)
6796 (function_arg_record_value_1): Ditto.
6797 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
6798 alignment to double-word.
6799 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
6800 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
6803 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
6805 * rtl.h (print_insn): Fix prototype.
6807 2015-10-13 Tom de Vries <tom@codesourcery.com>
6809 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
6810 -1. Add assert that returned entry matches phi argument.
6811 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
6812 free_stmt_vec_info_vec ...
6813 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
6816 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
6818 PR tree-optimization/67909, 67947
6819 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
6820 really skip the inner loop.
6822 2015-10-13 Jeff Law <law@redhat.com>
6824 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6825 Allow single block jump threading paths.
6827 2015-10-13 Tom de Vries <tom@codesourcery.com>
6829 PR tree-optimization/67476
6830 * doc/invoke.texi (@item parloops-schedule): New item.
6831 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
6832 * tree-parloops.c: Include params-enum.h.
6833 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
6835 2015-10-13 Tom de Vries <tom@codesourcery.com>
6837 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
6838 * params-enum.h: New file.
6839 * opts.c (handle_param): Handle case that param arg is a string.
6840 * params-list.h: Handle DEFPARAMENUM5 in params.def.
6841 * params.c (find_param): New function, factored out of ...
6842 (set_param_value): ... here.
6843 (param_string_value_p): New function.
6844 * params.h (struct param_info): Add value_names field.
6845 (find_param, param_string_value_p): Declare.
6847 2015-10-13 Tom de Vries <tom@codesourcery.com>
6849 PR tree-optimization/67476
6850 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
6852 2015-10-13 Richard Biener <rguenther@suse.de>
6854 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
6855 the data dependence vector.
6856 (vect_peeling_hash_insert): Get the peeling hash table as argument.
6857 (vect_peeling_hash_get_lowest_cost): Likewise.
6858 (vect_enhance_data_refs_alignment): Adjust.
6859 (struct _vect_peel_info, struct _vect_peel_extended_info,
6860 struct peel_info_hasher): Move from ...
6861 * tree-vectorizer.h: ... here.
6862 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
6863 (LOOP_VINFO_PEELING_HTAB): Likewise.
6864 (struct _loop_vec_info): Remove min_profitable_iters and
6865 peeling_htab members.
6866 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
6868 (destroy_loop_vec_info): Adjust.
6869 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
6870 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
6871 to estimate alias versioning cost.
6872 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
6874 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
6876 * real.h (real_isinteger): Declare.
6877 * real.c (real_isinteger): New function.
6878 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
6879 if y is an even integer.
6881 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6884 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6885 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6886 counts when these are more informative.
6888 2015-10-12 Jeff Law <law@redhat.com>
6890 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
6891 (fsm_find_control_stmt_paths): Change name of first argument to
6892 more accurately relfect what it really is. Handle simplification
6893 of GIMPLE_COND after finding a thread path for NAME.
6894 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
6895 nontrivial conditions to be handled by FSM threader.
6896 (thread_through_normal_block): Extract the name to looup via
6897 FSM threader from COND_EXPR.
6899 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
6900 restriction that traced SSA_NAME is a user variable.
6902 2015-10-12 Tom de Vries <tom@codesourcery.com>
6904 PR tree-optimization/67476
6905 * omp-low.c (expand_omp_for_generic): Add missing phis.
6907 2015-10-12 Tom de Vries <tom@codesourcery.com>
6909 PR tree-optimization/67476
6910 * omp-low.c (expand_omp_for_generic): Handle simple latch.
6912 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
6914 * config/aarch64/aarch64-simd-builtins.def: Update builtins
6915 tables: add tbl3 and tbx4.
6916 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
6917 (aarch64_tbx4v8qi): New.
6918 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
6919 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
6920 Rewrite using builtin functions.
6921 * config/aarch64/iterators.md (UNSPEC_TBX): New.
6923 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6925 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
6927 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
6928 Use ROUND_UP and ROUND_DOWN macros where applicable.
6929 (rs6000_darwin64_record_arg_flush): Ditto.
6930 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
6931 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
6934 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
6936 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
6937 (AARCH64_ROUND_DOWN): Ditto.
6938 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
6940 2015-10-12 Richard Biener <rguenther@suse.de>
6943 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
6944 code that analyzes IVs on each stmt but in a cheaper way avoiding
6947 2015-10-12 Nick Clifton <nickc@redhat.com>
6949 * config/msp430/msp430.c (msp430_mcu_names): Rename to
6950 msp430_mcu_data, add fields for ISA and hardware multiply
6951 support. Import latest data from the devices.csv file.
6952 (msp430_override_option): Use the data from the new array.
6953 (msp430_use_f5_series_hwmult): Likewise.
6954 (use_32bit_hwmult): Likewise.
6955 (msp430_no_hwmult): Likewise.
6956 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
6958 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
6959 not recognised then no hardware multiply support is assumed and
6960 that only the MSP430 ISA is allowed.
6962 2015-10-12 Richard Biener <rguenther@suse.de>
6964 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
6966 (vect_analyze_loop_2): ... here.
6968 2015-10-11 Jason Merrill <jason@redhat.com>
6971 * expr.c (store_field): Call store_constructor directly when
6972 storing a CONSTRUCTOR into a target smaller than its type.
6973 Guard against unsafe bitwise copy.
6975 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6977 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
6978 counts when these are more informative.
6980 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6982 * tree-profile.c (tree_profiling): Do not clear
6983 pure/const when not instrumenting.
6984 (pass tree_profile): Add dump of symtab.
6986 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
6988 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
6990 (fold_addr_of_array_ref_difference): Likewise.
6992 2015-10-11 Jeff Law <law@redhat.com>
6994 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
6995 tree-ssa-threadbackward.c.
6996 (fsm_find_control_statement_thread_paths): Likewise.
6997 (thread_through_normal_block): Break out FSM bits and move them
6998 into a new function in tree-ssa-threadbackward.c. Call new function
7000 Minimize header file usage.
7001 * tree-ssa-threadbackward.h: New file.
7002 * tree-ssa-threadbackward.c: Likewise.
7003 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
7005 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
7007 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
7009 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
7011 PR rtl-optimization/67864
7012 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
7013 fallthrough edges for conditional jumps. Don't sort candidate
7014 edges if not optimizing for speed.
7016 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7018 * defaults.h (REVERSE_CONDITION): New default definition.
7019 * jump.c (reversed_comparison_code_parts): Adjust.
7021 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7023 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
7024 check HARD_FRAME_POINTER_IS_ARG_POINTER.
7026 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7028 * defaults.h (FRAME_ADDR_RTX): New default definition.
7029 * builtins.c (expand_builtin_return_addr): Adjust.
7031 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7033 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
7034 * builtins.c (expand_builtin_return_addr): Adjust.
7036 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7038 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
7039 * builtins.c (expand_builtin_return_addr): Adjust.
7040 * doc/tm.texi: Likewise.
7041 * doc/tm.texi.in: Likewise.
7042 * except.c (expand_builtin_unwind_init): Likewise.
7044 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7046 * builtins.c (expand_builtin_return_addr): Adjust.
7047 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
7049 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
7051 * tree.c (type_with_interoperable_signedness): New.
7052 (gimple_canonical_types_compatible_p): Use it.
7053 * tree.h (type_with_interoperable_signedness): Declare
7055 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
7057 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
7058 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
7059 when OEP_ADDRESS_OF is se.
7061 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
7062 Sebastian Pop <s.pop@samsung.com>
7064 * graphite-dependences.c (scop_get_dependences): Add dump of the
7065 data dependence graph.
7066 * graphite-poly.c (print_isl_union_map): New.
7067 (debug_isl_union_map): New.
7068 * graphite-poly.h (print_isl_union_map): Declare.
7069 (debug_isl_union_map): Declare.
7071 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
7072 Sebastian Pop <s.pop@samsung.com>
7074 * graphite-poly.c (print_iteration_domain): Remove verbosity.
7075 Remove OpenScop formatting.
7076 (print_iteration_domains): Same.
7077 (debug_iteration_domain): Same.
7078 (debug_iteration_domains): Same.
7081 (dump_gbb_cases): Same.
7082 (dump_gbb_conditions): Same.
7085 (print_pbb_body): Same.
7087 (print_scop_params): Same.
7088 (print_scop_context): Same.
7090 (debug_pbb_domain): Same.
7092 (debug_scop_context): Same.
7094 (debug_scop_params): Same.
7095 * graphite-poly.h: Same.
7096 * graphite.c (graphite_transform_loops): Same.
7098 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7100 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
7101 call that isn't needed.
7103 2015-10-09 Jeff Law <law@redhat.com>
7105 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
7106 rather than moving each name to the freelist individually.
7108 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
7110 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
7111 * frame-header-opt.c: New file.
7112 * config/mips/mips-proto.h (mips_register_frame_header_opt):
7114 * config/mips/mips.c (mips_compute_frame_info): Check
7115 optimize_call_stack flag.
7116 (mips_option_override): Register new frame_header_opt pass.
7117 (mips_frame_info, mips_int_mask, mips_shadow_set,
7118 machine_function): Move these types to...
7119 * config/mips/mips.h: here.
7120 (machine_function): Add does_not_use_frame_header and
7121 optimize_call_stack fields.
7122 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
7123 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
7125 * config/mips/mips.opt (mframe-header-opt): Add new option.
7127 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
7129 * config/i386/i386.c
7130 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
7131 ROUND_DOWN where applicable.
7133 2015-10-09 Jeff Law <law@redhat.com>
7135 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
7138 2015-10-09 Renlin Li <renlin.li@arm.com>
7140 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
7141 operands[0] and operands[2].
7142 (neon_vtrn<mode>_insn): Likewise.
7143 (neon_vzip<mode>_insn): Likewise.
7145 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
7147 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
7148 ((X & C2) << C1): Expand to...
7149 (X {&,^,|} C2 << C1): ...This.
7150 ((X & C2) >> C1): Expand to...
7151 (X {&,^,|} C2 >> C1): ...This.
7153 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
7156 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
7157 Adjust embedded rounding/SAE specifier position.
7158 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
7159 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
7160 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
7161 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
7162 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
7164 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
7166 2015-10-09 Martin Jambor <mjambor@suse.cz>
7168 tree-optimization/67794
7169 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
7170 between types of state,ents but accept original definitions as a
7172 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
7173 iterate over definitions.
7175 2015-10-09 James Norris <jnorris@codesourcery.com>
7177 * config/rs6000/rs6000.c (rs6000_offload_options): New.
7178 (TARGET_OFFLOAD_OPTIONS): New.
7180 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
7183 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
7186 * function.c (expand_function_end): Move return value
7187 promotion past the handling of PARALLELs and CONCATs.
7189 PR rtl-optimization/67828
7190 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
7191 (tree_may_unswitch_on): Don't unswitch on expressions
7192 involving undefined values.
7194 2015-10-09 Richard Biener <rguenther@suse.de>
7196 * genmatch.c (print_operand): Fix formatting.
7197 (dt_node::append_simplify): Warn for multiple simplifiers
7198 that match the same pattern.
7199 * match.pd (log (exp @0)): Remove duplicates.
7201 2015-10-09 Richard Biener <rguenth@suse.de>
7204 * gimple-fold.c (optabs-query.h): Include
7205 (gimple_fold_builtin_memory_op): Allow unaligned stores
7206 when movmisalign_optabs are available.
7208 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7211 * config/arm/arm.md (movmisalign<mode>): New.
7212 * config/arm/iterators.md (HSI): New.
7214 2015-10-09 Richard Biener <rguenther@suse.de>
7216 PR tree-optimization/67891
7217 * gimple-match.h (gimple_simplified_result_is_gimple_val):
7219 (gimple_resimplify1): Declare.
7220 (gimple_resimplify2): Likewise.
7221 (gimple_resimplify3): Likewise.
7222 * gimple-match-head.c (gimple_resimplify1): Export.
7223 (gimple_resimplify2): Likewise.
7224 (gimple_resimplify3): Likewise.
7225 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
7226 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7227 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
7228 to avoid creating stmts without VN info.
7230 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
7232 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
7235 2015-10-08 Jeff Law <law@redhat.com>
7237 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
7238 and release_ssa_name in two places.
7239 (gimple_stringop_fixed_value): Similarly.
7241 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
7244 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
7245 unlink_stmt_vdef and release_ssa_name_fn.
7247 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
7250 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
7252 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
7253 SSE register save area to 16 bytes only if the incoming stack
7254 boundary is no less than 16 bytes.
7256 2015-10-08 Jeff Law <law@redhat.com>
7258 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
7259 release_ssa_name. Fix typo in comment.
7261 2015-10-08 Nathan Sidwell <nathan@acm.org>
7263 * config/nvptx/nvptx.h (struct machine_function): Add comment.
7264 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
7265 may return pointer as well as in memory.
7266 (nvptx_output_return): Likewise.
7268 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
7270 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
7271 (fold_builtin_1): Update accordingly. Handle constant arguments here.
7272 * match.pd: Add rules previously handled by fold_builtin_sqrt
7273 and fold_builtin_cbrt.
7275 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
7277 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
7278 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
7279 * fold-const.h (tree_unary_nonnegative_warnv_p)
7280 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7281 (tree_expr_nonnegative_warnv_p): Add depth parameters.
7282 * fold-const.c: Include gimple-fold.h and params.h.
7283 (tree_ssa_name_nonnegative_warnv_p): New function.
7284 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
7285 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
7286 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
7287 Add a depth parameter and increment it for recursive calls to
7288 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
7289 to handle SSA names.
7290 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
7291 (gimple_stmt_nonnegative_warnv_p): Declare.
7292 * tree-vrp.c (remove_range_assertions): Remove assert that condition
7293 cannot be proven false.
7294 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
7295 (gimple_stmt_nonnegative_warnv_p): Move to...
7296 * gimple-fold.c: ...here. Add depth parameters and pass them
7297 down to the tree routines. Accept statements that aren't
7298 assignments or calls but just return false for them.
7299 (gimple_val_nonnegative_real_p): Delete.
7300 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
7301 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
7302 Check HONOR_NANs first.
7304 2015-10-08 Martin Jambor <mjambor@suse.cz>
7306 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
7309 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
7311 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
7312 in the tail of outer-loop.
7314 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
7316 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
7319 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
7321 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
7322 "cfghooks.h", add prototypes for introduced new functions.
7323 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
7324 checks on ability of loop unswitching to tree_unswitch_single_loop;
7325 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
7326 on innermost loop check.
7327 (tree_unswitch_single_loop): Add all required checks on ability of
7328 loop unswitching under zero recursive level guard.
7329 (tree_unswitch_outer_loop): New function.
7330 (find_loop_guard): Likewise.
7331 (empty_bb_without_guard_p): Likewise.
7332 (used_outside_loop_p): Likewise.
7333 (get_vop_from_header): Likewise.
7334 (hoist_guard): Likewise.
7335 (check_exit_phi): Likewise.
7337 2015-10-08 Marek Polacek <polacek@redhat.com>
7339 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
7342 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7345 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
7346 create_tmp_var_raw instead of create_tmp_var.
7348 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
7350 * expr.c (store_expr_with_bounds): Handle aggregate moves from
7352 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
7353 to define gimple type system; compare aggregates only by size.
7355 2015-10-07 Jeff Law <law@redhat.com>
7357 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
7358 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
7359 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
7362 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7363 Sebastian Pop <s.pop@samsung.com>
7365 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
7366 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
7367 (generate_isl_schedule): Same.
7368 * graphite-optimize-isl.c (scop_get_domains): Same.
7369 (apply_schedule_map_to_scop): Same.
7370 * graphite-poly.c (print_iteration_domains): Same.
7371 (remove_gbbs_in_scop): Same.
7375 * graphite-poly.h (struct scop): Rename bbs to pbbs.
7377 * graphite-scop-detection.c (compare_bb_depths): Remove.
7378 (graphite_sort_dominated_info): Remove.
7379 (try_generate_gimple_bb): Move out of scop_detection.
7380 (all_non_dominated_preds_marked_p): Remove.
7381 (build_scop_bbs_1): Remove.
7382 (build_scop_bbs): Remove.
7383 (nb_pbbs_in_loops): Do not use SCOP_BBS.
7384 (find_scop_parameters): Same.
7385 (sese_dom_walker): Rename gather_bbs.
7386 (before_dom_children): Call try_generate_gimple_bb and collect gbb
7388 (build_scops): Call gather_bbs.
7389 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
7390 (add_conditions_to_constraints): Same.
7391 (build_scop_iteration_domain): Same.
7392 (build_scop_drs): Same.
7393 (new_pbb_from_pbb): Same.
7394 * sese.c (new_sese_info): Create bbs.
7395 * sese.h (struct sese_info_t): Add bbs.
7397 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
7399 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
7400 encoding in 64-bit mode.
7402 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
7405 * config/i386/i386.c (ix86_option_override_internal): Always use
7406 8-byte minimum stack boundary in 64-bit mode.
7407 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
7408 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
7409 Add a REG_CFA_EXPRESSION note if needed.
7410 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
7411 (ix86_handle_force_align_arg_pointer_attribute): New.
7412 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
7413 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
7414 with ix86_handle_force_align_arg_pointer_attribute.
7415 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
7417 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7418 Sebastian Pop <s.pop@samsung.com>
7420 * graphite-scop-detection.c (parameter_index_in_region): Remove
7421 use of SESE_ADD_PARAMS.
7422 (find_scop_parameters): Same.
7423 * sese.c (new_sese_info): Same.
7424 * sese.h (struct sese_info_t): Remove add_params.
7425 (SESE_ADD_PARAMS): Remove.
7427 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
7428 Sebastian Pop <s.pop@samsung.com>
7430 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
7433 (copy_internal_parameters): Same.
7434 (translate_isl_ast_to_gimple): Use an sese_l.
7435 (build_iv_mapping): Same.
7436 * graphite-poly.c (new_sese): Rename new_sese_info.
7437 (free_sese): Rename free_sese_info.
7438 * graphite-poly.h (struct scop): Use an sese_info_p.
7439 (scop_set_region): Same.
7440 * graphite-scop-detection.c (struct sese_l): Moved...
7441 (get_entry_bb): Moved...
7442 (get_exit_bb): Moved...
7443 (parameter_index_in_region_1): Use an sese_info_p.
7444 (parameter_index_in_region): Same.
7445 (scan_tree_for_params): Same.
7446 (find_params_in_bb): Same.
7447 (sese_dom_walker): Use an sese_l.
7448 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
7449 (reduction_phi_p): Same.
7450 (parameter_index_in_region_1): Use an sese_info_p.
7451 (propagate_expr_outside_region): Use an sese_l.
7452 * graphite.c: Replace uses of SCOP_REGION.
7453 * sese.c (sese_record_loop): Use an sese_info_p.
7454 (build_sese_loop_nests): Same.
7455 (sese_build_liveouts_use): Same.
7456 (sese_build_liveouts_bb): Same.
7457 (sese_build_liveouts_bb): Same.
7458 (sese_bad_liveouts_use): Same.
7459 (sese_reset_debug_liveouts_bb): Same.
7460 (sese_build_liveouts): Same.
7461 (new_sese): Renamed new_sese_info.
7462 (free_sese): Renamed free_sese_info.
7463 (set_rename): Use an sese_info_p.
7464 (graphite_copy_stmts_from_block): Same.
7465 (copy_bb_and_scalar_dependences): Same.
7466 (outermost_loop_in_sese_1): Use an sese_l.
7467 (outermost_loop_in_sese): Same.
7468 (if_region_set_false_region): Use an sese_info_p.
7469 (move_sese_in_condition): Same.
7470 (scalar_evolution_in_region): Use an sese_l.
7471 * sese.h (struct sese_l): ... here.
7472 (SESE_ENTRY): Remove.
7473 (SESE_ENTRY_BB): Remove.
7474 (SESE_EXIT): Remove.
7475 (SESE_EXIT_BB): Remove.
7476 (sese_contains_loop): Use an sese_info_p.
7477 (sese_nb_params): Same.
7478 (bb_in_sese_p): Use an sese_l.
7479 (stmt_in_sese_p): Same.
7480 (defined_in_sese_p): Same.
7481 (loop_in_sese_p): Same.
7482 (sese_loop_depth): Same.
7483 (struct ifsese_s): Use an sese_info_p.
7484 (gbb_loop_at_index): Use an sese_l.
7485 (nb_common_loops): Same.
7486 (scev_analyzable_p): Same.
7488 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7490 * config/i386/i386.c (ix86_conditional_register_usage): Use
7491 CALL_USED_REGISTERS_MASK.
7492 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
7494 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7497 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
7498 * configure: Regenerated.
7500 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
7503 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
7504 (ix86_set_current_function): This.
7505 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
7507 2015-10-07 Richard Biener <rguenther@suse.de>
7509 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
7510 (vinfo_for_stmt): Adjust.
7511 (set_vinfo_for_stmt): Likewise.
7512 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
7513 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
7514 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
7516 (vect_analyze_loop_1): Remove.
7517 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
7518 inner loop when vectorizing an outer loop by splitting out from ...
7519 (vect_analyze_loop_form): ... here.
7521 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7524 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
7525 Use create_tmp_var_raw instead of create_tmp_var.
7527 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
7529 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
7530 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
7531 * real.c (CACHED_FRACTION): New helper macro.
7532 (dconst_third_ptr): Use it.
7533 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
7534 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
7536 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
7538 2015-10-06 Jeff Law <law@redhat.com>
7540 PR tree-optimization/67816
7541 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
7542 from remove_jump_threads_starting_at. Accept an edge rather than
7544 * tree-ssa-threadupdate.c (removed_edges): New hash table.
7545 (remove_jump_threads_including): Note edges that get removed from
7546 the CFG for later pruning of jump threading paths including them.
7547 (thread_through_all_blocks): Remove paths which include edges that
7549 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
7550 on each outgoing edges when optimizing away a control statement.
7552 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7554 * reorg.c (emit_delay_sequence): Store list of delay slot insns
7555 in a vector instead of rtx_insn_list.
7556 (add_to_delay_list): Likewise.
7557 (delete_from_delay_slot): Likewise.
7558 (optimize_skip): Likewise.
7559 (redirect_with_delay_list_safe_p): Likewise.
7560 (check_annul_list_true_false): Likewise.
7561 (steal_delay_list_from_target): Likewise.
7562 (steal_delay_list_from_fallthrough): Likewise.
7563 (redundant_insn): Likewise.
7564 (fill_simple_delay_slots): Likewise.
7565 (fill_slots_from_thread): Likewise.
7566 (fill_eager_delay_slots): Likewise.
7567 (relax_delay_slots): Likewise.
7569 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
7571 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
7572 For -mgpopt=local, also exclude unintialized common symbols.
7573 * doc/invoke.texi (Nios II Options): Document the change.
7575 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
7577 * config/aarch64/iterators.md (vwcore): Add missing cases for
7580 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7581 Sebastian Pop <s.pop@samsung.com>
7583 * graphite-poly.c (new_scop): Initialize drs.
7584 * graphite-poly.h (struct dr_info): New.
7585 (struct scop): Add drs.
7586 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
7587 (pdr_add_memory_accesses): Same.
7588 (build_poly_dr): Same.
7589 (build_alias_set): Same.
7590 (build_scop_drs): Same.
7591 (build_pbb_drs): Remove.
7592 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
7593 * tree-data-ref.h (data_reference): Remove alias_set.
7595 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7596 Sebastian Pop <s.pop@samsung.com>
7598 * graphite-poly.c (free_data_refs_aux): Remove.
7599 (free_gimple_poly_bb): Do not call free_data_refs_aux.
7600 * graphite-poly.h (struct base_alias_pair): Remove.
7601 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
7602 base_alias_pair and dr->aux.
7603 (build_alias_set): Same.
7604 * tree-data-ref.c (create_data_ref): Initialize alias_set.
7605 * tree-data-ref.h (data_reference): Add alias_set.
7607 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
7608 Sebastian Pop <s.pop@samsung.com>
7610 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
7611 Do not set PDR_BASE_OBJECT_SET.
7612 * graphite-poly.h (poly_dr): Same.
7613 (PDR_BASE_OBJECT_SET): Remove.
7614 (new_poly_dr): Update decl.
7615 * graphite-sese-to-poly.c (build_poly_dr): Update call to
7617 (write_alias_graph_to_ascii_dimacs): Remove.
7618 (write_alias_graph_to_ascii_dot): Remove.
7619 (write_alias_graph_to_ascii_ecc): Remove.
7620 (dr_same_base_object_p): Remove.
7621 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
7623 (build_base_obj_set_for_drs): Remove.
7624 (dump_alias_graphs): Remove.
7625 (build_scop_drs): Remove dead code.
7627 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
7628 Peter Bergner <bergner@vnet.ibm.com>
7631 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
7632 allow registers, but provide insns for the combiner to create for
7633 loads from memory. Separate VSX code from non-VSX code. For
7634 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
7635 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
7636 so that registers come before memory operations. Drop support from
7637 converting DFmode to TFmode, if the DFmode value is in a GPR
7639 (extenddftf2_fprs): Likewise.
7640 (extenddftf2_internal): Likewise.
7641 (extenddftf2_vsx): Likewise.
7642 (extendsftf2): In the expander, only allow registers, but provide
7643 insns for the combiner to create for stores and loads.
7645 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7647 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
7648 from the decl parameter.
7650 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
7653 * gimple-fold.c (gimple_fold_builtin): Add break after
7654 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
7656 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
7658 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
7659 to scop->isl_context.
7661 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7663 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
7664 (output_probe_stack_range): Rotate the loop and simplify.
7665 (thumb1_expand_prologue): Tweak sorry message.
7666 * config/arm/arm.md (probe_stack): Use bare string.
7668 2015-10-06 Nick Clifton <nickc@redhat.com>
7670 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
7672 2015-10-06 Nick Clifton <nickc@redhat.com>
7674 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
7675 (ATTR_PERSIST): New constant.
7676 (msp430_data_attr): New function - verifies an attribute that only
7677 applies to variables.
7678 (msp430_attributes): Add noinit and persistent attributes.
7679 (noinit_section): New variable.
7680 (presis_section): New variable.
7681 (TARGET_ASM_INIT_SECTIONS): Define.
7682 (msp430_init_sections): New function - initialises the noinit and
7683 persist section variables.
7684 (msp430_select_section): Add support for noinit and persist
7686 (msp430_section_type_flags): Likewise.
7687 * doc/extend.texi: Document the reent, critical, wakeup, noinit
7688 and persistent attributes.
7690 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7691 Sebastian Pop <s.pop@samsung.com>
7693 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
7694 (no_violations): Remove.
7695 (subtract_commutative_associative_deps): Remove.
7696 (compute_deps): Do not call subtract_commutative_associative_deps.
7697 (transform_is_safe): Remove.
7698 (graphite_legal_transform): Remove.
7699 * graphite-poly.h (graphite_legal_transform): Remove.
7701 2015-10-05 Aditya Kumar <hiraditya@msn.com>
7703 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
7704 which are in this region are passed so gcc_assert and remove redundant
7706 * sese.c (sese_build_liveouts): Pass only those bbs which are not
7708 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
7709 gcc_assert on that and remove unnecessary computation.
7710 (sese_build_liveouts_use): Same.
7712 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7714 * graphite-dependences.c (scop_get_reads): Renamed scop->context
7715 to scop->param_context.
7716 (scop_get_must_writes): Same.
7717 (scop_get_may_writes): Same.
7718 (scop_get_original_schedule): Same.
7719 (scop_get_transformed_schedule): Same.
7720 (subtract_commutative_associative_deps): Same.
7721 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
7722 (generate_isl_context): Same.
7723 (generate_isl_schedule): Same.
7724 (scop_to_isl_ast): Same.
7725 (graphite_regenerate_ast_isl): Same.
7726 * graphite-optimize-isl.c (scop_get_domains): Same.
7727 (optimize_isl): Renamed scop->context to scop->param_context.
7728 * graphite-poly.c (new_poly_bb): Change the type of argument to
7730 (new_scop): Renamed scop->context to scop->param_context.
7732 (print_scop_context): Same.
7733 * graphite-poly.h (new_poly_dr): Change the type of argument from
7734 void* to data_reference_p.
7735 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
7736 (new_poly_bb): Change the type of argument from void* to
7738 (pbb_set_black_box): Same.
7739 (struct scop): Rename context to param_context, ctx to isl_context.
7740 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
7741 Move declarations closer to assignment.
7742 (find_params_in_bb): Same.
7743 (find_scop_parameters): Same.
7744 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
7745 Global to be used for statement IDs.
7746 (isl_id_for_pbb): Use ssa_name_version_typesize.
7747 (simple_copy_phi_p): Move declarations closer to assignment.
7748 (build_pbb_scattering_polyhedrons): Same.
7749 (build_scop_scattering): Same.
7750 (isl_id_for_ssa_name): Same.
7751 (extract_affine_name): Same.
7752 (extract_affine_int): Same.
7753 (extract_affine): Same.
7754 (set_scop_parameter_dim): Use renamed member.
7755 (build_loop_iteration_domains): Same.
7756 (add_param_constraints): Same.
7757 (build_scop_iteration_domain): Same.
7758 (pdr_add_data_dimensions): Same.
7759 (build_poly_dr): Same.
7760 (build_scop_drs): Move declarations closer to assignment.
7761 (analyze_drs_in_stmts): Same.
7762 (insert_out_of_ssa_copy): Same.
7763 (insert_out_of_ssa_copy_on_edge): Same.
7764 (propagate_expr_outside_region): Same.
7765 (rewrite_phi_out_of_ssa): Same.
7766 (rewrite_degenerate_phi): Same.
7767 (rewrite_reductions_out_of_ssa): Same.
7768 (rewrite_cross_bb_scalar_dependence): Same.
7769 (handle_scalar_deps_crossing_scop_limits): Same.
7770 (rewrite_cross_bb_scalar_deps): Same.
7771 * graphite.c (graphite_transform_loops): Use renamed member.
7773 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
7776 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
7777 create_tmp_var_raw instead of create_tmp_var.
7779 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7782 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
7783 Use create_tmp_var_raw instead of create_tmp_var.
7785 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
7788 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
7789 split for upper-bank registers when target does not support
7791 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
7792 split when target does not support AVX512VL.
7794 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
7797 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
7798 Adjust to use create_tmp_var_raw instead of create_tmp_var.
7800 2015-10-06 Nick Clifton <nickc@redhat.com>
7802 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
7805 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
7807 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
7808 (case ${target}): Add znver1.
7809 * config/i386/cpuid.h(bit_CLZERO): Define.
7810 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
7811 -march=native recognize znver1 processors.
7812 * config/i386/i386-c.c (ix86_target_macros_internal): Add
7813 znver1, clzero def_and_undef.
7814 * config/i386/i386.c (struct processor_costs znver1_cost): New.
7815 (m_znver1): New definition.
7816 (m_AMD_MULTIPLE): Includes m_znver1.
7817 (processor_target_table): Add znver1 entry.
7818 (ix86_target_string) : Add clzero entry.
7819 (static const char *const cpu_names): Add znver1 entry.
7820 (ix86_option_override_internal): Add znver1 instruction sets.
7821 (PTA_CLZERO) : New definition.
7822 (ix86_option_override_internal): Handle new clzerooption.
7823 (ix86_issue_rate): Add znver1.
7824 (ix86_adjust_cost): Add znver1.
7825 (ia32_multipass_dfa_lookahead): Add znver1.
7826 (has_dispatch): Add znver1.
7827 * config/i386/i386.h (TARGET_znver1): New definition.
7828 (TARGET_CLZERO): Define.
7829 (TARGET_CLZERO_P): Define.
7830 (struct ix86_size_cost): Add TARGET_ZNVER1.
7831 (enum processor_type): Add PROCESSOR_znver1.
7832 * config/i386/i386.md (define_attr "cpu"): Add znver1.
7833 (set_attr znver1_decode): New definitions for znver1.
7834 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
7836 * config/i386/mmx.md (set_attr znver1_decode): New definitions
7838 * config/i386/sse.md (set_attr znver1_decode): Likewise.
7839 * config/i386/x86-tune.def: Add znver1 tunings.
7840 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
7841 * doc/invoke.texi: Add details about znver1
7843 2015-10-06 Richard Biener <rguenther@suse.de>
7845 PR tree-optimization/67859
7846 * tree-ssa-pre.c (create_expression_by_pieces): Properly
7847 discard not inserted stmts.
7849 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
7851 * doc/extend.texi (Template Instantiation): Reorder options and
7852 de-emphasize -frepo.
7853 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
7854 example instead of -frepo.
7856 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
7859 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
7860 use create_tmp_var_raw rather than create_tmp_var.
7862 2015-10-06 Richard Biener <rguenther@suse.de>
7864 * tree-vectorizer.h (vec_info): New base class for...
7865 (_loop_vec_info): ... this and ...
7866 (_bb_vec_info): ... this.
7867 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
7868 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
7869 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
7870 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
7871 vect_destroy_datarefs): Adjust interface to take a vec_info *
7872 rather than both a loop_vec_info and a bb_vec_info argument.
7873 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
7874 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
7875 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
7876 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
7878 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
7879 (destroy_loop_vec_info, vect_analyze_loop_2,
7880 vect_is_simple_reduction_1, get_initial_def_for_induction,
7881 vect_create_epilog_for_reduction, vectorizable_reduction,
7882 vectorizable_live_operation, vect_transform_loop): Adjust.
7883 * tree-vect-patterns.c (type_conversion_p,
7884 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
7885 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
7886 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
7887 check_bool_pattern, vect_recog_bool_pattern,
7888 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
7889 * tree-vect-slp.c (vect_get_and_check_slp_defs,
7890 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
7891 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
7892 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
7893 (new_bb_vec_info): Initialize base classs.
7894 * tree-vect-stmts.c (record_stmt_cost, process_use,
7895 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
7896 vectorizable_mask_load_store, vectorizable_call,
7897 vectorizable_simd_clone_call, vectorizable_conversion,
7898 vectorizable_assignment, vectorizable_shift,
7899 vectorizable_operation, vectorizable_store,
7900 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
7901 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
7902 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
7904 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
7907 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
7908 create_tmp_var_raw rather than create_tmp_var.
7910 2015-10-05 Marek Polacek <polacek@redhat.com>
7912 * tree-ssa-loop-im.c
7913 (move_computations_dom_walker::before_dom_children): Don't set
7914 SSA_NAME_ANTI_RANGE_P.
7915 * tree-ssa-phiopt.c (value_replacement): Likewise.
7917 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7918 Sebastian Pop <s.pop@samsung.com>
7920 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
7922 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7923 Sebastian Pop <s.pop@samsung.com>
7925 * graphite-poly.c (new_gimple_poly_bb): ... here.
7926 (free_data_refs_aux): ... here.
7927 (free_gimple_poly_bb): ... here.
7928 (remove_gbbs_in_scop): ... here.
7929 (new_scop): Call new_sese.
7930 (free_scop): Call remove_gbbs_in_scop and free_sese.
7931 * graphite-poly.h (base_alias_pair): ... here.
7932 (new_gimple_poly_bb): Declare.
7933 (free_gimple_poly_bb): Declare.
7934 * graphite-scop-detection.c (parameter_index_in_region_1):
7935 (parameter_index_in_region): ... here.
7936 (scan_tree_for_params): ... here.
7937 (find_params_in_bb): ... here.
7938 (find_scop_parameters): ... here.
7939 (build_scops): Call find_scop_parameters.
7940 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
7941 (free_scops): Move...
7942 (single_pred_cond_non_loop_exit): Move...
7943 (sese_dom_walker::before_dom_children): Move...
7944 (sese_dom_walker::after_dom_children): Move...
7945 (build_poly_scop): Move...
7946 * graphite-sese-to-poly.h (base_alias_pair): Move...
7947 * graphite.c (free_scops): ... here.
7949 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
7950 Sebastian Pop <s.pop@samsung.com>
7952 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
7953 (trivially_empty_bb_p): Move...
7954 (same_close_phi_node): Move...
7955 (new_gimple_poly_bb): Move...
7956 (compare_bb_depths): Move...
7957 (graphite_sort_dominated_info): Move...
7958 (remove_duplicate_close_phi): Move...
7959 (make_close_phi_nodes_unique): Move...
7960 (canonicalize_loop_closed_ssa): Move...
7961 (canonicalize_loop_closed_ssa_form): Move...
7962 (loop_ivs_can_be_represented): Move...
7963 (single_pred_cond_non_loop_exit): Move...
7964 (graphite_can_represent_init): Move...
7965 (graphite_can_represent_scev): Move...
7966 (stmt_has_simple_data_refs_p): Move...
7967 (stmt_has_side_effects): Move...
7968 (graphite_can_represent_stmt): Move...
7969 (scop_detection): ... here.
7970 (sese_dom_walker): ... and here.
7971 (build_scops): Call all moved functions.
7972 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
7973 (all_non_dominated_preds_marked_p): Move...
7974 (build_scop_bbs_1): Move...
7975 (build_scop_bbs): Move...
7976 (set_scop_parameter_dim): Move...
7977 (nb_pbbs_in_loops): Move...
7978 (build_poly_scop): Do not call all the moved functions.
7980 2015-10-05 Martin Jambor <mjambor@suse.cz>
7981 Jan Hubicka <hubicka@ucw.cz>
7983 * ipa-cp.c (ipcp_alignment_lattice): New type.
7984 (ipcp_param_lattices): Use the above to represent alignment.
7985 (ipcp_alignment_lattice::print): New function.
7986 (print_all_lattices): Use it to print alignment information.
7987 (ipcp_alignment_lattice::top_p): New function.
7988 (ipcp_alignment_lattice::bottom_p): Likewise.
7989 (ipcp_alignment_lattice::set_to_bottom): Likewise.
7990 (ipcp_alignment_lattice::meet_with_1): Likewise.
7991 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
7992 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
7993 (initialize_node_lattices): Likewise.
7994 (propagate_alignment_accross_jump_function): Work with the new class
7995 for alignment lattices.
7996 (propagate_constants_accross_call): Pass only the alignment lattice to
7997 propagate_alignment_accross_jump_function.
7998 (ipcp_store_alignment_results): Work with the new class for alignment
8001 2015-10-05 Marek Polacek <polacek@redhat.com>
8003 PR tree-optimization/67821
8004 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
8006 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
8009 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
8011 (mkoffload_cleanup): ... this. Adjust all users.
8012 (maybe_unlink): Look at save_temps and verbose flags instead of
8014 (main): Parse "-save-temps" flag.
8015 (generate_target_descr_file, generate_target_offloadend_file)
8016 (generate_host_descr_file, prepare_target_image): Pass it on.
8017 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
8018 (mkoffload_cleanup): New function.
8019 (maybe_unlink): Look at save_temps and verbose flags instead of
8021 (main): Instead of calling utils_cleanup, register atexit handler
8022 for mkoffload_cleanup.
8023 (main): Parse "-save-temps" flag.
8024 (compile_native, main): Pass it on.
8025 * lto-wrapper.c (compile_offload_image): Likewise.
8027 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8029 * gimple.h (gimple_op_ptr): Require a non const gimple *.
8030 (gimple_assign_lhs_ptr): Likewise.
8031 (gimple_assign_rhs1_ptr): Likewise.
8032 (gimple_assign_rhs2_ptr): Likewise.
8033 (gimple_assign_rhs3_ptr): Likewise.
8034 (gimple_call_lhs_ptr): Likewise.
8035 (gimple_call_fn_ptr): Likewise.
8036 (gimple_call_chain_ptr): Likewise.
8037 (gimple_call_arg_ptr): Likewise.
8038 (gimple_cond_lhs_ptr): Likewise.
8039 (gimple_cond_rhs_ptr): Likewise.
8040 (gimple_switch_index_ptr): Likewise.
8041 (gimple_return_retval_ptr): Likewise.
8043 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8045 * gimple.h (gimple_asm_input_op_ptr): Remove.
8046 (gimple_asm_output_op_ptr): Likewise.
8048 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8050 * gimple.h (gimple_location_ptr): Remove.
8051 * tree-vrp.c (check_all_array_refs): Adjust.
8053 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8055 * tree-ssa-operands.c (build_uses): store tree * instead of
8057 (finalize_ssa_uses): Adjust.
8058 (append_use): Likewise.
8059 (verify_ssa_operands): Likewise.
8061 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8063 * real.h (build_real_truncate): Declare.
8064 * tree.c (build_real_truncate): New function.
8065 (strip_float_extensions): Use it.
8066 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
8067 (fold_builtin_hypot, fold_builtin_pow): Likewise.
8068 * match.pd: Likewise.
8070 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
8071 Jiong Wang <jiong.wang@arm.com>
8073 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
8075 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8077 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
8078 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
8079 (aarch64_print_operand, aarch64_float_const_representable_p)
8080 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
8081 instead of REAL_VALUE_FROM_CONST_DOUBLE.
8082 * config/arc/arc.c (arc_print_operand): Likewise.
8083 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
8084 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
8085 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
8087 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
8088 (consttable_16): Likewise.
8089 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
8090 * config/avr/avr.c (avr_print_operand): Likewise.
8091 * config/bfin/bfin.md: Likewise (in a define_split).
8092 * config/c6x/c6x.md: Likewise (in a define_split).
8093 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
8094 (cr16_print_operand): Likewise.
8095 * config/cris/cris.c (cris_print_operand): Likewise.
8096 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
8097 * config/fr30/fr30.c (fr30_print_operand): Likewise.
8098 (fr30_const_double_is_zero): Likewise.
8099 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
8100 * config/frv/frv.md: Likewise (in a define_split).
8101 * config/frv/predicates.md (int_2word_operand): Likewise.
8102 * config/h8300/h8300.c (h8300_print_operand): Likewise.
8103 * config/i386/i386.c (standard_80387_constant_p): Likewise.
8104 (ix86_print_operand, ix86_split_to_parts): Likewise.
8105 * config/i386/i386.md: Likewise (in a define_split).
8106 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
8107 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
8108 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
8109 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
8110 (print_operand): Likewise.
8111 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
8112 * config/mep/mep.md: Likewise (in define_split).
8113 * config/microblaze/microblaze.c (microblaze_const_double_ok)
8114 (print_operand): Likewise.
8115 * config/mips/mips.md (consttable_float): Likewise.
8116 * config/mmix/mmix.c (mmix_intval): Likewise.
8117 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
8118 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
8119 * config/pa/pa.c (pa_singlemove_string): Likewise.
8120 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
8121 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
8122 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
8123 (output_toc): Likewise.
8124 * config/rs6000/rs6000.md: Likewise (in define_splits).
8125 * config/rx/rx.c (rx_print_operand): Likewise.
8126 * config/s390/s390.c (s390_output_pool_entry): Likewise.
8127 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
8128 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
8129 (and also in define_splits).
8130 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
8131 (fp_high_losum_p): Likewise.
8132 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
8133 (*movsf_high): Likewise.
8134 * config/spu/spu.c (const_double_to_hwint): Likewise.
8135 * config/v850/v850.c (const_double_split): Likewise.
8136 * config/vax/vax.c (vax_float_literal): Likewise.
8137 * config/visium/visium.c (visium_expand_copysign): Likewise.
8138 * config/visium/visium.md: Likewise (in define_split).
8139 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
8140 * config/xtensa/xtensa.c (print_operand): Likewise.
8141 (xtensa_output_literal): Likewise.
8142 * cprop.c (implicit_set_cond_p): Likewise.
8143 * dwarf2out.c (insert_float): Likewise.
8144 * expmed.c (expand_mult, make_tree): Likewise.
8145 * expr.c (compress_float_constant): Likewise.
8146 * rtlanal.c (split_double): Likewise.
8147 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
8148 (simplify_const_unary_operation, simplify_binary_operation_1)
8149 (simplify_const_binary_operation): Likewise.
8150 (simplify_const_relational_operation): Likewise.
8151 * varasm.c (output_constant_pool_2): Likewise.
8153 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8155 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
8156 instead of CONST_DOUBLE_FROM_REAL_VALUE.
8157 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
8158 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
8159 instead of CONST_DOUBLE_FROM_REAL_VALUE.
8160 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
8161 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
8162 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
8163 (ix86_emit_swsqrtsf): Likewise.
8164 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
8165 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
8166 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
8167 * config/pa/pa.c (pa_expand_builtin): Likewise.
8168 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
8169 (rs6000_scale_v2df): Likewise.
8170 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
8171 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
8172 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
8173 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
8174 (vec_ctul): Likewise.
8175 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
8176 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
8177 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
8178 * cse.c (fold_rtx): Likewise.
8179 * emit-rtl.c (immed_double_const): Likewise (in comments).
8180 (init_emit_once): Likewise.
8181 * expr.c (compress_float_constant, expand_expr_real_1)
8182 (const_vector_from_tree): Likewise.
8183 * optabs.c (expand_float, expand_fix): Likewise.
8184 * reg-stack.c (reg_to_stack): Likewise.
8185 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
8186 (simplify_const_unary_operation, simplify_binary_operation_1)
8187 (simplify_const_binary_operation, simplify_relational_operation)
8188 (simplify_immed_subreg): Likewise.
8190 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8192 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
8193 * doc/tm.texi: Regenerate.
8194 * real.h (REAL_ARITHMETIC): Delete.
8195 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
8196 (ix86_expand_round_sse4): Use real_arithmetic instead of
8198 * config/i386/sse.md (round<mode>2): Likewise.
8199 * rtl.h (rtx_to_tree_code): Likewise (in comment).
8200 * explow.c (rtx_to_tree_code): Likewise (in comment).
8201 * match.pd: Likewise.
8202 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8203 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
8204 (expand_pow_as_sqrts): Likewise.
8205 * tree-pretty-print.c (dump_generic_node): Remove code that
8206 was conditional on REAL_ARITHMETIC being undefined.
8208 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8210 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
8211 * doc/tm.texi: Regenerate.
8212 * real.h (real_less): Declare.
8213 (REAL_VALUES_LESS): Delete.
8214 * real.c (real_less): New function.
8215 (real_compare): Use it.
8216 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
8217 of REAL_VALUES_LESS.
8218 * config/microblaze/microblaze.c (microblaze_const_double_ok):
8220 * fold-const.c (fold_convert_const_int_from_real): Likewise.
8221 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
8222 (simplify_const_relational_operation): Likewise.
8223 * tree-call-cdce.c (check_pow): Likewise.
8224 (gen_conditions_for_pow_cst_base): Likewise.
8226 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8228 * real.h (REAL_VALUES_IDENTICAL): Delete.
8229 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
8230 instead of REAL_VALUES_IDENTICAL.
8231 * fold-const.c (operand_equal_p): Likewise.
8232 * ipa-icf.c (sem_variable::equals): Likewise.
8233 * tree-complex.c (some_nonzerop): Likewise.
8234 (expand_complex_multiplication): Likewise.
8235 * tree.c (simple_cst_equal): Likewise.
8236 * varasm.c (compare_constant): Likewise.
8238 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
8240 * real.h (real_equal): Declare.
8241 (REAL_VALUES_EQUAL): Delete.
8242 * real.c (real_equal): New function.
8243 (real_compare): Use it.
8244 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
8245 * doc/tm.texi: Regenerate.
8246 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
8247 real_equal instead of REAL_VALUES_EQUAL.
8248 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
8249 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
8250 (fp_const_from_val): Likewise.
8251 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
8252 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
8253 (floating_exact_log2): Likewise.
8254 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
8255 * config/vax/vax.c (vax_float_literal): Likewise.
8256 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
8257 * cprop.c (implicit_set_cond_p): Likewise.
8258 * expmed.c (expand_mult): Likewise.
8259 * fold-const.c (const_binop): Likewise.
8260 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
8261 (simplify_const_binary_operation): Likewise.
8262 (simplify_const_relational_operation): Likewise.
8263 * tree-call-cdce.c (check_pow): Likewise.
8264 (gen_conditions_for_pow_cst_base): Likewise.
8265 * tree-inline.c (estimate_num_insns): Likewise.
8266 * tree-ssa-dom.c (record_equality): Likewise.
8267 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
8268 (gimple_expand_builtin_pow): Likewise.
8269 (pass_optimize_widening_mul::execute): Likewise.
8270 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
8271 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
8272 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
8274 2015-10-05 Richard Biener <rguenther@suse.de>
8277 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
8278 consider loop header PHI defs as IVs.
8280 2015-10-05 Richard Biener <rguenther@suse.de>
8282 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
8284 (create_expression_by_pieces): ... here and build GIMPLE
8285 calls directly. Use gimple_build API and avoid force_gimple_operand.
8286 (insert_into_preds_of_block): Simplify.
8287 (do_regular_insertion): Add comment.
8289 2015-10-04 Jason Merrill <jason@redhat.com>
8291 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
8293 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
8295 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
8296 check for general register.
8297 (ix86_emit_save_regs): Ditto.
8298 (ix86_emit_save_regs_using_mov): Ditto.
8299 (ix86_emit_restore_regs_using_pop): Ditto.
8300 (ix86_emit_restore_regs_using_mov): Ditto.
8302 2015-10-03 Marek Polacek <polacek@redhat.com>
8304 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
8305 (insn-dfatab.o): Likewise.
8307 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
8309 * config.gcc (xtensa*-*-uclinux*): New configuration.
8310 * config/xtensa/uclinux.h: New file.
8311 * config/xtensa/uclinux.opt: New file.
8313 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
8315 * doc/cpp.texi (Standard Predefined Macros): Document value of
8316 __cplusplus for C++14.
8318 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
8320 * gcc.c (process_command): Use spec_machine rather than
8321 spec_host_machine to build tooldir_prefix2.
8323 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
8324 Bernd Schmidt <bernds@codesourcery.com>
8326 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
8327 (Token, Stmt): Remove structs.
8328 (decls, vars, fns): Remove variables.
8329 (alloc_comment, append_stmt, is_keyword): Remove macros.
8330 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
8331 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
8332 (parse_init, parse_file): Remove functions.
8333 (read_file): Accept a pointer to a length and store into it.
8334 (process): Don't try to parse the input file, just write it out as
8335 a string, but looking for maps. Also write out the length.
8336 (main): Don't use "-S" to compile PTX code.
8338 2015-10-02 Jeff Law <law@redhat.com>
8340 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
8343 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
8346 * config/nvptx/mkoffload.c (main): Scan the argument vector for
8347 -fopenmp, and skip generating an offloading image if specified.
8349 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
8351 * system.h (ROUND_UP): New macro definition.
8352 (ROUND_DOWN): Ditto.
8353 * ggc-page.c (ROUND_UP): Remove local macro definition.
8354 (PAGE_ALIGN): Implement using ROUND_UP macro.
8356 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
8357 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
8359 (ix86_compute_frame_layout): Ditto.
8360 (ix86_expand_prologue): Ditto.
8361 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
8362 to round down values.
8363 (expand_set_or_movmem_via_rep): Ditto.
8365 2015-10-02 Marek Polacek <polacek@redhat.com>
8367 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
8369 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
8371 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
8372 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
8373 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
8374 (free_gimple_bb): Renamed free_gimple_poly_bb.
8375 (try_generate_gimple_bb): Hoist loop invariant code.
8376 (analyze_drs_in_stmts): Same.
8377 (build_scop_drs): Call renamed functions.
8378 (new_pbb_from_pbb): Same.
8379 (scop_ivs_can_be_represented): Delete as functionality now moved to
8380 graphite-scop-detection.c
8381 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
8383 2015-10-02 Aditya Kumar <hiraditya@msn.com>
8385 * graphite-scop-detection.c (stmt_has_side_effects): New function
8386 outlined from stmt_simple_for_scop_p.
8387 (graphite_can_represent_stmt): Same.
8388 (stmt_simple_for_scop_p): Moved code out of this function for better
8391 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8393 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
8395 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
8397 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8399 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
8401 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
8403 PR rtl-optimization/67756
8404 * lra-constraints.c (match_reload): Add a new parameter. Use it
8405 for creating a pseudo with the same value.
8406 (curr_insn_transform): Pass a new argument to match_reload.
8408 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8410 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
8411 (expand_vec_perm_even_odd_1): Handle V64QImode.
8412 (ix86_expand_vec_perm_const_1): Try expansion with
8413 expand_vec_perm_even_odd_trunc as well.
8414 * config/i386/sse.md (VI124_AVX512F): Rename to ...
8415 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
8417 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
8418 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
8420 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
8421 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
8422 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
8423 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
8424 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
8425 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
8427 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
8429 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
8430 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
8432 2015-10-02 Jason Merrill <jason@redhat.com>
8435 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
8436 (diagnose_tm_1_op): Also diagnose volatile accesses in
8437 transaction_safe function.
8439 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
8441 * system.h (malloc.h): Don't include obsolete header.
8443 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8445 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
8446 (TLS_SECTION_ASM_FLAG): Delete.
8448 2015-10-02 Marek Polacek <polacek@redhat.com>
8451 * doc/invoke.texi: Document -Wduplicated-cond.
8452 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
8453 (insn-dfatab.o): Likewise.
8454 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
8457 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
8459 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
8462 2015-10-02 Renlin Li <renlin.li@arm.com>
8464 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
8466 2015-10-02 Renlin Li <renlin.li@arm.com>
8469 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
8471 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8473 PR rtl-optimization/67786
8474 PR rtl-optimization/67787
8475 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
8476 it modifies a reg used in the condition calculation.
8478 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
8480 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
8481 alternatives for reads from memory and moves from general-purpose
8483 (*aarch64_combinez_be<mode>): Likewise.
8485 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
8488 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
8489 selectany within this function without need to keep attribute.
8490 (i386_pe_encode_section_info): Remove selectany-code.
8492 2015-10-02 Richard Biener <rguenther@suse.de>
8494 * tree-ssa-sccvn.c (has_VN_INFO): New function.
8495 (free_scc_vn): Use it.
8496 (visit_use): Remove dead code and refactor to use gassign
8497 and use less indentation.
8499 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8503 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
8504 (rs6000_cannot_copy_insn_p): New function.
8505 * config/rs6000/rs6000.md (cannot_copy): New attribute.
8506 (load_toc_v4_PIC_1_normal): Set cannot_copy.
8507 (load_toc_v4_PIC_1_476): Ditto.
8509 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
8511 * graphite-scop-detection.c (struct sese_l): New conversion constructor
8512 so that this type can be pushed into a vec.
8513 (class scop_builder): use sese_l to collect scops.
8514 (get_scops): New getter function.
8515 (remove_intersecting_scops): Use sese_l instead of scops_p.
8519 (remove_subscops): Same.
8520 (build_scops): Add scops to vec<scops_p> once all the scops have been
8523 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
8525 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
8526 Renamed type from gimple_bb_p to gimple_poly_bb_p.
8527 (translate_isl_ast_node_user): Same.
8528 * graphite-poly.c (new_poly_bb): Same.
8529 * graphite-poly.h (gbb_from_bb): Same.
8531 * graphite-sese-to-poly.c (new_gimple_bb):
8532 gimple_bb_p -> gimple_poly_bb_p
8533 (build_scop_scattering): Same.
8534 (find_params_in_bb): Same.
8535 (add_conditions_to_domain): Same.
8536 (sese_dom_walker::before_dom_children): Same.
8537 (analyze_drs_in_stmts): Same.
8538 (new_pbb_from_pbb): Same.
8539 (free_data_refs_aux): New pointer to type base_alias_pair.
8540 * graphite-sese-to-poly.h: Same.
8541 * sese.c (if_region_set_false_region): Fixed Indentation.
8542 (move_sese_in_condition): Same.
8544 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8545 Aditya Kumar <aditya.k7@samsung.com>
8547 PR tree-optimization/66980
8548 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
8549 when data reference analysis has failed.
8551 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8552 Aditya Kumar <aditya.k7@samsung.com>
8554 PR tree-optimization/67754
8555 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
8556 scev analysis on the same loop nest as analyze_drs_in_stmts.
8557 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
8559 (try_generate_gimple_bb): Call outermost_loop_in_sese.
8560 (analyze_drs_in_stmts): Same.
8561 * sese.c (outermost_loop_in_sese): ...here.
8563 2015-10-01 Sebastian Pop <s.pop@samsung.com>
8564 Aditya Kumar <aditya.k7@samsung.com>
8566 PR tree-optimization/67754
8567 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
8568 recursion on the inner loops.
8570 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8572 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
8573 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
8574 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
8575 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
8576 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
8578 2015-10-01 Marek Polacek <polacek@redhat.com>
8581 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
8582 create_tmp_var_raw rather than create_tmp_var.
8584 2015-10-01 Marek Polacek <polacek@redhat.com>
8586 PR tree-optimization/67769
8587 * tree-ssa-phiopt.c (conditional_replacement): Call
8588 reset_flow_sensitive_info_in_bb.
8589 (minmax_replacement): Likewise.
8590 (abs_replacement): Likewise.
8592 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
8594 * builtins.c: Don't include gomp-constants.h.
8595 (fold_builtin_1): Don't fold acc_on_device here.
8596 * gimple-fold.c: Include gomp-constants.h.
8597 (gimple_fold_builtin_acc_on_device): New.
8598 (gimple_fold_builtin): Call it.
8600 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
8602 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
8603 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
8605 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
8607 * config/arm/aarch-common-protos.h
8608 (aarch_accumulator_forwarding): New.
8609 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8610 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
8611 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
8612 * config/arm/cortex-a53.md: Rewrite.
8614 2015-10-01 Richard Biener <rguenther@suse.de>
8616 * gimple-match.h (mprts_hook): Declare.
8617 * gimple-match.head.c (mprts_hook): Define.
8618 (maybe_push_res_to_seq): Use new hook.
8619 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
8620 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
8621 (vn_ssa_aux::has_constants): Remove.
8622 * tree-ssa-sccvn.c: Include gimple-match.h.
8623 (VN_INFO_GET): Assert we don't re-use SSA names.
8624 (vn_get_expr_for): Remove.
8625 (expr_has_constants): Likewise.
8626 (stmt_has_constants): Likewise.
8627 (simplify_binary_expression): Likewise.
8628 (simplify_unary_expression): Likewise.
8629 (vn_lookup_simplify_result): New hook.
8630 (visit_copy): Adjust.
8631 (visit_reference_op_call): Likewise.
8632 (visit_phi): Likewise.
8633 (visit_use): Likewise.
8634 (process_scc): Likewise.
8635 (init_scc_vn): Likewise.
8636 (visit_reference_op_load): Likewise. Use match-and-simplify and
8637 a gimple seq for inserted expressions.
8638 (try_to_simplify): Remove GENERIC stmt combining code.
8639 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
8640 * tree-ssa-pre.c (eliminate_insert): Adjust.
8641 (eliminate_dom_walker::before_dom_children): Likewise.
8643 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8645 * doc/invoke.texi (Optimization Options): Add
8646 -freorder-blocks-algorithm=.
8647 (Optimize Options) <-O>: Add -freorder-blocks.
8648 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
8649 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
8650 <-freorder-blocks>: Also enabled at levels -O and -Os.
8651 <-freorder-blocks-algorithm=>: Document new option.
8653 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8655 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
8656 with flag_reorder_blocks_algorithm.
8657 * common.opt (freorder-blocks-algorithm=): New flag.
8658 (reorder_blocks_algorithm): New enum.
8659 * flag-types.h (reorder_blocks_algorithm): New enum.
8660 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
8661 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
8663 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8665 * bb-reorder.c: Add intro comment.
8666 (reorder_basic_blocks_software_trace_cache): Print a header to
8668 (edge_order): New function.
8669 (reorder_basic_blocks_simple): New function.
8670 (reorder_basic_blocks): Choose between the STC and the simple
8671 algorithms (always choose the former).
8673 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
8675 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
8676 function, factored out from ...
8677 (reorder_basic_blocks): ... here.
8679 2015-10-01 Tom de Vries <tom@codesourcery.com>
8681 * tree-cfg.c (dump_function_to_file): Dump function attributes using
8682 __attribute__(()) string. Move dumping of function attributes to before
8685 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
8688 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
8689 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
8690 based on gold linker version.
8691 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
8692 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
8693 * configure, config.in: Regenerate.
8695 2015-10-01 Alan Modra <amodra@gmail.com>
8697 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
8698 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
8699 (rs6000_output_mi_thunk): Likewise.
8701 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8703 * config/nvptx/mkoffload.c (process): Change offload data format.
8705 2015-09-30 Jeff Law <law@redhat.com>
8707 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
8708 with constant conditions.
8709 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
8710 (remove_ctrl_stmt_and_useless_edges): No longer static.
8711 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
8712 (remove_ctrl_stmt_and_useless_edges): Likewise.
8714 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
8715 Cesar Philippidis <cesar@codesourcery.com>
8717 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
8718 (TARGET_GOACC_VALIDATE_DIMS): Override.
8719 * target.def (TARGET_GOACC): New target hook prefix.
8720 (validate_dims): New hook.
8721 * targhooks.h (default_goacc_validate_dims): New.
8722 * omp-low.c (oacc_validate_dims): New.
8723 (execute_oacc_device_lower): New.
8724 (default_goacc_validate_dims): New.
8725 (pass_data_oacc_device_lower): New.
8726 (pass_oacc_device_lower): New pass.
8727 (make_pass_oacc_device_lower): New.
8728 * tree-pass.h (make_pass_oacc_device_lower): Declare.
8729 * passes.def (pass_oacc_device_lower): Add it.
8730 * doc/tm.texi: Rebuilt.
8731 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
8732 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
8734 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
8736 PR rtl-optimization/67037
8737 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
8739 2015-09-30 Bernd Schmidt <bernds@redhat.com>
8741 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
8742 * passes.c: Include tree-ssanames.h.
8743 (execute_function_todo): Flush the pending free SSA_NAMEs after
8744 eliminating unreachable basic blocks.
8745 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
8746 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
8747 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
8748 (flush_ssanames_freelist): New function.
8749 (release_ssaname_fn): Put released names on the queue.
8750 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
8751 * tree-ssanames.h (flush_ssanames_freelist): Declare.
8753 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8755 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
8756 (generate_target_descr_file, generate_target_offloadend_file)
8757 (generate_host_descr_file, prepare_target_image): Pass it on.
8758 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
8759 (compile_native, main): Pass it on.
8760 * lto-wrapper.c (compile_offload_image): Likewise.
8762 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8763 Ilya Verbin <ilya.verbin@intel.com>
8764 Andrey Turetskiy <andrey.turetskiy@intel.com>
8766 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
8767 (prepare_target_image, main): Refactor argv building to use
8770 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8772 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
8773 * config/spu/spu.c (spu_expand_atomic_op): New function.
8774 * config/spu/spu.md (AINT): New mode iterator.
8775 (ATOMIC): New code iterator.
8776 (atomic_name, atomic_pred): New code predicates.
8777 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
8778 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
8779 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
8780 "atomic_<atomic_name>_fetch<mode>"): Likewise.
8782 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
8784 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
8786 (scalar_chain::convert_reg): Likewise.
8788 2015-09-30 Richard Biener <rguenther@suse.de>
8790 * builtins.c: Add comment that no new simplifications should
8793 2015-09-30 Marek Polacek <polacek@redhat.com>
8795 PR tree-optimization/67690
8796 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
8797 reset_flow_sensitive_info_in_bb.
8798 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
8799 * tree-ssanames.c: Include "gimple-iterator.h".
8800 (reset_flow_sensitive_info_in_bb): New function.
8801 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
8803 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
8805 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
8806 variable, replacing it with...
8807 (offload_abi): ... this new variable. Adjust all users.
8808 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
8810 2015-09-30 Matthias Klose <doko@ubuntu.com>
8812 * configure.ac: Remove extraneous ;;.
8813 * configure: Regenerate.
8815 2015-09-29 James Bowman <james.bowman@ftdichip.com>
8817 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
8818 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
8819 predicate, disallow register for operand 2.
8821 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
8823 * graphite-dependences.c (scop_get_dependences): Moved in down
8824 in order to be visible to its caller.
8825 * graphite-poly.h: Removed compute_deps, and extend_schedule.
8827 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8828 Aditya Kumar <aditya.k7@samsung.com>
8830 PR tree-optimization/67754
8831 * graphite-optimize-isl.c (optimize_isl): Call
8832 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
8834 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
8836 * builtins.c (expand_builtin_acc_on_device): Delete.
8837 (expand_builtin): Don't call it.
8838 (fold_builtin_1): Fold acc_on_device.
8840 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
8842 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
8843 (ix86_nsaved_sseregs): Likewise.
8845 2015-09-29 Jeff Law <law@redhat.com>
8847 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
8848 computation of unused value.
8850 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
8851 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
8852 inline macro expansion.
8854 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
8856 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
8857 (gen_shl_sext): Likewise.
8858 * config/sh/sh.md (divsi3): Likewise.
8859 (imm->ext_dest_operand splitter): Likewise.
8861 2015-09-29 Sebastian Pop <s.pop@samsung.com>
8862 Aditya Kumar <aditya.k7@samsung.com>
8864 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
8865 (nb_data_writes_in_bb): Remove.
8866 (split_pbb): Remove.
8867 (split_reduction_stmt): Remove.
8868 (is_reduction_operation_p): Remove.
8869 (phi_contains_arg): Remove.
8870 (follow_ssa_with_commutative_ops): Remove.
8871 (detect_commutative_reduction_arg): Remove.
8872 (detect_commutative_reduction_assign): Remove.
8873 (follow_inital_value_to_phi): Remove.
8874 (edge_initial_value_for_loop_phi): Remove.
8875 (initial_value_for_loop_phi): Remove.
8876 (used_outside_reduction): Remove.
8877 (detect_commutative_reduction): Remove.
8878 (translate_scalar_reduction_to_array_for_stmt): Remove.
8879 (remove_phi): Remove.
8880 (dr_indices_valid_in_loop): Remove.
8881 (close_phi_written_to_memory): Remove.
8882 (translate_scalar_reduction_to_array): Remove.
8883 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
8884 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
8885 (rewrite_commutative_reductions_out_of_ssa): Remove.
8886 (build_poly_scop): Remove call to
8887 rewrite_commutative_reductions_out_of_ssa.
8889 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
8891 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
8892 Add new insn types for vector load and store pairs.
8893 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
8894 types "neon_ldp{,_q}".
8895 * config/arm/cortex-a57.md (neon_load_c): Add insn types
8897 (neon_store_complex): Add insn types "neon_stp{,_q}".
8898 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
8901 2015-09-29 Jeff Law <law@redhat.com>
8903 * config/rx/constraints.md (Int08): Fix undefined left shift
8905 (Sint08, Sint16, Sint24): Likewise.
8906 * config/rx/rx.c (rx_get_stack_layout): Likewise.
8908 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
8911 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
8912 left shift behaviour.
8913 * config/msp430/constraints.md ('L' constraint): Similarly.
8914 ('Ys' constraint): Similarly.
8916 2015-09-29 Richard Biener <rguenther@suse.de>
8918 PR tree-optimization/67170
8919 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
8920 the translate function pointer parameter to get the
8921 bool whether to disambiguate only by reference.
8922 (walk_non_aliased_vuses): Likewise.
8923 * tree-ssa-alias.c (maybe_skip_until): Adjust.
8924 (get_continuation_for_phi_1): Likewise.
8925 (get_continuation_for_phi): Likewise.
8926 (walk_non_aliased_vuses): Likewise.
8927 * tree-ssa-sccvn.c (const_parms): New bitmap.
8928 (vn_reference_lookup_3): Adjust for interface change.
8929 Disambiguate parameters pointing to readonly memory.
8930 (free_scc_vn): Free const_parms.
8931 (run_scc_vn): Initialize const_parms from a fn spec attribute.
8933 2015-09-29 Richard Biener <rguenther@suse.de>
8935 PR tree-optimization/67741
8936 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
8937 builtin calls with correct signature.
8939 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
8942 * config/i386/i386.c: Include dbgcnt.h.
8943 (has_non_address_hard_reg): New.
8944 (convertible_comparison_p): New.
8945 (scalar_to_vector_candidate_p): New.
8946 (remove_non_convertible_regs): New.
8947 (scalar_chain): New.
8948 (scalar_chain::scalar_chain): New.
8949 (scalar_chain::~scalar_chain): New.
8950 (scalar_chain::add_to_queue): New.
8951 (scalar_chain::mark_dual_mode_def): New.
8952 (scalar_chain::analyze_register_chain): New.
8953 (scalar_chain::add_insn): New.
8954 (scalar_chain::build): New.
8955 (scalar_chain::compute_convert_gain): New.
8956 (scalar_chain::replace_with_subreg): New.
8957 (scalar_chain::replace_with_subreg_in_insn): New.
8958 (scalar_chain::emit_conversion_insns): New.
8959 (scalar_chain::make_vector_copies): New.
8960 (scalar_chain::convert_reg): New.
8961 (scalar_chain::convert_op): New.
8962 (scalar_chain::convert_insn): New.
8963 (scalar_chain::convert): New.
8964 (convert_scalars_to_vector): New.
8965 (pass_data_stv): New.
8967 (make_pass_stv): New.
8968 (ix86_option_override): Created and register stv pass.
8969 (flag_opts): Add -mstv.
8970 (ix86_option_override_internal): Likewise.
8971 * config/i386/i386.md (SWIM1248x): New.
8972 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
8973 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
8974 (*anddi3_doubleword): New.
8975 (*zext<mode>_doubleword): New.
8976 (*zextsi_doubleword): New.
8977 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
8978 (*<code>di3_doubleword): New.
8979 * config/i386/i386.opt (mstv): New.
8980 * dbgcnt.def (stv_conversion): New.
8982 2015-09-29 Tom de Vries <tom@codesourcery.com>
8984 * tree-cfg.c (dump_function_to_file): Dump function attributes.
8986 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
8989 * config/sh/sh.c (sh_override_options_after_change): New.
8990 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
8991 (sh_option_override): Move align_loops, align_jumps and
8992 align_functions handling into sh_override_options_after_change.
8994 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
8996 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
8997 (nvptx_record_offload_symbol): Record function execution geometry.
8998 * config/nvptx/mkoffload.c (process): Include launch geometry in
9000 * omp-low.c (oacc_launch_pack): New.
9001 (replace_oacc_fn_attrib): New.
9002 (set_oacc_fn_attrib): New.
9003 (get_oacc_fn_attrib): New.
9004 (expand_omp_target): Create keyed varargs for GOACC_parallel call
9006 * omp-low.h (get_oacc_fn_attrib): Declare.
9007 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
9008 (DEF_FUNCTION_TYPE_VAR_11): Delete.
9009 * tree.h (OMP_CLAUSE_EXPR): New.
9010 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
9012 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
9013 Sebastian Pop <s.pop@samsung.com>
9015 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
9017 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
9018 Sebastian Pop <s.pop@samsung.com>
9020 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
9021 * graphite-scop-detection.c (struct sese_l): New type.
9022 (get_entry_bb): API for getting entry bb of SESE.
9023 (get_exit_bb): API for getting exit bb of SESE.
9024 (class debug_printer): New type. Simple printer in debug mode.
9025 (trivially_empty_bb_p): New. Return true when BB is empty or
9026 contains only debug instructions.
9027 (graphite_can_represent_expr): Call scalar_evoution_in_region
9028 instead of analyze_scalar_evolution. Pass in scop instead of only
9030 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
9032 (stmt_simple_for_scop_p): Same.
9033 (harmful_stmt_in_bb): Same.
9034 (graphite_can_represent_loop): Deleted.
9035 (struct scopdet_info): Deleted.
9036 (scopdet_basic_block_info): Deleted.
9037 (build_scops_1): Deleted.
9038 (bb_in_sd_region): Deleted.
9039 (find_single_entry_edge): Deleted.
9040 (find_single_exit_edge): Deleted.
9041 (create_single_entry_edge): Deleted.
9042 (sd_region_without_exit): Deleted.
9043 (create_single_exit_edge): Deleted.
9044 (unmark_exit_edges): Deleted.
9045 (mark_exit_edges): Deleted.
9046 (create_sese_edges): Deleted.
9047 (build_graphite_scops): Deleted.
9048 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
9049 (build_scops): Use the new scop_builder to build scops.
9050 (dot_all_scops_1): Use the new pretty printer. Print loop father
9052 (loop_body_is_valid_scop): New. Return true if loop body is a
9054 (class scop_builder): New. Builds SCoPs for polyhedral
9056 (scop_builder): New constructor.
9057 (static sese_l invalid_sese): sese_l with invalid edges.
9058 (get_sese): Get an sese (from a loop) if possible, invalid_sese
9060 (get_nearest_dom_with_single_entry): Get nearest dominator of a
9061 basic_block with single entry. Return NULL if we get to the
9062 beginning of a function.
9063 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
9064 a basic_block with single exit. Return NULL if we get to the
9065 beginning of a function.
9066 (print_sese): Pretty-print SESE.
9067 (merge_sese): Merge two SESEs if possible and return the new SESE.
9068 (build_scop_depth): Start building the SCoP within a loop nest.
9069 (build_scop_breadth): Start building the SCoP at a single loop
9070 depth. Merge adjacent SESEs if valid.
9071 (can_represent_loop_1): Returns true if Graphite can represent
9072 loop inside SCoP. Helper for can_represent_loop.
9073 (can_represent_loop): Returns true if Graphite can represent LOOP
9074 and all its nested loops in SCoP.
9075 (loop_is_valid_scop): Returns true if LOOP and all its nests
9076 constitute a valid SCoP.
9077 (region_has_one_loop): Returns true of a region has only one loop.
9078 (add_scop): Add SCoP to the list of valid scops. Removes an
9079 already existing scop if it intersects with or subsumed by this one.
9080 (harmful_stmt_in_region): Returns true if SCoP has any statment
9081 which cannot be represented by Graphite.
9082 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
9083 (remove_subscops): Remove any SCoP from the list of already found
9084 SCoPs, if subsumed by S1.
9085 (intersects): Return true if region bounded by SCoPs S1 and S2
9087 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
9088 * graphite.c (print_graphite_scop_statistics):
9089 (print_graphite_statistics): Print SCoP info while debugging.
9090 (graphite_initialize): Early exit in case number of loops in a
9091 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
9092 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
9093 (graphite_finalize):
9094 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
9095 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
9096 (recompute_all_dominators): Recalculate POST_DOMINATORS.
9097 * tree-cfg.c (print_loops): Print the function name while printing
9100 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
9101 Sebastian Pop <s.pop@samsung.com>
9103 PR tree-optimization/67700
9104 * graphite-sese-to-poly.c (parameter_index_in_region): Call
9105 invariant_in_sese_p_rec.
9106 (extract_affine): Same.
9107 (rewrite_cross_bb_scalar_deps): Call update_ssa.
9108 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
9109 * sese.h (invariant_in_sese_p_rec): Declare.
9111 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
9113 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
9115 2015-09-28 Jiong Wang <jiong.wang@arm.com>
9118 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9119 Jiong Wang <jiong.wang@arm.com>
9121 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
9122 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
9123 (REG_CLASS_NAMES): Likewise.
9124 (REG_CLASS_CONTENTS): Likewise.
9125 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
9126 (aarch64_register_move_cost): Likewise.
9127 (aarch64_load_symref_appropriately): Invoke the new added pattern if
9129 * config/aarch64/constraints.md (Uc0): New constraint.
9131 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
9133 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
9135 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
9137 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
9138 SECTION_EXCLUDE in XO mapping class.
9140 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
9143 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
9144 and handle ne and eq codes.
9145 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
9146 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
9147 CONST_INT_P. Use reverse_condition.
9148 (sh_split_treg_set_expr): Likewise.
9150 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
9152 * config/arm/types.md (type): Add rotate_imm.
9153 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
9155 (*rorsi3_insn_uxtw): Likewise.
9156 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
9157 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
9158 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
9160 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9162 PR rtl-optimization/67481
9163 * ifcvt.c (contains_ccmode_rtx_p): New function.
9164 (insn_valid_noce_process_p): Use it.
9166 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9168 PR rtl-optimization/67456
9169 PR rtl-optimization/67464
9170 PR rtl-optimization/67465
9171 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
9172 move in the mode of x. Handle combination of complex and simple
9173 block pairs as well as the case when one is empty.
9175 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9177 * doc/gimple.texi: Update references to gimple_statement_base.
9178 * gdbhooks.py: Likewise.
9179 * gimple.h: Likewise.
9181 2015-09-28 Daniel Cederman <cederman@gaisler.com>
9183 * config/sparc/driver-sparc.c: map LEON to leon3
9185 2015-09-28 Daniel Cederman <cederman@gaisler.com>
9187 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
9188 and make it inverse to change default
9189 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
9191 * doc/invoke.texi: Document change of default
9193 2015-09-28 Daniel Cederman <cederman@gaisler.com>
9195 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
9196 true on %f0 for a target without FPU.
9197 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
9199 (untyped_return): Do not load %f0 for a target without FPU.
9201 2015-09-28 Andrew Pinski <apinski@cavium.com>
9203 * config/aarch64/aarch64.md (prefetch):
9204 Change the predicate of operand 0 to register_operand.
9206 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
9208 * config/i386/predicates.md (register_sse4nonimm_operand): New
9210 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
9211 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
9212 Use register_sse4nonimm_operand as operand 0 predicate.
9213 (*vec_extractv8hi_sse2): Remove insn pattern.
9214 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
9215 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
9217 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
9218 Kaz Kojima <kkojima@gcc.gnu.org>
9221 * config/sh/sh-protos.h (sh_lra_p): Declare.
9222 * config/sh/sh.c (sh_lra_p): Make non-static.
9223 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
9224 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
9225 Expand into addsi3_scr if operands[2] if needed.
9226 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
9227 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
9228 (addsi3_scr, *addsi3): New insn_and_split patterns.
9230 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
9232 PR rtl-optimization/64164
9233 PR tree-optimization/67312
9237 * cfgexpand.c (parm_in_stack_slot_p): Remove.
9238 (ssa_default_def_partition): Remove.
9239 (get_rtl_for_parm_ssa_default_def): Remove.
9240 (set_rtl): Check that RTL assignments match expectations.
9241 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
9242 default def location for params and results. Record SSA names
9243 or types in REG and MEM attrs, respectively.
9244 (set_parm_rtl): New.
9245 (expand_one_ssa_partition): Drop logic that assigned MEMs with
9246 unassigned addresses.
9247 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
9248 deferred stack alloc vars.
9249 (expand_used_vars): Skip partitions holding parm default defs.
9250 Move adjust_one_expanded_partition_var loop...
9251 (pass_expand::execute): ... here. Drop redundant assert.
9252 Adjust comments before the final loop over all ssa names.
9253 Require assigned rtl of parms and results to match exactly.
9254 Reset its attributes to match them, not any other variables in
9256 (expand_debug_expr): Use entry value for PARM's default defs
9257 only iff they have zero nondebug uses.
9258 * cfgexpand.h (parm_in_stack_slot_p): Remove.
9259 (get_rtl_for_parm_ssa_default_def): Remove.
9260 (set_parm_rtl): Declare.
9261 * doc/invoke.texi: Improve wording.
9262 * explow.c (promote_decl_mode): Fix promote_function_mode for
9263 result decls not by reference.
9264 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
9265 bypass TYPE_MODE to get the actual vector mode.
9266 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
9267 2015-08-19's changes as follows. Drop include of
9268 basic-block.h and df.h.
9269 (rtl_for_parm): Remove.
9270 (maybe_reset_rtl_for_parm): Remove.
9271 (parm_in_unassigned_mem_p): Remove.
9272 (use_register_for_decl): Add logic for RESULT_DECLs matching
9273 assign_parms' behavior.
9274 (split_complex_args): Revert.
9275 (assign_parms_augmented_arg_list): Revert. Add comment
9276 referencing the logic above.
9277 (assign_parm_adjust_stack_rtl): Revert.
9278 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
9279 of SET_DECL_RTL. Set up a REG if the parm demands so.
9280 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
9281 calls into a single set_parm_rtl. Set up a temporary RTL
9282 temporarily for expand_assignment.
9283 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
9284 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
9285 (assign_bounds): Revert.
9286 (assign_parms): Revert. Use set_parm_rtl.
9287 (allocate_struct_function): Relayout result and parms of
9288 non-abstruct functions.
9289 (expand_function_start): Revert. Use set_parm_rtl. If the
9290 result is not a hard reg, create a pseudo from the promoted
9291 mode of the default def. Promote static chain mode.
9292 * tree-outof-ssa.c (remove_ssa_form): Drop unused
9293 partition_has_default_def. Set up
9294 partitions_for_parm_default_defs.
9295 (finish_out_of_ssa): Remove partition_has_default_def.
9296 Release partitions_for_parm_default_defs.
9297 * tree-outof-ssa.h (struct ssaexpand): Remove
9298 partition_has_default_def. Add
9299 partitions_for_parm_default_defs.
9300 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
9302 (build_ssa_conflict_graph): Fix conflict-detection of default
9303 defs of even unused default defs of params and results.
9304 (for_all_parms): New.
9305 (create_default_def): New.
9306 (register_default_def): New.
9307 (coalesce_with_default): New.
9308 (create_outofssa_var_map): Create default defs for all parms
9309 and results, and register their partitions. Add GIMPLE_RETURN
9310 operands as coalesce candidates with results. Add default
9311 defs of each parm or result as coalesce candidates with its
9312 other defs. Mark each result def, and each default def of
9313 parms, as used_in_copy.
9314 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
9315 with the ssa names, even anonymous ones. Drop
9316 parm_in_stack_slot_p calls. Require same signedness and
9318 (coalesce_ssa_name): Add coalesce candidates for all defs of
9319 each parm and result, even unused ones.
9320 (parm_default_def_partition_arg): New type.
9321 (set_parm_default_def_partition): New.
9322 (get_parm_default_def_partitions): New.
9323 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
9324 * tree-ssa-live.c (partition_view_init): Regard unused defs of
9325 parms and results as used.
9326 (verify_live_on_entry): Don't error out just because they're
9329 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
9331 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9332 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
9333 (output_fde): Don't output length for debug_frame on AIX.
9334 (output_call_frame_info): Don't output length for debug_frame on AIX.
9335 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
9336 HAVE_XCOFF_DWARF_EXTRAS.
9337 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
9338 HAVE_XCOFF_DWARF_EXTRAS.
9339 (output_compilation_unit_header): Don't output length on AIX.
9340 (output_pubnames): Don't output length on AIX.
9341 (output_aranges): Delete argument. Compute length locally. Don't
9342 output length on AIX.
9343 (output_line_info): Don't output length on AIX.
9344 (dwarf2out_finish): Don't compute aranges_length.
9345 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
9346 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
9347 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
9348 symbol decoration for AIX.
9349 (rs6000_xcoff_debug_unwind_info): New.
9350 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
9352 (rs6000_xcoff_declare_function_name): Emit different
9353 .function pseudo-op when DWARF2_DEBUG. Don't call
9354 xcoffout_declare_function for DWARF2_DEBUG.
9355 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
9357 * config/rs6000/aix71.h: New.
9358 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
9360 * configure: Regenerate.
9361 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
9364 2015-09-26 Jeff Law <law@redhat.com>
9366 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
9368 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
9371 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
9374 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
9375 undefined behaviour.
9377 * config/cris/cris.md (asrandb): Fix left shift undefined
9379 (asrandw): Likewise.
9381 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
9384 * lra-constarints.c (match_reload): Check presence of the input pseudo
9385 in the output operand.
9387 2015-09-25 Tobias Burnus <burnus@net-b.de>
9389 * doc/invoke.texi (-fsanitize): Minor wording tweak.
9391 2015-09-25 Tobias Burnus <burnus@net-b.de>
9393 * doc/invoke.texi (-fsanitize): Update URLs.
9395 2015-09-25 Teresa Johnson <tejohnson@google.com>
9397 * opts.c (finish_options): Unset -freorder-blocks-and-partition
9398 if not using profile.
9400 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
9402 PR pretty-print/67567
9403 * pretty-print.c (pp_string): Add gcc_checking_assert.
9404 * pretty-print.h (output_buffer_append_r): Likewise.
9406 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
9409 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
9410 addr2 individually. Don't emit logical or insn if one is known to
9411 be aligned approriately.
9412 (sh_expand_cmpnstr): Likewise.
9414 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
9416 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
9417 __builtin_aarch64_fp[sc]r arguments into a register.
9419 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
9421 * config.gcc (x86_archs): Replace lakemount with lakemont.
9422 (with_cpu): Likewise.
9423 (with_arch): Likewise.
9424 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9425 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
9426 __tune_lakemount__ with __tune_lakemont__.
9427 * config/i386/i386.c (lakemount_cost): Renamed to ...
9428 (lakemont_cost): This.
9429 (m_LAKEMOUNT): Renamed to ...
9431 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
9432 (processor_target_table): Replace "lakemount" with "lakemont".
9433 (processor_alias_table): Likewise.
9434 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
9436 (ix86_adjust_cost): Likewise.
9437 (ia32_multipass_dfa_lookahead): Likewise.
9438 * config/i386/i386.h (processor_type): Likewise.
9439 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
9440 * doc/invoke.texi: Replace lakemount with lakemont. Replace
9441 Lakemount with Lakemont.
9443 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
9445 * config.gcc (x86_archs): Replace iamcu with lakemount.
9446 (with_cpu): Likewise.
9447 (with_arch): Likewise.
9448 * doc/invoke.texi: Likewise.
9449 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
9450 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
9451 __tune_iamcu__ with __tune_lakemount__.
9452 * config/i386/i386.c (iamcu_cost): Renamed to ...
9453 (lakemount_cost): This.
9454 (m_IAMCU): Renamed to ...
9455 (m_LAKEMOUNT): This.
9456 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
9457 (processor_target_table): Replace "iamcu" with "lakemount".
9458 (processor_alias_table): Likewise.
9459 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
9460 PROCESSOR_LAKEMOUNT.
9461 (ix86_adjust_cost): Likewise.
9462 (ia32_multipass_dfa_lookahead): Likewise.
9463 * config/i386/i386.h (processor_type): Likewise.
9464 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
9466 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
9468 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
9469 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
9471 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
9472 (pa_expand_compare_and_swap_loop): New.
9473 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
9474 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
9475 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
9476 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
9477 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
9480 2015-09-24 Michael Collison <michael.collison@linaro.org>
9483 * read-md.c (read_name): Allow mode iterators inside angle
9484 brackets in rtl expressions.
9486 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
9489 * ira-color.c (update_allocno_cost): Add parameter.
9490 (update_costs_from_allocno): Decrease conflict cost. Pass the new
9493 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
9496 * opts-common.c (prune_options): Discard all -fdiagnostics-color
9497 but the last one, which is moved to the front to be processed
9499 * opts.c (enable_warning_as_error): Reject options that do not
9502 2015-09-24 Jiong Wang <jiong.wang@arm.com>
9504 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
9506 2015-09-24 Jiong Wang <jiong.wang@arm.com>
9508 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
9509 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
9510 (aarch64_cannot_force_const_mem): Likewise.
9511 (aarch64_classify_address): Likewise.
9512 (aarch64_classify_symbolic_expression): Likewise.
9513 (aarch64_print_operand): Likewise.
9514 (aarch64_classify_symbol): Likewise.
9515 (aarch64_mov_operand_p): Likewise.
9516 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
9517 (aarch64_mov_operand): Likewise.
9519 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
9521 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
9522 for info->spe_gp_size.
9524 2015-09-24 Richard Biener <rguenther@suse.de>
9527 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
9530 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
9532 * tree-object-size.c (plus_stmt_object_size)
9533 (cond_expr_object_size): Change the formal parameters from gimple
9535 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
9536 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
9537 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
9539 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9541 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
9542 Check for ld -type pie on Solaris 11.x and 12.
9543 * configure: Regenerate.
9544 * config.in: Regenerate.
9546 * gcc.c (LD_PIE_SPEC): Allow redefinition.
9548 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
9549 (STARTFILE_SPEC): Use it.
9550 (ENDFILE_CRTEND_SPEC): Define.
9551 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
9552 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
9553 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
9554 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
9555 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
9556 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
9557 (ENDFILE_ARCH_SPEC): Define.
9558 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
9560 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9562 * configure.ac (gcc_cv_solaris_crts): New test.
9563 * configure. Regenerate.
9564 * config.in: Regenerate.
9565 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
9566 HAVE_SOLARIS_CRTS variant.
9568 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9570 * tree-inline.h (count_insns_seq): Delete prototype.
9571 (estimate_num_insns_seq): Define prototype.
9572 * tree-inline.c (count_insns_seq): Delete.
9573 (estimate_num_insns_seq): Remove static qualifier.
9574 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
9575 with estimate_num_insns_seq.
9577 2015-09-24 Richard Biener <rguenther@suse.de>
9579 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
9581 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
9582 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
9584 (ao_ref_init_from_vn_reference): Record clique and base in the
9586 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
9588 2015-09-24 Richard Biener <rguenther@suse.de>
9590 PR tree-optimization/48885
9591 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
9592 as not including any restrict tags from other pointers.
9594 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
9596 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
9597 character when appending to offload_targets.
9599 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
9600 offload targets by commas, not colons.
9601 * config.in: Regenerate.
9602 * configure: Likewise.
9603 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
9604 instead of setting up the default offload targets here...
9605 (process_command): ..., do it here.
9607 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
9608 targets are separated by commas.
9609 * config.h.in: Regenerate.
9611 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
9612 Nathan Sidwell <nathan@codesourcery.com>
9614 * omp-low.h (omp_reduction_init_op): Declare.
9615 * omp-low.c (omp_reduction_init_op): New, broken out of ...
9616 (omp_reduction_init): ... here. Call it.
9617 * tree-parloops.c (initialize_reductions): Use
9618 omp_reduction_init_op.
9620 2015-09-23 Richard Biener <rguenther@suse.de>
9623 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
9624 undefined overflow unless they will cancel out.
9626 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
9628 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
9631 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
9634 * opts.h (write_langs): Declare.
9635 * opts-global.c (write_langs): Make it extern.
9637 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
9640 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
9641 overlapping regs when matching the pattern.
9643 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
9645 * config/aarch64/aarch64-simd.md
9646 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
9647 (aarch64_float_truncate_hi_v4sf_le): New.
9648 (aarch64_float_truncate_hi_v4sf_be): Likewise.
9650 2015-09-23 Richard Biener <rguenther@suse.de>
9652 * tree-ssa-structalias.c (intra_create_variable_infos): Build
9653 representatives for all restrict qualified pointer destinations.
9655 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
9657 * config/i386/i386.md (define_code_attr mshift): New.
9658 (define_mode_iterator SWI1248_AVX512BW): Rename ...
9659 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
9661 (define_insn "*k<logic><mode>"): Use new iterator name.
9662 (define_insn "*<mshift><mode>3"): New.
9664 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
9667 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
9668 mark the block as accessible.
9670 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
9672 * function.c (thread_prologue_and_epilogue_insns): Delete
9673 orig_entry_edge argument to try_shrink_wrapping.
9674 * shrink-wrap.c (can_get_prologue): New function.
9675 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
9676 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
9677 can_get_prologue where needed. Remove code that finds a single
9678 edge for the prologue. Remove code that tests if any reg clobbered
9679 by the prologue is live on the prologue edge. Remove code that finds
9680 the new prologue edge after duplicating blocks. Make a new prologue
9682 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
9684 2015-09-22 Jeff Law <law@redhat.com>
9686 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
9689 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
9691 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
9692 -Wtemplates, -Wnamespaces): Document.
9694 2015-09-22 Tom de Vries <tom@codesourcery.com>
9696 PR tree-optimization/67671
9697 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
9698 pointer references as restrict.
9700 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
9702 * config/nios2/nios2.c (nios2_legitimize_address): When handling
9703 'reg + reloc' cases, allow first operand to be non-REG, and use
9704 force_reg() to enforce address pattern.
9706 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
9709 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
9710 (define_mode_iterator VI12_AVX_AVX512F): New.
9711 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
9712 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
9713 (define_insn "*<code><mode>3"): ... Into new pattern using
9714 VI12_AVX_AVX512F iterators without masking.
9716 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9718 * config.gcc: Support "skylake-avx512".
9719 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
9720 PROCESSOR_SKYLAKE_AVX512.
9721 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
9722 (processor_target_table): Add "skylake-avx512".
9723 (PTA_SKYLAKE_AVX512): Define.
9724 (ix86_option_override_internal): Add "skylake_avx512".
9725 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
9726 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
9727 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
9728 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
9729 * doc/invoke.texi (skylake-avx512): New.
9731 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9733 * config/i386/i386.md (define_insn "kunpckhi"): Fix
9735 (define_insn "kunpcksi"): Ditto.
9736 (define_insn "kunpckdi"): Ditto.
9738 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
9740 * config/i386/i386.md (define_split not/xor SWI1248x): Use
9741 iterator instead of fixed modes.
9743 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9745 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9747 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
9748 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
9749 out_result. Update to support update-fetch operations.
9750 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
9751 Adjust for change to aarch64_gen_atomic_ldop.
9752 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
9753 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
9754 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
9755 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
9756 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
9758 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9760 * config/aarch64/aarch64-protos.h
9761 (aarch64_atomic_ldop_supported_p): Declare.
9762 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
9763 (enum aarch64_atomic_load_op_code): New.
9764 (aarch64_emit_atomic_load_op): New.
9765 (aarch64_gen_atomic_ldop): Update to support load-operate
9767 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
9769 (aarch64_atomic_<atomic_optab><mode>): New.
9770 (aarch64_atomic_<atomic_optab><mode>_lse): New.
9771 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
9772 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
9773 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
9775 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9777 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
9778 (UNSPECV_ATOMIC_LDOP_OR): New.
9779 (UNSPECV_ATOMIC_LDOP_BIC): New.
9780 (UNSPECV_ATOMIC_LDOP_XOR): New.
9781 (UNSPECV_ATOMIC_LDOP_PLUS): New.
9784 (aarch64_atomic_load<atomic_ldop><mode>): New.
9786 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9788 * config/aarch64/aarch64.md
9789 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
9792 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
9794 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
9796 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
9797 (aarch64_gen_atomic_ldop): New.
9798 (aarch64_split_atomic_op): Fix whitespace and add a comment.
9799 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
9800 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
9801 (atomic_exchange<mode>): Replace with an expander.
9802 (aarch64_atomic_exchange<mode>): New.
9803 (aarch64_atomic_exchange<mode>_lse): New.
9804 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
9805 (aarch64_atomic_swp<mode>): New.
9807 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
9809 * tree-inline.c (expand_call_inline): Use inform for extra note.
9810 Do not give a note with UNKNOWN_LOCATION.
9811 Replace input_location with gimple_location (stmt).
9812 Use true/false instead of TRUE/FALSE.
9814 2015-09-22 Tom de Vries <tom@codesourcery.com>
9816 PR tree-optimization/67666
9817 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
9818 with single field non-conservative.
9820 2015-09-21 David S. Miller <davem@davemloft.net>
9824 2015-09-11 David S. Miller <davem@davemloft.net>
9826 * config/sparc/constraints.md: Make "U" constraint a real register
9828 * config/sparc/sparc.c (TARGET_LRA_P): Define.
9829 (D_MODES, DF_MODES): Add missing cast.
9830 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9831 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9832 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9834 * config/sparc/sparc.h (PROMOTE_MODE): Define.
9835 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9836 provide these insn when flag_pic.
9838 2015-09-17 David S. Miller <davem@davemloft.net>
9840 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
9842 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
9844 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
9845 (HARD_REGNO_CALLER_SAVE_MODE): Define.
9846 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
9847 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
9848 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
9849 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
9850 provide when flag_pic.
9852 2015-09-21 Jeff Law <law@redhat.com>
9854 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
9857 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
9859 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
9861 2015-09-21 Richard Biener <rguenther@suse.de>
9863 * passes.c (rest_of_decl_compilation): Do not call
9864 dwarf2out_early_global_decl for aliases.
9866 2015-09-21 Richard Biener <rguenther@suse.de>
9869 * dwarf2out.c (add_location_or_const_value_attribute): Remove
9870 attribute parameter. Early exit if either DW_AT_const_value
9871 or DW_AT_location are present already.
9872 (gen_variable_die): Adjust caller.
9873 (dwarf2out_late_global_decl): Likewise.
9875 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9878 * config/sh/sh.c (sh_remove_overlapping_post_inc,
9879 sh_peephole_emit_move_insn): Add new functions.
9880 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
9881 sh_peephole_emit_move_insn): Declere them.
9882 * config/sh/sh.md: Use them in various peephole2 patterns.
9884 2015-09-21 Richard Biener <rguenther@suse.de>
9887 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
9888 address with -fno-delete-null-pointer-checks.
9890 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
9892 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
9893 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
9894 (reduc_uplus_v16qi): Remove.
9896 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
9897 (reduc_<VEC_reduc_name>_v2df): Remove.
9898 (reduc_<VEC_reduc_name>_v4sf): Remove.
9899 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
9901 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
9902 gen_ function by removing * prefix.
9903 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
9905 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9908 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
9909 Print i_bound without converting it to a tree.
9911 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
9913 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
9914 operands[4] operands[5] swap with std::swap, removed tmp variable.
9915 (arm_evpc_neon_vzip): Replaced in0/in1 and
9916 out0/out1 swaps with std::swap, removed x variable.
9917 (arm_evpc_neon_vtrn): Replaced in0/int1 and
9918 out0/out1 swaos with std::swap, removed x variable.
9919 (arm_expand_vec_perm_const_1): Replaced
9920 d->op0/d->op1 swap with std::swap, removed x variable.
9921 (arm_evpc_neon_vuzp): Replaced in0/in1 and
9922 out0/out1 swaps with std::swap, removed x variable.
9924 2015-09-21 Jonathan Yong <10walls@gmail.com>
9926 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
9927 sysroot/usr/lib/32api for additional win32 libraries,
9928 fixes failing Cygwin bootstrapping.
9930 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9932 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
9934 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
9937 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
9938 (*mov_t_msb_neg): Rewrite negc pattern.
9940 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9942 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
9943 immediate generation code.
9945 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9947 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
9948 redundant immediate generation code.
9950 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9952 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
9953 (AARCH64_NUM_BITMASKS): Remove.
9954 (aarch64_bitmasks_cmp): Remove.
9955 (aarch64_build_bitmask_table): Remove.
9957 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9959 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
9960 slow immediate matching loops with a faster algorithm.
9962 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
9964 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
9967 2015-09-20 Jeff Law <law@redhat.com>
9969 PR tree-optimization/47679
9970 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
9971 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
9972 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
9973 (thread_through_normal_block): Use record_temporary_equivalences.
9975 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
9977 * coretypes.h (gimple): Change typedef to be a forward declaration.
9978 * gimple.h (gimple_statement_base): rename to gimple.
9979 * (all functions and types using gimple): Adjust.
9982 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
9983 David Edelsohn <dje.gcc@gmail.com>
9985 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
9986 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
9987 (EH_FRAME_THROUGH_COLLECT2): Define.
9988 (EH_TABLES_CAN_BE_READ_ONLY): Define.
9989 (ASM_OUTPUT_DWARF_PCREL): Define.
9990 (ASM_OUTPUT_DWARF_DATAREL): Define.
9992 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
9994 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
9997 2015-09-18 Jeff Law <law@redhat.com>
9999 PR tree-optimization/47679
10000 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
10002 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
10003 object. Update constructor.
10004 (pass_dominator::execute): Corresponding chagnes to declaration
10005 and initialization of avail_exprs_stack. Update constructor call
10006 for dom_opt_dom_walker object.
10007 (lookup_avail_expr, record_cond): Accept additional argument. Pass
10008 it down to children as needed.
10009 (record_equivalences_from_incoming_edge): Likewise.
10010 (eliminate_redundant_computations): Likewise.
10011 (record_equivalences_from_stmt): Likewise.
10012 (simplify_stmt_for_jump_threading): Likewise.
10013 (record_temporary_equivalences): Likewise.
10014 (optimize_stmt): Likewise.
10015 (dom_opt_dom_walker::thread_across_edge): Update access to
10016 avail_exprs_stack object and pass it to children as needed.
10017 (dom_opt_dom_walker::before_dom_children): Similarly.
10018 (dom_opt_dom_walker::after_dom_children): Similarly.
10019 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
10020 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
10021 Add avail_expr_stack argument. Pass it to children as needed.
10022 (dummy_simplify): Likewise.
10023 (simplify_control_stmt_condition): Likewise.
10024 (thread_around_empty_blocks): Likewise.
10025 (thread_through_normal_block): Likewise.
10026 (thread_across_edge): Likewise.
10027 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10028 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
10030 PR tree-optimization/47679
10031 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
10033 (dom_opt_dom_walker): New private member holding the const_and_copies
10034 object. Update constructor.
10035 (pass_dominator::execute): Corresponding changes to declaration
10036 and initialization of const_and_copies. Update constructor call
10037 for the dom_opt_dom_walker object.
10038 (record_temporary_equivalences): Accept const_and_copies argument
10039 pass it down to children as needed.
10040 (record_equality): Likewise.
10041 (record_equivalences_from_incoming_edge): Likewise.
10042 (cprop_into_successor_phis, optimize_stmt): Likewise.
10043 (eliminate_redundant_computations): Likewise.
10044 (dom_opt_dom_walker::thread_across_edge): Update access to
10045 const_and_copies object and pass it to children as needed.
10046 (dom_opt_dom_walker::before_dom_children): Similarly.
10047 (dom_opt_dom_walker::after_dom_children): Similarly.
10049 PR tree-optimization/47679
10050 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
10051 it into the avail_exprs_stack class.
10052 (pass_dominator::execute): Corresponding changes to declaration
10053 and initialization of avail_exprs. Pass avail_exprs to
10054 dump_dominator_optimization_stats.
10055 (record_cond): Extract avail_exprs from avail_exprs_stack.
10056 (lookup_avail_expr): Similarly.
10057 (htab_staticstics): Remove unnecessary prototype. Move to earlier
10059 (dump_dominator_optimization_stats): Make static and prototype.
10060 Add argument for the hash table to dump.
10061 (debug_dominator_optimization_stats): Remove.
10062 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
10064 (debug_dominator_optimization_stats): Similarly.
10065 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
10066 "void" in prototype for pop_to_marker method. Add accessor method
10067 for the underlying avail_exprs table.
10069 * tree-ssa-threadedge.c: Remove trailing whitespace.
10071 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
10073 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
10075 (pa_ldil_cint_p): Likewise.
10076 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
10077 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
10079 * config/pa/pa.md: Likewise.
10081 2015-09-18 David Malcolm <dmalcolm@redhat.com>
10083 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
10084 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
10085 (diagnostic_show_locus): Likewise.
10086 (diagnostic_print_caret_line): Likewise.
10087 * diagnostic-show-locus.c: New file.
10089 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
10091 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
10092 "back" parameter. Declare label in #if block.
10094 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
10096 PR middle-end/67619
10097 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
10098 the address to a register.
10100 2015-09-18 Jeff Law <law@redhat.com>
10102 PR tree-optimization/47679
10103 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
10104 * tree-ssa-dom.c: Remove unnecessary header includes.
10105 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
10106 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
10107 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
10108 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
10109 (pass_phi_only_cprop::execute): Likewise.
10110 (make_pass_phi_only_cprop): Likewise.
10111 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
10112 uses of file scoped statics by passing the required objects
10113 as parameters wherever needed.
10115 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
10116 David Edelsohn <dje.gcc@gmail.com>
10118 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
10119 EH_FRAME_THROUGH_COLLECT2.
10120 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
10122 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
10123 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
10124 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
10125 * except.c (switch_to_exception_section): Use a read-only section
10126 even if EH_FRAME_SECTION_NAME is undefined.
10127 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
10128 * collect2.c (write_c_file_stat): Provide dbase on AIX.
10129 (scan_prog_file): Don't export __dso_handle nor
10130 __gcc_unwind_dbase.
10131 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
10132 (EH_TABLES_CAN_BE_READ_ONLY): Define.
10133 (ASM_OUTPUT_DWARF_PCREL): Define.
10134 (ASM_OUTPUT_DWARF_DATAREL): Define.
10135 (EH_FRAME_THROUGH_COLLECT2): Define.
10136 (EH_FRAME_IN_DATA_SECTION): Delete.
10137 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
10138 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
10140 (rs6000_asm_output_dwarf_datarel): Declare.
10141 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
10142 (rs6000_aix_asm_output_dwarf_datarel): New.
10143 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
10144 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
10145 (EH_FRAME_THROUGH_COLLECT2): Define.
10146 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
10147 (EH_FRAME_THROUGH_COLLECT2): Define.
10148 (EH_TABLES_CAN_BE_READ_ONLY): Define.
10149 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
10150 (EH_FRAME_THROUGH_COLLECT2): New.
10151 (ASM_OUTPUT_DWARF_DATAREL): New.
10152 * doc/tm.texi: Regenerate.
10154 2015-09-18 Richard Biener <rguenther@suse.de>
10156 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
10157 we're in early phase.
10158 (schedule_generic_params_dies_gen): Likewise.
10159 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
10160 work as possible, retaining unhandled cases.
10161 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
10162 clear out generic_type_instances at the end.
10163 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
10164 (dwarf2out_early_finish): ... here. Do most of
10165 gen_remaining_tmpl_value_param_die_attribute here.
10167 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
10169 PR tree-optimization/67283
10170 * tree-sra.c (type_consists_of_records_p): Rename to...
10171 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10172 (completely_scalarize_record): Rename to...
10173 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
10174 (scalarize_elem): New.
10175 (analyze_all_variable_accesses): Follow renamings.
10177 2015-09-18 Richard Biener <rguenther@suse.de>
10179 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
10182 2015-09-18 Richard Biener <rguenther@suse.de>
10184 PR tree-optimization/66142
10185 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
10186 treat MEM[&x] and x the same.
10187 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
10188 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
10189 when we simplified sth.
10190 (vn_reference_maybe_forwprop_address): Likewise.
10191 (valueize_refs_1): When we simplified through
10192 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
10193 set valueized_anything to true.
10194 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
10195 one ref kills the other instead of just a offset-based test.
10196 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
10197 for the operand_equal_p test to compare bases and also compare
10200 2015-09-17 Christian Bruel <christian.bruel@st.com>
10202 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
10204 2015-09-17 Richard Henderson <rth@redhat.com>
10207 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
10208 pointers that encode the alignment of the object.
10210 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
10212 PR rtl-optimization/66790
10213 * df-problems.c (LIVE): Amend documentation.
10215 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
10217 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
10219 (GTFILES): Replace optabs.c with optabs-libfunc.c.
10220 * genopinit.c (main): Add an include guard to insn-opinit.h.
10221 Protect the rtx_code parts with NUM_RTX_CODE.
10222 * optabs.h: Split parts out to...
10223 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
10224 * optabs.c: Split parts out to...
10225 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
10226 * cilk-common.c: Include optabs-query.h rather than optabs.h.
10227 * fold-const.c: Likewise.
10228 * target-globals.c: Likewise.
10229 * tree-if-conv.c: Likewise.
10230 * tree-ssa-forwprop.c: Likewise.
10231 * tree-ssa-loop-prefetch.c: Likewise.
10232 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
10233 Remove unncessary include files.
10234 * tree-ssa-phiopt.c: Likewise.
10235 * tree-ssa-reassoc.c: Likewise.
10236 * tree-switch-conversion.c: Likewise.
10237 * tree-vect-data-refs.c: Likewise.
10238 * tree-vect-generic.c: Likewise.
10239 * tree-vect-loop.c: Likewise.
10240 * tree-vect-patterns.c: Likewise.
10241 * tree-vect-slp.c: Likewise.
10242 * tree-vect-stmts.c: Likewise.
10243 * tree-vrp.c: Likewise.
10244 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
10245 rather than optabs.h.
10246 * expr.c: Include optabs-tree.h.
10247 * function.c: Likewise.
10249 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
10251 PR middle-end/65958
10252 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
10253 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
10254 * config/arm/arm.c: Include common/common-target.h.
10255 (use_return_insn): Return 0 if the static chain register was saved
10256 above a non-APCS frame.
10257 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
10258 (struct scratch_reg): New.
10259 (get_scratch_register_on_entry): New function.
10260 (release_scratch_register_on_entry): Likewise.
10261 (arm_emit_probe_stack_range): Likewise.
10262 (output_probe_stack_range): Likewise.
10263 (arm_expand_prologue): Factor out code dealing with the IP register
10264 for nested function and adjust it for stack checking.
10265 Invoke arm_emit_probe_stack_range if static builtin stack checking
10267 (thumb1_expand_prologue): Sorry out if static builtin stack checking
10269 (arm_expand_epilogue): Add the saved static chain register, if any, to
10270 the amount of pre-pushed registers to pop.
10271 (arm_frame_pointer_required): Return true if static stack checking is
10272 enabled and we want to catch the exception with the EABI unwinder.
10273 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
10274 (UNSPEC_PROBE_STACK_RANGE): Likewise.
10275 * config/arm/arm.md (probe_stack): New insn.
10276 (probe_stack_range): Likewise.
10278 2015-09-17 Richard Biener <rguenther@suse.de>
10280 * genmatch.c (parser::parse_expr): Improve error message
10281 for mis-placed flags.
10283 2015-09-17 Richard Biener <rguenther@suse.de>
10285 * passes.c (rest_of_decl_compilation): Always call early_global_decl
10286 debug hook when we created a varpool node.
10287 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
10288 dwarf2out_early_global_decl, when not just add location or
10289 value attributes to existing DIEs.
10291 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
10293 * config/aarch64/aarch64.md (copysigndf3): New.
10294 (copysignsf3): Likewise.
10296 2015-09-17 David S. Miller <davem@davemloft.net>
10298 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
10299 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
10300 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
10301 (HARD_REGNO_CALLER_SAVE_MODE): Define.
10302 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
10303 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
10304 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
10305 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
10306 provide when flag_pic.
10308 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
10310 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
10311 object_allocator change.
10313 2015-09-17 Bin Cheng <bin.cheng@arm.com>
10315 PR tree-optimization/66388
10316 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
10317 (dump_iv): Dump no_overflow information.
10318 (alloc_iv): Initialize new field for struct iv.
10319 (mark_bivs): Count number of no_overflow bivs.
10320 (find_deriving_biv_for_expr, record_biv_for_address_use): New
10322 (idx_find_step): Call new functions above.
10323 (add_candidate_1, add_candidate): New paramter.
10324 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
10325 (get_computation_aff): Simplify convertion of cand for BIV.
10326 (get_computation_cost_at): Step cand's base if necessary.
10328 2015-09-17 Bin Cheng <bin.cheng@arm.com>
10330 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
10332 (tree_simplify_using_condition): Ditto.
10333 (simplify_using_initial_conditions): Ditto.
10334 (loop_exits_before_overflow): Pass new argument to function
10335 simplify_using_initial_conditions. Remove case for type conversions
10337 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
10339 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
10340 in iv base using loop initial conditions.
10342 2015-09-16 Jeff Law <law@redhat.com>
10344 PR tree-optimization/47679
10345 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
10346 (free_all_edge_infos): Use it.
10347 (allocate_edge_info): Free preexisting edge info data.
10348 (pass_dominator::execute): Set up initial edge info structures.
10349 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
10350 thread_across_edge.
10351 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
10352 If non-null, then push/pop markers appropriately.
10353 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
10354 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
10355 thread-across_edge.
10357 2015-09-16 James Bowman <james.bowman@ftdichip.com>
10359 * config/ft32/ft32.c: Fix the memory address space predicate.
10361 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
10364 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
10365 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
10367 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10369 * toplev.h (check_global_declaration): Remove declaration.
10370 * toplev.c (check_global_declaration): Move to ...
10371 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
10372 (analyze_functions): Update call.
10374 2015-09-16 David S. Miller <davem@davemloft.net>
10376 * lra-constraints.c (simplify_operand_subreg): Do not assume that
10377 lowpart of a SUBREG has offset zero.
10379 2015-09-16 Jeff Law <law@redhat.com>
10381 PR tree-optimization/47679
10382 * tree-ssa-dom.c (enum expr_kind): Moved from here to
10383 tree-ssa-scopedtables.h.
10384 (struct hashable_expr, class expr_hash_elt): Likewise.
10385 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
10386 Move associated methods into tree-ssa-scopedtables.c.
10387 (avail_expr_hash, initialize_expr_from_cond): Similarly.
10388 (hashable_expr_equal_p, add_expr_commutative): Likewise.
10389 (add_hashable_expr): Likewise.
10390 (record_cond): Delete element directly.
10391 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
10392 private copy ctor and assignment operator methods.
10393 (expr_elt_hasher): Inline trivial methods.
10394 (initialize_expr_from_cond): Prototype.
10395 * tree-ssa-scopedtables.c: Add necessary includes, functions and
10396 methods that were previously in tree-ssa-dom.c. Improve various
10399 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
10401 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
10403 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
10406 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
10409 2015-09-16 Richard Biener <rguenther@suse.de>
10411 PR middle-end/67253
10412 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
10413 location of possibly shared trees.
10415 2015-09-16 Richard Biener <rguenther@suse.de>
10417 PR middle-end/67271
10418 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
10420 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
10422 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
10423 offset and size computations instead of HOST_WIDE_INT.
10425 2015-09-16 Richard Biener <rguenther@suse.de>
10427 PR middle-end/67442
10428 * fold-const.c (extract_muldiv_1): Properly extend multiplication
10429 result before builting a tree via wide_int_to_tree.
10431 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
10433 * Makefile.in: Add memory-block.cc
10434 (pool_allocator::initialize): Use fixed block size.
10435 (pool_allocator::release): Use memory_block_pool.
10436 (pool_allocator::allocate): Likewise.
10437 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
10439 * cfg.c (initialize_original_copy_tables): Likewise.
10440 * cselib.c (elt_list_pool, elt_loc_list_pool,
10441 cselib_val_pool): Likewise.
10442 * df-problems.c (df_chain_alloc): Likewise.
10443 * df-scan.c (df_scan_alloc): Likewise.
10444 * dse.c (cse_store_info_pool, rtx_store_info_pool,
10445 read_info_type_pool, insn_info_type_pool, bb_info_pool,
10446 group_info_pool, deferred_change_pool): Likewise.
10447 * et-forest.c (et_nodes, et_occurrences): Likewise.
10448 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
10449 ipcp_agg_lattice_pool): Likewise.
10450 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
10451 * ipa-profile.c (histogram_pool): Likewise.
10452 * ipa-prop.c (ipa_refdesc_pool): Likewise.
10453 * ira-build.c (live_range_pool, allocno_pool, object_pool,
10454 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
10455 * ira-color.c (update_cost_record_pool): Likewise.
10456 * lra-lives.c (lra_live_range_pool): Likewise.
10457 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
10458 * memory-block.cc: New file.
10459 * memory-block.h: New file.
10460 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
10461 * sched-deps.c (sched_deps_init): Likewise.
10462 * sel-sched-ir.c (sched_lists_pool): Likewise.
10463 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
10464 * tree-sra.c (access_pool): Likewise.
10465 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10466 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
10467 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
10468 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
10469 * tree-ssa-strlen.c (strinfo_pool): Likewise.
10470 * tree-ssa-structalias.c (variable_info_pool): Likewise.
10471 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
10472 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
10474 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
10476 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
10478 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
10481 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
10483 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
10484 to pass TLS call argument, according to current ABI.
10485 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
10486 callx0 for TLS call, according to current ABI.
10488 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
10490 * tree-eh.c (lower_try_finally_dup_block): Clear location information
10491 on stack restore statements.
10492 (decide_copy_try_finally): Do not consider a stack restore statement as
10493 coming from sources.
10495 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
10497 * config/alpha/alpha.c (alpha_expand_block_clear): Use
10498 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
10500 2015-09-15 Jeff Law <law@redhat.com>
10502 PR tree-optimization/47679
10503 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
10504 methods and private members.
10505 (avail_exprs_stack): Similarly. Change type of global
10506 from a pair of expr_hash_elt_t to the new class.
10507 (expr_elt_hasher::hash): Corresponding changes.
10508 (expr_elt_hasher::equal): Similarly.
10509 (avail_expr_hash): Similarly.
10510 (pass_dominator::execute): Similarly.
10511 (dom_opt_dom_walker::thread_across_edge): Similarly.
10512 (record_cond): Similarly.
10513 (dom_opt_dom_walker::before_dom_children): Similarly.
10514 (dom_opt_dom_walker::after_dom_children): Similarly.
10515 (lookup_avail_expr): Likewise.
10516 (initialize_hash_element): Now a expr_hash_elt constructor.
10517 (initialize_hash_element_from_expr): Similarly.
10518 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
10519 (free_expr_hash_elt): Call dtor for the element.
10520 (remove_local_expressions_from_table): Now the "pop_to_marker"
10521 method in the available_exprs_stack class.
10522 (avail_expr_stack::record_expr): Method factored out.
10523 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
10525 (hashable_expr_equal_p): Fix formatting.
10527 2015-09-15 David Malcolm <dmalcolm@redhat.com>
10529 * input.h (location_get_source_line): Drop "expanded_location"
10530 param in favor of a file and line number.
10531 * input.c (location_get_source_line): Likewise.
10532 (dump_location_info): Update for change in signature of
10533 location_get_source_line.
10534 * diagnostic.c (diagnostic_print_caret_line): Likewise.
10536 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
10538 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
10539 Bump to 4KB for SJLJ exceptions.
10540 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
10541 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
10542 * doc/tm.texi: Regenerate.
10544 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10546 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
10547 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
10550 2015-09-15 Richard Biener <rguenther@suse.de>
10552 PR tree-optimization/67470
10553 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
10554 structure for PHI hoisting by inserting a forwarder block
10557 2015-09-15 Christian Bruel <christian.bruel@st.com>
10559 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
10560 (arm_option_print): New function.
10562 2015-09-15 Christian Bruel <christian.bruel@st.com>
10565 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
10566 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
10567 Remove flags parameter.
10568 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
10569 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
10570 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
10571 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
10572 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
10573 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
10574 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
10575 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
10577 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10579 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
10581 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
10582 AARCH64_VALID_SIMD_DREG_MODE.
10584 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10586 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
10587 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
10588 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
10589 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
10590 aarch64_ld4_lane<mode>): Combine together, making...
10591 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10592 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10593 aarch64_st4_lane<mode>): Combine together, making...
10594 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
10595 * config/aarch64/iterators.md (nregs): Add comment.
10597 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10599 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
10600 Change operand mode from <V_TWO_ELEM> to BLK.
10601 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
10602 (aarch64_vec_store_lanesoi_lane<mode): Likewise
10603 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10604 (aarch64_ld2_lane<mode>): Likewise.
10605 (aarch64_st2_lane<VQ:mode>): Likewise.
10606 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
10608 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10610 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
10611 Change operand mode from <V_FOUR_ELEM> to BLK.
10612 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
10613 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
10614 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10615 (aarch64_ld4_lane<mode>): Likewise.
10616 (aarch64_st4_lane<mode>): Likewise.
10617 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
10619 2015-09-15 Richard Biener <rguenther@suse.de>
10621 PR middle-end/67563
10622 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
10623 transfer EH info from old to new stmt.
10624 (replace_call_with_value): Likewise.
10625 (replace_call_with_call_and_fold): Likewise.
10626 (gimple_fold_builtin_memory_op): Likewise.
10627 (gimple_fold_builtin_memset): Likewise.
10628 (gimple_fold_builtin_stpcpy): Likewise.
10629 (gimple_fold_call): Likewise.
10631 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10633 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
10635 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
10636 (aarch64_simd_intEI_type_node): Likewise.
10637 (aarch64_simd_builtin_std_type): Remove EImode case.
10638 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
10639 * config/aarch64/aarch64-modes.def: Remove EImode.
10641 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10643 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
10644 Change operand mode from <V_THREE_ELEM> to BLK.
10645 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
10646 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
10647 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
10648 (aarch64_ld3_lane<mode>): Likewise.
10649 (aarch64_st3_lane<mode>): Likewise.
10650 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
10652 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10654 * config/aarch64/aarch64-simd.md
10655 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
10656 Change all TImode operands to BLKmode.
10657 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
10658 Change all EImode operands to BLKmode.
10659 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
10660 Change all OImode operands to BLKmode.
10662 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
10663 and call set_mem_size.
10664 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
10666 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
10668 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
10670 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
10672 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
10674 (vec_store_lanesci_lane<mode>): Rename to...
10675 (aarch64_vec_store_lanesci_lane<mode>): ...this.
10677 (vec_store_lanesxi_lane<mode>): Rename to...
10678 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
10680 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
10681 aarch64_st4_lane<mode>): Follow renaming.
10683 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10685 * config/s390/s390.c (s390_const_operand_ok): Add missing
10688 2015-09-15 Richard Biener <rguenther@suse.de>
10691 * lto-streamer.h (lto_location_cache::current_sysp): Properly
10693 * lto-streamer-out.c (clear_line_info): Likewise.
10695 2015-09-15 Richard Biener <rguenther@suse.de>
10697 * doc/match-and-simplify.texi: Fix wording.
10699 2015-09-15 Bin Cheng <bin.cheng@arm.com>
10701 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
10702 unnecessary type conversion in op1.
10704 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
10706 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
10707 (dup_block_and_redirect): Delete function.
10708 (can_dup_for_shrink_wrapping): New function.
10709 (fix_fake_fallthrough_edge): New function.
10710 (try_shrink_wrapping): Rewrite function.
10711 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
10713 2015-09-14 Rich Felker <dalias@libc.org>
10715 * configure.ac: Change target pattern for sh TLS support
10716 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
10717 * configure: Regenerate.
10719 2015-09-14 Jeff Law <law@redhat.com>
10721 PR tree-optimization/47679
10722 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
10723 type rather than void *.
10725 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
10728 * diagnostic.c (diagnostic_initialize): Do not set
10729 some_warnings_are_errors.
10730 (diagnostic_finish): Use DK_WERROR count instead.
10731 (diagnostic_report_diagnostic): Do not set
10732 some_warnings_are_errors.
10733 * diagnostic.h (struct diagnostic_context): Remove
10734 some_warnings_are_errors.
10736 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
10738 * config/sparc/predicates.md (const_all_ones_operand): Use
10739 CONSTM1_RTX to simplify definition.
10741 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
10744 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
10747 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
10749 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
10750 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
10751 OPT_fshow_column to handled saved option cases.
10752 (append_compiler_options): Do not skip the above added options.
10754 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10757 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
10758 nopcrelative_literal_loads.
10759 (aarch64_classify_address): Likewise.
10760 (aarch64_constant_pool_reload_icode): Define.
10761 (aarch64_secondary_reload): Handle secondary reloads for
10763 (aarch64_override_options): Handle nopcrelative_literal_loads.
10764 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
10765 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
10767 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
10768 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
10769 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
10771 * doc/invoke.texi (mpc-relative-literal-loads): Document.
10773 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
10775 PR middle-end/67401
10776 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
10777 sync_compare_and_swap_optab libcall to target_oval.
10779 2015-09-14 Marek Polacek <polacek@redhat.com>
10781 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
10783 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
10785 2015-09-11 Mark Wielaard <mjw@redhat.com>
10788 * toplev.c (check_global_declaration): Check and use
10789 warn_unused_const_variable.
10790 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
10791 (-Wunused-variable): Remove non-constant. For C implies
10792 -Wunused-const-variable.
10793 (-Wunused-const-variable): New.
10795 2015-09-14 Richard Biener <rguenther@suse.de>
10797 * doc/match-and-simplify.texi: Update for changed syntax
10798 of inner ifs and the new switch expression.
10800 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
10802 * config/i386/haswell.md: New file describing Haswell pipeline.
10803 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
10804 haswell-like processors.
10805 (ix86_reassociation_width): Increase reassociation width for 64-bit
10806 Haswell processor family.
10807 * config/i386/i386.md: Introduce haswell cpu and include new md file.
10809 2015-09-14 Richard Biener <rguenther@suse.de>
10811 * doc/match-and-simplify.texi: Fixup some formatting issues
10812 and document the 's' flag.
10814 2015-09-13 Olivier Hainque <hainque@adacore.com>
10815 Eric Botcazou <ebotcazou@adacore.com>
10817 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
10818 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
10819 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
10820 (TARGET_CPU_gr5): Likewise.
10821 (TARGET_CPU_gr6): Likewise.
10822 (MULTILIB_DEFAULTS): Likewise.
10823 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
10824 for mcpu=gr5 and mcpu=gr6.
10825 (MULTILIB_DIRNAMES): Adjust accordingly.
10827 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10829 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
10830 (mem_ref_p): Likewise.
10831 (outermost_indep_loop): Adjust.
10832 (mem_ref_in_stmt): Likewise.
10833 (determine_max_movement): Likewise.
10834 (mem_ref_alloc): Likewise.
10835 (record_mem_ref_loc): Likewise.
10836 (set_ref_stored_in_loop): Likewise.
10837 (mark_ref_stored): Likewise.
10838 (gather_mem_refs_stmt): Likewise.
10839 (mem_refs_may_alias_p): Likewise.
10840 (for_all_locs_in_loop): Likewise.
10841 (struct rewrite_mem_ref_loc): Likewise.
10842 (rewrite_mem_refs): Likewise.
10843 (struct first_mem_ref_loc_1): Likewise.
10844 (first_mem_ref_loc): Likewise.
10845 (struct sm_set_flag_if_changed): Likewise.
10846 (execute_sm_if_changed_flag_set): Likewise.
10847 (execute_sm): Likewise.
10848 (hoist_memory_references):
10849 (struct ref_always_accessed): Likewise.
10850 (ref_always_accessed_p): Likewise.
10851 (refs_independent_p): Likewise.
10852 (record_dep_loop): Likewise.
10853 (ref_indep_loop_p_1): Likewise.
10854 (ref_indep_loop_p_2): Likewise.
10855 (ref_indep_loop_p): Likewise.
10856 (can_sm_ref_p): Likewise.
10857 (find_refs_for_sm): Likewise.
10858 (tree_ssa_lim_finalize): Likewise.
10860 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10862 * dwarf2out.c (dw_attr_ref): Remove typedef.
10863 (dw_line_info_ref): Likewise.
10864 (pubname_ref): Likewise.
10865 (dw_ranges_ref): Likewise.
10866 (dw_ranges_by_label_ref): Likewise.
10867 (comdat_type_node_ref): Likewise.
10869 (get_AT_low_pc): Likewise.
10870 (get_AT_hi_pc): Likewise.
10871 (get_AT_string): Likewise.
10872 (get_AT_flag): Likewise.
10873 (get_AT_unsigned): Likewise.
10874 (get_AT_ref): Likewise.
10875 (get_AT_file): Likewise.
10876 (remove_AT): Likewise.
10877 (print_die): Likewise.
10878 (check_die): Likewise.
10879 (die_checksum): Likewise.
10880 (attr_checksum_ordered): Likewise.
10881 (struct checksum_attributes): Likewise.
10882 (collect_checksum_attributes): Likewise.
10883 (die_checksum_ordered): Likewise.
10884 (same_die_p): Likewise.
10885 (is_declaration_die): Likewise.
10886 (clone_die): Likewise.
10887 (clone_as_declaration): Likewise.
10888 (copy_declaration_context): Likewise.
10889 (break_out_comdat_types): Likewise.
10890 (copy_decls_walk): Likewise.
10891 (output_location_lists): Likewise.
10892 (external_ref_hasher::hash): Likewise.
10893 (optimize_external_refs_1): Likewise.
10894 (build_abbrev_table): Likewise.
10895 (size_of_die): Likewise.
10896 (unmark_all_dies): Likewise.
10897 (size_of_pubnames): Likewise.
10898 (output_die_abbrevs): Likewise.
10899 (output_die): Likewise.
10900 (output_pubnames): Likewise.
10901 (add_ranges_num): Likewise.
10902 (add_ranges_by_labels): Likewise.
10903 (add_high_low_attributes): Likewise.
10904 (gen_producer_string): Likewise.
10905 (dwarf2out_set_name): Likewise.
10906 (new_line_info_table): Likewise.
10907 (prune_unused_types_walk_attribs): Likewise.
10908 (prune_unused_types_update_strings): Likewise.
10909 (prune_unused_types): Likewise.
10910 (resolve_addr): Likewise.
10911 (optimize_location_lists_1): Likewise.
10912 (index_location_lists): Likewise.
10913 (dwarf2out_finish): Likewise.
10915 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10917 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
10919 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10921 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
10922 (dump_asserts_for): Adjust.
10923 (register_new_assert_for): Likewise.
10924 (process_assert_insertions): Likewise.
10925 (insert_range_assertions): Likewise.
10927 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10929 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
10930 and remove typedef.
10931 (new_temp_expr_table): Adjust.
10932 (free_temp_expr_table): Likewise.
10933 (version_to_be_replaced_p): Likewise.
10934 (make_dependent_on_partition): Likewise.
10935 (add_to_partition_kill_list): Likewise.
10936 (remove_from_partition_kill_list): Likewise.
10937 (add_dependence): Likewise.
10938 (finished_with_expr): Likewise.
10939 (process_replaceable): Likewise.
10940 (kill_expr): Likewise.
10941 (kill_virtual_exprs): Likewise.
10942 (mark_replaceable): Likewise.
10943 (find_replaceable_in_bb): Likewise.
10944 (find_replaceable_exprs): Likewise.
10945 (debug_ter): Likewise.
10947 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10949 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
10950 (struct btr_user): Rename from btr_user_s.
10951 (struct btr_def): Rename from btr_def_s.
10952 (find_btr_def_group): Adjust.
10953 (add_btr_def): Likewise.
10954 (new_btr_user): Likewise.
10955 (note_other_use_this_block): Likewise.
10956 (compute_defs_uses_and_gen): Likewise.
10957 (link_btr_uses): Likewise.
10958 (build_btr_def_use_webs): Likewise.
10959 (block_at_edge_of_live_range_p): Likewise.
10960 (btr_def_live_range): Likewise.
10961 (combine_btr_defs): Likewise.
10962 (move_btr_def): Likewise.
10963 (migrate_btr_def): Likewise.
10964 (migrate_btr_defs): Likewise.
10966 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10968 * var-tracking.c (shared_hash_def): Rename to shared_hash.
10969 (shared_hash): Remove typedef.
10970 (struct dataflow_set): Adjust.
10971 (shared_hash_unshare): Likewise.
10972 (dataflow_set_merge): Likewise.
10973 (vt_initialize): Likewise.
10974 (vt_finalize): Likewise.
10976 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10978 * var-tracking.c (struct location_chain): Rename from
10979 location_chain_def.
10980 (struct variable_part): Adjust.
10981 (variable_htab_free): Likewise.
10982 (unshare_variable): Likewise.
10983 (get_init_value): Likewise.
10984 (get_addr_from_local_cache): Likewise.
10985 (drop_overlapping_mem_locs): Likewise.
10986 (val_reset): Likewise.
10987 (struct variable_union_info): Likewise.
10988 (variable_union): Likewise.
10989 (find_loc_in_1pdv): Likewise.
10990 (insert_into_intersection): Likewise.
10991 (intersect_loc_chains): Likewise.
10992 (canonicalize_loc_order_check): Likewise.
10993 (canonicalize_values_mark): Likewise.
10994 (canonicalize_values_star): Likewise.
10995 (canonicalize_vars_star): Likewise.
10996 (variable_merge_over_cur): Likewise.
10997 (remove_duplicate_values): Likewise.
10998 (variable_post_merge_new_vals): Likewise.
10999 (variable_post_merge_perm_vals): Likewise.
11000 (find_mem_expr_in_1pdv): Likewise.
11001 (dataflow_set_preserve_mem_locs): Likewise.
11002 (dataflow_set_remove_mem_locs): Likewise.
11003 (variable_part_different_p): Likewise.
11004 (onepart_variable_different_p): Likewise.
11005 (find_src_set_src): Likewise.
11006 (dump_var): Likewise.
11007 (set_slot_part): Likewise.
11008 (clobber_slot_part): Likewise.
11009 (delete_slot_part): Likewise.
11010 (vt_expand_var_loc_chain): Likewise.
11011 (emit_note_insn_var_location): Likewise.
11012 (vt_finalize): Likewise.
11014 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11016 * dse.c (store_info_t): Remove typedef.
11017 (group_info_t): Likewise.
11018 (const_group_info_t): Likewise.
11019 (deferred_change_t): Likewise.
11020 (get_group_info): Adjust.
11021 (free_store_info): Likewise.
11022 (canon_address): Likewise.
11023 (clear_rhs_from_active_local_stores): Likewise.
11024 (record_store): Likewise.
11025 (replace_read): Likewise.
11026 (check_mem_read_rtx): Likewise.
11027 (scan_insn): Likewise.
11028 (remove_useless_values): Likewise.
11029 (dse_step1): Likewise.
11030 (dse_step2_init): Likewise.
11031 (dse_step2_nospill): Likewise.
11032 (scan_stores_nospill): Likewise.
11033 (scan_reads_nospill): Likewise.
11034 (dse_step3_exit_block_scan): Likewise.
11035 (dse_step3): Likewise.
11036 (dse_step5_nospill): Likewise.
11037 (dse_step6): Likewise.
11039 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11041 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
11042 (alias_set_entry): Remove typedef.
11043 (alias_set_subset_of): Adjust.
11044 (alias_sets_conflict_p): Likewise.
11045 (init_alias_set_entry): Likewise.
11046 (get_alias_set): Likewise.
11047 (new_alias_set): Likewise.
11048 (record_alias_subset): Likewise.
11050 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
11052 * doc/install.texi (Downloading the source): Mark up
11053 contrib/download_prerequisites properly and drop leading "./".
11055 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11057 * config/arc/arc.h: Remove define of STRUCT_VALUE.
11058 * config/lm32/lm32.h: Likewise.
11059 * config/mep/mep.h: Likewise.
11060 * config/visium/visium.h: Likewise.
11061 * system.h: Poison STRUCT_VALUE macro.
11063 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
11065 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
11066 CONSTANT_P operands.
11068 2015-09-11 David S. Miller <davem@davemloft.net>
11070 * config/sparc/constraints.md: Make "U" constraint a real register
11072 * config/sparc/sparc.c (TARGET_LRA_P): Define.
11073 (D_MODES, DF_MODES): Add missing cast.
11074 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
11075 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
11076 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
11078 * config/sparc/sparc.h (PROMOTE_MODE): Define.
11079 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
11080 provide these insn when flag_pic.
11082 2015-09-11 Jeff Law <law@redhat.com>
11084 PR tree-optimization/47679
11085 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
11086 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
11087 member with m_. Update inline member functions as necessary. Add
11089 * tree-ssa-scopedtables.c: Update const_and_copies's member
11090 functions to use m_ prefix to access the stack.
11092 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
11094 * graphite-optimize-isl.c (disable_tiling): Remove.
11095 (get_schedule_for_band): Do not use disable_tiling.
11096 (get_prevector_map): Delete function.
11097 (enable_polly_vector): Remove.
11098 (get_schedule_for_band_list): Remove dead code.
11100 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
11102 * graphite-optimize-isl.c (get_tile_map): Refactor.
11103 (get_schedule_for_band): Same.
11104 (getScheduleForBand): Same.
11105 (get_prevector_map): Same.
11106 (get_schedule_for_band_list): Same.
11107 (get_schedule_map): Same.
11108 (get_single_map): Same.
11109 (apply_schedule_map_to_scop): Same.
11110 (optimize_isl): Same.
11112 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11115 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
11117 * config/aarch64/iterators.md (GPF_TF_F16): New.
11120 2015-09-10 Nathan Sidwell <nathan@acm.org>
11122 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
11123 (nvptx_reorg): Adjust comments.
11125 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
11128 * configure.ac: Check if setenv and unsetenv are declared.
11129 * configure: Rebuild.
11130 * config.in: Rebuild.
11131 * system.h: Declare setenv and unsetenv if not declared.
11133 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11135 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
11136 commentary to simplify permute mask adjustment equation.
11137 (special_handling_values): Add SH_VPERM.
11138 (const_load_sequence_p): New function.
11139 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
11140 the mask loaded from the constant pool.
11141 (adjust_vperm): New function.
11142 (handle_special_swappables): Call adjust_vperm.
11143 (dump_swap_insn_table): Handle SH_VPERM.
11145 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
11147 * shrink-wrap.c (requires_stack_frame_p): Remove static.
11148 * shrink-wrap.h (requires_stack_frame_p): Put back.
11150 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
11152 * reload1.c (elimination_costs_in_insn): Locally turn
11153 -Wmaybe-uninitialized into a warning.
11155 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
11157 * shrink-wrap.c (requires_stack_frame_p): Make static.
11158 (prepare_shrink_wrap): Likewise.
11159 (dup_block_and_redirect): Likewise.
11160 * shrink-wrap.h: Remove declarations of those functions.
11162 2015-09-10 Mark Wielaard <mjw@redhat.com>
11164 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
11166 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
11169 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
11170 missing simplify_gen_subreg.
11172 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11174 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
11175 the vector element is bigger than 64 bit.
11177 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11179 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
11180 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
11182 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11184 * config/s390/s390.c: Add V1TImode to constant pool modes.
11186 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11189 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
11190 predicate. Set predicable_short_it attr to "no".
11192 2015-09-10 Jiong Wang <jiong.wang@arm.com>
11194 PR rtl-optimization/67421
11195 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
11196 left wide shift tranformation.
11198 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
11200 * common/config/arc/arc-common.c: Remove references to A5.
11201 * config/arc/arc-opts.h: Likewise.
11202 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
11203 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
11204 * config/arc/t-arc-newlib: Likewise.
11206 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
11208 * config/arc/arc.md (length): Fix attribute length for conditional
11209 executed instructions with long immediate.
11211 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11213 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
11214 type for second alternative.
11216 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
11218 * doc/invoke.texi (Downloading GCC): Mention
11219 contrib/download_prerequisites script.
11221 2015-09-10 Jakub Jelinek <jakub@redhat.com>
11224 * gimplify.c (gimplify_omp_for): If inner stmt is not found
11225 for combined loop, assert seen_error () and return GS_ERROR.
11227 PR middle-end/67521
11228 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
11229 if decl is already in outer->variables.
11231 PR middle-end/67517
11232 * gimplify.c (gimplify_scan_omp_clauses): Instead of
11233 asserting that decl is not specified in octx->variables,
11234 break out of the loop if it is.
11237 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
11238 iterator is not explicitly determined, but is defined inside
11239 of the combined workshare region, handle it like if it has
11240 DECL_EXPR in OMP_FOR_PRE_BODY.
11242 2015-09-09 Nathan Sidwell <nathan@acm.org>
11244 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
11245 (*cmp<mode>): Add assembler spacing.
11246 (setcc_int<mode>, set_cc_float<mode>): Likewise.
11247 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
11249 (write_func_decl_from_insn): Refactor argument loops & comma emission.
11250 (nvptx_expand_call): Likewise.
11251 (nvptx_output_call_insn): Likewise.
11252 (nvptx_reorg_subreg): Add spacing.
11254 2015-09-09 Marek Polacek <polacek@redhat.com>
11256 PR middle-end/67512
11257 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
11260 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
11263 * doc/invoke.texi ([Wsubobject-linkage]): Document.
11265 2015-09-09 Tom de Vries <tom@codesourcery.com>
11267 * params-list.h: Add missing copyright notice.
11269 2015-09-09 Nathan Sidwell <nathan@acm.org>
11271 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
11272 sel_truesi, not andsi.
11274 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11276 * config/arm/arm.md (*subsi3_compare0): Rename to...
11277 (subsi3_compare0): ... This.
11278 (modsi3): New define_expand.
11279 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
11280 when operand is power of 2.
11282 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11284 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
11285 (*neg<mode>2_compare0): Rename to...
11286 (neg<mode>2_compare0): ... This.
11287 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
11288 Move check for speed inside the if-then-elses. Reflect
11289 CSNEG sequence in MOD by power of 2 case.
11291 2015-09-09 Alan Modra <amodra@gmail.com>
11294 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
11295 reload replacement for PRE_MODIFY address reg.
11297 2015-09-09 Sebastian Pop <s.pop@samsung.com>
11299 PR tree-optimization/53852
11300 * config.in: Regenerate.
11301 * configure: Regenerate.
11302 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
11303 * graphite-optimize-isl.c (optimize_isl): Stop computation when
11304 PARAM_MAX_ISL_OPERATIONS is reached.
11305 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
11306 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
11307 result equal to isl_stat_ok as the status now can be isl_error_quota.
11308 (subtract_commutative_associative_deps): Same.
11309 (compute_deps): Same.
11311 2015-09-08 Aditya Kumar <hiraditya@msn.com>
11312 Sebastian Pop <s.pop@samsung.com>
11314 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
11315 Return the parameter if it was saved in corresponding
11316 parameter_rename_map of the region.
11317 (copy_def): Copy def from sese region to the newly created region.
11318 (copy_internal_parameters): Copy all the internal parameters defined
11319 within a region to the newly created region.
11320 (graphite_regenerate_ast_isl): Copy parameters to the new region before
11321 translating isl to gimple.
11322 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
11323 the loop-nest does not have any data-references.
11324 (build_graphite_scops): Create a scop only when there is at least one
11326 (contains_only_close_phi_nodes): Deleted.
11327 (print_graphite_scop_statistics): Deleted
11328 (print_graphite_statistics): Deleted
11329 (limit_scops): Deleted.
11330 (build_scops): Removed call to limit_scops.
11331 * sese.c (new_sese): Construct.
11332 (free_sese): Destruct.
11333 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
11335 (set_rename): Pass sese region so that parameters inside the region can
11336 be added to its parameter_rename_map.
11337 (rename_uses): Pass sese region.
11338 (graphite_copy_stmts_from_block): Do not copy parameters that have been
11339 generated in the header of the scop. For each SSA_NAME in the
11340 parameter_rename_map rename its usage.
11341 (invariant_in_sese_p_rec): Return false if tree t is defined outside
11343 (scalar_evolution_in_region): If the tree t is invariant just return t.
11344 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
11345 struct sese to keep track of all the parameters which need renaming.
11346 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
11348 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
11350 2015-09-08 Tom de Vries <tom@codesourcery.com>
11352 * Makefile.in (generated_files): Add params.list.
11353 (params.list, s-params.list): Add rule.
11354 * params.h (enum compiler_param): Include params-list.h. Move define
11355 DEFPARAM, include params.def and undef DEFPARAM ...
11356 * params-list.h: ... here. New file.
11358 2015-09-08 David Malcolm <dmalcolm@redhat.com>
11360 * pretty-print.h (printer_fn): Fix typo in comment.
11362 2015-09-07 Jeff Law <law@redhat.com>
11364 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
11366 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11368 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
11369 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
11370 (arm_neon_fp16_hw): New.
11372 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11374 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
11375 UNITS_PER_WORD >= 4.
11377 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11379 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
11380 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
11381 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
11382 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
11383 (aarch64_float_extend_lo_v2df): Rename to...
11384 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
11386 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
11387 (float_extend_lo): Add v4sf.
11389 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
11390 * config/aarch64/iterators.md (VQ_HSF): New iterator.
11391 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
11392 (Vwide): New mode_attr.
11394 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11396 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
11397 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
11398 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
11399 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
11400 V4HF and V8HF variants to iterator.
11402 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
11404 * config/aarch64/iterators.md (VDQF_F16): New.
11405 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
11407 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11409 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
11410 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11411 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
11412 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
11413 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
11414 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11415 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
11416 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
11417 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
11418 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
11419 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
11420 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11421 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
11422 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
11423 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
11424 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
11425 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
11426 vld1q_dup_f16): New.
11428 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11430 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
11431 Reparameterize to...
11432 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
11433 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
11434 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
11436 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
11438 (float_truncate_lo_): Use BUILTIN_VDF iterator.
11440 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
11442 * config/aarch64/iterators.md (VDF, Vdtype): New.
11443 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
11445 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11447 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
11448 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
11449 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
11450 Add __builtin_aarch64_simd_hf.
11451 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
11452 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
11453 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
11454 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
11455 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
11456 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
11457 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
11458 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
11459 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
11461 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
11462 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
11463 (VDC, Vdbl): Add V4HF.
11465 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11467 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
11468 V4HFmode and V8HFmode.
11469 (aarch64_split_simd_move): Add case for V8HFmode.
11470 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
11471 (aarch64_simd_builtin_std_type): Handle HFmode.
11472 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
11474 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
11475 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
11476 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
11478 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
11481 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
11482 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
11484 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
11485 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
11486 vst1q_lane_f16): New.
11487 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
11488 (VALLDI_F16, VALL_F16): New.
11489 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
11490 Add cases for V4HF and V8HF.
11491 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
11493 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11495 * config/arm/arm-builtins.c (VAR11, VAR12): New.
11496 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
11497 vld4_dup): Add v4hf variant.
11498 (vget_high, vget_low): Add v8hf variant.
11499 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
11500 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
11501 v4hf and v8hf variants.
11503 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
11505 (V_DOUBLE): Add case for V4HF.
11507 (V_HALF): Add case for V8HF.
11508 (VDQX): Add V4HF, V8HF.
11509 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
11510 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
11512 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
11513 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
11514 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
11515 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
11516 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
11517 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
11518 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
11519 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
11520 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
11522 (neon_vcreate, neon_vreinterpretv8qi<mode>,
11523 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
11524 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
11525 Change VDX to VD_RE.
11527 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
11528 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
11529 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
11531 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
11532 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
11533 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
11534 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
11535 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
11536 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
11537 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
11538 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
11539 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
11541 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11543 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
11544 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
11545 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
11546 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
11547 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
11548 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
11549 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
11550 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
11551 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
11552 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
11555 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11557 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
11559 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
11561 * config/arm/arm-builtins.c (v8hf_UP): New.
11562 (arm_init_simd_builtin_types): Initialise Float16x8_t.
11564 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
11566 * config/arm/arm_neon.h (float16x8_t): New typedef.
11568 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
11570 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
11571 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
11572 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
11573 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
11574 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
11575 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
11576 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
11577 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
11578 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
11579 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
11581 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
11583 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
11584 non-alphanumeric characters in the symbol name.
11586 2015-09-07 Marek Polacek <polacek@redhat.com>
11588 PR inline-asm/67448
11589 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
11592 2015-09-07 Marek Polacek <polacek@redhat.com>
11594 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
11596 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
11598 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
11601 2015-09-04 Jakub Jelinek <jakub@redhat.com>
11603 PR middle-end/67452
11604 * tree-ssa-live.c: Include cfgloop.h.
11605 (remove_unused_locals): Clear loop->simduid if simduid is about
11606 to be removed from cfun->local_decls.
11608 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
11611 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
11614 2015-09-04 Tom de Vries <tom@codesourcery.com>
11616 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
11618 2015-09-04 Jeff Law <law@redhat.com>
11620 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
11621 unnecessary constructor. It's now trivial and implemented inside...
11622 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
11623 constructor. Add comments to various methods. Remove unused
11625 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
11626 * tree-vrp.c (identify_jump_threads): Likewise.
11627 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
11628 indentation issues.
11629 (thread_across_edge): Similarly.
11630 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
11631 arguments in constructor call.
11633 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
11635 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
11636 temp path contains a '-'.
11638 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
11639 Petr Murzin <petr.murzin@intel.com>
11640 Kirill Yukhin <kirill.yukhin@intel.com>
11642 * config/i386/i386-builtin-types.def
11643 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
11644 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
11645 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
11646 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
11647 * config/i386/i386.c
11648 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
11649 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11650 IX86_BUILTIN_SCATTERALTDIV16SI.
11651 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
11652 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
11653 __builtin_ia32_scatteraltdiv8si.
11654 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
11655 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
11656 IX86_BUILTIN_SCATTERALTDIV16SI.
11657 (ix86_vectorize_builtin_scatter): New.
11658 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
11659 ix86_vectorize_builtin_scatter.
11661 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
11662 Petr Murzin <petr.murzin@intel.com>
11663 Kirill Yukhin <kirill.yukhin@intel.com>
11665 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
11666 * doc/tm.texi: Regenerate.
11667 * target.def: Add scatter builtin.
11668 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
11669 for loads/stores in case of gather/scatter accordingly.
11670 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11671 STMT_VINFO_GATHER_P(S).
11672 (vect_check_gather): Rename to ...
11673 (vect_check_gather_scatter): this.
11674 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
11675 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
11676 (vect_check_gather_scatter): Use it instead of vect_check_gather.
11677 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
11678 variable and new checkings for it accordingly.
11679 * tree-vect-stmts.c
11680 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
11681 STMT_VINFO_GATHER_P(S).
11682 (vect_check_gather_scatter): Use it instead of vect_check_gather.
11683 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
11685 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11687 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
11689 (mulv16qi3): New define_expand.
11691 2015-09-03 Martin Sebor <msebor@redhat.com>
11694 * doc/extend.texi (Other Builtins): Document when the address
11695 of a built-in function can be taken.
11697 2015-09-03 Richard Biener <rguenther@suse.de>
11699 * dwarf2out.c (flush_limbo_die_list): Split out from ...
11700 (dwarf2out_early_finish): ... here.
11701 (dwarf2out_finish): Do not call dwarf2out_early_finish but
11702 flush_limbo_die_list. Assert we have no deferred asm names.
11704 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11706 * optabs.c (expand_binop): Don't create a broadcast vector with a
11707 source element wider than the inner mode.
11709 2015-09-03 Richard Biener <rguenther@suse.de>
11711 * varasm.c (output_constant): Use fold_convert instead of
11714 2015-09-03 Tom de Vries <tom@codesourcery.com>
11716 PR tree-optimization/65637
11717 * omp-low.c (expand_omp_for_static_chunk): Handle case that
11718 fin_bb has 2 predecessors.
11720 2015-09-03 Tom de Vries <tom@codesourcery.com>
11722 PR tree-optimization/65637
11723 * omp-low.c (find_phi_with_arg_on_edge): New function.
11724 (expand_omp_for_static_chunk): Fix inner loop phi.
11726 2015-09-03 Tom de Vries <tom@codesourcery.com>
11728 PR tree-optimization/65637
11729 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
11732 2015-09-03 Tom de Vries <tom@codesourcery.com>
11734 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
11736 2015-09-03 Tom de Vries <tom@codesourcery.com>
11738 * doc/invoke.texi (parloops-chunk-size): Add item.
11739 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
11740 * tree-parloops.c: Include params.h.
11741 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
11742 param parloops-chunk-size is used.
11744 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11746 PR middle-end/67351
11747 * fold-const.c (fold_binary_loc) : Move
11748 Transform (x >> c) << c into x & (-1<<c) or
11749 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
11750 types using simplify and match.
11751 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
11752 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
11754 2015-09-03 Richard Biener <rguenther@suse.de>
11757 * tree-ssa-structalias.c (ctor_for_analysis): New function.
11758 (create_variable_info_for_1): Use ctor_for_analysis instead
11759 of get_constructor.
11760 (create_variable_info_for): Likewise.
11762 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
11765 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
11766 in new callgraph edge.
11768 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
11773 * config/aarch64/aarch64-simd.md
11774 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
11775 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
11776 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
11777 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
11779 2015-09-02 Alan Modra <amodra@gmail.com>
11781 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
11782 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
11783 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
11785 2015-09-02 Alan Modra <amodra@gmail.com>
11788 * config/rs6000/predicates.md (current_file_function_operand): Don't
11789 return true for weak symbols.
11790 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
11792 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
11793 Andrew Bennett <andrew.bennett@imgtec.com>
11795 * config/mips/mips-opts.h (mips_cb_setting): New enum.
11796 * config/mips/mips-protos.h: Add definitions for
11797 mips_output_jump and mips_output_equal_conditional_branch
11798 * config/mips/mips.c (MIPS_JR): Change to support the
11800 (mips_emit_compare): Add support for the MIPS R6 conditional
11802 (mips_process_sync_loop): Likewise.
11803 (mips_output_order_conditional_branch): Likewise.
11804 (mips16_build_call_stub): Change MIPS_CALL to
11806 (mips_print_operand_punctuation): Update 's' case to only
11807 apply to micromips r2.
11808 (mips_adjust_insn_length): Add support for forbidden slot
11810 (mips_avoid_hazard): Likewise.
11811 (mips_reorg_process_insns): Likewise.
11812 (mips_output_jump): New function.
11813 (mips_output_equal_conditional_branch): Likewise.
11814 (mips_output_conditional_branch): Use jrc/bc if compact
11815 branch support is enabled. Ensure the forbidden slots
11816 between the two branch instructions is filled with a nop.
11817 (mips_option_override): Add support to process the compact
11818 branch option and set the correct defaults. Prevent
11819 non-explict relocs being using for MIPS R6.
11820 (mips_trampoline_init): Add compact branch support.
11821 (mips_mult_zero_zero_cost): Allow zero initialisation of
11822 accumulators with TARGET_DSP.
11823 * config/mips/mips.h (TARGET_CB_NEVER): New define.
11824 (TARGET_CB_MAYBE): New define.
11825 (TARGET_CB_ALWAYS): New define.
11826 (ISA_HAS_DELAY_SLOTS): New define.
11827 (ISA_HAS_COMPACT_BRANCHES): New define.
11828 (ISA_HAS_JRC): New define.
11829 (MIPS_BRANCH_C): New define.
11830 (MIPS_CALL): Removed.
11831 (MICROMIPS_J): Removed.
11832 * config/mips/mips.md (compact_form): New attr.
11833 (hazard): Add support for forbidden slots.
11834 (define_delay): Add support for compact branches.
11835 (*branch_order<mode>): Likewise.
11836 (*branch_order<mode>_inverted): Likewise.
11837 (*branch_equality<mode>): Likewise.
11838 (*branch_equality<mode>_inverted): Likewise.
11839 (*jump_absolute): Likewise.
11840 (*jump_pic): Likewise.
11841 (indirect_jump): Use mips_output_jump to produce assembly output.
11842 (tablejump_<mode>"): Likewise.
11843 (*<optab>"): Likewise.
11844 (<optab>_internal): Likewise.
11845 (sibcall_internal): Likewise.
11846 (sibcall_value_internal): Likewise.
11847 (sibcall_value_multiple_internal): Likewise.
11848 (call_internal): Likewise.
11849 (call_split): Likewise.
11850 (call_internal_direct): Likewise.
11851 (call_direct_split): Likewise.
11852 (call_value_internal): Likewise.
11853 (call_value_split): Likewise.
11854 (call_value_internal_direct): Likewise.
11855 (call_value_direct_split): Likewise.
11856 (call_value_multiple_internal): Likewise.
11857 (call_value_multiple_split): Likewise.
11858 (mips_get_fcsr_mips16_<mode>): Likewise.
11859 (mips_set_fcsr_mips16_<mode>): Likewise.
11860 (tls_get_tp_mips16_<mode>): Likewise.
11861 * config/mips/mips.opt: Add -mcompact-branches option.
11862 * config/mips/predicates.md (order_operator): Ensure the
11863 conditional compact branches are only used if the ISA them.
11864 * doc/invoke.texi: Document -mcompact-branches option.
11866 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
11869 * lra-lives.c (process_bb_lives): Process move pseudos with the
11870 same value for copies and preferences
11871 * lra-constraints.c (match_reload): Create match reload pseudo
11872 with the same value from single dying input pseudo.
11874 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
11877 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
11879 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
11881 * trans-mem.c: Add contributed-by.
11882 * trans-mem.h: Same.
11884 2015-09-01 Richard Biener <rguenther@suse.de>
11886 * expr.c (expand_expr_real_1): For expanding TERed defs
11887 set the current location to that of the def if not UNKNOWN.
11889 2015-09-01 David Sherwood <david.sherwood@arm.com>
11891 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
11893 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11895 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
11896 then_cost, else_cost fields. Change branch_cost field to unsigned int.
11897 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
11898 Include rtl-iter.h.
11899 (noce_simple_bbs): New function.
11900 (noce_try_move): Bail if basic blocks are not simple.
11901 (noce_try_store_flag): Likewise.
11902 (noce_try_store_flag_constants): Likewise.
11903 (noce_try_addcc): Likewise.
11904 (noce_try_store_flag_mask): Likewise.
11905 (noce_try_cmove): Likewise.
11906 (noce_try_minmax): Likewise.
11907 (noce_try_abs): Likewise.
11908 (noce_try_sign_mask): Likewise.
11909 (noce_try_bitop): Likewise.
11910 (bbs_ok_for_cmove_arith): New function.
11911 (noce_emit_all_but_last): Likewise.
11912 (noce_emit_insn): Likewise.
11913 (noce_emit_bb): Likewise.
11914 (noce_try_cmove_arith): Handle non-simple basic blocks.
11915 (insn_valid_noce_process_p): New function.
11916 (contains_mem_rtx_p): Likewise.
11917 (bb_valid_for_noce_process_p): Likewise.
11918 (noce_process_if_block): Allow non-simple basic blocks
11921 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
11923 * tree-ssa-dom.c (record_equivalences_from_phis,
11924 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
11925 (lookup_avail_expr): Likewise, and remove comment and unused temp.
11927 2015-09-01 Nick Clifton <nickc@redhat.com>
11929 * config/msp430/msp430.opt (mcpu): Fix typo.
11931 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11933 * config/aarch64/aarch64.c (aarch64_set_current_function):
11934 Re-layout any vector parameters have non-simd layout.
11935 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
11937 (aarch64_simd_expand_args): Delete call to the above.
11939 2015-08-31 Mike Frysinger <vapier@gentoo.org>
11941 * doc/invoke.texi (asan-stack): Add space before option.
11943 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11945 * tree.h (zerop): New function.
11946 * tree.c (zerop): Likewise.
11947 (element_precision): Handle expressions.
11948 * match.pd (define_predicates): Add zerop.
11949 (x <= +Inf): Fix comment.
11950 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
11951 * fold-const.c (fold_binary_loc): ... here. Remove.
11953 2015-08-31 Richard Biener <rguenther@suse.de>
11955 PR middle-end/67381
11956 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
11958 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
11960 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
11961 (CEXPI): New operator list.
11962 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
11963 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
11965 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
11967 2015-08-31 Tom de Vries <tom@codesourcery.com>
11969 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
11970 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
11972 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
11973 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
11974 (rewrite_into_loop_closed_ssa): ... here.
11975 (replace_uses_in_dominated_bbs): Remove function.
11976 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
11977 rewrite_into_loop_closed_ssa_1.
11979 2015-08-31 Michael Matz <matz@suse.de>
11981 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
11982 enter entry and exit blocks for reverse post order.
11984 2015-08-31 Richard Biener <rguenther@suse.de>
11986 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
11987 (lto_location_cache::current_sysp): Likewise.
11988 (output_block::current_sysp): Likewise.
11989 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
11990 (lto_location_cache::apply_location_cache): Properly record
11991 system header locations.
11992 (lto_location_cache::input_location): Input whether a file
11993 is a system header.
11994 * lto-streamer-out.c (lto_output_location): Stream whether a file
11995 is a system header.
11997 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12000 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
12002 2015-08-31 Tom de Vries <tom@codesourcery.com>
12004 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
12005 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
12006 Improve function header comments.
12008 2015-08-30 Michael Collison <michael.collison@linaro.org>
12011 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
12014 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
12016 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
12017 special_handling bitfield.
12018 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
12019 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
12020 that represents a general xxpermdi.
12021 (insn_is_swappable_p): Add handling for vec_concat of two
12022 doublewords, which maps to a specific xxpermdi.
12023 (adjust_xxpermdi): New function.
12024 (adjust_concat): Likewise.
12025 (handle_special_swappables): Call adjust_xxpermdi and
12027 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
12029 2015-08-30 Rich Felker <dalias@libc.org>
12031 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
12032 case instead of sh[123456ble]-*-*.
12034 2015-08-29 Anatoly Sokolov <aesok@post.ru>
12036 * ira.c (print_unform_and_important_classes,
12037 print_translated_classes): Remove reg_class_names static array.
12038 (print_unform_and_important_classes): Rename to ...
12039 (print_uniform_and_important_classes): ... this.
12040 (ira_debug_allocno_classes): Update accordingly.
12042 2015-08-29 Tom de Vries <tom@codesourcery.com>
12044 PR tree-optimization/46193
12045 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
12048 2015-08-28 Jeff Law <law@redhat.com>
12051 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
12052 unable to find X NE 0 in the tables, return X as the simplified
12054 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
12055 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
12057 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
12058 after removing the control flow statement and unnecessary edges.
12060 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
12063 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
12065 PR tree-optimization/67283
12066 * tree-sra.c (type_consists_of_records_p): Rename to...
12067 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12069 (completely_scalarize_record): Rename to...
12070 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
12072 (scalarize_elem): New.
12074 2015-08-28 Jiong Wang <jiong.wang@arm.com>
12076 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
12077 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
12078 (aarch64_symbol_type): Likewise.
12079 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12081 (aarch64_expand_mov_immediate): Likewise.
12082 (aarch64_print_operand): Likewise.
12083 (aarch64_classify_tls_symbol): Likewise.
12085 2015-08-28 Richard Biener <rguenther@suse.de>
12087 * cgraphunit.c (symbol_table::compile): Move early debug generation
12089 (symbol_table::finalize_compilation_unit): ... back here and
12090 add a !seen_error () guard.
12092 2015-08-27 Sebastian Pop <s.pop@samsung.com>
12094 * toplev.c (process_options): Do not use flag_loop_block,
12095 flag_loop_interchange, and flag_loop_strip_mine. Add check for
12096 flag_loop_optimize_isl.
12098 2015-08-27 Sebastian Pop <s.pop@samsung.com>
12100 * Makefile.in (OBJS): Remove graphite-blocking.o and
12101 graphite-interchange.o.
12102 * common.opt (floop-strip-mine, floop-interchange, floop-block):
12103 Alias of floop-nest-optimize.
12104 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
12105 Document as alias of -floop-nest-optimize.
12106 * graphite-blocking.c: Remove.
12107 * graphite-interchange.c: Remove.
12108 * graphite-optimize-isl.c: Include dumpfile.h.
12109 (getScheduleForBand): Add dump for tiled loops. Use
12110 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
12111 * graphite-poly.c (scop_max_loop_depth): Remove.
12112 (print_scattering_function_1): Remove.
12113 (print_scattering_function): Remove.
12114 (print_scattering_functions): Remove.
12115 (debug_scattering_function): Remove.
12116 (debug_scattering_functions): Remove.
12117 (apply_poly_transforms): Remove use of flag_loop_block,
12118 flag_loop_strip_mine, and flag_loop_interchange.
12119 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
12121 (print_pdr_access_layout): Remove.
12122 (print_pdr): Print ISL representation.
12123 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
12124 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
12126 (openscop_print_pbb_domain): Remove.
12127 (print_pbb): Remove call to print_scattering_function.
12128 (openscop_print_scop_context): Remove.
12129 (print_scop_context): Do not print matrices anymore.
12130 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
12131 SCOP_TRANSFORMED_SCHEDULE.
12132 (print_isl_set): Add printing of a new line.
12133 (print_isl_map): Same.
12134 (print_isl_aff): Same.
12135 (print_isl_constraint): Same.
12136 (loop_to_lst): Remove.
12137 (scop_to_lst): Remove.
12138 (lst_indent_to): Remove.
12139 (print_lst): Remove.
12140 (debug_lst): Remove.
12141 (dot_lst_1): Remove.
12143 (reverse_loop_at_level): Remove.
12144 (reverse_loop_for_pbbs): Remove.
12145 * graphite-poly.h (pdr_dim_iter_domain): Remove.
12146 (pdr_nb_params): Remove.
12147 (pdr_alias_set_dim): Remove.
12148 (pdr_subscript_dim): Remove.
12149 (pdr_iterator_dim): Remove.
12150 (pdr_parameter_dim): Remove.
12151 (same_pdr_p): Remove.
12152 (struct poly_scattering): Remove.
12153 (struct poly_bb): Remove _original, _transformed, _saved.
12154 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
12155 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
12156 (PBB_NB_LOCAL_VARIABLES): Remove.
12157 (PBB_NB_SCATTERING_TRANSFORM): Remove.
12158 (schedule_to_scattering): Remove.
12159 (number_of_write_pdrs): Remove.
12160 (pbb_dim_iter_domain): Remove.
12161 (pbb_nb_params): Remove.
12162 (pbb_nb_scattering_orig): Remove.
12163 (pbb_nb_scattering_transform): Remove.
12164 (pbb_nb_dynamic_scattering_transform): Remove.
12165 (pbb_nb_local_vars): Remove.
12166 (pbb_iterator_dim): Remove.
12167 (pbb_parameter_dim): Remove.
12168 (psco_scattering_dim): Remove.
12169 (psct_scattering_dim): Remove.
12170 (psct_local_var_dim): Remove.
12171 (psco_iterator_dim): Remove.
12172 (psct_iterator_dim): Remove.
12173 (psco_parameter_dim): Remove.
12174 (psct_parameter_dim): Remove.
12175 (psct_dynamic_dim): Remove.
12176 (psct_static_dim): Remove.
12177 (psct_add_local_variable): Remove.
12178 (new_lst_loop): Remove.
12179 (new_lst_stmt): Remove.
12180 (free_lst): Remove.
12181 (copy_lst): Remove.
12182 (lst_add_loop_under_loop): Remove.
12183 (lst_depth): Remove.
12184 (lst_dewey_number): Remove.
12185 (lst_dewey_number_at_depth): Remove.
12186 (lst_pred): Remove.
12187 (lst_succ): Remove.
12188 (lst_find_pbb): Remove.
12189 (find_lst_loop): Remove.
12190 (lst_find_first_pbb): Remove.
12191 (lst_empty_p): Remove.
12192 (lst_find_last_pbb): Remove.
12193 (lst_contains_p): Remove.
12194 (lst_contains_pbb): Remove.
12195 (lst_create_nest): Remove.
12196 (lst_remove_from_sequence): Remove.
12197 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
12198 (lst_niter_for_loop): Remove.
12199 (pbb_update_scattering): Remove.
12200 (lst_update_scattering_under): Remove.
12201 (lst_update_scattering): Remove.
12202 (lst_insert_in_sequence): Remove.
12203 (lst_replace): Remove.
12204 (lst_substitute_3): Remove.
12205 (lst_distribute_lst): Remove.
12206 (lst_remove_all_before_including_pbb): Remove.
12207 (lst_remove_all_before_excluding_pbb): Remove.
12208 (struct scop): Remove original_schedule, transformed_schedule, and
12210 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
12211 (SCOP_SAVED_SCHEDULE): Remove.
12212 (poly_scattering_new): Remove.
12213 (poly_scattering_free): Remove.
12214 (poly_scattering_copy): Remove.
12215 (store_scattering_pbb): Remove.
12216 (store_lst_schedule): Remove.
12217 (restore_lst_schedule): Remove.
12218 (store_scattering): Remove.
12219 (restore_scattering_pbb): Remove.
12220 (restore_scattering): Remove.
12221 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
12222 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
12223 compute the scattering polyhedron dimension from the dimension of
12225 (build_scop_scattering): Update call to
12226 build_pbb_scattering_polyhedrons.
12227 (build_poly_scop): Remove call to scop_to_lst.
12228 * graphite.c (graphite_transform_loops): Add call to print_scop.
12229 (gate_graphite_transforms): Remove use of flag_loop_block,
12230 flag_loop_interchange, and flag_loop_strip_mine.
12232 2015-08-27 Sebastian Pop <s.pop@samsung.com>
12234 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
12235 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
12236 -floop-nest-optimize.
12237 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
12238 (generate_luj_sepclass): Remove.
12239 (generate_luj_options): Remove.
12240 (set_options): Remove opt_luj.
12241 (scop_to_isl_ast): Remove opt_luj.
12242 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
12243 flag_loop_unroll_jam.
12244 (getPrevectorMap_full): Remove.
12245 (getScheduleForBandList): Remove map_sepcl.
12246 (getScheduleMap): Same.
12247 (apply_schedule_map_to_scop): Remove sepcl.
12248 (optimize_isl): Same.
12249 * graphite-poly.c (apply_poly_transforms): Remove check for
12250 flag_loop_unroll_jam.
12251 (new_poly_bb): Remove map_sepclass.
12252 * graphite-poly.h (struct poly_bb): Same.
12253 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
12254 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
12255 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
12256 * toplev.c (process_options): Remove flag_loop_unroll_jam.
12258 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
12261 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
12262 (addqi3_cc): Ditto.
12263 (UNSPEC_ADD_CARRY): Remove.
12264 (addqi3_cconly_overflow): New expander.
12265 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
12266 Adjust for changed add<mode>3_carry.
12267 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
12268 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
12269 (<plusminus_insn><mode>3_carry): Remove expander.
12270 (*<plusminus_insn><mode>3_carry): Split insn pattern to
12271 add<mode>3_carry and sub<mode>3_carry.
12272 (plusminus_carry_mnemonic): Remove code attribute.
12273 (add<mode>3_carry): Canonicalize insn pattern.
12274 (*addsi3_carry_zext): Ditto.
12275 (sub<mode>3_carry): Ditto.
12276 (*subsi3_carry_zext): Ditto.
12277 (adcx<mode>3): Remove insn pattern.
12278 (addcarry<mode>): New insn pattern.
12279 (subborrow<mode>): Ditto.
12280 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
12281 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
12282 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
12283 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
12284 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
12285 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
12286 Rewrite expander to not clobber carry flag chains.
12288 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
12290 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
12291 instead of a rotate.
12293 2015-08-27 Marek Polacek <polacek@redhat.com>
12295 PR middle-end/67005
12296 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
12297 an entry into an irreducible region.
12299 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12301 * configure: Regenerate.
12303 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
12305 PR tree-optimization/67283
12306 * tree-sra.c (type_consists_of_records_p): Rename to...
12307 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
12309 (completely_scalarize_record): Rename to...
12310 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
12311 (scalarize_elem): New.
12313 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
12315 * tree-sra.c (completely_scalarize_var): Rename to...
12316 (create_total_scalarization_access): ... Here. Drop call to
12317 completely_scalarize_record.
12319 (analyze_all_variable_accesses): Replace completely_scalarize_var
12320 with create_total_scalarization_access and completely_scalarize_record.
12322 2015-08-27 Alan Modra <amodra@gmail.com>
12325 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
12328 2015-08-27 Richard Biener <rguenther@suse.de>
12330 * passes.c (rest_of_decl_compilation): Guard early_global_decl
12331 call with !seen_error ().
12332 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
12333 early debug generation and finish...
12334 (symbol_table::compile): ... here to put it after a !seen_error ()
12337 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
12339 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
12342 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12343 Andre Vieira <andre.simoesdiasvieira@arm.com>
12345 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
12346 (*cb<optab><mode>1): Likewise.
12347 (*tb<optab><mode>1): Likewise.
12348 (*cb<optab><mode>1): Likewise.
12349 * config/aarch64/iterators.md (inv_cb): New code attribute.
12350 (inv_tb): Likewise.
12351 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
12352 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
12354 2015-08-27 Richard Biener <rguenther@suse.de>
12356 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
12358 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
12360 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
12363 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
12365 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
12368 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
12370 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
12371 floating point in VSX registers.
12372 (rs6000_output_move_128bit): Always print out the set insn if we
12373 can't generate an appropriate 128-bit move.
12374 (rs6000_generate_compare): Add support for IEEE 128-bit floating
12375 point in VSX registers comparisons.
12376 (rs6000_expand_float128_convert): Likewise.
12378 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
12379 predicate for only GPR hard registers.
12381 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
12382 modes to iterators. Add new iterators for moving 128-bit values in
12383 scalar FPR registers and VSX registers.
12384 (FMOVE128): Likewise.
12385 (FMOVE128_FPR): Likewise.
12386 (FMOVE128_GPR): Likewise.
12387 (FMOVE128_VSX): Likewise.
12388 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
12391 (IBM128): Likewise.
12392 (TFIFKF): Likewise.
12393 (RELOAD): Add IEEE 128-bit floating point modes.
12394 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
12395 floating point in VSX registers modes.
12396 (signbit<mode>2, IBM128 iterator): Likewise.
12397 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
12398 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
12399 (negtf2): Likewise.
12400 (neg<mode>2, TFIFKF iterator): Likewise.
12401 (negtf2_internal): Likewise.
12402 (abstf2): Likewise.
12403 (abs<mode>2, TFIFKF iterator): Likewise.
12404 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
12405 VSX insn support for negate, absolute value, and negative absolute
12407 (ieee_128bit_vsx_neg<mode>2): Likewise.
12408 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
12409 (ieee_128bit_vsx_abs<mode>2): Likewise.
12410 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
12411 (ieee_128bit_vsx_nabs<mode>2): Likewise.
12412 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
12413 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
12414 floating point in VSX registers.
12415 (unpack<mode>_dm): Likewise.
12416 (unpack<mode>_nodm): Likewise.
12417 (pack<mode>): Likewise.
12418 (unpackv1ti): Likewise.
12419 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
12420 (packv1ti): Likewise.
12421 (pack<mode>, FMOVE128_VSX iterator): Likewise.
12422 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
12424 (extenddftf2_internal): Likewise.
12425 (trunctfdf2): Likewise.
12426 (trunctfdf2_internal2): Likewise.
12427 (fix_trunc_helper): Likewise.
12428 (fix_trunctfdi2"): Likewise.
12429 (floatditf2): Likewise.
12430 (floatuns<mode>tf2): Likewise.
12431 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
12432 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
12433 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
12434 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
12435 (float<SDI:mode><IFKF:mode>2): Likewise.
12436 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
12438 2015-08-26 Renlin Li <renlin.li@arm.com>
12440 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
12442 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
12443 Jiong Wang <jiong.wang@arm.com>
12445 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
12446 (tlsie_tiny_<mode>): New define_insn.
12447 (tlsie_tiny_sidi): Likewise.
12448 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
12450 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
12451 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
12453 (aarch64_expand_mov_immediate): Likewise.
12454 (aarch64_print_operand): Likewise.
12455 (arch64_classify_tls_symbol): Likewise.
12457 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12459 * config/arm/arm-arches.def: Replace single value flags with
12460 an initializer built from ARM_FSET_MAKE_CPU1.
12461 * config/arm/arm-cores.def: Likewise.
12462 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
12463 derivation from the ARM_CORE macro definition, use the given value
12465 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
12466 ARM_ARCH macro definition, use the given value instead.
12468 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12470 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
12472 (struct builtin_description): Replace field mask with field
12474 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
12475 (IWMMXT2_BUILTIN): Likewise.
12476 (IWMMXT2_BUILTIN2): Likewise.
12477 (FP_BUILTIN): Likewise.
12478 (CRC32_BUILTIN): Likewise.
12479 (CRYPTO_BUILTIN): Likewise.
12480 (iwmmx_mbuiltin): Likewise.
12481 (iwmmx2_mbuiltin): Likewise.
12482 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
12483 struct builtin_description.
12485 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12487 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
12488 (struct builtin_description): Change type of mask to unsigned
12490 * config/arm/arm-protos.h (insn_flags): Declare as type
12492 (tune_flags): Likewise.
12493 * config/arm/arm.c (feature_count): New.
12494 (insn_flags): Define as type arm_feature_set.
12495 (tune_flags): Likewise.
12496 (struct processors): Define field flags as type arm_feature_set.
12497 (all_cores): Update for change to struct processors.
12498 (all_architectures): Likewise.
12499 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
12501 (arm_option_override_internal): Likewise.
12502 (arm_option_override): Likewise.
12504 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
12505 Jiong Wang <jiong.wang@arm.com>
12507 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
12508 tls size for tiny, small, large memory model.
12509 (aarch64_load_symref_appropriately): Support new symbol types.
12510 (aarch64_expand_mov_immediate): Likewise.
12511 (aarch64_print_operand): Likewise.
12512 (aarch64_classify_tls_symbol): Likewise.
12513 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
12514 (aarch64_symbol_type): Likewise.
12515 * config/aarch64/aarch64.md (tlsle): Deleted.
12516 (tlsle12_<mode>): New define_insn.
12517 (tlsle24_<mode>): Likewise.
12518 (tlsle32_<mode>): Likewise.
12519 (tlsle48_<mode>): Likewise.
12520 * doc/sourcebuild.texi (AArch64-specific attributes): Document
12523 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12525 * config/arm/arm-protos.h (FL_NONE): New.
12527 (arm_feature_set): New.
12528 (ARM_FSET_MAKE): New.
12529 (ARM_FSET_MAKE_CPU1): New.
12530 (ARM_FSET_MAKE_CPU2): New.
12531 (ARM_FSET_CPU1): New.
12532 (ARM_FSET_CPU2): New.
12533 (ARM_FSET_EMPTY): New.
12534 (ARM_FSET_ANY): New.
12535 (ARM_FSET_HAS_CPU1): New.
12536 (ARM_FSET_HAS_CPU2): New.
12537 (ARM_FSET_HAS_CPU): New.
12538 (ARM_FSET_ADD_CPU1): New.
12539 (ARM_FSET_ADD_CPU2): New.
12540 (ARM_FSET_DEL_CPU1): New.
12541 (ARM_FSET_DEL_CPU2): New.
12542 (ARM_FSET_UNION): New.
12543 (ARM_FSET_INTER): New.
12544 (ARM_FSET_XOR): New.
12545 (ARM_FSET_EXCLUDE): New.
12546 (AFM_FSET_IS_EMPTY): New.
12547 (ARM_FSET_CPU_SUBSET): New.
12549 2015-08-26 Jiong Wang <jiong.wang@arm.com>
12551 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
12552 SYMBOL_TLSLE to SYMBOL_TLSLE24.
12553 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
12555 (aarch64_expand_mov_immediate): Likewise.
12556 (aarch64_print_operand): Likewise.
12557 (aarch64_classify_symbol): Likewise.
12559 2015-08-26 Jiong Wang <jiong.wang@arm.com>
12561 * config/aarch64/aarch64.opt (mtls-size): New entry.
12562 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
12563 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
12564 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
12566 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
12568 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
12569 ARM_CORE entry. Fix some white-space.
12570 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
12571 ARM_CORE definition.
12573 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12575 * fold-const.c (fold_binary_loc) : Move Optimize
12576 root(x)*root(y) as root(x*y) to match.pd.
12577 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
12578 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
12579 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
12580 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
12581 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
12582 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
12583 (mult (exps:s @0) (exps:s @1)) : New simplifier.
12584 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
12585 (rdiv @0 (exps:s @1)) : New simplifier.
12587 2015-08-25 Joseph Myers <joseph@codesourcery.com>
12589 * gcc.c (driver::finalize): Only assign to extra_specs if
12592 2015-08-25 Marek Polacek <polacek@redhat.com>
12594 PR middle-end/67330
12595 * varasm.c (declare_weak): Return after giving an error.
12597 2015-08-25 David Malcolm <dmalcolm@redhat.com>
12599 * gcc-main.c (main): Add params to driver ctor.
12600 * gcc.c (class env_manager): New.
12602 (env_manager::init): New.
12603 (env_manager::get): New.
12604 (env_manager::xput): New.
12605 (env_manager::restore): New.
12606 Poison getenv and putenv.
12607 (DEFAULT_TARGET_SYSTEM_ROOT): New.
12608 (target_system_root): Update initialization to use
12609 DEFAULT_TARGET_SYSTEM_ROOT.
12610 (struct spec_list): Add field "default_ptr".
12611 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
12612 (init_spec): Likewise.
12613 (set_spec): Clear field "default_ptr".
12614 (read_specs): Free "spec" and "buffer".
12615 (xputenv): Reimplement in terms of env_manager.
12616 (process_command): Replace ::getenv calls with calls to the
12617 env_manager singleton.
12618 (process_brace_body): Free string in three places.
12619 (driver::driver): New.
12620 (driver::~driver): New.
12621 (used_arg): Convert from a function to...
12622 (class used_arg_t): ...this class, and...
12623 (used_arg): ...this new global instance.
12624 (used_arg_t::finalize): New function.
12625 (getenv_spec_function): Add "const" to local "value". Replace
12626 ::getenv call with call to the env_manager singleton.
12627 (path_prefix_reset): New function.
12628 (driver::finalize): New function.
12629 * gcc.h (driver::driver): New.
12630 (driver::~driver): New.
12631 (driver::finalize): New.
12633 2015-08-25 Nathan Sidwell <nathan@acm.org>
12635 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
12636 target doesn't have one.
12638 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
12641 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
12643 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
12646 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
12647 a define_insn, remove second alternative.
12649 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
12650 Joseph Myers <joseph@codesourcery.com>
12652 * gcc.c (struct switchstr): Expand comment.
12654 2015-08-25 Nathan Sidwell <nathan@acm.org>
12656 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
12657 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
12659 2015-08-25 Richard Biener <rguenther@suse.de>
12661 PR middle-end/67306
12662 * genmatch.c (expr::gen_transform): Verify the result of
12663 builtin_decl_implicit.
12664 (dt_simplify::gen_1): Likewise.
12666 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
12668 * config/arm/constraints.md: Also list Cs and US ARM-specific
12669 constraints as used.
12671 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
12674 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
12676 (nonpic_symbol_mentioned_p): Likewise.
12677 (sh_delegitimize_address): Likewise.
12678 (sh_function_ok_for_sibcall): Take into account weak symbols.
12679 (sh_expand_sym_label2reg): New.
12680 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
12681 * config/sh/sh.md (UNSPEC_PCREL): New enum.
12682 (call_pcrel): Use sh_expand_sym_label2reg.
12683 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
12684 (symPCREL_label2reg) New expand.
12686 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
12688 * graphite-poly.c: Change type of region from void* to sese.
12689 * graphite-poly.h (struct scop): Changing the type of scop::region
12690 from void* to sese. Change accessor macro accordingly.
12691 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
12693 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
12695 * graphite-scop-detection.c (stmt_simple_for_scop_p):
12696 Constrain only on INTEGER_TYPE.
12698 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
12701 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
12702 -mefficient-unaligned-vsx on ISA 2.7.
12704 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
12705 option to a masked option.
12707 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
12708 logic for -mefficient-unaligned-vsx so that it is set via an arch
12709 ISA option, instead of being set if -mtune=power8 is set. Move
12710 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
12711 near other default option handling.
12713 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12715 * genflags.c (gen_macro): Delete.
12716 (gen_proto): Don't create GEN.*CALL.* macros.
12717 * gensupport.h (get_file_location): Declare.
12718 * gensupport.c (rtx_locs): New variable.
12719 (read_md_rtx): Record rtx locations.
12720 (get_file_location): New function.
12721 * target-insns.def (call, call_pop, call_value, call_value_pop)
12722 (sibcall, sibcall_value): New patterns.
12723 * gentarget-def.c (parse_argument): New function.
12724 (def_target_insn): Use it. Handle optional operands. Raise an
12725 error if an .md pattern has the wrong number of operands for the
12726 pattern name. Remove the names of unused operands from the prototype.
12727 * builtins.c (expand_builtin_apply): Use targetm functions
12728 instead of HAVE_call_value and GEN_CALL_VALUE.
12729 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
12730 and sibcall_value_pop.
12731 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
12733 * config/alpha/alpha.md (untyped_call): Likewise.
12734 * config/iq2000/iq2000.md (untyped_call): Likewise.
12735 * config/m68k/m68k.md (untyped_call): Likewise.
12736 * config/mips/mips.md (untyped_call): Likewise.
12737 * config/pa/pa.md (untyped_call): Likewise.
12738 * config/rs6000/rs6000.md (untyped_call): Likewise.
12739 * config/sparc/sparc.md (untyped_call): Likewise.
12740 * config/tilegx/tilegx.md (untyped_call): Likewise.
12741 * config/tilepro/tilepro.md (untyped_call): Likewise.
12742 * config/visium/visium.md (untyped_call): Likewise.
12743 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
12744 gen_call_value instead of GEN_CALL_VALUE.
12745 * config/arm/arm.md (untyped_call): Likewise.
12746 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
12749 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12751 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
12752 (have_cbranchcc4): New variable.
12753 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
12754 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
12755 (if_convert): Initialize have_cbranchcc4.
12757 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12759 * builtins.c (expand_cmpstrn): Rename to...
12760 (expand_cmpstrn_or_cmpmem): ...this.
12761 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
12762 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
12763 Remove mode argument.
12764 (expand_builtin): Update accordingly.
12766 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12768 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
12769 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
12770 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
12771 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
12772 Add predicates for operands 0 and 3.
12773 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
12775 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
12776 immediate_operand to nonmemory_operand.
12778 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12780 * df-scan.c (df_insn_info_init_fields): New function, split out
12782 (df_insn_create_insn_record): ...here.
12783 (df_insn_info_free_fields): New function, split out from...
12784 (df_insn_info_delete): ...here.
12785 (df_insn_rescan): Use the new functions instead of freeing and
12786 reallocating the df_insn_info.
12788 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12790 * doc/install.texi (Binaries): Remove links no longer valid.
12792 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
12794 * config/nvptx/mkoffload.c (process): Replace
12795 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
12797 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
12800 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
12802 2015-08-24 Renlin Li <renlin.li@arm.com>
12804 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
12805 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
12806 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
12807 * config/arm/constraints.md ("j"): Add check for high code.
12809 2015-08-24 Tom de Vries <tom@codesourcery.com>
12811 PR tree-optimization/65468
12812 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
12815 2015-08-24 Nathan Sidwell <nathan@acm.org>
12817 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
12818 change to nvptx_type_from_mode call. Use arg_promotion for both
12819 split and non-split args.
12821 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12823 * target-insns.def (movstr): New pattern.
12824 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
12825 (expand_movstr): Use targetm rather than HAVE_movstr/
12828 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
12830 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
12833 2015-08-24 Andrew Pinski <apinski@cavium.com>
12835 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
12836 AARCH64_EXTRA_TUNING_OPTION.
12837 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
12839 (aarch64_extra_tuning_flags): Base the shifted value on the index
12840 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
12841 * config/aarch64/aarch64.c: Remove the last argument to
12842 AARCH64_EXTRA_TUNING_OPTION.
12844 2015-08-23 Nathan Sidwell <nathan@acm.org>
12846 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
12848 (nvptx_declare_function_name): Insert formatting tabs for
12851 2015-08-23 Tom de Vries <tom@codesourcery.com>
12853 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
12854 parm_decl, rather than generating a dummy default def in cfun.
12855 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
12856 ssa_name from cfun and child_fn do not share a stmt as def stmt.
12857 (move_stmt_op): Handle PARM_DECl.
12858 (gather_ssa_name_hash_map_from): New function.
12859 (move_sese_region_to_fn): Add default defs for function params, and add
12860 them to vars_map. Release copied ssa names.
12861 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
12863 2015-08-23 Tom de Vries <tom@codesourcery.com>
12865 * doc/sourcebuild.texi: Rename vect_no_int_max with
12866 vect_no_int_min_max. Update description.
12868 2015-08-22 Andrew Pinski <apinski@cavium.com>
12870 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
12871 * config/aarch64/aarch64-protos.h
12872 (aarch64_fusion_pairs_index): New enum.
12873 (aarch64_fusion_pairs): Base the shifted value on the index instead
12874 Rewrite AARCH64_FUSE_ALL to be based on the end index.
12875 of the argument to AARCH64_FUSION_PAIR.
12876 * config/aarch64/aarch64.c: Remove the last argument to
12877 AARCH64_FUSION_PAIR.
12879 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
12881 * dominance.c (new_zero_array): Define.
12882 (dom_info): Redefine as class with proper encapsulation.
12883 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
12885 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
12886 allocations/deallocations. Pass function as parameter (instead of
12888 (dom_info::get_idom): Define accessor method.
12889 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
12890 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
12891 (calculate_dominance_info): Adjust to use dom_info class.
12892 (verify_dominators): Likewise.
12894 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
12896 * print-rtl.c (print_rtx): Check the correct range for
12897 flag_dump_unnumbered_links to behave as documented.
12899 PR rtl-optimization/67227
12900 PR rtl-optimization/64164
12901 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
12902 (nonoverlapping_memrefs_p): Test offsets and sizes when given
12903 identical gimple_reg exprs.
12905 2015-08-21 Nathan Sidwell <nathan@acm.org>
12907 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
12909 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
12910 crtl->stack_alignment_needed to determine alignment.
12911 (nvptx_get_drap_rtx): New.
12912 (TARGET_GET_DRAP_RTX): Override.
12913 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
12915 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12917 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
12919 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
12921 * configure.ac: Remove uwin* cases.
12922 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
12923 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
12924 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
12925 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
12926 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
12927 i[34567]86-*-uwin*, powerpc-*-beos*.
12929 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
12931 * gencodes.c (gencodes): Print the comma for the preceding
12932 enum value rather than the current one. Use aliased enum values
12933 rather than #defines for compiled-out patterns.
12934 (main): Update accordingly. Replace LAST_INSN_CODE with
12936 * lra.c (insn_code_data): Update accordingly.
12937 (finish_insn_code_data_once, get_static_insn_data): Likewise.
12938 * recog.h (target_recog): Likewise.
12939 (preprocess_insn_constraints): Change parameter to unsigned int.
12940 * recog.c (preprocess_insn_constraints): Likewise.
12941 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
12942 * tree-vect-stmts.c (vectorizable_operation): Simplify.
12944 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
12946 PR rtl-optimization/61657
12947 * loop-iv.c (iv_number_of_iterations): Declare up and down as
12948 unsigned. Remove superflous uint64_t cast.
12950 2014-08-21 Felix Yang <felix.yang@huawei.com>
12951 Jiji Jiang <jiangjiji@huawei.com>
12953 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
12954 argument and get builtin function code directly from CALL.
12955 (gimple_stringop_fixed_value): Modified accordingly.
12956 (gimple_stringops_transform, gimple_stringops_values_to_profile):
12957 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
12959 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
12961 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
12963 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12965 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
12967 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
12968 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
12969 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
12970 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
12971 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
12972 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
12973 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
12974 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
12975 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
12976 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
12978 * match.pd (SIN ) : New Operator.
12979 (TAN) : New Operator.
12980 (mult (SQRT@1 @0) @1) : New simplifier.
12981 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
12982 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12983 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
12984 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
12985 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
12986 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
12987 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
12988 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
12989 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
12990 (rdiv @0 (POW:s @1 @2)) : New simplifier.
12992 2015-08-21 Bin Cheng <bin.cheng@arm.com>
12994 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
12995 loop if EXPR is simplified to const value.
12997 2015-08-21 Yury Gribov <y.gribov@samsung.com>
12999 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
13000 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
13002 2015-08-21 Richard Biener <rguenther@suse.de>
13004 PR middle-end/67285
13005 * gimple-fold.c (replace_stmt_with_simplification): Assert
13006 seq is empty when replacing a call with itself but different
13008 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
13009 a call require that it is const.
13011 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13013 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
13014 * builtins.c (get_object_alignment_2): Adjust.
13015 * varasm.c (align_variable): Likewise.
13016 (get_variable_align): Likewise.
13017 (build_constant_desc): Likewise.
13018 (force_const_mem): Likewise.
13019 * doc/tm.texi.in: Likewise.
13020 * doc/tm.texi: Regenerate.
13022 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13024 * genconfig.c (main): Always define HAVE_cc0.
13025 * recog.c (rest_of_handle_peephole2): Adjust.
13027 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13029 * reorg.c (relax_delay_slots): Don't use #if to check value of
13032 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13034 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
13035 * targhooks.c (default_have_conditional_execution): Adjust.
13037 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
13039 * rtl.h (rtvec_all_equal_p): Declare.
13040 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
13041 * rtl.c (rtvec_all_equal_p): New function.
13042 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
13043 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
13044 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
13045 * config/arm/arm.c (neon_vdup_constant): Likewise.
13046 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
13047 * config/tilegx/constraints.md (W, Y): Likewise.
13048 * config/tilepro/constraints.md (W, Y): Likewise.
13049 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
13050 (classify_immediate): Use unwrap_const_vec_duplicate.
13051 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
13052 (reg_or_v2s8bit_operand): Likewise.
13053 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
13054 (reg_or_v4s8bit_operand): Likewise.
13056 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13058 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
13059 (vec_shasigma_be): New #define.
13060 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
13061 (VPMSUMH): Likewise.
13062 (VPMSUMW): Likewise.
13063 (VPMSUMD): Likewise.
13064 (VPMSUM): New BU_P8V_OVERLOAD_2.
13065 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
13066 entries for VEC_MADD and VEC_VPMSUM.
13068 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
13070 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
13071 Multiply argument avr_n_flash by 64 to match unit of "KiB".
13072 (avr_pgm_check_var_decl): Same.
13074 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
13076 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
13077 initialization of HFmode scalar type (float16_t) to...
13078 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
13081 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
13083 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
13084 having an -mfp16-format.
13086 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
13088 * config/i386/predicates.md (vector_all_ones_operand): Use
13089 CONSTM1_RTX to simplify definition.
13091 2015-08-20 Richard Biener <rguenther@suse.de>
13093 * toplev.c (compile_file): Remove loop calling late_global_decl
13095 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
13096 on decls we assembled.
13098 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
13100 * common/config/aarch64/aarch64-common.c
13101 (AARCH64_CPU_NAME_LENGTH): Delete.
13102 (aarch64_option_extension): New.
13103 (all_extensions): Likewise.
13104 (processor_name_to_arch): Likewise.
13105 (arch_to_arch_name): Likewise.
13107 (all_architectures): Likewise.
13108 (aarch64_get_extension_string_for_isa_flags): Likewise.
13109 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
13110 architecture names.
13111 * config/aarch64/aarch64-protos.h
13112 (aarch64_get_extension_string_for_isa_flags): New.
13113 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
13114 (aarch64_option_print): Get the string to print from
13115 aarch64_get_extension_string_for_isa_flags.
13116 (aarch64_declare_function_name): Likewise.
13117 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
13118 (MCPU_TO_MARCH_SPEC): This.
13119 (ASM_CPU_SPEC): Use it.
13120 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
13121 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
13122 (EXTRA_SPEC_FUNCTIONS): Use it.
13124 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
13126 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
13127 expansion when !ISA_HAS_LWL_LWR.
13128 (mips_block_move_straight): Update the size of elements copied to
13129 account for alignment when !ISA_HAS_LWL_LWR.
13130 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
13132 2015-08-19 Jiong Wang <jiong.wang@arm.com>
13134 * expr.c (expand_expr_real_2): Check gimple statement during
13135 LSHIFT_EXPR expand.
13137 2015-08-19 Magnus Granberg <zorry@gentoo.org>
13139 * common.opt (fstack-protector): Initialize to -1.
13140 (fstack-protector-all): Likewise.
13141 (fstack-protector-strong): Likewise.
13142 (fstack-protector-explicit): Likewise.
13143 * configure.ac: Add --enable-default-ssp.
13144 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
13145 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
13147 * doc/install.texi: Document --enable-default-ssp.
13148 * config.in: Regenerated.
13149 * configure: Likewise.
13151 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
13153 PR rtl-optimization/64164
13154 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
13155 (parm_in_stack_slot_p): ... this. Disregard mode, what
13156 matters is whether the parm will live in a pseudo or a stack
13158 (expand_one_ssa_partition): Deal with params without a default
13159 def. Disregard mode.
13160 * cfgexpand.h: Renamed function declaration.
13161 * tree-ssa-coalesce.c: Adjust.
13162 * function.c (split_complex_args): Allocate stack slot for
13163 unassigned parms before splitting.
13164 (parm_in_unassigned_mem_p): New. Use it instead of
13165 parm_maybe_byref_p throughout this file.
13166 (assign_parm_setup_block): Use it. Accept pseudos in the
13167 expand-assigned rtl.
13168 (assign_parm_setup_reg): Drop BLKmode requirement.
13169 (assign_parm_setup_stack): Allocate and fill in the address of
13170 unassigned MEM parms.
13172 2015-08-19 David Sherwood <david.sherwood@arm.com>
13174 * genmodes.c (emit_mode_unit_size_inline): New function.
13175 (emit_mode_unit_precision_inline): New function.
13176 (emit_insn_modes_h): Emit new #define. Emit new functions.
13177 (emit_mode_unit_size): New function.
13178 (emit_mode_unit_precision): New function.
13179 (emit_mode_adjustments): Add mode_unit_size adjustments.
13180 (emit_insn_modes_c): Emit new arrays.
13181 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
13182 use new inline methods.
13184 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13186 * config/aarch64/aarch64.c (bit_count): Delete prototype
13188 (aarch64_print_operand): Use popcount_hwi instead of the above.
13190 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13192 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
13195 2015-08-19 Marek Polacek <polacek@redhat.com>
13197 PR middle-end/67133
13198 * gimple-ssa-isolate-paths.c
13199 (insert_trap_and_remove_trailing_statements): Rename to ...
13200 (insert_trap): ... this. Don't remove trailing statements; split
13202 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
13204 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
13207 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
13208 conditionalize the whole on __GNUC__. Add fallback code
13209 depending neither on undefined nor implementation-defined behaviour.
13211 2015-08-19 Jiong Wang <jiong.wang@arm.com>
13213 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
13214 whitespaces with tab.
13216 2015-08-19 Florian Weimer <fweimer@redhat.com>
13218 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
13219 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
13220 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
13221 Move Name_Ids instantiation to the Prj.Proc package, to avoid
13224 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13226 * config/arm/arm.c (bounds_check): Use %wd print format
13227 for HOST_WIDE_INT arguments.
13229 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
13231 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
13232 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
13233 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
13234 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
13235 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
13236 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
13237 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
13238 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
13239 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
13242 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
13244 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
13245 function.c, graphite-scop-detection.c, haifa-sched.c,
13246 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
13247 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
13248 varasm.c: Remove typedefs of structs.
13250 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
13252 * config/rs6000/altivec.h (vec_adde): New define.
13253 (vec_addec): Likewise.
13254 (vec_double): Likewise.
13255 (vec_bperm): Likewise.
13256 (vec_gb): Likewise.
13257 * config/rs6000/rs6000-builtin.def (ADDE): New
13258 BU_ALTIVEC_OVERLOAD_3.
13260 (DOUBLE): New BU_VSX_OVERLOAD_1.
13261 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
13262 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
13263 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
13264 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
13265 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
13266 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
13267 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
13268 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
13269 and P8V_BUILTIN_VEC_VBPERMQ.
13271 2015-08-18 Jason Merrill <jason@redhat.com>
13273 * print-tree.c (print_node): Handle TREE_BINFO.
13275 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
13277 PR middle-end/36757
13278 * builtins.c (expand_builtin_signbit): Add asserts to make sure
13279 we can expand BUILT_IN_SIGNBIT inline.
13280 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
13281 * doc/extend.texi: Document the type-generic __builtin_signbit.
13283 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
13285 PR rtl-optimization/67218
13286 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
13287 (simplify_unary_operation_1): Use it.
13289 2015-08-18 Marek Polacek <polacek@redhat.com>
13291 PR middle-end/67222
13292 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
13293 if the call isn't valid.
13294 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
13295 gimple_call_builtin_p.
13296 (call_may_clobber_ref_p_1): Likewise.
13297 (stmt_kills_ref_p): Likewise.
13299 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
13301 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
13302 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
13303 (mips_hard_regno_scratch_ok): Likewise.
13304 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
13305 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
13307 2015-08-18 Bin Cheng <bin.cheng@arm.com>
13309 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
13310 (determine_value_range): Call refine_value_range_using_guard for
13311 each loop initial condition to improve value range.
13313 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
13315 * config/i386/i386.c: Remove include of fibheap.h.
13317 2015-08-17 Richard Biener <rguenther@suse.de>
13319 PR tree-optimization/67221
13320 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
13321 (sccvn_dom_walker::before_dom_children): Mark backedges of
13322 non-executable blocks as not executable.
13324 2015-08-17 David Sherwood <david.sherwood@arm.com>
13326 * config/arm/arm.c (neon_element_bits): Replace call to
13327 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
13328 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
13329 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
13330 (neon_vdup_lane<mode>): Likewise.
13331 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
13332 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
13333 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
13334 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
13335 * config/spu/spu.c (arith_immediate_p): Likewise.
13336 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
13337 * expr.c (expand_expr_real_2): Likewise.
13338 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
13339 * simplify-rtx.c (simplify_immed_subreg): Likewise.
13340 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
13341 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
13343 * fold-const.c (fold_binary_loc): Replace call to
13344 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
13345 GET_MODE_UNIT_PRECISION (m).
13347 2015-08-17 Mike Stump <mikestump@comcast.net>
13349 * config/arm/arm.c (arm_block_move_unaligned_straight):
13350 Emit normal move instead of unaligned load when source or destination
13351 are appropriately aligned.
13353 2015-08-17 Richard Biener <rguenther@suse.de>
13354 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13356 PR middle-end/16107
13357 * match.pd (div (coss (op @0) : New simplifier.
13359 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
13361 PR rtl-optimization/64164
13363 PR middle-end/66983
13364 PR rtl-optimization/67000
13365 PR middle-end/67034
13366 PR middle-end/67035
13367 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
13368 * tree-ssa-copyrename.c: Removed.
13369 * opts.c (default_options_table): Drop -ftree-copyrename. Add
13370 -ftree-coalesce-vars.
13371 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
13372 * common.opt (ftree-copyrename): Ignore.
13373 (ftree-coalesce-inlined-vars): Likewise.
13374 * doc/invoke.texi: Remove the ignored options above.
13375 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
13376 * tree-ssa-coalesce.h: ... here.
13377 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
13378 headers required by it.
13379 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
13380 across variables when flag_tree_coalesce_vars. Check register
13381 use and promoted modes to allow coalescing. Do not coalesce
13382 maybe-byref parms with SSA_NAMEs of other variables, or
13383 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
13384 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
13385 with its member functions to tree-ssa-coalesce.c.
13386 (var_map_base_init): Likewise. Renamed to
13387 compute_samebase_partition_bases.
13388 (partition_view_normal): Drop want_bases parameter.
13389 (partition_view_bitmap): Likewise.
13390 * tree-ssa-live.h: Adjust declarations.
13391 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
13392 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
13393 default defs at the entry point.
13394 (dump_part_var_map): New.
13395 (compute_optimized_partition_bases): New, called by...
13396 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
13397 of compute_samebase_partition_bases. Adjust.
13398 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
13399 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
13400 (ssa_default_def_partition): New.
13401 (get_rtl_for_parm_ssa_default_def): New.
13402 (align_local_variable, add_stack_var): Support anonymous SSA
13404 (defer_stack_allocation): Likewise. Declare earlier.
13405 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
13406 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
13407 Do no record deferred-allocation marker in
13408 SA.partition_to_pseudo.
13409 (expand_stack_vars): Adjust check for the marker in it.
13410 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
13411 redundant MEM attr setting.
13412 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
13414 (expand_one_stack_var): ... this. New wrapper to check and
13415 skip already expanded SSA partitions.
13416 (record_alignment_for_reg_var): New, factored out of...
13417 (expand_one_var): ... this.
13418 (expand_one_ssa_partition): New.
13419 (adjust_one_expanded_partition_var): New.
13420 (expand_one_register_var): Check and skip already expanded SSA
13422 (expand_used_vars): Don't create DECLs for anonymous SSA
13423 names. Expand all SSA partitions, then adjust all SSA names.
13424 (pass::execute): Replace the loops that set
13425 SA.partition_to_pseudo from partition leaders and cleared
13426 DECL_RTL for multi-location variables, and that which used to
13427 rename vars and set attrs, with one that clears DECL_RTL and
13428 checks that PARMs and RESULTs default_defs match DECL_RTL.
13429 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
13430 * emit-rtl.c: Include stor-layout.h.
13431 (set_reg_attrs_for_parm): Handle NULL decl.
13432 (set_reg_attrs_for_decl_rtl): Take mode from expression if
13434 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
13435 rather than its possibly-NULL DECL.
13436 * explow.c (promote_ssa_mode): New.
13437 * explow.h (promote_ssa_mode): Declare.
13438 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
13439 (read_complex_part): Export.
13440 * expr.h (read_complex_part): Declare.
13441 * cfgexpand.h (parm_maybe_byref_p): Declare.
13442 * function.c: Include cfgexpand.h.
13443 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
13444 (use_register_for_parm_decl): Wrapper for the above to
13445 special-case the result_ptr.
13446 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
13447 (split_complex_args): Take assign_parm_data_all argument.
13448 Pass it to rtl_for_parm. Set up rtl and context for split
13449 args. Reset complex parm before fetching its default decl
13451 (assign_parms_unsplit_complex): Use the default-def complex
13452 parm rtl if it matches the components.
13453 (assign_parms_augmented_arg_list): Adjust.
13454 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
13455 multiple locations. Recognize split complex args.
13456 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
13457 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
13458 (assign_parm_setup_block): Prefer SSA-assigned location, and
13459 fill in its address if the memory location of a maybe-byref
13460 parm was not assigned by cfgexpand.
13461 (assign_parm_setup_reg): Likewise. Adjust its mode as
13462 needed. Use entry_parm for equiv if stack_parm is NULL. Make
13463 sure passed_pointer parms don't need conversion. Copy address
13464 or value as needed.
13465 (assign_parm_setup_stack): Prefer SSA-assigned location.
13466 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
13467 rtl before testing for pointer bounds. Special-case result_ptr.
13468 (expand_function_start): Maybe reset DECL_RTL of result.
13469 Prefer SSA-assigned location for result and static chain.
13470 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
13471 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
13472 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
13473 anonymous SSA names. Use promote_ssa_mode.
13474 (get_temp_reg): Likewise.
13475 (remove_ssa_form): Adjust.
13476 * stor-layout.c (layout_decl): Don't set mem attributes of
13478 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
13479 and get its reg_usage for reg invalidation.
13480 (compute_bb_dataflow): Pass it insn.
13481 (emit_notes_in_bb): Likewise.
13483 2015-08-14 Marek Polacek <polacek@redhat.com>
13485 * tree-core.h (tree_base): Fix typo.
13487 2015-08-14 Marek Polacek <polacek@redhat.com>
13489 PR middle-end/67133
13490 * gimple.c (infer_nonnull_range_by_attribute): Check that the
13491 nonnull argument position is not outside function arguments.
13493 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
13496 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
13497 'lconst_atomic' with 'const_atomic'.
13498 (atomic_fetch_<optab><mode>): Likewise.
13499 (atomic_<optab>_fetch<mode>): Likewise.
13500 * config/aarch64/iterators.md (lconst-atomic): Move below
13502 (const_atomic): New.
13504 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
13505 Bernd Schmidt <bernds@codesourcery.com>
13507 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
13509 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
13510 (DWARF2_DEBUGGING_INFO): Don't define.
13511 * debug.h (dwarf2_lineno_debug_hooks): Declare.
13512 * toplev.c (process_options): Add a case for it.
13513 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
13514 (dwarf2out_init): Skip most initializations if
13515 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
13517 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
13518 DWARF2_LINENO_DEBUGGING_INFO.
13519 * opts.c (set_debug_level): Likewise.
13521 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
13523 * config/arm/types.md (is_neon_type): Add missing types.
13525 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
13527 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
13529 * config/i386/i386.c (PTA_SKYLAKE): New macros.
13530 (processor_alias_table): Add skylake description.
13531 (enum processor_model): Add skylake processor.
13532 (arch_names_table): Add skylake record.
13533 * doc/invoke.texi: Add skylake item.
13535 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
13537 * ira-int.h: Include recog.h.
13538 * ira-build.c: Don't include recog.h.
13539 * ira-color.c: Likewise.
13540 * ira-conflicts.c: Likewise.
13541 * ira-costs.c: Likewise.
13542 * ira-emit.c: Likewise.
13543 * ira-lives.c: Likewise.
13545 * sched-deps.c: Likewise.
13546 * sel-sched.c: Likewise.
13547 * target-globals.c: Likewise.
13549 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
13552 * reload1.c (elimination_costs_in_insn): Make it obvious to the
13553 compiler that the n_dups and n_operands loop bounds are invariant.
13555 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13557 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
13558 expressions in A and B.
13560 2015-08-13 Richard Biener <rguenther@suse.de>
13562 * tree.c (nonnull_arg_p): Move from ...
13563 * tree-vrp.c (nonnull_arg_p): ... here.
13564 * tree.h (nonnull_arg_p): Declare.
13565 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
13566 here, register ptr != 0 for nonnull_arg_p pointer arguments.
13567 Properly initialize static chain and by-reference result pointer.
13568 (run_scc_vn): Adjust.
13570 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
13572 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
13575 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
13577 * config/aarch64/aarch64-protos.h
13578 (aarch64_gen_atomic_cas): Declare.
13579 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
13580 Choose appropriate instruction pattern for the target.
13581 (aarch64_gen_atomic_cas): New.
13582 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
13583 (atomic_compare_and_swap<mode>_1): Rename to
13584 aarch64_compare_and_swap<mode>. Fix some indentation.
13585 (aarch64_compare_and_swap<mode>_lse): New.
13586 (aarch64_atomic_cas<mode>): New.
13588 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
13590 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
13593 2015-08-13 Richard Biener <rguenther@suse.de>
13595 PR tree-optimization/67191
13596 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
13597 assert we value-numbered last stmts operand because it can validly
13598 trigger for unreachable code.
13600 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13602 PR rtl-optimization/67103
13603 * ifcvt.c (noce_try_store_flag_constants): Move
13604 x = (-(test != 0) & (b - a)) + a transformation to...
13605 (noce_try_cmove): ... Here. Try it if normal conditional
13608 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
13610 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
13612 * config/mips/mips.md (processor): Remove w32 and w64.
13614 2015-08-13 Richard Biener <rguenther@suse.de>
13616 PR tree-optimization/66502
13617 PR tree-optimization/67167
13618 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
13619 backedge arguments.
13620 (vn_phi_lookup): Adjust.
13621 (vn_phi_insert): Likewise.
13622 (visit_phi): Prefer to value-number to another PHI node
13623 over value-numbering to a PHI argument.
13624 (init_scc_vn): Mark DFS back edges.
13626 2015-08-13 Richard Biener <rguenther@suse.de>
13628 * gimple.h (gcall::code_): New constant static member.
13629 (gcond::code_): Likewise.
13630 * gimple.c (gcall::code_): Define.
13631 (gcond::code_): Likewise.
13632 (is_a_helper <const gcond *>): Add.
13633 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
13634 and forward to a new gcall overload with less checking and a
13635 cheaper way to access the operand.
13636 (gimple_call_lhs_ptr): Likewise.
13637 (gimple_call_set_lhs): Likewise.
13638 (gimple_call_internal_p): Likewise.
13639 (gimple_call_with_bounds_p): Likewise.
13640 (gimple_call_set_with_bounds): Likewise.
13641 (gimple_call_internal_fn): Likewise.
13642 (gimple_call_set_ctrl_altering): Likewise.
13643 (gimple_call_ctrl_altering_p): Likewise.
13644 (gimple_call_fntype): Likewise.
13645 (gimple_call_fn): Likewise.
13646 (gimple_call_fn_ptr): Likewise.
13647 (gimple_call_set_fndecl): Likewise.
13648 (gimple_call_fndecl): Likewise.
13649 (gimple_call_chain): Likewise.
13650 (gimple_call_num_args): Likewise.
13651 (gimple_call_arg): Likewise.
13652 (gimple_call_arg_ptr): Likewise.
13653 (gimple_call_set_arg): Likewise.
13654 (gimple_call_noreturn_p): Likewise.
13655 (gimple_cond_code): Likewise.
13656 (gimple_cond_lhs): Likewise.
13657 (gimple_cond_rhs): Likewise.
13658 (gimple_has_lhs): Reduce checking.
13660 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
13662 PR middle-end/25529
13663 * match.pd (div (mult @0 @1) @1) : New simplifier.
13665 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
13668 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
13669 predicate to allow construction of vector constants using the
13670 VSLDOI vector shift instruction.
13672 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
13675 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
13676 the number of bytes to be shifted left and filled in with either
13677 all zero or all one bits.
13678 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
13680 (output_vec_const_move): On power8, generate XXLORC to generate
13681 a vector constant with all 1's. Do a split if we need to use a
13682 VSLDOI instruction.
13684 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
13685 properly test for the MSB.
13687 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
13688 vector constants that can be created with VSLDOI.
13690 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
13693 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13694 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13695 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13696 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13697 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13698 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13699 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13700 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13701 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13703 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
13705 * config/xtensa/constraints.md (define_constraint "Y"): New
13707 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
13708 * config/xtensa/linux.h (ASM_SPEC): Likewise.
13709 * config/xtensa/predicates.md (move_operand): Match constants
13710 and symbols in the presence of TARGET_AUTO_LITPOOLS.
13711 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
13712 immediate references to TLS data.
13713 (xtensa_emit_move_sequence): Don't force constants to memory in
13714 the presence of TARGET_AUTO_LITPOOLS.
13715 (print_operand): Add 'y' format, same as default, but capable of
13716 printing SF mode constants as well.
13717 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
13718 (movsf_internal): Add movi pattern that loads literal.
13719 (movsf, movdf): Don't force constants to memory in the presence
13720 of TARGET_AUTO_LITPOOLS.
13721 (movdf_internal): Add 'Y' constraint.
13722 * config/xtensa/xtensa.opt (mauto-litpools): New option.
13723 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
13725 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
13727 * config/arm/arm-fpus.def: Replace booleans with feature flags.
13729 * config/arm/arm.c (ARM_FPU): Update macro.
13730 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
13731 (TARGET_FP16): Likewise.
13732 (TARGET_CRYPTO): Likewise.
13733 (TARGET_NEON): Likewise.
13734 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
13737 2015-08-12 Tom de Vries <tom@codesourcery.com>
13741 * doc/install.texi: Remove --with_host_libstdcxx item. Update
13742 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
13743 accordingly. Mention default for --with-stage1-ldflags.
13745 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
13747 * config/arm/arm.h (arm_fpu_feature_set): New.
13748 (ARM_FPU_FSET_HAS): New.
13749 (FPU_FL_NONE): New.
13750 (FPU_FL_NEON): New.
13751 (FPU_FL_FP16): New.
13752 (FPU_FL_CRYPTO): New.
13754 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13756 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
13757 after -mcmodel=large -fPIC sorry.
13759 2015-08-12 Richard Biener <rguenther@suse.de>
13761 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
13762 comparison operand order and commutative ternary op operand order.
13763 (sccvn_dom_walker::cond_stack): New state to track temporary
13765 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
13767 (sccvn_dom_walker::record_cond): Add a single temporary conditional
13769 (sccvn_dom_walker::record_conds): Add a temporary conditional
13770 expressions and all related expressions also true/false.
13771 (sccvn_dom_walker::before_dom_children): Record temporary
13772 expressions based on the controlling condition of a single
13773 predecessor. When trying to simplify a conditional statement
13774 lookup expressions we might have inserted earlier.
13776 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
13779 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
13780 to ARM core registers.
13782 2015-08-12 Nathan Sidwell <nathan@acm.org>
13784 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
13785 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
13787 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
13789 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
13790 line with comments.
13791 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
13793 2015-08-12 Richard Biener <rguenther@suse.de>
13795 * gimple.h (remove_pointer): New trait.
13796 (GIMPLE_CHECK2): New inline template function.
13797 (gassign::code_): New constant static member.
13798 (is_a_helper<const gassign *>): Add.
13799 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
13800 and forward to a new gassign overload with less checking and a
13801 cheaper way to access the operand.
13802 (gimple_assign_lhs_ptr): Likewise.
13803 (gimple_assign_set_lhs): Likewise.
13804 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
13806 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
13808 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
13810 (gimple_assign_rhs_code): Likewise.
13811 * gimple.c (gassign::code_): Define.
13813 2015-08-12 Richard Biener <rguenther@suse.de>
13815 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
13816 Eliminate edges marked as not executable by SCCVN.
13817 * tree-ssa-sccvn.c: Include gimple-iterator.h.
13818 (cond_dom_walker): Rename to sccvn_dom_walker.
13819 (sccvn_dom_walker::before_dom_children): Value-number defs
13821 (run_scc_vn): Remove loop value-numbering all SSA names.
13822 Drop not visited SSA names to varying.
13824 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
13826 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
13827 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
13828 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
13829 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
13830 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
13831 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13832 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
13833 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
13834 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
13836 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
13839 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
13840 to enum feature_priority and feature_list.
13841 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
13842 and isa_names_table.
13844 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
13846 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
13847 vect_induction_def.
13849 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
13853 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
13854 account when deciding what was the command-line status.
13856 2015-08-11 Nathan Sidwell <nathan@acm.org>
13858 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
13860 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
13861 we're not the only contributor to target phi.
13863 2015-08-11 Jiong Wang <jiong.wang@arm.com>
13865 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
13868 2015-08-11 Tom de Vries <tom@codesourcery.com>
13870 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
13872 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
13874 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
13876 * config/i386/i386.md (cpu): Remove knl.
13878 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13881 PR middle-end/66332
13882 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
13883 open-coded sequence.
13884 * omp-low.c (oacc_process_reduction_data): Remove handline of
13885 GOMP_DEVICE_HOST_NONSHM.
13887 * lto-streamer-in.c (lto_input_mode_table): Adjust to
13888 GET_MODE_INNER changes.
13890 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
13891 Ilya Verbin <ilya.verbin@intel.com>
13893 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
13895 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
13897 * doc/options.texi (EnabledBy): Document that the argument must be
13899 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
13900 Not enabled by -Wall.
13901 * optc-gen.awk: Give nicer error messages. Detect if the argument
13902 of EnabledBy is not a Common option.
13903 * common.opt (Wnull-dereference): Not enabled by -Wall.
13904 * opt-functions.awk (lang_enabled_by): Nicer error messages.
13906 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
13908 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
13909 model == 0x4f as Broadwell.
13911 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
13913 PR rtl-optimization/67028
13914 * combine.c (simplify_comparison): Fix comment. Rearrange code.
13915 Add test to see if a const_int fits in the new mode.
13917 2015-08-07 DJ Delorie <dj@redhat.com>
13919 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
13921 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
13923 PR rtl-optimization/67029
13924 * ira-color.c: Include "recog.h" before including "ira-int.h".
13925 * target-globals.c: Likewise.
13926 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
13927 adds an alternative_mask argument and use it instead of
13928 preferred_alternatives.
13929 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
13930 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
13931 * sched-deps.c: Include "ira-int.h" after including "ira.h".
13932 (sched_analyze_insn): Update call to
13933 ira_implicitly_set_insn_hard_regs.
13934 * sel-sched.c: Include "ira-int.h" after including "ira.h".
13935 (implicit_clobber_conflict_p): Update call to
13936 ira_implicitly_set_insn_hard_regs.
13938 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13940 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
13942 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
13945 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
13946 currently_expanding_to_rtl is set.
13948 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
13950 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
13951 * configure: Regenerate.
13953 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13954 Jiong Wang <jiong.wang@arm.com>
13956 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
13957 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
13958 (REG_CLASS_NAMES): Likewise.
13959 (REG_CLASS_CONTENTS): Likewise.
13960 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
13961 (aarch64_register_move_cost): Likewise.
13962 (aarch64_load_symref_appropriately): Invoke the new added pattern if
13964 * config/aarch64/constraints.md (Uc0): New constraint.
13966 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13968 * config/aarch64/constraints.md (Usf): Add the test of
13969 aarch64_is_noplt_call_p.
13971 2015-08-06 Jiong Wang <jiong.wang@arm.com>
13973 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
13975 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
13976 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
13977 (call_symbol): Likewise.
13979 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13981 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
13982 for vectorizing multiplication patterns.
13983 * tree-vectorizer.h: Adjust the number of patterns.
13985 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
13987 * config/i386/sse.md (*vec_concatv2df): Declare added
13988 alternatives as sselog type.
13990 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13992 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
13995 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13997 * config/s390/s390.c (s390_expand_tbegin): Expand either
13998 tbegin_1_z13 or tbegin_1 depending on VX flag.
13999 * config/s390/s390.md ("tbegin_1_z13"): New expander.
14001 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14003 * config/s390/s390.opt: Clarify description for -mzvector
14004 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
14007 2015-08-06 Richard Biener <rguenther@suse.de>
14009 * gimple.h (gimple_call_set_fn): Access op member directly.
14010 (gimple_call_chain_ptr): Likewise.
14011 (gimple_call_set_chain): Likewise.
14012 (gimple_cond_lhs_ptr): Likewise.
14013 (gimple_cond_set_lhs): Likewise.
14014 (gimple_cond_rhs_ptr): Likewise.
14015 (gimple_cond_set_rhs): Likewise.
14016 (gimple_cond_true_label): Likewise.
14017 (gimple_cond_set_true_label): Likewise.
14018 (gimple_cond_set_false_label): Likewise.
14019 (gimple_cond_false_label): Likewise.
14020 (gimple_label_label): Likewise.
14021 (gimple_label_set_label): Likewise.
14022 (gimple_goto_set_dest): Likewise.
14023 (gimple_asm_input_op): Likewise.
14024 (gimple_asm_input_op_ptr): Likewise.
14025 (gimple_asm_set_input_op): Likewise.
14026 (gimple_asm_output_op): Likewise.
14027 (gimple_asm_output_op_ptr): Likewise.
14028 (gimple_asm_set_output_op): Likewise.
14029 (gimple_asm_clobber_op): Likewise.
14030 (gimple_asm_set_clobber_op): Likewise.
14031 (gimple_asm_label_op): Likewise.
14032 (gimple_asm_set_label_op): Likewise.
14033 (gimple_switch_index): Likewise.
14034 (gimple_switch_index_ptr): Likewise.
14035 (gimple_return_retval_ptr): Likewise.
14036 (gimple_return_retval): Likewise.
14037 (gimple_return_set_retval): Likewise.
14038 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
14039 (gimple_switch_label): Likewise.
14040 (gimple_switch_set_label): Likewise.
14042 2015-08-06 Richard Biener <rguenther@suse.de>
14044 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
14045 bool comparison canonicalization and restrict to integers.
14047 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
14049 * coretypes.h (enum symbol_visibility): Relocate here.
14050 * flag-types.h (enum symbol_visibility): Remove.
14051 * tree-core.h (enum symbol_visibility): Remove.
14053 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
14056 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
14057 for no_split_stack function attribute along with
14059 (rs6000_expand_split_stack_prologue): Likewise.
14061 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
14062 Jeff Law <law@redhat.com>
14065 * doc/invoke.texi (Wnull-dereference): New.
14066 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
14067 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
14068 Warn for potential NULL dereferences.
14069 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
14070 * ubsan.c (instrument_nonnull_arg): Call
14071 infer_nonnull_range_by_attribute.
14072 (instrument_nonnull_return): Likewise.
14073 * common.opt (Wnull-dereference); New.
14074 * gimple.c (infer_nonnull_range): Remove bool arguments.
14075 (infer_nonnull_range_by_dereference): New.
14076 (infer_nonnull_range_by_attribute): New.
14077 * gimple.h: Update declarations.
14079 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
14081 * gensupport.c (sequence_num): Replace with...
14082 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
14083 ...these new variables.
14084 (init_rtx_reader_args_cb): Update accordingly.
14085 (get_num_code_insns): Likewise.
14086 (read_md_rtx): Rework to use a while loop and get_c_test.
14087 Use the new counters. Remove redundant DEFINE_SUBST case.
14088 * genoutput.c (gen_split): Delete.
14089 (main): Don't call it.
14091 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
14093 * gensupport.h (get_c_test): Declare.
14094 * gensupport.c (get_c_test): New function.
14095 * genconditions.c (main): Use it.
14096 * genrecog.c (validate_pattern): Likewise.
14097 (match_pattern_1): Likewise. Remove c_test argument.
14098 (match_pattern): Update accordingly and remove c_test argument.
14099 (main): Update accordingly.
14101 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
14103 * gensupport.h (get_num_insn_codes): Declare.
14104 * gensupport.c (get_num_insn_codes): New function.
14105 * genattrtab.c (optimize_attrs): Rename max_insn_code to
14107 (main): Likewise. Use get_num_insn_codes.
14108 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
14110 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
14112 PR middle-end/66311
14113 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
14114 is zero- rather than sign-extended.
14116 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
14118 * target-insns.def (can_extend): Delete.
14120 2015-08-05 Richard Biener <rguenther@suse.de>
14122 PR tree-optimization/67121
14123 * tree-if-conv.c (combine_blocks): Clear range-info produced
14124 by stmts no longer executed conditionally.
14126 2015-08-05 Nick Clifton <nickc@redhat.com>
14128 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
14129 to allow identical far pointers to remain.
14131 2015-08-05 Richard Biener <rguenther@suse.de>
14133 PR middle-end/67120
14134 * match.pd: Compare address bases with == if they are decls
14135 or SSA names, not operand_equal_p. Otherwise fail.
14137 2015-08-05 Richard Biener <rguenther@suse.de>
14139 PR tree-optimization/67055
14140 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
14143 * g++.dg/torture/pr67055.C: New testcase.
14145 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
14147 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
14149 (define_attr "enabled"): Handle avx521vl and noavx512vl.
14150 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
14151 AVX-512 alternative out of SSE.
14152 (define_insn "*vec_concatv2df"): Ditto.
14154 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
14156 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
14157 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
14158 CODE_FOR_avx_ptestv4di.
14159 * config/i386/sse.md (define_mode_iterator V_AVX): New.
14160 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
14161 (define_insn "avx_ptest256"): Merge this ...
14162 (define_insn "sse4_1_ptest"): And this ...
14163 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
14165 2015-08-05 Richard Biener <rguenther@suse.de>
14167 PR tree-optimization/67109
14168 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
14169 against too big groups. Print whether this is a load or store
14170 group. Rename from ...
14171 (vect_analyze_group_access): ... this which is now a wrapper
14172 dissolving an invalid group.
14173 (vect_analyze_data_ref_accesses): Print whether this is a load
14176 2015-08-05 Richard Biener <rguenther@suse.de>
14178 PR middle-end/67107
14179 * match.pd: Guard const_binop result checking against NULL_TREE
14182 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
14184 * cse.c (cse_insn): Restoring old behaviour for src_eqv
14185 when dest and value in the REG_EQUAL are same and dest
14186 is STRICT_LOW_PART.
14188 2015-08-04 Anatoly Sokolov <aesok@post.ru>
14190 * config/moxie/moxie.h (PRINT_OPERAND,
14191 PRINT_OPERAND_ADDRESS): Remove macros.
14192 * config/moxie/moxie-protos.h (moxie_print_operand,
14193 moxie_print_operand_address): Remove declaration.
14194 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
14195 TARGET_PRINT_OPERAND_ADDRESS): Define.
14196 (moxie_print_operand, moxie_print_operand_address): Make static.
14198 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
14201 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
14202 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
14204 2015-08-04 Richard Biener <rguenther@suse.de>
14206 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
14208 (dt_operand::gen_gimple_expr): Adjust.
14210 2015-08-04 Richard Biener <rguenther@suse.de>
14212 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
14213 bool compares on RHS.
14214 * match.pd: Add X ==/!= !X is false/true pattern.
14216 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
14218 * config/aarch64/aarch64.c: Change inner loop statement cost
14219 to be consistent with other targets.
14221 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
14223 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
14226 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
14228 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
14229 (machine_function): Remove pseudos field.
14231 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14233 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
14234 Exit early and use target_option_current_node if processing current
14237 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14239 * doc/extend.texi (AArch64 Function Attributes): New node.
14240 (AArch64 Pragmas): Likewise.
14242 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14244 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
14245 Initialize simd builtins if TARGET_SIMD.
14246 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
14247 Make sure that the builtins are initialized only once no matter how
14248 many times the function is called.
14249 (aarch64_init_builtins): Unconditionally initialize crc builtins.
14250 (aarch64_relayout_simd_param): New function.
14251 (aarch64_simd_expand_args): Use above during argument expansion.
14252 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
14253 simd builtins if TARGET_SIMD.
14254 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
14256 (aarch64_relayout_simd_types): Likewise.
14258 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14260 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
14261 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
14262 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
14263 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
14265 (aarch64_reset_previous_fndecl): New function.
14266 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
14268 * config/aarch64/aarch64-c.c: New file.
14269 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
14270 Push and pop options at beginning and end. Remove ifdef
14271 __ARM_FEATURE_CRC32.
14272 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
14273 Add pragma +nothing+simd and +nothing+crypto where appropriate.
14274 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
14275 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
14277 (aarch64_register_pragmas): Likewise.
14278 (aarch64_reset_previous_fndecl): Likewise.
14279 (aarch64_process_target_attr): Likewise.
14280 (aarch64_override_options_internal): Likewise.
14282 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14284 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
14286 (aarch64_can_inline_p): Likewise.
14287 (TARGET_CAN_INLINE_P): Define.
14289 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14291 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
14292 Remove static. Handle OPT_mgeneral_regs_only,
14293 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
14294 OPT_momit_leaf_frame_pointer.
14295 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
14296 (aarch64_attr_opt_type): New enum.
14297 (aarch64_attribute_info): New struct.
14298 (aarch64_handle_attr_arch): New function.
14299 (aarch64_handle_attr_cpu): Likewise.
14300 (aarch64_handle_attr_tune): Likewise.
14301 (aarch64_handle_attr_isa_flags): Likewise.
14302 (aarch64_attributes): New table.
14303 (aarch64_process_one_target_attr): New function.
14304 (num_occurences_in_str): Likewise.
14305 (aarch64_process_target_attr): Likewise.
14306 (aarch64_option_valid_attribute_p): Likewise.
14307 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
14308 * config/aarch64/aarch64-protos.h: Include input.h
14309 (aarch64_handle_option): Declare prototype.
14311 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14313 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
14314 * config/aarch64/aarch64.c: Include target-globals.h
14315 (aarch64_previous_fndecl): New variable.
14316 (aarch64_set_current_function): New function.
14317 (TARGET_SET_CURRENT_FUNCTION): Define.
14319 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14321 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
14322 (explicit_arch): Likewise.
14323 (x_aarch64_isa_flags): Likewise.
14324 (mgeneral-regs-only): Mark as Save.
14325 (mfix-cortex-a53-835769): Likewise.
14326 (mcmodel=): Likewise.
14327 (mstrict-align): Likewise.
14328 (momit-leaf-frame-pointer): Likewise.
14329 (mtls-dialect): Likewise.
14330 (master=): Likewise.
14331 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
14332 (aarch64_isa_flags): Remove extern declaration.
14333 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
14334 to indicate success or failure.
14335 (aarch64_validate_march): Likewise.
14336 (aarch64_validate_mtune): Likewise.
14337 (aarch64_isa_flags): Delete.
14338 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
14339 instead of aarch64_isa_flags.
14340 (aarch64_get_tune_cpu): New function.
14341 (aarch64_get_arch): Likewise.
14342 (aarch64_override_options): Use above and set up explicit_tune_core
14344 (aarch64_print_extension): Move earlier in file. Add isa_flags
14345 argument and use that instead of the global aarch64_isa_flags.
14346 (aarch64_option_save): New function.
14347 (aarch64_option_restore): Likewise.
14348 (aarch64_option_print): Likewise.
14349 (aarch64_declare_function_name): Likewise.
14350 (aarch64_start_file): Delete.
14351 (TARGET_ASM_FILE_START): Do not define.
14352 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
14353 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
14356 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14358 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
14359 flag_omit_leaf_frame_pointer to 2.
14361 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14363 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
14365 (TARGET_FIX_ERR_A53_835769): New macro.
14366 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
14367 handling of opts->x_aarch64_fix_a53_err835769.
14368 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
14369 than aarch64_fix_a53_err835769.
14370 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
14371 * config/aarch64/aarch64-linux.h: Likewise.
14373 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
14375 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
14376 ix86_expand_int_movcc as boolean.
14378 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14380 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
14381 (aarch64_cpu_string): Likewise.
14382 (aarch64_tune_string): Likewise.
14383 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
14384 (aarch64_parse_extension): Return aarch64_parse_opt_result.
14385 Add extra argument to put result into.
14386 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
14387 (aarch64_parse_cpu): Add arguments to put results into. Return
14388 aarch64_parse_opt_result.
14389 (aarch64_parse_tune): Likewise.
14390 (aarch64_override_options_after_change_1): New function.
14391 (aarch64_override_options_internal): New function.
14392 (aarch64_validate_mcpu): Likewise.
14393 (aarch64_validate_march): Likewise.
14394 (aarch64_validate_mtune): Likewise.
14395 (aarch64_override_options): Update to reflect above changes.
14396 Move some logic into aarch64_override_options_internal.
14397 Initialize target_option_default_node and target_option_current_node.
14398 (aarch64_override_options_after_change): Move logic into
14399 aarch64_override_options_after_change_1 and call it with global_options.
14400 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
14401 flag values from that.
14403 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14405 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
14406 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
14407 * config/aarch64/aarch64.c (struct processor): Add arch field.
14408 (all_architectures): Handle above, move above all_cores.
14409 (all_cores): Handle above.
14410 (aarch64_parse_arch): Handle above changes.
14411 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
14412 above. Update comments.
14413 (armv8.1-a): Likewise.
14414 * config/aarch64/aarch64-cores.def: Update according to above.
14415 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
14416 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
14417 aarch64_arch_driver_info.
14419 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14421 * config/aarch64/aarch64.c (struct processor): Add ident field.
14422 Rename core sched_core.
14423 (all_cores): Handle above changes.
14424 (all_architectures): Likewise.
14425 (aarch64_parse_arch): Likewise.
14426 (aarch64_override_options): Likewise.
14428 2015-08-04 Richard Biener <rguenther@suse.de>
14430 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
14431 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
14432 comparisons embedded in [VEC_]COND_EXPRs.
14434 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
14436 * tree-if-conv.c: Fix various typos in comments.
14437 * tree-vect-stmts.c: Likewise.
14439 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
14441 PR tree-optimization/67043
14442 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
14443 preheader after hoisting invariant in it.
14444 (find_defs): Force recomputation of all luids.
14446 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
14448 * config/rs6000/htm.md (tabort.): Restrict the source operand to
14449 using a base register.
14451 2015-08-03 David Malcolm <dmalcolm@redhat.com>
14453 * main.c (main): Pass in NULL for toplev's external_timer.
14454 * timevar.c: Include coretypes.h.
14455 (class timer::named_items): New.
14456 (timer::named_items::named_items): New.
14457 (timer::named_items::~named_items): New.
14458 (timer::named_items::push): New.
14459 (timer::named_items::pop): New.
14460 (timer::named_items::print): New.
14461 (timer::timer): Initialize field "m_jit_client_items".
14462 (timer::~timer): New.
14463 (timer::push): Move bulk of implementation to...
14464 (timer::push_internal): ...here. New function.
14465 (timer::pop): Move bulk of implementation to...
14466 (timer::pop_internal): ...here. New function.
14467 (timer::push_client_item): New.
14468 (timer::pop_client_item): New.
14469 (timer::print_row): New function, taken from timer::print.
14470 (timer::print): Print "GCC items" header if we also have client
14471 items. Move row-printing to timer::print_row. Print any client
14473 (timer::get_topmost_item_name): New method.
14474 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
14475 (TV_JIT_CLIENT_CODE): New.
14476 * timevar.h (timer::push_client_item): New declaration.
14477 (timer::pop_client_item): New declaration.
14478 (timer::get_topmost_item_name): New method.
14479 (timer::push_internal): New declaration.
14480 (timer::pop_internal): New declaration.
14481 (timer::print_row): New declaration.
14482 (timer::named_items): New declaration.
14483 (timer::m_jit_client_items): New field.
14484 (timer): Add friend class named_items.
14485 (auto_timevar::auto_timevar): Add timer param.
14486 (auto_timevar::~auto_timevar): Use field "m_timer".
14487 (auto_timevar::m_timer): New field.
14488 * toplev.c (initialize_rtl): Add g_timer as param when
14489 constructing auto_timevar instance.
14490 (toplev::toplev): Add "external_timer" param, and use it to
14491 initialize the "g_timer" global if non-NULL.
14492 (toplev::~toplev): If this created "g_timer", delete it.
14493 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
14494 with "external_timer" timer *.
14496 2015-08-03 Alexander Basov <coohpt@gmail.com>
14498 PR middle-end/64744
14499 PR middle-end/48470
14500 PR middle-end/43404
14501 * cfgexpand.c (expand_one_var): Add check if stack is going to
14502 be used in naked function.
14503 * expr.c (expand_expr_addr_expr_1): Remove excess checking
14504 whether expression should not reside in MEM.
14505 * function.c (use_register_for_decl): Do not use registers for
14506 non-register things (volatile, float, BLKMode) in naked functions.
14508 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
14511 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
14512 Adjust splits to match new pattern.
14514 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
14516 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
14519 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
14520 point in VSX registers.
14522 * config/rs6000/constraints.md (wb constraint): Document unused
14524 (we constraint): Likewise.
14525 (wo constraint): Likewise.
14526 (wp constraint): New constraint for IEEE 128-bit floating point in
14528 (wq constraint): Likewise.
14530 * config/rs6000/predicates.md (easy_fp_constant): Add support for
14531 IEEE 128-bit floating point in VSX registers.
14532 (easy_scalar_constant): Likewise.
14534 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
14535 constraints (wp, wq) for IEEE 128-bit floating point in VSX
14537 (rs6000_init_hard_regno_mode_ok): Likewise.
14539 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
14540 floating point in VSX registers.
14543 (VSX_M2): Likewise.
14549 (vsx_le_permute_<mode>): Add support to properly swap bytes for
14550 IEEE 128-bit floating point in VSX registers on little endian.
14551 (vsx_le_undo_permute_<mode>): Likewise.
14552 (vsx_le_perm_load_<mode>): Likewise.
14553 (vsx_le_perm_store_<mode>): Likewise.
14554 (splitters for IEEE 128-bit fp moves): Likewise.
14556 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
14559 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
14560 floating point in VSX registers.
14563 * doc/md.text (Machine Constraints): Document wp and wq
14564 constraints on PowerPC.
14566 2015-08-03 Jeff Law <law@redhat.com>
14568 PR middle-end/66314
14569 PR gcov-profile/66899
14570 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
14571 iterate over the jump threading paths when an element in the
14572 jump threading paths array is eliminated.
14574 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
14576 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
14578 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
14580 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
14581 is_use_properly_guarded the variable def_preds. Free its
14582 contents before returning.
14583 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
14584 (is_use_properly_guarded): Replace local variable def_preds with
14585 a parameter. Adjust accordingly. Only update *def_preds if it's
14588 2015-08-03 Richard Biener <rguenther@suse.de>
14590 * genmatch.c (simplify::for_subst_vec): New member.
14591 (binary_ok): New helper for for lowering.
14592 (lower_for): Delay substituting operators into result expressions
14593 if we can merge the results eventually again.
14594 (capture_info::walk_result): Adjust for user_id appearing as
14595 result expression operator.
14596 (expr::gen_transform): Likewise.
14597 (dt_simplify::gen_1): Likewise.
14598 (dt_simplify::gen): Pass not substituted operators to tail
14599 functions or initialize local variable with it.
14600 (decision_tree::gen): Adjust function signature.
14601 * match.pd: Fix tests against global code and add default
14602 cases to switch stmts.
14604 2015-08-03 Richard Biener <rguenther@suse.de>
14606 * genmatch.c (dt_simplify::gen): Create captures array
14607 with an initializer.
14609 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14611 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
14612 the host compiler is affected by placement new aliasing bug.
14613 * configure: Regenerate.
14614 * Makefile.in (ALIASING_FLAGS): New variable.
14615 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
14617 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
14620 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
14621 (negmulsf3_vfp): Likewise.
14622 (muldf3negdf_vfp): Disable for -frounding-math.
14623 (mulsf3negsf_vfp): Likewise.
14624 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
14625 fix MULT cost with -frounding-math.
14627 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14629 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
14630 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
14631 explicit. Prefer to add the flag whenever possible.
14632 (noce_process_if_block): Try noce_try_store_flag_constants before
14635 2015-08-03 Richard Biener <rguenther@suse.de>
14637 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
14638 New hash-map to record equivalent transforms.
14639 (dt_node::analyze): Populate the equivalent transforms hash-map.
14640 (dt_simplify::info): Add reference to hash-map entry.
14641 (dt_simplify::gen): If we have split out a function for the
14642 transform, generate a call to it.
14643 (sinfo_hashmap_traits::hash): New function.
14644 (compare_op): New helper function for ...
14645 (sinfo_hashmap_traits::equal_keys): ... this new function.
14646 (decision_tree::gen): Split out common equivalent transforms
14649 2015-08-03 Richard Biener <rguenther@suse.de>
14651 * gimple-fold.c (fold_gimple_assign): Remove folding of
14652 the comparison in COND_EXPRs.
14654 2015-08-03 Richard Biener <rguenther@suse.de>
14656 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
14657 on the rhs of assignments first simplify the embedded
14660 2015-08-03 Richard Biener <rguenther@suse.de>
14662 PR tree-optimization/66917
14663 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
14665 (DR_VECT_AUX): New macro.
14666 (set_dr_misalignment): Adjust.
14667 (dr_misalignment): Likewise.
14668 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14669 Compute whether the base is at least element aligned.
14670 * tree-vect-stmts.c (ensure_base_align): Adjust.
14671 (vectorizable_store): If the base is not element aligned
14672 preserve alignment of the original access if misalignment is unknown.
14673 (vectorizable_load): Likewise.
14675 2015-08-02 Martin Sebor <msebor@redhat.com>
14677 * c-family/c.opt (-Wframe-address): New warning option.
14678 * doc/invoke.texi (Wframe-address): Document it.
14679 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
14680 Clarify possible effects of calling the functions with non-zero
14681 arguments and mention -Wframe-address.
14682 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
14684 2015-08-01 Michael Collison <michael.collison@linaro.org
14685 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
14687 * config/arm/arm.md (*arm_smin_cmp): New pattern.
14688 (*arm_umin_cmp): Likewise.
14690 2015-08-01 Caroline Tice <cmtice@google.com>
14693 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
14695 (vtbl_find_mangled_name): New function.
14696 (vtbl_register_mangled_name): New function.
14697 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
14698 mangled name in mangled name vectors.
14699 (find_or_create_vtbl_map_node): Ditto.
14700 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
14701 update recursion_depth on function entry; pass it to every recursive
14702 call; automatically exit if depth > 25 (give up looking at that point).
14703 (verify_bb_vtables): Initialize recursion_depth and pass it to
14704 var_is_used_for_virtual_call_p.
14705 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
14706 global variable decls.
14707 (vtbl_register_mangled_name): New extern function decl.
14709 2015-08-01 Tom de Vries <tom@codesourcery.com>
14711 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
14713 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
14715 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
14716 operation_no_trapping_overflow. Allow non-overflow operations.
14717 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
14720 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
14723 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
14725 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14727 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
14728 Enable for TARGET_32BIT.
14729 (*if_move_neg): Likewise.
14731 2015-07-31 Nick Clifton <nickc@redhat.com>
14733 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
14734 Returns true for __model__.
14735 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
14737 2015-07-31 Alan Modra <amodra@gmail.com>
14740 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
14741 (rs6000_emit_prologue): Set it.
14742 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
14744 2015-07-31 Richard Biener <rguenther@suse.de>
14746 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
14747 -> X == (C1 ^ C2) which is already implemented in match.pd.
14748 Remove redundant dispatching to fold_relational_const.
14749 Move unordered self and NaN compares ...
14750 * match.pd: ... as patterns here. Remove some stray captures
14753 2015-07-31 Petr Murzin <petr.murzin@intel.com>
14755 * config/i386/i386.c
14756 (bdesc_special_args): Convert mask type from signed to unsigned for
14758 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
14759 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
14760 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
14761 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
14762 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
14763 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
14764 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
14765 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
14766 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
14767 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
14768 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
14769 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
14770 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
14771 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
14772 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
14773 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
14774 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
14775 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
14776 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
14777 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
14778 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
14779 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
14780 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
14781 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
14782 * config/i386/i386-builtin-types.def
14783 (V16QI_FTYPE_V16SI): Remove.
14784 (V8DF_FTYPE_V8SI): Ditto.
14785 (V8HI_FTYPE_V8DI): Ditto.
14786 (V8SI_FTYPE_V8DI): Ditto.
14787 (V8SF_FTYPE_V8DF): Ditto.
14788 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
14789 (V16HI_FTYPE_V16SI): Ditto.
14790 (V16SF_FTYPE_V16HI): Ditto.
14791 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
14792 (V16SF_FTYPE_V16SI): Ditto.
14793 (V4DI_FTYPE_V4DI): Ditto.
14794 (V16SI_FTYPE_V16SF): Ditto.
14795 (V16SF_FTYPE_FLOAT): Ditto.
14796 (V8DF_FTYPE_DOUBLE): Ditto.
14797 (V8DI_FTYPE_INT64): Ditto.
14798 (V8DI_FTYPE_V4DI): Ditto.
14799 (V16QI_FTYPE_V8DI): Ditto.
14800 (UINT_FTYPE_V4SF): Ditto.
14801 (UINT64_FTYPE_V4SF): Ditto.
14802 (UINT_FTYPE_V2DF): Ditto.
14803 (UINT64_FTYPE_V2DF): Ditto.
14804 (V16SI_FTYPE_V16SI): Ditto.
14805 (V8DI_FTYPE_V8DI): Ditto.
14806 (V16SI_FTYPE_PV4SI): Ditto.
14807 (V16SF_FTYPE_PV4SF): Ditto.
14808 (V8DI_FTYPE_PV2DI): Ditto.
14809 (V8DF_FTYPE_PV2DF): Ditto.
14810 (V4DI_FTYPE_PV2DI): Ditto.
14811 (V4DF_FTYPE_PV2DF): Ditto.
14812 (V16SI_FTYPE_PV2SI): Ditto.
14813 (V16SF_FTYPE_PV2SF): Ditto.
14814 (V8DI_FTYPE_PV4DI): Ditto.
14815 (V8DF_FTYPE_PV4DF): Ditto.
14816 (V8SF_FTYPE_FLOAT): Ditto.
14817 (V4SF_FTYPE_FLOAT): Ditto.
14818 (V4DF_FTYPE_DOUBLE): Ditto.
14819 (V8SF_FTYPE_PV4SF): Ditto.
14820 (V8SI_FTYPE_PV4SI): Ditto.
14821 (V4SI_FTYPE_PV2SI): Ditto.
14822 (V8SF_FTYPE_PV2SF): Ditto.
14823 (V8SI_FTYPE_PV2SI): Ditto.
14824 (V16SF_FTYPE_PV8SF): Ditto.
14825 (V16SI_FTYPE_PV8SI): Ditto.
14826 (V8DI_FTYPE_V8SF): Ditto.
14827 (V4DI_FTYPE_V4SF): Ditto.
14828 (V2DI_FTYPE_V4SF): Ditto.
14829 (V64QI_FTYPE_QI): Ditto.
14830 (V32HI_FTYPE_HI): Ditto.
14831 (V8UHI_FTYPE_V8UHI): Ditto.
14832 (V16UHI_FTYPE_V16UHI): Ditto.
14833 (V32UHI_FTYPE_V32UHI): Ditto.
14834 (V2UDI_FTYPE_V2UDI): Ditto.
14835 (V4UDI_FTYPE_V4UDI): Ditto.
14836 (V8UDI_FTYPE_V8UDI): Ditto.
14837 (V4USI_FTYPE_V4USI): Ditto.
14838 (V8USI_FTYPE_V8USI): Ditto.
14839 (V16USI_FTYPE_V16USI): Ditto.
14840 (V2DF_FTYPE_V2DF_UINT64): Ditto.
14841 (V2DI_FTYPE_V2DF_V2DF): Ditto.
14842 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
14843 (V8DF_FTYPE_V8DF_V8DI): Ditto.
14844 (V4SF_FTYPE_V4SF_UINT64): Ditto.
14845 (V4SI_FTYPE_V4SF_V4SF): Ditto.
14846 (V16SF_FTYPE_V16SF_V16SI): Ditto.
14847 (V64QI_FTYPE_V32HI_V32HI): Ditto.
14848 (V32HI_FTYPE_V16SI_V16SI): Ditto.
14849 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
14850 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
14851 (V32HI_FTYPE_V64QI_V64QI): Ditto.
14852 (V32HI_FTYPE_V32HI_V32HI): Ditto.
14853 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
14854 (V16SI_FTYPE_V16SI_V4SI): Ditto.
14855 (V16SI_FTYPE_V16SI_V16SI): Ditto.
14856 (V16SI_FTYPE_V32HI_V32HI): Ditto.
14857 (V16SI_FTYPE_V16SI_SI): Ditto.
14858 (V8DI_FTYPE_V8DI_V8DI): Ditto.
14859 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
14860 (V8DI_FTYPE_V16SI_V16SI): Ditto.
14861 (V8DI_FTYPE_V8DI_V2DI): Ditto.
14862 (QI_FTYPE_QI): Ditto.
14863 (SI_FTYPE_SI): Ditto.
14864 (DI_FTYPE_DI): Ditto.
14865 (QI_FTYPE_QI_QI): Ditto.
14866 (QI_FTYPE_QI_INT): Ditto.
14867 (HI_FTYPE_HI_INT): Ditto.
14868 (SI_FTYPE_SI_INT): Ditto.
14869 (DI_FTYPE_DI_INT): Ditto.
14870 (HI_FTYPE_V16QI_V16QI): Ditto.
14871 (SI_FTYPE_V32QI_V32QI): Ditto.
14872 (DI_FTYPE_V64QI_V64QI): Ditto.
14873 (QI_FTYPE_V8HI_V8HI): Ditto.
14874 (HI_FTYPE_V16HI_V16HI): Ditto.
14875 (SI_FTYPE_V32HI_V32HI): Ditto.
14876 (QI_FTYPE_V4SI_V4SI): Ditto.
14877 (QI_FTYPE_V8SI_V8SI): Ditto.
14878 (QI_FTYPE_V2DI_V2DI): Ditto.
14879 (QI_FTYPE_V4DI_V4DI): Ditto.
14880 (QI_FTYPE_V8DI_V8DI): Ditto.
14881 (HI_FTYPE_V16SI_V16SI): Ditto.
14882 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
14883 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
14884 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
14885 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
14886 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
14887 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
14888 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
14889 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
14890 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
14891 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
14892 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
14893 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
14894 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
14895 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
14896 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
14897 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
14898 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
14899 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
14900 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
14901 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
14902 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
14903 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
14904 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
14905 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
14906 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
14907 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
14908 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
14909 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
14910 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
14911 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
14912 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
14913 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
14914 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
14915 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
14916 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
14917 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
14918 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
14919 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
14920 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
14921 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
14922 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
14923 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
14924 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
14925 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
14926 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
14927 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
14928 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
14929 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
14930 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
14931 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
14932 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
14933 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
14934 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
14935 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
14936 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
14937 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
14938 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
14939 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
14940 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
14941 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
14942 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
14943 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
14944 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
14945 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
14946 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
14947 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
14948 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
14949 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
14950 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
14951 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
14952 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
14953 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
14954 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
14955 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
14956 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
14957 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
14958 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
14959 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
14960 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
14961 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
14962 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
14963 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
14964 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
14965 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
14966 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
14967 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
14968 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
14969 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
14970 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
14971 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
14972 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
14973 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
14974 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
14975 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
14976 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
14977 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
14978 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
14979 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
14980 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
14981 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
14982 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
14983 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
14984 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
14985 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
14986 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
14987 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
14988 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
14989 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
14990 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
14991 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
14992 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
14993 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
14994 (HI_FTYPE_HI): Ditto.
14995 (HI_FTYPE_V16QI): Ditto.
14996 (SI_FTYPE_V32QI): Ditto.
14997 (DI_FTYPE_V64QI): Ditto.
14998 (QI_FTYPE_V8HI): Ditto.
14999 (HI_FTYPE_V16HI): Ditto.
15000 (SI_FTYPE_V32HI): Ditto.
15001 (QI_FTYPE_V4SI): Ditto.
15002 (QI_FTYPE_V8SI): Ditto.
15003 (HI_FTYPE_V16SI): Ditto.
15004 (QI_FTYPE_V2DI): Ditto.
15005 (QI_FTYPE_V4DI): Ditto.
15006 (QI_FTYPE_V8DI): Ditto.
15007 (V16QI_FTYPE_HI): Ditto.
15008 (V32QI_FTYPE_SI): Ditto.
15009 (V64QI_FTYPE_DI): Ditto.
15010 (V8HI_FTYPE_QI): Ditto.
15011 (V16HI_FTYPE_HI): Ditto.
15012 (V32HI_FTYPE_SI): Ditto.
15013 (V4SI_FTYPE_QI): Ditto.
15014 (V4SI_FTYPE_HI): Ditto.
15015 (V8SI_FTYPE_QI): Ditto.
15016 (V8SI_FTYPE_HI): Ditto.
15017 (V2DI_FTYPE_QI): Ditto.
15018 (V4DI_FTYPE_QI): Ditto.
15019 (HI_FTYPE_HI_HI): Ditto.
15020 (SI_FTYPE_SI_SI): Ditto.
15021 (DI_FTYPE_DI_DI): Ditto.
15022 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
15023 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
15024 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
15025 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
15026 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
15027 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
15028 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
15029 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
15030 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
15031 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
15032 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
15033 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
15034 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
15035 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
15036 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
15037 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
15038 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
15039 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
15040 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
15041 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
15042 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
15043 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
15044 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
15045 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
15046 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
15047 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
15048 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
15049 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
15050 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
15051 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
15052 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
15053 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
15054 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
15055 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
15056 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
15057 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
15058 (V16SI_FTYPE_HI): Ditto.
15059 (V8DI_FTYPE_QI): Ditto.
15060 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
15061 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
15062 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
15063 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
15064 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
15065 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
15066 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
15067 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
15068 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
15069 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
15070 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
15071 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
15072 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
15073 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
15074 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
15075 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
15076 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
15077 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
15078 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
15079 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
15080 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
15081 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
15082 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
15083 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
15084 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
15085 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
15086 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
15087 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
15088 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
15089 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
15090 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
15091 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
15092 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
15093 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
15094 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
15095 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
15096 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
15097 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
15098 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
15099 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
15100 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
15101 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
15102 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
15103 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
15104 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
15105 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
15106 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
15107 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
15108 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
15109 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
15110 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
15111 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
15112 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
15113 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
15114 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
15115 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
15116 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
15117 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
15118 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
15119 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
15120 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
15121 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
15122 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
15123 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
15124 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
15125 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
15126 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
15127 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
15128 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
15129 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
15130 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
15131 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
15132 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
15133 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
15134 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
15135 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
15136 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
15137 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
15138 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
15139 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
15140 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
15141 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
15142 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
15143 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
15144 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
15145 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
15146 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
15147 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
15148 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
15149 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
15150 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
15151 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
15152 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
15153 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
15154 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
15155 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
15156 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
15157 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
15158 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
15159 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
15160 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
15161 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
15162 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
15163 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
15164 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
15165 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
15166 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
15167 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
15168 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
15169 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
15170 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
15171 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
15172 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
15173 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
15174 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
15175 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
15176 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
15177 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
15178 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
15179 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
15180 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
15181 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
15182 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
15183 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
15184 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
15185 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
15186 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
15187 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
15188 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
15189 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
15190 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
15191 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
15192 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
15193 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
15194 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
15195 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
15196 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
15197 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
15198 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
15199 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
15200 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
15201 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
15202 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
15203 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
15204 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
15205 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
15206 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
15207 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
15208 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
15209 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
15210 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
15211 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
15212 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
15213 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
15214 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
15215 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
15216 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
15217 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
15218 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
15219 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
15220 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
15221 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
15222 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
15223 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
15224 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
15225 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
15226 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
15227 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
15228 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
15229 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
15230 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
15231 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
15232 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
15233 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
15234 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
15235 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
15236 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
15237 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
15238 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
15239 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
15240 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
15241 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
15242 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
15243 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
15244 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
15245 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
15246 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
15247 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
15248 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
15249 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
15250 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
15251 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
15252 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
15253 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
15254 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
15255 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
15256 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
15257 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
15258 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
15259 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
15260 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
15261 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
15262 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
15263 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
15264 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
15265 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
15266 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
15267 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
15268 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
15269 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
15270 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
15271 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
15272 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
15273 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
15274 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
15275 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
15276 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
15277 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
15278 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
15279 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
15280 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
15281 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
15282 (QI_FTYPE_V8DF_INT_QI): Ditto.
15283 (QI_FTYPE_V4DF_INT_QI): Ditto.
15284 (QI_FTYPE_V2DF_INT_QI): Ditto.
15285 (HI_FTYPE_V16SF_INT_HI): Ditto.
15286 (QI_FTYPE_V8SF_INT_QI): Ditto.
15287 (QI_FTYPE_V4SF_INT_QI): Ditto.
15288 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
15290 2015-07-31 Richard Biener <rguenther@suse.de>
15292 * gimple-fold.c (fold_gimple_assign): Remove folding of
15295 2015-07-31 Tom de Vries <tom@codesourcery.com>
15297 PR tree-optimization/66846
15298 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
15299 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
15300 (expand_omp_target) [ENABLE_CHECKING]: Same.
15301 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
15302 cfun if !LOOPS_NEED_FIXUP.
15303 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
15304 that omp_for already has its own loop struct.
15305 * tree-parloops.c (create_phi_for_local_result)
15306 (create_call_for_reduction): Handle simple latch bb.
15307 (create_parallel_loop): Add simple latch bb to preserve
15308 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
15309 (gen_parallel_loop): Remove call to cancel_loop_tree.
15310 (parallelize_loops): Skip loops that are inner loops of parallelized
15312 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
15313 verify_loop_structure.
15315 2015-07-30 Anatoly Sokolov <aesok@post.ru>
15317 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
15318 * config/v850/v850.md (RV_REGNUM): New constants.
15319 * config/v850/v850.c (v850_libcall_value): New functions.
15320 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
15321 (TARGET_LIBCALL_VALUE): Define.
15323 2015-07-30 Anatoly Sokolov <aesok@post.ru>
15325 * rtl.h (lowpart_subreg): Move in file.
15326 * loop-iv.c (lowpart_subreg): Move to...
15327 * simplify-rtx.c (lowpart_subreg): ...here.
15328 (simplify_binary_operation_1): Use lowpart_subreg instead of
15329 simplify_gen_subreg.
15330 * expr.c (expand_expr_real_2): Ditto.
15331 * emit-rtl.c (gen_lowpart_common): Ditto.
15332 * combine.c (gen_lowpart_for_combine): Ditto.
15333 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
15334 expand_debug_source_expr): Ditto.
15336 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
15338 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
15339 (expand_builtin_atomic_clear): Remove support for atomic_clear
15342 2015-07-30 Richard Biener <rguenther@suse.de>
15344 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
15345 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
15346 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
15347 redundant operand canonicalization.
15349 2015-07-30 David Sherwood <david.sherwood@arm.com>
15351 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
15352 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
15353 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
15354 * config/arm/arm.c (neon_valid_immediate): Likewise.
15355 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
15356 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
15357 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
15358 (expand_vec_perm_vpshufb2_vpermq): Likewise.
15359 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
15360 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
15361 * config/i386/sse.md
15362 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
15363 (*ssse3_palignr<mode>_perm): Likewise.
15364 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
15365 * config/spu/spu.c (arith_immediate_p): Likewise.
15366 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
15367 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
15369 2015-07-30 Richard Biener <rguenther@suse.de>
15371 * genmatch.c (decision_tree::gen_gimple): Merge with ...
15372 (decision_tree::gen_generic): ... this into ...
15373 (decision_tree::gen): ... this.
15374 (main): Adjust callers.
15376 2015-07-30 Richard Biener <rguenther@suse.de>
15378 * genmatch.c (verbose): New global.
15379 (warning_at): Add overload with source_location.
15380 (capture_info::capture_info): Add bool whether generating gimple
15381 or generic. Add gimple member.
15382 (capture_info::cinfo): Add capture member.
15383 (capture_info::walk_match): Record capture. Warn on
15384 non-captured leafs.
15385 (capture_info::walk_c_expr): Add more fragments captures cannot
15386 escape through. Warn on escaped captures.
15387 (dt_simplify::gen_1): Warn on operands we force to have no
15389 (main): Initialize verbose.
15390 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
15392 2015-07-30 Richard Biener <rguenther@suse.de>
15394 PR middle-end/67053
15395 * match.pd: Allow both operands to independently have conversion
15396 when simplifying compares of addresses.
15398 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
15402 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
15403 around those cases that need one.
15405 2015-07-29 Aditya Kumar <hiraditya@msn.com>
15407 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
15409 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
15411 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
15412 New. Copied from config/i386/gnu-user.h.
15413 (ASM_COMMENT_START): Likewise.
15414 (DBX_REGISTER_NUMBER): Likewise.
15416 2015-07-29 Richard Biener <rguenther@suse.de>
15418 * gimple-fold.c (fold_gimple_cond): Remove.
15419 (fold_stmt_1): Do not call it.
15421 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
15423 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
15424 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
15426 * config/aarch64/aarch64-modes.def: Add HFmode.
15428 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
15429 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
15431 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
15432 aarch64_promoted_type): New.
15434 (aarch64_float_const_representable_p): Disable HFmode.
15435 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
15436 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
15437 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
15439 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
15440 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
15442 * config/aarch64/iterators.md (GPF_F16): New.
15444 2015-07-29 Richard Biener <rguenther@suse.de>
15446 * match.pd: Merge address comparison patterns and make them
15447 handle some more cases.
15449 2015-07-29 Richard Biener <rguenther@suse.de>
15451 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
15452 (parser::parse_capture): Add bool argument on whether to reject
15454 (parser::parse_expr): Adjust.
15455 (parser::parse_op): Likewise.
15456 (parser::parse_pattern): Likewise.
15458 2015-07-29 Richard Biener <rguenther@suse.de>
15460 * gimple-fold.c (has_use_on_stmt): New function.
15461 (replace_stmt_with_simplification): Use it to allow
15462 abnormals originally referenced in the stmt.
15463 (fold_stmt_1): Canonicalize operand order.
15465 2015-07-28 David Sherwood <david.sherwood@arm.com>
15467 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
15468 GET_MODE_INNER unconditionally.
15469 * config/spu/spu.c (arith_immediate_p): Likewise.
15470 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
15471 * expmed.c (synth_mult): Remove check for VOIDmode result from
15473 (expand_mult_const): Likewise.
15474 * fold-const.c (fold_binary_loc): Replace call to element_precision
15475 with call to GET_MODE_PRECISION.
15476 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
15478 (emit_mode_inner): Likewise.
15479 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
15481 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
15482 (GET_MODE_UNIT_PRECISION): Likewise.
15483 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
15484 * simplify-rtx.c (simplify_immed_subreg): Likewise.
15485 * stor-layout.c (bitwise_type_for_mode): Update assert.
15486 (element_precision): Remove.
15488 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15490 * target-insns.def (reload_load_address): New targetm instruction
15492 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
15494 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15496 * target-insns.def (atomic_test_and_set): New targetm instruction
15498 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
15499 HAVE_*/gen_* interface.
15501 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15503 * target-insns.def (can_extend, ptr_extend): New targetm instruction
15505 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
15506 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
15507 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
15508 * rtlanal.c (nonzero_bits1): Likewise.
15509 (num_sign_bit_copies1): Likewise.
15511 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15513 * target-insns.def (eh_return): New targetm instruction pattern.
15514 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
15516 * function.c (thread_prologue_and_epilogue_insns): Remove
15517 preprocessor condition.
15519 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15521 * target-insns.def (indirect_jump): New targetm instruction pattern.
15522 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
15525 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
15527 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
15528 instead of nonimmediate_operand. Remove C condiition.
15530 2015-07-28 Richard Biener <rguenther@suse.de>
15532 * match.pd: Add more simplification of address comparisons.
15534 2015-07-28 Richard Biener <rguenther@suse.de>
15536 * match.pd: Re-order two cases in comparison with max/min
15537 value simplification to make it apply for bools.
15539 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15541 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
15542 Handle simple SIGN_EXTEND or ZERO_EXTEND.
15543 (aarch64_rtx_costs): Properly strip extend or extract before
15544 passing down to rtx costs again.
15546 2015-07-28 Nick Clifton <nickc@redhat.com>
15548 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
15549 Optimizes the case where -mes0 is active and a constant symbolic
15551 * config/rl78/rl78-protos.h: Prototype the new function.
15552 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
15554 2015-07-28 Tom de Vries <tom@codesourcery.com>
15556 * tree-parloops.c (reduc_stmt_res): New function.
15557 (initialize_reductions, add_field_for_reduction)
15558 (create_phi_for_local_result, create_loads_for_reductions)
15559 (create_stores_for_reduction, build_new_reduction): Handle case that
15560 reduc_stmt is a phi.
15561 (gather_scalar_reductions): Allow double_reduc reductions.
15563 2015-07-28 Richard Biener <rguenther@suse.de>
15565 * fold-const.c (fold_comparison): Remove equality folding
15566 of decl addresses ...
15567 * match.pd: ... here and merge with existing pattern.
15569 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15571 PR tree-optimization/66828
15572 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
15573 from int64_t to uint64_t.
15575 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
15577 * opts-common.c (read_cmdline_option): List DriverOnly enum values
15578 as valid only in the error message of the driver, not in the
15579 messages of the language compilers.
15581 2015-07-27 Tom de Vries <tom@codesourcery.com>
15583 * tree-parloops.c (gather_scalar_reductions): Simplify function
15586 2015-07-27 Marek Polacek <polacek@redhat.com>
15588 * ipa-devirt.c (types_same_for_odr): Fix typo.
15590 2015-07-27 Jason Merrill <jason@redhat.com>
15593 * dwarf2out.c (gen_inlined_subroutine_die): Check
15594 cgraph_function_possibly_inlined_p.
15596 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
15598 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
15599 Place integer variant first.
15600 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
15602 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
15605 * config/arm/arm-builtins.c (enum arm_builtins):
15606 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
15607 (ARM_BUILTIN_NEON_BASE): Rename macro to....
15608 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
15609 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
15610 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
15612 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
15615 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
15616 Add qualifier_lane_index.
15617 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
15618 (arm_getlane_qualifiers): Use qualifier_lane_index.
15619 (arm_lanemac_qualifiers): Rename to...
15620 (arm_mac_n_qualifiers): ...this.
15621 (LANEMAC_QUALIFIERS): Rename to...
15622 (MAC_N_QUALIFIERS): ...this.
15623 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
15624 (arm_setlane_qualifiers): Use qualifier_lane_index.
15625 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
15626 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
15627 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
15628 (arm_expand_neon_builtin): Handle qualifier_lane_index.
15630 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
15631 * config/arm/arm.c (bounds_check): Likewise, improve error message.
15632 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
15633 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
15634 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
15635 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
15636 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
15637 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
15638 qualifiers to TERNOP_IMM.
15639 (vdup_lane): Change qualifiers to GETLANE.
15640 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
15641 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
15642 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
15643 vqdmlsl_n): Change qualifiers to MAC_N.
15645 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
15646 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
15647 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
15648 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
15649 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
15650 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
15651 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
15652 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
15653 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
15654 Remove call to neon_lane_bounds.
15656 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
15658 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
15659 Place integer variant first.
15661 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
15663 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
15664 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
15665 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
15666 for armv6kz targets.
15667 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
15668 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
15669 (FL_FOR_ARCH6ZK): Remove.
15670 (FL_FOR_ARCH6KZ): New.
15671 (arm_arch6zk): New declaration.
15672 * config/arm/arm-tables.opt: Regenerate.
15673 * config/arm/arm.c (arm_arch6kz): New.
15674 (arm_option_override): Set arm_arch6kz.
15675 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
15676 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
15677 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
15679 2015-07-27 Marek Polacek <polacek@redhat.com>
15683 * doc/invoke.texi: Document -Wtautological-compare.
15685 2015-07-27 Richard Biener <rguenther@suse.de>
15687 * genmatch.c (decision_tree::gen_gimple): Split out large
15688 subtrees into separate functions.
15689 (decision_tree::gen_generic): Likewise.
15691 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
15693 * config/alpha/alpha.c: Use SUBREG_P predicate.
15694 * config/alpha/predicates.md: Ditto.
15696 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
15698 * config.host (s390*-*-*): Include driver-native.c only when
15699 building with s390* as host *and* target.
15701 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
15704 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
15705 T bit register modified_between_p check.
15707 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15709 * config/i386/i386.c: Use SUBREG_P predicate.
15710 * config/i386/i386.md: Ditto.
15711 * config/i386/sse.md: Ditto.
15712 * config/i386/predicates.md: Ditto.
15714 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15717 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
15718 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
15720 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15722 * Makefile.in: Remove use of TREEBROWSER.
15723 * config.in: Regenerated.
15724 * configure: Regenerated.
15725 * configure.ac: Remove definition of TREEBROWSER.
15726 * tree-browser.c: Removed.
15727 * tree-browser.def: Removed.
15729 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15731 * graphite-scop-detection.c: Include gimple-pretty-print.h.
15732 (stmt_simple_for_scop_p): Print when a stmt is not handled in
15734 (scopdet_basic_block_info): Print when a loop or bb cannot be
15735 represented in Graphite.
15737 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15740 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
15741 execution guard when min_size is less than size_needed.
15743 2015-07-25 Sebastian Pop <s.pop@samsung.com>
15745 * doc/install.texi: Document supported versions of ISL.
15747 2015-07-25 Jeff Law <law@redhat.com>
15751 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15752 unable to find X NE 0 in the tables, return X as the simplified
15754 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15755 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15756 to VISISTED_BBS. */
15757 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15758 after removing the control flow statement and unnecessary edges.
15760 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
15763 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
15765 PR rtl-optimization/64164
15766 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
15767 * tree-ssa-copyrename.c: Removed.
15768 * opts.c (default_options_table): Drop -ftree-copyrename. Add
15769 -ftree-coalesce-vars.
15770 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
15771 * common.opt (ftree-copyrename): Ignore.
15772 (ftree-coalesce-inlined-vars): Likewise.
15773 * doc/invoke.texi: Remove the ignored options above.
15774 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
15775 * tree-ssa-coalesce.h: ... here.
15776 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
15777 headers required by it.
15778 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
15779 across variables when flag_tree_coalesce_vars. Check register
15780 use and promoted modes to allow coalescing. Moved to
15781 tree-ssa-coalesce.c.
15782 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
15783 with its member functions to tree-ssa-coalesce.c.
15784 (var_map_base_init): Likewise. Renamed to
15785 compute_samebase_partition_bases.
15786 (partition_view_normal): Drop want_bases parameter.
15787 (partition_view_bitmap): Likewise.
15788 * tree-ssa-live.h: Adjust declarations.
15789 * tree-ssa-coalesce.c: Include explow.h.
15790 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
15791 default defs at the entry point.
15792 (dump_part_var_map): New.
15793 (compute_optimized_partition_bases): New, called by...
15794 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
15795 of compute_samebase_partition_bases. Adjust.
15796 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
15797 * cfgexpand.c (leader_merge): New.
15798 (get_rtl_for_parm_ssa_default_def): New.
15799 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
15800 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
15801 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
15802 redundant MEM attr setting.
15803 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
15805 (expand_one_stack_var): ... this. New wrapper to check and
15806 skip already expanded SSA partitions.
15807 (record_alignment_for_reg_var): New, factored out of...
15808 (expand_one_var): ... this.
15809 (expand_one_ssa_partition): New.
15810 (adjust_one_expanded_partition_var): New.
15811 (expand_one_register_var): Check and skip already expanded SSA
15813 (expand_used_vars): Don't create DECLs for anonymous SSA
15814 names. Expand all SSA partitions, then adjust all SSA names.
15815 (pass::execute): Replace the loops that set
15816 SA.partition_to_pseudo from partition leaders and cleared
15817 DECL_RTL for multi-location variables, and that which used to
15818 rename vars and set attrs, with one that clears DECL_RTL and
15819 checks that PARMs and RESULTs default_defs match DECL_RTL.
15820 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
15821 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
15822 * explow.c (promote_ssa_mode): New.
15823 * explow.h (promote_ssa_mode): Declare.
15824 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
15825 * function.c: Include cfgexpand.h.
15826 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
15827 (use_register_for_parm_decl): Wrapper for the above to
15828 special-case the result_ptr.
15829 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
15830 (split_complex_args): Take assign_parm_data_all argument.
15831 Pass it to rtl_for_parm. Set up rtl and context for split
15833 (assign_parms_augmented_arg_list): Adjust.
15834 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
15835 multiple locations. Recognize split complex args.
15836 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
15837 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
15838 (assign_parm_setup_block): Prefer SSA-assigned location.
15839 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
15840 if stack_parm is NULL.
15841 (assign_parm_setup_stack): Prefer SSA-assigned location.
15842 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
15843 rtl before testing for pointer bounds. Special-case result_ptr.
15844 (expand_function_start): Maybe reset DECL_RTL of result.
15845 Prefer SSA-assigned location for result and static chain.
15846 Factor out DECL_RESULT and SET_DECL_RTL.
15847 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
15848 anonymous SSA names. Use promote_ssa_mode.
15849 (get_temp_reg): Likewise.
15850 (remove_ssa_form): Adjust.
15851 * stor-layout.c (layout_decl): Don't set mem attributes of
15853 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
15854 and get its reg_usage for reg invalidation.
15855 (compute_bb_dataflow): Pass it insn.
15856 (emit_notes_in_bb): Likewise.
15858 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
15860 * config/i386/i386.c (ix86_va_start): Remove
15861 unneeded !TARGET_64BIT check.
15862 (ix86_gimplify_va_arg): Ditto.
15864 2015-07-24 Tom de Vries <tom@codesourcery.com>
15866 * graphite-sese-to-poly.c (build_poly_scop): Always call
15867 rewrite_commutative_reductions_out_of_ssa.
15869 2015-07-24 Tom de Vries <tom@codesourcery.com>
15871 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
15872 flag_associative_math to FLOAT_TYPE_P. Honour
15873 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
15875 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15878 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
15879 and "%qD" in warning_at instead of "%q+D" in warning.
15881 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15883 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
15884 (ix86_function_abi): Cleanup.
15886 2015-07-24 Michael Darling <darlingm@gmail.com>
15889 * acinclude.m4: Reflects renaming of configure.in to configure.ac
15890 * configure: Likewise
15891 * configure.ac: Likewise
15892 * doc/install.texi: Likewise
15893 * doc/tm.texi: Likewise
15894 * doc/tm.texi.in: Likewise
15896 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15898 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
15899 manually swapping values.
15900 * cse.c (fold_rtx): Likewise.
15901 * lra-eliminations.c (form_sum): Likewise.
15903 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
15906 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
15907 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
15908 (*jcc_1, *jcc_2, jump, simple_return_internal)
15909 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
15910 Set length_nobnd attribute instead of length attribute.
15911 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
15912 (length_nobnd): Remove attribute.
15913 (length): Remove length_nobnd processing.
15915 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
15917 * gimplify.c (omp_default_clause): New function. Reorganize flow
15918 for clarity. Broken out of ...
15919 (omp_notice_variable): ... here.
15921 2015-07-24 Gary Funck <gary@intrepid.com>
15923 PR middle-end/66984
15924 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
15925 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
15927 2015-07-24 Tom de Vries <tom@codesourcery.com>
15929 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
15930 exit-first loop transform.
15932 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
15935 * tree-cfg.c (struct replace_decls_d): New struct.
15936 (replace_block_vars_by_duplicates_1): New function.
15937 (replace_block_vars_by_duplicates): Use it to replace the decls
15938 in the value exprs by duplicates.
15940 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15942 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
15943 -shared, -symbolic, -rdynamic.
15945 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
15948 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
15949 -dynamic-linker within %{!static %{!shared, and -rdynamic within
15952 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
15955 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
15956 edge summary is available.
15958 2015-07-24 Richard Biener <rguenther@suse.de>
15960 * genmatch.c (struct dt_node): Add statistic fields.
15961 (dt_node::analyze): New method.
15962 (decision_tree::gen_gimple): Call analyze on the root node
15963 and print statistics to stderr.
15964 (decision_tree::gen_generic): Likewise.
15966 2015-07-24 Richard Biener <rguenther@suse.de>
15968 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
15969 against the highest or lowest possible integer ...
15970 * match.pd: ... as patterns here.
15972 2015-07-24 Richard Biener <rguenther@suse.de>
15974 * genmatch.c (struct capture_info): Add same_as field.
15975 (capture_info::capture_info): Initialize same_as.
15976 (capture_info::walk_match): Compute same_as.
15977 (capture_info::walk_result): Compute stuff for the leader.
15978 (capture_info::walk_c_expr): Likewise.
15979 (dt_simplify::gen_1): Only look at leaders when deciding
15980 to force no side-effects or emit side-effects of omitted operands.
15982 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15984 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
15985 reg note to the GPR -> FPR save instructions.
15987 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
15989 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
15991 (s390_expand_insv): Don't generate risbg pattern for constant zero
15993 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
15994 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
15997 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
15999 * config/s390/s390.c (s390_reorg): Clean up handling of processors
16002 (s390_issue_rate): Likewise.
16003 (s390_sched_reorder): Likewise.
16004 (s390_sched_variable_issue): Likewise.
16005 (s390_loop_unroll_adjust): Likewise.
16006 (s390_option_override): Likewise.
16008 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
16010 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
16011 processor capabilities with -march=native.
16012 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
16013 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
16014 (S390_TARGET_BITS_STRING): Macro to simplify specs.
16016 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
16018 * config/s390/s390.c (s390_issue_rate): Handle
16019 PROCESSOR_2094_Z9_EC.
16020 (s390_option_override): Likewise.
16021 (s390_adjust_priority): Likewise.
16023 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
16025 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
16026 when cross compiling.
16028 2015-07-24 Richard Biener <rguenther@suse.de>
16030 * fold-const.c (maybe_canonicalize_comparison_1): Move
16031 A code CST canonicalization ...
16032 * match.pd: ... to a pattern here.
16034 2015-07-24 Jiong Wang <jiong.wang@arm.com>
16037 2015-07-22 Jiong Wang <jiong.wang@arm.com>
16039 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
16040 (HONOR_REG_ALLOC_ORDER): Define.
16042 2015-07-24 Richard Biener <rguenther@suse.de>
16044 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
16045 * fold-const.c (fold_comparison): Move parameter does not
16046 alias &local simplification ...
16047 * match.pd: ... as a pattern here.
16049 2015-07-24 Richard Biener <rguenther@suse.de>
16051 * gimple-fold.c (replace_stmt_with_simplification): Special-case
16052 valueizing call operands.
16053 * gimple-match-head.c (maybe_push_res_to_seq): Take
16054 number of call arguments from ops array.
16055 (do_valueize): New function.
16056 (gimple_simplify): Return true if valueization changed
16057 any operand even if the result didn't simplify further.
16059 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16061 PR middle-end/25530
16062 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
16064 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16066 PR middle-end/25529
16067 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
16069 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16071 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
16074 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16076 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
16079 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
16081 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
16082 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
16084 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
16085 ms_va_list_type_node initialization.
16087 2015-07-23 Jeff Law <law@redhat.com>
16090 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
16091 unable to find X NE 0 in the tables, return X as the simplified
16093 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
16094 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
16095 to VISISTED_BBS. */
16096 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
16097 after removing the control flow statement and unnecessary edges.
16099 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
16101 * tree-pass.h (get_current_pass_name): Removed.
16103 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
16105 PR rtl-optimization/64164
16106 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16107 * tree-ssa-copyrename.c: Removed.
16108 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16109 -ftree-coalesce-vars.
16110 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16111 * common.opt (ftree-copyrename): Ignore.
16112 (ftree-coalesce-inlined-vars): Likewise.
16113 * doc/invoke.texi: Remove the ignored options above.
16114 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16115 * tree-ssa-coalesce.h: ... here.
16116 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16117 headers required by it.
16118 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16119 across variables when flag_tree_coalesce_vars. Check register
16120 use and promoted modes to allow coalescing. Moved to
16121 tree-ssa-coalesce.c.
16122 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16123 with its member functions to tree-ssa-coalesce.c.
16124 (var_map_base_init): Likewise. Renamed to
16125 compute_samebase_partition_bases.
16126 (partition_view_normal): Drop want_bases parameter.
16127 (partition_view_bitmap): Likewise.
16128 * tree-ssa-live.h: Adjust declarations.
16129 * tree-ssa-coalesce.c: Include explow.h.
16130 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16131 default defs at the entry point.
16132 (dump_part_var_map): New.
16133 (compute_optimized_partition_bases): New, called by...
16134 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16135 of compute_samebase_partition_bases. Adjust.
16136 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16137 * cfgexpand.c (leader_merge): New.
16138 (get_rtl_for_parm_ssa_default_def): New.
16139 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16140 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16141 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16142 redundant MEM attr setting.
16143 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16145 (expand_one_stack_var): ... this. New wrapper to check and
16146 skip already expanded SSA partitions.
16147 (record_alignment_for_reg_var): New, factored out of...
16148 (expand_one_var): ... this.
16149 (expand_one_ssa_partition): New.
16150 (adjust_one_expanded_partition_var): New.
16151 (expand_one_register_var): Check and skip already expanded SSA
16153 (expand_used_vars): Don't create DECLs for anonymous SSA
16154 names. Expand all SSA partitions, then adjust all SSA names.
16155 (pass::execute): Replace the loops that set
16156 SA.partition_to_pseudo from partition leaders and cleared
16157 DECL_RTL for multi-location variables, and that which used to
16158 rename vars and set attrs, with one that clears DECL_RTL and
16159 checks that PARMs and RESULTs default_defs match DECL_RTL.
16160 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16161 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
16162 * explow.c (promote_ssa_mode): New.
16163 * explow.h (promote_ssa_mode): Declare.
16164 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16165 * function.c: Include cfgexpand.h.
16166 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16167 (use_register_for_parm_decl): Wrapper for the above to
16168 special-case the result_ptr.
16169 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16170 (split_complex_args): Take assign_parm_data_all argument.
16171 Pass it to rtl_for_parm. Set up rtl and context for split
16173 (assign_parms_augmented_arg_list): Adjust.
16174 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16175 multiple locations. Recognize split complex args.
16176 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16177 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16178 (assign_parm_setup_block): Prefer SSA-assigned location.
16179 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
16180 if stack_parm is NULL.
16181 (assign_parm_setup_stack): Prefer SSA-assigned location.
16182 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16183 rtl before testing for pointer bounds. Special-case result_ptr.
16184 (expand_function_start): Maybe reset DECL_RTL of result.
16185 Prefer SSA-assigned location for result and static chain.
16186 Factor out DECL_RESULT and SET_DECL_RTL.
16187 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16188 anonymous SSA names. Use promote_ssa_mode.
16189 (get_temp_reg): Likewise.
16190 (remove_ssa_form): Adjust.
16191 * stor-layout.c (layout_decl): Don't set mem attributes of
16193 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16194 and get its reg_usage for reg invalidation.
16195 (compute_bb_dataflow): Pass it insn.
16196 (emit_notes_in_bb): Likewise.
16198 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
16201 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
16203 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
16204 (rs6000_emit_2insn_and): Handle dot forms.
16205 * config/rs6000/rs6000.md (and<mode>3): Adjust.
16206 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
16207 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
16209 2015-07-23 Richard Biener <rguenther@suse.de>
16211 * generic-match-head.c: Include cgraph.h.
16212 * gimple-match-head.c: Likewise.
16213 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
16215 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
16216 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
16219 2015-07-23 Richard Biener <rguenther@suse.de>
16221 * gimple-fold.c (fold_gimple_cond): Do not require folding
16222 results to pass valid_gimple_rhs_p.
16223 * tree-cfg.h (fold_cond_expr_cond): Remove.
16224 * tree-cfg.c (fold_cond_expr_cond): Likewise.
16225 (make_edges): Do not call it.
16226 * tree-inline.c (tree_function_versioning): Likewise.
16228 2015-07-23 Tom de Vries <tom@codesourcery.com>
16230 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
16231 vect_force_simple_reduction.
16232 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
16233 (vect_is_simple_reduction_1): Add and handle
16234 need_wrapping_integral_overflow parameter.
16235 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
16236 need_wrapping_integral_overflow parameter.
16237 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
16238 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
16241 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
16243 PR tree-optimization/66926,66951
16244 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
16245 INNER_LOOP and fix up condition for renaming virtual operands.
16247 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16249 * combine.c (try_combine): Use std::swap instead of manually
16252 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
16254 * config/mips/i6400.md: New file.
16255 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
16256 (mips64r6): Likewise.
16258 * config/mips/mips-tables.opt: Regenerate.
16259 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
16260 (mips_issue_rate): Add support for i6400.
16261 (mips_multipass_dfa_lookahead): Likewise.
16262 * config/mips/mips.h (TUNE_I6400): Define.
16263 * config/mips/mips.md: Include i6400.md.
16264 (processor): Add i6400.
16265 * doc/invoke.texi (-march=@var{arch}): Add i6400.
16267 2015-07-23 Richard Biener <rguenther@suse.de>
16269 PR middle-end/66916
16270 * match.pd: Guard widen and sign-change comparison simplification
16273 2015-07-23 Richard Biener <rguenther@suse.de>
16275 PR tree-optimization/66945
16276 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
16277 ::before_dom_children): Force the propagators idea of
16278 non-executable edges to materialize, not what the folder
16281 2015-07-23 Richard Biener <rguenther@suse.de>
16283 * gimple.h (gimple_cond_make_false): Use 0 != 0.
16284 (gimple_cond_make_true): Use 1 != 0.
16286 2015-07-22 DJ Delorie <dj@redhat.com>
16288 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
16291 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
16292 (ashrhi3): Likewise.
16293 (lshrhi3): Likewise.
16294 (movhi): Take advantage of zero-extend to load small constants.
16295 (movpsi): Likewise.
16296 (and<mode>3): Likewise.
16297 (zero_extendqihi2): Likewise.
16298 (zero_extendqisi2): New.
16299 * config/msp430/constraints.md (N,O): New.
16300 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
16302 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
16305 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
16306 to enum feature_priority and feature_list.
16307 (fold_builtin_cpu): Add F_AES to enum processor_features
16308 and isa_names_table.
16310 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
16313 * config/i386/linux-common.h (MPX_SPEC): Use linker option
16314 for 64bit target only.
16316 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
16318 * config/nvptx/nvptx.c: Expand some comments.
16320 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
16322 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
16323 (cortex_a53_advsimd): ...This.
16325 2015-07-22 Richard Biener <rguenther@suse.de>
16327 * genmatch.c (expr::gen_transform): Clarify error message
16328 and display location.
16330 2015-07-22 Richard Biener <rguenther@suse.de>
16332 * genmatch.c (struct operand): Add location member.
16333 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
16335 (struct simplify): Remove match_location and result_location
16337 (elsehwere): Adjust.
16339 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
16341 * config/mips/m5100.md: New file.
16342 * config/mips/mips-cpus.def (m5100, m5101): Define.
16343 * config/mips/mips-tables.opt: Regenerate.
16344 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
16345 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
16346 -march=m5101 to -mips32r5.
16347 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
16348 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
16350 * config/mips/mips.md: Include m5100.md.
16351 (processor): Add m5100.
16352 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
16354 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
16356 * config/mips/mips-cpus.def (interaptiv): Define.
16357 * config/mips/mips-tables.opt: Regenerate.
16358 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
16360 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
16361 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
16363 2015-07-22 Jiong Wang <jiong.wang@arm.com>
16366 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
16367 (HONOR_REG_ALLOC_ORDER): Define.
16369 2015-07-22 Richard Biener <rguenther@suse.de>
16371 PR tree-optimization/66952
16372 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
16373 blocks we end up executing unconditionally reset all SSA
16374 info such as range and alignment.
16375 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
16376 * tree-ssanames.c (reset_flow_sensitive_info): New function.
16378 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
16380 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
16383 2015-07-22 Richard Biener <rguenther@suse.de>
16385 * genmatch.c (parser::parse_result): Properly handle
16386 match with result operands and conditions.
16388 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
16391 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
16392 Add qualifier_struct_load_store_lane_index.
16393 (aarch64_types_loadstruct_lane_qualifiers): Use
16394 qualifier_struct_load_store_lane_index for lane index argument for
16396 (aarch64_types_storestruct_lane_qualifiers): Ditto.
16397 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16398 (aarch64_simd_expand_args): Add new argument describing mode of
16399 builtin. Check lane bounds for arguments with
16400 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16401 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
16402 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
16403 (aarch64_simd_expand_builtin): Handle arguments with
16404 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
16405 aarch64_simd_expand_args.
16406 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
16407 vst[234]_lane with BUILTIN_VALLDIF.
16408 * config/aarch64/aarch64-simd.md:
16409 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
16410 endianness reversal on lane index.
16411 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
16412 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
16413 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
16414 (vec_store_lanesci_lane<mode>): Ditto.
16415 (vec_store_lanesxi_lane<mode>): Ditto.
16416 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
16417 reversal of lane index.
16418 (aarch64_ld3_lane<mode>): Ditto.
16419 (aarch64_ld4_lane<mode>): Ditto.
16420 (aarch64_st2_lane<mode>): Ditto.
16421 (aarch64_st3_lane<mode>): Ditto.
16422 (aarch64_st4_lane<mode>): Ditto.
16423 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
16424 to qmode. Add new mode parameter. Update uses.
16425 (__LD3_LANE_FUNC): Ditto.
16426 (__LD4_LANE_FUNC): Ditto.
16427 (__ST2_LANE_FUNC): Ditto.
16428 (__ST3_LANE_FUNC): Ditto.
16429 (__ST4_LANE_FUNC): Ditto.
16431 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
16433 * doc/invoke.texi (Language Independent Options): Rename node to
16434 Diagnostic Message Formatting Options.
16436 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
16439 * lra-remat.c (operand_to_remat): Prevent using insns with input
16440 subregs processed separately by IRA.
16442 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
16444 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
16446 (single_imm_use): Check for iterator node.
16447 (num_imm_uses): Likewise.
16448 * tree-ssa-operands.c (has_zero_uses_1): Delete.
16449 (single_imm_use_1): Check for iterator node.
16451 2015-07-21 Mike Frysinger <vapier@gentoo.org>
16452 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16454 * configure.ac: Add check for new options in isl-0.15.
16455 * config.in, configure: Rebuilt.
16456 * graphite-blocking.c: Include <isl/constraint.h>
16457 * graphite-interchange.c, graphite-poly.c: Likewise.
16458 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
16459 * graphite.c: Likewise.
16460 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
16462 * graphite-dependences.c: Include <isl/constraint.h>.
16463 (max_number_of_out_dimensions): Returns isl_stat.
16464 (extend_schedule_1): Likewise
16465 (extend_schedule): Corresponding changes.
16466 * graphite-optimize-isl.c: Include <isl/constraint.h> and
16468 (getSingleMap): Change return type of isl_stat.
16469 (optimize_isl): Conditionally use
16470 isl_options_set_schedule_serialize_sccs.
16471 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
16472 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
16474 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
16477 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
16478 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
16480 2015-07-21 Richard Biener <rguenther@suse.de>
16482 PR tree-optimization/66948
16483 * genmatch.c (capture_info::walk_match): Also recurse to
16484 captures. Properly compute expr state from captures of
16486 * match.pd: Add single-use guards to
16487 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
16489 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
16491 * config/nvptx/mkoffload.c (process): Add static destructor call.
16493 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16495 PR middle-end/66915
16496 * match.pd (A - B -> A + (-B)): Don't allow folding
16497 when type if a fixed-point type.
16499 2015-07-20 DJ Delorie <dj@redhat.com>
16501 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
16502 (iorqi3_real): Likewise for set1.
16504 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
16506 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
16509 2015-07-20 Aditya Kumar <hiraditya@msn.com>
16511 * graphite-isl-ast-to-gimple.c:
16512 Refactor so that each function can access 'region'. This will help
16513 maintain a parameter rename_map within a region.
16515 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16517 * config/rs6000/rs6000.md (*lt0_disi): New.
16519 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
16522 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
16523 "available letters" comment.
16524 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
16525 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
16526 and_2rld_operand): Delete.
16527 (and_operand): Adjust.
16528 (rotate_mask_operator): New.
16529 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
16530 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
16531 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
16532 extract_ME): Delete.
16533 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16534 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
16535 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
16536 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16537 rs6000_emit_2insn_and): New.
16538 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
16539 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
16540 includes_rldic_lshift_p, includes_rldicr_lshift_p,
16541 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
16542 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
16543 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
16544 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
16545 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
16546 rs6000_emit_2insn_and): New.
16547 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
16548 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
16550 <NOT>: Don't fall through to next case.
16551 <AND>: Handle the various rotate-and-mask cases directly.
16552 <IOR>: Always cost as one insn.
16553 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
16554 (and<mode>3): Adjust expander for the new patterns.
16555 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
16556 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
16557 (*and<mode>3_imm_dot_shifted): New.
16558 (*and<mode>3_mask): Delete, rewrite as ...
16559 (and<mode>3_mask): ... New.
16560 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
16561 (andsi3_internal0_nomc): Delete.
16562 (*andsi3_internal6): Delete.
16563 (*and<mode>3_2insn): New.
16564 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
16565 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
16566 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
16567 *insvdi_internal3): Delete.
16568 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
16569 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
16570 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
16571 *ior<mode>_mask): New.
16572 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
16573 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
16574 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
16575 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
16577 (ashr<mode>3): Delete expander.
16578 (*ashr<mode>3): Rename to ...
16579 (ashr<mode>3): ... This.
16580 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
16581 (*rotldi3_internal4, *rotldi3_internal5 and split,
16582 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
16583 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
16584 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
16585 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
16586 (splitter for loading a mask): Adjust.
16587 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
16589 2015-07-20 Marek Polacek <polacek@redhat.com>
16591 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
16592 output_add_clobbers, output_added_clobbers_hard_reg_p,
16593 gen_rtx_scratch): Remove declarations.
16595 2015-07-20 Marek Polacek <polacek@redhat.com>
16598 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
16600 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16602 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
16603 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
16605 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16607 * combine.c (combine_simplify_rtx): Move simplification step
16608 before various transformations/substitutions.
16610 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
16612 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
16613 (struct int_traits): Likewise.
16615 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16617 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
16618 function to vmsdbgout_function_decl.
16620 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
16623 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
16624 from misaligned positions.
16625 (ix86_expand_pinsr): Reject insertions to misaligned positions.
16627 2015-07-18 Sebastian Pop <s.pop@samsung.com>
16629 PR middle-end/46851
16630 PR middle-end/60340
16631 * Makefile.in: Removed omega.o.
16632 * common.opt: Document flag fcheck-data-deps as deprecated.
16633 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
16634 its associated params: omega-max-vars, omega-max-geqs,
16635 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
16636 omega-max-keys, omega-eliminate-redundant-constraints.
16637 * doc/loop.texi: Remove all the section on Omega.
16638 * graphite-blocking.c: Include missing params.h: it used to be
16639 included through tree-data-ref.h and omega.h.
16640 * graphite-isl-ast-to-gimple.c: Same.
16641 * graphite-optimize-isl.c: Same.
16642 * graphite-sese-to-poly.c: Same.
16643 * graphite.c: Same.
16646 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
16647 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
16648 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
16649 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
16650 * passes.def: Remove pass_check_data_deps.
16651 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
16652 (dump_conflict_function): Same.
16653 (dump_subscript): Same.
16654 (print_direction_vector): Same.
16655 (print_dir_vectors): Same.
16656 (print_lambda_vector): Same.
16657 (print_dist_vectors): Same.
16658 (dump_data_dependence_relation): Same.
16659 (dump_data_dependence_relations): Same.
16660 (dump_dist_dir_vectors): Same.
16662 (init_omega_eq_with_af): Removed.
16663 (omega_extract_distance_vectors): Removed.
16664 (omega_setup_subscript): Removed.
16665 (init_omega_for_ddr_1): Removed.
16666 (init_omega_for_ddr): Removed.
16667 (ddr_consistent_p): Removed.
16668 (compute_affine_dependence): Do not use omega to check data
16670 (compute_data_dependences_for_bb): Removed.
16671 (analyze_all_data_dependences): Removed.
16672 (tree_check_data_deps): Removed.
16673 * tree-data-ref.h: Do not include omega.h.
16674 (compute_data_dependences_for_bb): Removed.
16675 (tree_check_data_deps): Removed.
16676 * tree-ssa-loop.c (pass_check_data_deps): Removed.
16677 (make_pass_check_data_deps): Removed.
16678 * tree-ssa-phiopt.c: Include params.h.
16679 * tree-vect-data-refs.c: Same.
16680 * tree-vect-slp.c: Same.
16682 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
16684 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
16685 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
16686 (mem->fpreg splitters): Ditto.
16687 (general_operand->nonimmediate_operand splitter): Use explicit modes.
16688 Disable DFmode for TARGET_64BIT.
16690 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
16693 * config/i386/i386.c (ix86_expand_prologue): Replicate static
16694 chain on the stack.
16696 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
16698 * config/nvptx/mkoffload.c (process): Constify host data.
16699 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16700 Constify host data.
16701 (generate_host_descr_file): Likewise.
16703 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
16704 Sebastian Pop <s.pop@samsung.com>
16706 PR middle-end/61929
16707 * graphite-dependences.c (add_pdr_constraints): Renamed
16708 pdr->extent to pdr->subscript_sizes.
16709 * graphite-interchange.c (build_linearized_memory_access): Add
16710 back all gcc_assert's that the "isl_int to isl_val conversion"
16711 patch has removed. Refactored.
16712 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
16713 * graphite-poly.c (new_poly_dr): Same.
16714 (free_poly_dr): Same.
16715 * graphite-poly.h (struct poly_dr): Same.
16716 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
16717 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
16718 * graphite-scop-detection.h: Fix space.
16719 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
16720 back all gcc_assert's removed by a previous patch.
16721 (wrap): Remove the_isl_ctx global variable that the same patch has
16723 (build_loop_iteration_domains): Same.
16724 (add_param_constraints): Same.
16725 (pdr_add_data_dimensions): Same. Refactored.
16726 (build_poly_dr): Renamed extent to subscript_sizes.
16728 2015-07-17 Marek Polacek <polacek@redhat.com>
16730 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
16731 * match.pd: ... here.
16733 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
16735 * config/nvptx/mkoffload.c (process): Constify target data.
16736 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
16737 Constify target data.
16738 (generate_target_offloadend_file): Likewise.
16740 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
16742 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
16743 to allow renaming of PHI arguments on edges incoming from outer
16744 loop header, add corresponding check before start PHI iterator.
16745 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
16746 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
16747 with true force_vectorize. Set-up dominator for outer loop too.
16748 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
16749 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
16750 was marked with force_vectorize and has restricted cfg.
16751 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
16753 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
16754 do peeling for outer loops.
16756 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
16757 Matthias Klose <doko@ubuntu.com>
16759 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
16760 build-sysroot, sysroot from the `Miscenalleous configure options' to
16761 the `Directories' section and strip trailing `/' from with_sysroot.
16762 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
16763 * configure: Regenerated.
16765 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
16768 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
16769 (TARGET_HARD_DF_REGS): Ditto.
16770 (TARGET_HARD_XF_REGS): Ditto.
16771 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
16772 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
16773 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
16774 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
16775 (*movsf_internal): Add alternatives 16 and 17. Enable
16776 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
16778 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
16780 PR rtl-optimization/66891
16781 * calls.c (expand_call): Wrap precompute_register_parameters with
16782 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
16784 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
16786 * config/nvptx/mkoffload.c (process): Constify mapping variables.
16787 Define target data struct and initialize it.
16789 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
16791 PR rtl-optimization/66626
16792 * ira.h (emit-rtl.h): Include.
16793 (non_spilled_static_chain_regno_p): New.
16794 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
16795 unless it is non spilled static chain pseudo.
16796 (assign_hard_rego): Spill memory profitable allocno unless it is
16797 non spilled static chain pseudo.
16798 (allocno_spill_priority_compare): Put non spilled static chain
16799 pseudo at the end of sorted array.
16800 (improve_allocation): Do nothing if we have static chain and
16802 (allocno__priority_compare_func): Put non spilled static chain
16803 pseudo at the beginning of sorted array.
16804 (move_spill_restore): Ignore non spilled static chain pseudo.
16805 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
16806 to non spilled static chain pseudo.
16807 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
16808 pseudo at the beginning of sorted array.
16809 (spill_for): Spill non spilled static chain pseudo last.
16810 * lra-constraints.c (lra_constraints): Remove static chain pseudo
16811 check for equivalence.
16813 2015-07-16 Martin Liska <mliska@suse.cz>
16816 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
16817 dst_ctx if it does not exist.
16819 2015-07-16 Martin Liska <mliska@suse.cz>
16821 * hash-set.h (remove): New function.
16822 (iterator): New iteration class for hash_set.
16824 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16826 * genattrtab.c (make_canonical): Add a file_location parameter.
16827 Use fatal_at rather than fatal.
16828 (get_attr_value): Likewise. Update call to make_canonical.
16829 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
16830 (make_internal_attr): Update calls accordingly.
16832 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16834 * read-md.h (message_with_line, error_with_line): Delete.
16835 * read-md.c (message_with_line, error_with_line): Delete.
16836 * gensupport.h: Include read-md.h.
16837 (md_rtx_info): New structure.
16838 (read_md_rtx): Use it. Return a bool success value.
16839 * gensupport.c (read_md_rtx): Likewise.
16840 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
16841 (main): Update after interface changes.
16842 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
16843 (main): Update after interface changes.
16844 * genattrtab.c (insn_code_number): Delete.
16845 (optimize_attrs): Add a max_insn_code parameter and use it instead
16846 of insn_code_number.
16847 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
16848 Use *_at rather than *_with_line functions.
16849 (gen_insn): Likewise.
16850 (gen_delay): Likewise.
16851 (gen_insn_reserv): Likewise.
16852 (gen_bypass): Take an md_rtx_info rather than an rtx.
16853 (main): Update after interface changes. Use a local max_insn_code
16854 variable instead of insn_code_number.
16855 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
16856 an rtx. Use fatal_at rather than fatal.
16857 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
16858 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
16859 (gen_absence_set, gen_final_absence_set, gen_automaton)
16860 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
16861 (main): Update after interface changes.
16862 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
16864 (main): Update after interface changes.
16865 * genconditions.c (main): Use new read_md_rtx interface.
16866 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
16867 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
16868 (main): Update after interface changes.
16869 * genemit.c (insn_code_number, insn_index_number): Delete.
16870 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16871 Use fatal_at rather than fatal.
16872 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
16874 (gen_split): Likewise.
16875 (main): Update after interface changes.
16876 * genextract.c (line_no): Delete.
16877 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16878 Update call to walk_rtx.
16879 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
16880 rather than message_with_line.
16881 (walk_rtx): Add an md_rtx_info argument. Update call to
16882 VEC_safe_set_locstr.
16883 (main): Update after interface changes.
16884 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
16885 and lineno. Use error_at rather than separate message_with_line
16886 calls and have_error assignments.
16887 (main): Update after interface changes.
16888 * genmddump.c (main): Use new read_md_rtx interface.
16889 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
16890 (main): Update after interface changes.
16891 * genoutput.c (next_code_number): Delete.
16892 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
16893 (gen_peephole, gen_expand, gen_split): Likewise.
16894 (note_constraint): Likewise. Use *_at rather than *_with_line
16896 (main): Update after interface changes.
16897 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
16899 (main): Update after interface changes.
16900 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
16901 than an rtx and lineno.
16902 (process_define_constraint): Likewise.
16903 (process_define_register_constraint): Likewise.
16904 (main): Update after interface changes.
16905 * genrecog.c (next_insn_code, pattern_lineno): Delete.
16906 (validate_pattern): Replace top-level rtx with an md_rtx_info.
16907 Use *_at rather than *_with_line functions.
16908 (match_pattern_2): Likewise.
16909 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
16910 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
16911 Use *_at rather than *_with_line functions.
16912 * gentarget-def.c (add_insn): New function.
16913 (main): Use it. Use new read_md_rtx interface.
16915 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16917 * gensupport.h (compute_test_codes): Take a file_location rather
16918 than a line number.
16919 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
16920 rather than *_with_line functions.
16921 (process_define_predicate): Update call to compute_test_codes.
16922 * genpreds.c (validate_exp): Take a file_location rather than a
16923 line number. Use *_at functions rather than *_with_line functions.
16924 (process_define_predicate): Update call to validate_exp.
16925 (constraint_data): Replace lineno field with a file_location.
16926 (add_constraint): Take a file_location rather than a line number.
16927 Use *_at functions rather than *_with_line functions. Fix error
16928 message for address constraints. Update after changes to
16929 validate_exp, constraint_data and compute_test_codes.
16930 (process_define_constraint): Update accordingly.
16931 (process_define_register_constraint): Likewise.
16933 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16935 * genoutput.c (data): Use a file_location to record the source
16938 (idata, idata_end): Remove initialization.
16939 (constraint_data): Replace lineno with a file_location.
16940 (output_insn_data): Update after changes to data.
16941 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
16942 (scan_operands): Likewise, using *_at rather than *_with_line
16944 (process_template): Likewise.
16945 (validate_insn_alternatives): Likewise.
16946 (validate_insn_operands): Likewise.
16947 (validate_optab_operands): Likewise.
16948 (init_insn_for_nothing): Initialize idata and idata_end.
16949 (note_constraint): Update after changes to constraint_data,
16950 using at rather than with_line functions.
16951 (mdep_constraint_len): Take a file_location rather than a
16952 line number. Use at rather than with_line functions.
16954 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16956 * read-md.h (fatal_at): Declare.
16957 * read-md.c (fatal_at): New function.
16958 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
16959 to record the source position.
16960 (check_attr_test): Take a file_location instead of a line number.
16961 Use fatal_at instead of fatal.
16962 (check_attr_value): Update after above changes, using "at"
16963 rather than "with_line" reporting functions.
16964 (convert_set_attr_alternative): Likewise.
16965 (gen_attr): Likewise.
16966 (check_defs): Likewise. Don't assign to read_md_filename.
16967 (gen_insn): Update initialization after above changes.
16968 (gen_delay): Likewise.
16969 (write_insn_cases): Print the filename for a define_peephole.
16970 (gen_insn_reserv): Take a line number as argument and update
16971 the call to check_attr_test.
16972 (main): Pass a line number to gen_insn_reserv.
16974 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
16976 * read-md.h (file_location): New structure.
16977 (directive_handler_t): Take a file_location rather than a line number.
16978 (message_at, error_at): Declare.
16979 (read_skip_construct): Delete.
16980 * read-md.c (message_with_line_1): Replace with...
16981 (message_at_1): ...this new function.
16982 (message_at, error_at): New functions.
16983 (message_with_line, error_with_line): Update to use message_at_1.
16984 (handle_enum): Take a file_location rather than a line number
16985 and use error_at for error reporting.
16986 (handle_include): Likewise.
16987 (read_skip_construct): Likewise. Make static.
16988 (handle_file): Update after above changes. Pass a file_location
16989 rather than a line number to handle_directive.
16990 * gensupport.c (queue_elem): Replace separate filename and lineno
16991 with a file_location.
16992 (queue_pattern): Replace filename and lineno arguments with a
16993 file_location. Update after change to queue_elem.
16994 (process_define_predicate): Replace lineno argument with a
16995 file_location and use error_at for error reporting. Update
16996 after above changes.
16997 (process_rtx): Likewise.
16998 (subst_pattern_match): Likewise.
16999 (get_alternatives_number): Likewise.
17000 (alter_predicate_for_insn): Likewise.
17001 (rtx_handle_directive): Likewise.
17002 (is_predicable): Update after above changes, using error_at rather
17003 than error_with_line.
17004 (has_subst_attribute): Likewise.
17005 (identify_predicable_attribute): Likewise.
17006 (alter_attrs_for_subst_insn): Likewise.
17007 (process_one_cond_exec): Likewise.
17008 (process_substs_on_one_elem): Likewise.
17009 (process_define_subst): Likewise.
17010 (check_define_attr_duplicates): Likewise.
17011 (read_md_rtx): Update after change to queue_elem.
17013 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17015 * genoutput.c (next_index_number): Delete.
17016 (data): Remove index_number.
17017 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
17018 (main): Remove manipulation of next_index_number.
17020 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
17022 * genattrtab.c (check_attr_value): Remove handling of null attrs.
17023 (make_canonical): Likewise.
17025 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
17027 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
17028 instead of adjust_address_nv.
17029 (restore_stack_nonlocal): Likewise.
17030 (nonlocal_goto): Likewise.
17032 2015-07-16 Tom de Vries <tom@codesourcery.com>
17034 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
17035 not have a corresponding loop header phi.
17037 2015-07-16 Tom de Vries <tom@codesourcery.com>
17039 * tree-parloops.c (create_loads_for_reductions): Handle case that
17040 reduction is unused.
17042 2015-07-16 Richard Biener <rguenther@suse.de>
17044 PR tree-optimization/66894
17045 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
17046 about deriving NE_EXPR from truncated values.
17048 2015-07-16 Martin Liska <mliska@suse.cz>
17051 (object_allocator): Add new class.
17052 (pool_allocator::initialize): Use the underlying class.
17053 (pool_allocator::allocate): Likewise.
17054 (pool_allocator::remove): Likewise.
17055 (operator new): A new generic allocator.
17056 * asan.c (struct asan_mem_ref): Remove unused members.
17057 (asan_mem_ref_new): Replace new operator with
17058 object_allocator::allocate.
17059 (free_mem_ref_resources): Change deallocation.
17060 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
17061 with object_allocator.
17062 * config/sh/sh.c (add_constant): Replace new operator with
17063 object_allocator::allocate.
17064 (sh_reorg): Change call to a release method.
17065 * cselib.c (struct elt_list): Remove unused members.
17066 (new_elt_list): Replace new operator with
17067 object_allocator::allocate.
17068 (new_elt_loc_list): Likewise.
17069 (new_cselib_val): Likewise.
17070 (unchain_one_elt_list): Change delete operator with remove method.
17071 (unchain_one_elt_loc_list): Likewise.
17072 (unchain_one_value): Likewise.
17073 (cselib_finish): Release newly added static allocators.
17074 * cselib.h (struct cselib_val): Remove unused members.
17075 (struct elt_loc_list): Likewise.
17076 * df-problems.c (df_chain_alloc): Replace pool_allocator with
17078 * df-scan.c (struct df_scan_problem_data): Likewise.
17079 (df_scan_alloc): Likewise.
17080 * df.h (struct dataflow): Likewise.
17081 * dse.c (struct read_info_type): Likewise.
17082 (struct insn_info_type): Likewise.
17083 (struct dse_bb_info_type): Likewise.
17084 (struct group_info): Likewise.
17085 (struct deferred_change): Likewise.
17086 (get_group_info): Likewise.
17087 (delete_dead_store_insn): Likewise.
17088 (free_read_records): Likewise.
17089 (replace_read): Likewise.
17090 (check_mem_read_rtx): Likewise.
17091 (scan_insn): Likewise.
17092 (dse_step1): Likewise.
17093 (dse_step7): Likewise.
17094 * et-forest.c (struct et_occ): Remove unused members.
17095 (et_new_occ): Use allocate instead of new operator.
17096 (et_new_tree): Likewise.
17097 (et_free_tree): Call release method explicitly.
17098 (et_free_tree_force): Likewise.
17099 (et_free_pools): Likewise.
17100 (et_split): Use remove instead of delete operator.
17101 * et-forest.h (struct et_node): Remove unused members.
17102 * ipa-cp.c: Change pool_allocator to object_allocator.
17103 * ipa-inline-analysis.c: Likewise.
17104 * ipa-profile.c: Likewise.
17105 * ipa-prop.c: Likewise.
17106 * ipa-prop.h: Likewise.
17107 * ira-build.c (initiate_cost_vectors): Cast return value.
17108 (ira_allocate_cost_vector): Likewise.
17109 * ira-color.c (struct update_cost_record): Remove unused members.
17110 * lra-int.h (struct lra_live_range): Likewise.
17111 (struct lra_copy): Likewise.
17112 (struct lra_insn_reg): Likewise.
17113 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
17114 * lra.c (new_insn_reg): Replace new operator with allocate method.
17115 (free_insn_regs): Same for operator delete.
17116 (finish_insn_regs): Release new static allocator.
17117 (finish_insn_recog_data): Likewise.
17118 (lra_free_copies): Replace delete operator with remove method.
17119 (lra_create_copy): Replace operator new with allocate method.
17120 (invalidate_insn_data_regno_info): Same for remove method.
17121 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
17122 (free_debug_insn_changes): Replace delete operator with remove method.
17123 (replace_oldest_value_reg): Replace operator new with allocate method.
17124 (pass_cprop_hardreg::execute): Release new static variable.
17125 * sched-deps.c (sched_deps_init): Change pool_allocator to
17127 * sel-sched-ir.c: Likewise.
17128 * sel-sched-ir.h: Likewise.
17129 * stmt.c (expand_case): Likewise.
17130 (expand_sjlj_dispatch_table): Likewise.
17131 * tree-sra.c (struct access): Remove unused members.
17132 (struct assign_link): Likewise.
17133 (sra_deinitialize): Release newly added static pools.
17134 (create_access_1):Replace operator new with allocate method.
17135 (build_accesses_from_assign): Likewise.
17136 (create_artificial_child_access): Likewise.
17137 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
17138 pool_allocator to object_allocator.
17139 * tree-ssa-pre.c: Likewise.
17140 * tree-ssa-reassoc.c: Likewise.
17141 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
17142 * tree-ssa-strlen.c: Likewise.
17143 * tree-ssa-structalias.c: Likewise.
17144 * var-tracking.c (onepart_pool_allocate): New function.
17145 (unshare_variable): Use the newly added function.
17146 (variable_merge_over_cur): Likewise.
17147 (variable_from_dropped): Likewise.
17148 (variable_was_changed): Likewise.
17149 (set_slot_part): Likewise.
17150 (emit_notes_for_differences_1): Likewise.
17151 (vt_finalize): Release newly added static pools.
17153 2015-07-16 Martin Jambor <mjambor@suse.cz>
17155 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
17156 all uses. Fix two typos in its general comment.
17157 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
17159 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
17161 * config/i386/linux-common.h (LINK_MPX): New.
17162 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
17163 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
17164 indicating '-z bndplt' support by linker.
17165 * configure: Regenerate.
17166 * config.in: Regenerate.
17168 2015-07-16 Richard Biener <rguenther@suse.de>
17170 * fold-const.c (fold_widened_comparison): Remove.
17171 (fold_sign_changed_comparison): Likewise.
17172 (fold_comparison): Move widened and sign-changed comparison
17174 * match.pd: ... to patterns here.
17175 * generic-match-head.c: Include target.h.
17176 * gimple-match-head.c: Likewise.
17178 2015-07-16 Richard Biener <rguenther@suse.de>
17180 * tree-ssa-dom.c (dom_valueize): New function.
17181 (record_temporary_equivalences): Also record equivalences
17182 for dominating stmts that have uses of equivalences we are
17185 2015-07-16 Bin Cheng <bin.cheng@arm.com>
17187 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
17188 add_autoinc_candidates.
17189 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
17190 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
17191 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
17192 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
17194 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
17195 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
17196 Remove parameter struct iv*. Call add_autoinc_candidates here.
17197 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
17198 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
17200 (find_iv_candidates): Call new functions.
17202 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
17204 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
17205 uninitialized-variable warning.
17207 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
17210 * config/sh/sh.md (movdi): Split simple reg move to two movsi
17211 when the destination is R0.
17213 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
17216 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
17217 * config/i386/i386.c (ix86_expand_pextr): New function.
17218 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
17219 for non-lowpart subregs.
17220 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
17221 (insv<mode>): Use SWI248 mode iterator.
17222 (insv<mode>_1): Ditto.
17224 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
17225 Sebastian Pop <s.pop@samsung.com>
17227 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
17228 iterator to use_stmt.
17230 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
17231 Sebastian Pop <s.pop@samsung.com>
17233 * graphite-scop-detection.c (build_scops_1): Discard scops for
17236 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
17237 Sebastian Pop <s.pop@samsung.com>
17239 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
17240 case of a return statement in scop.
17242 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
17243 Sebastian Pop <s.pop@samsung.com>
17245 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
17246 INTEGER_TYPE parameters.
17247 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
17248 VECTOR_CST in scan_tree_for_params.
17249 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
17251 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
17253 * gimple-pretty-print.h: Don't include pretty-print.h.
17254 * tree-streamer.h: Don't include lto-streamer.h.
17255 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
17256 * gimple-streamer-in.c: Remove redundant includes.
17257 * gimple-streamer-out.c: Likewise.
17258 * ipa-devirt.c: Likewise.
17259 * ipa-icf.c: Likewise.
17260 * ipa-inline-analysis.c: Likewise.
17261 * ipa-polymorphic-call.c: Likewise.
17262 * ipa-profile.c: Likewise.
17263 * ipa-prop.c: Likewise.
17264 * ipa-pure-const.c: Likewise.
17265 * lto-cgraph.c: Likewise.
17266 * lto-streamer-in.c: Likewise.
17267 * lto-streamer-out.c: Likewise.
17268 * lto-streamer.c: Likewise.
17269 * tree-streamer-in.c: Likewise.
17270 * tree-streamer-out.c: Likewise.
17271 * tree-streamer.c: Likewise.
17273 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
17275 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
17277 * opts.c: Remove multiline #include comment.
17279 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
17281 * config/nvptx/mkoffload.c (process): Add C++ protection to
17284 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
17287 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
17288 null before IEEE 128-bit floating point support patch.
17290 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17292 * simplify-rtx.c (simplify_ternary_operation): Add simplification
17293 for (!c) != {0,...,0} ? a : b for vector modes.
17295 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
17296 Martin Jambor <mjambor@suse.cz>
17298 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
17299 struct func_body_info* instead of struct ipa_node_params*, expecting
17300 fbi->info to be filled in. Replace throughout. Adjust call to
17301 ipa_load_from_parm_agg.
17302 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
17303 instead of struct ipa_node_params*. Adjust calls to other functions
17304 so that they pass either fbi or fbi->info.
17305 (set_switch_stmt_execution_predicate): Likewise.
17306 (will_be_nonconstant_predicate): Likewise.
17307 (compute_bb_predicates): Likewise.
17308 (estimate_function_body_sizes): Move asserts earlier. Fill in
17309 struct func_body_info, replace parms_info with fbi.info. Adjust
17310 calls to functions that now accept struct func_body_info.
17311 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
17312 (struct func_body_info): Likewise.
17313 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
17314 remove static. Adjust callers.
17315 (ipa_load_from_parm_agg): Remove.
17316 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
17317 (func_body_info): Likewise.
17318 (ipa_load_from_parm_agg): Adjust prototype.
17320 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17322 * gensupport.c (rtx_handle_directive): Adjust.
17323 * read-rtl.c (apply_iterators): Take vector to add rtxs to
17324 instead of expr list rtx.
17325 (add_define_attr_for_define_subst): Likewise.
17326 (add_define_subst_attr): Likewise.
17327 (read_subst_mapping): Likewise.
17328 (read_rtx): Likewise.
17329 * rtl.h (read_rtx): Adjust.
17331 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17333 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
17335 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17338 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
17339 (*tls_local_dynamic_base_64_<mode>): Ditto.
17340 (*tls_local_dynamic_base_64_largepic): Ditto.
17341 (tls_global_dynamic_64_<mode>): Update expander pattern.
17342 (tls_local_dynamic_base_64_<mode>): Ditto.
17344 2015-07-15 Richard Biener <rguenther@suse.de>
17346 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
17347 and bool_var == 1 -> bool_var simplifications ...
17348 * match.pd: ... to patterns here. Factor out negate_expr_p
17349 cases from the A - B -> A + (-B) patterns as negate_expr_p
17350 predicate and add a -(A + B) -> (-B) - A pattern.
17352 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
17354 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
17356 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
17357 Robert Suchanek <robert.suchanek@imgtec.com>
17359 * config/mips/mips.c (mips_int_mask): New enum.
17360 (mips_shadow_set): Likewise.
17361 (int_mask): New variable.
17362 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
17363 (machine_function): Add int_mask and use_shadow_register_set.
17364 (mips_attribute_table): Add attribute handlers for interrupt and
17365 use_shadow_register_set.
17366 (mips_interrupt_mask): New static function.
17367 (mips_handle_interrupt_attr): Likewise.
17368 (mips_handle_use_shadow_register_set_attr): Likewise.
17369 (mips_use_shadow_register_set): Change return type to enum
17370 mips_shadow_set. Add argument handling for use_shadow_register_set
17372 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
17373 compare with mips_shadow_set enum.
17374 (mips_compute_frame_info): Add interrupt mask and
17375 use_shadow_register_set to per-function information structure.
17376 Add a stack slot for EPC unconditionally.
17377 (mips_expand_prologue): Compare use_shadow_register_set value
17378 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
17379 masked interrupt register but in EIC mode use K0 and save Cause in K0.
17380 EPC saved and restored unconditionally. Use PMODE_INSN macro when
17381 copying the stack pointer from the shadow register set.
17382 * config/mips/mips.h (SR_IM0): New define.
17383 * config/mips/mips.md (mips_rdpgpr): Rename to...
17384 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
17385 * doc/extend.texi (Declaring Attributes of Functions): Document
17386 optional arguments for interrupt and use_shadow_register_set
17389 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
17391 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
17392 interrupt attribute.
17393 (mips_expand_prologue): Disable the floating point unit in an ISR.
17394 * config/mips/mips.h (SR_COP1): New define.
17396 2015-07-15 Richard Biener <rguenther@suse.de>
17398 * genmatch.c (parser::peek, parser::peek_ident): Add argument
17399 to tell how many tokens to peek ahead (default 1).
17400 (parser::eat_token, parser::eat_ident): Return token consumed.
17401 (parser::parse_result): Parse new switch statement.
17402 * match.pd: Use case statements where appropriate.
17404 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17406 PR rtl-optimization/58066
17407 * calls.c (expand_call): Precompute register parameters before stack
17408 alignment is performed.
17410 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
17412 PR rtl-optimization/66838
17413 * postreload.c (reload_cse_move2add): Also process
17414 CALL_INSN_FUNCTION_USAGE when resetting information of
17415 call-clobbered registers.
17417 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17418 Cesar Philippidis <cesar@codesourcery.com>
17419 Chung-Lin Tang <cltang@codesourcery.com>
17421 * config/nios2/constraints.md (U, v): New constraints.
17422 * config/nios2/predicates.md (rdprs_dcache_operand): New.
17423 (ldstex_memory_operand): New.
17424 * config/nios2/sync.md: New file.
17425 * config/nios2/nios2.md (unspecv): Add new builtin function
17427 (rdprs, flushd, flushda, wrpie, eni): New patterns.
17428 (top-level): Include sync.md.
17429 * config/nios2/nios2.c (N2_FTYPES): Add function types for
17431 (N2_BUILTINS): Add arch field setting, add new builtins.
17432 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
17434 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
17435 Also handle ldex/stex/ldsex/stsex builtins.
17436 (nios2_expand_rdprs_builtin): New function.
17437 (nios2_expand_cache_builtin): New function.
17438 (nios2_expand_wrpie_builtin): New function.
17439 (nios2_expand_eni_builtin): New function.
17440 (nios2_expand_builtin): Add arch field handling and new builtin
17442 * doc/extend.texi (Altera Nios II Built-in Functions): Document
17444 * doc/md.texi (Machine Constraints): Document U and v constraints.
17446 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17447 Cesar Philippidis <cesar@codesourcery.com>
17448 Chung-Lin Tang <cltang@codesourcery.com>
17450 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
17451 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
17452 callee_save_reg_size and uses_anonymous_args fields.
17453 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
17454 (nios2_create_cfa_notes): New function.
17455 (nios2_adjust_stack): New function for adjusting stack.
17456 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
17457 Use nios2_adjust_stack.
17458 (nios2_expand_epilogue): Likewise.
17459 (nios2_expand_return): New function.
17460 (nios2_can_use_return_insn): Update for CDX pop.n usage.
17461 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
17462 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
17463 * config/nios2/nios2.md (return): Use nios2_expand_return.
17465 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17466 Cesar Philippidis <cesar@codesourcery.com>
17467 Chung-Lin Tang <cltang@codesourcery.com>
17469 * config/nios2/predicates.md (pop_operation): New.
17470 (ldwm_operation, stwm_operation): New.
17471 (nios2_hard_register_operand): New.
17472 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
17473 (ldstwm_operation_p): Declare.
17474 (gen_ldstwm_peep): Declare.
17475 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
17476 (base_reg_adjustment_p): New.
17477 (pop_operation_p): New.
17478 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
17479 (nios2_ldstwm_regset_p): New.
17480 (ldstwm_operation_p): New.
17482 (nios2_ldst_parallel): New.
17483 (struct ldswm_operand): Declare.
17484 (compare_ldstwm_operands): New.
17485 (can_use_cdx_ldstw): New.
17486 (gen_ldstwm_peep): New.
17487 * config/nios2/nios2-ldstwm.sml: New.
17488 * config/nios2/nios2.md: Include ldstwm.md.
17489 * config/nios2/ldstwm.md: Generated.
17491 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17492 Cesar Philippidis <cesar@codesourcery.com>
17493 Chung-Lin Tang <cltang@codesourcery.com>
17495 * config/nios2/nios2.h (LABEL_ALIGN): Define.
17496 (REG_ALLOC_ORDER): Define.
17497 (ADJUST_REG_ALLOC_ORDER): Define.
17498 (HONOR_REG_ALLOC_ORDER): Define.
17499 (CDX_REG_P): Define.
17500 (ANDCLEAR_INT): Define.
17501 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
17502 (nios2_label_align): Declare.
17503 (nios2_cdx_narrow_form_p): Declare.
17504 (nios2_adjust_reg_alloc_order): Declare.
17505 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
17507 (nios2_large_unspec_reloc_p): New function, split from...
17508 (nios2_legitimate_pic_operand_p): ...here.
17509 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
17510 (nios2_print_operand_punct_valid_p): New.
17511 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
17512 (split_mem_address): New.
17513 (split_alu_insn): New.
17515 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
17516 (enum nios2_add_insn_kind): New.
17517 (nios2_add_insn_names, nios2_add_insn_narrow): New.
17518 (nios2_add_insn_classify): New.
17519 (nios2_add_insn_asm): New.
17520 (nios2_cdx_narrow_form_p): New.
17521 (label_align, min_labelno, max_labelno): New.
17522 (nios2_reorg): New.
17523 (nios2_label_align): New.
17524 (nios2_adjust_reg_alloc_order): New.
17525 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
17526 (TARGET_MACHINE_DEPENDENT_REORG): Define.
17527 * config/nios2/constraints.md (P): New constraint.
17528 * config/nios2/predicates.md (const_and_operand): New.
17529 (and_operand): New.
17530 (stack_memory_operand): New.
17531 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
17532 (length): Update to use nios2_cdx_narrow_form_p().
17533 (type): Add new insn type values.
17534 (control, alu, st, ld, shift): Update insn reservations with
17535 new insn type values.
17536 (*high, *lo_sum): Define new insn patterns for constant generation.
17537 (movqi_internal, movhi_internal, movsi_internal): Reduce
17538 alternatives, update asm template to handle CDX variants, update
17540 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
17541 template, update type attributes.
17542 (extendhisi2, extendqi<mode>2): Likewise.
17543 (addsi3): Change to use function for asm string.
17544 (subsi3): Add CDX notation to asm template, update type attributes.
17545 (negsi3, one_cmplsi3): Likewise.
17546 (andsi3): New pattern, specialized from logical patterns.
17547 (<code>si3): Remove and case, combine alternatives, update asm
17549 (<shift_op>si3): Add CDX notation, update type attributes.
17550 (rotrsi3): Update type attribute.
17551 (*merge, extzv, insv): New insn patterns.
17552 (return): Change to define_expand.
17553 (simple_return): Add CDX notation, update type attributes.
17554 (indirect_jump): Add CDX notation.
17555 (jump): Update asm cases, update length attribute expression.
17556 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
17557 (nios2_cbranch): Update asm cases and length attribute expression
17558 to handle CDX variants.
17559 (nios2_cmp<code>): Update asm template.
17560 (nop): Add CDX notation, update type attributes.
17561 (trap): Add CDX notation.
17562 (ctrapsi4): Update asm cases and length attribute expression to
17563 handle CDX variant.
17564 * doc/md.texi (Machine Constraints): Document P constraint.
17566 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17567 Cesar Philippidis <cesar@codesourcery.com>
17568 Chung-Lin Tang <cltang@codesourcery.com>
17570 * config/nios2/nios2.h (SMALL_INT12): New macro.
17571 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
17572 (nios2_valid_addr_expr_p): Use it.
17573 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
17574 with implicit "io" instructions on R2.
17575 * config/nios2/constraints.md (w): New constraint.
17576 * config/nios2/predicates.md (ldstio_memory_operand): New.
17577 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
17578 operand predicate and constraint.
17579 (ld<bh>io_signed, st<bhw>io>): Likewise.
17580 * doc/md.texi (Machine Constraints): Document w constraint.
17582 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17583 Cesar Philippidis <cesar@codesourcery.com>
17584 Chung-Lin Tang <cltang@codesourcery.com>
17586 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
17587 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
17588 Nios II architecture level.
17589 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
17590 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
17591 (OPTION_DEFAULT_SPECS): Define.
17592 (ASM_SPEC): Add -march= spec strings.
17593 * config/nios2/nios2.c (nios2_option_override): Check for
17594 conflicts involving new options.
17595 * config.gcc (nios2*-*-*): Support --with-arch=.
17596 * doc/invoke.texi (Option Summary, Nios II Options): Document
17597 -march=, -mbmx, and -mcdx.
17599 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
17601 PR rtl-optimization/66626
17602 * lra-constraints.c (lra_constraints): Prevent equivalence
17603 substitution for static chain pseudo in functions with nonlocal
17606 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
17608 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
17609 (nios2_emit_stack_limit_check): Add size parameter. Handle
17610 -fstack-limit-symbol as well as -fstack-limit-register.
17611 (nios2_expand_prologue): Emit only a single stack limit check,
17612 even if multiple stack adjustments are required.
17613 (nios2_option_override): Diagnose unsupported combination of -fpic
17614 and -stack-limit-symbol.
17616 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
17618 * Makefile.in (top_srcdir): New.
17619 * configure.ac: Use AM_ZLIB.
17620 * configure: Regeneated.
17622 2015-07-14 Matthias Klose <doko@ubuntu.com>
17625 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
17627 2015-07-14 Richard Biener <rguenther@suse.de>
17629 PR tree-optimization/66863
17630 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
17631 what we record for conversion use stmt lhs inequalities.
17633 2015-07-14 Richard Biener <rguenther@suse.de>
17635 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
17636 (decision_tree::gen_gimple): Likewise.
17638 2015-07-14 Tom de Vries <tom@codesourcery.com>
17640 * gcc.c (greater_than_spec_func): Declare forward.
17641 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
17642 -ftree-parallelize-loops={0,1}.
17643 (static_spec_functions): Add greater_than_spec_func function with name
17645 (greater_than_spec_func): New function.
17647 2015-07-14 Richard Biener <rguenther@suse.de>
17649 * tree-ssa-dom.c (record_temporary_equivalences): Merge
17650 wideing type conversion case from record_equivalences_from_incoming_edge
17651 and use record_equality to record equivalences.
17652 (record_equivalences_from_incoming_edge): Call
17653 record_temporary_equivalences.
17655 2015-07-14 Richard Biener <rguenther@suse.de>
17657 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
17658 (struct if_expr): New.
17659 (struct with_expr): Likewise.
17660 (is_a_helper): Add helpers for if_expr and with_expr.
17661 (struct simplify): Add simplify_kind enum and member. Remove
17663 (simplify::simplify): Adjust.
17664 (lower_commutative): Adjust.
17665 (lower_opt_convert): Likewise.
17666 (lower_cond): Likewise.
17667 (replace_id): Handle with_expr and if_expr.
17668 (lower_for): Adjust.
17669 (dt_simplify::gen_1): New recursive worker, split out from ...
17670 (dt_simplify::gen): ... here. Deal with if and with expansion
17672 (capture_info::capture_info): Take context argument
17673 (capture_info::walk_result): Only analyze specific result.
17674 (parser::parse_result): New function.
17675 (parser::parse_simplify): Adjust to parse ifs with then end
17677 (parser::parse_if): Simplify.
17678 (parser::parse_pattern): Pass down simplify kind.
17679 * match.pd: Convert if structure to new syntax.
17681 2015-07-13 Marek Polacek <polacek@redhat.com>
17683 * rtl.c (rtx_equal_p_cb): Fix typo.
17685 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
17687 * omega.h: Don't include config.h, don't include params.h again if
17688 omega.h has already been included.
17689 * graphite-poly.h: Include sese.h.
17690 * graphite.c: Don't include sese.h, remove needless includes and
17691 minimize includes outside #ifdef HAVE_isl block.
17692 * graphite-blocking.c: Don't include sese.h, remove needless includes,
17693 and wrap entire file in #ifdef HAVE_isl
17694 * graphite-dependences.c: Likewise.
17695 * graphite-interchange.c: Likewise.
17696 * graphite-isl-ast-to-gimple.c: Likewise.
17697 * graphite-optimize-isl.c: Likewise.
17698 * graphite-poly.c: Likewise.
17699 * graphite-scop-detection.c: Likewise.
17700 * graphite-sese-to-poly.c: Likewise.
17702 2015-07-13 Tom de Vries <tom@codesourcery.com>
17704 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
17706 2015-07-13 Renlin Li <renlin.li@arm.com>
17709 * simplify-rtx.c (simplify_const_relational_operation): Add
17710 side_effects_p checks.
17712 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
17714 * bitmap.h: Fix double word typos.
17715 * builtins.c: Same.
17717 * cfgloopmanip.c: Same.
17720 * cgraphclones.c: Same.
17722 * config/aarch64/aarch64-protos.h: Same.
17723 * config/aarch64/aarch64.c: Same.
17724 * config/aarch64/aarch64.md: Same.
17725 * config/arm/arm.md: Same.
17726 * config/arm/arm1020e.md: Same.
17727 * config/arm/arm1026ejs.md: Same.
17728 * config/arm/arm926ejs.md: Same.
17729 * config/arm/fa526.md: Same.
17730 * config/arm/fa606te.md: Same.
17731 * config/arm/fa626te.md: Same.
17732 * config/arm/fa726te.md: Same.
17733 * config/arm/fmp626.md: Same.
17734 * config/darwin.c: Same.
17735 * config/epiphany/epiphany.c: Same.
17736 * config/frv/frv.c: Same.
17737 * config/ft32/ft32.c: Same.
17738 * config/gnu-user.h: Same.
17739 * config/h8300/constraints.md: Same.
17740 * config/i386/i386.c: Same.
17741 * config/i386/i386.md: Same.
17742 * config/iq2000/iq2000.md: Same.
17743 * config/mips/mips.c: Same.
17744 * config/mmix/mmix.md: Same.
17745 * config/moxie/moxie.c: Same.
17746 * config/nds32/nds32.md: Same.
17747 * config/pa/pa.h: Same.
17748 * config/rs6000/aix.h: Same.
17749 * config/rs6000/rs6000.h: Same.
17750 * config/sh/sh.c: Same.
17751 * config/tilegx/tilegx.md: Same.
17752 * config/tilepro/gen-mul-tables.cc: Same.
17755 * doc/invoke.texi: Same.
17757 * dwarf2out.c: Same.
17760 * genmatch.c: Same.
17761 * gimplify.c: Same.
17762 * hash-table.h: Same.
17763 * internal-fn.c: Same.
17765 * ipa-devirt.c: Same.
17768 * ipa-profile.c: Same.
17769 * ipa-prop.c: Same.
17770 * ipa-prop.h: Same.
17773 * reg-stack.c: Same.
17774 * regcprop.c: Same.
17779 * tree-inline.c: Same.
17780 * tree-sra.c: Same.
17781 * tree-ssa-dom.c: Same.
17782 * tree-ssa-loop-ivopts.c: Same.
17783 * tree-ssa-structalias.c: Same.
17784 * tree-ssa-tail-merge.c: Same.
17785 * tree-ssa-ter.c: Same.
17786 * tree-ssa-threadupdate.c: Same.
17787 * tree-ssa-uninit.c: Same.
17788 * tree-ssanames.c: Same.
17789 * tree-vect-loop-manip.c: Same.
17790 * tree-vrp.c: Same.
17792 * valtrack.c: Same.
17795 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17797 PR middle-end/66726
17798 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
17799 tree_ssa_phiopt_worker): Call it.
17801 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
17803 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
17804 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
17807 2015-07-11 Marek Polacek <polacek@redhat.com>
17809 PR middle-end/66353
17810 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
17811 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
17812 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
17813 rather than bb_has_abnormal_call_pred.
17814 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
17815 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
17816 rather than bb_has_abnormal_call_pred.
17818 2015-07-10 Anatoly Sokolov <aesok@post.ru>
17820 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
17821 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
17822 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17823 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
17824 v850_legitimate_address_p): New functions.
17825 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17827 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
17830 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
17831 indirect sibcall with register arguments if register available
17832 for argument passing.
17833 (init_cumulative_args): Set cfun->machine->arg_reg_available
17834 to (cum->nregs > 0) or to true if function has a variable
17836 (function_arg_advance_32): Set cfun->machine->arg_reg_available
17837 to false if cum->nregs <= 0.
17838 * config/i386/i386.h (machine_function): Add arg_reg_available.
17840 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
17842 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
17843 and gen_higpart instead of gen_rtx_SUBREG.
17844 * config/i386/i386.md
17845 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
17846 (read-modify peephole2): Use gen_lowpart instead of
17847 gen_rtx_SUBREG for operand 5.
17849 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17851 * config/tilepro/gen-mul-tables.cc (main): Change include list for
17853 * config/tilepro/mul-tables.c: Regenerate.
17854 * config/tilegx/mul-tables.c: Regenerate.
17856 2015-07-10 Richard Biener <rguenther@suse.de>
17858 * fold-const.c (distribute_bit_expr): Remove.
17859 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
17860 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
17861 to A & (B | C) and simplifying A << C1 << C2 to ...
17862 * match.pd: ... patterns here.
17864 2015-07-10 Jiong Wang <jiong.wang@arm.com>
17866 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17867 Mark mem as READONLY and NOTRAP for PIC symbol.
17869 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
17871 * gimple-predict.h: New file.
17872 (gimple_predict_predictor, gimple_predict_set_predictor,
17873 gimple_predict_outcome, gimple_predict_set_outcome,
17874 gimple_build_predict): Relocate here.
17875 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
17876 gimple_predict_outcome, gimple_predict_set_outcome): Move to
17878 * gimple.c (gimple_build_predict): Move to gimple-predict.h
17879 * basic-block.h: Don't include cfghooks.h.
17880 * backend.h: Don't include predict.h.
17881 * cfghooks.h: Include predict.h.
17882 * gimple-pretty-print.c: Include gimple-predict.h.
17883 * gimplify.c: Likwise.
17884 * predict.c: Adjust includes.
17885 * tree-inline.c: Likewise.
17886 * asan.c: Likewise.
17887 * auto-inc-dec.c: Likewise.
17888 * auto-profile.c: Likewise.
17889 * bb-reorder.c: Likewise.
17890 * builtins.c: Likewise.
17891 * caller-save.c: Likewise.
17892 * calls.c: Likewise.
17893 * cfganal.c: Likewise.
17894 * cfgbuild.c: Likewise.
17896 * cfgcleanup.c: Likewise.
17897 * cfgexpand.c: Likewise.
17898 * cfghooks.c: Likewise.
17899 * cfgloopanal.c: Likewise.
17900 * cfgloop.c: Likewise.
17901 * cfgloopmanip.c: Likewise.
17902 * cfgrtl.c: Likewise.
17903 * cgraph.c: Likewise.
17904 * cgraphunit.c: Likewise.
17905 * combine.c: Likewise.
17906 * cprop.c: Likewise.
17909 * dojump.c: Likewise.
17911 * except.c: Likewise.
17912 * expmed.c: Likewise.
17913 * expr.c: Likewise.
17914 * final.c: Likewise.
17915 * fold-const.c: Likewise.
17916 * function.c: Likewise.
17917 * fwprop.c: Likewise.
17918 * gcc-plugin.h: Likewise.
17919 * gcse.c: Likewise.
17920 * genattrtab.c: Likewise.
17921 * genemit.c: Likewise.
17922 * gengtype.c: Likewise.
17923 * genopinit.c: Likewise.
17924 * genoutput.c: Likewise.
17925 * genpreds.c: Likewise.
17926 * genrecog.c: Likewise.
17927 * gimple-fold.c: Likewise.
17928 * gimple-iterator.c: Likewise.
17929 * gimple-ssa-isolate-paths.c: Likewise.
17930 * gimple-ssa-strength-reduction.c: Likewise.
17931 * graph.c: Likewise.
17932 * graphite-blocking.c: Likewise.
17933 * graphite.c: Likewise.
17934 * graphite-dependences.c: Likewise.
17935 * graphite-interchange.c: Likewise.
17936 * graphite-isl-ast-to-gimple.c: Likewise.
17937 * graphite-optimize-isl.c: Likewise.
17938 * graphite-poly.c: Likewise.
17939 * graphite-scop-detection.c: Likewise.
17940 * graphite-sese-to-poly.c: Likewise.
17941 * haifa-sched.c: Likewise.
17942 * ifcvt.c: Likewise.
17943 * internal-fn.c: Likewise.
17944 * ipa-cp.c: Likewise.
17945 * ipa-profile.c: Likewise.
17946 * ipa-split.c: Likewise.
17947 * ipa-utils.c: Likewise.
17948 * ira-build.c: Likewise.
17949 * ira-color.c: Likewise.
17950 * ira-conflicts.c: Likewise.
17951 * ira-costs.c: Likewise.
17952 * ira-emit.c: Likewise.
17953 * ira-lives.c: Likewise.
17954 * jump.c: Likewise.
17955 * loop-doloop.c: Likewise.
17956 * loop-init.c: Likewise.
17957 * loop-invariant.c: Likewise.
17958 * loop-unroll.c: Likewise.
17959 * lower-subreg.c: Likewise.
17960 * lra-assigns.c: Likewise.
17962 * lra-coalesce.c: Likewise.
17963 * lra-constraints.c: Likewise.
17964 * lra-lives.c: Likewise.
17965 * lto-cgraph.c: Likewise.
17966 * lto-streamer-in.c: Likewise.
17967 * mode-switching.c: Likewise.
17968 * modulo-sched.c: Likewise.
17969 * omp-low.c: Likewise.
17970 * optabs.c: Likewise.
17971 * passes.c: Likewise.
17972 * postreload.c: Likewise.
17973 * postreload-gcse.c: Likewise.
17974 * profile.c: Likewise.
17975 * recog.c: Likewise.
17976 * regstat.c: Likewise.
17977 * reload1.c: Likewise.
17978 * reorg.c: Likewise.
17979 * rtlanal.c: Likewise.
17980 * sched-ebb.c: Likewise.
17981 * sel-sched-ir.c: Likewise.
17982 * sese.c: Likewise.
17983 * shrink-wrap.c: Likewise.
17984 * simplify-rtx.c: Likewise.
17985 * stmt.c: Likewise.
17986 * store-motion.c: Likewise.
17987 * tracer.c: Likewise.
17988 * trans-mem.c: Likewise.
17989 * tree-call-cdce.c: Likewise.
17990 * tree-cfg.c: Likewise.
17991 * tree-cfgcleanup.c: Likewise.
17992 * tree-chkp.c: Likewise.
17993 * tree-complex.c: Likewise.
17994 * tree-eh.c: Likewise.
17995 * tree-if-conv.c: Likewise.
17996 * tree-loop-distribution.c: Likewise.
17997 * tree-outof-ssa.c: Likewise.
17998 * tree-parloops.c: Likewise.
17999 * tree-predcom.c: Likewise.
18000 * tree-pretty-print.c: Likewise.
18001 * tree-profile.c: Likewise.
18002 * tree-sra.c: Likewise.
18003 * tree-ssa.c: Likewise.
18004 * tree-ssa-coalesce.c: Likewise.
18005 * tree-ssa-dce.c: Likewise.
18006 * tree-ssa-dom.c: Likewise.
18007 * tree-ssa-forwprop.c: Likewise.
18008 * tree-ssa-ifcombine.c: Likewise.
18009 * tree-ssa-loop-ch.c: Likewise.
18010 * tree-ssa-loop-im.c: Likewise.
18011 * tree-ssa-loop-ivcanon.c: Likewise.
18012 * tree-ssa-loop-ivopts.c: Likewise.
18013 * tree-ssa-loop-manip.c: Likewise.
18014 * tree-ssa-loop-prefetch.c: Likewise.
18015 * tree-ssa-loop-unswitch.c: Likewise.
18016 * tree-ssa-math-opts.c: Likewise.
18017 * tree-ssa-phiopt.c: Likewise.
18018 * tree-ssa-pre.c: Likewise.
18019 * tree-ssa-reassoc.c: Likewise.
18020 * tree-ssa-sink.c: Likewise.
18021 * tree-ssa-tail-merge.c: Likewise.
18022 * tree-ssa-threadedge.c: Likewise.
18023 * tree-ssa-threadupdate.c: Likewise.
18024 * tree-switch-conversion.c: Likewise.
18025 * tree-tailcall.c: Likewise.
18026 * tree-vect-data-refs.c: Likewise.
18027 * tree-vect-loop.c: Likewise.
18028 * tree-vect-loop-manip.c: Likewise.
18029 * tree-vectorizer.c: Likewise.
18030 * tree-vrp.c: Likewise.
18031 * ubsan.c: Likewise.
18032 * value-prof.c: Likewise.
18033 * varasm.c: Likewise.
18034 * var-tracking.c: Likewise.
18035 * config/aarch64/aarch64-builtins.c: Likewise.
18036 * config/aarch64/aarch64.c: Likewise.
18037 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
18038 * config/alpha/alpha.c: Likewise.
18039 * config/arc/arc.c: Likewise.
18040 * config/arm/arm.c: Likewise.
18041 * config/avr/avr.c: Likewise.
18042 * config/bfin/bfin.c: Likewise.
18043 * config/c6x/c6x.c: Likewise.
18044 * config/cr16/cr16.c: Likewise.
18045 * config/cris/cris.c: Likewise.
18046 * config/darwin.c: Likewise.
18047 * config/darwin-c.c: Likewise.
18048 * config/epiphany/epiphany.c: Likewise.
18049 * config/epiphany/mode-switch-use.c: Likewise.
18050 * config/epiphany/resolve-sw-modes.c: Likewise.
18051 * config/fr30/fr30.c: Likewise.
18052 * config/frv/frv.c: Likewise.
18053 * config/ft32/ft32.c: Likewise.
18054 * config/h8300/h8300.c: Likewise.
18055 * config/i386/i386.c: Likewise.
18056 * config/i386/winnt.c: Likewise.
18057 * config/ia64/ia64.c: Likewise.
18058 * config/iq2000/iq2000.c: Likewise.
18059 * config/lm32/lm32.c: Likewise.
18060 * config/m32c/m32c.c: Likewise.
18061 * config/m32r/m32r.c: Likewise.
18062 * config/m68k/m68k.c: Likewise.
18063 * config/mcore/mcore.c: Likewise.
18064 * config/mep/mep.c: Likewise.
18065 * config/microblaze/microblaze.c: Likewise.
18066 * config/mips/mips.c: Likewise.
18067 * config/mmix/mmix.c: Likewise.
18068 * config/mn10300/mn10300.c: Likewise.
18069 * config/moxie/moxie.c: Likewise.
18070 * config/msp430/msp430.c: Likewise.
18071 * config/nds32/nds32.c: Likewise.
18072 * config/nds32/nds32-cost.c: Likewise.
18073 * config/nds32/nds32-fp-as-gp.c: Likewise.
18074 * config/nds32/nds32-intrinsic.c: Likewise.
18075 * config/nds32/nds32-isr.c: Likewise.
18076 * config/nds32/nds32-md-auxiliary.c: Likewise.
18077 * config/nds32/nds32-memory-manipulation.c: Likewise.
18078 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
18079 * config/nds32/nds32-predicates.c: Likewise.
18080 * config/nios2/nios2.c: Likewise.
18081 * config/nvptx/nvptx.c: Likewise.
18082 * config/pa/pa.c: Likewise.
18083 * config/pdp11/pdp11.c: Likewise.
18084 * config/rl78/rl78.c: Likewise.
18085 * config/rs6000/rs6000.c: Likewise.
18086 * config/rx/rx.c: Likewise.
18087 * config/s390/s390.c: Likewise.
18088 * config/sh/sh.c: Likewise.
18089 * config/sh/sh-mem.cc: Likewise.
18090 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
18091 * config/sh/sh_treg_combine.cc: Likewise.
18092 * config/sparc/sparc.c: Likewise.
18093 * config/spu/spu.c: Likewise.
18094 * config/stormy16/stormy16.c: Likewise.
18095 * config/tilegx/tilegx.c: Likewise.
18096 * config/tilepro/tilepro.c: Likewise.
18097 * config/v850/v850.c: Likewise.
18098 * config/vax/vax.c: Likewise.
18099 * config/visium/visium.c: Likewise.
18100 * config/xtensa/xtensa.c: Likewise.
18102 2015-07-10 Richard Biener <rguenther@suse.de>
18104 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
18105 (decision_tree::gen_gimple): Likewise.
18106 (decision_tree::gen_generic): Likewise.
18108 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
18111 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
18112 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
18114 2015-07-10 Jakub Jelinek <jakub@redhat.com>
18116 PR middle-end/66820
18117 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
18118 or ORT_TASK contexts.
18119 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
18122 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18124 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
18127 2015-07-10 Tom de Vries <tom@codesourcery.com>
18129 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
18130 insert nit + 1 bound.
18132 2015-07-10 Richard Biener <rguenther@suse.de>
18134 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
18135 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
18136 (if_convertible_loop_p_1): For this always compute bb predicates.
18137 (if_convertible_loop_p): And free them.
18139 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
18141 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
18144 2015-07-10 Richard Biener <rguenther@suse.de>
18146 PR tree-optimization/66823
18147 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
18148 inverted predicate.
18150 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
18152 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
18153 to handle mips[32|64]r3 and mips[32|64]r5.
18155 2015-07-09 Jakub Jelinek <jakub@redhat.com>
18157 PR middle-end/66633
18158 * tree-nested.c (get_static_chain): Or in a flag into
18159 info->static_chain_added.
18160 (get_frame_field, get_nonlocal_debug_decl): Likewise.
18161 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
18162 2015-07-01 changes.
18163 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
18164 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
18167 PR tree-optimization/66718
18168 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
18170 (vect_simd_lane_linear): New function.
18171 (vectorizable_simd_clone_call): Support using linear arguments for
18172 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
18174 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18177 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
18179 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
18181 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
18182 Use machine mode, not enum machine_mode in the prototype.
18184 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
18185 classify 128-bit floating point support.
18186 (FLOAT128_IBM_P): Likewise.
18187 (FLOAT128_VECTOR_P): Likewise.
18188 (FLOAT128_2REG_P): Likewise.
18189 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
18190 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
18191 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
18192 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
18194 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
18195 tests against TFmode/TDmode, since those modes do not use VSX
18197 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
18199 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
18200 tests against TFmode, etc.
18201 (invalid_e500_subreg): Add tests against IFmode/KFmode.
18202 (reg_offset_addressing_ok_p): Likewise.
18203 (rs6000_legitimate_offset_address_p): Likewise.
18204 (rs6000_legitimize_address): Likewise.
18205 (rs6000_legitimize_reload_address): Likewise.
18206 (rs6000_legitimate_address_p): Clean up tests against TFmode and
18207 TDmode to use the new helper macros, which will include IFmode and
18209 (rs6000_emit_move): Likewise.
18210 (rs6000_darwin64_record_arg_recurse): Likewise.
18211 (print_operand): Likewise.
18212 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
18213 that uses a single vector register as a vector and not as a
18214 floating point register in terms of the calling sequence.
18215 (rs6000_discover_homogeneous_aggregate): Likewise.
18216 (rs6000_return_in_memory): Likewise.
18217 (init_cumulative_args): Likewise.
18218 (rs6000_function_arg_boundary): Likewise.
18219 (rs6000_function_arg_advance_1): Likewise.
18220 (rs6000_function_arg): Likewise.
18221 (rs6000_pass_by_reference): Likewise.
18222 (rs6000_gimplify_va_arg): Likewise.
18223 (rs6000_secondary_reload_memory): Use machine_mode not enum
18225 (rs6000_split_multireg_move): Use new helper macros.
18226 (spe_func_has_64bit_regs_p): Likewise.
18227 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
18228 (output_toc): Use new helper macros.
18229 (rs6000_register_move_cost): Likewise.
18230 (rs6000_function_value): Add IEEE 128-bit floating point calling
18232 (rs6000_libcall_value): Likewise.
18233 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
18234 floating point support.
18235 (rs6000_vector_mode_supported_p): Likewise.
18237 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
18239 PR rtl-optimization/66782
18240 * lra-int.h (struct lra_insn_recog_data): Add comment about
18241 clobbered hard regs for arg_hard_regs.
18242 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
18243 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
18244 Add condition for processing used hard regs.
18245 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
18246 Process clobbered hard regs.
18248 2015-07-09 Michael Matz <matz@suse.de>
18250 * genmatch.c (fprintf_indent): New function.
18251 (operand::gen_transform): Add indent parameter.
18252 (expr::gen_transform, c_expr::gen_transform,
18253 capture::gen_transform): Ditto and use fprintf_indent.
18254 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
18255 (dt_operand::gen, dt_operand::gen_predicate,
18256 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
18257 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
18258 (decision_tree::gen_gimple): Adjust calls and indent generated
18260 (decision_tree::gen_generic): Ditto.
18261 (write_predicate): Ditto.
18263 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18266 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
18267 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
18268 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
18269 {GENERAL,SSE,MMX}_REG_P where appropriate.
18271 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
18273 * lto-streamer.h: Don't include target.h and alloc-pool.h.
18274 * builtins.c: Adjust includes.
18275 * gimple.c: Likewise.
18276 * ipa-icf.c: Likewise.
18277 * lto-opts.c: Likewise.
18278 * ipa-reference.c: Likewise.
18279 * lto-section-out.c: Likewise.
18280 * lto-streamer-in.c: Likewise.
18281 * lto-streamer-out.c: Likewise.
18282 * opts-global.c: Likewise.
18283 * symtab.c: Likewise.
18284 * tree-chkp.c: Likewise.
18285 * tree-ssa-live.c: Likewise.
18286 * tree-streamer-in.c: Likewise.
18287 * tree-streamer-out.c: Likewise.
18288 * config/darwin.c: Likewise.
18289 * config/i386/winnt.c: Likewise.
18291 2015-07-09 Richard Biener <rguenther@suse.de>
18293 * genmatch.c (struct expr): Add force_single_use flag.
18294 (expr::expr): Add copy constructor.
18295 (capture_info::walk_match): Gather force_single_use captures.
18296 (expr::gen_transform): Use possibly NULLified sequence.
18297 (dt_simplify::gen): Apply single-use restrictions by NULLifying
18298 seq if any constrained expr is not single-use.
18299 (parser::parse_expr): Refactor to allow multiple flags. Handle
18300 's' flag to force an expression have a single-use if the pattern
18301 simplifies to more than one statement.
18302 * match.pd: Convert most single_use conditionals to :s flags.
18304 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18306 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
18307 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
18308 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
18310 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
18312 * flags.h: Don't include flag-types.h or options.h.
18313 * opts-common.c: Adjust includes.
18314 * opts-global.c: Likewise.
18315 * common/config/epiphany/epiphany-common.c: Likewise.
18317 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18320 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
18323 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
18326 * config/i386/i386.c (ix86_return_in_memory): Return true
18327 if int_size_in_bytes returns negative for IA MCU.
18329 2015-07-09 Marek Polacek <polacek@redhat.com>
18331 PR tree-optimization/66718
18332 * Makefile.in (OBJS): Add gimple-laddress.o.
18333 * passes.def: Schedule pass_laddress.
18334 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
18335 * tree-pass.h (make_pass_laddress): Declare.
18336 * gimple-laddress.c: New file.
18338 2015-07-09 Richard Biener <rguenther@suse.de>
18340 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
18342 2015-07-09 Richard Biener <rguenther@suse.de>
18344 PR tree-optimization/66807
18345 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
18347 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
18349 * function.c (stack_protect_epilogue): Use if rather than switch for
18350 check targetm.have_stack_protect_test.
18352 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18354 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
18355 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
18356 * config/arc/arc.h: Likewise.
18357 * config/arm/arm.h: Likewise.
18358 * config/bfin/bfin.h: Likewise.
18359 * config/epiphany/epiphany.h: Likewise.
18360 * config/frv/frv.h: Likewise.
18361 * config/ia64/ia64.h: Likewise.
18362 * config/iq2000/iq2000.h: Likewise.
18363 * config/lm32/lm32.h: Likewise.
18364 * config/m32r/m32r.h: Likewise.
18365 * config/mcore/mcore.h: Likewise.
18366 * config/mep/mep.h: Likewise.
18367 * config/microblaze/microblaze.h: Likewise.
18368 * config/mips/mips.h: Likewise.
18369 * config/mmix/mmix.h: Likewise.
18370 * config/mn10300/mn10300.h: Likewise.
18371 * config/nds32/nds32.h: Likewise.
18372 * config/nios2/nios2.h: Likewise.
18373 * config/pa/pa.h: Likewise.
18374 * config/rl78/rl78.h: Likewise.
18375 * config/sh/sh.h: Likewise.
18376 * config/sparc/sparc.h: Likewise.
18377 * config/stormy16/stormy16.h: Likewise.
18378 * config/tilegx/tilegx.h: Likewise.
18379 * config/tilepro/tilepro.h: Likewise.
18380 * config/v850/v850.h: Likewise.
18381 * config/xtensa/xtensa.h: Likewise.
18382 * doc/tm.texi: Regenerate.
18383 * doc/tm.texi.in: Adjust.
18384 * combine.c (simplify_set): Likewise.
18385 (simplify_comparison): Likewise.
18386 * expr.c (store_constructor): Likewise.
18387 * internal-fn.c (expand_arith_overflow): Likewise.
18388 * reload.c (push_reload): Likewise.
18389 (find_reloads): Likewise.
18390 (find_reloads_subreg_address): Likewise.
18391 * reload1.c (eliminate_regs_1): Likewise.
18392 * rtlanal.c (nonzero_bits1): Likewise.
18393 (num_sign_bit_copies1): Likewise.
18394 * simplify-rtx.c (simplify_truncation): Likewise.
18396 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18398 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
18399 of AUTO_INC_DEC with the preprocessor.
18400 * combine.c (combine_instructions): Likewise.
18401 (can_combine_p): Likewise.
18402 (try_combine): Likewise.
18403 * emit-rtl.c (try_split): Likewise.
18404 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18405 * lower-subreg.c (resolve_simple_move): Likewise.
18406 * lra.c (update_inc_notes): Likewise.
18407 * recog.c (asm_operand_ok): Likewise.
18408 (constrain_operands): Likewise.
18409 * regrename.c (scan_rtx_address): Likewise.
18410 * reload.c (update_auto_inc_notes): Likewise.
18411 (reg_inc_found_and_valid_p): Likewise.
18412 * reload1.c (reload): Likewise.
18413 (emit_input_reload_insns): Likewise.
18414 (delete_output_reload): Likewise.
18415 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18416 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18418 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18420 * rtl.h: Always define AUTO_INC_DEC.
18421 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
18422 * combine.c (combine_instructions): Likewise.
18423 (can_combine_p): Likewise.
18424 (try_combine): Likewise.
18425 * emit-rtl.c (try_split): Likewise.
18426 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
18427 * lower-subreg.c (resolve_simple_move): Likewise.
18428 * lra.c (update_inc_notes): Likewise.
18429 * recog.c (asm_operand_ok): Likewise.
18430 (constrain_operands): Likewise.
18431 * regrename.c (scan_rtx_address): Likewise.
18432 * reload.c (update_auto_inc_notes): Likewise.
18433 (find_equiv_reg): Likewise.
18434 * reload1.c (reload): Likewise.
18435 (reload_as_needed): Likewise.
18436 (choose_reload_regs): Likewise.
18437 (emit_input_reload_insns): Likewise.
18438 (delete_output_reload): Likewise.
18439 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
18440 * valtrack.c (cleanup_auto_inc_dec): Likewise.
18442 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18444 * combine.c (can_combine_def_p): Don't check the value of
18445 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
18446 (combinable_i3pat): Likewise.
18447 (mark_used_regs_combine): Likewise.
18448 * regrename.c (rename_chains): Likewise.
18449 * reload.c (find_reloads_address): Likewise.
18450 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
18452 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18454 * combine.c (update_rsp_from_reg_equal): Don't check if
18455 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
18456 (reg_nonzero_bits_for_combine): Likewise.
18457 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
18459 * config/frv/frv.h: Likewise.
18460 * config/lm32/lm32.h: Likewise.
18461 * config/mep/mep.h: Likewise.
18462 * config/mips/mips.h: Likewise.
18463 * config/rs6000/rs6000.h: Likewise.
18464 * config/sh/sh.h: Likewise.
18465 * config/tilegx/tilegx.h (enum reg_class): Likewise.
18466 * config/tilepro/tilepro.h: Likewise.
18467 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
18468 * doc/tm.texi: Regenerate.
18469 * doc/tm.texi.in: Adjust.
18470 * rtlanal.c (nonzero_bits1): Likewise.
18472 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18474 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
18475 with the preprocessor.
18476 (combine_instructions): Likewise.
18477 (try_combine): Likewise.
18479 (distribute_notes): Likewise.
18481 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18483 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
18485 (simplify_set): Likewise.
18486 * cse.c (cse_insn): Likewise.
18487 * fold-const.c (fold_single_bit_test): Likewise.
18488 (fold_unary_loc): Likewise.
18489 * postreload.c (reload_cse_simplify_set): Likewise.
18490 (reload_cse_simplify_operands): Likewise.
18492 2015-07-08 Jiong Wang <jiong.wang@arm.com>
18494 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
18495 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
18497 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
18500 * config/i386/x86intrin.h: Include <adxintrin.h> even if
18501 __iamcu__ is defined.
18503 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18505 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
18507 2015-07-08 Iain Sandoe <iain@codesourcery.com>
18510 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
18511 names from preservation.
18513 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
18516 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
18518 (function_arg_advance_32): Don't pass vectors in registers for
18520 (function_arg_32): Likewise.
18521 (ix86_return_in_memory): Don't return vectors in registers for
18524 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
18526 PR middle-end/66334
18527 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
18528 hard regno live at the start of BB with incoming abnormal edges.
18529 * lra-lives.c (process_bb_lives): Ditto.
18531 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
18534 * config/nvptx/mkoffload.c (main): Create an offload image only in
18535 64-bit configurations.
18537 2015-07-08 Martin Liska <mliska@suse.cz>
18540 * tree-sra.c (create_access_1): Call ctor without brackets.
18541 (create_artificial_child_access): Likewise.
18543 2015-07-08 Richard Biener <rguenther@suse.de>
18545 PR tree-optimization/66793
18546 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
18547 Properly split the block after stmts ending it.
18549 2015-07-08 Richard Biener <rguenther@suse.de>
18551 PR tree-optimization/66794
18552 * passes.c (execute_function_todo): Assert that post-dominators
18554 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
18555 Free post-dominators.
18557 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18559 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
18562 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
18564 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
18565 more than or equal 8 and less than 32 when optimizing for size.
18567 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18569 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
18570 COSTS_N_INSNS (1) and increment it appropriately throughout the
18573 2015-07-08 Richard Biener <rguenther@suse.de>
18575 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
18577 2015-07-08 Alan Modra <amodra@gmail.com>
18579 * target.def (rtx_costs): Remove "code" param, add "mode".
18580 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
18581 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
18582 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
18583 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
18584 call. Track mode when given in rtx.
18585 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
18586 (default_address_cost): Pass Pmode to rtx_cost.
18587 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
18588 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
18590 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
18591 (notreg_cost): Add mode param. Use it.
18592 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
18593 mode param and pass to set_src_cost. Update all calls.
18594 (hash_scan_set): Formatting.
18595 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
18596 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
18598 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
18599 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
18600 emit_store_flag): Update set_src_cost and rtx_cost calls.
18601 * auto-inc-dec.c (attempt_change): Likewise.
18602 * calls.c (precompute_register_parameters): Likewise.
18603 * combine.c (expand_compound_operation, make_extraction,
18604 force_to_mode, distribute_and_simplify_rtx): Likewise.
18605 * dojump.c (prefer_and_bit_test): Likewise.
18606 * dse.c (find_shift_sequence): Likewise.
18607 * expr.c (compress_float_constant): Likewise.
18608 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
18609 * ifcvt.c (noce_try_sign_mask): Likewise.
18610 * loop-doloop.c (doloop_optimize): Likewise.
18611 * loop-invariant.c (create_new_invariant): Likewise.
18612 * lower-subreg.c (shift_cost, compute_costs): Likewise.
18613 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
18614 lshift_cheap_p): Likewise.
18615 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
18616 try_replace_in_use, reload_cse_move2add): Likewise.
18617 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
18619 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
18620 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
18621 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
18622 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
18623 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
18624 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
18626 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
18627 * config/arc/arc.c (arc_rtx_costs): Likewise.
18628 * config/arm/arm.c (arm_rtx_costs): Likewise.
18629 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
18630 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
18631 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
18632 * config/cris/cris.c (cris_rtx_costs): Likewise.
18633 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
18634 * config/frv/frv.c (frv_rtx_costs): Likewise.
18635 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
18636 * config/i386/i386.c (ix86_rtx_costs): Likewise.
18637 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
18638 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
18639 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
18640 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
18641 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
18642 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
18643 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
18644 * config/mep/mep.c (mep_rtx_cost): Likewise.
18645 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
18646 * config/mips/mips.c (mips_rtx_costs): Likewise.
18647 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
18648 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
18649 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
18650 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
18651 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
18652 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
18653 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
18654 * config/pa/pa.c (hppa_rtx_costs): Likewise.
18655 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
18656 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
18657 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
18658 * config/s390/s390.c (s390_rtx_costs): Likewise.
18659 * config/sh/sh.c (sh_rtx_costs): Likewise.
18660 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
18661 * config/spu/spu.c (spu_rtx_costs): Likewise.
18662 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
18663 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
18664 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
18665 * config/v850/v850.c (v850_rtx_costs): Likewise.
18666 * config/vax/vax.c (vax_rtx_costs): Likewise.
18667 * config/visium/visium.c (visium_rtx_costs): Likewise.
18668 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
18669 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
18670 "code" param, and pass as outer_code to first rtx_cost call. Pass
18671 mode to rtx_cost calls.
18672 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
18674 (aarch64_rtx_costs_wrapper): Update.
18675 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
18676 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
18678 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
18679 and rtx_cost calls.
18680 (avr_operand_rtx_cost): Similarly.
18681 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
18682 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
18683 * config/mips/mips.c (mips_stack_address_p): Comment typo.
18684 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
18685 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
18686 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
18688 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
18689 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
18690 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
18691 * doc/tm.texi: Regenerate.
18693 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
18695 * tree-core.h: Include symtab.h.
18696 * rtl.h: Include hard-reg-set.h but not flags.h.
18697 (HARD_CONST): Remove condition compilation involving HARD_CONST since
18698 hard-reg-set.h is always included.
18699 * regs.h: Don't include hard-reg-set.h or rtl.h.
18700 * cfg.h: Include dominance.h.
18701 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
18702 * backend.h: New. Aggregate commonly used backend header files.
18703 * gimple-ssa.h: Don't include tree-hasher.h.
18704 * ssa.h: New. Aggregate commonly used SSA header files.
18705 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
18706 * sel-sched-ir.h: Flatten includes.
18707 * lra-int.h: Flatten completely.
18708 * sel-sched-dump.h: Flatten includes.
18709 * ira-int.h: Flatten includes.
18710 * gimple-streamer.h: Remove all includes.
18711 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
18712 * resource.h: Flatten hard-reg-set.h and df.h.
18713 * sched-int.h: Flatten insn-arrt.h and df.h.
18714 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
18715 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
18716 * genattrtab.c (write_header): Adjust generated includes.
18717 * genautomata.c (main): Likewise.
18718 * genconditions.c (write-header): Likewise.
18719 * genemit.c (main): Likewise.
18720 * gengtype.c (open_base_files): Likewise.
18721 * genopinit.c (main): Likewise.
18722 * genoutput.c (output_prologue): Likewise.
18723 * genpeep.c (main): Likewise.
18724 * genpreds.c (write_insn_preds_c): Likewise.
18725 * genrecog.c (write_header): Likewise.
18726 * alias.c: Adjust includes.
18727 * asan.c: Likewise.
18728 * attribs.c: Likewise.
18729 * auto-inc-dec.c: Likewise.
18730 * auto-profile.c: Likewise.
18731 * bb-reorder.c: Likewise.
18732 * bt-load.c: Likewise.
18733 * builtins.c: Likewise.
18734 * caller-save.c: Likewise.
18735 * calls.c: Likewise.
18736 * ccmp.c: Likewise.
18738 * cfganal.c: Likewise.
18739 * cfgbuild.c: Likewise.
18740 * cfgcleanup.c: Likewise.
18741 * cfgexpand.c: Likewise.
18742 * cfghooks.c: Likewise.
18743 * cfgloop.c: Likewise.
18744 * cfgloopanal.c: Likewise.
18745 * cfgloopmanip.c: Likewise.
18746 * cfgrtl.c: Likewise.
18747 * cgraph.c: Likewise.
18748 * cgraphbuild.c: Likewise.
18749 * cgraphclones.c: Likewise.
18750 * cgraphunit.c: Likewise.
18751 * cilk-common.c: Likewise.
18752 * combine-stack-adj.c: Likewise.
18753 * combine.c: Likewise.
18754 * compare-elim.c: Likewise.
18755 * convert.c: Likewise.
18756 * coverage.c: Likewise.
18757 * cppbuiltin.c: Likewise.
18758 * cprop.c: Likewise.
18760 * cselib.c: Likewise.
18761 * data-streamer-in.c: Likewise.
18762 * data-streamer-out.c: Likewise.
18763 * data-streamer.c: Likewise.
18764 * dbxout.c: Likewise.
18767 * debug.c: Likewise.
18768 * df-core.c: Likewise.
18769 * df-problems.c: Likewise.
18770 * df-scan.c: Likewise.
18772 * dojump.c: Likewise.
18773 * dominance.c: Likewise.
18774 * domwalk.c: Likewise.
18775 * double-int.c: Likewise.
18777 * dumpfile.c: Likewise.
18778 * dwarf2asm.c: Likewise.
18779 * dwarf2cfi.c: Likewise.
18780 * dwarf2out.c: Likewise.
18781 * emit-rtl.c: Likewise.
18782 * et-forest.c: Likewise.
18783 * except.c: Likewise.
18784 * explow.c: Likewise.
18785 * expmed.c: Likewise.
18786 * expr.c: Likewise.
18787 * final.c: Likewise.
18788 * fixed-value.c: Likewise.
18789 * fold-const.c: Likewise.
18790 * function.c: Likewise.
18791 * fwprop.c: Likewise.
18792 * gcc-plugin.h: Likewise.
18793 * gcse-common.c: Likewise.
18794 * gcse.c: Likewise.
18795 * generic-match-head.c: Likewise.
18796 * ggc-page.c: Likewise.
18797 * gimple-builder.c: Likewise.
18798 * gimple-expr.c: Likewise.
18799 * gimple-fold.c: Likewise.
18800 * gimple-iterator.c: Likewise.
18801 * gimple-low.c: Likewise.
18802 * gimple-match-head.c: Likewise.
18803 * gimple-pretty-print.c: Likewise.
18804 * gimple-ssa-isolate-paths.c: Likewise.
18805 * gimple-ssa-strength-reduction.c: Likewise.
18806 * gimple-streamer-in.c: Likewise.
18807 * gimple-streamer-out.c: Likewise.
18808 * gimple-walk.c: Likewise.
18809 * gimple.c: Likewise.
18810 * gimplify-me.c: Likewise.
18811 * gimplify.c: Likewise.
18812 * godump.c: Likewise.
18813 * graph.c: Likewise.
18814 * graphite-blocking.c: Likewise.
18815 * graphite-dependences.c: Likewise.
18816 * graphite-interchange.c: Likewise.
18817 * graphite-isl-ast-to-gimple.c: Likewise.
18818 * graphite-optimize-isl.c: Likewise.
18819 * graphite-poly.c: Likewise.
18820 * graphite-scop-detection.c: Likewise.
18821 * graphite-sese-to-poly.c: Likewise.
18822 * graphite.c: Likewise.
18823 * haifa-sched.c: Likewise.
18824 * hw-doloop.c: Likewise.
18825 * ifcvt.c: Likewise.
18826 * init-regs.c: Likewise.
18827 * internal-fn.c: Likewise.
18828 * ipa-chkp.c: Likewise.
18829 * ipa-comdats.c: Likewise.
18830 * ipa-cp.c: Likewise.
18831 * ipa-devirt.c: Likewise.
18832 * ipa-icf-gimple.c: Likewise.
18833 * ipa-icf.c: Likewise.
18834 * ipa-inline-analysis.c: Likewise.
18835 * ipa-inline-transform.c: Likewise.
18836 * ipa-inline.c: Likewise.
18837 * ipa-polymorphic-call.c: Likewise.
18838 * ipa-profile.c: Likewise.
18839 * ipa-prop.c: Likewise.
18840 * ipa-pure-const.c: Likewise.
18841 * ipa-ref.c: Likewise.
18842 * ipa-reference.c: Likewise.
18843 * ipa-split.c: Likewise.
18844 * ipa-utils.c: Likewise.
18845 * ipa-visibility.c: Likewise.
18847 * ira-build.c: Likewise.
18848 * ira-color.c: Likewise.
18849 * ira-conflicts.c: Likewise.
18850 * ira-costs.c: Likewise.
18851 * ira-emit.c: Likewise.
18852 * ira-lives.c: Likewise.
18854 * jump.c: Likewise.
18855 * langhooks.c: Likewise.
18857 * loop-doloop.c: Likewise.
18858 * loop-init.c: Likewise.
18859 * loop-invariant.c: Likewise.
18860 * loop-iv.c: Likewise.
18861 * loop-unroll.c: Likewise.
18862 * lower-subreg.c: Likewise.
18863 * lra-assigns.c: Likewise.
18864 * lra-coalesce.c: Likewise.
18865 * lra-constraints.c: Likewise.
18866 * lra-eliminations.c: Likewise.
18867 * lra-lives.c: Likewise.
18868 * lra-remat.c: Likewise.
18869 * lra-spills.c: Likewise.
18871 * lto-cgraph.c: Likewise.
18872 * lto-compress.c: Likewise.
18873 * lto-opts.c: Likewise.
18874 * lto-section-in.c: Likewise.
18875 * lto-section-out.c: Likewise.
18876 * lto-streamer-in.c: Likewise.
18877 * lto-streamer-out.c: Likewise.
18878 * lto-streamer.c: Likewise.
18880 * mode-switching.c: Likewise.
18881 * modulo-sched.c: Likewise.
18882 * omega.c: Likewise.
18883 * omp-low.c: Likewise.
18884 * optabs.c: Likewise.
18885 * opts-global.c: Likewise.
18886 * passes.c: Likewise.
18887 * plugin.c: Likewise.
18888 * postreload-gcse.c: Likewise.
18889 * postreload.c: Likewise.
18890 * predict.c: Likewise.
18891 * print-rtl.c: Likewise.
18892 * print-tree.c: Likewise.
18893 * profile.c: Likewise.
18894 * real.c: Likewise.
18895 * realmpfr.c: Likewise.
18896 * recog.c: Likewise.
18898 * reg-stack.c: Likewise.
18899 * regcprop.c: Likewise.
18900 * reginfo.c: Likewise.
18901 * regrename.c: Likewise.
18902 * regstat.c: Likewise.
18903 * reload.c: Likewise.
18904 * reload1.c: Likewise.
18905 * reorg.c: Likewise.
18906 * resource.c: Likewise.
18907 * rtl-chkp.c: Likewise.
18908 * rtlanal.c: Likewise.
18909 * rtlhooks.c: Likewise.
18910 * sanopt.c: Likewise.
18911 * sched-deps.c: Likewise.
18912 * sched-ebb.c: Likewise.
18913 * sched-rgn.c: Likewise.
18914 * sched-vis.c: Likewise.
18915 * sdbout.c: Likewise.
18916 * sel-sched-dump.c: Likewise.
18917 * sel-sched-ir.c: Likewise.
18918 * sel-sched.c: Likewise.
18919 * sese.c: Likewise.
18920 * shrink-wrap.c: Likewise.
18921 * simplify-rtx.c: Likewise.
18922 * stack-ptr-mod.c: Likewise.
18923 * stmt.c: Likewise.
18924 * stor-layout.c: Likewise.
18925 * store-motion.c: Likewise.
18926 * stringpool.c: Likewise.
18927 * symtab.c: Likewise.
18928 * target-globals.c: Likewise.
18929 * targhooks.c: Likewise.
18930 * toplev.c: Likewise.
18931 * tracer.c: Likewise.
18932 * trans-mem.c: Likewise.
18933 * tree-affine.c: Likewise.
18934 * tree-browser.c: Likewise.
18935 * tree-call-cdce.c: Likewise.
18936 * tree-cfg.c: Likewise.
18937 * tree-cfgcleanup.c: Likewise.
18938 * tree-chkp-opt.c: Likewise.
18939 * tree-chkp.c: Likewise.
18940 * tree-chrec.c: Likewise.
18941 * tree-complex.c: Likewise.
18942 * tree-data-ref.c: Likewise.
18943 * tree-dfa.c: Likewise.
18944 * tree-diagnostic.c: Likewise.
18945 * tree-dump.c: Likewise.
18946 * tree-eh.c: Likewise.
18947 * tree-emutls.c: Likewise.
18948 * tree-if-conv.c: Likewise.
18949 * tree-inline.c: Likewise.
18950 * tree-into-ssa.c: Likewise.
18951 * tree-iterator.c: Likewise.
18952 * tree-loop-distribution.c: Likewise.
18953 * tree-nested.c: Likewise.
18954 * tree-nrv.c: Likewise.
18955 * tree-object-size.c: Likewise.
18956 * tree-outof-ssa.c: Likewise.
18957 * tree-parloops.c: Likewise.
18958 * tree-phinodes.c: Likewise.
18959 * tree-predcom.c: Likewise.
18960 * tree-pretty-print.c: Likewise.
18961 * tree-profile.c: Likewise.
18962 * tree-scalar-evolution.c: Likewise.
18963 * tree-sra.c: Likewise.
18964 * tree-ssa-address.c: Likewise.
18965 * tree-ssa-alias.c: Likewise.
18966 * tree-ssa-ccp.c: Likewise.
18967 * tree-ssa-coalesce.c: Likewise.
18968 * tree-ssa-copy.c: Likewise.
18969 * tree-ssa-copyrename.c: Likewise.
18970 * tree-ssa-dce.c: Likewise.
18971 * tree-ssa-dom.c: Likewise.
18972 * tree-ssa-dse.c: Likewise.
18973 * tree-ssa-forwprop.c: Likewise.
18974 * tree-ssa-ifcombine.c: Likewise.
18975 * tree-ssa-live.c: Likewise.
18976 * tree-ssa-loop-ch.c: Likewise.
18977 * tree-ssa-loop-im.c: Likewise.
18978 * tree-ssa-loop-ivcanon.c: Likewise.
18979 * tree-ssa-loop-ivopts.c: Likewise.
18980 * tree-ssa-loop-manip.c: Likewise.
18981 * tree-ssa-loop-niter.c: Likewise.
18982 * tree-ssa-loop-prefetch.c: Likewise.
18983 * tree-ssa-loop-unswitch.c: Likewise.
18984 * tree-ssa-loop.c: Likewise.
18985 * tree-ssa-math-opts.c: Likewise.
18986 * tree-ssa-operands.c: Likewise.
18987 * tree-ssa-phiopt.c: Likewise.
18988 * tree-ssa-phiprop.c: Likewise.
18989 * tree-ssa-pre.c: Likewise.
18990 * tree-ssa-propagate.c: Likewise.
18991 * tree-ssa-reassoc.c: Likewise.
18992 * tree-ssa-sccvn.c: Likewise.
18993 * tree-ssa-scopedtables.c: Likewise.
18994 * tree-ssa-sink.c: Likewise.
18995 * tree-ssa-strlen.c: Likewise.
18996 * tree-ssa-structalias.c: Likewise.
18997 * tree-ssa-tail-merge.c: Likewise.
18998 * tree-ssa-ter.c: Likewise.
18999 * tree-ssa-threadedge.c: Likewise.
19000 * tree-ssa-threadupdate.c: Likewise.
19001 * tree-ssa-uncprop.c: Likewise.
19002 * tree-ssa-uninit.c: Likewise.
19003 * tree-ssa.c: Likewise.
19004 * tree-ssanames.c: Likewise.
19005 * tree-stdarg.c: Likewise.
19006 * tree-streamer-in.c: Likewise.
19007 * tree-streamer-out.c: Likewise.
19008 * tree-streamer.c: Likewise.
19009 * tree-switch-conversion.c: Likewise.
19010 * tree-tailcall.c: Likewise.
19011 * tree-vect-data-refs.c: Likewise.
19012 * tree-vect-generic.c: Likewise.
19013 * tree-vect-loop-manip.c: Likewise.
19014 * tree-vect-loop.c: Likewise.
19015 * tree-vect-patterns.c: Likewise.
19016 * tree-vect-slp.c: Likewise.
19017 * tree-vect-stmts.c: Likewise.
19018 * tree-vectorizer.c: Likewise.
19019 * tree-vrp.c: Likewise.
19020 * tree.c: Likewise.
19021 * tsan.c: Likewise.
19022 * ubsan.c: Likewise.
19023 * valtrack.c: Likewise.
19024 * value-prof.c: Likewise.
19025 * var-tracking.c: Likewise.
19026 * varasm.c: Likewise.
19027 * varpool.c: Likewise.
19028 * vmsdbgout.c: Likewise.
19029 * vtable-verify.c: Likewise.
19031 * wide-int.cc: Likewise.
19032 * xcoffout.c: Likewise.
19033 * config/aarch64/aarch64-builtins.c: Likewise.
19034 * config/aarch64/aarch64.c: Likewise.
19035 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
19036 * config/alpha/alpha.c: Likewise.
19037 * config/arc/arc.c: Likewise.
19038 * config/arm/aarch-common.c: Likewise.
19039 * config/arm/arm-builtins.c: Likewise.
19040 * config/arm/arm-c.c: Likewise.
19041 * config/arm/arm.c: Likewise.
19042 * config/avr/avr-c.c: Likewise.
19043 * config/avr/avr-log.c: Likewise.
19044 * config/avr/avr.c: Likewise.
19045 * config/bfin/bfin.c: Likewise.
19046 * config/c6x/c6x.c: Likewise.
19047 * config/cr16/cr16.c: Likewise.
19048 * config/cris/cris.c: Likewise.
19049 * config/darwin-c.c: Likewise.
19050 * config/darwin.c: Likewise.
19051 * config/epiphany/epiphany.c: Likewise.
19052 * config/epiphany/mode-switch-use.c: Likewise.
19053 * config/epiphany/resolve-sw-modes.c: Likewise.
19054 * config/fr30/fr30.c: Likewise.
19055 * config/frv/frv.c: Likewise.
19056 * config/ft32/ft32.c: Likewise.
19057 * config/h8300/h8300.c: Likewise.
19058 * config/i386/i386-c.c: Likewise.
19059 * config/i386/i386.c: Likewise.
19060 * config/i386/msformat-c.c: Likewise.
19061 * config/i386/winnt-cxx.c: Likewise.
19062 * config/i386/winnt-stubs.c: Likewise.
19063 * config/i386/winnt.c: Likewise.
19064 * config/ia64/ia64-c.c: Likewise.
19065 * config/ia64/ia64.c: Likewise.
19066 * config/iq2000/iq2000.c: Likewise.
19067 * config/lm32/lm32.c: Likewise.
19068 * config/m32c/m32c-pragma.c: Likewise.
19069 * config/m32c/m32c.c: Likewise.
19070 * config/m32r/m32r.c: Likewise.
19071 * config/m68k/m68k.c: Likewise.
19072 * config/mcore/mcore.c: Likewise.
19073 * config/mep/mep-pragma.c: Likewise.
19074 * config/mep/mep.c: Likewise.
19075 * config/microblaze/microblaze-c.c: Likewise.
19076 * config/microblaze/microblaze.c: Likewise.
19077 * config/mips/mips.c: Likewise.
19078 * config/mmix/mmix.c: Likewise.
19079 * config/mn10300/mn10300.c: Likewise.
19080 * config/moxie/moxie.c: Likewise.
19081 * config/msp430/msp430-c.c: Likewise.
19082 * config/msp430/msp430.c: Likewise.
19083 * config/nds32/nds32-cost.c: Likewise.
19084 * config/nds32/nds32-fp-as-gp.c: Likewise.
19085 * config/nds32/nds32-intrinsic.c: Likewise.
19086 * config/nds32/nds32-isr.c: Likewise.
19087 * config/nds32/nds32-md-auxiliary.c: Likewise.
19088 * config/nds32/nds32-memory-manipulation.c: Likewise.
19089 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19090 * config/nds32/nds32-predicates.c: Likewise.
19091 * config/nds32/nds32.c: Likewise.
19092 * config/nios2/nios2.c: Likewise.
19093 * config/nvptx/nvptx.c: Likewise.
19094 * config/pa/pa.c: Likewise.
19095 * config/pdp11/pdp11.c: Likewise.
19096 * config/rl78/rl78-c.c: Likewise.
19097 * config/rl78/rl78.c: Likewise.
19098 * config/rs6000/rs6000-c.c: Likewise.
19099 * config/rs6000/rs6000.c: Likewise.
19100 * config/rx/rx.c: Likewise.
19101 * config/s390/s390-c.c: Likewise.
19102 * config/s390/s390.c: Likewise.
19103 * config/sh/sh-c.c: Likewise.
19104 * config/sh/sh-mem.cc: Likewise.
19105 * config/sh/sh.c: Likewise.
19106 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
19107 * config/sh/sh_treg_combine.cc: Likewise.
19108 * config/sol2-c.c: Likewise.
19109 * config/sol2-cxx.c: Likewise.
19110 * config/sol2-stubs.c: Likewise.
19111 * config/sol2.c: Likewise.
19112 * config/sparc/sparc-c.c: Likewise.
19113 * config/sparc/sparc.c: Likewise.
19114 * config/spu/spu-c.c: Likewise.
19115 * config/spu/spu.c: Likewise.
19116 * config/stormy16/stormy16.c: Likewise.
19117 * config/tilegx/mul-tables.c: Likewise.
19118 * config/tilegx/tilegx-c.c: Likewise.
19119 * config/tilegx/tilegx.c: Likewise.
19120 * config/tilepro/mul-tables.c: Likewise.
19121 * config/tilepro/tilepro-c.c: Likewise.
19122 * config/tilepro/tilepro.c: Likewise.
19123 * config/v850/v850-c.c: Likewise.
19124 * config/v850/v850.c: Likewise.
19125 * config/vax/vax.c: Likewise.
19126 * config/visium/visium.c: Likewise.
19127 * config/vms/vms-c.c: Likewise.
19128 * config/vms/vms.c: Likewise.
19129 * config/vxworks.c: Likewise.
19130 * config/xtensa/xtensa.c: Likewise.
19132 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
19134 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
19135 Remove operand constraints. Change operand 2 predicate to
19136 nonmemory operand. Limit const_int values to mode bitsize. Only
19137 allow const_int values less than 32 when optimizing for size.
19138 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
19139 Remove operand constraints.
19140 (*bt<mode>): Use SImode for const_int values less than 32.
19141 (regmode): Remove mode attribute.
19143 2015-07-07 Anatoly Sokolov <aesok@post.ru>
19145 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
19146 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
19147 moxie_legitimate_address_p): New functions.
19148 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
19150 2015-07-07 Tom de Vries <tom@codesourcery.com>
19152 PR tree-optimization/66642
19153 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
19154 header comment. Rename split_edge variable to edge_at_split. Split
19155 exit edge to create new loop exit bb. Insert loop exit phis in new
19158 2015-07-07 Tom de Vries <tom@codesourcery.com>
19160 * tree-cfg.c (get_virtual_phi): New function.
19161 * tree-cfg.h (get_virtual_phi): Declare.
19162 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
19163 (rewrite_virtuals_into_loop_closed_ssa): New function.
19164 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
19166 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
19167 (transform_to_exit_first_loop_alt): Use
19168 rewrite_virtuals_into_loop_closed_ssa.
19170 2015-07-07 Richard Biener <rguenther@suse.de>
19172 * fold-const.c (fold_binary_loc): Move
19173 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
19174 * match.pd: ... here.
19175 Add (X * C1) % C2 -> 0 simplification pattern derived from
19178 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
19181 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
19182 change for target/65249.
19184 2015-07-07 Paulo Matos <pmatos@broadcom.com>
19186 * symtab.c (address_matters_1): Fix typo in comment above.
19187 (can_increase_alignment_p): Likewise.
19189 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
19191 * function.c (free_after_compilation): Clear PROP_cfg in
19192 f->curr_properties.
19194 2015-07-07 Richard Biener <rguenther@suse.de>
19196 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
19198 (add_control_edge): Remove excessive vertical space in dumping.
19199 (process_ssa_edge_worklist): Simulate at most one statement and
19200 return whether we did. Do not simulate PHIs if they are in a
19201 BB not yet simulated.
19202 (ssa_propagate): Adjust to always drain the BB worklist whenever
19203 a BB is available there, likewise the VARYING edges list before
19204 the interesting edge list.
19206 2015-07-07 Christian Bruel <christian.bruel@st.com>
19209 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
19211 2015-07-07 Richard Biener <rguenther@suse.de>
19213 PR middle-end/66739
19214 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
19217 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
19219 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
19220 modes for operands 0 and 3. Use SImode for operands 2 and 3.
19221 Copy operand 0 to a temporary if !ext_register_operand. Remove
19222 ancient extract_bit_field workaround.
19223 (insv<mode>_1): Rename from mov<mode>_insv_1.
19224 (*insvqi): Rename from *movqi_insv_2.
19225 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
19226 for renamed insvsi_1.
19227 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
19229 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
19231 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
19232 call to nvptx_reorg_subreg.
19234 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
19236 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
19237 * graphite-dependencies.c, graphite-interchange.c,
19238 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
19239 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
19242 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
19244 * match.pd: Remove element_mode inside HONOR_*.
19245 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
19246 (~X | X -> -1, ~X ^ X -> -1): Merge.
19247 * tree.c (build_each_one_cst): New function.
19248 * tree.h (build_each_one_cst): Likewise.
19250 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
19252 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
19255 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
19257 * config.gcc <mips*-*-*>: Add fused-madd.opt.
19258 * config/mips/mips.opt (mfused-madd): Remove.
19259 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
19260 * config/mips/mips.h (TARGET_MIPS8000): New.
19261 (ISA_HAS_FP_MADD4_MSUB4): Remove.
19262 (ISA_HAS_FP_MADDF_MSUBF): Remove.
19263 (ISA_HAS_FP_MADD3_MSUB3): Remove.
19264 (ISA_HAS_NMADD4_NMSUB4): Remove.
19265 (ISA_HAS_NMADD3_NMSUB3): Remove.
19266 (ISA_HAS_FUSED_MADD4): New.
19267 (ISA_HAS_UNFUSED_MADD4): New.
19268 (ISA_HAS_FUSED_MADDF): New.
19269 (ISA_HAS_FUSED_MADD3): New.
19270 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
19271 (*fma<mode>4_madd3) New.
19272 (*fma<mode>4_madd4) New.
19273 (*fma<mode>4_maddf) New.
19275 (*fms<mode>4_msub3) New.
19276 (*fms<mode>4_msub4) New.
19278 (*fnma<mode>4_nmadd3) New.
19279 (*fnma<mode>4_nmadd4) New.
19281 (*fnms<mode>4_nmsub3) New.
19282 (*fnms<mode>4_nmsub4) New.
19283 (*madd4<mode>) Modify to be unfused only.
19284 (*msub4<mode>) Modify to be unfused only.
19285 (*nmadd4<mode>) Modify to be unfused only.
19286 (*nmsub4<mode>) Modify to be unfused only.
19287 (*madd3<mode>) Remove.
19288 (*msub3<mode>) Remove.
19289 (*nmadd3<mode>) Remove.
19290 (*nmsub3<mode>) Remove.
19291 (*nmadd3<mode>_fastmath) Remove.
19292 (*nmsub3<mode>_fastmath) Remove.
19293 (*nmadd4<mode>_fastmath) Update condition.
19294 (*nmsub4<mode>_fastmath) Update condition.
19296 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
19299 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
19300 alignment attribute, exploring one level down for records and arrays.
19302 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
19304 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
19305 modes for operands 0 and 1. Use SImode for operands 2 and 3.
19306 Copy operand 1 to a temporary if !ext_register_operand. Remove
19307 ancient extract_bit_field workaround.
19308 (*extv<mode>): Rename from *mov<mode>_extv_1.
19309 (*extvqi): Rename from *movqi_extv_1.
19310 (extzv<mode>): Rename from extzv. Use SWI248 modes for
19311 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
19312 to a temporary if !ext_register_operand. Remove ancient
19313 extract_bit_field workaround.
19314 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
19315 (*extzvqi): Rename from *movqi_extzv_2.
19316 (*testqi_ext_3): Remove modes from const_int_operand predicated
19317 operands. Add "n" constraint.
19318 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
19319 operand. Add "J" constraint.
19320 (*btsq, *btrq, *btcq peephole2s): Remove mode from
19321 const_0_to_63 predicated operand.
19322 (regmode): New insn attribute.
19323 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
19324 to nonmemory_operand. Use regmode insn attribute.
19325 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
19326 (*jcc_bt<mode>_mask): Remove mode from operand 3.
19327 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
19328 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
19329 operands. Use "N" constraint instead of "n".
19331 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
19333 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
19335 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
19338 * config/i386/i386.c (iamcu_cost): New.
19339 (m_IAMCU): Likewise.
19340 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
19341 (processor_target_table): Add an entry for "iamcu".
19342 (processor_alias_table): Likewise.
19343 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
19344 (ix86_adjust_cost): Likewise.
19345 (ia32_multipass_dfa_lookahead): Likewise.
19346 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
19347 * config/i386/x86-tune.def: Updated for m_IAMCU.
19349 2015-07-06 Richard Biener <rguenther@suse.de>
19351 PR tree-optimization/66772
19352 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
19353 values are available in the PHI node BB when there are
19354 still unexecutable edges.
19356 2015-07-06 Richard Biener <rguenther@suse.de>
19358 PR tree-optimization/66767
19359 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
19360 Make sure to build the alignment test on a SSA name without
19361 final alignment info valid only if the alignment test
19364 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
19367 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
19368 loop start when inserting LSETUP.
19370 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
19373 * config/i386/i386.c (ix86_option_override_internal): Allow
19374 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
19376 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
19378 * read-md.c (decimal_string): Rename to ...
19379 (md_decimal_string): ... this.
19380 (handle_enum): Reflect this.
19382 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
19385 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
19387 2015-07-06 Richard Biener <rguenther@suse.de>
19389 PR middle-end/66759
19390 * match.pd: Add missing constraint of y to REAL_CST in
19391 REAL_CST - x CMP y to y - CST CMP x simplification.
19393 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
19395 PR tree-optimization/66757
19396 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
19398 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
19399 Sandra Loosemore <sandra@codesourcery.com>
19401 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
19402 Delete extern declaration.
19403 (gprel_constant_p): Add extern declaration.
19404 * config/nios2/constraints.md ("S"): Use gprel_constant_p
19405 instead of nios2_symbol_ref_in_small_data_p.
19406 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
19407 (nios2_symbol_ref_in_small_data_p): Make static.
19408 (gprel_constant_p): Make non-static.
19410 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
19412 * doc/fragments.texi (Target Fragment): Convert debian.org
19414 * doc/install.texi (Configuration): Ditto.
19416 2015-07-05 Jakub Jelinek <jakub@redhat.com>
19418 PR tree-optimization/66718
19419 * tree-vect-stmts.c (vectorizable_call): Replace uses of
19420 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
19422 PR tree-optimization/66718
19423 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
19424 vectorizable_load, vectorizable_condition): Move vectype,
19425 nunits, ncopies computation after checking what kind of statement
19428 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19430 * target-insns.def (extv, extzv, insv): New targetm instruction
19432 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
19434 * recog.c (simplify_while_replacing): Likewise.
19436 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19438 * target-insns.def (doloop_begin, doloop_end): New targetm
19439 instruction patterns.
19440 * loop-init.c: Include target.h.
19441 (pass_loop2::gate): Use the new targetm patterns instead of
19442 HAVE_*/gen_* interface.
19443 (pass_rtl_doloop::gate): Likewise.
19444 (pass_rtl_doloop::execute): Remove preprocessor condition.
19445 * hw-doloop.c: Build unconditionally.
19446 * loop-doloop.c: Likewise.
19447 (doloop_optimize): Use the new targetm patterns instead of
19448 HAVE_*/gen_* interface.
19449 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
19450 * modulo-sched.c (doloop_register_get): Likewise.
19452 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19454 * target-insns.def (clear_cache): New targetm instruction pattern.
19455 * builtins.c (expand_builtin___clear_cache): Use it instead of
19456 HAVE_*/gen_* interface.
19458 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19460 * target-insns.def (allocate_stack, check_stack, probe_stack)
19461 (probe_stack_address, split_stack_prologue, split_stack_space_check):
19462 New targetm instruction patterns.
19463 * explow.c (allocate_dynamic_stack_space): Use them instead of
19464 HAVE_*/gen_* interface.
19465 (emit_stack_probe): Likewise.
19466 (probe_stack_range): Likewise.
19467 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19469 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19471 * target-insns.def (stack_protect_set, stack_protect_test): New
19472 targetm instruction patterns.
19473 * cfgexpand.c (stack_protect_prologue): Use them instead of
19474 HAVE_*/gen_* interface.
19475 * function.c (stack_protect_epilogue): Likewise.
19477 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19479 * expr.h (gen_move_insn_uncast): Delete.
19480 * expr.c (gen_move_insn_uncast): Delete.
19482 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19484 * target-insns.def (restore_stack_block, restore_stack_function)
19485 (restore_stack_nonlocal, save_stack_block, save_stack_function)
19486 (save_stack_nonlocal): New targetm instruction patterns.
19487 * builtins.c (expand_builtin_apply): Use them instead of
19488 HAVE_*/gen_* interface.
19489 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
19491 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19493 * target-insns.def (trap): New targetm instruction pattern.
19494 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
19496 * explow.c (allocate_dynamic_stack_space): Likewise.
19497 * ifcvt.c (find_if_header): Likewise.
19499 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19501 * target-insns.def (prefetch): New targetm instruction pattern.
19502 * tree-ssa-loop-prefetch.c: Include targeth.
19503 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
19504 of HAVE_*/gen_* interface.
19505 * builtins.c (expand_builtin_prefetch): Likewise.
19506 * toplev.c (process_options): Likewise.
19508 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19510 * target-insns.def (untyped_call, untyped_return): New targetm
19511 instruction patterns.
19512 * builtins.c (expand_builtin_apply): Use them instead of
19513 HAVE_*/gen_* interface.
19514 (result_vector): Define unconditionally.
19516 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19518 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
19519 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
19520 (nonlocal_goto_receiver): New targetm instruction patterns.
19521 * builtins.c (expand_builtin_setjmp_setup): Use them instead
19522 of HAVE_*/gen_* interface.
19523 (expand_builtin_setjmp_receiver): Likewise.
19524 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
19525 * except.c (expand_dw2_landing_pad_for_region): Likewise.
19527 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
19529 * target.def: Add code_for_* hooks.
19530 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
19531 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
19532 * target-insns.def (casesi, tablejump): New targetm instruction
19534 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
19535 (do_tablejump): Likewise.
19536 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
19537 (expand_sjlj_dispatch_table): Likewise.
19538 * targhooks.c (default_case_values_threshold): Likewise.
19540 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
19542 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
19543 Use rtx_insn * instead of rtx.
19544 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
19545 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
19546 (nios2_call_tls_get_addr): Likewise.
19547 (nios2_emit_expensive_div): Likewise.
19548 (nios2_emit_move_sequence): Change return type to bool.
19549 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
19550 Change return type to bool.
19552 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
19555 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
19557 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
19560 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
19561 of register_operand. Remove constraint.
19563 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
19565 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
19566 the first argument.
19568 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
19570 * attribs.c (decl_attributes): Guard inform with the return value
19571 of the preceding warning.
19573 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19575 * doc/invoke.texi (moverride): Move to correct section.
19577 2015-07-03 Richard Biener <rguenther@suse.de>
19579 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
19581 (dt_operand::gen_gimple_expr): After valueizing operands
19582 re-canonicalize operand order for commutative tree codes.
19584 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
19587 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
19589 (__crc32w): Likewise.
19590 (__crc32d): Likewise.
19591 (__rdpmc): Likewise.
19592 (__rdtscp): Likewise.
19593 (_rdpmc): Likewise.
19594 (_rdtscp): Likewise.
19595 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
19598 2015-07-03 Richard Biener <rguenther@suse.de>
19600 * fold-const.c (fold_mathfn_compare): Remove.
19601 (fold_inf_compare): Likewise.
19602 (fold_comparison): Move floating point comparison simplifications...
19603 * match.pd: ... to patterns here. Introduce simple_comparisons
19604 operator list and use it for patterns formerly in fold_comparison.
19606 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
19608 PR tree-optimization/66119
19609 * toplev.c (process_options): Don't set up default values for
19610 the sra_max_scalarization_size_{speed,size} parameters.
19611 * tree-sra (analyze_all_variable_accesses): If no values
19612 have been set for the sra_max_scalarization_size_{speed,size}
19613 parameters, call get_move_ratio to get target defaults.
19615 2015-07-03 Richard Biener <rguenther@suse.de>
19617 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
19618 * match.pd: ... here.
19620 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
19623 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
19624 is not actually the default on FreeBSD.
19626 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19628 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
19630 (CMPGE_8HI): Likewise.
19631 (CMPGE_4SI): Likewise.
19632 (CMPGE_2DI): Likewise.
19633 (CMPGE_U16QI): Likewise.
19634 (CMPGE_U8HI): Likewise.
19635 (CMPGE_U4SI): Likewise.
19636 (CMPGE_U2DI): Likewise.
19637 (CMPLE_16QI): Likewise.
19638 (CMPLE_8HI): Likewise.
19639 (CMPLE_4SI): Likewise.
19640 (CMPLE_2DI): Likewise.
19641 (CMPLE_U16QI): Likewise.
19642 (CMPLE_U8HI): Likewise.
19643 (CMPLE_U4SI): Likewise.
19644 (CMPLE_U2DI): Likewise.
19645 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
19646 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
19647 ALTIVEC_BUILTIN_VEC_CMPLE.
19648 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
19649 floating-point vector modes.
19650 (vector_nlt<mode>): New define_expand.
19651 (vector_nltu<mode>): Likewise.
19652 (vector_ngt<mode>): Likewise.
19653 (vector_ngtu<mode>): Likewise.
19655 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
19657 PR rtl-optimization/66706
19658 * combine.c (make_compound_operation): If an AND of SUBREG of
19659 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
19661 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
19663 * tree-pass.h (make_pass_ch_vect): New.
19664 * passes.def: Add pass_ch_vect just before pass_if_conversion.
19666 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
19667 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
19668 make_pass_ch_vect): New.
19669 (pass_ch): Extend ch_base.
19671 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
19672 (ch_base::copy_headers): ...here.
19674 2015-07-02 Richard Biener <rguenther@suse.de>
19676 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
19677 * fold-const.c (get_pointer_modulus_and_residue): Remove.
19678 (fold_binary_loc): Implement (T)ptr & CST in terms of
19679 get_pointer_alignment_1.
19680 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
19681 Make sure to build the alignment test on a SSA name without
19682 final alignment info valid only after the prologue.
19684 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
19686 * config/cris/cris.md ("epilogue"): Remove condition.
19687 ("prologue"): Ditto.
19689 2015-07-02 Richard Biener <rguenther@suse.de>
19691 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
19692 parameter to record a condition that is false.
19693 (record_conditions): When recording an extra NE_EXPR that is
19694 true also record a EQ_EXPR that is false.
19696 2015-07-02 Bin Cheng <bin.cheng@arm.com>
19698 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
19699 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
19700 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
19701 (set_iv, find_interesting_uses_address, add_candidate_1): New
19702 argument to alloc_iv.
19703 (find_interesting_uses_op, find_interesting_uses_cond): Don't
19704 duplicate struct iv.
19705 (free_loop_data): Don't free struct iv explicitly.
19706 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
19708 2015-07-01 DJ Delorie <dj@redhat.com>
19710 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
19712 (SUPPORTS_DISCRIMINATOR): Define.
19714 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
19717 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
19718 there are no CALLs in the same pattern.
19720 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
19722 PR rtl-optimization/61047
19723 * rtlanal.c (get_initial_register_offset): New function.
19724 (rtx_addr_can_trap_p_1): Check offsets of stack references.
19726 2015-07-01 Richard Biener <rguenther@suse.de>
19728 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
19729 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
19730 ~X CMP C -> X CMP' ~C to ...
19731 * match.pd: ... patterns here.
19733 2015-07-01 Nick Clifton <nickc@redhat.com>
19735 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
19736 a 16-bit value into a 20-bit memory slot.
19738 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19740 * doc/sourcebuild.texi (AArch64-specific attributes): Document
19741 "aarch64_tiny", "aarch64_small", "aarch64_large",
19742 "aarch64_little_endian", "aarch64_big_endian".
19744 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19746 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
19747 Document "aarch64_small_fpic".
19749 2015-07-01 Jiong Wang <jiong.wang@arm.com>
19751 * configure.ac: Add check for aarch64 assembler -fpic relocation
19753 * configure: Regenerate.
19754 * config.in: Regenerate.
19755 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
19756 to -fPIC if not support of -fpic relocation modifier in assembler.
19758 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
19761 * rtl.c (classify_insn): Handle returns in PARALLELs.
19763 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
19765 PR middle-end/66633
19766 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
19767 to true if the function is nested and if not optimizing.
19768 (convert_local_omp_clauses): Initialize need_frame to true if the
19769 function contains nested functions and if not optimizing.
19771 2015-07-01 Richard Biener <rguenther@suse.de>
19773 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
19774 (X & Y) ^ Y -> ~X & Y transforms to ...
19775 * match.pd: ... here.
19777 2015-07-01 Richard Biener <rguenther@suse.de>
19779 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
19780 of converts to avoid uninteresting noise from the conversion
19781 simplifying patterns.
19783 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
19785 * config/c6x/c6x.c (try_rename_operands): Do not depend on
19786 gcc_assert evaluating its argument for side-effect.
19788 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
19791 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
19794 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19796 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
19797 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
19798 (hash_scc): Add this_ref_p and ref_p parameters and pass them
19799 to the inner DFS walk.
19801 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19803 * target-insns.def (jump): New targetm instruction pattern.
19804 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
19805 instead of gen_jump.
19806 (fix_up_crossing_landing_pad): Likewise.
19807 (add_labels_and_missing_jumps): Likewise.
19808 (fix_crossing_conditional_branches): Likewise.
19809 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
19810 (force_nonfallthru_and_redirect): Likewise.
19811 * cse.c (cse_insn): Likewise.
19812 * expmed.c (expand_divmod): Likewise.
19813 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
19814 * haifa-sched.c (init_before_recovery): Likewise.
19815 (sched_create_recovery_edges): Likewise.
19816 * ifcvt.c (find_cond_trap): Likewise.
19817 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
19818 (expand_float, expand_fix): Likewise.
19819 * stmt.c (emit_jump): Likewise.
19821 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19823 * defaults.h (HAVE_load_multiple, gen_load_multiple)
19824 (HAVE_store_multiple, gen_store_multiple): Delete.
19825 * target-insns.def (load_multiple, store_multiple): New targetm
19826 instruction patterns.
19827 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
19828 of HAVE_*/gen_* interface.
19830 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19832 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
19833 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
19834 (gen_mem_signal_fence): Delete.
19835 * target-insns.def (mem_signal_fence, mem_thread_fence)
19836 (memory_barrier): New targetm instruction patterns.
19837 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
19839 (expand_mem_signal_fence): Likewise.
19841 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
19843 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
19844 * target-insns.def (epilogue, prologue, sibcall_prologue): New
19845 targetm instruction patterns.
19846 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
19848 * calls.c (expand_call): Likewise.
19849 * cfgrtl.c (cfg_layout_finalize): Likewise.
19850 * df-scan.c (df_get_entry_block_def_set): Likewise.
19851 (df_get_exit_block_use_set): Likewise.
19852 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
19853 * final.c (final_start_function): Likewise.
19854 * function.c (thread_prologue_and_epilogue_insns): Likewise.
19855 (reposition_prologue_and_epilogue_notes): Likewise.
19856 * reorg.c (find_end_label): Likewise.
19857 * toplev.c (process_options): Likewise.
19859 2015-06-30 David Malcolm <dmalcolm@redhat.com>
19861 * typed-splay-tree.h: New file.
19863 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
19866 * lra-int.h (lra_substitute_pseudo): Add a parameter.
19867 (lra_substitute_pseudo_within_insn): Ditto.
19868 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
19870 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
19871 to lra_substitute_pseudo.
19872 * lra-lives.c (process_bb_lives): Add an argument to
19873 lra_substitute_pseudo_within_insn call.
19874 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
19875 argument to lra_substitute_pseudo and
19876 lra_substitute_pseudo_within_insn calls.
19877 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
19879 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19881 * configure: Regenerated.
19883 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
19885 * config.gcc: Support i[34567]86-*-elfiamcu target.
19886 * config/i386/iamcu.h: New.
19887 * config/i386/i386.opt: Add -miamcu.
19888 * doc/invoke.texi: Document -miamcu.
19889 * common/config/i386/i386-common.c (ix86_handle_option): Turn
19890 off x87/MMX/SSE/AVX codegen for -miamcu.
19891 * config/i386/i386-c.c (ix86_target_macros_internal): Define
19892 __iamcu/__iamcu__ for -miamcu.
19893 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
19894 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
19895 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
19896 * config/i386/i386.c (ix86_option_override_internal): Ignore and
19897 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
19898 MCU by default. Default long double to 64-bit for Intel MCU.
19899 Turn on -freg-struct-return for Intel MCU. Issue an error when
19900 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
19902 (function_arg_advance_32): Pass value whose size is no larger
19903 than 8 bytes in registers for Intel MCU.
19904 (function_arg_32): Likewise.
19905 (ix86_return_in_memory): Return value whose size is no larger
19906 than 8 bytes in registers for Intel MCU.
19907 (iamcu_alignment): New function.
19908 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
19910 (ix86_local_alignment): Don't increase alignment for Intel MCU.
19911 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
19914 2015-06-30 Marek Polacek <polacek@redhat.com>
19916 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
19917 both operands of the resulting expression.
19919 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
19920 the final expression with the operand's type and then convert
19921 it to the type of the expression.
19923 2015-06-30 Richard Biener <rguenther@suse.de>
19925 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
19926 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
19927 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
19928 * match.pd: ... to patterns here.
19930 2015-06-30 Richard Biener <rguenther@suse.de>
19932 PR tree-optimization/66704
19933 * tree-vect-data-refs.c (vect_setup_realignment): Use
19934 make_ssa_name for non-SSA name source.
19936 2015-06-30 Jakub Jelinek <jakub@redhat.com>
19938 PR middle-end/66702
19939 * omp-low.c (simd_clone_adjust): Handle addressable linear
19940 or uniform parameters or non-gimple type uniform parameters.
19942 2015-06-30 Richard Biener <rguenther@suse.de>
19944 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
19945 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
19946 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
19947 * match.pd: ... here.
19948 Add a few cases of A - B -> A + (-B) when B "easily" negates.
19949 Move (x & y) | x -> x and friends before
19950 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
19952 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
19954 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
19955 -mfix-ut699 is not specified.
19956 (leon3_load): Rename into...
19957 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
19960 2015-06-30 Marek Polacek <polacek@redhat.com>
19962 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
19963 * match.pd: ... here.
19965 2015-06-30 Richard Biener <rguenther@suse.de>
19967 * target-insns.def (canonicalize_funcptr_for_compare): Add.
19968 * fold-const.c (build_range_check): Replace uses of
19969 HAVE_canonicalize_funcptr_for_compare.
19970 (fold_widened_comparison): Likewise.
19971 (fold_sign_changed_comparison): Likewise.
19972 * dojump.c: Include "target.h".
19973 (do_compare_and_jump): Replace uses of
19974 HAVE_canonicalize_funcptr_for_compare and
19975 gen_canonicalize_funcptr_for_compare.
19976 * expr.c (do_store_flag): Likewise.
19978 2015-06-30 Tom de Vries <tom@codesourcery.com>
19980 PR tree-optimization/66652
19981 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
19982 max_loop_iterations to determine if nit + 1 overflows.
19984 2015-06-30 Richard Biener <rguenther@suse.de>
19986 * tree-vrp.c (register_edge_assert_for_2): Also register
19987 asserts for dominating conversion results.
19989 2015-06-30 Bin Cheng <bin.cheng@arm.com>
19991 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
19992 field in struct iv.
19994 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
19997 * configure.ac: Fix filds and fildq test for 64-bit.
19998 * configure: Regenerated.
20000 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
20002 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
20003 (nvptx_reorg): Here. Keep the non-subreg pieces.
20005 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
20007 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
20008 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
20010 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
20012 * config/i386/i386.md (*jcc_1): Use %! in asm template.
20013 Set attribute "length_nobnd" instead of "length".
20016 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
20018 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
20020 * config/nios2/nios2.c (nios2_delegitimize_address): Make
20021 assert less restrictive.
20023 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
20026 * cgraphunit.c (cgraph_node::finalize_function): Do not call
20027 do_warn_unused_parameter.
20028 * function.c (do_warn_unused_parameter): Move from here.
20029 * function.h (do_warn_unused_parameter): Do not declare.
20031 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
20034 * gcc.target/arm/armv-sync-comp-swap.c: New.
20035 * gcc.target/arm/armv-sync-op-acquire.c: New.
20036 * gcc.target/arm/armv-sync-op-full.c: New.
20037 * gcc.target/arm/armv-sync-op-release.c: New.
20039 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
20042 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
20043 initial acquire barrier with final barrier.
20045 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
20048 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
20049 initial acquire barrier with final barrier.
20051 2015-06-29 Richard Henderson <rth@redhat.com>
20053 * config/i386/constraints.md (Bf): New constraint.
20054 * config/i386/i386-c.c (ix86_target_macros): Define
20055 __GCC_ASM_FLAG_OUTPUTS__.
20056 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
20058 * doc/extend.texi (FlagOutputOperands): Document them.
20060 2015-06-29 Jiong Wang <jiong.wang@arm.com>
20062 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
20063 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
20065 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
20066 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
20067 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
20068 (aarch64_symbol_context): Ditto.
20069 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
20070 and use new pattern name.
20071 (aarch64_expand_mov_immediate): Ditto.
20072 (aarch64_print_operand): Ditto.
20073 (aarch64_classify_tls_symbol): Ditto.
20075 2015-06-29 Marek Polacek <polacek@redhat.com>
20076 Marc Glisse <marc.glisse@inria.fr>
20078 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
20079 * match.pd: ... pattern here.
20081 2015-06-29 Tom de Vries <tom@codesourcery.com>
20083 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
20084 function structure.
20086 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
20088 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
20089 feature description, split out the native option, add a link to
20090 the feature documentation, rearrange and slightly rewrite text.
20091 (Aarch64 options, -mcpu): Likewise.
20092 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
20093 +rdma implies Adv. SIMD.
20095 2015-06-29 Marek Polacek <polacek@redhat.com>
20098 * function.c (stack_protect_epilogue): Remove a cast to int.
20099 * doc/invoke.texi: Update -Wswitch-bool description.
20101 2015-06-29 Richard Biener <rguenther@suse.de>
20103 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
20104 * fold-const.c (fold_binary_loc): Move &A - &B simplification
20105 via ptr_difference_const ...
20106 * match.pd: ... here.
20107 When matching (X ^ Y) == Y also match with swapped operands.
20109 2015-06-29 Richard Biener <rguenther@suse.de>
20111 * lto-streamer.h (LTO_major_version): Bump to 5.
20113 2015-06-29 Richard Biener <rguenther@suse.de>
20115 PR tree-optimization/66677
20116 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
20117 STMT_VINFO_VEC_STMT clobbering less strict.
20119 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
20121 PR middle-end/64130
20122 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
20123 division, compute max and min when value ranges for dividend and
20124 divisor are available.
20126 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
20127 Sandra Loosemore <sandra@codesourcery.com>
20129 * regrename.h (regrename_do_replace): Change to return bool.
20130 * regrename.c (rename_chains): Check return value of
20131 regname_do_replace.
20132 (regrename_do_replace): Re-validate the modified insns and
20133 return bool status.
20134 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
20135 Update to match rename_chains changes.
20136 * config/c6x/c6x.c (try_rename_operands): Assert that
20137 regrename_do_replace returns true.
20139 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
20141 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
20142 operand 2 here. Use copy_addr_to_reg to copy non-index
20143 register operand 2 to a temporary.
20144 (<mode>_stx): Ditto for operand 1.
20145 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
20146 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
20147 (ix86_store_bounds): Ditto.
20149 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
20151 * print-tree.c (print_node) [TREE_VEC]: Print its length.
20153 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
20155 * gimple.c (gimple_call_set_fndecl): Remove.
20156 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
20157 build1_loc directly instead of build_fold_addr_expr_loc.
20159 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
20161 * hash-map.h (hash_map::traverse): Use the definition of the
20162 Key typedef rather than the typedef itself.
20164 2015-06-26 Martin Jambor <mjambor@suse.cz>
20167 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
20168 NULL instead of calling dump_enabled_p.
20170 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
20172 * config/aarch64/aarch64.opt: (override): New.
20173 * doc/invoke.texi (override): Document.
20174 * config/aarch64/aarch64.c (aarch64_flag_desc): New
20175 (aarch64_fusible_pairs): Likewise.
20176 (aarch64_tuning_flags): Likewise.
20177 (aarch64_tuning_override_function): Likewise.
20178 (aarch64_tuning_override_functions): Likewise.
20179 (aarch64_parse_one_option_token): Likewise.
20180 (aarch64_parse_boolean_options): Likewise.
20181 (aarch64_parse_fuse_string): Likewise.
20182 (aarch64_parse_tune_string): Likewise.
20183 (aarch64_parse_one_override_token): Likewise.
20184 (aarch64_parse_override_string): Likewise.
20185 (aarch64_override_options): Parse the -override string if it
20188 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
20190 * config/aarch64/aarch64-protos.h (tune_params): Remove
20191 const from members.
20192 (aarch64_tune_params): Remove const, change to no longer be
20194 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
20195 change to no longer be a pointer, initialize to generic_tunings.
20196 (aarch64_min_divisions_for_recip_mul): Change dereference of
20197 aarch64_tune_params to member access.
20198 (aarch64_reassociation_width): Likewise.
20199 (aarch64_rtx_mult_cost): Likewise.
20200 (aarch64_address_cost): Likewise.
20201 (aarch64_branch_cost): Likewise.
20202 (aarch64_rtx_costs): Likewise.
20203 (aarch64_register_move_cost): Likewise.
20204 (aarch64_memory_move_cost): Likewise.
20205 (aarch64_sched_issue_rate): Likewise.
20206 (aarch64_builtin_vectorization_cost): Likewise.
20207 (aarch64_override_options): Take a copy of the selected tuning
20208 struct in to aarch64_tune_params, rather than just setting
20209 a pointer, change dereferences of aarch64_tune_params to member
20211 (aarch64_override_options_after_change): Change dereferences of
20212 aarch64_tune_params to member access.
20213 (aarch64_macro_fusion_p): Likewise.
20214 (aarch_macro_fusion_pair_p): Likewise.
20215 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
20217 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
20219 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
20220 (aarch64_tune_flags): Likewise.
20221 (AARCH64_TUNE_FMA_STEERING): Likewise.
20222 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
20223 to AARCH64_FL_USE_FMA_STEERING_PASS.
20224 (cortex-a57.cortex-a53): Likewise.
20225 (cortex-a72): Use cortexa72_tunings.
20226 (cortex-a72.cortex-a53): Likewise.
20227 (exynos-m1): Likewise.
20228 * config/aarch64/aarch64-protos.h (tune_params): Add
20229 a field: extra_tuning_flags.
20230 * config/aarch64/aarch64-tuning-flags.def: New.
20231 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
20232 (aarch64_extra_tuning_flags): Likewise.
20233 (aarch64_tune_params): Declare here.
20234 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
20235 (cortexa53_tunings): Likewise.
20236 (cortexa57_tunings): Likewise.
20237 (thunderx_tunings): Likewise.
20238 (xgene1_tunings): Likewise.
20239 (cortexa72_tunings): New.
20240 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
20241 (gate): Check against aarch64_tune_params.
20242 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
20245 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
20247 * config/aarch64/aarch64-fusion-pairs.def: New.
20248 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
20249 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
20250 aarch64_fusion_pairs.
20251 (AARCH64_FUSE_MOV_MOVK): Likewise.
20252 (AARCH64_FUSE_ADRP_ADD): Likewise.
20253 (AARCH64_FUSE_MOVK_MOVK): Likewise.
20254 (AARCH64_FUSE_ADRP_LDR): Likewise.
20255 (AARCH64_FUSE_CMP_BRANCH): Likewise.
20257 2015-06-26 Jiong Wang <jiong.wang@arm.com>
20259 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
20260 SYMBOL_SMALL_GOT_28K.
20261 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
20262 relocation modifiers.
20263 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
20264 (ldr_got_small_28k_<mode>): New.
20265 (ldr_got_small_28k_sidi): New.
20266 * config/aarch64/iterators.md (got_modifier): New mode iterator.
20267 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
20268 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
20269 SYMBOL_SMALL_GOT_28K.
20270 (aarch64_rtx_costs): Add costs for new instruction sequences.
20271 (initialize_aarch64_code_model): Initialize new model.
20272 (aarch64_classify_symbol): Recognize new model and new symbol classification.
20273 (aarch64_asm_preferred_eh_data_format): Support new model.
20274 (aarch64_load_symref_appropriately): Generate new instruction
20275 sequences for -fpic.
20276 (TARGET_USE_PSEUDO_PIC_REG): New definition.
20277 (aarch64_use_pseudo_pic_reg): New function.
20279 2015-06-26 Jiong Wang <jiong.wang@arm.com>
20281 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
20282 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
20283 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
20284 (aarch64_expand_mov_immediate): Ditto.
20285 (aarch64_print_operand): Ditto.
20286 (aarch64_classify_symbol): Ditto.
20288 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
20290 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
20292 2015-06-26 Bin Cheng <bin.cheng@arm.com>
20295 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
20296 assertion failed. Remove assertion itself.
20298 2015-06-26 Richard Biener <rguenther@suse.de>
20300 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
20301 and -A CMP CST -> A CMP -CST which is redundant with a pattern
20303 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
20304 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
20305 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
20306 * match.pd: ... patterns here.
20308 2015-06-26 Marek Polacek <polacek@redhat.com>
20310 * match.pd ((x | y) & ~(x & y) -> x ^ y,
20311 (x | y) & (~x ^ y) -> x & y): New patterns.
20313 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
20315 * rtl.h (emit): Add an optional boolean parameter to control
20316 whether barriers are emitted.
20317 * emit-rtl.c (emit): Likewise.
20318 * gensupport.c (get_emit_function): Return null rather than "emit".
20319 * genemit.c (gen_emit_seq): Handle the null return value.
20320 Don't emit barriers after the final instruction in the sequence.
20321 * gentarget-def.c (main): Don't emit barriers after the instruction.
20323 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20325 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
20326 TARGET_UNIFIED_ASM.
20328 2015-06-26 Richard Biener <rguenther@suse.de>
20330 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
20332 2015-06-26 Richard Biener <rguenther@suse.de>
20334 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
20335 irrespective on whether the inner operation has a single use
20336 of both off are constant.
20338 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
20339 Segher Boessenkool <segher@kernel.crashing.org>
20342 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
20343 before doing PUT_MODE or PUT_CODE on operands to avoid
20344 in-place RTX modification.
20346 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
20348 * gentarget-def.c (def_target_insn): Cast return of strtol to
20351 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20353 * gimple.h (gimple_call_set_fn): Move inline function.
20354 * gimple.c (gimple_call_set_fn): Relocate here.
20356 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
20360 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
20361 the replacement insn will work.
20363 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
20365 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
20368 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20370 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
20371 * cgraph.h: Include ipa-ref.h and plugin-api.h.
20372 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
20373 (symtab_node::address_can_be_compared_p): Move function.
20374 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
20376 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
20377 * auto-profile.c: Likewise.
20378 * bb-reorder.c: Likewise.
20379 * builtins.c: Likewise.
20380 * calls.c: Likewise.
20381 * cfgexpand.c: Likewise.
20382 * cgraphbuild.c: Likewise.
20383 * cgraphclones.c: Likewise.
20384 * cgraphunit.c: Likewise.
20385 * combine.c: Likewise.
20386 * coverage.c: Likewise.
20387 * data-streamer-in.c: Likewise.
20388 * data-streamer-out.c: Likewise.
20389 * data-streamer.c: Likewise.
20390 * dbxout.c: Likewise.
20391 * dwarf2out.c: Likewise.
20392 * except.c: Likewise.
20393 * expr.c: Likewise.
20394 * final.c: Likewise.
20395 * fold-const.c: Likewise.
20396 * ggc-page.c: Likewise.
20397 * gimple-fold.c: Likewise.
20398 * gimple-iterator.c: Likewise.
20399 * gimple-pretty-print.c: Likewise.
20400 * gimple-streamer-in.c: Likewise.
20401 * gimple-streamer-out.c: Likewise.
20402 * gimple.c: Likewise.
20403 * gimplify.c: Likewise.
20404 * ipa-chkp.c: Likewise.
20405 * ipa-comdats.c: Likewise.
20406 * ipa-cp.c: Likewise.
20407 * ipa-devirt.c: Likewise.
20408 * ipa-icf-gimple.c: Likewise.
20409 * ipa-icf.c: Likewise.
20410 * ipa-inline-analysis.c: Likewise.
20411 * ipa-inline-transform.c: Likewise.
20412 * ipa-inline.c: Likewise.
20413 * ipa-polymorphic-call.c: Likewise.
20414 * ipa-profile.c: Likewise.
20415 * ipa-prop.c: Likewise.
20416 * ipa-pure-const.c: Likewise.
20417 * ipa-ref.c: Likewise.
20418 * ipa-reference.c: Likewise.
20419 * ipa-split.c: Likewise.
20420 * ipa-utils.c: Likewise.
20421 * ipa-visibility.c: Likewise.
20423 * langhooks.c: Likewise.
20424 * lto-cgraph.c: Likewise.
20425 * lto-compress.c: Likewise.
20426 * lto-opts.c: Likewise.
20427 * lto-section-in.c: Likewise.
20428 * lto-section-out.c: Likewise.
20429 * lto-streamer-in.c: Likewise.
20430 * lto-streamer-out.c: Likewise.
20431 * lto-streamer.c: Likewise.
20432 * omp-low.c: Likewise.
20433 * opts-global.c: Likewise.
20434 * passes.c: Likewise.
20435 * predict.c: Likewise.
20436 * print-tree.c: Likewise.
20437 * profile.c: Likewise.
20439 * sanopt.c: Likewise.
20440 * stor-layout.c: Likewise.
20441 * symtab.c: Likewise.
20442 * toplev.c: Likewise.
20443 * trans-mem.c: Likewise.
20444 * tree-cfg.c: Likewise.
20445 * tree-chkp.c: Likewise.
20446 * tree-eh.c: Likewise.
20447 * tree-emutls.c: Likewise.
20448 * tree-inline.c: Likewise.
20449 * tree-nested.c: Likewise.
20450 * tree-parloops.c: Likewise.
20451 * tree-pretty-print.c: Likewise.
20452 * tree-profile.c: Likewise.
20453 * tree-sra.c: Likewise.
20454 * tree-ssa-alias.c: Likewise.
20455 * tree-ssa-live.c: Likewise.
20456 * tree-ssa-loop-ivcanon.c: Likewise.
20457 * tree-ssa-loop-ivopts.c: Likewise.
20458 * tree-ssa-pre.c: Likewise.
20459 * tree-ssa-sccvn.c: Likewise.
20460 * tree-ssa-strlen.c: Likewise.
20461 * tree-ssa-structalias.c: Likewise.
20462 * tree-streamer-in.c: Likewise.
20463 * tree-streamer-out.c: Likewise.
20464 * tree-streamer.c: Likewise.
20465 * tree-switch-conversion.c: Likewise.
20466 * tree-tailcall.c: Likewise.
20467 * tree-vect-data-refs.c: Likewise.
20468 * tree-vect-stmts.c: Likewise.
20469 * tree-vectorizer.c: Likewise.
20470 * tree.c: Likewise.
20471 * tsan.c: Likewise.
20472 * ubsan.c: Likewise.
20473 * value-prof.c: Likewise.
20474 * varasm.c: Likewise.
20475 * varpool.c: Likewise.
20476 * config/arm/arm.c: Likewise.
20477 * config/bfin/bfin.c: Likewise.
20478 * config/c6x/c6x.c: Likewise.
20479 * config/cris/cris.c: Likewise.
20480 * config/darwin-c.c: Likewise.
20481 * config/darwin.c: Likewise.
20482 * config/i386/i386.c: Likewise.
20483 * config/i386/winnt.c: Likewise.
20484 * config/microblaze/microblaze.c: Likewise.
20485 * config/mips/mips.c: Likewise.
20486 * config/rs6000/rs6000.c: Likewise.
20487 * config/rx/rx.c: Likewise.
20488 * config/s390/s390.c: Likewise.
20489 * config/tilegx/mul-tables.c: Likewise.
20491 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20493 * config/aarch64/aarch64.c, config/alpha/alpha.c,
20494 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
20495 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
20496 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
20497 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20498 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20499 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20500 config/microblaze/microblaze.c, config/mips/mips.c,
20501 config/mmix/mmix.c, config/mn10300/mn10300.c,
20502 config/moxie/moxie.c, config/msp430/msp430.c,
20503 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20504 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20505 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20506 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20507 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20508 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20509 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
20510 target-def.h include.
20511 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
20513 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20515 * Makefile.in (TARGET_DEF): Add target-insns.def.
20516 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
20517 (build/gentarget-def.o): New rule.
20518 (genprogrtl): Add target-def.
20519 * target-insns.def, gentarget-def.c: New files.
20520 * target.def: Add targetm.have_* and targetm.gen_* hooks,
20521 based on the contents of target-insns.def.
20522 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
20523 (HAVE_return, gen_return): Delete.
20524 * target-def.h: Include insn-target-def.h.
20525 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
20526 instead of direct calls. Rely on them to do the appropriate assertions.
20527 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
20528 (convert_jumps_to_returns): Use targetm interface instead of
20530 (thread_prologue_and_epilogue_insns): Likewise.
20531 * reorg.c (find_end_label, dbr_schedule): Likewise.
20532 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
20533 * shrink-wrap.c (convert_to_simple_return): Likewise.
20534 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
20536 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20538 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
20539 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
20540 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
20541 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
20542 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
20543 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
20544 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
20545 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
20546 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
20547 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
20548 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
20549 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
20550 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
20551 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
20552 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
20553 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
20556 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20558 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
20559 (unbounded_int_hashmap_traits::key_type): Likewise.
20560 * hash-map.h (hash_map): Get the key type from the traits.
20561 * hash-traits.h (default_hash_traits): By default, inherit from the
20562 template parameter.
20563 * alias.c (alias_set_traits): Delete.
20564 (alias_set_entry_d::children): Use alias_set_hash as the first
20565 template parameter.
20566 (record_alias_subset): Update accordingly.
20567 * except.c (tree_hash_traits): Delete.
20568 (type_to_runtime_map): Use tree_hash as the first template parameter.
20569 (init_eh): Update accordingly.
20570 * genmatch.c (capture_id_map_hasher): Delete.
20571 (cid_map_t): Use nofree_string_hash as first template parameter.
20572 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
20573 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
20574 Use symbol_compare_hash as the first template parameter in
20575 subdivide_hash_map.
20576 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
20577 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
20578 template parameter.
20579 * passes.c (pass_registry_hasher): Delete.
20580 (name_to_pass_map): Use nofree_string_hash as the first template
20582 (register_pass_name): Update accordingly.
20583 * sanopt.c (sanopt_tree_map_traits): Delete.
20584 (sanopt_tree_triplet_map_traits): Delete.
20585 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
20586 template parameter.
20587 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
20588 the first template parameter.
20589 * sese.c (rename_map_hasher): Delete.
20590 (rename_map_type): Use tree_ssa_name_hash as the first template
20592 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
20593 (function_summary::m_map): Use map_hash as the first template
20595 (function_summary::release): Update accordingly.
20596 * tree-if-conv.c (phi_args_hash_traits): Delete.
20597 (predicate_scalar_phi): Use tree_operand_hash as the first template
20598 parameter to phi_arg_map.
20599 * tree-inline.h (dependence_hasher): Delete.
20600 (copy_body_data::dependence_map): Use dependence_hash as the first
20601 template parameter.
20602 * tree-inline.c (remap_dependence_clique): Update accordingly.
20603 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
20604 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
20606 (addr_stridxptr): Update accordingly.
20607 * value-prof.c (profile_id_traits): Delete.
20608 (cgraph_node_map): Use profile_id_hash as the first template
20610 (init_node_map): Update accordingly.
20611 * config/alpha/alpha.c (string_traits): Delete.
20612 (machine_function::links): Use nofree_string_hash as the first
20613 template parameter.
20614 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
20615 * config/m32c/m32c.c (pragma_traits): Delete.
20616 (pragma_htab): Use nofree_string_hash as the first template parameter.
20617 (m32c_note_pragma_address): Update accordingly.
20618 * config/mep/mep.c (pragma_traits): Delete.
20619 (pragma_htab): Use nofree_string_hash as the first template parameter.
20620 (mep_note_pragma_flag): Update accordingly.
20621 * config/mips/mips.c (mips16_flip_traits): Delete.
20622 (mflip_mips16_htab): Use nofree_string_hash as the first template
20624 (mflip_mips16_use_mips16_p): Update accordingly.
20625 (local_alias_traits): Delete.
20626 (mips16_local_aliases): Use nofree_string_hash as the first template
20628 (mips16_local_alias): Update accordingly.
20630 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20632 * hash-map-traits.h (default_hashmap_traits): Delete.
20634 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20636 * hash-map-traits.h (unbounded_hashmap_traits): New class.
20637 (unbounded_int_hashmap_traits): Likewise.
20638 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
20640 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20642 * ipa-icf.h (symbol_compare_hash): New class.
20643 (symbol_compare_hashmap_traits): Use it.
20644 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
20645 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
20646 (mem_alloc_description::reverse_mem_map_t): Remove redundant
20647 default_hashmap_traits.
20648 * sanopt.c (sanopt_tree_triplet_hash): New class.
20649 (sanopt_tree_triplet_map_traits): Use it.
20651 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20653 * gengtype-parse.c (require_template_declaration): Allow '+' in
20654 template parameters. Consolidate cases.
20655 * hash-traits.h (int_hash): New class.
20656 * alias.c (alias_set_hash): New structure.
20657 (alias_set_traits): Use it.
20658 * symbol-summary.h (function_summary::map_hash): New class.
20659 (function_summary::summary_hashmap_traits): Use it.
20660 * tree-inline.h (dependence_hash): New class.
20661 (dependence_hasher): Use it.
20662 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
20663 * value-prof.c (profile_id_hash): New class.
20664 (profile_id_traits): Use it.
20666 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20668 * config/mips/mips.c (mips16_flip_traits): Use it.
20669 (local_alias_traits, mips16_local_aliases): Convert from a map of
20670 rtxes to a map of symbol names.
20671 (mips16_local_alias): Update accordingly.
20673 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20675 * hash-traits.h (string_hash, nofree_string_hash): New classes.
20676 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
20677 * passes.c (pass_registry_hasher): Likewise.
20678 * config/alpha/alpha.c (string_traits): Likewise.
20679 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
20680 * config/m32c/m32c.c (pragma_traits): Likewise.
20681 * config/mep/mep.c (pragma_traits): Likewise.
20683 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20685 * tree-hash-traits.h (tree_hash): New class.
20686 * except.c: Include tree-hash-traits.h.
20687 (tree_hash_traits): Use tree_hash.
20689 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20691 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
20692 * sese.c: Include tree-hash-traits.h.
20693 (rename_map_hasher): Use tree_ssa_name_hasher.
20695 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20697 * tree-hash-traits.h (tree_decl_hash): New class.
20698 * tree-ssa-strlen.c: Include tree-hash-traits.h.
20699 (stridxlist_hash_traits): Use tree_decl_hash.
20701 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20703 * tree-hash-traits.h: New file.
20704 (tree_operand_hash): New class.
20705 * sanopt.c: Include tree-hash-traits.h.
20706 (sanopt_tree_map_traits): Use tree_operand_hash.
20707 * tree-if-conv.c: Include tree-hash-traits.h.
20708 (phi_args_hash_traits): Use tree_operand_hash.
20709 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
20710 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
20712 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20714 * hash-map-traits.h: Include hash-traits.h.
20715 (simple_hashmap_traits): New class.
20716 * mem-stats.h (hash_map): Change the default traits to
20717 simple_hashmap_traits<default_hash_traits<Key> >.
20719 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20721 * hash-table.h: Update comments.
20723 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20725 * hash-traits.h (default_hash_traits): New structure.
20726 * hash-set.h (default_hashset_traits): Delete.
20727 (hash_set): Use default_hash_traits<Key> instead of
20728 default_hashset_traits. Delete hash_entry type and use Key directly.
20729 * ipa-devirt.c (pair_traits): Delete.
20730 (default_hash_traits <type_pair>): Override.
20731 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
20732 (odr_types_equivalent_p, add_type_duplicate): Likewise.
20734 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20736 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
20738 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20740 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
20741 (has_is_empty, is_empty_helper): Delete.
20742 (has_mark_deleted, mark_deleted_helper): Delete.
20743 (has_mark_empty, mark_empty_helper): Delete.
20744 (hash_table::is_deleted): Call the Descriptor unconditionally.
20745 (hash_table::is_empty): Likewise.
20746 (hash_table::mark_deleted): Likewise.
20747 (hash_table::mark_empty): Likewise.
20749 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20751 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
20752 redundant typedefs and members.
20753 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
20754 redundant typedefs.
20755 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
20756 * ipa-devirt.c (odr_name_hasher): Likewise.
20757 (polymorphic_call_target_hasher): Likewise.
20758 * ira-costs.c (cost_classes_hasher): Likewise.
20759 * statistics.c (stats_counter_hasher): Likewise.
20760 * trans-mem.c (log_entry_hasher): Likewise.
20761 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
20762 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
20763 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
20764 * var-tracking.c (variable_hasher): Likewise.
20765 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
20766 Remove redundant typedefs and members.
20768 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20770 * hash-traits.h (ggc_cache_hasher): Rename to...
20771 (ggc_cache_remove): ...this and remove typedefs.
20772 (ggc_cache_ptr_hash): New class.
20773 * hash-table.h: Update commentary.
20774 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
20775 rather than ggc_cache_hasher.
20776 (const_wide_int_hasher, reg_attr_hasher): Likewise.
20777 (const_double_hasher, const_fixed_hasher): Likewise.
20778 * function.c (insn_cache_hasher): Likewise.
20779 * trans-mem.c (tm_wrapper_hasher): Likewise.
20780 * tree.h (tree_decl_map_cache_hasher): Likewise.
20781 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
20782 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
20783 * ubsan.c (tree_type_map_cache_hasher): Likewise.
20784 * varasm.c (tm_clone_hasher): Likewise.
20785 * config/i386/i386.c (dllimport_hasher): Likewise.
20786 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
20787 (tree_hasher): Likewise.
20789 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20791 * hash-traits.h (ggc_hasher): Rename to...
20792 (ggc_remover): ...this and remove typedefs.
20793 (ggc_cache_hasher): Update accordingly. Add typedefs.
20794 (ggc_ptr_hash): New class.
20795 * hash-table.h: Update comment.
20796 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
20798 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
20799 (tree_descriptor_hasher): Likewise.
20800 * cgraph.c (function_version_hasher): Likewise.
20801 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
20802 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
20803 (dw_loc_list_hasher, addr_hasher): Likewise.
20804 * function.h (used_type_hasher): Likewise.
20805 * function.c (temp_address_hasher): Likewise.
20806 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
20807 * libfuncs.h (libfunc_hasher): Likewise.
20808 * lto-streamer.h (decl_state_hasher): Likewise.
20809 * optabs.c (libfunc_decl_hasher): Likewise.
20810 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
20811 * varasm.c (section_hasher, object_block_hasher): Likewise.
20812 (const_rtx_desc_hasher): Likewise.
20813 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
20814 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
20816 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20818 * hash-traits.h (free_ptr_hash): New class.
20819 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
20820 rather than typed_free_remove. Remove redudant typedefs.
20821 (external_ref_hasher): Likewise.
20822 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
20823 (ehspec_hasher): Likewise.
20824 * ggc-common.c (saving_hasher): Likewise.
20825 * gimplify.c (gimplify_hasher): Likewise.
20826 * haifa-sched.c (delay_i2_hasher): Likewise.
20827 * loop-invariant.c (invariant_expr_hasher): Likewise.
20828 * loop-iv.c (biv_entry_hasher): Likewise.
20829 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
20830 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
20831 * tree-cfg.c (locus_discrim_hasher): Likewise.
20832 * tree-eh.c (finally_tree_hasher): Likewise.
20833 * tree-into-ssa.c (var_info_hasher): Likewise.
20834 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
20835 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
20836 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
20837 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
20838 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
20839 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
20840 (shared_bitmap_hasher): Likewise.
20841 * tree-ssa-threadupdate.c (redirection_data): Likewise.
20842 * tree-vectorizer.h (peel_info_hasher): Likewise.
20843 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
20844 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
20846 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20848 * hash-table.h: Update comments.
20849 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
20850 (nofree_ptr_hash): New class.
20851 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
20852 than typed_noop_remove. Remove redudant typedefs.
20853 * attribs.c (attribute_hasher): Likewise.
20854 * cfg.c (bb_copy_hasher): Likewise.
20855 * cselib.c (cselib_hasher): Likewise.
20856 * dse.c (invariant_group_base_hasher): Likewise.
20857 * dwarf2cfi.c (trace_info_hasher): Likewise.
20858 * dwarf2out.c (macinfo_entry_hasher): Likewise.
20859 (comdat_type_hasher, loc_list_hasher): Likewise.
20860 * gcse.c (pre_ldst_expr_hasher): Likewise.
20861 * genmatch.c (id_base): Likewise.
20862 * genrecog.c (test_pattern_hasher): Likewise.
20863 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
20864 * haifa-sched.c (delay_i1_hasher): Likewise.
20865 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
20866 * ipa-icf.h (congruence_class_group_hash): Likewise.
20867 * ipa-profile.c (histogram_hash): Likewise.
20868 * ira-color.c (allocno_hard_regs_hasher): Likewise.
20869 * lto-streamer.h (string_slot_hasher): Likewise.
20870 * lto-streamer.c (tree_entry_hasher): Likewise.
20871 * plugin.c (event_hasher): Likewise.
20872 * postreload-gcse.c (expr_hasher): Likewise.
20873 * store-motion.c (st_expr_hasher): Likewise.
20874 * tree-sra.c (uid_decl_hasher): Likewise.
20875 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
20876 (ssa_name_var_hash): Likewise.
20877 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
20878 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
20879 * tree-ssa-pre.c (pre_expr_d): Likewise.
20880 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
20881 * vtable-verify.h (registration_hasher): Likewise.
20882 * vtable-verify.c (vtbl_map_hasher): Likewise.
20883 * config/arm/arm.c (libcall_hasher): Likewise.
20884 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
20885 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
20886 * config/sol2.c (comdat_entry_hasher): Likewise.
20887 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
20888 (print_fold_checksum, fold_checksum_tree): Likewise.
20889 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
20890 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
20891 (fold_build_call_array_loc): Likewise.
20892 * tree-ssa-ccp.c (gimple_htab): Likewise.
20893 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
20894 rather than pointer_type.
20896 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20898 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
20899 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
20901 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20903 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
20904 (ggc_hasher::ggc_mx): Likewise.
20905 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
20906 that duplicate ggc_hasher ones.
20908 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20910 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
20911 (gt_cleare_cache): Check here for deleted and empty entries.
20912 Replace handle_cache_entry with a call to keep_cache_entry.
20913 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
20914 (ggc_cache_hasher::keep_cache_entry): New function.
20915 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
20916 (tm_wrapper_hasher::keep_cache_entry): New function.
20917 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
20918 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20919 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
20920 (type_cache_hasher::keep_cache_entry): New function.
20921 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
20922 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
20923 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
20924 (tree_type_map_cache_hasher::keep_cache_entry): New function.
20925 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
20926 (tm_clone_hasher::keep_cache_entry): New function.
20927 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
20928 (dllimport_hasher::keep_cache_entry): New function.
20930 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20932 * hash-table.h: Include hash-traits.h.
20933 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
20934 (ggc_cache_hasher): Move to...
20935 * hash-traits.h: ...this new file.
20937 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20939 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
20940 struct cl_optimization.
20941 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
20942 * tree.c (make_node_stat): Allocate cl_optimization struct.
20943 (copy_node_stat): Allocate and copy cl_optimization struct.
20945 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20947 * function.h (struct incoming_args): Move struct.
20948 (pass_by_reference, reference_callee_copied): Remove prototypes.
20949 * emit-rtl.h (struct incoming_args): Relocate struct here.
20950 * calls.h (pass_by_reference, reference_callee_copied): Relocate
20952 * function.c (pass_by_reference, reference_callee_copied): Move.
20953 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
20954 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
20955 * ipa-chkp.c: Include calls.h.
20957 2015-06-25 Andrew Macleod <amacleod@redhat.com>
20959 * alias.h (alias_set_type): Move typedef.
20960 * coretypes.h (alias_set_type): Relocate typedef here.
20961 * rtl.h: Don't include alias.h.
20963 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
20965 * cgraph.h (cgraph_rtl_info): Move to rtl.h
20966 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
20968 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
20969 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
20971 * calls.c: Include hard-reg-set.h before rtl.h.
20974 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20975 Vladimir Makarov <vmakarov@redhat.com>
20977 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
20980 2015-06-25 Richard Biener <rguenther@suse.de>
20982 * fold-const.c (fold_binary_loc): Move simplification of
20983 (X <<>> C1) & C2 ...
20984 * match.pd: ... here.
20986 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
20988 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
20990 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
20992 * match.pd: Add patterns for vec_conds between 1 and 0.
20994 2015-06-25 Richard Biener <rguenther@suse.de>
20996 * tree-vect-stmts.c (vectorizable_conversion): Do not set
20997 STMT_VINFO_VEC_STMT for SLP.
20998 (vectorizable_store): Likewise.
20999 (vectorizable_load): Likewise.
21000 (vect_transform_stmt): Catch SLP vectorization clobbering
21001 STMT_VINFO_VEC_STMT.
21003 2015-06-25 Richard Biener <rguenther@suse.de>
21005 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
21007 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
21008 cleanup resulting dead code and parameters.
21009 (vect_transform_slp_perm_load): Adjust.
21011 2015-06-25 Nick Clifton <nickc@redhat.com>
21013 * config/bfin/bfin.c (bfin_expand_prologue): Set
21014 current_function_static_stack_size if flag_stack_usage_info is set.
21015 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
21016 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
21017 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
21018 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
21020 2015-06-25 Tom de Vries <tom@codesourcery.com>
21022 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
21023 comment that the generated IV is unsigned.
21025 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21028 * config/arm/arm.c (arm_dbx_register_number): Return
21029 DWARF_FRAME_REGISTERS by default.
21031 2015-06-25 Tom de Vries <tom@codesourcery.com>
21033 * dominance.c (calculate_dominance_info): Fix verify_dominators call
21034 argument. Call verify_dominator when reusing dominator info.
21036 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
21039 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
21040 an additional element of the unspec vector. Modify indices
21042 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
21043 * config/sh/sh.c (prepare_move_operands): Pass incremented
21044 const_int to gen_GOTaddr2picreg.
21045 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
21047 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
21049 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
21050 Condition on TARGET_FLOAT.
21052 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
21054 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
21057 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
21059 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
21061 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
21062 aarch64_err_no_fpadvsimd.
21064 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
21065 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
21066 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
21067 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
21068 Turn error into assert, test TARGET_FLOAT.
21069 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
21072 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
21075 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
21077 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
21079 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
21081 2015-06-24 Renlin Li <renlin.li@arm.com>
21083 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
21084 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
21086 2015-06-24 Richard Biener <rguenther@suse.de>
21088 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
21090 (lower_opt_convert): Support lowering of conditional view_convert.
21091 (parser::parse_operation): Likewise.
21092 (parser::parse_for): Likewise.
21094 2015-06-24 Renlin Li <renlin.li@arm.com>
21096 * varasm.c (emit_local): Use unsigned int for align variable.
21098 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21101 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
21102 for negative numbers.
21104 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21106 PR rtl-optimization/66306
21107 * reload.c (find_reloads): Swap the match_dup info for
21108 commutative operands.
21110 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21112 * config/s390/vx-builtins.md
21113 ("vec_scatter_element<mode>_<non_vec_int>")
21114 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
21115 attribute with bhfgq.
21117 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21119 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
21121 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21123 * config/s390/s390-builtin-types.def: Add flag to indicate the
21124 options under which the function type is needed.
21125 * config/s390/s390-builtins.def: Add flag to indicate the options
21126 under which the builtin is enabled.
21127 * config/s390/s390-builtins.h: Add flags parameter to macro
21129 (bflags_for_builtin): New function.
21130 (flags_for_builtin): Renamed to ...
21131 (opflags_for_builtin): ... this.
21132 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
21133 flags_for_builtin to bflags_for_builtin and
21134 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
21135 * config/s390/s390.c: Add initialization of bflags_builtin and
21136 opflags_builtin arrays.
21137 Remove code for flags_builtin.
21138 (s390_init_builtins): Only create builtin function types if one of
21139 their flags is active.
21140 Only create builtins if all of their flags are active.
21141 (s390_expand_builtin): Rename flags_for_builtin to
21142 opflags_for_builtin.
21144 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21146 * config/s390/vecintrin.h: Remove internal builtins.
21148 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21150 * config/s390/s390.c (s390_secondary_reload): Fix check for
21151 GENERAL_REGS register class.
21153 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21155 * config/s390/s390.c (s390_support_vector_misalignment): Call
21156 default implementation for !TARGET_VX.
21158 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21160 * config/s390/s390.c (s390_legitimate_constant_p): Add
21163 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21165 * config/s390/s390.c (s390_vector_abi): New variable definition.
21166 (s390_check_type_for_vector_abi): New function.
21167 (TARGET_ASM_FILE_END): New macro definition.
21168 (s390_asm_file_end): New function.
21169 (s390_function_arg): Call s390_check_type_for_vector_abi.
21170 (s390_gimplify_va_arg): Likewise.
21171 * configure: Regenerate.
21172 * configure.ac: Check for .gnu_attribute Binutils feature.
21174 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
21177 * config/bfin/bfin.c (hwloop_optimize): Initialize
21178 JUMP_LABEL for newly created jump.
21180 2015-06-23 Tristan Gingold <gingold@adacore.com>
21182 * collect-utils.c (collect_wait): Unlink the response file here
21184 (do_wait): ...here.
21185 (utils_cleanup): ...and here.
21187 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
21189 * df-scan.c: Don't include target-def.h.
21190 * targhooks.c: Likewise.
21191 * config/arm/arm-c.c: Likewise.
21192 * config/i386/i386-c.c: Likewise.
21193 * config/nds32/nds32-cost.c: Likewise.
21194 * config/nds32/nds32-fp-as-gp.c: Likewise.
21195 * config/nds32/nds32-intrinsic.c: Likewise.
21196 * config/nds32/nds32-isr.c: Likewise.
21197 * config/nds32/nds32-md-auxiliary.c: Likewise.
21198 * config/nds32/nds32-memory-manipulation.c: Likewise.
21199 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21200 * config/nds32/nds32-predicates.c: Likewise.
21202 2015-06-23 Richard Biener <rguenther@suse.de>
21204 PR tree-optimization/66636
21205 * tree-vect-stmts.c (vectorizable_store): Properly compute the
21206 def type for further defs for strided stores.
21208 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
21210 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
21211 conditional selects.
21212 (setcc_int<mode>, setcc_float<mode>): Reformat.
21214 2015-06-23 Marek Polacek <polacek@redhat.com>
21216 * match.pd ((x + y) - (x | y) -> x & y,
21217 (x + y) - (x & y) -> x | y): New patterns.
21219 2015-06-23 Ludovic Courtès <ludo@gnu.org>
21222 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
21223 '-dynamic-linker' within %{!shared: ...}.
21225 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
21228 * config/i386/predicates.md (addsub_vm_operator): New predicate.
21229 (addsub_vs_operator): Ditto.
21230 (addsub_vs_parallel): Ditto.
21231 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
21232 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
21233 Put minus RTX before plus and adjust vec_merge selector.
21234 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
21235 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
21236 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
21237 (addsub vec_merge splitters): New combiner splitters.
21238 (addsub vec_select/vec_concat splitters): Ditto.
21240 2015-06-23 Bin Cheng <bin.cheng@arm.com>
21242 PR tree-optimization/66449
21243 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
21244 POINTER_PLUS_EXPR for pointers.
21246 2015-06-23 Alan Modra <amodra@gmail.com>
21248 * rtlanal.c (commutative_operand_precedence): Correct comments.
21249 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
21250 declaration. Return an int. Distinguish REG,REG return from
21252 (struct simplify_plus_minus_op_data): Make local to function.
21253 (simplify_plus_minus): Don't set canonicalized if merely sorting
21254 registers. Avoid packing ops if nothing changes. White space fixes.
21256 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
21258 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
21259 -fdump-ada-spec is passed but not if -fsyntax-only is.
21261 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
21264 * lra-lives.c (process_bb_lives): Check insn copying the same
21265 reload pseudo and don't create a copy for it.
21267 2015-06-22 Tom de Vries <tom@codesourcery.com>
21269 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
21272 2015-06-22 Tom de Vries <tom@codesourcery.com>
21274 * builtins.def (DEF_GOMP_BUILTIN): Test
21275 'flag_tree_parallelize_loops > 1' instead of
21276 'flag_tree_parallelize_loops'. Test flag_cilkplus.
21278 2015-06-22 Tom de Vries <tom@codesourcery.com>
21280 * dominance.c (calculate_dominance_info): Verify dominators if
21283 2015-06-22 Marek Polacek <polacek@redhat.com>
21285 * match.pd ((x ^ y) ^ (x | y) -> x & y,
21286 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
21287 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
21288 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
21290 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
21293 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
21294 cost of embedded comparison.
21296 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
21299 * config/rs6000/predicates.md (altivec_register_operand): Permit
21300 virtual stack registers.
21301 (vsx_register_operand): Likewise.
21302 (vfloat_operand): Likewise.
21303 (vint_operand): Likewise.
21304 (vlogical_operand): Likewise.
21306 2015-06-22 Richard Biener <rguenther@suse.de>
21308 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
21309 and single_scalar_iteration_cost members.
21310 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
21311 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
21312 (vect_get_single_scalar_iteration_cost): Remove.
21313 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
21314 Use LOOP_VINFO_SCALAR_ITERATION_COST.
21315 * tree-vect-loop.c (destroy_loop_vec_info): Free
21317 (vect_get_single_scalar_iteration_cost): Compute result into
21318 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
21319 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
21320 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
21321 (vect_estimate_min_profitable_iters): Use them.
21323 2015-06-22 Christian Bruel <christian.bruel@st.com>
21326 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
21327 (TARGET_INSERT_ATTRIBUTES): Define.
21328 (thumb_flipper): New var.
21329 * config/arm/arm.opt (-mflip-thumb): New switch.
21331 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
21332 Martin Liska <mliska@suse.cz>
21335 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
21336 construction of arg_types.
21337 (sem_function::sem_function): Likewise.
21338 (sem_function::~sem_function): Remove destruction of arg_types.
21339 (sem_function::compatible_parm_types_p): New function.
21340 (sem_function::equals_wpa): Reorg matching of return values
21341 and parameter types.
21342 (sem_function::equals_private): Reorg mathcing of argument types.
21343 (sem_function::parse_tree_args): Remove.
21344 * ipa-icf.h (init_wpa): Do not call it.
21345 (parse_tree_args): Remove.
21346 (compatible_parm_types_p): Declare.
21347 (result_type): Remove.
21348 (arg_types): Remove.
21350 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
21353 * ipa-polymorphic-call.c
21354 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
21355 initializing alias oracle; fix formating; set base_alias_set if it
21358 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
21360 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
21361 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
21362 (find_inc): Likewise.
21363 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
21365 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
21366 * df-scan.c (df_swap_refs): Remove.
21367 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
21368 * dominance.c (link_roots): Use std::swap instead of manually swapping.
21369 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
21370 * fold-const.c (fold_relational_const): Likewise.
21371 * genattrtab.c (simplify_test_exp): Likewise.
21372 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
21373 gimple_simplify): Likewise.
21374 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
21375 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
21376 * ipa-devirt.c (add_type_duplicate): Likewise.
21377 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
21378 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
21379 * lra.c (lra_create_copy): Likewise.
21380 * lto-streamer-out.c (DFS::DFS): Likewise.
21381 * modulo-sched.c (get_sched_window): Likewise.
21382 * omega.c (omega_pretty_print_problem): Likewise.
21383 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
21384 * reload1.c (reloads_unique_chain_p): Likewise.
21385 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
21386 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
21388 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
21390 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
21391 predicate_mem_writes): Likewise.
21392 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
21393 * tree-predcom.c (combine_chains): Likewise.
21394 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
21395 refs_may_alias_p_1): Likewise.
21396 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
21397 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
21398 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
21399 number_of_iterations_cond): Likewise.
21400 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
21401 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
21402 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
21403 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
21404 * tree-vrp.c (extract_range_from_binary_expr_1,
21405 extract_range_from_unary_expr_1): Likewise.
21407 2015-06-20 Marek Polacek <polacek@redhat.com>
21409 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
21411 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
21414 * config/sh/sh.c (prepare_move_operands): Replace subreg
21415 index term with R0 for base and index addressing.
21417 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
21419 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
21421 (movsf_aarch64): Change condition from register_operand to
21422 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
21423 load1. Change type for alternative 7 to store1.
21424 (movdf_aarch64): Likewise.
21426 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
21428 * config/vax/vax.md: Adjust sign/zero extend patterns to
21429 handle SUBREGs in operands[1].
21431 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21433 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
21434 of manually swapping.
21435 (expand_vec_perm_interleave2): Likewise.
21437 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
21439 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
21440 reuse bounds created for abnormal ssa names.
21442 2015-06-19 Jakub Jelinek <jakub@redhat.com>
21444 * config/nvptx/nvptx.md (allocate_stack): Rename to...
21445 (allocate_stack_<mode>): ... this, and add :P on both
21446 match_operand and unspec.
21447 (allocate_stack): New expander.
21449 2015-06-19 Christian Bruel <christian.bruel@st.com>
21453 * config/arm/arm.c (arm_set_current_function): Handle
21454 explicit default options.
21456 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
21458 * config/i386/i386.md (*movsicc_noc_zext): New insn.
21459 (zero-extended cmove with mem peephole2): New pattern.
21460 (cmove with mem peephole2): Merge patterns.
21462 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
21464 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
21466 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
21468 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
21469 * config/mips/mips.md (*madd4<mode>): Ditto.
21470 (*nmadd3<mode>) Ditto.
21471 (*nmadd4<mode>_fastmath): Ditto.
21472 (*nmadd3<mode>_fastmath): Ditto.
21473 (*nmsub4<mode>): Ditto.
21474 (*nmsub3<mode>): Ditto.
21475 (*nmsub4<mode>_fastmath): Ditto.
21476 (*nmsub3<mode>_fastmath): Ditto.
21478 2015-06-18 Michael Matz <matz@suse.de>
21480 PR middle-end/66253
21481 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
21482 grouped strided stores.
21483 (vectorizable_load): Don't use the DR from first_stmt in
21484 the non-SLP grouped strided case.
21486 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21489 * function.c (assign_bounds): Add arguments assign_regs,
21490 assign_special, assign_bt.
21491 (assign_parms): For vararg functions handle bounds in BT
21492 and special slots after incoming vararg bounds.
21494 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21496 PR middle-end/66568
21497 * cfgexpand.c (expand_return): Handle missing bounds.
21498 (expand_gimple_stmt_1): Likewise.
21499 * tree-chkp.c (chkp_expand_zero_bounds): New.
21500 * tree-chkp.h (chkp_expand_zero_bounds): New.
21502 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
21504 PR middle-end/66567
21505 * ipa-chkp.c (chkp_maybe_create_clone): Require
21506 functions to be instrumentable.
21507 * tree-chkp.c (chkp_replace_function_pointer): Use
21508 chkp_instrumentable_p instead of attribute check.
21510 2015-06-18 Richard Biener <rguenther@suse.de>
21512 PR tree-optimization/66510
21513 * tree-vect-stmts.c (vectorizable_load): Properly compute the
21514 number of vector loads for SLP permuted loads.
21515 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
21516 check the stride for loop vectorization.
21517 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
21518 vectorization factor.
21519 (vect_analyze_group_access): If the group size is not a power
21520 of two require a epilogue loop.
21521 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
21522 compute and optimizing and alias test pruning after final
21523 vectorization factor computation.
21524 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
21526 (vect_transform_slp_perm_load): Properly compute the original
21527 number of vector load stmts.
21529 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
21531 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
21532 "unlikely character , in @var" warning.
21534 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
21536 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
21537 (ix86_function_arg_advance): Ditto.
21538 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
21540 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21542 * function.h (struct rtl_data): Remove struct and accessor macros.
21543 * emit-rtl.h (struct rtl_data): Relocate to here.
21544 * Makefile.in (GTFILES): Add emit-rtl.h.
21545 * df-core.c: Include emit-rtl.h.
21546 * genattrtab.c: Likewise.
21547 * genconditions.c: Likewise.
21548 * genpreds.c: Likewise.
21549 * genrecog.c: Likewise.
21550 * regcprop.c: Likewise.
21551 * resource.c: Likewise.
21552 * sched-rgn.c: Likewise.
21553 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21554 * config/i386/winnt.c: Likewise.
21556 2015-06-17 Jakub Jelinek <jakub@redhat.com>
21558 PR middle-end/66429
21559 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
21560 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
21561 and has_force_vectorize_loops flags from cfun into
21563 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
21564 if simduid is non-NULL.
21565 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
21566 * passes.def (pass_simduid_cleanup): Add new pass after loop
21568 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
21569 indirection from htab argument's type.
21570 (shrink_simd_arrays): New function.
21571 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
21572 Don't call adjust_simduid_builtins if there are no loops.
21573 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
21574 (pass_simduid_cleanup::execute): New method.
21575 (make_pass_simduid_cleanup): New function.
21577 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
21579 * tree-core.h (tree_target_option): Make opts field a pointer to a
21580 cl_target_option instead of an instance of the struct.
21581 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
21583 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
21584 TARGET_OPTION_NODE.
21585 (copy_node_stat): Allocate and copy struct cl_target_option.
21587 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21589 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
21590 Remove conditional exposure of prototypes.
21591 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
21592 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
21593 definitions in tree.h with functions.
21594 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
21596 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
21598 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
21600 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
21601 (*cmp<mode>_signed): ... this.
21602 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
21603 (*cmp<mode>_unsigned): ... this. Remove %b.
21605 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
21607 * coretypes.h: Include input.h and as-a.h.
21608 * rtl.h: Include input.h and as-a.h for generator files.
21609 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
21610 * vec.c: Don't include diagnostic-core.h.
21611 * alias.c: Do not include input.h, line-map.h or is-a.h.
21612 * asan.c: Likewise.
21613 * attribs.c: Likewise.
21614 * auto-inc-dec.c: Likewise.
21615 * auto-profile.c: Likewise.
21616 * bb-reorder.c: Likewise.
21617 * bt-load.c: Likewise.
21618 * builtins.c: Likewise.
21619 * caller-save.c: Likewise.
21620 * calls.c: Likewise.
21621 * ccmp.c: Likewise.
21623 * cfganal.c: Likewise.
21624 * cfgbuild.c: Likewise.
21625 * cfgcleanup.c: Likewise.
21626 * cfgexpand.c: Likewise.
21627 * cfghooks.c: Likewise.
21628 * cfgloop.c: Likewise.
21629 * cfgloop.h: Likewise.
21630 * cfgloopanal.c: Likewise.
21631 * cfgloopmanip.c: Likewise.
21632 * cfgrtl.c: Likewise.
21633 * cgraph.c: Likewise.
21634 * cgraphbuild.c: Likewise.
21635 * cgraphclones.c: Likewise.
21636 * cgraphunit.c: Likewise.
21637 * cilk-common.c: Likewise.
21638 * combine-stack-adj.c: Likewise.
21639 * combine.c: Likewise.
21640 * compare-elim.c: Likewise.
21641 * convert.c: Likewise.
21642 * coverage.c: Likewise.
21643 * cppbuiltin.c: Likewise.
21644 * cprop.c: Likewise.
21646 * cselib.c: Likewise.
21647 * data-streamer-in.c: Likewise.
21648 * data-streamer-out.c: Likewise.
21649 * data-streamer.c: Likewise.
21650 * dbxout.c: Likewise.
21653 * debug.c: Likewise.
21654 * df-core.c: Likewise.
21655 * df-problems.c: Likewise.
21656 * df-scan.c: Likewise.
21659 * diagnostic-core.h: Likewise.
21660 * diagnostic.c: Likewise.
21661 * dojump.c: Likewise.
21662 * dominance.c: Likewise.
21663 * domwalk.c: Likewise.
21664 * double-int.c: Likewise.
21666 * dumpfile.c: Likewise.
21667 * dumpfile.h: Likewise.
21668 * dwarf2asm.c: Likewise.
21669 * dwarf2cfi.c: Likewise.
21670 * dwarf2out.c: Likewise.
21671 * emit-rtl.c: Likewise.
21672 * et-forest.c: Likewise.
21673 * except.c: Likewise.
21674 * explow.c: Likewise.
21675 * expmed.c: Likewise.
21676 * expr.c: Likewise.
21677 * final.c: Likewise.
21678 * fixed-value.c: Likewise.
21679 * fold-const.c: Likewise.
21680 * function.c: Likewise.
21681 * fwprop.c: Likewise.
21682 * gcc-plugin.h: Likewise.
21683 * gcse.c: Likewise.
21684 * generic-match-head.c: Likewise.
21685 * ggc-page.c: Likewise.
21686 * gimple-builder.c: Likewise.
21687 * gimple-expr.c: Likewise.
21688 * gimple-fold.c: Likewise.
21689 * gimple-iterator.c: Likewise.
21690 * gimple-low.c: Likewise.
21691 * gimple-match-head.c: Likewise.
21692 * gimple-pretty-print.c: Likewise.
21693 * gimple-ssa-isolate-paths.c: Likewise.
21694 * gimple-ssa-strength-reduction.c: Likewise.
21695 * gimple-streamer-in.c: Likewise.
21696 * gimple-streamer-out.c: Likewise.
21697 * gimple-streamer.h: Likewise.
21698 * gimple-walk.c: Likewise.
21699 * gimple.c: Likewise.
21700 * gimplify-me.c: Likewise.
21701 * gimplify.c: Likewise.
21702 * godump.c: Likewise.
21703 * graph.c: Likewise.
21704 * graphite-blocking.c: Likewise.
21705 * graphite-dependences.c: Likewise.
21706 * graphite-interchange.c: Likewise.
21707 * graphite-isl-ast-to-gimple.c: Likewise.
21708 * graphite-optimize-isl.c: Likewise.
21709 * graphite-poly.c: Likewise.
21710 * graphite-scop-detection.c: Likewise.
21711 * graphite-sese-to-poly.c: Likewise.
21712 * graphite.c: Likewise.
21713 * haifa-sched.c: Likewise.
21714 * hw-doloop.c: Likewise.
21715 * ifcvt.c: Likewise.
21716 * init-regs.c: Likewise.
21717 * input.c: Likewise.
21718 * internal-fn.c: Likewise.
21719 * ipa-chkp.c: Likewise.
21720 * ipa-comdats.c: Likewise.
21721 * ipa-cp.c: Likewise.
21722 * ipa-devirt.c: Likewise.
21723 * ipa-icf-gimple.c: Likewise.
21724 * ipa-icf.c: Likewise.
21725 * ipa-inline-analysis.c: Likewise.
21726 * ipa-inline-transform.c: Likewise.
21727 * ipa-inline.c: Likewise.
21728 * ipa-polymorphic-call.c: Likewise.
21729 * ipa-profile.c: Likewise.
21730 * ipa-prop.c: Likewise.
21731 * ipa-pure-const.c: Likewise.
21732 * ipa-ref.c: Likewise.
21733 * ipa-reference.c: Likewise.
21734 * ipa-split.c: Likewise.
21735 * ipa-utils.c: Likewise.
21736 * ipa-visibility.c: Likewise.
21738 * ira-build.c: Likewise.
21739 * ira-color.c: Likewise.
21740 * ira-conflicts.c: Likewise.
21741 * ira-costs.c: Likewise.
21742 * ira-emit.c: Likewise.
21743 * ira-lives.c: Likewise.
21745 * jump.c: Likewise.
21746 * langhooks.c: Likewise.
21748 * loop-doloop.c: Likewise.
21749 * loop-init.c: Likewise.
21750 * loop-invariant.c: Likewise.
21751 * loop-iv.c: Likewise.
21752 * loop-unroll.c: Likewise.
21753 * lower-subreg.c: Likewise.
21754 * lra-assigns.c: Likewise.
21755 * lra-coalesce.c: Likewise.
21756 * lra-constraints.c: Likewise.
21757 * lra-eliminations.c: Likewise.
21758 * lra-lives.c: Likewise.
21759 * lra-remat.c: Likewise.
21760 * lra-spills.c: Likewise.
21762 * lto-cgraph.c: Likewise.
21763 * lto-compress.c: Likewise.
21764 * lto-opts.c: Likewise.
21765 * lto-section-in.c: Likewise.
21766 * lto-section-out.c: Likewise.
21767 * lto-streamer-in.c: Likewise.
21768 * lto-streamer-out.c: Likewise.
21769 * lto-streamer.c: Likewise.
21771 * mode-switching.c: Likewise.
21772 * modulo-sched.c: Likewise.
21773 * omega.c: Likewise.
21774 * omp-low.c: Likewise.
21775 * optabs.c: Likewise.
21776 * opts-global.c: Likewise.
21777 * opts.h: Likewise.
21778 * passes.c: Likewise.
21779 * plugin.c: Likewise.
21780 * postreload-gcse.c: Likewise.
21781 * postreload.c: Likewise.
21782 * predict.c: Likewise.
21783 * pretty-print.h: Likewise.
21784 * print-rtl.c: Likewise.
21785 * print-tree.c: Likewise.
21786 * profile.c: Likewise.
21787 * real.c: Likewise.
21788 * realmpfr.c: Likewise.
21789 * recog.c: Likewise.
21791 * reg-stack.c: Likewise.
21792 * regcprop.c: Likewise.
21793 * reginfo.c: Likewise.
21794 * regrename.c: Likewise.
21795 * regstat.c: Likewise.
21796 * reload.c: Likewise.
21797 * reload1.c: Likewise.
21798 * reorg.c: Likewise.
21799 * resource.c: Likewise.
21800 * rtl-chkp.c: Likewise.
21801 * rtl-error.c: Likewise.
21802 * rtlanal.c: Likewise.
21803 * rtlhooks.c: Likewise.
21804 * sanopt.c: Likewise.
21805 * sched-deps.c: Likewise.
21806 * sched-ebb.c: Likewise.
21807 * sched-rgn.c: Likewise.
21808 * sched-vis.c: Likewise.
21809 * sdbout.c: Likewise.
21810 * sel-sched-dump.c: Likewise.
21811 * sel-sched-ir.c: Likewise.
21812 * sel-sched.c: Likewise.
21813 * sese.c: Likewise.
21814 * shrink-wrap.c: Likewise.
21815 * simplify-rtx.c: Likewise.
21816 * stack-ptr-mod.c: Likewise.
21817 * statistics.c: Likewise.
21818 * stmt.c: Likewise.
21819 * stor-layout.c: Likewise.
21820 * store-motion.c: Likewise.
21821 * streamer-hooks.c: Likewise.
21822 * stringpool.c: Likewise.
21823 * symtab.c: Likewise.
21824 * target-globals.c: Likewise.
21825 * targhooks.c: Likewise.
21826 * toplev.c: Likewise.
21827 * tracer.c: Likewise.
21828 * trans-mem.c: Likewise.
21829 * tree-affine.c: Likewise.
21830 * tree-browser.c: Likewise.
21831 * tree-call-cdce.c: Likewise.
21832 * tree-cfg.c: Likewise.
21833 * tree-cfgcleanup.c: Likewise.
21834 * tree-chkp-opt.c: Likewise.
21835 * tree-chkp.c: Likewise.
21836 * tree-chrec.c: Likewise.
21837 * tree-complex.c: Likewise.
21838 * tree-data-ref.c: Likewise.
21839 * tree-dfa.c: Likewise.
21840 * tree-diagnostic.c: Likewise.
21841 * tree-dump.c: Likewise.
21842 * tree-eh.c: Likewise.
21843 * tree-emutls.c: Likewise.
21844 * tree-if-conv.c: Likewise.
21845 * tree-inline.c: Likewise.
21846 * tree-into-ssa.c: Likewise.
21847 * tree-iterator.c: Likewise.
21848 * tree-loop-distribution.c: Likewise.
21849 * tree-nested.c: Likewise.
21850 * tree-nrv.c: Likewise.
21851 * tree-object-size.c: Likewise.
21852 * tree-outof-ssa.c: Likewise.
21853 * tree-parloops.c: Likewise.
21854 * tree-phinodes.c: Likewise.
21855 * tree-predcom.c: Likewise.
21856 * tree-pretty-print.c: Likewise.
21857 * tree-profile.c: Likewise.
21858 * tree-scalar-evolution.c: Likewise.
21859 * tree-sra.c: Likewise.
21860 * tree-ssa-address.c: Likewise.
21861 * tree-ssa-alias.c: Likewise.
21862 * tree-ssa-ccp.c: Likewise.
21863 * tree-ssa-coalesce.c: Likewise.
21864 * tree-ssa-copy.c: Likewise.
21865 * tree-ssa-copyrename.c: Likewise.
21866 * tree-ssa-dce.c: Likewise.
21867 * tree-ssa-dom.c: Likewise.
21868 * tree-ssa-dse.c: Likewise.
21869 * tree-ssa-forwprop.c: Likewise.
21870 * tree-ssa-ifcombine.c: Likewise.
21871 * tree-ssa-live.c: Likewise.
21872 * tree-ssa-loop-ch.c: Likewise.
21873 * tree-ssa-loop-im.c: Likewise.
21874 * tree-ssa-loop-ivcanon.c: Likewise.
21875 * tree-ssa-loop-ivopts.c: Likewise.
21876 * tree-ssa-loop-manip.c: Likewise.
21877 * tree-ssa-loop-niter.c: Likewise.
21878 * tree-ssa-loop-prefetch.c: Likewise.
21879 * tree-ssa-loop-unswitch.c: Likewise.
21880 * tree-ssa-loop.c: Likewise.
21881 * tree-ssa-math-opts.c: Likewise.
21882 * tree-ssa-operands.c: Likewise.
21883 * tree-ssa-phiopt.c: Likewise.
21884 * tree-ssa-phiprop.c: Likewise.
21885 * tree-ssa-pre.c: Likewise.
21886 * tree-ssa-propagate.c: Likewise.
21887 * tree-ssa-reassoc.c: Likewise.
21888 * tree-ssa-sccvn.c: Likewise.
21889 * tree-ssa-scopedtables.c: Likewise.
21890 * tree-ssa-sink.c: Likewise.
21891 * tree-ssa-strlen.c: Likewise.
21892 * tree-ssa-structalias.c: Likewise.
21893 * tree-ssa-tail-merge.c: Likewise.
21894 * tree-ssa-ter.c: Likewise.
21895 * tree-ssa-threadedge.c: Likewise.
21896 * tree-ssa-threadupdate.c: Likewise.
21897 * tree-ssa-uncprop.c: Likewise.
21898 * tree-ssa-uninit.c: Likewise.
21899 * tree-ssa.c: Likewise.
21900 * tree-ssanames.c: Likewise.
21901 * tree-stdarg.c: Likewise.
21902 * tree-streamer-in.c: Likewise.
21903 * tree-streamer-out.c: Likewise.
21904 * tree-streamer.c: Likewise.
21905 * tree-switch-conversion.c: Likewise.
21906 * tree-tailcall.c: Likewise.
21907 * tree-vect-data-refs.c: Likewise.
21908 * tree-vect-generic.c: Likewise.
21909 * tree-vect-loop-manip.c: Likewise.
21910 * tree-vect-loop.c: Likewise.
21911 * tree-vect-patterns.c: Likewise.
21912 * tree-vect-slp.c: Likewise.
21913 * tree-vect-stmts.c: Likewise.
21914 * tree-vectorizer.c: Likewise.
21915 * tree-vrp.c: Likewise.
21916 * tree.c: Likewise.
21917 * tsan.c: Likewise.
21918 * ubsan.c: Likewise.
21919 * valtrack.c: Likewise.
21920 * value-prof.c: Likewise.
21921 * var-tracking.c: Likewise.
21922 * varasm.c: Likewise.
21923 * varpool.c: Likewise.
21924 * vmsdbgout.c: Likewise.
21925 * vtable-verify.c: Likewise.
21927 * wide-int.cc: Likewise.
21928 * xcoffout.c: Likewise.
21929 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
21930 * common/common-targhooks.c: Likewise.
21931 * config/aarch64/aarch64-builtins.c: Likewise.
21932 * config/aarch64/aarch64.c: Likewise.
21933 * config/alpha/alpha.c: Likewise.
21934 * config/arc/arc.c: Likewise.
21935 * config/arm/aarch-common.c: Likewise.
21936 * config/arm/arm-builtins.c: Likewise.
21937 * config/arm/arm-c.c: Likewise.
21938 * config/arm/arm.c: Likewise.
21939 * config/avr/avr-c.c: Likewise.
21940 * config/avr/avr-log.c: Likewise.
21941 * config/avr/avr.c: Likewise.
21942 * config/bfin/bfin.c: Likewise.
21943 * config/c6x/c6x.c: Likewise.
21944 * config/cr16/cr16.c: Likewise.
21945 * config/cris/cris.c: Likewise.
21946 * config/darwin-c.c: Likewise.
21947 * config/darwin.c: Likewise.
21948 * config/default-c.c: Likewise.
21949 * config/epiphany/epiphany.c: Likewise.
21950 * config/epiphany/mode-switch-use.c: Likewise.
21951 * config/epiphany/resolve-sw-modes.c: Likewise.
21952 * config/fr30/fr30.c: Likewise.
21953 * config/frv/frv.c: Likewise.
21954 * config/ft32/ft32.c: Likewise.
21955 * config/glibc-c.c: Likewise.
21956 * config/h8300/h8300.c: Likewise.
21957 * config/i386/i386-c.c: Likewise.
21958 * config/i386/i386.c: Likewise.
21959 * config/i386/msformat-c.c: Likewise.
21960 * config/i386/winnt-cxx.c: Likewise.
21961 * config/i386/winnt-stubs.c: Likewise.
21962 * config/i386/winnt.c: Likewise.
21963 * config/ia64/ia64-c.c: Likewise.
21964 * config/ia64/ia64.c: Likewise.
21965 * config/iq2000/iq2000.c: Likewise.
21966 * config/lm32/lm32.c: Likewise.
21967 * config/m32c/m32c-pragma.c: Likewise.
21968 * config/m32c/m32c.c: Likewise.
21969 * config/m32r/m32r.c: Likewise.
21970 * config/m68k/m68k.c: Likewise.
21971 * config/mcore/mcore.c: Likewise.
21972 * config/mep/mep-pragma.c: Likewise.
21973 * config/mep/mep.c: Likewise.
21974 * config/microblaze/microblaze-c.c: Likewise.
21975 * config/microblaze/microblaze.c: Likewise.
21976 * config/mips/mips.c: Likewise.
21977 * config/mmix/mmix.c: Likewise.
21978 * config/mn10300/mn10300.c: Likewise.
21979 * config/moxie/moxie.c: Likewise.
21980 * config/msp430/msp430-c.c: Likewise.
21981 * config/msp430/msp430.c: Likewise.
21982 * config/nds32/nds32-cost.c: Likewise.
21983 * config/nds32/nds32-fp-as-gp.c: Likewise.
21984 * config/nds32/nds32-intrinsic.c: Likewise.
21985 * config/nds32/nds32-isr.c: Likewise.
21986 * config/nds32/nds32-md-auxiliary.c: Likewise.
21987 * config/nds32/nds32-memory-manipulation.c: Likewise.
21988 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21989 * config/nds32/nds32-predicates.c: Likewise.
21990 * config/nds32/nds32.c: Likewise.
21991 * config/nios2/nios2.c: Likewise.
21992 * config/nvptx/nvptx.c: Likewise.
21993 * config/pa/pa.c: Likewise.
21994 * config/pdp11/pdp11.c: Likewise.
21995 * config/rl78/rl78-c.c: Likewise.
21996 * config/rl78/rl78.c: Likewise.
21997 * config/rs6000/rs6000-c.c: Likewise.
21998 * config/rs6000/rs6000.c: Likewise.
21999 * config/rx/rx.c: Likewise.
22000 * config/s390/s390-c.c: Likewise.
22001 * config/s390/s390.c: Likewise.
22002 * config/sh/sh-c.c: Likewise.
22003 * config/sh/sh-mem.cc: Likewise.
22004 * config/sh/sh.c: Likewise.
22005 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22006 * config/sh/sh_treg_combine.cc: Likewise.
22007 * config/sol2-c.c: Likewise.
22008 * config/sol2-cxx.c: Likewise.
22009 * config/sol2-stubs.c: Likewise.
22010 * config/sol2.c: Likewise.
22011 * config/sparc/sparc-c.c: Likewise.
22012 * config/sparc/sparc.c: Likewise.
22013 * config/spu/spu-c.c: Likewise.
22014 * config/spu/spu.c: Likewise.
22015 * config/stormy16/stormy16.c: Likewise.
22016 * config/tilegx/mul-tables.c: Likewise.
22017 * config/tilegx/tilegx-c.c: Likewise.
22018 * config/tilegx/tilegx.c: Likewise.
22019 * config/tilepro/mul-tables.c: Likewise.
22020 * config/tilepro/tilepro-c.c: Likewise.
22021 * config/tilepro/tilepro.c: Likewise.
22022 * config/v850/v850-c.c: Likewise.
22023 * config/v850/v850.c: Likewise.
22024 * config/vax/vax.c: Likewise.
22025 * config/visium/visium.c: Likewise.
22026 * config/vms/vms-c.c: Likewise.
22027 * config/vms/vms.c: Likewise.
22028 * config/vxworks.c: Likewise.
22029 * config/winnt-c.c: Likewise.
22030 * config/xtensa/xtensa.c: Likewise.
22032 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
22034 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
22036 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
22038 2015-06-17 Richard Biener <rguenther@suse.de>
22040 PR tree-optimization/66251
22041 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
22042 stmts for SLP strided stores.
22045 2015-05-22 Richard Biener <rguenther@suse.de>
22047 PR tree-optimization/66251
22048 * tree-vect-stmts.c (vectorizable_conversion): Properly
22049 set STMT_VINFO_VEC_STMT even for the SLP case.
22051 2015-05-26 Michael Matz <matz@suse.de>
22053 PR middle-end/66251
22054 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
22055 STMT_VINFO_VEC_STMT, also with SLP.
22057 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
22060 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
22061 (*avx_addsubv4df3_1s): Ditto.
22062 (*sse3_addsubv2df3_1): Ditto.
22063 (*sse3_addsubv2df3_1s): Ditto.
22064 (*avx_addsubv8sf3_1): Ditto.
22065 (*avx_addsubv8sf3_1s): Ditto.
22066 (*sse3_addsubv4sf3_1): Ditto.
22067 (*sse3_addsubv4sf3_1s): Ditto.
22069 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
22071 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
22072 (SYSROOT_SUFFIX_SPEC): Update.
22073 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
22074 (STARTFILE_PREFIX_SPEC): Update.
22075 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
22076 (MULTILIB_REQUIRED): New.
22077 (MULTILIB_OSDIRNAMES): New.
22078 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
22079 (MULTILIB_REQUIRED): New.
22080 (MULTILIB_OSDIRNAMES): New.
22082 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
22084 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
22085 * config/aarch64/aarch64-options-extensions.def: Update "fP",
22086 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
22087 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
22088 (AARCH64_FL_PAN): New.
22089 (AARCH64_FL_LOR): New.
22090 (AARCH64_FL_RDMA): New.
22091 (AARCH64_FL_FOR_ARCH8_1): New.
22092 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
22093 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
22095 2015-06-16 Martin Liska <mliska@suse.cz>
22097 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
22098 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
22101 2015-06-16 Richard Biener <rguenther@suse.de>
22103 * tree-vect-stmts.c (vectorizable_store): Adjust.
22104 (vectorizable_load): Likewise.
22105 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
22107 (vect_create_data_ref_ptr): Likewise.
22108 (bump_vector_ptr): Adjust.
22110 2015-06-16 Richard Biener <rguenther@suse.de>
22112 * tree-vect-stmts.c (vectorizable_load): Properly start loads
22113 with the first element if this is grouped loads.
22115 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
22117 * config/arm/arm-protos.h (struct tune_params): Rename
22118 log_op_non_sc to log_op_non_short_circuit, and rename enum
22119 values to expand SC to SHORT_CIRCUIT.
22120 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
22121 to LOG_OP_NON_SHORT_CIRCUIT.
22122 (arm_fastmul_tune):Likewise
22123 (arm_strongarm_tune): Likewise.
22124 (arm_xscale_tune): Likewise.
22125 (arm_9e_tune): Likewise.
22126 (arm_marvell_pj4_tune): Likewise.
22127 (arm_v6t2_tune): Likewise.
22128 (arm_cortex_tune): Likewise.
22129 (arm_cortex_a8_tune): Likewise.
22130 (arm_cortex_a7_tune): Likewise.
22131 (arm_cortex_a15_tune): Likewise.
22132 (arm_cortex_a53_tune): Likewise.
22133 (arm_cortex_a57_tune): Likewise.
22134 (arm_xgene1_tune): Likewise.
22135 (arm_cortex_a5_tune): Likewise.
22136 (arm_cortex_a9_tune): Likewise.
22137 (arm_cortex_a12_tune): Likewise.
22138 (arm_v7m_tune): Likewise.
22139 (arm_cortex_m7_tune): Likewise.
22140 (arm_v6m_tune): Likewise.
22141 (arm_fa726te_tune): Likewise.
22143 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
22145 * altivec.md: Delete UNSPEC_VMLADDUHM.
22146 (mulv4si3_p8): New pattern.
22147 (mulv4si3): Use it for POWER8.
22148 (mulv8hi3): Use vmladduhm with zero addend.
22149 (altivec_vmladduhm): Descriptive RTL.
22151 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
22153 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
22154 to use neon_move instead of mov_imm.
22155 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
22156 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
22158 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
22159 aarch64_float_const_zero_rtx_p check before TFmode check.
22160 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
22162 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
22163 code and attributes to match. Change condition from register_operand
22164 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
22165 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
22168 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
22171 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
22172 there is no parent.
22174 2015-06-14 Shiva Chen <shiva0217@gmail.com>
22176 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
22177 HOST_WIDE_INT parameter.
22179 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
22182 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
22183 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
22185 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
22187 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
22189 * rtl.h (classify_insn): Declare.
22190 * emit-rtl.c (classify_insn): Move to...
22191 * rtl.c: ...here and add generator support.
22192 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
22193 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
22194 * genemit.c (gen_emit_seq): New function.
22195 (gen_expand, gen_split): Use it.
22197 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
22199 * tree.c (make_vector_stat): Fix comment to state that the
22200 function returns a VECTOR_CST.
22202 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
22204 * gensupport.h (add_implicit_parallel): Declare.
22205 * genrecog.c (add_implicit_parallel): Move to...
22206 * gensupport.c (add_implicit_parallel): ...here.
22207 (process_one_cond_exec): Use it.
22208 * genemit.c (gen_insn): Likewise.
22210 2015-06-13 Iain Sandoe <iain@codesourcery.com>
22213 * passes.c (rest_of_decl_compilation): Do not register globals for
22214 early debug if they are declared in built-ins.
22216 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
22218 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
22220 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22222 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
22224 (noce_try_cmove_arith): Likewise.
22225 (noce_get_alt_condition): Likewise.
22227 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22229 * common/config/i386/i386-common.c
22230 (OPTION_MASK_ISA_MWAITX_SET): New.
22231 (ix86_handle_option): Handle mwaitx.
22232 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
22233 (x86_64-*-*): Likewise.
22234 * config/i386/mwaitxintrin.h: New header.
22235 * config/i386/cpuid.h (bit_MWAITX): Define.
22236 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
22238 * config/i386/i386.opt (mwaitx): New.
22239 * config/i386/i386-builtin-types.def
22240 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
22241 * config/i386/i386-c.c: Define __MWAITX__ if needed.
22242 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
22244 (ix86_option_override_internal): Handle new option.
22245 (processor_alias_table): Added PTA_MWAITX.
22246 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
22247 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
22248 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
22249 IX86_BUILTIN_MONITORX built-ins.
22250 * config/i386/i386.h (TARGET_MWAITX): New.
22251 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
22253 (mwaitx): New pattern.
22254 (monitorx_<mode>): New pattern.
22255 * config/i386/x86intrin.h: Include mwaitxintrin.h.
22256 * doc/extend.texi: Document monitorx and mwaitx builtins.
22257 * doc/invoke.texi: Document -mmwaitx option.
22259 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
22261 * emit-rtl.c (need_atomic_barrier_p): Mask model with
22262 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
22264 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
22266 * dbxout.c (xcoff_debug_hooks): Provide a function for
22267 register_main_translation_unit hook.
22269 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
22271 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
22272 variants cases from switch.
22273 (rs6000_post_atomic_barrier): Same.
22274 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
22275 (rs6000_expand_atomic_exchange): Same.
22276 (rs6000_expand_atomic_op): Same.
22277 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
22278 SYNC variants cases from switch.
22279 (atomic_load): Same.
22280 (atomic_store): Same.
22282 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
22284 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
22285 CONST_INT for goto.
22287 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
22290 * dwarf2out.c (check_die): Check for common duplicate attributes.
22291 (add_location_or_const_value_attribute): Do not add duplicate
22293 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
22295 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
22296 (gen_type_die_with_usage): Call check_die.
22297 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
22299 2015-06-11 Jason Merrill <jason@redhat.com>
22301 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
22304 2015-06-11 Marek Polacek <polacek@redhat.com>
22306 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
22308 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
22311 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
22312 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
22313 (*addx_extend_sp32): Fix pasto.
22314 (*subx_extend): Rename into...
22315 (*subx_extend_sp32): ...this.
22316 (*adddi3_extend_sp32): Add earlyclobber.
22317 (*subdi3_insn_sp32): Likewise.
22318 (*subdi3_extend_sp32): Likewise.
22319 (*and_not_di_sp32): Likewise.
22320 (*or_not_di_sp32): Likewise.
22321 (*xor_not_di_sp32): Likewise.
22322 (*negdi2_sp32): Likewise.
22323 (*one_cmpldi2_sp32): Likewise.
22325 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
22327 * debug.h (struct gcc_debug_hooks): Add a
22328 register_main_translation_unit hook.
22329 * debug.c (do_nothing_debug_hooks): Provide a function for this
22331 * dbxout.c (dbx_debug_hooks): Likewise.
22332 * sdbout.c (sdb_debug_hooks): Likewise.
22333 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
22334 * dwarf2out.c (main_translation_unit): New global variable.
22335 (dwarf2out_register_main_translation_unit): New function
22336 implementing the new hook.
22337 (dwarf2_debug_hooks): Assign
22338 dwarf2out_register_main_translation_unit to this new hook.
22339 (dwarf2out_init): Associate any main translation unit to
22342 2015-06-11 Marek Polacek <polacek@redhat.com>
22344 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
22346 2015-06-11 Marek Polacek <polacek@redhat.com>
22348 * match.pd: Use single_use throughout.
22350 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22352 * config/arm/arm.c (arm_option_params_internal): When optimising
22353 for speed set max_insns_skipped when arm_restrict_it.
22355 2015-06-11 Christian Bruel <christian.bruel@st.com>
22358 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
22360 (arm_cpu_builtins): New function.
22361 (arm_pragma_target_parse): Call arm_cpu_builtins.
22362 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
22363 (arm_register_target_pragmas): Likewise.
22364 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
22365 Call arm_register_target_pragmas.
22366 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
22367 (arm_pragma_target_parse): Likewise.
22369 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
22371 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
22372 of the second operand.
22374 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
22377 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
22378 to prepare mask operand for AVX512 modes.
22380 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
22383 * doc/md.texi (Machine Constraints): Document that on the PowerPC
22384 if you use a constraint that targets a VSX register, you must use
22385 %x<n> in the template.
22387 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
22389 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
22390 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
22391 (define_insn "trap"): New definition.
22393 2015-06-10 Richard Biener <rguenther@suse.de>
22395 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
22397 (vect_supported_load_permutation_p): ... here. Handle
22398 supportable permutations in reductions.
22399 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
22400 for vectorizing strided group loads.
22402 2015-06-10 Jakub Jelinek <jakub@redhat.com>
22405 * config/i386/i386.c (ix86_split_long_move): For collisions
22406 involving direct tls segment refs, move the UNSPEC_TP possibly
22407 wrapped in ZERO_EXTEND out of the address for lea, to each of
22410 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22412 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
22413 dmb sy. Adjust tabs.
22415 2015-06-10 Tom de Vries <tom@codesourcery.com>
22417 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
22419 2015-06-10 Martin Liska <mliska@suse.cz>
22422 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
22423 all enum values in mem_alloc_origin.
22424 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
22426 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
22427 * bitmap.c (bitmap_register): Likewise.
22428 (dump_bitmap_statistics): Likewise.
22429 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
22430 (ggc_record_overhead): Likewise.
22431 * hash-map.h: Likewise.
22432 * hash-set.h: Likewise.
22433 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
22434 * hash-table.h: Likewise.
22435 * vec.c (vec_prefix::register_overhead): Likewise.
22436 (vec_prefix::release_overhead): Likewise.
22437 (dump_vec_loc_statistics): Likewise.
22439 2015-06-09 Christian Bruel <christian.bruel@st.com>
22442 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
22443 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
22444 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
22445 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
22446 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
22447 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
22448 (arm_valid_target_attribute_p): Likewise.
22449 (arm_set_current_function, arm_can_inline_p): Likewise.
22450 (arm_valid_target_attribute_rec): Likewise.
22451 (arm_previous_fndecl): New variable.
22452 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
22453 (TARGET_CAN_INLINE_P): Define.
22454 (arm_asm_trampoline_template): Emit mode.
22455 (arm_file_start): Don't set unified syntax.
22456 (arm_declare_function_name): Set unified syntax and mode.
22457 (arm_option_override): Init target_option_default_node.
22458 and target_option_current_node.
22459 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
22460 (*call_symbol): Likewise.
22461 * doc/extend.texi: Document ARM/Thumb target attribute.
22462 * doc/invoke.texi: Likewise.
22464 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22467 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22468 PR rtl-optimization/64164
22469 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22470 * tree-ssa-copyrename.c: Removed.
22471 * opts.c (default_options_table): Drop -ftree-copyrename. Add
22472 -ftree-coalesce-vars.
22473 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22474 * common.opt (ftree-copyrename): Ignore.
22475 (ftree-coalesce-inlined-vars): Likewise.
22476 * doc/invoke.texi: Remove the ignored options above.
22477 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22478 * tree-ssa-coalesce.h: ... here.
22479 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22480 headers required by it.
22481 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22482 across variables when flag_tree_coalesce_vars. Check register
22483 use and promoted modes to allow coalescing. Moved to
22484 tree-ssa-coalesce.c.
22485 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22486 with its member functions to tree-ssa-coalesce.c.
22487 (var_map_base_init): Likewise. Renamed to
22488 compute_samebase_partition_bases.
22489 (partition_view_normal): Drop want_bases parameter.
22490 (partition_view_bitmap): Likewise.
22491 * tree-ssa-live.h: Adjust declarations.
22492 * tree-ssa-coalesce.c: Include explow.h.
22493 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22494 default defs at the entry point.
22495 (dump_part_var_map): New.
22496 (compute_optimized_partition_bases): New, called by...
22497 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22498 of compute_samebase_partition_bases. Adjust.
22499 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22500 * cfgexpand.c (leader_merge): New.
22501 (get_rtl_for_parm_ssa_default_def): New.
22502 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22503 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22504 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
22505 redundant MEM attr setting.
22506 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
22508 (expand_one_stack_var): ... this. New wrapper to check and
22509 skip already expanded SSA partitions.
22510 (record_alignment_for_reg_var): New, factored out of...
22511 (expand_one_var): ... this.
22512 (expand_one_ssa_partition): New.
22513 (adjust_one_expanded_partition_var): New.
22514 (expand_one_register_var): Check and skip already expanded SSA
22516 (expand_used_vars): Don't create DECLs for anonymous SSA
22517 names. Expand all SSA partitions, then adjust all SSA names.
22518 (pass::execute): Replace the loops that set
22519 SA.partition_to_pseudo from partition leaders and cleared
22520 DECL_RTL for multi-location variables, and that which used to
22521 rename vars and set attrs, with one that clears DECL_RTL and
22522 checks that PARMs and RESULTs default_defs match DECL_RTL.
22523 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22524 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22525 * explow.c (promote_ssa_mode): New.
22526 * explow.h (promote_ssa_mode): Declare.
22527 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22528 * function.c: Include cfgexpand.h.
22529 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22530 (use_register_for_parm_decl): Wrapper for the above to
22531 special-case the result_ptr.
22532 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22533 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22534 multiple locations.
22535 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22536 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22537 (assign_parm_setup_block): Prefer SSA-assigned location.
22538 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22539 if stack_parm is NULL.
22540 (assign_parm_setup_stack): Prefer SSA-assigned location.
22541 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22542 rtl before testing for pointer bounds. Special-case result_ptr.
22543 (expand_function_start): Maybe reset DECL_RTL of result.
22544 Prefer SSA-assigned location for result and static chain.
22545 Factor out DECL_RESULT and SET_DECL_RTL.
22546 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22547 anonymous SSA names. Use promote_ssa_mode.
22548 (get_temp_reg): Likewise.
22549 (remove_ssa_form): Adjust.
22550 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22551 and get its reg_usage for reg invalidation.
22552 (compute_bb_dataflow): Pass it insn.
22553 (emit_notes_in_bb): Likewise.
22554 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22555 fail assert on conversion between unsigned types.
22557 2015-06-09 Tom de Vries <tom@codesourcery.com>
22559 PR tree-optimization/65460
22560 * omp-low.c (expand_omp_target): Set parallelized_function on
22561 cgraph_node for child_fn.
22563 2015-06-09 Tom de Vries <tom@codesourcery.com>
22565 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
22566 parallelized_function before add_new_function.
22568 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
22570 * gcc-plugin.h: Move decls to plugin.h and include it.
22571 * plugin.h: Relocate decls from gcc-plugin.h
22572 * ggc-page.c: Include required header files.
22573 * passes.c: Likewise.
22574 * cgraphunit.c: Likewise.
22576 2015-06-09 Tom de Vries <tom@codesourcery.com>
22578 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
22580 2015-06-09 Jason Merrill <jason@redhat.com>
22583 * toplev.c (check_global_declaration): Don't warn about a clone.
22585 2015-06-09 Marek Polacek <polacek@redhat.com>
22587 PR tree-optimization/66299
22588 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
22589 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
22592 2015-06-09 Richard Biener <rguenther@suse.de>
22594 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
22595 (vect_analyze_slp_instance): Instead do not falsely drop
22598 2015-06-09 Richard Biener <rguenther@suse.de>
22600 PR middle-end/66423
22601 * match.pd: Handle A % (unsigned)(1 << B).
22603 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
22605 * varasm.c (output_object_block_htab): Remove.
22606 (output_object_block_compare): New.
22607 (output_object_blocks): Sort named object_blocks before outputting
22610 2015-06-09 Richard Biener <rguenther@suse.de>
22612 PR tree-optimization/66419
22613 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
22614 consider GROUP_GAP when detecting a perfect subchain.
22616 2015-06-09 Nick Clifton <nickc@redhat.com>
22618 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
22619 place read only data in the .frodata section.
22621 2015-06-09 Shiva Chen <shiva0217@gmail.com>
22623 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
22624 (atomic_store<mode>): Likewise.
22626 2015-06-09 Richard Biener <rguenther@suse.de>
22628 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
22630 2015-06-09 Richard Biener <rguenther@suse.de>
22632 PR middle-end/66413
22633 * tree-inline.c (insert_init_debug_bind): Unshare value.
22635 2015-06-09 Richard Biener <rguenther@suse.de>
22637 PR tree-optimization/66396
22638 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
22639 Rename virtual operands.
22641 2015-06-09 Tom de Vries <tom@codesourcery.com>
22643 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
22644 always return false.
22646 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22648 PR rtl-optimization/64164
22649 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
22650 * tree-ssa-copyrename.c: Removed.
22651 * opts.c (default_options_table): Drop -ftree-copyrename. Add
22652 -ftree-coalesce-vars.
22653 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
22654 * common.opt (ftree-copyrename): Ignore.
22655 (ftree-coalesce-inlined-vars): Likewise.
22656 * doc/invoke.texi: Remove the ignored options above.
22657 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
22658 * tree-ssa-coalesce.h: ... here.
22659 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
22660 headers required by it.
22661 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
22662 across variables when flag_tree_coalesce_vars. Check register
22663 use and promoted modes to allow coalescing. Moved to
22664 tree-ssa-coalesce.c.
22665 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
22666 with its member functions to tree-ssa-coalesce.c.
22667 (var_map_base_init): Likewise. Renamed to
22668 compute_samebase_partition_bases.
22669 (partition_view_normal): Drop want_bases parameter.
22670 (partition_view_bitmap): Likewise.
22671 * tree-ssa-live.h: Adjust declarations.
22672 * tree-ssa-coalesce.c: Include explow.h.
22673 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
22674 default defs at the entry point.
22675 (dump_part_var_map): New.
22676 (compute_optimized_partition_bases): New, called by...
22677 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
22678 of compute_samebase_partition_bases. Adjust.
22679 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
22680 * cfgexpand.c (leader_merge): New.
22681 (get_rtl_for_parm_ssa_default_def): New.
22682 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22683 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22684 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
22685 redundant MEM attr setting.
22686 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
22688 (expand_one_stack_var): ... this. New wrapper to check and
22689 skip already expanded SSA partitions.
22690 (record_alignment_for_reg_var): New, factored out of...
22691 (expand_one_var): ... this.
22692 (expand_one_ssa_partition): New.
22693 (adjust_one_expanded_partition_var): New.
22694 (expand_one_register_var): Check and skip already expanded SSA
22696 (expand_used_vars): Don't create DECLs for anonymous SSA
22697 names. Expand all SSA partitions, then adjust all SSA names.
22698 (pass::execute): Replace the loops that set
22699 SA.partition_to_pseudo from partition leaders and cleared
22700 DECL_RTL for multi-location variables, and that which used to
22701 rename vars and set attrs, with one that clears DECL_RTL and
22702 checks that PARMs and RESULTs default_defs match DECL_RTL.
22703 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22704 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22705 * explow.c (promote_ssa_mode): New.
22706 * explow.h (promote_ssa_mode): Declare.
22707 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22708 * function.c: Include cfgexpand.h.
22709 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22710 (use_register_for_parm_decl): Wrapper for the above to
22711 special-case the result_ptr.
22712 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22713 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22714 multiple locations.
22715 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22716 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22717 (assign_parm_setup_block): Prefer SSA-assigned location.
22718 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22719 if stack_parm is NULL.
22720 (assign_parm_setup_stack): Prefer SSA-assigned location.
22721 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22722 rtl before testing for pointer bounds. Special-case result_ptr.
22723 (expand_function_start): Maybe reset DECL_RTL of result.
22724 Prefer SSA-assigned location for result and static chain.
22725 Factor out DECL_RESULT and SET_DECL_RTL.
22726 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22727 anonymous SSA names. Use promote_ssa_mode.
22728 (get_temp_reg): Likewise.
22729 (remove_ssa_form): Adjust.
22730 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22731 and get its reg_usage for reg invalidation.
22732 (compute_bb_dataflow): Pass it insn.
22733 (emit_notes_in_bb): Likewise.
22734 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
22735 fail assert on conversion between unsigned types.
22737 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
22740 * tree-inline.c (reset_debug_binding): New.
22741 (reset_debug_bindings): Likewise.
22742 (expand_call_inline): Call it.
22744 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22746 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
22749 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
22751 * lto-streamer-out.c (lto_output_location): Stream
22752 reserved locations correctly.
22753 * lto-streamer-in.c (lto_output_location): Likewise.
22755 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
22757 * coretypes.h: Include hash-table.h and hash-set.h for host files.
22758 * ggc.h: Don't include statistics.h>
22759 * hash-map.h: Remove all includes.
22760 * hash-set.h: Likewise.
22761 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
22762 the include list. Remove <new>.
22763 * inchash.h: Remove all includes.
22764 * mem-stats.h: Likewise.
22765 * vec.h: No special processing for generators or ggc.
22766 * alias.c : Adjust include files.
22767 * alloc-pool.c : Likewise.
22768 * alloc-pool.h : Likewise.
22769 * asan.c : Likewise.
22770 * attribs.c : Likewise.
22771 * auto-inc-dec.c : Likewise.
22772 * auto-profile.c : Likewise.
22773 * bb-reorder.c : Likewise.
22774 * bitmap.c : Likewise.
22775 * bitmap.h : Likewise.
22776 * bt-load.c : Likewise.
22777 * builtins.c : Likewise.
22778 * caller-save.c : Likewise.
22779 * calls.c : Likewise.
22780 * ccmp.c : Likewise.
22781 * cfg.c : Likewise.
22782 * cfganal.c : Likewise.
22783 * cfgbuild.c : Likewise.
22784 * cfgcleanup.c : Likewise.
22785 * cfgexpand.c : Likewise.
22786 * cfghooks.c : Likewise.
22787 * cfgloop.c : Likewise.
22788 * cfgloop.h : Likewise.
22789 * cfgloopanal.c : Likewise.
22790 * cfgloopmanip.c : Likewise.
22791 * cfgrtl.c : Likewise.
22792 * cgraph.c : Likewise.
22793 * cgraphbuild.c : Likewise.
22794 * cgraphclones.c : Likewise.
22795 * cgraphunit.c : Likewise.
22796 * cilk-common.c : Likewise.
22797 * combine-stack-adj.c : Likewise.
22798 * combine.c : Likewise.
22799 * compare-elim.c : Likewise.
22800 * context.c : Likewise.
22801 * convert.c : Likewise.
22802 * coverage.c : Likewise.
22803 * cppbuiltin.c : Likewise.
22804 * cprop.c : Likewise.
22805 * cse.c : Likewise.
22806 * cselib.c : Likewise.
22807 * data-streamer-in.c : Likewise.
22808 * data-streamer-out.c : Likewise.
22809 * data-streamer.c : Likewise.
22810 * data-streamer.h : Likewise.
22811 * dbxout.c : Likewise.
22812 * dce.c : Likewise.
22813 * ddg.c : Likewise.
22814 * debug.c : Likewise.
22815 * df-core.c : Likewise.
22816 * df-problems.c : Likewise.
22817 * df-scan.c : Likewise.
22819 * dfp.c : Likewise.
22820 * dojump.c : Likewise.
22821 * dominance.c : Likewise.
22822 * domwalk.c : Likewise.
22823 * double-int.c : Likewise.
22824 * dse.c : Likewise.
22825 * dumpfile.c : Likewise.
22826 * dwarf2asm.c : Likewise.
22827 * dwarf2cfi.c : Likewise.
22828 * dwarf2out.c : Likewise.
22829 * emit-rtl.c : Likewise.
22830 * et-forest.c : Likewise.
22831 * except.c : Likewise.
22832 * except.h : Likewise.
22833 * explow.c : Likewise.
22834 * expmed.c : Likewise.
22835 * expr.c : Likewise.
22836 * final.c : Likewise.
22837 * fixed-value.c : Likewise.
22838 * fold-const.c : Likewise.
22839 * function.c : Likewise.
22840 * fwprop.c : Likewise.
22841 * gcc-plugin.h : Likewise.
22842 * gcc.c : Likewise.
22843 * gcse-common.c : Likewise.
22844 * gcse.c : Likewise.
22845 * genattrtab.c : Likewise.
22846 * genautomata.c : Likewise.
22847 * genconditions.c : Likewise.
22848 * genemit.c : Likewise.
22849 * generic-match-head.c : Likewise.
22850 * genextract.c : Likewise.
22851 * gengtype-state.c : Likewise.
22852 * gengtype.c : Likewise.
22853 * genhooks.c : Likewise.
22854 * genmatch.c : Likewise.
22855 * genmodes.c : Likewise.
22856 * genrecog.c : Likewise.
22857 * gensupport.c : Likewise.
22858 * ggc-common.c : Likewise.
22859 * ggc-internal.h : Likewise.
22860 * ggc-none.c : Likewise.
22861 * ggc-page.c : Likewise.
22862 * gimple-builder.c : Likewise.
22863 * gimple-expr.c : Likewise.
22864 * gimple-fold.c : Likewise.
22865 * gimple-iterator.c : Likewise.
22866 * gimple-low.c : Likewise.
22867 * gimple-match-head.c : Likewise.
22868 * gimple-pretty-print.c : Likewise.
22869 * gimple-ssa-isolate-paths.c : Likewise.
22870 * gimple-ssa-strength-reduction.c : Likewise.
22871 * gimple-ssa.h : Likewise.
22872 * gimple-streamer-in.c : Likewise.
22873 * gimple-streamer-out.c : Likewise.
22874 * gimple-streamer.h : Likewise.
22875 * gimple-walk.c : Likewise.
22876 * gimple.c : Likewise.
22877 * gimplify-me.c : Likewise.
22878 * gimplify.c : Likewise.
22879 * godump.c : Likewise.
22880 * graph.c : Likewise.
22881 * graphds.c : Likewise.
22882 * graphite-blocking.c : Likewise.
22883 * graphite-dependences.c : Likewise.
22884 * graphite-interchange.c : Likewise.
22885 * graphite-isl-ast-to-gimple.c : Likewise.
22886 * graphite-optimize-isl.c : Likewise.
22887 * graphite-poly.c : Likewise.
22888 * graphite-scop-detection.c : Likewise.
22889 * graphite-sese-to-poly.c : Likewise.
22890 * graphite.c : Likewise.
22891 * haifa-sched.c : Likewise.
22892 * hard-reg-set.h : Likewise.
22893 * hw-doloop.c : Likewise.
22894 * ifcvt.c : Likewise.
22895 * inchash.c : Likewise.
22896 * incpath.c : Likewise.
22897 * init-regs.c : Likewise.
22898 * input.c : Likewise.
22899 * internal-fn.c : Likewise.
22900 * ipa-chkp.c : Likewise.
22901 * ipa-comdats.c : Likewise.
22902 * ipa-cp.c : Likewise.
22903 * ipa-devirt.c : Likewise.
22904 * ipa-icf-gimple.c : Likewise.
22905 * ipa-icf.c : Likewise.
22906 * ipa-inline-analysis.c : Likewise.
22907 * ipa-inline-transform.c : Likewise.
22908 * ipa-inline.c : Likewise.
22909 * ipa-polymorphic-call.c : Likewise.
22910 * ipa-profile.c : Likewise.
22911 * ipa-prop.c : Likewise.
22912 * ipa-pure-const.c : Likewise.
22913 * ipa-ref.c : Likewise.
22914 * ipa-reference.c : Likewise.
22915 * ipa-split.c : Likewise.
22916 * ipa-utils.c : Likewise.
22917 * ipa-visibility.c : Likewise.
22918 * ipa.c : Likewise.
22919 * ira-build.c : Likewise.
22920 * ira-color.c : Likewise.
22921 * ira-conflicts.c : Likewise.
22922 * ira-costs.c : Likewise.
22923 * ira-emit.c : Likewise.
22924 * ira-lives.c : Likewise.
22925 * ira.c : Likewise.
22926 * jump.c : Likewise.
22927 * langhooks.c : Likewise.
22928 * lcm.c : Likewise.
22929 * libfuncs.h : Likewise.
22930 * lists.c : Likewise.
22931 * loop-doloop.c : Likewise.
22932 * loop-init.c : Likewise.
22933 * loop-invariant.c : Likewise.
22934 * loop-iv.c : Likewise.
22935 * loop-unroll.c : Likewise.
22936 * lower-subreg.c : Likewise.
22937 * lra-assigns.c : Likewise.
22938 * lra-coalesce.c : Likewise.
22939 * lra-constraints.c : Likewise.
22940 * lra-eliminations.c : Likewise.
22941 * lra-lives.c : Likewise.
22942 * lra-remat.c : Likewise.
22943 * lra-spills.c : Likewise.
22944 * lra.c : Likewise.
22945 * lto-cgraph.c : Likewise.
22946 * lto-compress.c : Likewise.
22947 * lto-opts.c : Likewise.
22948 * lto-section-in.c : Likewise.
22949 * lto-section-out.c : Likewise.
22950 * lto-streamer-in.c : Likewise.
22951 * lto-streamer-out.c : Likewise.
22952 * lto-streamer.c : Likewise.
22953 * lto-streamer.h : Likewise.
22954 * mcf.c : Likewise.
22955 * mode-switching.c : Likewise.
22956 * modulo-sched.c : Likewise.
22957 * omega.c : Likewise.
22958 * omp-low.c : Likewise.
22959 * optabs.c : Likewise.
22960 * opts-global.c : Likewise.
22961 * opts.h : Likewise.
22962 * passes.c : Likewise.
22963 * plugin.c : Likewise.
22964 * postreload-gcse.c : Likewise.
22965 * postreload.c : Likewise.
22966 * predict.c : Likewise.
22967 * print-rtl.c : Likewise.
22968 * print-tree.c : Likewise.
22969 * profile.c : Likewise.
22970 * read-md.c : Likewise.
22971 * read-md.h : Likewise.
22972 * read-rtl.c : Likewise.
22973 * real.c : Likewise.
22974 * realmpfr.c : Likewise.
22975 * recog.c : Likewise.
22976 * ree.c : Likewise.
22977 * reg-stack.c : Likewise.
22978 * regcprop.c : Likewise.
22979 * reginfo.c : Likewise.
22980 * regrename.c : Likewise.
22981 * regstat.c : Likewise.
22982 * reload.c : Likewise.
22983 * reload1.c : Likewise.
22984 * reorg.c : Likewise.
22985 * resource.c : Likewise.
22986 * rtl-chkp.c : Likewise.
22987 * rtl.c : Likewise.
22988 * rtl.h : Likewise.
22989 * rtlanal.c : Likewise.
22990 * rtlhash.c : Likewise.
22991 * rtlhash.h : Likewise.
22992 * rtlhooks.c : Likewise.
22993 * sanopt.c : Likewise.
22994 * sched-deps.c : Likewise.
22995 * sched-ebb.c : Likewise.
22996 * sched-rgn.c : Likewise.
22997 * sched-vis.c : Likewise.
22998 * sdbout.c : Likewise.
22999 * sel-sched-dump.c : Likewise.
23000 * sel-sched-ir.c : Likewise.
23001 * sel-sched-ir.h : Likewise.
23002 * sel-sched.c : Likewise.
23003 * sese.c : Likewise.
23004 * shrink-wrap.c : Likewise.
23005 * shrink-wrap.h : Likewise.
23006 * simplify-rtx.c : Likewise.
23007 * stack-ptr-mod.c : Likewise.
23008 * statistics.c : Likewise.
23009 * stmt.c : Likewise.
23010 * stor-layout.c : Likewise.
23011 * store-motion.c : Likewise.
23012 * stringpool.c : Likewise.
23013 * symtab.c : Likewise.
23014 * target-globals.c : Likewise.
23015 * targhooks.c : Likewise.
23016 * tlink.c : Likewise.
23017 * toplev.c : Likewise.
23018 * tracer.c : Likewise.
23019 * trans-mem.c : Likewise.
23020 * tree-affine.c : Likewise.
23021 * tree-affine.h : Likewise.
23022 * tree-browser.c : Likewise.
23023 * tree-call-cdce.c : Likewise.
23024 * tree-cfg.c : Likewise.
23025 * tree-cfgcleanup.c : Likewise.
23026 * tree-chkp-opt.c : Likewise.
23027 * tree-chkp.c : Likewise.
23028 * tree-chrec.c : Likewise.
23029 * tree-complex.c : Likewise.
23030 * tree-data-ref.c : Likewise.
23031 * tree-dfa.c : Likewise.
23032 * tree-diagnostic.c : Likewise.
23033 * tree-dump.c : Likewise.
23034 * tree-eh.c : Likewise.
23035 * tree-eh.h : Likewise.
23036 * tree-emutls.c : Likewise.
23037 * tree-hasher.h : Likewise.
23038 * tree-if-conv.c : Likewise.
23039 * tree-inline.c : Likewise.
23040 * tree-inline.h : Likewise.
23041 * tree-into-ssa.c : Likewise.
23042 * tree-iterator.c : Likewise.
23043 * tree-loop-distribution.c : Likewise.
23044 * tree-nested.c : Likewise.
23045 * tree-nrv.c : Likewise.
23046 * tree-object-size.c : Likewise.
23047 * tree-outof-ssa.c : Likewise.
23048 * tree-parloops.c : Likewise.
23049 * tree-phinodes.c : Likewise.
23050 * tree-predcom.c : Likewise.
23051 * tree-pretty-print.c : Likewise.
23052 * tree-profile.c : Likewise.
23053 * tree-scalar-evolution.c : Likewise.
23054 * tree-sra.c : Likewise.
23055 * tree-ssa-address.c : Likewise.
23056 * tree-ssa-alias.c : Likewise.
23057 * tree-ssa-ccp.c : Likewise.
23058 * tree-ssa-coalesce.c : Likewise.
23059 * tree-ssa-copy.c : Likewise.
23060 * tree-ssa-copyrename.c : Likewise.
23061 * tree-ssa-dce.c : Likewise.
23062 * tree-ssa-dom.c : Likewise.
23063 * tree-ssa-dse.c : Likewise.
23064 * tree-ssa-forwprop.c : Likewise.
23065 * tree-ssa-ifcombine.c : Likewise.
23066 * tree-ssa-live.c : Likewise.
23067 * tree-ssa-loop-ch.c : Likewise.
23068 * tree-ssa-loop-im.c : Likewise.
23069 * tree-ssa-loop-ivcanon.c : Likewise.
23070 * tree-ssa-loop-ivopts.c : Likewise.
23071 * tree-ssa-loop-manip.c : Likewise.
23072 * tree-ssa-loop-niter.c : Likewise.
23073 * tree-ssa-loop-prefetch.c : Likewise.
23074 * tree-ssa-loop-unswitch.c : Likewise.
23075 * tree-ssa-loop.c : Likewise.
23076 * tree-ssa-math-opts.c : Likewise.
23077 * tree-ssa-operands.c : Likewise.
23078 * tree-ssa-phiopt.c : Likewise.
23079 * tree-ssa-phiprop.c : Likewise.
23080 * tree-ssa-pre.c : Likewise.
23081 * tree-ssa-propagate.c : Likewise.
23082 * tree-ssa-reassoc.c : Likewise.
23083 * tree-ssa-sccvn.c : Likewise.
23084 * tree-ssa-scopedtables.c : Likewise.
23085 * tree-ssa-sink.c : Likewise.
23086 * tree-ssa-strlen.c : Likewise.
23087 * tree-ssa-structalias.c : Likewise.
23088 * tree-ssa-tail-merge.c : Likewise.
23089 * tree-ssa-ter.c : Likewise.
23090 * tree-ssa-threadedge.c : Likewise.
23091 * tree-ssa-threadupdate.c : Likewise.
23092 * tree-ssa-uncprop.c : Likewise.
23093 * tree-ssa-uninit.c : Likewise.
23094 * tree-ssa.c : Likewise.
23095 * tree-ssanames.c : Likewise.
23096 * tree-stdarg.c : Likewise.
23097 * tree-streamer-in.c : Likewise.
23098 * tree-streamer-out.c : Likewise.
23099 * tree-streamer.c : Likewise.
23100 * tree-streamer.h : Likewise.
23101 * tree-switch-conversion.c : Likewise.
23102 * tree-tailcall.c : Likewise.
23103 * tree-vect-data-refs.c : Likewise.
23104 * tree-vect-generic.c : Likewise.
23105 * tree-vect-loop-manip.c : Likewise.
23106 * tree-vect-loop.c : Likewise.
23107 * tree-vect-patterns.c : Likewise.
23108 * tree-vect-slp.c : Likewise.
23109 * tree-vect-stmts.c : Likewise.
23110 * tree-vectorizer.c : Likewise.
23111 * tree-vectorizer.h : Likewise.
23112 * tree-vrp.c : Likewise.
23113 * tree.c : Likewise.
23114 * tsan.c : Likewise.
23115 * ubsan.c : Likewise.
23116 * valtrack.c : Likewise.
23117 * valtrack.h : Likewise.
23118 * value-prof.c : Likewise.
23119 * var-tracking.c : Likewise.
23120 * varasm.c : Likewise.
23121 * varpool.c : Likewise.
23123 * vmsdbgout.c : Likewise.
23124 * vtable-verify.c : Likewise.
23125 * vtable-verify.h : Likewise.
23126 * web.c : Likewise.
23127 * wide-int.cc : Likewise.
23128 * xcoffout.c : Likewise.
23129 * config/aarch64/aarch64-builtins.c : Likewise.
23130 * config/aarch64/aarch64.c : Likewise.
23131 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
23132 * config/alpha/alpha.c : Likewise.
23133 * config/arc/arc.c : Likewise.
23134 * config/arm/aarch-common.c : Likewise.
23135 * config/arm/arm-builtins.c : Likewise.
23136 * config/arm/arm-c.c : Likewise.
23137 * config/arm/arm.c : Likewise.
23138 * config/avr/avr-c.c : Likewise.
23139 * config/avr/avr-log.c : Likewise.
23140 * config/avr/avr.c : Likewise.
23141 * config/bfin/bfin.c : Likewise.
23142 * config/c6x/c6x.c : Likewise.
23143 * config/cr16/cr16.c : Likewise.
23144 * config/cris/cris.c : Likewise.
23145 * config/darwin-c.c : Likewise.
23146 * config/darwin.c : Likewise.
23147 * config/default-c.c : Likewise.
23148 * config/epiphany/epiphany.c : Likewise.
23149 * config/epiphany/mode-switch-use.c : Likewise.
23150 * config/epiphany/resolve-sw-modes.c : Likewise.
23151 * config/fr30/fr30.c : Likewise.
23152 * config/frv/frv.c : Likewise.
23153 * config/ft32/ft32.c : Likewise.
23154 * config/glibc-c.c : Likewise.
23155 * config/h8300/h8300.c : Likewise.
23156 * config/i386/i386-c.c : Likewise.
23157 * config/i386/i386.c : Likewise.
23158 * config/i386/msformat-c.c : Likewise.
23159 * config/i386/winnt-cxx.c : Likewise.
23160 * config/i386/winnt-stubs.c : Likewise.
23161 * config/i386/winnt.c : Likewise.
23162 * config/ia64/ia64-c.c : Likewise.
23163 * config/ia64/ia64.c : Likewise.
23164 * config/iq2000/iq2000.c : Likewise.
23165 * config/lm32/lm32.c : Likewise.
23166 * config/m32c/m32c-pragma.c : Likewise.
23167 * config/m32c/m32c.c : Likewise.
23168 * config/m32r/m32r.c : Likewise.
23169 * config/m68k/m68k.c : Likewise.
23170 * config/mcore/mcore.c : Likewise.
23171 * config/mep/mep-pragma.c : Likewise.
23172 * config/mep/mep.c : Likewise.
23173 * config/microblaze/microblaze-c.c : Likewise.
23174 * config/microblaze/microblaze.c : Likewise.
23175 * config/mips/mips.c : Likewise.
23176 * config/mmix/mmix.c : Likewise.
23177 * config/mn10300/mn10300.c : Likewise.
23178 * config/moxie/moxie.c : Likewise.
23179 * config/msp430/msp430-c.c : Likewise.
23180 * config/msp430/msp430.c : Likewise.
23181 * config/nds32/nds32-cost.c : Likewise.
23182 * config/nds32/nds32-fp-as-gp.c : Likewise.
23183 * config/nds32/nds32-intrinsic.c : Likewise.
23184 * config/nds32/nds32-isr.c : Likewise.
23185 * config/nds32/nds32-md-auxiliary.c : Likewise.
23186 * config/nds32/nds32-memory-manipulation.c : Likewise.
23187 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
23188 * config/nds32/nds32-predicates.c : Likewise.
23189 * config/nds32/nds32.c : Likewise.
23190 * config/nios2/nios2.c : Likewise.
23191 * config/nvptx/nvptx.c : Likewise.
23192 * config/pa/pa.c : Likewise.
23193 * config/pdp11/pdp11.c : Likewise.
23194 * config/rl78/rl78-c.c : Likewise.
23195 * config/rl78/rl78.c : Likewise.
23196 * config/rs6000/rs6000-c.c : Likewise.
23197 * config/rs6000/rs6000.c : Likewise.
23198 * config/rx/rx.c : Likewise.
23199 * config/s390/s390-c.c : Likewise.
23200 * config/s390/s390.c : Likewise.
23201 * config/sh/sh-c.c : Likewise.
23202 * config/sh/sh-mem.cc : Likewise.
23203 * config/sh/sh.c : Likewise.
23204 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
23205 * config/sh/sh_treg_combine.cc : Likewise.
23206 * config/sol2-c.c : Likewise.
23207 * config/sol2-cxx.c : Likewise.
23208 * config/sol2-stubs.c : Likewise.
23209 * config/sol2.c : Likewise.
23210 * config/sparc/sparc-c.c : Likewise.
23211 * config/sparc/sparc.c : Likewise.
23212 * config/spu/spu-c.c : Likewise.
23213 * config/spu/spu.c : Likewise.
23214 * config/stormy16/stormy16.c : Likewise.
23215 * config/tilegx/mul-tables.c : Likewise.
23216 * config/tilegx/tilegx-c.c : Likewise.
23217 * config/tilegx/tilegx.c : Likewise.
23218 * config/tilepro/mul-tables.c : Likewise.
23219 * config/tilepro/tilepro-c.c : Likewise.
23220 * config/tilepro/tilepro.c : Likewise.
23221 * config/v850/v850-c.c : Likewise.
23222 * config/v850/v850.c : Likewise.
23223 * config/vax/vax.c : Likewise.
23224 * config/visium/visium.c : Likewise.
23225 * config/vms/vms-c.c : Likewise.
23226 * config/vms/vms.c : Likewise.
23227 * config/vxworks.c : Likewise.
23228 * config/winnt-c.c : Likewise.
23229 * config/xtensa/xtensa.c : Likewise.
23231 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
23234 * ipa-utils.h (warn_types_mismatch): Update prototype.
23235 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
23237 (type_mismatch_p): New function.
23238 (warn_types_mismatch): Reorg to work better on non-C++ types.
23239 (odr_types_equivalent_p): Add loc1/loc2 parameters.
23240 (add_type_duplicate): Update.
23242 2015-06-08 Tom de Vries <tom@codesourcery.com>
23244 PR rtl-optimization/66444
23245 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
23248 2015-06-08 Richard Biener <rguenther@suse.de>
23250 PR tree-optimization/66422
23251 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
23252 block after inserted gcc_unreachable.
23254 2015-06-08 Nick Clifton <nickc@redhat.com>
23256 * config/rx/rx.c (rx_function_value): Do not promote vector types.
23257 (rx_promote_function_mode): Likewise.
23258 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
23260 2015-06-08 Jakub Jelinek <jakub@redhat.com>
23262 * genattrtab.c (insn_alternatives): Change type from int *
23264 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
23265 (get_attr_value): Change type of num_alt to uint64_t.
23266 (compute_alternative_mask): Change return type from
23267 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
23268 (make_alternative_compare, mk_attr_alt): Change argument type
23269 from int to uint64_t.
23270 (simplify_test_exp): Change type of i from int to uint64_t.
23271 Shift ((uint64_t) 1) instead of 1 up.
23272 (main): Adjust oballocvec first argument from int to uint64_t.
23273 Shift ((uint64_t) 1) instead of 1 up.
23275 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
23278 * gdbhooks.py: Import sys.
23279 (intptr): New function. Replace int(...) by intptr(...).
23281 2015-06-08 Richard Biener <rguenther@suse.de>
23283 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
23284 adjustment for gaps at the end of a SLP load group properly.
23285 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
23286 all permutations we can generate.
23287 (vect_transform_slp_perm_load): Use the correct group-size.
23289 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
23291 * genmatch.c (expr::gen_transform): For conditions, guess the type
23292 from the second operand.
23294 2015-06-08 Tom de Vries <tom@codesourcery.com>
23296 PR tree-optimization/66442
23297 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
23298 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
23299 if the loop latch is not a singleton. Use
23300 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
23302 2015-06-08 Marek Polacek <polacek@redhat.com>
23305 * toplev.c (check_global_declaration): Don't warn about artificial
23308 2015-06-08 Tom de Vries <tom@codesourcery.com>
23310 PR tree-optimization/66436
23311 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
23313 * gimplify.c: Add tree-dump.h include.
23314 (gimplify_function_tree): Dump function to gimple dump file.
23315 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
23318 2015-06-08 Tom de Vries <tom@codesourcery.com>
23320 PR tree-optimization/66435
23321 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
23324 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
23326 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
23327 of ptr_type_node to not be ptr_to_node.
23328 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
23329 TREE_TYPE of pointers.
23330 * gimple-expr.c (useless_type_conversion): Reorder the check for
23331 function pointers and TYPE_CANONICAL.
23333 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
23336 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
23337 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
23338 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
23340 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
23341 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
23342 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
23343 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
23344 and non iso if unix2003.
23346 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
23348 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
23350 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
23352 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
23353 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
23354 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
23355 except.c, final.c, function.c, gcse-common.c, genemit.c,
23356 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
23357 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
23358 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
23359 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
23362 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
23364 * combine.c (combine_split_insns): Remove cast.
23365 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
23366 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
23367 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
23368 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
23369 * genemit.c (gen_split): Change return type of generated functions to
23371 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
23372 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
23373 gen_peephole2_* functions.
23374 (print_subroutine, main): Likewise.
23375 * recog.c (peephole2_optimize): Remove cast.
23376 (peep2_next_insn): Promote return type to rtx_insn.
23377 * recog.h (peep2_next_insn): Fix prototype.
23378 * rtl.h (try_split, split_insns): Likewise.
23380 2015-06-06 DJ Delorie <dj@redhat.com>
23382 * config/msp430/msp430.c (msp430_asm_integer): Support addition
23383 and subtraction too.
23385 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
23388 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
23389 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
23390 instead of Snd. Disparage Sid/z alternative with '^'.
23392 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
23394 * dwarf2out.c: Remove deferred_locations*.
23395 (dwarf2_debug_hooks): Add early_finish hook.
23396 Remove global_decl hook.
23397 Add early_global_decl and late_global_decl hook.
23398 New global early_dwarf.
23399 New structure set_early_dwarf.
23400 (output_die): Indicate whether a DIE was generated early
23401 when generating assembly with -dA.
23402 (struct limbo_die_struct): Document created_for field.
23403 Remove file_table_last_lookup.
23404 (remove_AT): Return TRUE if successful.
23405 (remove_child_TAG): Clear die_parent.
23406 (reparent_child): New function abstracted from...
23407 (splice_child_die): ...here.
23408 (new_die): ICE if a DIE ends up in limbo too late.
23410 (defer_location): Remove.
23411 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
23412 (fill_variable_array_bounds): New.
23413 (decl_start_label): Call fill_variable_array_bounds.
23414 (gen_formal_parameter_die): Rewrite to reuse previously generated
23416 (gen_subprogram_die): Same.
23417 (gen_variable_die): Same.
23418 (gen_const_die): Same.
23419 (gen_label_die): Same.
23420 (gen_lexical_block_die): Same.
23421 (decl_will_get_specification_p): New.
23422 (local_function_static): New.
23423 (gen_struct_or_union_type_die): Fill in variable-length fields.
23424 (gen_typedef_die): Fill in variable-length typedefs.
23425 (gen_tagged_type_die): Gracefully return on error_mark_node.
23426 Handle re-entrancy.
23427 (gen_type_die_with_usage): Handle variable-length types.
23428 Remove duplicate code for ARRAY_TYPE case.
23429 (process_scope_var): Only process imported modules during early
23431 (dwarf2out_early_global_decl): New.
23432 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
23433 (dwarf2out_type_decl): Set early_dwarf while calling
23435 (dwarf2out_decl): Verify that we did not recreate a previously
23437 Do not return on DECL_EXTERNALs in VAR_DECLs.
23438 Abstract some code to local_function_static.
23439 (lookup_filename): Remove use of file_table_last_lookup.
23440 Gracefully exit on missing file_name.
23441 (dwarf2out_finish): Verify limbo list.
23442 Remove deferred_locations_list use.
23443 Move deferred_asm_name and limbo flushing to...
23444 (dwarf2out_early_finish): ...here. New.
23445 (dwarf2out_c_finalize): Remove set of deferred_location_list,
23446 deferred_asm_name, and file_table_last_lookup.
23447 * cgraph.h (referred_to_p): Add default argument.
23448 * cgraphunit.c (referred_to_p): Add and handle include_self
23450 (analyze_functions): Add first_time argument.
23451 Call check_global_declaration for all symbols.
23452 Call late_global_decl for nodes for moribund nodes.
23453 (finalize_compilation_unit): Add new argument to
23455 Call early_global_decl for functions.
23456 Call early_finish debug hook.
23457 * dbxout.c (dbxout_early_global_decl): New.
23458 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
23459 (dbx_debug_hooks): Add new hooks.
23460 (xcoff_debug_hooks): Same.
23461 * debug.c (do_nothing_debug_hooks): Add early_finish field.
23462 Add early and late debug hooks.
23463 Remove global_decl hook.
23464 * debug.h (struct gcc_debug_hooks): Add early_finish,
23465 early_global_decl, and late_global_decl fields.
23466 Remove global_decl field.
23467 Document gcc_debug_hooks.
23468 * gengtype.c (output_typename): Remove.
23469 * godump.c (go_early_global_decl): New.
23470 (go_late_global_decl): New.
23471 (go_global_decl): Remove.
23472 (dump_go_spec_init): Remove global_decl. Add
23473 {early,late}_global_decl.
23474 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
23475 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
23476 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
23477 (write_global_declarations): Remove.
23478 (global_decl_processing): New.
23479 * langhooks.h (struct lang_hooks_for_decls): Remove
23480 final_write_globals field.
23481 Add post_compilation_parsing_cleanups field.
23482 * passes.c (rest_of_decl_compilation): Call early_global_decl.
23483 * sdbout.c: Add early and late_global_decl hooks. Remove
23484 sdbout_global_decl hook.
23485 Add early_finish field for sdb_debug_hooks.
23486 (sdbout_global_decl): Remove.
23487 (sdbout_early_global_decl): New.
23488 (sdbout_late_global_decl): New.
23489 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
23490 * toplev.c (check_global_declaration): Rename from
23491 check_global_declaration_1.
23492 Adapt to use symtab infrastructure.
23493 (check_global_declarations): Remove.
23494 (emit_debug_global_declarations): Remove.
23495 (compile_file): Remove call to final_write_globals langhook.
23496 Run the actual compilation process.
23497 Perform any post compilation parser cleanups.
23498 Generate late debug info.
23499 * toplev.h (check_global_declaration): New.
23500 (check_global_declaration_1): Remove.
23501 (check_global_declarations): Remove.
23502 (write_global_declarations): Remove.
23503 (emit_debug_global_declarations): Remove.
23504 (global_decl_processing): New.
23505 * tree-core.h (struct tree_block): Add DIE field.
23506 * tree.h (BLOCK_DIE): New.
23507 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
23509 (vmsdbgout_early_global_decl): New.
23510 (vmsdbgout_late_global_decl): New.
23511 Add early_finish debug hook field to vmsdbg_debug_hooks.
23512 Remove vmsdbgout_decl to vmsdbgout_function_decl.
23513 Add early and late_global_decl debug hooks.
23515 2015-06-05 Julian Brown <julian@codesourcery.com>
23516 Sandra Loosemore <sandra@codesourcery.com>
23518 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
23519 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
23520 to print-sysroot-suffix.sh script.
23522 2015-06-05 Tom de Vries <tom@codesourcery.com>
23524 merge from gomp4 branch:
23525 2015-05-28 Tom de Vries <tom@codesourcery.com>
23527 PR tree-optimization/65443
23528 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
23529 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
23530 (try_transform_to_exit_first_loop_alt): New function.
23531 (transform_to_exit_first_loop): Use
23532 try_transform_to_exit_first_loop_alt.
23534 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
23536 * builtins.c (expand_builtin_atomic_compare_exchange): Call
23537 emit_cmp_and_jump_insns with the mode of target.
23539 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23541 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
23543 2015-06-04 DJ Delorie <dj@redhat.com>
23545 * config/msp430/msp430.md (movsi_s): New. Special case for
23546 storing a 20-bit symbol into a 32-bit register.
23547 * config/msp430/msp430.c (msp430_subreg): Add support for it.
23548 * config/msp430/predicates.md (msp430_symbol_operand): New.
23550 2015-06-04 Sriraman Tallam <tmsriram@google.com>
23552 * c-family/c-common.c (noplt): New attribute.
23553 (handle_noplt_attribute): New handler.
23554 * calls.c (prepare_call_address): Check for noplt
23556 * config/i386/i386.c (ix86_expand_call): Check
23557 for noplt attribute.
23558 (ix86_nopic_noplt_attribute_p): New function.
23559 (ix86_output_call_insn): Output indirect call for non-pic
23561 * doc/extend.texi (noplt): Document new attribute.
23562 * doc/invoke.texi: Document new attribute.
23564 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
23566 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
23567 real.h, and fixed-value.h when included in host source files.
23568 * double-int.h: Remove redundant #includes listed above.
23569 * fixed-value.h: Likewise.
23570 * real.h: Likewise.
23571 * wide-int.h: Likewise.
23572 * inchash.h: Likewise.
23573 * rtl.h: Add some include files When included from a generator file.
23574 * target.h: Remove wide-int.h and insn-modes.h from the include list.
23575 * internal-fn.h: Don't include coretypes.h.
23576 * alias.c: Adjust includes for restructured coretypes.h.
23577 * asan.c: Likewise.
23578 * attribs.c: Likewise.
23579 * auto-inc-dec.c: Likewise.
23580 * auto-profile.c: Likewise.
23581 * bb-reorder.c: Likewise.
23582 * bt-load.c: Likewise.
23583 * builtins.c: Likewise.
23584 * caller-save.c: Likewise.
23585 * calls.c: Likewise.
23586 * ccmp.c: Likewise.
23588 * cfganal.c: Likewise.
23589 * cfgbuild.c: Likewise.
23590 * cfgcleanup.c: Likewise.
23591 * cfgexpand.c: Likewise.
23592 * cfghooks.c: Likewise.
23593 * cfgloop.c: Likewise.
23594 * cfgloop.h: Likewise.
23595 * cfgloopanal.c: Likewise.
23596 * cfgloopmanip.c: Likewise.
23597 * cfgrtl.c: Likewise.
23598 * cgraph.c: Likewise.
23599 * cgraphbuild.c: Likewise.
23600 * cgraphclones.c: Likewise.
23601 * cgraphunit.c: Likewise.
23602 * cilk-common.c: Likewise.
23603 * combine-stack-adj.c: Likewise.
23604 * combine.c: Likewise.
23605 * compare-elim.c: Likewise.
23606 * convert.c: Likewise.
23607 * coverage.c: Likewise.
23608 * cppbuiltin.c: Likewise.
23609 * cprop.c: Likewise.
23611 * cselib.c: Likewise.
23612 * data-streamer-in.c: Likewise.
23613 * data-streamer-out.c: Likewise.
23614 * data-streamer.c: Likewise.
23615 * dbxout.c: Likewise.
23618 * debug.c: Likewise.
23619 * df-core.c: Likewise.
23620 * df-problems.c: Likewise.
23621 * df-scan.c: Likewise.
23624 * dojump.c: Likewise.
23625 * dominance.c: Likewise.
23626 * domwalk.c: Likewise.
23627 * double-int.c: Likewise.
23629 * dumpfile.c: Likewise.
23630 * dwarf2asm.c: Likewise.
23631 * dwarf2cfi.c: Likewise.
23632 * dwarf2out.c: Likewise.
23633 * dwarf2out.h: Likewise.
23634 * emit-rtl.c: Likewise.
23635 * et-forest.c: Likewise.
23636 * except.c: Likewise.
23637 * explow.c: Likewise.
23638 * expmed.c: Likewise.
23639 * expr.c: Likewise.
23640 * final.c: Likewise.
23641 * fixed-value.c: Likewise.
23642 * fold-const.c: Likewise.
23643 * function.c: Likewise.
23644 * fwprop.c: Likewise.
23645 * gcc-plugin.h: Likewise.
23646 * gcse.c: Likewise.
23647 * generic-match-head.c: Likewise.
23648 * ggc-page.c: Likewise.
23649 * gimple-builder.c: Likewise.
23650 * gimple-expr.c: Likewise.
23651 * gimple-fold.c: Likewise.
23652 * gimple-iterator.c: Likewise.
23653 * gimple-low.c: Likewise.
23654 * gimple-match-head.c: Likewise.
23655 * gimple-pretty-print.c: Likewise.
23656 * gimple-ssa-isolate-paths.c: Likewise.
23657 * gimple-ssa-strength-reduction.c: Likewise.
23658 * gimple-streamer-in.c: Likewise.
23659 * gimple-streamer-out.c: Likewise.
23660 * gimple-streamer.h: Likewise.
23661 * gimple-walk.c: Likewise.
23662 * gimple.c: Likewise.
23663 * gimplify-me.c: Likewise.
23664 * gimplify.c: Likewise.
23665 * godump.c: Likewise.
23666 * graph.c: Likewise.
23667 * graphite-blocking.c: Likewise.
23668 * graphite-dependences.c: Likewise.
23669 * graphite-interchange.c: Likewise.
23670 * graphite-isl-ast-to-gimple.c: Likewise.
23671 * graphite-optimize-isl.c: Likewise.
23672 * graphite-poly.c: Likewise.
23673 * graphite-scop-detection.c: Likewise.
23674 * graphite-sese-to-poly.c: Likewise.
23675 * graphite.c: Likewise.
23676 * haifa-sched.c: Likewise.
23677 * hooks.h: Likewise.
23678 * hw-doloop.c: Likewise.
23679 * ifcvt.c: Likewise.
23680 * incpath.c: Likewise.
23681 * init-regs.c: Likewise.
23682 * internal-fn.c: Likewise.
23683 * ipa-chkp.c: Likewise.
23684 * ipa-comdats.c: Likewise.
23685 * ipa-cp.c: Likewise.
23686 * ipa-devirt.c: Likewise.
23687 * ipa-icf-gimple.c: Likewise.
23688 * ipa-icf.c: Likewise.
23689 * ipa-inline-analysis.c: Likewise.
23690 * ipa-inline-transform.c: Likewise.
23691 * ipa-inline.c: Likewise.
23692 * ipa-polymorphic-call.c: Likewise.
23693 * ipa-profile.c: Likewise.
23694 * ipa-prop.c: Likewise.
23695 * ipa-pure-const.c: Likewise.
23696 * ipa-ref.c: Likewise.
23697 * ipa-reference.c: Likewise.
23698 * ipa-split.c: Likewise.
23699 * ipa-utils.c: Likewise.
23700 * ipa-visibility.c: Likewise.
23702 * ira-build.c: Likewise.
23703 * ira-color.c: Likewise.
23704 * ira-conflicts.c: Likewise.
23705 * ira-costs.c: Likewise.
23706 * ira-emit.c: Likewise.
23707 * ira-lives.c: Likewise.
23709 * jump.c: Likewise.
23710 * langhooks.c: Likewise.
23712 * loop-doloop.c: Likewise.
23713 * loop-init.c: Likewise.
23714 * loop-invariant.c: Likewise.
23715 * loop-iv.c: Likewise.
23716 * loop-unroll.c: Likewise.
23717 * lower-subreg.c: Likewise.
23718 * lra-assigns.c: Likewise.
23719 * lra-coalesce.c: Likewise.
23720 * lra-constraints.c: Likewise.
23721 * lra-eliminations.c: Likewise.
23722 * lra-lives.c: Likewise.
23723 * lra-remat.c: Likewise.
23724 * lra-spills.c: Likewise.
23726 * lto-cgraph.c: Likewise.
23727 * lto-compress.c: Likewise.
23728 * lto-opts.c: Likewise.
23729 * lto-section-in.c: Likewise.
23730 * lto-section-out.c: Likewise.
23731 * lto-streamer-in.c: Likewise.
23732 * lto-streamer-out.c: Likewise.
23733 * lto-streamer.c: Likewise.
23735 * mode-switching.c: Likewise.
23736 * modulo-sched.c: Likewise.
23737 * omega.c: Likewise.
23738 * omp-low.c: Likewise.
23739 * optabs.c: Likewise.
23740 * opts-global.c: Likewise.
23741 * passes.c: Likewise.
23742 * plugin.c: Likewise.
23743 * postreload-gcse.c: Likewise.
23744 * postreload.c: Likewise.
23745 * predict.c: Likewise.
23746 * print-rtl.c: Likewise.
23747 * print-tree.c: Likewise.
23748 * profile.c: Likewise.
23749 * real.c: Likewise.
23750 * realmpfr.c: Likewise.
23751 * realmpfr.h: Likewise.
23752 * recog.c: Likewise.
23754 * reg-stack.c: Likewise.
23755 * regcprop.c: Likewise.
23756 * reginfo.c: Likewise.
23757 * regrename.c: Likewise.
23758 * regs.h: Likewise.
23759 * regstat.c: Likewise.
23760 * reload.c: Likewise.
23761 * reload1.c: Likewise.
23762 * reorg.c: Likewise.
23763 * resource.c: Likewise.
23764 * rtl-chkp.c: Likewise.
23765 * rtlanal.c: Likewise.
23766 * rtlhooks.c: Likewise.
23767 * sanopt.c: Likewise.
23768 * sched-deps.c: Likewise.
23769 * sched-ebb.c: Likewise.
23770 * sched-rgn.c: Likewise.
23771 * sched-vis.c: Likewise.
23772 * sdbout.c: Likewise.
23773 * sel-sched-dump.c: Likewise.
23774 * sel-sched-ir.c: Likewise.
23775 * sel-sched.c: Likewise.
23776 * sese.c: Likewise.
23777 * shrink-wrap.c: Likewise.
23778 * shrink-wrap.h: Likewise.
23779 * simplify-rtx.c: Likewise.
23780 * stack-ptr-mod.c: Likewise.
23781 * statistics.c: Likewise.
23782 * stmt.c: Likewise.
23783 * stor-layout.c: Likewise.
23784 * store-motion.c: Likewise.
23785 * stringpool.c: Likewise.
23786 * symtab.c: Likewise.
23787 * target-globals.c: Likewise.
23788 * targhooks.c: Likewise.
23789 * toplev.c: Likewise.
23790 * tracer.c: Likewise.
23791 * trans-mem.c: Likewise.
23792 * tree-affine.c: Likewise.
23793 * tree-affine.h: Likewise.
23794 * tree-browser.c: Likewise.
23795 * tree-call-cdce.c: Likewise.
23796 * tree-cfg.c: Likewise.
23797 * tree-cfgcleanup.c: Likewise.
23798 * tree-chkp-opt.c: Likewise.
23799 * tree-chkp.c: Likewise.
23800 * tree-chrec.c: Likewise.
23801 * tree-complex.c: Likewise.
23802 * tree-data-ref.c: Likewise.
23803 * tree-dfa.c: Likewise.
23804 * tree-diagnostic.c: Likewise.
23805 * tree-dump.c: Likewise.
23806 * tree-eh.c: Likewise.
23807 * tree-emutls.c: Likewise.
23808 * tree-if-conv.c: Likewise.
23809 * tree-inline.c: Likewise.
23810 * tree-into-ssa.c: Likewise.
23811 * tree-iterator.c: Likewise.
23812 * tree-loop-distribution.c: Likewise.
23813 * tree-nested.c: Likewise.
23814 * tree-nrv.c: Likewise.
23815 * tree-object-size.c: Likewise.
23816 * tree-outof-ssa.c: Likewise.
23817 * tree-parloops.c: Likewise.
23818 * tree-phinodes.c: Likewise.
23819 * tree-predcom.c: Likewise.
23820 * tree-pretty-print.c: Likewise.
23821 * tree-pretty-print.h: Likewise.
23822 * tree-profile.c: Likewise.
23823 * tree-scalar-evolution.c: Likewise.
23824 * tree-sra.c: Likewise.
23825 * tree-ssa-address.c: Likewise.
23826 * tree-ssa-alias.c: Likewise.
23827 * tree-ssa-ccp.c: Likewise.
23828 * tree-ssa-coalesce.c: Likewise.
23829 * tree-ssa-copy.c: Likewise.
23830 * tree-ssa-copyrename.c: Likewise.
23831 * tree-ssa-dce.c: Likewise.
23832 * tree-ssa-dom.c: Likewise.
23833 * tree-ssa-dse.c: Likewise.
23834 * tree-ssa-forwprop.c: Likewise.
23835 * tree-ssa-ifcombine.c: Likewise.
23836 * tree-ssa-live.c: Likewise.
23837 * tree-ssa-loop-ch.c: Likewise.
23838 * tree-ssa-loop-im.c: Likewise.
23839 * tree-ssa-loop-ivcanon.c: Likewise.
23840 * tree-ssa-loop-ivopts.c: Likewise.
23841 * tree-ssa-loop-manip.c: Likewise.
23842 * tree-ssa-loop-niter.c: Likewise.
23843 * tree-ssa-loop-prefetch.c: Likewise.
23844 * tree-ssa-loop-unswitch.c: Likewise.
23845 * tree-ssa-loop.c: Likewise.
23846 * tree-ssa-loop.h: Likewise.
23847 * tree-ssa-math-opts.c: Likewise.
23848 * tree-ssa-operands.c: Likewise.
23849 * tree-ssa-phiopt.c: Likewise.
23850 * tree-ssa-phiprop.c: Likewise.
23851 * tree-ssa-pre.c: Likewise.
23852 * tree-ssa-propagate.c: Likewise.
23853 * tree-ssa-reassoc.c: Likewise.
23854 * tree-ssa-sccvn.c: Likewise.
23855 * tree-ssa-scopedtables.c: Likewise.
23856 * tree-ssa-sink.c: Likewise.
23857 * tree-ssa-strlen.c: Likewise.
23858 * tree-ssa-structalias.c: Likewise.
23859 * tree-ssa-tail-merge.c: Likewise.
23860 * tree-ssa-ter.c: Likewise.
23861 * tree-ssa-threadedge.c: Likewise.
23862 * tree-ssa-threadupdate.c: Likewise.
23863 * tree-ssa-uncprop.c: Likewise.
23864 * tree-ssa-uninit.c: Likewise.
23865 * tree-ssa.c: Likewise.
23866 * tree-ssanames.c: Likewise.
23867 * tree-stdarg.c: Likewise.
23868 * tree-streamer-in.c: Likewise.
23869 * tree-streamer-out.c: Likewise.
23870 * tree-streamer.c: Likewise.
23871 * tree-switch-conversion.c: Likewise.
23872 * tree-tailcall.c: Likewise.
23873 * tree-vect-data-refs.c: Likewise.
23874 * tree-vect-generic.c: Likewise.
23875 * tree-vect-loop-manip.c: Likewise.
23876 * tree-vect-loop.c: Likewise.
23877 * tree-vect-patterns.c: Likewise.
23878 * tree-vect-slp.c: Likewise.
23879 * tree-vect-stmts.c: Likewise.
23880 * tree-vectorizer.c: Likewise.
23881 * tree-vrp.c: Likewise.
23882 * tree.c: Likewise.
23883 * tsan.c: Likewise.
23884 * ubsan.c: Likewise.
23885 * valtrack.c: Likewise.
23886 * value-prof.c: Likewise.
23887 * var-tracking.c: Likewise.
23888 * varasm.c: Likewise.
23889 * varpool.c: Likewise.
23890 * vmsdbgout.c: Likewise.
23891 * vtable-verify.c: Likewise.
23893 * wide-int-print.cc: Likewise.
23894 * wide-int-print.h: Likewise.
23895 * wide-int.cc: Likewise.
23896 * xcoffout.c: Likewise.
23897 * config/aarch64/aarch64-builtins.c: Likewise.
23898 * config/aarch64/aarch64.c: Likewise.
23899 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23900 * config/alpha/alpha.c: Likewise.
23901 * config/arc/arc.c: Likewise.
23902 * config/arm/aarch-common.c: Likewise.
23903 * config/arm/arm-builtins.c: Likewise.
23904 * config/arm/arm-c.c: Likewise.
23905 * config/arm/arm.c: Likewise.
23906 * config/avr/avr-c.c: Likewise.
23907 * config/avr/avr-log.c: Likewise.
23908 * config/avr/avr.c: Likewise.
23909 * config/bfin/bfin.c: Likewise.
23910 * config/c6x/c6x.c: Likewise.
23911 * config/cr16/cr16.c: Likewise.
23912 * config/cris/cris.c: Likewise.
23913 * config/darwin-c.c: Likewise.
23914 * config/darwin.c: Likewise.
23915 * config/default-c.c: Likewise.
23916 * config/epiphany/epiphany.c: Likewise.
23917 * config/epiphany/mode-switch-use.c: Likewise.
23918 * config/epiphany/resolve-sw-modes.c: Likewise.
23919 * config/fr30/fr30.c: Likewise.
23920 * config/frv/frv.c: Likewise.
23921 * config/ft32/ft32.c: Likewise.
23922 * config/glibc-c.c: Likewise.
23923 * config/h8300/h8300.c: Likewise.
23924 * config/i386/i386-c.c: Likewise.
23925 * config/i386/i386.c: Likewise.
23926 * config/i386/msformat-c.c: Likewise.
23927 * config/i386/winnt-cxx.c: Likewise.
23928 * config/i386/winnt-stubs.c: Likewise.
23929 * config/i386/winnt.c: Likewise.
23930 * config/ia64/ia64-c.c: Likewise.
23931 * config/ia64/ia64.c: Likewise.
23932 * config/iq2000/iq2000.c: Likewise.
23933 * config/lm32/lm32.c: Likewise.
23934 * config/m32c/m32c-pragma.c: Likewise.
23935 * config/m32c/m32c.c: Likewise.
23936 * config/m32r/m32r.c: Likewise.
23937 * config/m68k/m68k.c: Likewise.
23938 * config/mcore/mcore.c: Likewise.
23939 * config/mep/mep-pragma.c: Likewise.
23940 * config/mep/mep.c: Likewise.
23941 * config/microblaze/microblaze-c.c: Likewise.
23942 * config/microblaze/microblaze.c: Likewise.
23943 * config/mips/mips.c: Likewise.
23944 * config/mmix/mmix.c: Likewise.
23945 * config/mn10300/mn10300.c: Likewise.
23946 * config/moxie/moxie.c: Likewise.
23947 * config/msp430/msp430-c.c: Likewise.
23948 * config/msp430/msp430.c: Likewise.
23949 * config/nds32/nds32-cost.c: Likewise.
23950 * config/nds32/nds32-fp-as-gp.c: Likewise.
23951 * config/nds32/nds32-intrinsic.c: Likewise.
23952 * config/nds32/nds32-isr.c: Likewise.
23953 * config/nds32/nds32-md-auxiliary.c: Likewise.
23954 * config/nds32/nds32-memory-manipulation.c: Likewise.
23955 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23956 * config/nds32/nds32-predicates.c: Likewise.
23957 * config/nds32/nds32.c: Likewise.
23958 * config/nios2/nios2.c: Likewise.
23959 * config/nvptx/nvptx.c: Likewise.
23960 * config/pa/pa.c: Likewise.
23961 * config/pdp11/pdp11.c: Likewise.
23962 * config/rl78/rl78-c.c: Likewise.
23963 * config/rl78/rl78.c: Likewise.
23964 * config/rs6000/rs6000-c.c: Likewise.
23965 * config/rs6000/rs6000.c: Likewise.
23966 * config/rx/rx.c: Likewise.
23967 * config/s390/s390-c.c: Likewise.
23968 * config/s390/s390.c: Likewise.
23969 * config/sh/sh-c.c: Likewise.
23970 * config/sh/sh-mem.cc: Likewise.
23971 * config/sh/sh.c: Likewise.
23972 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23973 * config/sh/sh_treg_combine.cc: Likewise.
23974 * config/sol2-c.c: Likewise.
23975 * config/sol2-cxx.c: Likewise.
23976 * config/sol2-stubs.c: Likewise.
23977 * config/sol2.c: Likewise.
23978 * config/sparc/sparc-c.c: Likewise.
23979 * config/sparc/sparc.c: Likewise.
23980 * config/spu/spu-c.c: Likewise.
23981 * config/spu/spu.c: Likewise.
23982 * config/stormy16/stormy16.c: Likewise.
23983 * config/tilegx/mul-tables.c: Likewise.
23984 * config/tilegx/tilegx-c.c: Likewise.
23985 * config/tilegx/tilegx.c: Likewise.
23986 * config/tilepro/mul-tables.c: Likewise.
23987 * config/tilepro/tilepro-c.c: Likewise.
23988 * config/tilepro/tilepro.c: Likewise.
23989 * config/v850/v850-c.c: Likewise.
23990 * config/v850/v850.c: Likewise.
23991 * config/vax/vax.c: Likewise.
23992 * config/visium/visium.c: Likewise.
23993 * config/vms/vms-c.c: Likewise.
23994 * config/vms/vms.c: Likewise.
23995 * config/vxworks.c: Likewise.
23996 * config/winnt-c.c: Likewise.
23997 * config/xtensa/xtensa.c: Likewise.
23998 * common/config/bfin/bfin-common.c: Likewise.
24000 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
24002 * tree.h (tree_code_for_canonical_type_merging): New function.
24003 * tree.c (gimple_canonical_types_compatible_p): Use
24004 tree_code_for_canonical_type_merging..
24006 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24010 * doc/tm.texi: Regenerate.
24011 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
24012 * target.def (TARGET_RELAXED_ORDERING): Likewise.
24013 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
24014 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
24015 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
24016 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
24017 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
24018 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
24019 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
24021 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24023 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
24024 register fma steering pass.
24025 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
24026 AARCH64_TUNE_FMA_STEERING.
24028 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
24030 * tree.c (verify_type_variant): Verify that type and variant is
24032 (gimple_canonical_types_compatible_p): Look for main variants.
24034 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
24036 * config.gcc (powerpc*-*-*): Add support for a new configure
24037 option --with-advance-toolchain=<xxx> which overrides using the
24038 default header files, libraries and dynamic linker.
24040 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
24041 specs to support the configure --with-advance-toolchain=<xxx>
24043 (INCLUDE_EXTRA_SPEC): Likewise.
24044 (LINK_OS_EXTRA_SPEC32): Likewise.
24045 (LINK_OK_EXTRA_SPEC64): Likewise.
24046 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
24047 (DYNAMIC_LINKER_PREFIX): Likewise.
24048 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
24050 (GLIBC_DYNAMIC_LINKER32): Likewise.
24051 (GLIBC_DYNAMIC_LINKER64): Likewise.
24052 (LINK_OS_LINUX_SPEC32): Likewise.
24053 (LINK_OS_LINUX_SPEC64): Likewise.
24055 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
24056 configuration option.
24058 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
24061 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
24062 to determine current function ABI.
24063 (ix86_function_value_regno_p): Ditto.
24065 2015-06-03 Martin Liska <mliska@suse.cz>
24067 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
24068 * bitmap.h (struct bitmap_usage): Likewise.
24069 * ggc-common.c (struct ggc_usage): Likewise.
24070 * mem-stats.h (struct mem_location): Likewise.
24071 (struct mem_usage): Likewise.
24072 * vec.c (struct vec_usage): Likewise.
24074 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
24076 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
24079 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
24081 * doc/plugins.texi (enum plugin_event): New event.
24082 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
24083 and PLUGIN_FINISH_FUNCTION.
24084 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
24085 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
24087 2015-06-03 Richard Biener <rguenther@suse.de>
24089 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
24090 compute GROUP_GAP for the first element.
24091 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
24094 2015-06-03 Nick Clifton <nickc@redhat.com>
24096 * config/rl78/rl78-real.md: Add peepholes to avoid a register
24097 copy when calling a function.
24098 * config/rl78/rl78.c (need_to_save): Do not push the frame
24099 pointer in an interrupt handler prologue if it is never used.
24101 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24103 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
24105 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
24107 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
24108 reference when cloning alias node.
24110 2015-06-03 Martin Liska <mliska@suse.cz>
24112 * alloc-pool.h (struct pool_usage): Correct space padding.
24113 * ggc-page.c (ggc_print_statistics): Align columns in a report.
24114 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
24115 * tree.c (dump_tree_statistics): Align columns in a report.
24117 2015-06-03 Martin Liska <mliska@suse.cz>
24119 * alloc-pool.c (allocate_pool_descriptor): Remove.
24120 (struct pool_output_info): Likewise.
24121 (print_alloc_pool_statistics): Likewise.
24122 (dump_alloc_pool_statistics): Likewise.
24123 * alloc-pool.h (struct pool_usage): New struct.
24124 (pool_allocator::initialize): Change usage of memory statistics
24125 to a new interface.
24126 (pool_allocator::release): Likewise.
24127 (pool_allocator::allocate): Likewise.
24128 (pool_allocator::remove): Likewise.
24129 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
24130 for a pool allocator.
24131 * mem-stats.h (struct mem_location): Add new ctor.
24132 (struct mem_usage): Add counter for number of
24134 (mem_alloc_description::register_descriptor): New overload of
24135 * mem-stats.h (mem_location::to_string): New function.
24136 * bitmap.h (struct bitmap_usage): Use this new function.
24137 * ggc-common.c (struct ggc_usage): Likewise.
24140 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
24142 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
24143 of GCC_INSN_FLAGS_H block.
24145 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
24147 * explow.c (plus_constant): Update check after force_const_mem call
24148 to see if the value returned is not a NULL_RTX.
24150 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
24152 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
24153 remove instumentation thunks calling reachable functions.
24154 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
24155 * lto/lto-partition.c (privatize_symbol_name_1): New.
24156 (privatize_symbol_name): Privatize both decl and orig_decl
24157 names for instrumented functions.
24158 * cgraph.c (cgraph_node::verify_node): Add transparent
24159 alias chain check for instrumented node.
24161 2015-06-03 Marek Polacek <polacek@redhat.com>
24165 * tree.c (attribute_value_equal): Handle attribute format.
24166 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
24168 2015-06-03 Richard Biener <rguenther@suse.de>
24170 PR tree-optimization/63916
24171 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
24172 Forward-propagate non-invariant addresses by splicing their
24173 reference ops if the result isn't going to be used by PRE.
24174 (vn_reference_lookup_3): Remove pointless assert.
24176 2015-06-03 Richard Biener <rguenther@suse.de>
24178 PR tree-optimization/66375
24179 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
24180 add to the evolution before following SSA edges.
24182 2015-06-03 Bin Cheng <bin.cheng@arm.com>
24184 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
24185 (dump_use, dump_cand, find_induction_variables): Pass new argument
24187 (record_use): Preserve the ssa name information in IV.
24189 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
24191 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
24193 (add_mode_tests): Don't add mode tests if the predicate only
24194 accepts scalar constant integers. Otherwise, allow the mode
24195 of "op" to be VOIDmode if the predicate does accept such integers.
24197 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
24200 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
24201 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
24202 (aarch64_secondary_reload): Likewise
24203 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
24205 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
24208 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
24209 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24212 * cprop.c (try_replace_reg): Check cost of constants before propagating.
24214 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24216 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
24217 provide access to the IBM extended double floating point mode if
24218 long double is IEEE 128-bit floating point.
24219 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
24220 point if long double is the IBM extended double type.
24222 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
24223 enable adding IEEE 128-bit floating point support.
24224 (-mfloat128-software): Likewise.
24225 (-mfloat128-sw): Likewise.
24227 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
24228 128-bit floating point types to occupy any register if
24229 -mlong-double-64. Do not allow use of IFmode/KFmode unless
24230 -mfloat128-software is enabled.
24231 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
24233 (rs6000_option_override_internal): Add -mfloat128-* support.
24234 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
24236 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
24237 and float128 type nodes.
24238 (ieee128_float_type_node): Likewise.
24239 (ibm128_float_type_node): Likewise.
24241 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
24244 * config/aarch64/geniterators.sh: Rewrite in awk.
24246 2015-06-02 Martin Liska <mliska@suse.cz>
24248 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
24249 values to avoid -Wmaybe-uninitialized errors.
24251 2015-06-02 Richard Biener <rguenther@suse.de>
24254 * dwarf2out.c (lookup_context_die): New function.
24255 (resolve_addr): Avoid forcing a full DIE for the
24256 target of a DW_TAG_GNU_call_site during late compilation.
24257 Instead create a stub DIE without a type if we have a
24258 context DIE present.
24260 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
24262 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
24264 2015-06-02 Bin Cheng <bin.cheng@arm.com>
24266 PR tree-optimization/48052
24267 * cfgloop.h (struct control_iv): New.
24268 (struct loop): New field control_ivs.
24269 * tree-ssa-loop-niter.c : Include "stor-layout.h".
24270 (number_of_iterations_lt): Set no_overflow information.
24271 (number_of_iterations_exit): Init control iv in niter struct.
24272 (record_control_iv): New.
24273 (estimate_numbers_of_iterations_loop): Call record_control_iv.
24274 (loop_exits_before_overflow): New. Interface factored out of
24275 scev_probably_wraps_p.
24276 (scev_probably_wraps_p): Factor loop niter related code into
24277 loop_exits_before_overflow.
24278 (free_numbers_of_iterations_estimates_loop): Free control ivs.
24279 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
24281 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
24283 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
24284 the target doesn't belong to the current function.
24286 2015-06-02 Marek Polacek <polacek@redhat.com>
24288 PR middle-end/66345
24289 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
24290 get_maxval_strlen does not produce an INTEGER_CST.
24292 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
24294 * config/arc/constraints.md: Use lower-case names in match_code.
24295 * config/mmix/constraints.md: Likewise.
24297 2015-06-02 Richard Biener <rguenther@suse.de>
24299 PR tree-optimization/65961
24300 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
24301 check and clarify dump message.
24302 (vect_build_slp_tree): If all children are built up from scalars
24303 build up the parent from scalars instead.
24304 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
24306 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
24309 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
24310 instead of print ... .
24312 2015-06-02 Alan Modra <amodra@gmail.com>
24314 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
24317 2015-06-02 Bin Cheng <bin.cheng@arm.com>
24319 PR tree-optimization/52563
24320 PR tree-optimization/62173
24321 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
24322 (alloc_iv, set_iv): New parameter.
24323 (determine_biv_step): Delete.
24324 (find_bivs): Inline original determine_biv_step. Pass new
24325 argument to set_iv.
24326 (idx_find_step): Use no_overflow information for conversion.
24327 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
24328 resolve_mixers handle folded_casts.
24329 (instantiate_scev_name): Change bool parameter to bool pointer.
24330 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
24331 (instantiate_array_ref, instantiate_scev_not): Ditto.
24332 (instantiate_scev_3, instantiate_scev_2): Ditto.
24333 (instantiate_scev_1, instantiate_scev_r): Ditto.
24334 (instantiate_scev_convert, ): Change parameter. Pass argument
24335 to chrec_convert_aggressive.
24336 (instantiate_scev): Change argument.
24337 (resolve_mixers): New parameter and set it.
24338 (scev_const_prop): New argument.
24339 * tree-scalar-evolution.h (resolve_mixers): New parameter.
24340 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
24342 (chrec_convert): New parameter. Move definition below.
24343 (chrec_convert_aggressive): New parameter and set it. Call
24344 convert_affine_scev.
24345 * tree-chrec.h (chrec_convert): New parameter.
24346 (chrec_convert_aggressive): Ditto.
24348 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
24350 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
24351 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
24352 the LHS of a no-return call if its type has variable size.
24353 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
24354 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
24356 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
24358 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
24359 * config.in: Regenerate.
24361 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
24363 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
24364 consecutive accesses within outer-loop with force_vectorize
24365 for references with zero step in inner-loop.
24367 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
24369 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
24370 rather than from gcc/build directory.
24372 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
24375 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
24376 for __sync memory models, emit initial loads and final barriers as
24379 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
24382 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
24383 (aarch64_split_atomic_op): Check for __sync memory models, emit
24384 appropriate initial loads and final barriers.
24386 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
24388 * Makefile.in: Fix gcov dependencies that should
24389 not point to a build folder.
24391 2015-06-01 Richard Biener <rguenther@suse.de>
24394 2015-05-29 Richard Biener <rguenther@suse.de>
24396 PR tree-optimization/66314
24397 * tree-ssa-threadupdate.c (create_block_for_threading): Add
24398 parameter that says which loop the new block belongs to.
24399 (ssa_create_duplicates): Blocks duplicated for the threaded
24400 path belong to the loop of the thread destination.
24402 2015-06-01 Martin Liska <mliska@suse.cz>
24404 * sched-deps.c: Include pool-alloc.h before
24405 cselib.h header file is included.
24407 2015-06-01 Richard Biener <rguenther@suse.de>
24409 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
24412 2015-06-01 Martin Liska <mliska@suse.cz>
24414 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
24415 a function local variable.
24417 2015-06-01 Martin Liska <mliska@suse.cz>
24419 * alloc-pool.c (create_alloc_pool): Remove.
24420 (empty_alloc_pool): Likewise.
24421 (free_alloc_pool): Likewise.
24422 (free_alloc_pool_if_empty): Likewise.
24423 (pool_alloc): Likewise.
24424 (pool_free): Likewise.
24425 * alloc-pool.h: Remove old declarations.
24427 2015-06-01 Martin Liska <mliska@suse.cz>
24429 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
24430 (ira_create_object): Likewise.
24431 (ira_create_allocno): Likewise.
24432 (ira_create_live_range): Likewise.
24433 (copy_live_range): Likewise.
24434 (ira_finish_live_range): Likewise.
24435 (ira_free_allocno_costs): Likewise.
24436 (finish_allocno): Likewise.
24437 (finish_allocnos): Likewise.
24438 (initiate_prefs): Likewise.
24439 (ira_create_pref): Likewise.
24440 (finish_pref): Likewise.
24441 (finish_prefs): Likewise.
24442 (initiate_copies): Likewise.
24443 (ira_create_copy): Likewise.
24444 (finish_copy): Likewise.
24445 (finish_copies): Likewise.
24446 (finish_prefs): Likewise.
24448 2015-06-01 Martin Liska <mliska@suse.cz>
24450 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
24451 (allocate_and_init_ipcp_value): Likewise.
24452 (ipcp_lattice::add_value): Likewise.
24453 (merge_agg_lats_step): Likewise.
24454 (ipcp_driver): Likewise.
24455 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
24456 (ipa_free_all_structures_after_iinln): Likewise.
24457 * ipa-prop.h: Likewise.
24459 2015-06-01 Martin Liska <mliska@suse.cz>
24461 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
24463 (set_hint_predicate): Likewise.
24464 (inline_summary_alloc): Likewise.
24465 (reset_inline_edge_summary): Likewise.
24466 (reset_inline_summary): Likewise.
24467 (set_cond_stmt_execution_predicate): Likewise.
24468 (set_switch_stmt_execution_predicate): Likewise.
24469 (compute_bb_predicates): Likewise.
24470 (estimate_function_body_sizes): Likewise.
24471 (inline_free_summary): Likewise.
24473 2015-06-01 Martin Liska <mliska@suse.cz>
24475 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
24476 (ipa_edge_duplication_hook): Likewise.
24477 (ipa_free_all_structures_after_ipa_cp): Likewise.
24478 (ipa_free_all_structures_after_iinln): Likewise.
24480 2015-06-01 Martin Liska <mliska@suse.cz>
24482 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
24483 (ipa_profile_generate_summary): Likewise.
24484 (ipa_profile_read_summary): Likewise.
24485 (ipa_profile): Likewise.
24487 2015-06-01 Martin Liska <mliska@suse.cz>
24489 * tree-ssa-structalias.c (new_var_info): Use new type-based
24491 (new_constraint): Likewise.
24492 (init_alias_vars): Likewise.
24493 (delete_points_to_sets): Likewise.
24495 2015-06-01 Martin Liska <mliska@suse.cz>
24497 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
24498 (free_strinfo): Likewise.
24499 (pass_strlen::execute): Likewise.
24501 2015-06-01 Martin Liska <mliska@suse.cz>
24503 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
24505 (vn_reference_insert_pieces): Likewise.
24506 (vn_phi_insert): Likewise.
24507 (visit_reference_op_call): Likewise.
24508 (copy_phi): Likewise.
24509 (copy_reference): Likewise.
24510 (process_scc): Likewise.
24511 (allocate_vn_table): Likewise.
24512 (free_vn_table): Likewise.
24514 2015-06-01 Martin Liska <mliska@suse.cz>
24516 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
24518 (add_repeat_to_ops_vec): Likewise.
24519 (get_ops): Likewise.
24520 (maybe_optimize_range_tests): Likewise.
24521 (init_reassoc): Likewise.
24522 (fini_reassoc): Likewise.
24524 2015-06-01 Martin Liska <mliska@suse.cz>
24526 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
24528 (bitmap_set_new): Likewise.
24529 (get_or_alloc_expr_for_constant): Likewise.
24530 (get_or_alloc_expr_for): Likewise.
24531 (phi_translate_1): Likewise.
24532 (compute_avail): Likewise.
24533 (init_pre): Likewise.
24534 (fini_pre): Likewise.
24536 2015-06-01 Martin Liska <mliska@suse.cz>
24538 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
24539 (delete_dep_node): Likewise.
24540 (create_deps_list): Likewise.
24541 (free_deps_list): Likewise.
24542 (sched_deps_init): Likewise.
24543 (sched_deps_finish): Likewise.
24545 2015-06-01 Martin Liska <mliska@suse.cz>
24547 * regcprop.c (free_debug_insn_changes): Use new type-based
24549 (replace_oldest_value_reg): Likewise.
24550 (pass_cprop_hardreg::execute): Likewise.
24552 2015-06-01 Martin Liska <mliska@suse.cz>
24554 * ira-build.c (initiate_cost_vectors): Use new type-based
24556 (ira_allocate_cost_vector): Likewise.
24557 (ira_free_cost_vector): Likewise.
24558 (finish_cost_vectors): Likewise.
24560 2015-06-01 Martin Liska <mliska@suse.cz>
24562 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
24564 (free_sched_pools): Likewise.
24565 * sel-sched-ir.h (_list_alloc): Likewise.
24566 (_list_remove): Likewise.
24568 2015-06-01 Martin Liska <mliska@suse.cz>
24570 * stmt.c (add_case_node): Use new type-based pool allocator.
24571 (expand_case): Likewise.
24572 (expand_sjlj_dispatch_table): Likewise.
24574 2015-06-01 Martin Liska <mliska@suse.cz>
24576 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
24577 (free_bb): Likewise.
24578 (pass_cse_reciprocals::execute): Likewise.
24580 2015-06-01 Martin Liska <mliska@suse.cz>
24582 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
24583 (sra_deinitialize) Likewise.
24584 (create_access_1) Likewise.
24585 (build_accesses_from_assign) Likewise.
24586 (create_artificial_child_access) Likewise.
24588 2015-06-01 Martin Liska <mliska@suse.cz>
24590 * dse.c (get_group_info):Use new type-based pool allocator.
24591 (dse_step0) Likewise.
24592 (free_store_info) Likewise.
24593 (delete_dead_store_insn) Likewise.
24594 (free_read_records) Likewise.
24595 (record_store) Likewise.
24596 (replace_read) Likewise.
24597 (check_mem_read_rtx) Likewise.
24598 (scan_insn) Likewise.
24599 (dse_step1) Likewise.
24600 (dse_step7) Likewise.
24602 2015-06-01 Martin Liska <mliska@suse.cz>
24604 * df-scan.c (struct df_scan_problem_data):Use new type-based
24606 (df_scan_free_internal) Likewise.
24607 (df_scan_alloc) Likewise.
24608 (df_grow_reg_info) Likewise.
24609 (df_free_ref) Likewise.
24610 (df_insn_create_insn_record) Likewise.
24611 (df_mw_hardreg_chain_delete) Likewise.
24612 (df_insn_info_delete) Likewise.
24613 (df_free_collection_rec) Likewise.
24614 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
24615 (df_sort_and_compress_mws) Likewise.
24616 (df_ref_create_structure) Likewise.
24617 (df_ref_record) Likewise.
24619 2015-06-01 Martin Liska <mliska@suse.cz>
24621 * df-problems.c (df_chain_create):Use new type-based pool allocator.
24622 (df_chain_unlink_1) Likewise.
24623 (df_chain_unlink) Likewise.
24624 (df_chain_remove_problem) Likewise.
24625 (df_chain_alloc) Likewise.
24626 (df_chain_free) Likewise.
24627 * df.h (struct dataflow) Likewise.
24629 2015-06-01 Martin Liska <mliska@suse.cz>
24631 * cselib.c (new_elt_list):Use new type-based pool allocator.
24632 (new_elt_loc_list) Likewise.
24633 (unchain_one_elt_list) Likewise.
24634 (unchain_one_elt_loc_list) Likewise.
24635 (unchain_one_value) Likewise.
24636 (new_cselib_val) Likewise.
24637 (cselib_init) Likewise.
24638 (cselib_finish) Likewise.
24640 2015-06-01 Martin Liska <mliska@suse.cz>
24642 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
24643 (sh_reorg) Likewise.
24645 2015-06-01 Martin Liska <mliska@suse.cz>
24647 * cfg.c (initialize_original_copy_tables):Use new type-based
24649 (free_original_copy_tables) Likewise.
24650 (copy_original_table_clear) Likewise.
24651 (copy_original_table_set) Likewise.
24653 2015-06-01 Martin Liska <mliska@suse.cz>
24655 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
24657 (asan_mem_ref_new) Likewise.
24658 (free_mem_ref_resources) Likewise.
24660 2015-06-01 Martin Liska <mliska@suse.cz>
24662 * var-tracking.c (variable_htab_free):Use new type-based
24664 (attrs_list_clear) Likewise.
24665 (attrs_list_insert) Likewise.
24666 (attrs_list_copy) Likewise.
24667 (shared_hash_unshare) Likewise.
24668 (shared_hash_destroy) Likewise.
24669 (unshare_variable) Likewise.
24670 (var_reg_delete_and_set) Likewise.
24671 (var_reg_delete) Likewise.
24672 (var_regno_delete) Likewise.
24673 (drop_overlapping_mem_locs) Likewise.
24674 (variable_union) Likewise.
24675 (insert_into_intersection) Likewise.
24676 (canonicalize_values_star) Likewise.
24677 (variable_merge_over_cur) Likewise.
24678 (dataflow_set_merge) Likewise.
24679 (remove_duplicate_values) Likewise.
24680 (variable_post_merge_new_vals) Likewise.
24681 (dataflow_set_preserve_mem_locs) Likewise.
24682 (dataflow_set_remove_mem_locs) Likewise.
24683 (variable_from_dropped) Likewise.
24684 (variable_was_changed) Likewise.
24685 (set_slot_part) Likewise.
24686 (clobber_slot_part) Likewise.
24687 (delete_slot_part) Likewise.
24688 (loc_exp_insert_dep) Likewise.
24689 (notify_dependents_of_changed_value) Likewise.
24690 (emit_notes_for_differences_1) Likewise.
24691 (vt_emit_notes) Likewise.
24692 (vt_initialize) Likewise.
24693 (vt_finalize) Likewise.
24695 2015-06-01 Martin Liska <mliska@suse.cz>
24697 * ira-color.c (init_update_cost_records):Use new type-based
24699 (get_update_cost_record) Likewise.
24700 (free_update_cost_record_list) Likewise.
24701 (finish_update_cost_records) Likewise.
24702 (initiate_cost_update) Likewise.
24704 2015-06-01 Martin Liska <mliska@suse.cz>
24706 * lra.c (init_insn_regs): Use new type-based pool allocator.
24707 (new_insn_reg) Likewise.
24708 (free_insn_reg) Likewise.
24709 (free_insn_regs) Likewise.
24710 (finish_insn_regs) Likewise.
24711 (init_insn_recog_data) Likewise.
24712 (init_reg_info) Likewise.
24713 (finish_reg_info) Likewise.
24714 (lra_free_copies) Likewise.
24715 (lra_create_copy) Likewise.
24716 (invalidate_insn_data_regno_info) Likewise.
24718 2015-06-01 Martin Liska <mliska@suse.cz>
24720 * lra-lives.c (free_live_range): Use new type-based pool allocator.
24721 (free_live_range_list) Likewise.
24722 (create_live_range) Likewise.
24723 (copy_live_range) Likewise.
24724 (lra_merge_live_ranges) Likewise.
24725 (remove_some_program_points_and_update_live_ranges) Likewise.
24726 (lra_live_ranges_init) Likewise.
24727 (lra_live_ranges_finish) Likewise.
24729 2015-06-01 Martin Liska <mliska@suse.cz>
24731 * et-forest.c (et_new_occ): Use new type-based pool allocator.
24732 (et_new_tree): Likewise.
24733 (et_free_tree): Likewise.
24734 (et_free_tree_force): Likewise.
24735 (et_free_pools): Likewise.
24736 (et_split): Likewise.
24738 2015-06-01 Martin Liska <mliska@suse.cz>
24740 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
24742 * alloc-pool.h (pool_allocator::pool_allocator): New function.
24743 (pool_allocator::release): Likewise.
24744 (inline pool_allocator::release_if_empty): Likewise.
24745 (inline pool_allocator::~pool_allocator): Likewise.
24746 (pool_allocator::allocate): Likewise.
24747 (pool_allocator::remove): Likewise.
24749 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24751 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
24754 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24756 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
24758 * config/arm/arm.c (arm_print_tune_info): Likewise.
24759 (arm_macro_fusion_p): Likewise.
24760 (arm_macro_fusion_pair_p): Likewise.
24762 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
24764 * config/aarch64/aarch64-protos.h (tune_params): Rename
24765 fuseable_ops to fusible_ops.
24766 * config/aarch64/aarch64.c (generic_tunings): Rename
24767 fuseable_ops to fusible_ops.
24768 (cortexa53_tunings): Likewise.
24769 (cortexa57_tunings): Likewise.
24770 (thunderx_tunings): Likewise.
24771 (xgene1_tunings): Likewise.
24772 (aarch64_macro_fusion_p): Likewise.
24773 (aarch64_macro_fusion_pair_p): Likewise.
24775 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
24777 * config/s390/driver-native.c: New file.
24778 * config/s390/x-native: New file.
24779 * config.host: Add new files for s390.
24780 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
24782 * config.gcc: Likewise.
24783 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
24784 * config/s390/s390-opts.h (enum processor_type): Ditto.
24785 * config/s390/s390.c (s390_option_override): Catch unhandled
24788 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
24791 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
24792 redirection for instrumented calls.
24793 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
24794 (append_compiler_options): Append -fcheck-pointer-bounds.
24795 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
24796 (chkp_redirect_edge): New.
24797 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
24798 (chkp_redirect_edge): New.
24800 2015-06-01 Richard Biener <rguenther@suse.de>
24802 PR tree-optimization/66280
24803 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
24806 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24808 * config/aarch64/aarch64.md
24809 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
24812 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
24814 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
24815 Remove obsolete kludge.
24817 2015-06-01 Richard Biener <rguenther@suse.de>
24819 * tree-ssa-reassoc.c (get_rank): Simplify.
24821 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
24823 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
24824 * configure: Regenerated.
24826 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
24828 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
24829 issue (add space between string literal and macro).
24830 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
24832 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
24834 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
24835 implict or explicit -fPIE or -fpie.
24837 2015-05-30 Mike Frysinger <vapier@gentoo.org>
24839 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
24841 2015-05-28 DJ Delorie <dj@redhat.com>
24843 * expmed.c (extract_bit_field_1): Avoid clobbering a
24844 yet-to-be-used base/index register.
24846 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
24848 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
24849 (alias_stats): Add num_universal.
24850 (alias_set_subset_of): Special case pointers; be ready for NULL
24852 (alias_sets_conflict_p): Special case pointers; be ready for NULL
24854 (init_alias_set_entry): Break out from ...
24855 (record_alias_subset): ... here; propagate new fields;
24856 allocate children only when really needed.
24857 (get_alias_set): Do less generous pointer globbing.
24858 (dump_alias_stats_in_alias_c): Update statistics.
24860 2015-05-30 Alan Modra <amodra@gmail.com>
24862 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
24863 correct block for use of r12.
24864 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
24866 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
24869 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
24872 2015-05-29 Jakub Jelinek <jakub@redhat.com>
24874 PR tree-optimization/66142
24875 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
24876 virtual phis that feed themselves.
24878 2015-05-29 Richard Biener <rguenther@suse.de>
24880 PR tree-optimization/66314
24881 * tree-ssa-threadupdate.c (create_block_for_threading): Add
24882 parameter that says which loop the new block belongs to.
24883 (ssa_create_duplicates): Blocks duplicated for the threaded
24884 path belong to the loop of the thread destination.
24886 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24888 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
24889 to cleanup-saved-temps.
24890 * doc/sourcebuild.texi (Clean up generated test files): Expand
24892 (dg-keep-saved-temps): Document new proc.
24893 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
24894 cleanup-saved-temps): Remove.
24896 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
24898 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
24899 gcc_AC_CHECK_DECLS.
24900 * configure: Regenerate.
24902 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24904 * config/nios2/linux.h (CPP_SPEC): Define.
24906 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24908 * config/microblaze/linux.h (CPP_SPEC): Define.
24910 2015-05-28 Mike Frysinger <vapier@gentoo.org>
24912 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
24913 -pthread is specified.
24915 2015-05-28 Richard Biener <rguenther@suse.de>
24917 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
24918 (vect_fixup_scalar_cycles_with_patterns): Likewise.
24919 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
24920 after pattern recog.
24921 (vect_create_epilog_for_reduction): Properly handle reductions
24923 (vectorizable_reduction): Likewise.
24924 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
24926 (vect_get_constant_vectors): Create the correct number of
24927 initial values for reductions.
24928 (vect_schedule_slp_instance): Handle reduction chains that are
24929 type changing properly.
24930 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
24932 2015-05-28 Richard Biener <rguenther@suse.de>
24934 PR tree-optimization/66142
24935 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
24936 values better in memcpy destination handling. Handle non-aliasing
24939 2015-05-28 Lawrence Velázquez <vq@larryv.me>
24942 * config/darwin-c.c (version_components): New global enum.
24943 (parse_version, version_as_legacy_macro)
24944 (version_as_modern_macro, macosx_version_as_macro): New functions.
24945 (version_as_macro): Remove.
24946 (darwin_cpp_builtins): Use new function.
24948 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
24950 * builtins.c (expand_builtin_acc_on_device): Mark parameters
24951 with ATTRIBUTE_UNUSED.
24953 2015-05-28 Julian Brown <julian@codesourcery.com>
24957 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
24958 sequence for !ACCEL_COMPILER.
24960 2015-05-28 Nick Clifton <nickc@redhat.com>
24962 * config/rx/rx.c (push_regs): New function. Extracts code from...
24963 (rx_expand_prologue): ... here. Use push_regs to push even small
24964 spans of registers.
24965 (pop_regs): New function.
24966 (rx_expand_epilogue): Use pop_regs to pop even small spans of
24969 2015-05-28 Richard Biener <rguenther@suse.de>
24971 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
24973 (SLP_INSTANCE_BODY_COST_VEC): Remove.
24974 (vect_update_slp_costs_according_to_vf): Likewise.
24975 (vect_slp_analyze_operations): Update prototype.
24976 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
24977 vect_update_slp_costs_according_to_vf, adjust.
24978 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
24979 (vect_analyze_slp_cost_1): Likewise.
24980 (vect_analyze_slp_cost): Likewise. Properly deal with
24981 widening reduction ops. Commit body costs.
24982 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
24983 cost for loops from here.
24984 (vect_slp_analyze_operations): But do it from here when
24985 the vectorization factor is known and stmts are analyzed.
24986 (vect_bb_vectorization_profitable_p): Simplify.
24987 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
24988 (vect_update_slp_costs_according_to_vf): Remove.
24990 2015-05-27 Magnus Granberg <zorry@gentoo.org>
24991 H.J. Lu <hongjiu.lu@intel.com>
24993 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
24994 (BUILD_CFLAGS): Likewise.
24995 (BUILD_CXXFLAGS): Likewise.
24996 (LINKER): Add @NO_PIE_FLAG@.
24997 (BUILD_LDFLAGS): Likewise.
24998 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
24999 --enable-default-pie.
25000 * common.opt (fPIE): Initialize to -1.
25002 (no-pie): New option.
25003 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
25004 * configure.ac: Add --enable-default-pie.
25005 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
25006 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
25007 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
25008 * gcc.c (NO_PIE_SPEC): New.
25009 (PIE_SPEC): Likewise.
25010 (NO_FPIE1_SPEC): Likewise.
25011 (FPIE1_SPEC): Likewise.
25012 (NO_FPIE2_SPEC): Likewise.
25013 (FPIE2_SPEC): Likewise.
25014 (NO_FPIE2_SPEC): Likewise.
25015 (FPIE_SPEC): Likewise.
25016 (NO_FPIE_SPEC): Likewise.
25017 (NO_FPIC1_SPEC): Likewise.
25018 (FPIC1_SPEC): Likewise.
25019 (NO_FPIC2_SPEC): Likewise.
25020 (FPIC2_SPEC): Likewise.
25021 (NO_FPIC2_SPEC): Likewise.
25022 (FPIC_SPEC): Likewise.
25023 (NO_FPIC_SPEC): Likewise.
25024 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
25025 (FPIE1_OR_FPIC1_SPEC): Likewise.
25026 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
25027 (FPIE2_OR_FPIC2_SPEC): Likewise.
25028 (NO_FPIE_AND_FPIC_SPEC): Likewise.
25029 (FPIE_OR_FPIC_SPEC): Likewise.
25030 (LD_PIE_SPEC): Likewise.
25031 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
25032 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
25033 * config/darwin.h (PIE_SPEC): Renamed to ...
25034 (DARWIN_PIE_SPEC): This.
25035 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
25036 * config/darwin9.h (PIE_SPEC): Renamed to ...
25037 (DARWIN_PIE_SPEC): This.
25038 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
25039 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25040 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
25041 FPIE2_OR_FPIC2_SPEC.
25042 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
25043 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
25044 * config/sol2.h (ASM_PIC_SPEC): Likewise.
25045 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25046 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25047 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
25048 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
25049 * config/m32r/m32r.h (ASM_SPEC): Likewise.
25050 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
25051 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
25052 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
25053 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
25054 * config/sparc/linux.h (ASM_SPEC): Likewise.
25055 * config/sparc/linux64.h (ASM_SPEC): Likewise.
25056 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
25057 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
25058 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
25059 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
25060 * config/sparc/sparc.h (ASM_SPEC): Likewise.
25061 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
25062 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
25063 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
25064 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
25065 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
25066 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
25067 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
25068 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
25069 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
25070 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
25071 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
25072 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
25073 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
25074 * config/vax/linux.h (ASM_SPEC): Likewise.
25075 * doc/install.texi: Document --enable-default-pie.
25076 * doc/invoke.texi: Document -no-pie.
25077 * config.in: Regenerated.
25078 * configure: Likewise.
25080 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
25082 PR rtl-optimization/66168
25083 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
25084 can_move_invariant_reg.
25086 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
25089 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
25090 REG_EQUAL note when doing insert.
25092 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
25093 instead of "%d" for 'o' operand.
25095 2015-05-27 Nathan Sidwell <nathan@acm.org>
25098 * tree.c (build_pointer_type_for_mode): Canonical type does not
25099 inherit can_alias_all.
25100 (build_reference_type_for_mode): Likewise.
25102 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
25104 * expr.h (array_at_struct_end_p): Move to...
25105 (array_ref_element_size): Likewise.
25106 (component_ref_field_offset): Likewise.
25107 * tree.h (array_ref_element_size): ...here.
25108 (array_at_struct_end_p): Likewise.
25109 (component_ref_field_offset): Likewise.
25110 * expr.c (array_ref_element_size): Move to...
25111 (array_ref_low_bound): Likewise.
25112 (array_at_struct_end_p): Likewise.
25113 (array_ref_up_bound): Likewise.
25114 (component_ref_field_offset): Likewise.
25115 * tree.c (array_ref_element_size): ...here.
25116 (array_ref_low_bound): Likewise.
25117 (array_ref_up_bound): Likewise.
25118 (array_at_struct_end_p): Likewise.
25119 (component_ref_field_offset): Likewise.
25121 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
25122 Szabolcs Nagy <szabolcs.nagy@arm.com>
25124 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
25126 2015-05-27 Jason Merrill <jason@redhat.com>
25129 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
25130 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
25131 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
25133 2015-05-22 Aditya Kumar <hiraditya@msn.com>
25135 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
25138 * statistics.c (statistics_fini_pass): Print pass name.
25140 2015-05-27 Richard Biener <rguenther@suse.de>
25142 PR tree-optimization/66272
25144 2014-08-15 Richard Biener <rguenther@suse.de>
25146 PR tree-optimization/62031
25147 * tree-data-ref.c (dr_analyze_indices): Do not set
25148 DR_UNCONSTRAINED_BASE.
25149 (dr_may_alias_p): All indirect accesses have to go the
25150 formerly DR_UNCONSTRAINED_BASE path.
25151 * tree-data-ref.h (struct indices): Remove
25152 unconstrained_base member.
25153 (DR_UNCONSTRAINED_BASE): Remove.
25155 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
25157 * dwarf2out.c: Remove block_map.
25158 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
25159 (gen_lexical_block_die): Same.
25160 (dwarf2out_function_decl): Remove block_map use.
25161 (dwarf2out_c_finalize): Same.
25162 * tree-core.h (struct tree_block): Add die field.
25163 * tree.h (BLOCK_DIE): New.
25165 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25168 * expr.c (memory_load_overlap): New function.
25169 (emit_push_insn): When pushing partial args to the stack would
25170 clobber the register part load the overlapping part into a pseudo
25171 and put it into the hard reg after pushing. Change return type
25172 to bool. Add bool argument.
25173 * expr.h (emit_push_insn): Change return type to bool.
25175 * calls.c (expand_call): Cancel sibcall optimization when encountering
25176 partial argument on targets with ARGS_GROW_DOWNWARD and
25177 !STACK_GROWS_DOWNWARD.
25178 (emit_library_call_value_1): Update callsite of emit_push_insn.
25179 (store_one_arg): Likewise.
25181 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
25183 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
25185 2015-05-27 Martin Liska <mliska@suse.cz>
25187 * Makefile.in: Add additional dependencies related to memory report
25189 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
25190 * bitmap.c (struct bitmap_descriptor_d): Remove.
25191 (struct loc): Likewise.
25192 (struct bitmap_desc_hasher): Likewise.
25193 (bitmap_desc_hasher::hash): Likewise.
25194 (bitmap_desc_hasher::equal): Likewise.
25195 (get_bitmap_descriptor): Likewise.
25196 (bitmap_register): User new memory descriptor API.
25197 (register_overhead): Likewise.
25198 (bitmap_find_bit): Register nsearches and search_iter statistics.
25199 (struct bitmap_output_info): Remove.
25200 (print_statistics): Likewise.
25201 (dump_bitmap_statistics): Use new memory descriptor.
25202 * bitmap.h (struct bitmap_usage): New class.
25203 * genmatch.c: Extend header file inclusion.
25204 * genpreds.c: Likewise.
25205 * ggc-common.c (struct ggc_usage): New class.
25206 (struct ggc_loc_desc_hasher): Remove.
25207 (ggc_loc_desc_hasher::hash): Likewise.
25208 (ggc_loc_desc_hasher::equal): Likewise.
25209 (struct ggc_ptr_hash_entry): Likewise.
25210 (struct ptr_hash_hasher): Likewise.
25211 (ptr_hash_hasher::hash): Likewise.
25212 (ptr_hash_hasher::equal): Likewise.
25213 (make_loc_descriptor): Likewise.
25214 (ggc_prune_ptr): Likewise.
25215 (dump_ggc_loc_statistics): Use new memory descriptor.
25216 (ggc_record_overhead): Likewise.
25217 (ggc_free_overhead): Likewise.
25218 (final_cmp_statistic): Remove.
25219 (cmp_statistic): Likewise.
25220 (ggc_add_statistics): Liekwise.
25221 (ggc_prune_overhead_list): Likewise.
25222 * hash-map-traits.h: New file.
25223 * hash-map.h (struct default_hashmap_traits): Move the traits to a
25224 separate header file.
25225 * hash-set.h: Pass memory statistics info to ctor.
25226 * hash-table.c (void dump_hash_table_loc_statistics): New function.
25227 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
25228 (hash_table::~hash_table): Register memory release operation.
25229 (hash_table::alloc_entries): Handle memory allocation operation.
25230 (hash_table::expand): Likewise.
25231 * inchash.c (iterative_hash_hashval_t): Move implementation to header
25233 (iterative_hash_host_wide_int): Likewise.
25234 * inchash.h (class hash): Likewise.
25235 * mem-stats-traits.h: New file.
25236 * mem-stats.h: New file.
25237 (mem_location): Add new class.
25238 (mem_usage): Likewise.
25239 (mem_alloc_description): Likewise.
25240 * sese.c: Add new header file inclusision.
25241 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
25243 * tree-sra.c: Add new header file inclusision.
25244 * vec.c (struct vec_descriptor): Remove.
25245 (hash_descriptor): Likewise.
25246 (struct vec_usage): Likewise.
25247 (struct ptr_hash_entry): Likewise.
25248 (hash_ptr): Likewise.
25249 (eq_ptr): Likewise.
25250 (vec_prefix::register_overhead): Use new memory descriptor API.
25251 (vec_prefix::release_overhead): Likewise.
25252 (add_statistics): Remove.
25253 (dump_vec_loc_statistics): Use new memory descriptor API.
25254 * vec.h (struct vec_prefix): Likewise.
25255 (va_heap::reserve): Likewise.
25256 (va_heap::release): Likewise.
25257 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
25259 2015-05-27 Richard Biener <rguenther@suse.de>
25261 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
25262 earlier and remove ??? comment.
25263 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
25264 and got called from loop analysis bail out. Always pass the SLP
25265 node to the vectorizable_* functions.
25266 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
25267 the premature SLP check here.
25268 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
25269 detected SLP stmts.
25270 (vect_detect_hybrid_slp_1): Likewise.
25272 2015-05-26 Jeff Law <law@redhat.com>
25274 * combine.c (find_split_point): Verify that the shift count is a
25275 constant when choosing (plus (ashift ...)) as a split point.
25277 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
25278 No functional changes.
25280 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
25282 * ipa-polymorphic-call.c
25283 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
25284 case when call target is already known.
25286 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
25289 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
25290 take into account the case that operands[1] and operands[2]
25291 are the same register.
25293 2015-05-26 Michael Matz <matz@suse.de>
25295 PR middle-end/66251
25297 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
25299 (vect_create_vectorized_demotion_stmts): Always set
25300 STMT_VINFO_VEC_STMT, also with SLP.
25301 (vectorizable_store): Handle strided group stores.
25303 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25306 * config/aarch64/aarch64.md
25307 (*adds_shift_imm_<mode>): New pattern.
25308 (*subs_shift_imm_<mode>): Likewise.
25309 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
25310 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
25311 (*add_uxt<mode>_shift2): Likewise.
25312 (*add_uxtsi_shift2_uxtw): Likewise.
25313 (*sub_uxt<mode>_shift2): Likewise.
25314 (*sub_uxtsi_shift2_uxtw): Likewise.
25316 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
25318 * config/rs6000/constraints.md (Y, U): Use match_test.
25320 2015-05-26 Christian Bruel <christian.bruel@st.com>
25323 * config/arm/arm.c (arm_option_check_internal)
25324 (arm_option_params_internal): Check opts->target_flags to set macros.
25325 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25326 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
25327 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25328 (builtin_define): Replaced with def_or_undef_macro.
25329 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
25330 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
25331 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
25332 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
25333 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
25334 (TARGET_ARM_FEATURE_LDREX_P)
25335 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
25336 * config/arm/arm-c.c (def_or_undef_macro): New function.
25337 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
25339 2015-05-26 Christian Bruel <christian.bruel@st.com>
25341 * c-common.h (builtin_define_with_int_value)
25342 (builtin_define_type_sizeof): Declare.
25343 * c-cppbuiltin.c (builtin_define_with_int_value)
25344 (builtin_define_type_sizeof): Externalize.
25345 (builtin_define_std): Cleanup declaration.
25346 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
25347 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
25348 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
25349 (builtin_define, builtin_assert): New macros.
25351 2015-05-26 Richard Biener <rguenther@suse.de>
25353 PR tree-optimization/66142
25354 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
25355 MEM_REFs for the same base address.
25357 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25360 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
25362 2015-05-26 Jason Merrill <jason@redhat.com>
25364 * configure.ac: Set CXXFLAGS for ISL test.
25365 * configure: Regenerate.
25367 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
25368 strstr and basename.
25369 * configure: Regenerate.
25371 2015-05-26 Richard Biener <rguenther@suse.de>
25373 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
25374 X % C -> X & (C - 1) for C being a power-of two to ...
25375 * match.pd: ... patterns.
25377 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
25379 * match.pd (swapped_tcc_comparison): New operator list.
25380 (-A CMP -B): New simplification.
25381 * fold-const.c (fold_comparison): Remove corresponding code.
25383 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
25385 * caller-save.c (init_caller_save): Base temporary register numbers
25386 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
25387 * cfgloopanal.c (init_set_costs): Likewise.
25388 * dojump.c (prefer_and_bit_test): Likewise.
25389 * expr.c (init_expr_target): Likewise.
25390 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25391 * lower-subreg.c (init_lower_subreg): Likewise.
25392 * postreload.c (reload_cse_regs_1): Likewise.
25394 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
25396 * gensupport.h (compute_test_codes): Declare.
25397 * gensupport.c (compute_predicate_codes): Rename to...
25398 (compute_test_codes): ...this. Generalize error message.
25399 (process_define_predicate): Update accordingly.
25400 * genpreds.c (compute_maybe_allows): Delete.
25401 (add_constraint): Use compute_test_codes to determine whether
25402 something can accept a SUBREG, REG or MEM.
25404 2015-05-26 Torvald Riegel <triegel@redhat.com>
25406 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
25407 'memory model' to align with C++11; fix description of memory orders;
25410 2015-05-26 Richard Biener <rguenther@suse.de>
25412 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
25413 (vect_analyze_loop_operations): ... here. Remove slp parameter,
25414 detect whether we apply SLP. Remove call to
25415 vect_update_slp_costs_according_to_vf.
25416 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
25417 vect_update_slp_costs_according_to_vf from here. Dispatch
25418 to vect_slp_analyze_operations to analyze SLP stmts.
25419 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
25420 unused bb_vec_info parameter, adjust assert.
25421 (vect_slp_analyze_operations): Pass in the slp instance tree
25422 instead of bb_vec_info.
25423 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
25424 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
25426 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
25428 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
25429 Q_REGS. Expand comment.
25430 (REG_CLASS_NAMES): Ditto.
25431 (REG_CLASS_CONTENTS): Ditto.
25433 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
25436 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
25437 when LEGACY_INT_REGNO_P is processed.
25439 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
25441 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
25443 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
25445 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
25446 register if not marked dead/unused, before return.
25448 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25451 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
25452 is set; check for assembler name at LTO time.
25453 (type_in_anonymous_namespace): Remove hacks, check that all
25454 anonymous types are called "<anon>"
25455 (odr_type_p): Simplify; add check for "<anon>"
25456 (odr_subtypes_equivalent): Add odr_type_p check.
25457 * tree.c (need_assembler_name_p): Even anonymous namespace needs
25460 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25462 * ipa-utils.h (method_class_type): Remove.
25463 * cgraphunit.c (walk_polymorphic_call_targets): Use
25464 TYPE_METHOD_BASETYPE.
25465 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
25466 on main variants only.
25467 (method_class_type): Remove.
25468 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
25469 (build_type_inheritance_graph): Likewise.
25470 * ipa-icf.c (sem_function::equals_wpa): Likewise.
25471 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
25472 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
25474 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
25476 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
25477 is_typedef_decl, typedef_variant_p): Constify.
25478 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
25479 is_typedef_decl, typedef_variant_p): Constify.
25481 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25483 * defaults.h (gen_tablejump): New function.
25484 (HAVE_tablejump): Add default value.
25486 * stmt.c: Likewise.
25488 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25490 * defaults.h (gen_store_multiple): New function.
25491 (HAVE_store_multiple): Add default value.
25492 * expr.c (move_block_from_reg): Adjust.
25494 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25496 * defaults.h (gen_load_multiple): New function.
25497 (HAVE_load_multiple): Add default value.
25498 * expr.c (move_block_to_reg): Adjust.
25500 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25502 * defaults.h (gen_mem_signal_fence): New function.
25503 (HAVE_mem_signal_fence): Add default value.
25504 * optabs.c: Adjust.
25506 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25508 * defaults.h (gen_memory_barrier): New function.
25509 (HAVE_memory_barrier): Add default value.
25510 * optabs.c: Adjust.
25512 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25514 * defaults.h (gen_mem_thread_fence): New function.
25515 (HAVE_mem_thread_fence): Add default definition.
25516 * optabs.c: Adjust.
25518 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25520 * combine.c (find_split_point): Check the value of HAVE_lo_sum
25521 instead of if it is defined.
25522 (combine_simplify_rtx): Likewise.
25523 * lra-constraints.c (process_address_1): Likewise.
25524 * config/darwin.c: Adjust.
25525 * genconfig.c (main): Always define HAVE_lo_sum.
25527 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25529 * genmatch.c (parser::parse_operation): Reject expanding
25530 operator-list inside 'for'.
25532 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25534 * genmatch.c (parser::parse_for): Reject iterator if used as
25537 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25539 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
25540 after end of id-list.
25542 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
25544 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
25545 we do not try to compute canonical type for type that does not need
25547 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
25549 * tree.h (type_with_alias_set_p): New.
25551 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
25553 * tree.c (gimple_canonical_types_compatible_p): Do not compare
25554 function attributes.
25555 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
25557 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
25559 * Makefile.in (check_gcc_parallelize): Delete.
25560 (lang_checks_parallelized): Update comment.
25562 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
25564 PR rtl-optimization/66237
25565 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
25566 location of an "as_a" cast.
25568 2015-05-22 Jeff Law <law@redhat.com>
25570 * config/pa/pa.md (non-canonical shift-add insns): Remove.
25571 (peepholes with non-canonical RTL sources): Remove.
25572 (peepholes for indexed stores of FP regs in integer modes): Match and
25573 generate canonical RTL.
25575 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25577 PR tree-optimization/63387
25578 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
25579 ((x ord x) & (y ord y) -> (x ord y),
25580 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
25581 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
25582 vectors like scalars.
25584 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25586 * convert.c (convert_to_integer, convert_to_vector): Include the
25587 types in the error message.
25589 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
25591 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
25594 2015-05-22 Jeff Law <law@redhat.com>
25596 * config/pa/pa.md (integer_indexed_store splitters): Use
25597 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
25598 insns -- adjusting the constant 2nd operand accordingly.
25600 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
25601 (plus (ashift X log2) Y) if it is a split point.
25603 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
25604 out of hppa_legitimize_address to handle both forms of a multiply
25606 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
25607 Always generate the ASHIFT variant as the result is not directly
25608 used in a MEM. Update comments and refactor slightly to improve
25611 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25614 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
25615 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
25616 (aarch64_composite_type_p): Return false if given type and mode are
25617 for a short vector.
25619 2015-05-22 Richard Biener <rguenther@suse.de>
25621 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
25623 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
25624 patterns when determining whether SLP is pure.
25625 (vect_is_slp_reduction): Remove check for pattern stmts.
25626 (vect_is_simple_reduction_1): Remove dead code.
25627 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
25628 (vect_get_and_check_slp_defs): Pass in the stmt number.
25629 Allow the first def in a reduction to be not a pattern stmt when
25630 the rest of the stmts def are patterns.
25631 (vect_build_slp_tree_1): Allow tcc_expression codes like
25632 SAD_EXPR and DOT_PROD_EXPR.
25633 (vect_build_slp_tree): Adjust.
25634 (vect_analyze_slp): Refactor and move BB vect error message ...
25635 (vect_slp_analyze_bb_1): ... here.
25637 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
25639 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
25640 for CSWTCH temporary.
25642 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25644 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
25645 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
25648 2015-05-22 Richard Biener <rguenther@suse.de>
25650 PR tree-optimization/66251
25651 * tree-vect-stmts.c (vectorizable_conversion): Properly
25652 set STMT_VINFO_VEC_STMT even for the SLP case.
25654 2015-05-22 Marek Polacek <polacek@redhat.com>
25656 * doc/extend.texi: Use @pxref instead of @xref.
25658 2015-05-22 hiraditya <hiraditya@msn.com>
25660 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
25663 2015-05-22 Richard Biener <rguenther@suse.de>
25665 PR tree-optimization/65701
25666 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25667 Move peeling cost models into one place. Peel for alignment
25668 for single loads only if an aligned load is cheaper than
25671 2015-05-22 Marek Polacek <polacek@redhat.com>
25674 * doc/extend.texi (Enumerator Attributes): New section.
25675 Document syntax of enumerator attributes.
25677 2015-05-22 Richard Biener <rguenther@suse.de>
25679 * tree-vect-loop.c (get_reduction_op): New function.
25680 (vect_model_reduction_cost): Use it, add reduc_index parameter.
25681 Make ready for BB reductions.
25682 (vect_create_epilog_for_reduction): Use get_reduction_op.
25683 (vectorizable_reduction): Init reduc_index to a valid value.
25684 Adjust vect_model_reduction_cost call.
25685 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
25686 operand for reduction defaults. Add SAD_EXPR support.
25687 Assert we have a neutral op for SLP reductions.
25688 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
25689 walking pattern stmt ops only recurse to SSA names.
25691 2015-05-22 Richard Biener <rguenther@suse.de>
25693 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
25694 assert with guard, remove check on detected reduction.
25695 (vect_recog_sad_pattern): Likewise.
25696 (vect_recog_widen_sum_pattern): Likewise.
25698 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25700 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
25701 __always_inline__ attribute.
25702 (vaesdq_u8): Likewise.
25703 (vaesmcq_u8): Likewise.
25704 (vaesimcq_u8): Likewise.
25705 (vsha1cq_u32): Likewise.
25706 (vsha1mq_u32): Likewise.
25707 (vsha1pq_u32): Likewise.
25708 (vsha1h_u32): Likewise.
25709 (vsha1su0q_u32): Likewise.
25710 (vsha1su1q_u32): Likewise.
25711 (vsha256hq_u32): Likewise.
25712 (vsha256h2q_u32): Likewise.
25713 (vsha256su0q_u32): Likewise.
25714 (vsha256su1q_u32): Likewise.
25715 (vmull_p64): Likewise.
25716 (vmull_high_p64): Likewise.
25718 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25720 * final.c (final_scan_insn): Don't check HAVE_peephole with the
25722 * output.h: Likewise.
25723 * genconfig.c (main): Alwways define HAVE_peephole.
25724 * genpeep.c: Don't emit checks of HAVE_peephole.
25726 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25728 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
25729 check HAVE_conditional_move with the preprocessor.
25731 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25733 * genconfig.c (main): Always define HAVE_conditional_move.
25734 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
25735 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
25738 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25740 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
25741 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
25742 and FRAME_POINTER_REGNUM with the preprocessor.
25744 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25746 * defaults.h: Add default for STACK_PUSH_CODE.
25747 * expr.c: Don't redefine STACK_PUSH_CODE.
25748 * recog.c: Likewise.
25750 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25752 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
25753 sched-deps.c: Use if instead of preprocessor checks with
25754 STACK_GROWS_DOWNWARD.
25756 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
25758 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
25760 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
25761 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
25762 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
25763 * doc/tm.texi: Regenerate.
25765 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
25768 * config/i386/constraints.md (Bg): New constraint for GOT memory
25770 * config/i386/i386.md (*call_got_x32): New pattern.
25771 (*call_value_got_x32): Likewise.
25772 * config/i386/predicates.md (GOT_memory_operand): New predicate.
25774 2015-05-21 Jakub Jelinek <jakub@redhat.com>
25776 PR tree-optimization/66233
25777 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
25780 2015-05-21 Jeff Law <law@redhat.com>
25782 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
25783 than MULT for shadd sequences.
25785 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
25787 * alias.c (alias_stats): New static var.
25788 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
25789 (dump_alias_stats_in_alias_c): New function.
25790 * alias.h (dump_alias_stats_in_alias_c): Declare.
25791 * tree-ssa-alias.c (dump_alias_stats): Call it.
25793 2015-05-08 Michael Matz <matz@suse.de>
25795 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
25797 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
25798 (STMT_VINFO_STRIDED_P): ... this.
25799 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
25800 (vect_verify_datarefs_alignment): Likewise.
25801 (vect_enhance_data_refs_alignment): Likewise.
25802 (vect_analyze_data_ref_access): Likewise.
25803 (vect_analyze_data_refs): Accept strided stores.
25804 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
25805 (vect_model_load_cost): Adjust for macro rename.
25806 (vectorizable_mask_load_store): Likewise.
25807 (vectorizable_load): Likewise.
25808 (vectorizable_store): Open code strided stores.
25810 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25812 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
25813 Document sqrt_insn.
25815 2015-05-21 Richard Biener <rguenther@suse.de>
25818 * match.pd: Guard pattern optimzing (int)(float)int
25819 conversions to apply only on GIMPLE.
25821 2015-05-21 Jeff Law <law@redhat.com>
25823 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
25824 multiply-accumulate/shift-add insn generation.
25826 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
25829 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
25830 operands[1] are the same.
25832 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
25834 PR middle-end/66221
25835 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
25836 build_distinct_type_copy to copy bounds.
25838 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
25840 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
25841 Change to unsigned int.
25843 2015-05-20 Jeff Law <law@redhat.com>
25845 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
25846 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
25847 (pa_shadd_constant_p): Allow constants for shadd insns rather
25848 than valid scaling constants for memory addresses.
25849 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
25850 * config/pa/predicates.md (mem_shadd_operand): New predicate.
25851 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
25852 (shift-add insns using ASHIFT): New patterns.
25854 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
25856 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
25858 (fix_up_fall_thru_edges): Likewise.
25859 (fix_crossing_conditional_branches): Likewise. Promote jump targets
25860 from to rtx_insn to rtx_code_label where feasible.
25861 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
25862 gen_move_insn (returned type changed to rtx_insn).
25863 * builtins.c (expand_errno_check): Fix arguments of
25864 do_compare_rtx_and_jump (now expects rtx_code_label).
25865 (expand_builtin_acc_on_device): Likewise.
25866 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
25867 invert_jump (now exprects rtx_jump_insn).
25868 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
25869 (construct_init_block): Use rtx_code_label.
25870 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
25871 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
25872 calling redirect_jump.
25873 (patch_jump_insn): Likewise.
25874 (redirect_branch_edge): Likewise.
25875 (force_nonfallthru_and_redirect): Likewise.
25876 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
25878 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
25879 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
25880 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
25881 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
25882 to store the value retured by gen_label_rtx.
25883 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
25885 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
25886 (split_branches): Fix calls of redirect_jump.
25887 * dojump.c (jumpifnot): Promote argument type from rtx to
25889 (jumpifnot_1): Likewise.
25890 (jumpif): Likewise.
25891 (jumpif_1): Likewise.
25892 (do_jump_1): Likewise.
25893 (do_jump): Likewise. Use rtx_code_label when feasible.
25894 (do_jump_by_parts_greater_rtx): Likewise.
25895 (do_jump_by_parts_zero_rtx): Likewise.
25896 (do_jump_by_parts_equality_rtx): Likewise.
25897 (do_compare_rtx_and_jump): Likewise.
25898 * dojump.h: Update function prototypes.
25899 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
25901 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
25903 (emit_label_before): Likewise.
25904 (emit_jump_insn_after_noloc): Likewise.
25905 (emit_jump_insn_after_setloc): Likewise.
25906 (emit_jump_insn_after): Likewise
25907 (emit_jump_insn_before_setloc): Likewise.
25908 (emit_jump_insn_before): Likewise.
25909 (emit_label_before): Promote return type to rtx_code_label.
25910 (emit_label): Likewise.
25911 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
25912 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
25914 (emit_stack_restore): Likewise.
25915 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
25916 (do_cmp_and_jump): Likewise.
25917 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
25918 from rtx to rtx_code_label.
25919 (gen_move_insn_uncast): New function.
25920 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
25921 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
25922 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
25923 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
25924 invert_jump_1 and redirect_jump_1.
25925 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
25926 do_compare_rtx_and_jump.
25927 (expand_addsub_overflow): Likewise.
25928 (expand_neg_overflow): Likewise.
25929 (expand_mul_overflow): Likewise.
25930 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
25931 return value of gen_move_insn.
25932 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
25933 * loop-doloop.c (add_test): Use rtx_code_label.
25934 (doloop_modify): Likewise.
25935 (doloop_optimize): Likewise.
25936 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
25937 * lra-constraints.c (emit_spill_move): Remove cast of value returned
25939 (inherit_reload_reg): Add cast when calling dump_insn_slim.
25940 (split_reg): Likewise.
25941 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
25943 * optabs.c (expand_binop_directly): Remove casts of values returned by
25945 (expand_unop_direct): Likewise.
25946 (expand_abs): Likewise.
25947 (maybe_emit_unop_insn): Likewise.
25948 (maybe_gen_insn): Promote return type to rtx_insn.
25949 * optabs.h: Update prototype of maybe_gen_insn.
25950 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
25952 * recog.c (struct peep2_insn_data): Promote type of insn field to
25954 (peep2_reinit_state): Use NULL instead of NULL_RTX.
25955 (peep2_attempt): Remove casts of insn in peep2_insn_data.
25956 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
25957 * recog.h (struct insn_gen_fn): Promote return types of function
25958 pointers and operator ().from rtx to rtx_insn.
25959 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
25960 (fill_eager_delay_slots): Likewise.
25961 (relax_delay_slots): Likewise.
25962 (make_return_insns): Likewise.
25963 (dbr_schedule): Likewise.
25964 (optimize_skips): Likewise.
25965 (reorg_redirect_jump): Likewise.
25966 (fill_slots_from_thread): Likewise.
25967 * reorg.h: Update prototypes.
25968 * resource.c (find_dead_or_set_registers): Use dyn_cast to
25969 rtx_jump_insn instead of check. Use it's jump_target method.
25970 * rtl.h (rtx_jump_insn::jump_label): Define new method.
25971 (rtx_jump_insn::jump_target): Define new method.
25972 (rtx_jump_insn::set_jump_target): Define new method.
25973 * rtlanal.c (tablejump_p): Promote type of one local variable.
25974 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
25975 (sched_analyze_insn): Likewise.
25976 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
25977 (print_insn): Likewise.
25978 * stmt.c (label_rtx): Promote return type to rtx_insn.
25979 (force_label_rtx): Likewise.
25980 (jump_target_rtx): Define new function.
25981 (expand_label): Use it, get rid of one cast.
25982 (expand_naked_return): Promote rtx to rtx_code_label.
25983 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
25984 (expand_case): Use rtx_code_label instread of rtx where feasible.
25985 (expand_sjlj_dispatch_table): Likewise.
25986 (emit_case_nodes): Likewise.
25987 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
25988 * store-motion.c (insert_store): Make use of new return type of
25989 gen_move_insn and remove a cast.
25990 (replace_store_insn): Likewise.
25992 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
25994 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
25995 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
25997 2015-05-20 Jeff Law <law@redhat.com>
25999 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
26000 dispose of the jump thread path when the jump threading
26001 opportunity is cancelled.
26003 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
26005 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
26006 when printing the caret character.
26008 2015-05-20 Marek Polacek <polacek@redhat.com>
26010 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
26012 2015-05-20 Marek Polacek <polacek@redhat.com>
26014 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
26015 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
26016 * gimple-fold.c (canonicalize_bool): Likewise.
26017 (same_bool_result_p): Likewise.
26018 * tree-if-conv.c (parse_predicate): Likewise.
26020 2015-05-20 Marek Polacek <polacek@redhat.com>
26022 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
26023 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
26025 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26027 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
26028 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
26031 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
26033 * config/mips/mips.h (micromips_globals): Declare.
26035 2015-05-20 David Malcolm <dmalcolm@redhat.com>
26037 * timevar.def (TV_INITIALIZE_RTL): New.
26038 * toplev.c (initialize_rtl): Use an auto_timevar to account this
26039 function's time to TV_INITIALIZE_RTL.
26041 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
26043 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
26044 gimple_build_nop calls.
26045 (chkp_find_bounds_for_elem): Likewise.
26046 (chkp_get_zero_bounds): Likewise.
26047 (chkp_get_none_bounds): Likewise.
26048 (chkp_get_bounds_by_definition): Likewise.
26049 (chkp_generate_extern_var_bounds): Likewise.
26050 (chkp_get_bounds_for_decl_addr): Likewise.
26051 (chkp_get_bounds_for_string_cst): Likewise.
26053 2015-05-20 Bin Cheng <bin.cheng@arm.com>
26055 PR tree-optimization/65447
26056 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
26057 (dump_use, dump_uses): Support to dump sub use.
26058 (record_use): New parameters to support sub use. Remove call to
26060 (record_sub_use, record_group_use): New functions.
26061 (compute_max_addr_offset, split_all_small_groups): New functions.
26062 (group_address_uses, rewrite_use_address): New functions.
26063 (strip_offset): New declaration.
26064 (find_interesting_uses_address): Call record_group_use.
26065 (add_candidate): New assertion.
26066 (infinite_cost_p): Move definition forward.
26067 (add_costs): Check INFTY cost and return immediately.
26068 (get_computation_cost_at): Clear setup cost and dependent bitmap
26070 (determine_use_iv_cost_address): Compute cost for sub uses.
26071 (rewrite_use_address_1): Rename from old rewrite_use_address.
26072 (free_loop_data): Free sub uses.
26073 (tree_ssa_iv_optimize_loop): Call group_address_uses.
26075 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
26076 Jim Wilson <jim.wilson@linaro.org>
26078 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
26079 new fields loadv and storev.
26080 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
26081 Initialize loadv and storev.
26082 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
26083 (cortexa53_extra_costs): Likewise.
26084 (cortexa57_extra_costs): Likewise.
26085 (xgene1_extra_costs): Likewise.
26086 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
26089 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
26091 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
26093 (cortexa8_extra_costs): Likewise.
26094 (cortexa5_extra_costs): Likewise.
26095 (cortexa7_extra_costs): Likewise.
26096 (cortexa12_extra_costs): Likewise.
26097 (cortexa15_extra_costs): Likewise.
26098 (v7m_extra_costs): Likewise.
26100 2015-05-20 Jeff Law <law@redhat.com>
26102 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
26103 instead of open-coded version. Also delete the jump thread created
26104 within this function.
26106 2015-05-20 Alan Modra <amodra@gmail.com>
26108 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
26109 stack adjusting insn. Formatting.
26110 (rs6000_emit_prologue): Track stack adjusting insn, and use of
26111 r12. If possible, emit first -fsplit-stack arg pointer insn
26112 before stack adjust. Don't use r12 to save cr if split-stack.
26114 2015-05-20 Alan Modra <amodra@gmail.com>
26116 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
26118 (rs6000_supports_split_stack): New function.
26119 * config/rs6000/rs6000.c (machine_function): Add
26120 split_stack_arg_pointer.
26121 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
26122 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
26123 rather than virtual_incoming_args_rtx.
26124 (rs6000_va_start): Likewise.
26125 (split_stack_arg_pointer_used_p): New function.
26126 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
26127 (morestack_ref): New var.
26128 (gen_add3_const, rs6000_expand_split_stack_prologue,
26129 rs6000_internal_arg_pointer, rs6000_live_on_entry,
26130 rs6000_split_stack_space_check): New functions.
26131 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
26132 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
26133 (UNSPECV_SPLIT_STACK_RETURN): Define.
26134 (split_stack_prologue, load_split_stack_limit,
26135 load_split_stack_limit_di, load_split_stack_limit_si,
26136 split_stack_return, split_stack_space_check): New expands and insns.
26137 * config/rs6000/rs6000-protos.h
26138 (rs6000_expand_split_stack_prologue): Declare.
26139 (rs6000_split_stack_space_check): Declare.
26141 2015-05-20 Alan Modra <amodra@gmail.com>
26143 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
26144 (direct_return): Test vrsave_size rather than vrsave_mask.
26145 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
26146 (rs6000_emit_epilogue): Likewise.
26148 2015-05-20 Alan Modra <amodra@gmail.com>
26150 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
26151 when not saving registers.
26152 (debug_stack_info): Adjust to omit printing unused offsets,
26154 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
26157 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26160 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
26161 value_type to const char *.
26163 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
26165 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
26166 to build a biarch toolchain again.
26168 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
26170 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
26171 or implicit declarations.
26172 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
26174 (get_odr_type): Check type has linkage before adding bases.
26175 (register_odr_type): Check that type has linkage before adding it.
26176 (type_known_to_have_no_deriavations_p): Rename to ..
26177 (type_known_to_have_no_derivations_p): This one.
26178 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
26179 (type_known_to_have_no_derivations_p): This one.
26180 * ipa-polymorphic-call.c
26181 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
26184 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
26186 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
26187 (layout_type): Use RECORD_OR_UNION_TYPE_P.
26189 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26191 * config/s390/s390.c (s390_vector_bool_type_p): New function.
26192 (s390_invalid_binary_op): New function.
26193 (TARGET_INVALID_BINARY_OP): Define macro.
26195 2015-05-19 David Sherwood <david.sherwood@arm.com>
26197 * loop-invariant.c (create_new_invariant): Don't calculate address cost
26198 if mode is not a scalar integer.
26199 (get_inv_cost): Increase computational cost for unused invariants.
26201 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26203 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
26204 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
26205 * config/s390/s390-builtin-types.def: New file.
26206 * config/s390/s390-builtins.def: New file.
26207 * config/s390/s390-builtins.h: New file.
26208 * config/s390/s390-c.c: New file.
26209 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
26210 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
26211 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
26212 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
26214 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
26216 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
26217 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
26218 variable definitions.
26219 (s390_const_operand_ok): New function.
26220 (s390_expand_builtin): Rewrite.
26221 (s390_init_builtins): New function.
26222 (s390_handle_vectorbool_attribute): New function.
26223 (s390_attribute_table): Add s390_vector_bool attribute.
26224 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
26225 (s390_branch_condition_mask): Generate masks for new modes.
26226 (s390_expand_vec_compare_cc): New function.
26227 (s390_mangle_type): Add mangling for vector bool types.
26228 (enum s390_builtin): Remove.
26229 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
26231 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
26232 s390_cpu_cpp_builtins.
26233 (REGISTER_TARGET_PRAGMAS): New macro.
26234 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
26235 (insn_cmp mode attribute): Add new CC modes.
26236 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
26237 (lcbb): New pattern definition.
26238 * config/s390/s390intrin.h: Include vecintrin.h.
26239 * config/s390/t-s390: New file.
26240 * config/s390/vecintrin.h: New file.
26241 * config/s390/vector.md: Include vx-builtins.md.
26242 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
26245 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26247 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
26249 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
26250 (s390_select_ccmode): Likewise.
26251 (s390_canonicalize_comparison): Swap operands if necessary.
26252 (s390_expand_vec_compare_scalar): Expand DFmode compare using
26253 single element vector instructions.
26254 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
26255 (s390_branch_condition_mask): Generate CC masks for the new modes.
26256 * config/s390/s390.md (v0, vf, vd): New mode attributes.
26257 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
26258 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
26259 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
26260 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
26261 (*extend<DSF:mode><BFP:mode>2): New insn definition.
26262 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
26263 (extend<DSF:mode><BFP:mode>2): Turn into expander.
26264 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
26265 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
26266 (sqrt<mode>2): Add vector instruction.
26268 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26270 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
26272 * config/s390/predicates.md (const0_operand, constm1_operand)
26273 (constable_operand): Accept vector operands.
26274 * config/s390/s390-modes.def: Add supported vector modes.
26275 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
26276 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
26277 (s390_bytemask_vector_p, s390_expand_vec_strlen)
26278 (s390_expand_vec_compare, s390_expand_vcond)
26279 (s390_expand_vec_init): Add prototypes.
26280 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
26281 (s390_vector_mode_supported_p): New function.
26282 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
26283 (s390_contiguous_bitmask_vector_p): New function.
26284 (s390_bytemask_vector_p): New function.
26285 (s390_split_ok_p): Vector regs don't work either.
26286 (regclass_map): Add VEC_REGS.
26287 (s390_legitimate_constant_p): Handle vector constants.
26288 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
26289 (legitimate_reload_vector_constant_p): New function.
26290 (s390_preferred_reload_class): Handle CONST_VECTOR.
26291 (s390_reload_symref_address): Likewise.
26292 (s390_secondary_reload): Vector memory instructions only support
26293 short displacements. Rename reload*_nonoffmem* to reload*_la*.
26294 (s390_emit_ccraw_jump): New function.
26295 (s390_expand_vec_strlen): New function.
26296 (s390_expand_vec_compare): New function.
26297 (s390_expand_vcond): New function.
26298 (s390_expand_vec_init): New function.
26299 (s390_dwarf_frame_reg_mode): New function.
26300 (print_operand): Handle addresses with 'O' and 'R' constraints.
26301 (NR_C_MODES, constant_modes): Add vector modes.
26302 (s390_output_pool_entry): Handle vector constants.
26303 (s390_hard_regno_mode_ok): Handle vector registers.
26304 (s390_class_max_nregs): Likewise.
26305 (s390_cannot_change_mode_class): New function.
26306 (s390_invalid_arg_for_unprototyped_fn): New function.
26307 (s390_function_arg_vector): New function.
26308 (s390_function_arg_float): Remove size variable.
26309 (s390_pass_by_reference): Handle vector arguments.
26310 (s390_function_arg_advance): Likewise.
26311 (s390_function_arg): Likewise.
26312 (s390_return_in_memory): Vector values are returned in a VR if
26314 (s390_function_and_libcall_value): Handle vector arguments.
26315 (s390_gimplify_va_arg): Likewise.
26316 (s390_call_saved_register_used): Consider the arguments named.
26317 (s390_conditional_register_usage): Disable v16-v31 for non-vec
26319 (s390_preferred_simd_mode): New function.
26320 (s390_support_vector_misalignment): New function.
26321 (s390_vector_alignment): New function.
26322 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
26323 (TARGET_VECTOR_MODE_SUPPORTED_P)
26324 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
26325 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
26326 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
26327 (TARGET_VECTOR_ALIGNMENT): Define target macro.
26328 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
26329 (FIRST_PSEUDO_REGISTER): Increase value.
26330 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
26331 (VECTOR_REG_P): Define macros.
26332 (FIXED_REGISTERS, CALL_USED_REGISTERS)
26333 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
26334 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
26335 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
26336 Add vector registers.
26337 (CANNOT_CHANGE_MODE_CLASS): Call C function.
26338 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
26339 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
26341 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
26342 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
26343 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
26344 (VR*_REGNUM): New constants.
26345 (ALL): New mode iterator.
26346 (INTALL): Remove mode iterator.
26348 (movti): Implement TImode moves for VRs.
26349 Disable TImode splitter for VR targets.
26350 Implement splitting TImode GPR<->VR moves.
26351 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
26352 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
26353 reload<mode>_la_in, reload<mode>_la_out.
26354 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
26355 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
26356 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
26357 (mov<mode> SF SD): Prefer lder, lde for loading.
26358 Add lrl and strl instructions.
26359 Add vector instructions.
26360 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
26361 Call s390_expand_vec_strlen on z13.
26362 (*cc_to_int): Change predicate to nonimmediate_operand.
26363 (addti3): Rename to *addti3. New expander.
26364 (subti3): Rename to *subti3. New expander.
26365 * config/s390/vector.md: New file.
26367 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26369 * common/config/s390/s390-common.c (processor_flags_table): Add
26371 * config.gcc: Add z13.
26372 * config/s390/s390-opts.h (enum processor_type): Add
26373 PROCESSOR_2964_Z13.
26374 * config/s390/s390.c (s390_adjust_priority): Check for
26375 PROCESSOR_2964_Z13.
26376 (s390_reorg): Likewise.
26377 (s390_sched_reorder): Likewise.
26378 (s390_sched_variable_issue): Likewise.
26379 (s390_loop_unroll_adjust): Likewise.
26380 (s390_option_override): Likewise. Default to -mvx when available.
26381 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
26382 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
26383 (TARGET_VX_ABI): Define macros.
26385 (TARGET_DEFAULT): Add MASK_OPT_VX.
26386 * config/s390/s390.md ("cpu" attribute): Add z13.
26387 ("cpu_facility" attribute): Add vec.
26388 * config/s390/s390.opt (processor_type): Add z13.
26389 (mvx): New options.
26390 * doc/invoke.texi: Add z13 option for -march.
26392 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26394 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
26395 mode check to make sure that only scalar integer values are
26398 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
26400 * tree.c (verify_type_variant): Fix #undef.
26401 (gimple_canonical_types_compatible_p): Move here from lto.c
26402 (verify_type): Verify TYPE_CANONICAL compatibility.
26403 * tree.h (gimple_canonical_types_compatible_p): Declare.
26405 2015-05-19 Jakub Jelinek <jakub@redhat.com>
26407 PR middle-end/66199
26408 * tree.h (OMP_TEAMS_COMBINED): Define.
26409 * gimplify.c (enum gimplify_omp_var_data): Add
26410 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
26411 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
26412 (omp_notice_variable): Accept both ORT_TEAMS
26413 and ORT_COMBINED_TEAMS. Don't recurse if
26414 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
26415 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
26417 (omp_no_lastprivate): New function.
26418 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
26419 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
26420 notice_outer and set appropriate bits, otherwise make
26421 sure default(none) combined constructs won't complain.
26422 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
26423 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
26424 omp_no_lastprivate either remove the clause or turn it
26425 into OMP_CLAUSE_PRIVATE.
26426 (gimplify_omp_for): Fix up handling of implicit
26427 lastprivate or linear iterators.
26428 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
26429 ORT_COMBINED_TEAMS.
26430 * omp-low.c (lower_omp_for_lastprivate): For combined
26431 for simd use fd.loop.n2 from the for rather than simd.
26433 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26435 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
26436 instead of gen_rtx_raw_REG.
26437 (cris_expand_epilogue): Likewise.
26438 * config/microblaze/microblaze.c (microblaze_classify_address):
26440 * config/sparc/sparc.md: Likewise.
26442 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
26444 * config/alpha/alpha.c (alpha_legitimize_reload_address)
26445 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
26446 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
26447 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
26448 Use CASE_CONST_SCALAR_INT.
26449 (print_operand) <case 'M'>: Use mode_width_operand to check the
26450 value of the constant.
26451 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
26452 * config/alpha/predicates.md (input_operand): Use general_operand
26453 instead of match_code as operand check.
26454 (symbolic_operand): Use match_code with subexpression digits.
26455 * config/alpha/constraints.md (Q): Ditto.
26457 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26459 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
26461 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26463 * config/s390/s390.c (s390_secondary_reload): Fix check for
26464 load/store relative.
26466 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26468 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
26469 alternative_mask to uint64_t.
26471 2015-05-19 Jakub Jelinek <jakub@redhat.com>
26473 PR tree-optimization/66187
26474 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
26475 Pass TYPE_SIGN to tree_int_cst_min_precision. If
26476 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
26478 2015-05-19 David Malcolm <dmalcolm@redhat.com>
26480 * diagnostic.c (diagnostic_report_current_module): Strengthen
26481 local "new_map" from const line_map * to
26482 const line_map_ordinary *.
26483 * genmatch.c (error_cb): Likewise for local "map".
26484 (output_line_directive): Likewise for local "map".
26485 * input.c (expand_location_1): Likewise for local "map".
26486 Pass NULL rather than &map to
26487 linemap_unwind_to_first_non_reserved_loc, since the value is never
26488 read from there, and the value written back not read from here.
26489 (is_location_from_builtin_token): Strengthen local "map" from
26490 const line_map * to const line_map_ordinary *.
26491 (dump_location_info): Strengthen locals "map" from
26492 line_map *, one to const line_map_ordinary *, the other
26493 to const line_map_macro *.
26494 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
26495 const line_map * to const line_map_macro *.
26496 (maybe_unwind_expanded_macro_loc): Add a call to
26497 linemap_check_macro when writing to the "map" field of the
26499 Introduce local const line_map_ordinary * "ord_map", using it in
26500 place of "map" in the part of the function where we know we have
26501 an ordinary map. Strengthen local "m" from const line_map * to
26502 const line_map_ordinary *.
26504 2015-05-19 Nick Clifton <nickc@redhat.com>
26507 * config/msp430/msp430.md (zero_extendhisi2): Add support for
26508 separate source and destination registers.
26510 2015-05-19 Richard Biener <rguenther@suse.de>
26512 PR tree-optimization/66165
26513 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
26514 for no load permutation.
26516 PR tree-optimization/66185
26517 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
26518 when building the SLP node from scalars.
26520 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
26521 Tristan Gingold <gingold@adacore.com>
26523 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
26524 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
26525 (expand_stack_restore): Call record_new_stack_level.
26526 (expand_stack_save): Do not call do_pending_stack_adjust.
26527 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
26528 * calls.c (expand_call): Call record_new_stack_level for alloca.
26529 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
26530 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
26531 (update_sjlj_context): New global function.
26532 * except.h (update_sjlj_context): Declare.
26533 * explow.c (record_new_stack_level): New global function.
26534 (allocate_dynamic_stack_space): Call record_new_stack_level.
26535 * explow.h (record_new_stack_level): Declare.
26536 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
26537 * cfgrtl.c (duplicate_insn_chain): Likewise.
26539 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26541 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
26542 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
26543 STACK_GROWS_DOWNWARD as normal if.
26544 (expand_call): Likewise.
26546 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
26549 * config/sh/sh.md (*round_int_even): New insn_and_split and
26550 accompanying new unnamed split.
26552 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26554 * bitmap.c (bitmap_set_range): Handle count==1 specially.
26555 (bitmap_clear_range): Likewise.
26556 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
26557 bitmap_set_range unconditionally.
26558 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26559 * df-scan.c (df_mark_reg): Likewise.
26560 * haifa-sched.c (setup_ref_regs): Likewise.
26561 * sched-rgn.c (update_live_1): Likewise.
26563 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26565 * regs.h (END_HARD_REGNO): Delete.
26566 (END_REGNO): Move to...
26568 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
26569 * caller-save.c (mark_set_regs): Likewise.
26570 * combine.c (move_deaths, distribute_notes): Likewise.
26571 * cse.c (invalidate, invalidate_for_call): Likewise.
26572 * df-scan.c (df_ref_record): Likewise.
26573 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
26574 (record_last_reg_set_info): Likewise.
26575 * reg-stack.c (convert_regs_exit): Likewise.
26576 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
26577 * resource.c (update_live_status): Likewise.
26578 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
26580 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26582 * rtl.h (reg_info): Add an nregs field.
26583 (REG_NREGS): Use it.
26584 (SET_REGNO_RAW): Delete.
26585 (set_regno_raw): New function.
26586 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
26587 (END_REGNO): Redefine in terms of REG_NREGS.
26588 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
26590 * emit-rtl.c (set_mode_and_regno): Likewise.
26591 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
26592 instead of SET_REGNO_RAW.
26594 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26596 * rtl.h (PUT_MODE_RAW): New macro.
26597 (PUT_REG_NOTE_KIND): Use it.
26598 (set_mode_and_regno): Declare.
26599 (gen_raw_REG): Change regno to "unsigned int".
26600 (gen_rtx_REG): Change "unsigned" to "unsigned int".
26601 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
26602 use set_mode_and_regno to change the mode of registers.
26603 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
26604 * emit-rtl.c (set_mode_and_regno): New function.
26605 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
26606 * caller-save.c (reg_save_code): Use set_mode_and_regno.
26607 * expr.c (init_expr_target): Likewise.
26608 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26609 * postreload.c (reload_cse_simplify_operands): Likewise.
26611 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26613 * caller-save.c (init_caller_save): Use word_mode and
26614 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
26615 * expr.c (init_expr_target): Likewise.
26616 * ira.c (setup_prohibited_mode_move_regs): Likewise.
26617 * postreload.c (reload_cse_regs_1): Likewise.
26619 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26621 * rtl.def (REG): Change format to "r".
26622 * rtl.h (rtunion): Remove rt_reg.
26623 (reg_info): New structure.
26624 (rtx_def): Add reg field to main union.
26625 (X0REGATTR): Delete.
26626 (REG_CHECK): New macro.
26627 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
26628 * rtl.c (rtx_format): Document "r".
26629 (rtx_code_size): Handle REG specially.
26630 * gengenrtl.c (special_format): Return true for formats
26632 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
26633 Deal with REG_ATTRS after the field loop.
26634 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
26635 * expmed.c (init_expmed): Call gen_raw_REG instead of
26637 * expr.c (init_expr_target): Likewise.
26638 * regcprop.c (maybe_mode_change): Likewise.
26639 * varasm.c (make_decl_rtl): Likewise.
26640 * final.c (leaf_renumber_regs_insn): Return early after
26642 * genemit.c (gen_exp): Handle 'r' fields.
26643 * genpeep.c (match_rtx): Likewise.
26644 * gensupport.c (subst_pattern_match): Likewise.
26645 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
26646 (alter_constraints, subst_dup): Likewise.
26647 * read-rtl.c (read_rtx_code): Likewise.
26648 * print-rtl.c (print_rtx): Likewise.
26649 * genrecog.c (find_operand, find_matching_operand): Likewise.
26650 (validate_pattern, match_pattern_2): Likewise.
26651 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
26652 (rtx_test::regno_field): New function.
26653 (operator ==, safe_to_hoist_p, transition_parameter_type)
26654 (parameter_type_string, print_parameter_value)
26655 (print_nonbool_test, print_test): Handle new enum values.
26656 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
26657 * lra-constraints.c (operands_match_p): Likewise.
26659 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26661 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
26662 Change type of new_regno to unsigned int.
26663 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
26664 new_regno to unsigned int.
26665 (df_ref_change_reg_with_loc): Remove old_regno parameter.
26666 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
26667 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
26668 (SET_REGNO_RAW): Add space after ",".
26670 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26672 * rtl.h (REG_NREGS): New macro
26673 * alias.c (record_set): Use it.
26674 * cfgcleanup.c (mark_effect): Likewise.
26675 * combine.c (likely_spilled_retval_1): Likewise.
26676 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
26677 (move_deaths, distribute_notes): Likewise.
26678 * cselib.c (cselib_record_set): Likewise.
26679 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
26680 * df-scan.c (df_mark_reg): Likewise.
26681 * dse.c (look_for_hardregs): Likewise.
26682 * dwarf2out.c (reg_loc_descriptor): Likewise.
26683 (multiple_reg_loc_descriptor): Likewise.
26684 * expr.c (write_complex_part, read_complex_part): Likewise.
26685 (emit_move_complex): Likewise.
26686 * haifa-sched.c (setup_ref_regs): Likewise.
26687 * ira-lives.c (mark_hard_reg_live): Likewise.
26688 * lra.c (lra_set_insn_recog_data): Likewise.
26689 * mode-switching.c (create_pre_exit): Likewise.
26690 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
26691 (reload_combine_recognize_pattern): Likewise.
26692 (reload_combine_note_use, move2add_record_mode): Likewise.
26693 (reload_cse_move2add): Likewise.
26694 * reg-stack.c (subst_stack_regs_pat): Likewise.
26695 * regcprop.c (kill_value, copy_value): Likewise.
26696 (copyprop_hardreg_forward_1): Likewise.
26697 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
26698 (build_def_use): Likewise.
26699 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
26700 (deps_analyze_insn): Likewise.
26701 * sched-rgn.c (check_live_1, update_live_1): Likewise.
26702 * sel-sched.c (count_occurrences_equiv): Likewise.
26703 * valtrack.c (dead_debug_insert_temp): Likewise.
26705 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
26707 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
26708 * dse.c (note_add_store): Likewise.
26709 * ira-lives.c (mark_hard_reg_dead): Likewise.
26710 * loop-invariant.c (mark_reg_store): Likewise.
26711 (mark_reg_death): Likewise.
26712 * postreload.c (reload_combine): Likewise.
26713 (reload_combine_note_store): Likewise.
26714 (reload_combine_note_use): Likewise.
26715 * recog.c (peep2_reg_dead_p): Likewise.
26717 2015-05-19 Alan Modra <amodra@gmail.com>
26719 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
26720 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
26721 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
26723 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
26724 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
26725 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
26726 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
26728 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
26730 * config/mips/mips.md (JOIN_MODE): New mode iterator.
26731 (join2_load_Store<JOIN_MODE:mode>): New pattern.
26732 (join2_loadhi): Likewise.
26733 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
26734 load-load and store-stores.
26735 * config/mips/mips.opt (mload-store-pairs): New option.
26736 (TARGET_LOAD_STORE_PAIRS): New macro.
26737 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
26738 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
26739 * config/mips/mips.c (mips_load_store_bonding_p): New function.
26741 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
26743 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
26745 * dojump.c (do_compare_rtx_and_jump): Likewise.
26746 * expmed.c (emit_store_flag_1): Likewise.
26747 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
26748 * final.c (sprint_ul): Use std::reverse for reversing a string.
26749 * fold-const.c (extract_muldiv_1): Use std::swap.
26750 * genmodes.c (emit_mode_int_n): Likewise.
26751 * ifcvt.c (dead_or_predicable): Likewise.
26752 * ira-build.c (ira_merge_live_ranges): Likewise.
26753 (swap_allocno_copy_ends_if_necessary): Likewise.
26754 * ira.c (ira_setup_alts): Likewise.
26755 * loop-iv.c (iv_analyze_expr): Likewise.
26756 (implies_p): Likewise.
26757 (canon_condition): Likewise.
26758 * lra-constraints.c (swap_operands): Likewise.
26759 * lra-lives.c (lra_merge_live_ranges): Likewise.
26760 * omega.c (swap): Remove.
26762 (omega_unprotect_1): Use std::swap.
26763 (omega_solve_geq): Likewise.
26764 * optabs.c (expand_binop_directly): Likewise.
26765 (expand_binop): Likewise.
26766 (emit_conditional_move): Likewise.
26767 (emit_conditional_add): Likewise.
26768 * postreload.c (reload_cse_simplify_operands): Likewise.
26769 * reg-stack.c (emit_swap_insn): Likewise.
26770 (swap_to_top): Likewise.
26771 (compare_for_stack_reg): Likewise.
26772 (subst_asm_stack_regs): Likewise.
26773 * reload.c (find_reloads): Likewise.
26774 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
26775 * sel-sched.c (invoke_reorder_hooks): Likewise.
26776 (create_block_for_bookkeeping): Likewise.
26777 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
26778 (lambda_matrix_right_hermite): Use std::swap.
26779 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
26780 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
26781 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
26782 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
26783 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
26784 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
26785 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
26786 * tree-vrp.c (compare_ranges): Likewise.
26787 * var-tracking.c (add_with_sets): Likewise.
26788 (vt_find_locations): Likewise.
26790 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
26792 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
26794 (FBSD_ENDFILE_SPEC): Likewise.
26795 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
26796 config/freebsd-spec.h.
26797 (ENDFILE_SPEC): Likewise.
26799 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
26800 Richard Henderson <rth@redhat.com>
26803 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
26804 Check for a memory location that is not a reference (using an AND)
26805 to an unaligned location here.
26806 * config/alpha/predicates.md (normal_memory_operand): Remove.
26808 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
26810 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
26811 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
26813 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
26815 * config/mips/mips.c (micromips_globals): New variable.
26816 (mips_set_compression_mode): Save and reinitialize target-dependent
26817 state for microMIPS.
26819 2015-05-18 Martin Liska <mliska@suse.cz>
26821 * dbgcnt.def: Add new counter.
26822 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
26824 2015-05-18 Martin Liska <mliska@suse.cz>
26826 * dbgcnt.def: Sort counters.
26827 * opts.c (common_handle_option): Do not compile if
26828 -fdbg-cnt-list is enabled.
26830 2015-05-18 Tom de Vries <tom@codesourcery.com>
26832 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
26833 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
26834 address operator to va_list operand.
26835 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
26837 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
26839 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
26840 * config/s390/s390.c (s390_gimplify_va_arg): Same.
26841 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
26843 2015-05-18 Tom de Vries <tom@codesourcery.com>
26845 * tree-ssa-tail-merge.c: Fix whitespace.
26847 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
26849 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
26850 cortex-a17, and cortex-a17.cortex-a7.
26852 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
26855 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
26857 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
26860 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
26861 QImode inner modes for TARGET_AVX512BW. Force mask operand
26862 to a register for AVX512F modes.
26864 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26866 * toplev.c (emit_debug_global_declarations): Do not output debug info
26867 when doing slim LTO objects.
26869 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26871 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
26872 odr_types_equivalent_p): Declare.
26873 (odr_type_p): Use gcc_checking_assert.
26874 (type_in_anonymous_namespace_p) Declare.
26875 (type_with_linkage_p): Declare.
26876 * common.opt (Wlto-type-mismatch): New warning.
26877 * ipa-devirt.c (compound_type_base): New function.
26878 (odr_or_derived_type_p): New function.
26879 (odr_types_equivalent_p): New function.
26880 (add_type_duplicate): Simplify.
26881 (type_with_linkage_p): Add hack to prevent false positives on C types
26882 (type_in_anonymous_namespace_p): Likewise.
26883 * tree.c (need_assembler_name_p): Use type_with_linkage.
26884 * tree.h (type_in_anonymous_namespace_p): Remove.
26885 * doc/invoke.texi (-Wlto-type-mismatch): Document
26887 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
26889 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
26890 (verify_type): Verify STRING_FLAG.
26892 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
26895 * tree-pretty-print.c (percent_K_format): Replace locus pointer
26896 with accessor function.
26897 * tree-diagnostic.c (diagnostic_report_current_function): Use
26898 diagnostic_location function.
26899 (maybe_unwind_expanded_macro_loc): Likewise.
26900 (virt_loc_aware_diagnostic_finalizer): Likewise.
26901 (default_tree_printer): Replace locus pointer with accessor function.
26902 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
26903 (diagnostic_set_info_translated): Initialize second location.
26904 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
26905 (diagnostic_show_locus): Handle two locations. Call
26906 diagnostic_print_caret_line.
26907 (diagnostic_print_caret_line): New.
26908 (default_diagnostic_starter): Use diagnostic_location function.
26909 (diagnostic_report_diagnostic): Use diagnostic_location function.
26910 (verbatim): Do not set text.locus.
26911 * diagnostic.h (struct diagnostic_info): Remove location field.
26912 (struct diagnostic_context): Make caret_chars an array of two.
26913 (diagnostic_location): New inline.
26914 (diagnostic_expand_location): Handle two locations.
26915 (diagnostic_same_line): New inline.
26916 (diagnostic_print_caret_line): Declare.
26917 (CARET_LINE_MARGIN): New constant.
26918 * pretty-print.c (pp_printf): Do not set text.locus.
26919 (pp_verbatim): Do not set text.locus.
26920 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
26921 (struct text_info): Replace locus pointer with locations
26922 array. Add accessor functions.
26924 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
26925 Zhenqiang Chen <zhenqiang.chen@linaro.org>
26928 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
26929 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
26930 large constants in register instead of splitting them.
26932 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
26935 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
26936 replacements in memory addresses.
26937 (get_unaligned_address): Ditto.
26939 2015-05-16 James Bowman <james.bowman@ftdichip.com>
26941 * config/ft32/*: New files for FT32 port.
26942 * doc/install.texi: Add FT32 information.
26943 * doc/invoke.texi: Add FT32 information.
26944 * doc/md.texi: Add FT32 information.
26945 * doc/contrib.texi: Self added.
26947 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
26949 PR tree-optimization/64454
26950 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
26951 (-1 - A -> ~A): Remove unnecessary condition.
26953 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
26955 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
26956 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
26957 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
26959 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
26961 * ipa-chkp.h (chkp_wrap_function): New.
26962 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
26963 (chkp_wrap_function_name): New.
26964 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
26965 to get wrapper name.
26966 * lto-cgraph.c: Include ipa-chkp.h.
26967 (input_cgraph_1): Avoid alias chain for wrappers.
26969 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
26971 PR middle-end/66134
26972 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
26973 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
26975 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26977 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
26978 (AARCH64_FL_SLOWMUL): Delete.
26979 (AARCH64_FL_CRC): Redefine to 1<<3.
26980 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
26982 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26984 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
26987 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
26989 * config/alpha/alpha.md (extendqidi2): Use general_operand
26990 instead of some_operand for operand[1] predicate.
26991 (extendhidi2): Ditto.
26992 (cbranchdi4): Use general_operand instead of some_operand
26993 for operand[1] and operands[2] predicates.
26994 (cstoredi4): Ditto.
26995 * config/alpha/predicates.md (some_operand): Remove unused predicate.
26996 (some_ni_operand): Ditto.
26998 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
27000 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
27001 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
27002 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
27003 low part of the constant using alpha_emit_set_const_1.
27004 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
27006 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
27008 * varasm.c (output_constant_pool_1): Pass down alignment from
27009 constant pool entry's descriptor to output_constant_pool_2.
27010 (output_object_block): Add comment prior to call to
27011 output_constant_pool_1.
27013 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
27015 PR rtl-optimization/65862
27016 * target.def (ira_change_pseudo_allocno_class): New hook.
27017 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
27019 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
27020 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
27022 * ira-costs.c (find_costs_and_classes): Call the hook and change
27023 classes when it is necessary.
27024 * doc/tm.texi: Update.
27026 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
27028 * config/i386/i386.md (sibcall_memory): Check that register with
27029 callee address is not also used as one of the arguments, instead
27030 of checking that it is not live after the sibcall.
27031 (sibcall_pop_memory): Ditto.
27032 (sibcall_value_memory): Ditto.
27033 (sibcall_value_pop_memory): Ditto.
27035 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
27037 * generic-match-head.c (types_match): Handle non-types.
27038 * gimple-match-head.c (types_match): Likewise.
27039 * match.pd: Remove unnecessary TREE_TYPE for types_match.
27041 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
27043 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
27044 (csneg3<mode>_insn): Enable expansion of pattern.
27046 2015-05-14 Nick Clifton <nickc@redhat.com>
27048 * config/rl78/rl78.c (rl78_select_section): Select the correct
27049 default section based upon the category of the decl.
27051 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
27053 PR rtl-optimization/30967
27054 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
27055 destination mode for the cost of scc patterns.
27057 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
27059 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
27060 using SWIM248 mode iterator.
27061 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
27062 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
27063 for operand[2] constraint.
27064 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
27066 2015-05-13 Jakub Jelinek <jakub@redhat.com>
27068 PR middle-end/66133
27069 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
27070 make sure it is never noreturn, even when the task body does not
27072 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
27073 right before GIMPLE_OMP_RETURN.
27074 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
27075 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
27076 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
27078 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27080 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
27081 * tree-ssa-math-opts.c: Include params.h
27082 (pow_synth_sqrt_info): New struct.
27083 (representable_as_half_series_p): New function.
27084 (get_fn_chain): Likewise.
27085 (print_nested_fn): Likewise.
27086 (dump_fractional_sqrt_sequence): Likewise.
27087 (dump_integer_part): Likewise.
27088 (expand_pow_as_sqrts): Likewise.
27089 (gimple_expand_builtin_pow): Use above to attempt to expand
27090 pow as series of square roots. Removed now unused variables.
27092 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
27094 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
27095 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
27096 Remove *p0 and *p1 arguments. Rewrite function.
27097 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
27098 (alpha_split_const_mov): Update calls to alpha_extract_integer and
27099 alpha_emit_set_long_const.
27100 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
27101 (alpha_output_mi_thunk_osf): Ditto.
27102 * config/alpha/alpha.md (movti): Do not check operands[1]
27105 2015-05-13 Richard Biener <rguenther@suse.de>
27107 PR tree-optimization/66129
27108 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
27110 (vect_schedule_slp_instance): Fix typo.
27112 2015-05-13 David Malcolm <dmalcolm@redhat.com>
27114 * common.opt (fdump-internal-locations): New option.
27115 * input.c: Include diagnostic-core.h.
27116 (get_end_location): New function.
27117 (write_digit): New function.
27118 (write_digit_row): New function.
27119 (dump_location_range): New function.
27120 (dump_labelled_location_range): New function.
27121 (dump_location_info): New function.
27122 * input.h (dump_location_info): New prototype.
27123 * toplev.c (compile_file): Handle flag_dump_locations.
27125 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
27127 * gimple-expr.h (is_gimple_constant): Reorder.
27128 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
27130 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
27132 * combine.c (simplify_set): When generating a CC set, if the
27133 source already is in the correct mode, do not wrap it in a
27134 compare. Simplify the rest of that code.
27136 2015-05-13 Richard Biener <rguenther@suse.de>
27138 PR tree-optimization/66123
27139 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
27142 2015-05-13 Richard Biener <rguenther@suse.de>
27144 PR middle-end/66110
27145 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
27147 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
27149 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
27151 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
27152 * aclocal.m4: Regenerated with automake-1.11.6.
27154 2015-05-13 Tom de Vries <tom@codesourcery.com>
27156 PR tree-optimization/66010
27157 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
27158 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
27159 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
27160 and rval based on do_deref.
27162 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
27165 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
27166 link time constants into adress expressions and therefore set
27169 2015-05-13 Jakub Jelinek <jakub@redhat.com>
27172 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
27173 Use SWI248 iterator instead of SWI.
27174 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
27175 Use eq_attr "alternative" "0" instead of match_test in
27176 length_immediate attribute computation.
27177 (*mulvhi4, *mulvhi4_1): New define_insns.
27180 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
27181 SIGNED to get precision of non-negative value.
27183 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
27186 * function.c (diddle_return_value_1): Process bounds first.
27187 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
27190 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
27192 PR rtl-optimization/64616
27193 * loop-invariant.c (can_move_invariant_reg): New.
27194 (move_invariant_reg): Call above new function to decide whether
27195 instruction can just be moved, skipping creation of temporary
27198 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
27200 PR target/pr66047.c
27201 * i386.c (ix86_function_sseregparm): Only return -1 if local function
27202 with implied regparm is called from -mno-sse function.
27203 (init_cumulative_args): Output error if ix86_function_sseregparm
27204 return -1 and SSE register would be needed.
27205 (function_arg_advance_32): Likewise.
27206 (function_arg_32): Likewise.
27207 * i386.h (ix86_args): Add decl field.
27209 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
27212 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
27213 inlines across optimization boundary.
27215 2015-05-12 Jason Merrill <jason@redhat.com>
27217 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
27218 string literal and macro name.
27220 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
27222 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
27223 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
27224 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
27226 2015-05-12 David Malcolm <dmalcolm@redhat.com>
27228 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
27229 (-Wmisleading-indentation): New option.
27230 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
27232 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
27234 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
27235 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
27236 (alpha_extract_integer): Ditto.
27237 (alpha_legitimate_constant_p): Ditto.
27238 (alpha_split_tmode_pair): Ditto.
27239 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
27240 (alpha_expand_mov): Ditto.
27241 (print_operand): Remove handling of 'H' modifier.
27242 <case 'm'>: Remove CONST_DOUBLE handling.
27243 (summarize_insn): Handle CONST_WIDE_INT.
27244 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
27246 (movti): Handle CONST_WIDE_INT.
27247 * config/alpha/constraints.md ('H'): Remove constraint definition.
27248 ('G'): Do not match MODE_FLOAT class.
27249 * config/alpha/predicates.md (const0_operand): Also match
27251 (non_add_const_operand): Ditto.
27252 (non_zero_const_operand): Ditto.
27253 (some_operand): Ditto.
27254 (input_operand): Ditto. Handle CONST_WIDE_INT.
27255 (and_operand): Do not match const_double.
27256 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
27258 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
27261 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
27262 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
27263 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
27264 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
27265 is_mm_seq_cst, is_mm_sync): New accessor functions.
27266 * builtins.c (expand_builtin_sync_operation,
27267 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
27268 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
27269 (get_memmodel, expand_builtin_atomic_compare_exchange,
27270 expand_builtin_atomic_load, expand_builtin_atomic_store,
27271 expand_builtin_atomic_clear): Use new accessor routines.
27272 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
27273 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
27274 (maybe_emit_sync_lock_test_and_set): Use new accessors and
27275 MEMMODEL_SYNC_ACQUIRE.
27276 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
27277 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
27278 expand_atomic_store): Use new accessors.
27279 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
27280 * tsan.c (instrument_builtin_call): Update check for memory model beyond
27281 final enum to use MEMMODEL_LAST.
27282 * c-family/c-common.c: Use new accessor for memmodel_base.
27283 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
27285 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
27286 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
27287 mem_thread_fence, *dmb): Likewise.
27288 * config/alpha/alpha.c (alpha_split_compare_and_swap,
27289 alpha_split_compare_and_swap_12): Likewise.
27290 * config/arm/arm.c (arm_expand_compare_and_swap,
27291 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
27292 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
27293 atomic_loaddi): Likewise.
27294 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
27296 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
27297 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
27299 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
27300 atomic_store<mode>, atomic_compare_and_swap<mode>,
27301 atomic_exchange<mode>): Use new accessors.
27302 * config/mips/mips.c (mips_process_sync_loop): Likewise.
27303 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
27304 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
27305 rs6000_post_atomic_barrier): Add new cases.
27306 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
27307 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
27308 (atomic_load<mode>): Add new cases and use new accessors.
27309 (store_quadpti): Add new cases.
27310 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
27312 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
27313 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
27316 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
27318 * ipa-devirt.c (type_with_linkage_p): New function.
27319 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
27321 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
27322 (can_be_name_hashed_p): Simplify.
27323 (hash_odr_name): Check that type has linkage before checking if it is
27325 (types_same_for_odr): Likewise.
27326 (odr_name_hasher::equal): Likewise.
27327 (odr_subtypes_equivalent_p): Likewise.
27328 (warn_types_mismatch): Likewise.
27329 (get_odr_type): Likewise.
27330 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
27331 * ipa-utils.h (odr_type_p): Move offline.
27332 * tree.c (need_assembler_name_p): Fix handling of types
27334 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
27336 2015-05-12 David Malcolm <dmalcolm@redhat.com>
27338 * timevar.c (timevar_enable): Delete in favor of...
27339 (g_timer): New global.
27340 (struct timevar_def): Move to timevar.h inside class timer.
27341 (struct timevar_stack_def): Likewise.
27342 (timevars): Delete global in favor of field "m_timevars" within
27343 class timer in timevar.h
27344 (stack): Likewise, in favor of field "m_stack".
27345 (unused_stack_instances): Likewise, in favor of field
27346 "m_unused_stack_instances".
27347 (start_time): Likewise, in favor of field "m_start_time".
27348 (get_time): Eliminate check for timevar_enable.
27349 (timer::timer): New function, built from part of timevar_init.
27350 (timevar_init): Rewrite idempotency test from using
27351 "timevar_enable" bool to using dynamic allocation of "g_timer".
27352 Move rest of implementation into timer's constructor.
27353 (timevar_push_1): Rename to...
27354 (timer::push): ...this, adding "m_" prefixes to variables that
27355 are now fields of timer.
27356 (timevar_pop_1): Likewise, rename to...
27357 (timer::pop): ...this, and add "m_" prefixes.
27358 (timevar_start): Replace test for "timevar_enable" with one for
27359 "g_timer", and move bulk of implementation to...
27360 (timer::start): ...here, adding "m_" prefixes.
27361 (timevar_stop): Likewise, from here...
27362 (timer::stop): ...to here.
27363 (timevar_cond_start): Likewise, from here...
27364 (timer::cond_start): ...to here.
27365 (timevar_cond_stop): Likewise, from here...
27366 (timer::cond_stop): ...to here.
27367 (validate_phases): Rename to...
27368 (timer::validate_phases): ...this, and add "m_" prefixes. Make
27369 locals "total" and "tv" const.
27370 (timevar_print): Rename to...
27371 (timer::print): ...this, and add "m_" prefixes. Make locals
27372 "total" and "tv" const. Eliminate test for timevar_enable.
27373 * timevar.h (timevar_enable): Eliminate.
27374 (g_timer): New declaration.
27375 (timevar_push_1): Eliminate.
27376 (timevar_pop_1): Eliminate.
27377 (timevar_print): Eliminate.
27378 (class timer): New class.
27379 (timevar_push): Rewrite to use g_timer.
27380 (timevar_pop): Likewise.
27381 * toplev.c (toplev::~toplev): Likewise.
27383 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
27385 * arm-protos.h (arm_sched_autopref): Delete.
27386 (tune_params): Re-organize, use enums for flag values.
27387 (FUSE_OPS): New macro.
27388 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
27389 (ARM_PREFETCH_BENEFICIAL): Likewise.
27390 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
27391 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
27392 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
27393 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
27394 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
27395 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
27396 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
27397 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
27399 (arm_option_override, thumb2_reorg, arm_print_tune_info)
27400 (aarch_macro_fusion_pair_p): Update uses of current_tune.
27401 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
27403 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
27405 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
27408 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
27409 Sandra Loosemore <sandra@codesourcery.com>
27411 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
27413 (REG_CLASS_NAMES): Add "IJMP_REGS".
27414 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
27415 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
27416 use new "c" register constraint.
27417 * config/nios2/constraint.md (c): New register constraint
27418 corresponding to IJMP_REGS.
27420 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27422 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
27423 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
27424 define_splits): Delete, revamp, transmogrify into ...
27425 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
27426 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
27427 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
27430 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27432 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
27433 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
27435 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27437 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
27438 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
27439 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
27440 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
27441 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
27442 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
27443 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
27444 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
27445 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
27446 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
27447 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
27448 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
27449 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
27450 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
27451 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
27452 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
27453 and 30 corresponding splitters): Delete.
27455 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27457 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
27460 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27462 * combine.c (recog_for_combine_1): New function, factored out
27463 from recog_for_combine.
27464 (change_zero_ext): New function.
27465 (recog_for_combine): If recog fails, try again with the pattern
27466 modified by change_zero_ext; if that still fails, restore the
27469 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
27471 * combine.c (get_undo_marker): New function.
27472 (undo_to_marker): New function, largely factored out from ...
27473 (undo_all): ... this. Adjust.
27475 2015-05-12 Richard Biener <rguenther@suse.de>
27477 PR tree-optimization/66101
27478 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
27479 fixup if we turn a loop exit edge to a fallthru edge.
27481 2015-05-12 Richard Biener <rguenther@suse.de>
27483 PR tree-optimization/37021
27484 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
27485 (SLP_TREE_TWO_OPERATORS): New define.
27486 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
27487 SLP_TREE_TWO_OPERATORS.
27488 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
27490 (vect_build_slp_tree): Adjust.
27491 (vect_analyze_slp_cost_1): Likewise.
27492 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
27493 emitting two vector stmts and mixing the results.
27495 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
27497 * call.c (print_z_candidates): Remove dead code.
27499 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27501 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
27502 and zEC12_simple_fp.
27503 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
27506 2015-05-12 Tom de Vries <tom@codesourcery.com>
27508 PR tree-optimization/66010
27509 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
27511 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
27512 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
27513 va_lists are passed, and remove corresponding handling.
27514 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
27515 do_deref argument to ifn_va_arg.
27516 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
27519 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27522 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
27523 REG before taking its REGNO.
27525 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
27527 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
27528 rsp->sign_bit_copies and rsp->nonzero_bits into ...
27529 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
27530 present to get more accurate information about the number of sign bit
27531 copies and non zero bits.
27533 2015-05-12 Richard Biener <rguenther@suse.de>
27535 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
27536 do not allow unrolling.
27538 2015-05-11 Richard Henderson <rth@redhat.com>
27540 * config/i386/i386-modes.def (CCP): New.
27541 * config/i386/i386.c (put_condition_code): Handle it.
27542 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
27544 2015-05-11 Richard Henderson <rth@redhat.com>
27546 * target.def (md_asm_clobbers): Replace with...
27547 (md_asm_adjust): this.
27548 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
27549 (TARGET_MD_ASM_ADJUST): New.
27550 * tm.texi: Rebuild.
27551 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
27552 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
27553 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
27555 * cfgexpand.c (check_operand_nalternatives): Accept vector of
27556 constraints instead of lists of outputs and inputs.
27557 (expand_asm_stmt): Save and restore input_location around the
27558 body of the function. Move asm data into vectors instead of
27559 building tree lists. Generate cleanup sequences as needed,
27560 rather than waiting til the end. Use new md_asm_adjust hook.
27562 * config/vxworks.c: Include vec.h before target.h.
27563 * gimple.c: Likewise.
27564 * incpath.c: Likewise.
27565 * mode-switching.c: Likewise.
27567 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
27568 (cris_md_asm_adjust): this.
27569 (TARGET_MD_ASM_CLOBBERS): Remove.
27570 (TARGET_MD_ASM_ADJUST): New.
27571 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
27572 (ix86_md_asm_adjust): this.
27573 (TARGET_MD_ASM_CLOBBERS): Remove.
27574 (TARGET_MD_ASM_ADJUST): New.
27575 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
27576 (mn10300_md_asm_adjust): this.
27577 (TARGET_MD_ASM_CLOBBERS): Remove.
27578 (TARGET_MD_ASM_ADJUST): New.
27579 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
27580 (rs6000_md_asm_adjust): this.
27581 (TARGET_MD_ASM_CLOBBERS): Remove.
27582 (TARGET_MD_ASM_ADJUST): New.
27583 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
27584 (visium_md_asm_adjust): this.
27585 (TARGET_MD_ASM_CLOBBERS): Remove.
27586 (TARGET_MD_ASM_ADJUST): New.
27588 2015-05-11 Richard Henderson <rth@redhat.com>
27590 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
27591 if noutputs is zero.
27592 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
27594 * cfgexpand.c (expand_asm_operands): Merge into...
27595 (expand_asm_stmt): ... here.
27597 * cfgexpand.c (expand_asm_operands): Don't call
27598 resolve_asm_operand_names.
27599 * stmt.c (resolve_asm_operand_names): Clarify block comment.
27601 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
27603 * dwarf2out.c (gen_member_die): Sanity check that we access
27604 TYPE_MAIN_VARIANT for TYPE_METHODS.
27605 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
27606 checking TYPE_METHODS.
27607 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
27609 (build_distinct_type_copy): Clear TYPE_METHODS.
27610 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
27611 (verify_type): Allow TYPE_METHODS to be error_mark_node.
27612 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
27614 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
27616 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
27617 (emit_pattern_before_setloc): Likewise.
27619 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
27621 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
27622 for define_peephole2s.
27623 (get_peephole2_pattern): New function.
27624 (main): Use it. Call validate_pattern.
27626 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
27628 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
27629 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
27630 (Last callee saved reg is different for AVR_TINY architecture)
27632 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
27634 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
27635 when looking for memory references.
27637 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
27640 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
27641 via function pointers.
27643 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
27645 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
27646 indirect call by forcing address into a pseudo with -fno-plt.
27647 * common.opt (flag_plt): New option.
27648 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
27649 ([-fno-plt]): Document.
27651 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
27654 * config/rs6000/option-defaults.h: Add space between string literal
27657 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
27659 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
27660 accross ARM targets.
27662 2015-05-11 Christian Bruel <christian.bruel@st.com>
27664 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
27665 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
27667 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
27669 PR rtl-optimization/66076
27670 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
27671 Don't grow the heap array if it is already big enough from a
27672 previous iteration.
27674 2015-05-11 Christian Bruel <christian.bruel@st.com>
27676 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
27677 (is_called_in_ARM_mode): Remove.
27678 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
27679 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
27680 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
27681 arm_declare_function_name.
27683 2015-05-11 Christian Bruel <christian.bruel@st.com>
27685 * config/arm/arm.c (arm_option_override): Reoganized and split into :
27686 (arm_option_params_internal); New function.
27687 (arm_option_check_internal): New function.
27688 (arm_option_override_internal): New function.
27689 (thumb_code, thumb1_code): Remove.
27690 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
27691 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
27692 (thumb_code, thumb1_code): Remove.
27693 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
27695 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
27697 * config/alpha/alpha.c (alpha_emit_set_const_1)
27698 (alpha_emit_set_long_const, alpha_extract_integer)
27699 (alpha_legitimate_constant_p, alpha_split_const_mov)
27700 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
27701 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27702 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
27704 * config/alpha/predicates.md (mode_mask_operand): Do not match
27706 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27707 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
27708 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
27709 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
27710 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
27712 2015-05-11 Jakub Jelinek <jakub@redhat.com>
27715 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
27716 default_binds_local_p_2.
27717 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
27718 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
27720 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27722 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
27724 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27726 Patch by Richard Biener
27727 * coverage.c (coverage_obj_init): Delay building of type variant
27728 until the type is finished.
27730 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27732 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
27733 mismatch between C and C++ type; compoare correctly ARG_TYPES
27734 for non-prototypes and output correctly parameter index for METHOD_TYPE.
27735 (odr_types_equivalent_p): Fix wording of warning about attributes;
27736 it is OK to match prototype and non-prototype.
27738 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27740 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
27741 TYPE_ARG_TYPES list.
27742 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
27743 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
27745 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
27747 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
27748 * tree.h (is_lang_specific): Constify.
27750 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
27752 PR tree-optimization/64454
27753 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
27756 2015-05-08 Jason Merrill <jason@redhat.com>
27758 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
27759 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
27760 config/darwin.h, config/darwin9.h, config/elfos.h,
27761 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
27762 config/microblaze/microblaze.h, config/mips/mips.h,
27763 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
27764 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
27765 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
27766 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
27767 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
27768 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
27769 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
27770 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
27771 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
27772 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
27773 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
27774 between string literal and macro name.
27776 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27778 * jump.c: Change argument types to rtx_insn *.
27781 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27783 * lra-constraints.c: Change argument type to rtx_insn *.
27785 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27787 * df-problems.c: Change argument type to rtx_insn *.
27789 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27791 * combine.c: Change argument type to rtx_insn *.
27793 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27796 * rtlanal.c: Change argument type to rtx_insn *.
27798 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27800 * sched-deps.c: Change argument types to rtx_insn *.
27801 * sched-int.h: Adjust.
27803 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27805 * dwarf2cfi.c: Change argument type to rtx_insn *.
27807 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27809 * ira.c (decrease_live_ranges_number): Changetype of local
27810 variable to rtx_insn *.
27811 * recog.c: Change argument types to rtx_insn *.
27814 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27816 * reorg.c: Change argument types to rtx_insn *.
27818 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27820 * ira-color.c: Change argument types to rtx_insn *.
27821 * lra-eliminations.c: Likewise.
27824 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27826 * gcse.c: Change argument types to rtx_insn *.
27828 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27830 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
27832 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27834 * emit-rtl.c (emit_debug_insn_before): Change argument type to
27838 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27840 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
27843 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27845 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
27848 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27850 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
27853 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27855 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
27858 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27860 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
27864 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27866 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
27870 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27872 * except.c (can_nonlocal_goto): Change type of argument to
27876 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27878 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
27881 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27883 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
27884 * cfgrtl.c (can_delete_label_p): Adjust.
27887 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27889 * reorg.c (stop_search_p): Change argument to rtx_insn *.
27891 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27893 * except.c (make_reg_eh_region_note): Change argument to
27895 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
27896 * except.h: Adjust.
27898 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27900 * mode-switching.c (commit_mode_sets): Change type of local
27901 variable from rtx to rtx_insn *.
27903 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
27905 * doc/install.texi (--enable-languages): Add missing jit and lto info.
27906 Add ^ to grep command.
27907 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
27908 arg to last gimple_simplify declaration. Add missing gimple_build
27909 declaration for built-in function case with four tree args.
27911 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27912 Szabolcs Nagy <szabolcs.nagy@arm.com>
27914 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
27915 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
27916 (GNU_USER_DYNAMIC_LINKERN32): Update.
27918 2015-05-08 Richard Biener <rguenther@suse.de>
27920 PR tree-optimization/66036
27921 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
27922 Handle strided group loads.
27923 (vect_verify_datarefs_alignment): Likewise.
27924 (vect_enhance_data_refs_alignment): Likewise.
27925 (vect_analyze_group_access): Likewise.
27926 (vect_analyze_data_ref_access): Likewise.
27927 (vect_analyze_data_ref_accesses): Likewise.
27928 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
27929 (vectorizable_load): Likewise.
27931 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
27933 * config/rs6000/rs6000.md: Require operand inequality in one
27936 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
27937 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
27939 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
27941 * config/rx/rx.md (movdi, movdf): Likewise.
27942 Likewise for define_peephole2s.
27944 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27946 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
27947 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
27948 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
27949 vtst_u64): Rewrite using gcc vector extensions.
27951 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27953 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
27954 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
27956 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
27958 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
27960 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
27962 * config/glibc-stdint.h (OPTION_MUSL): Define.
27963 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
27964 Change the definition based on OPTION_MUSL for 64 bit targets.
27965 * config/linux.h (OPTION_MUSL): Redefine.
27966 * config/alpha/linux.h (OPTION_MUSL): Redefine.
27967 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
27968 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
27970 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
27971 Szabolcs Nagy <szabolcs.nagy@arm.com>
27973 * config.gcc (LIBC_MUSL): New tm_defines macro.
27974 * config/linux.h (OPTION_MUSL): Define.
27975 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
27976 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
27977 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
27978 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
27979 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
27980 * config/linux.opt (mmusl): New option.
27981 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
27982 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
27983 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
27984 * configure: Regenerate.
27986 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
27987 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
27990 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
27991 * config/i386/knetbsd-gnu64.h: New file.
27993 2015-05-08 Marek Polacek <polacek@redhat.com>
27996 * doc/invoke.texi: Document -Woverride-init-side-effects.
27998 2015-05-07 Marek Polacek <polacek@redhat.com>
28001 * doc/invoke.texi: Document -Wshift-negative-value.
28003 2015-05-06 Aditya Kumar <hiraditya@msn.com>
28005 * gcov-tool.c (do_merge): Refactore to remove int ret.
28006 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
28007 !type == FUNC to type != FUNC.
28008 * reload.h (struct target_reload): Changee to type of
28009 x_spill_indirect_levels from bool to unsigned char.
28011 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
28013 * rtl.h (always_void_p): New function.
28014 * gengenrtl.c (always_void_p): Likewise.
28015 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
28016 with code foo are always VOIDmode.
28017 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
28018 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
28019 compare-elim.c, config/aarch64/aarch64.c,
28020 config/aarch64/aarch64.md, config/alpha/alpha.c,
28021 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
28022 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
28023 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
28024 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
28025 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
28026 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
28027 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
28028 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
28029 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
28030 config/ia64/vect.md, config/iq2000/iq2000.c,
28031 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
28032 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
28033 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
28034 config/mep/mep.c, config/microblaze/microblaze.c,
28035 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
28036 config/mn10300/mn10300.c, config/msp430/msp430.c,
28037 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
28038 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
28039 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
28040 config/rs6000/altivec.md, config/rs6000/rs6000.c,
28041 config/rs6000/rs6000.md, config/rs6000/vector.md,
28042 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
28043 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
28044 config/sh/sh.md, config/sh/sh_treg_combine.cc,
28045 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
28046 config/spu/spu.md, config/stormy16/stormy16.c,
28047 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
28048 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
28049 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
28050 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
28051 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
28052 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
28053 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
28054 var-tracking.c: Update calls accordingly.
28056 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
28059 PR middle-end/54303
28060 * varasm.c (function_mergeable_rodata_prefix): New function.
28061 (mergeable_string_section): Use it.
28062 (mergeable_constant_section): Use it.
28064 2015-05-07 Jeff Law <law@redhat.com>
28067 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28068 simplifier to narrow arithmetic.
28069 * generic-match-head.c: (types_match, single_use): New functions.
28070 * gimple-match-head.c: (types_match, single_use): New functions.
28072 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28074 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
28077 2015-05-07 Richard Biener <rguenther@suse.de>
28079 PR tree-optimization/66002
28080 * passes.def: Schedule another pass_merge_phi after ifcombine, right
28083 2015-05-07 Marek Polacek <polacek@redhat.com>
28084 Martin Uecker <uecker@eecs.berkeley.edu>
28086 * doc/invoke.texi: Document -fsanitize=bounds-strict.
28087 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
28088 into SANITIZE_NONDEFAULT.
28089 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
28091 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
28094 * config/alpha/alpha.c (alpha_override_options_after_change): New.
28095 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
28096 (alpha_override_options): Move align_loops, align_jumps and
28097 align_functions handling into alpha_override_options_after_change.
28099 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
28100 Chris Jones <chrisj@nvidia.com>
28101 Joshua Conner <jconner@nvidia.com>
28103 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
28104 linking of crtfastmath.o.
28105 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
28107 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
28109 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
28110 (cstore<mode>4_unsigned_imm): New expander.
28111 (cstore<mode>4): Remove empty constraint strings. Use the new
28114 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
28117 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
28120 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
28122 * config/aarch64/geniterators.sh: Use standard BRE in sed.
28124 2015-05-06 Alan Modra <amodra@gmail.com>
28127 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
28128 (UNSPEC_NOP): Define.
28129 (reload_vsx_from_gpr<mode>): Add missing DONE.
28130 (reload_gpr_from_vsx<mode>): Likewise.
28131 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
28132 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
28134 2015-05-06 Christian Bruel <christian.bruel@st.com>
28137 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
28138 align_jumps, align_functions into aarch64_override_options_after_change.
28140 2015-05-06 Richard Biener <rguenther@suse.de>
28142 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
28143 vect_transform_slp_perm_load to check if we support a permutation
28144 for basic-block vectorization.
28146 2015-05-06 Nick Clifton <nickc@redhat.com>
28148 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
28149 used, even if it is not being used as a frame pointer.
28151 2015-05-05 Jason Merrill <jason@redhat.com>
28153 * dwarf2out.c (gen_member_die): Don't emit anything for an
28154 anonymous class constructor.
28156 2015-05-05 David Malcolm <dmalcolm@redhat.com>
28158 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
28159 that it reflects the block structure.
28160 (afdo_propagate_edge): Likewise.
28161 (afdo_calculate_branch_prob): Likewise.
28162 (afdo_annotate_cfg): Likewise.
28163 * cfgcleanup.c (equal_different_set_p): Likewise.
28164 (try_crossjump_to_edge): Likewise.
28165 * cgraph.c (cgraph_node::verify_node): Likewise.
28166 * cgraphunit.c (expand_all_functions): Likewise.
28167 * config/i386/i386.c (ix86_expand_copysign): Likewise.
28168 (exact_dependency_1): Likewise.
28169 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
28170 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
28171 * gensupport.c (process_define_subst): Likewise.
28172 * lto-wrapper.c (merge_and_complain): Likewise.
28173 * tree-if-conv.c (if_convertible_bb_p): Likewise.
28174 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
28175 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
28176 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
28177 * tree-vect-loop.c (vectorizable_reduction): Likewise.
28178 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
28179 * tree-vect-stmts.c (vectorizable_shift): Likewise.
28180 * tree-vrp.c (vrp_finalize): Likewise.
28181 * tree.c (variably_modified_type_p): Likewise.
28183 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
28185 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
28186 on darwin12 and later.
28187 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
28188 file to pass -rdynamic on darwin12 and later.
28189 * config/darwin.opt (rdynamic): Add.
28191 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
28193 * doc/extend.texi (C Extensions): Update menu for moved Variable
28194 Attributes and Type Attributes sections.
28196 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
28199 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
28200 if rep_8byte stringop strategy was specified for 32-bit target.
28202 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
28205 * config/i386/i386.md (vector convert to float spltiter): Check for
28206 xmm16+, when splitting scalar float conversion.
28207 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
28209 2015-05-05 Nick Clifton <nickc@redhat.com>
28211 * config/msp430/msp430-opts.h (enum msp430_regions): New.
28212 * config/msp430/msp430.c (msp430_override_options): Complain if
28213 -mcode-region or -mdata-region is used on a non MSP430X.
28214 (msp430_section_attr): New function. Checks lower, upper and
28216 (msp430_attribute_table): Add lower, upper and either.
28217 (gen_prefix): New function. Generates a prefix for a section
28219 (msp430_select_section): New function - handles the choice of
28220 section for an object. Takes into account memory region
28221 attributes and options.
28222 (msp430_function_section): Use gen_prefix.
28223 (TARGET_SECTION_TYPE_FLAGS): Define.
28224 (msp430_section_type_flags): New function.
28225 (TARGET_ASM_UNIQUE_SECTION): Define.
28226 (msp430_unique_section): New function.
28227 (msp430_output_aligned_decl_common): New function.
28228 (msp430_do_not_relax_short_jumps): New function.
28229 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
28231 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
28232 * config/msp430/msp430-protos.h
28233 (msp430_do_not_relax_short_jumps): New prototype.
28234 (msp430_output_aligned_decl_common): New prototype.
28235 * config/msp430/msp430.md (length): New attribute.
28236 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
28237 then use a long code sequence for short jumps.
28238 * config/msp430/msp430.opt (mcode-region): New.
28239 (mdata-region): New.
28240 * doc/invoke.texi: Document new options.
28241 * doc/extend.texi: Document new attributes.
28243 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
28245 * config/aarch64-protos.h (struct cpu_branch_cost): New.
28246 (tune_params): Add field branch_costs.
28247 (aarch64_branch_cost): Declare.
28248 * config/aarch64.c (generic_branch_cost): New.
28249 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
28250 (cortexa53_tunings): Likewise.
28251 (cortexa57_tunings): Likewise.
28252 (thunderx_tunings): Likewise.
28253 (xgene1_tunings): Likewise.
28254 (aarch64_branch_cost): Define.
28255 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
28257 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
28259 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
28260 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
28261 * config/i386/i386.md: Ditto.
28262 * config/i386/winnt.c: Ditto.
28264 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
28266 * doc/extend.texi (__atomic Builtins): Move implementation details
28267 to the end of the description, rewrite opening paragraphs, state
28268 difference with __sync builtins, state C11/C++11 assumptions,
28269 weaken itemized descriptions, add explanation of memory model
28270 behaviour, expand description of compare-exchange, simplify text.
28272 2015-05-05 Renlin Li <renlin.li@arm.com>
28274 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
28276 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
28278 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
28279 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28280 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
28281 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
28282 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
28283 * configure: Regenerate.
28284 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
28285 * doc/install.texi (aarch64*-*-*): Document new
28286 --enable-fix-cortex-a53-843419 option.
28287 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
28288 and -mno-fix-cortex-a53-843419 options.
28290 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
28293 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
28295 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
28297 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
28298 fix overactive TYPE_MIN_VALUE check and add FIXME for type
28299 compatibility problems.
28301 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
28303 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
28305 (cbranchsi4_reg): New.
28306 * config/microblaze/microblaze.c
28307 (microblaze_expand_conditional_branch_reg): New.
28308 * config/microblaze/microblaze-protos.h
28309 (microblaze_expand_conditional_branch_reg): New prototype.
28311 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
28313 * config/microblaze/microblaze.md (peephole2): New.
28315 2015-05-04 Jeff Law <law@redhat.com>
28318 2015-05-04 Jeff Law <law@redhat.com>
28320 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28321 simplifier to narrow arithmetic.
28322 * generic-match-head.c: (types_match, single_use): New functions.
28323 * gimple-match-head.c: (types_match, single_use): New functions.
28325 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
28328 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
28329 (split_branches): Likewise.
28331 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
28333 * common.opt (fdelete-null-pointer-checks): Init to -1.
28334 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
28335 override flag_delete_null_pointer_checks default.
28336 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
28337 behavior re address zero. Better document target-specific behavior.
28338 (-fisolate-errneous-paths-dereference): Mention relationship to
28339 -fdelete-null-pointer-checks.
28341 2015-05-04 Jakub Jelinek <jakub@redhat.com>
28343 PR tree-optimization/65984
28344 * ubsan.c: Include tree-cfg.h.
28345 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
28346 stmt_could_throw_p test, rename can_throw variable to ends_bb.
28348 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
28350 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
28351 to CONST_DOUBLE_P predicate.
28352 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
28353 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
28354 allow only operands that satisfy standard_sse_constant_p predicate.
28355 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
28356 to CONST_DOUBLE_P predicate.
28358 2015-05-04 Jeff Law <law@redhat.com>
28360 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
28361 simplifier to narrow arithmetic.
28362 * generic-match-head.c: (types_match, single_use): New functions.
28363 * gimple-match-head.c: (types_match, single_use): New functions.
28365 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
28367 * config/arm/arm.c: Restore bootstrap.
28369 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
28371 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
28372 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
28373 as CONST_WIDE_INT, not CONST_DOUBLE.
28374 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
28375 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
28376 (ix86_find_base_term): Do not check for CONST_DOUBLE.
28377 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
28378 (ix86_build_signbit_mask): Rewrite using wide ints.
28379 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
28380 (ix86_rtx_costs): Handle CONST_WIDE_INT.
28381 (find_constant): Ditto.
28382 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
28383 using gen_int_mode.
28384 * config/i386/predicates.md (x86_64_immediate_operand)
28385 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
28386 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
28387 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
28388 (const0_operand): Also match const_wide_int.
28389 (constm1_operand): Ditto.
28390 (const1_operand): Ditto.
28392 2015-05-04 Richard Biener <rguenther@suse.de>
28394 PR tree-optimization/65965
28395 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
28396 store groups at gaps.
28398 2015-05-04 Richard Biener <rguenther@suse.de>
28400 PR tree-optimization/65935
28401 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
28402 then make sure to apply that swapping to the IL.
28404 2015-05-04 Jakub Jelinek <jakub@redhat.com>
28406 * Makefile.in (PATCHLEVEL_c): New variable.
28407 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
28408 expand the same way as if DEVPHASE_c was non-empty.
28410 2015-05-04 Kai Tietz <ktietz@redhat.com>
28413 * lto-wrapper.c (run_gcc): Open filename
28416 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
28418 * doc/extend.texi (Variable Attributes, Type Attributes): Move
28419 sections up in file, to immediately after the Function Attributes
28422 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
28424 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
28426 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28428 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
28429 (insert_partition_copy_on_edge): Adjust.
28430 (insert_rtx_to_part_on_edge): Likewise.
28431 (insert_part_to_rtx_on_edge): Likewise.
28433 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28435 * function.c (set_return_jump_label): Change type of argument to
28437 * function.h (set_return_jump_label): Adjust.
28439 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28441 * reload.h (struct reg_equivs_t): Change type of init to
28443 * ira.c (fix_reg_equiv_init): Adjust.
28444 * reload1.c (eliminate_regs_1): Likewise.
28445 (init_eliminable_invariants): Likewise.
28447 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28449 * cselib.c (fp_setter_insn): Take a rtx_insn *.
28450 * cselib.h (fp_setter_insn): Adjust.
28452 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28454 * recog.c (struct validate_replace_src_data): Change type of
28455 insn field to rtx_insn *.
28456 (validate_replace_src_group): Change type of argument to rtx_insn *.
28457 * recog.h (validate_replace_src_group): Adjust.
28459 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28461 * haifa-sched.c: Change the type of some variables to rtx_insn *.
28462 * sched-deps.c: Likewise.
28463 * sched-int.h: Likewise.
28464 * sched-rgn.c: Likewise.
28465 * sel-sched.c: Likewise.
28467 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28470 * config/i386/i386.c: Change the type of some arguments to
28472 * config/arm/arm.c: Likewise.
28474 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28476 * lra-constraints.c: Change type of some arguments to rtx_insn *.
28478 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28480 * regcprop.c (kill_autoinc_value): Change type of argument to
28483 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28485 * genrecog.c (print_subroutine): Adjust.
28486 * recog.c (get_bool_attr_mask_uncached): Likewise.
28487 * recog.h (struct recog_data_d): Change the type of insn to
28490 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28492 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
28494 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28496 * df-problems.c (df_set_note): Change type of argument to
28499 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28501 * builtins.c (expand_builtin_trap): Change type of local
28502 variable to rtx_insn *.
28503 (add_sched_insns_for_speculation): Likewise.
28504 (ix86_emit_save_regs): Likewise.
28505 (get_scratch_register_on_entry): Likewise.
28506 (ix86_emit_restore_reg_using_pop): Likewise.
28507 (ix86_emit_leave): Likewise.
28508 (ix86_emit_restore_regs_using_mov): Likewise.
28509 (ix86_expand_epilogue): Likewise.
28511 (rl78_alloc_physical_registers_umul): Likewise.
28512 * cselib.c (discard_useless_locs): Likewise.
28513 (cselib_invalidate_regno): Likewise.
28514 (cselib_invalidate_mem): Likewise.
28515 * function.c (expand_function_start): Likewise.
28516 (emit_use_return_register_into_block): Likewise.
28517 * gcse.c: Likewise.
28518 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
28519 * ifcvt.c (noce_get_alt_condition): Likewise.
28520 * loop-doloop.c (doloop_condition_get): Likewise.
28521 * lra-constraints.c (inherit_in_ebb): Likewise.
28522 * modulo-sched.c (sms_schedule_by_order): Likewise.
28523 * recog.c (next_insn_tests_no_inequality): Likewise.
28524 * reorg.c (emit_delay_sequence): Likewise.
28525 (update_reg_dead_notes): Likewise.
28526 (fix_reg_dead_note): Likewise.
28527 (fill_slots_from_thread): Likewise.
28528 (delete_computation): Likewise.
28530 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
28532 * doc/extend.texi (Variable Attributes): Add menu and proper
28533 @nodes to subsections. Move Microsoft Windows attributes to
28534 their own subsection.
28535 (Type Attributes): Reorganize introduction to remove duplicate
28536 list of attributes. Add menu and proper @nodes to subsections.
28537 Alphabetize the main table of common attributes.
28539 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
28541 * match.pd: New simplification patterns.
28542 (x + (x & 1)) -> ((x + 1) & ~1)
28543 (x & ~(x & y)) -> ((x & ~y))
28544 (x | ~(x | y)) -> ((x | ~y))
28546 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28548 * target.def (attribute_table): Mention that struct attribute_spec
28549 is defined in tree-core.h rather than tree.h
28550 * doc/tm.texi: Regenerate.
28552 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
28554 * genrecog.c (test): Rename to rtx_test. Update rest of file
28557 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
28559 PR translation/65959
28560 * params.h (DEFPARAM): Rename msgid to nocmsgid.
28562 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28564 * config/aarch64/aarch64-protos.h (tune_params):
28565 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
28566 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
28567 Return value depending on target.
28568 (generic_tunings): Initialize new target settings.
28569 (cortexa53_tunings): Likewise.
28570 (cortexa57_tunings): Likewise.
28571 (thunderx_tunings): Likewise.
28572 (xgene1_tunings): Likewise.
28574 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28576 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
28577 Make Cortex-A53 shift costs more accurate.
28579 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28581 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
28584 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
28586 * config/aarch64/aarch64.c (aarch64_rtx_costs):
28587 Calculate cost of op0 and op1 in PLUS and MINUS cases.
28589 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28591 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
28592 Add cost of op0 in the compare-with-fpzero case.
28594 2015-04-30 David Malcolm <dmalcolm@redhat.com>
28596 * builtins.c (fold_builtin_1): Remove spurious second
28598 * cgraph.h (symtab_node::get_availability): Likewise.
28599 * opts.c (common_handle_option): Remove spurious second semicolon.
28600 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
28601 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
28603 2015-04-30 Caroline Tice <cmtice@google.com>
28605 PR gcov-profile/65929
28606 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
28607 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
28608 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
28609 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
28610 * doc/tm.texi: Regenerate.
28611 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
28612 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
28613 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
28614 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
28616 2015-04-30 Marek Polacek <polacek@redhat.com>
28618 * varasm.c (handle_cache_entry): Fix logic.
28620 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28622 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
28623 (*extrsi5_insn_uxtw_alt): Likewise.
28624 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
28625 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
28628 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28630 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
28633 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28635 * config/aarch64/aarch64.md
28636 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
28637 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
28638 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
28639 appropriately. Handle alternative EON form.
28641 2015-04-30 Renlin Li <renlin.li@arm.com>
28643 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
28644 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
28646 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
28649 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
28650 -fstrict-aliasing boundaries.
28652 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28654 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
28655 and [SU]MNEGL patterns.
28657 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28659 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
28660 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
28661 combined arithmetic-shift ops. Properly handle all shift and extend
28662 operations that can occur in combination with PLUS/MINUS.
28663 Rename maybe_fma to compound_p.
28664 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
28665 arithmetic and shift operations.
28667 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28669 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
28670 rather than arith_shift cost when costing ADD/MINUS of an
28673 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
28676 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
28679 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
28681 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
28682 are for the same position.
28684 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
28686 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
28688 (vectorize_loops): Use it.
28690 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28692 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
28693 for aggregate types.
28694 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
28695 type to be non_ODR.
28696 * tree.c (need_assembler_name_p): Compute mangled name for
28697 non-fundamental types and integer types.
28699 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
28701 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
28703 * expr.c (expand_expr_real_2): Likewise.
28705 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28707 * tree.c (build_common_builtin_nodes): Do not build
28708 __builtin_alloca_with_align as equivalent of library alloca.
28710 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
28712 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
28713 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
28715 * tree.c: Include print-tree.h and ipa-utils.h
28716 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
28717 (free_lang_data_in_cgraph): Call verify_type.
28718 (verify_type_variant): New function.
28719 (verify_type): New function.
28720 * tree.h (verify_type): Declare.
28722 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
28724 * config/mips/mips-cpus.def: (mips4): Change default processor
28725 from PROCESSOR_R8000 to PROCESSOR_R10000.
28727 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
28729 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
28730 la/jalr instead of jal.
28732 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
28735 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
28736 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
28737 (setcc+movzbl peephole2): Check also clobbered reg.
28738 (setcc+andl peephole2): Ditto.
28740 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
28743 * config/nvptx/mkoffload.c (target_ilp32): New variable.
28744 (main): Set it depending on "-foffload-abi=[...]".
28745 (compile_native, main): Use it to pass "-m32" or "-m64" to the
28748 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
28751 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
28752 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
28753 Flip lane index back at assembly time for bigendian.
28755 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
28757 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
28758 * gimplify.c (gimplify_omp_workshare): Use it.
28760 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28762 * Makefile.in (build/genrecog.o): Depend on inchash.h.
28763 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
28765 * genrecog.c: Rewrite most of the code except for the third page.
28767 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28769 * inchash.h, inchash.c: Include bconfig.h for build objects.
28770 * Makefile.in (build/inchash.o): New rule.
28772 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
28775 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
28776 number in type attribute expression.
28778 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
28780 * loop-iv.c (canon_condition): Generalize to all types of integer
28783 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
28785 * gimple-walk.c: Prune duplicate or unneeded includes.
28786 (walk_gimple_asm): Only call parse_input_constraint or
28787 parse_output_constraint if their findings are used.
28788 Honour parse_input_constraint and parse_output_constraint
28791 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
28793 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
28795 2015-04-29 Tom de Vries <tom@codesourcery.com>
28797 PR tree-optimization/65893
28798 * passes.def (pass_all_optimizations): Move pass_stdarg to after
28801 2015-04-29 Richard Biener <rguenther@suse.de>
28803 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
28804 compute GROUP_SIZE for basic-block SLP.
28805 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
28806 take into account gaps.
28807 (vect_get_mask_element): Properly reject references to previous
28809 (vect_transform_slp_perm_load): Likewise.
28811 2015-04-29 Christian Bruel <christian.bruel@st.com>
28814 * config/i386/i386.c (ix86_default_align): New function.
28815 (ix86_override_options_after_change): Call ix86_default_align.
28816 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
28817 (ix86_override_options_after_change): New function.
28819 2015-04-28 Jeff Law <law@redhat.com>
28821 * tree-ssa-dom.c (record_equality); Fix comment typos.
28823 2015-04-28 Tom de Vries <tom@codesourcery.com>
28825 PR tree-optimization/65887
28826 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
28828 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
28830 * doc/extend.texi (Declaring Attributes of Functions): Split into
28831 subsections by target. Alphabetize the table of common attributes.
28832 Rewrite some of the introductory text to reflect the new structure.
28833 Update some cross-references to point to the new subsections.
28834 (Attribute Syntax): Put paragraph about "__" naming here. Remove
28835 duplicate copies in the discussion of function, label, and type
28838 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
28841 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
28843 2015-04-28 Jason Merrill <jason@redhat.com>
28846 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
28847 (finalize_type_size): Respect TYPE_USER_ALIGN.
28848 (layout_type) [ARRAY_TYPE]: Likewise.
28850 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
28852 * config/arm/arm.md (*arm_movt): Fix type attribute.
28853 (*cmpsi_shiftsi): Likewise.
28854 (*cmpsi_shiftsi_swp): Likewise.
28855 (*movsicc_insn): Likewise.
28856 (*cond_move): Likewise.
28857 (*if_plus_move): Likewise.
28858 (*if_move_plus): Likewise.
28859 (*if_arith_move): Likewise.
28860 (*if_move_arith): Likewise.
28861 (*if_shift_move): Likewise.
28862 (*if_move_shift): Likewise.
28863 (*arm_movtas_ze): Likewise.
28864 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
28865 redundancy and type attribute.
28866 (*thumb2_movsi_insn): Fix type attribute.
28867 (*thumb2_addsi_short): Likewise.
28868 (thumb2_addsi3_compare0): Likewise.
28869 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
28870 attributes accordingly.
28872 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
28875 * function.c (pad_to_arg_alignment): Add parentheses.
28877 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
28879 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
28880 libgcc/config/frv/elf-lib.h.
28882 2015-04-28 Tom de Vries <tom@codesourcery.com>
28884 * tree-call-cdce.c: Fix example in header comment.
28886 2015-04-28 Richard Biener <rguenther@suse.de>
28888 PR tree-optimization/62283
28889 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
28890 fails fatally and we are vectorizing a basic-block simply
28891 cause the child to be constructed piecewise.
28892 (vect_analyze_slp_cost_1): Adjust.
28893 (vect_detect_hybrid_slp_stmts): Likewise.
28894 (vect_bb_slp_scalar_cost): Likewise.
28895 (vect_get_constant_vectors): For piecewise constructed
28896 constants place them after the last def.
28897 (vect_get_slp_defs): Adjust.
28898 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
28899 externals for basic-block vectorization.
28901 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28904 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
28906 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
28907 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
28908 (AARCH64_TUNE_FMA_STEERING): Likewise.
28909 * config/aarch64/aarch64-cores.def: Set
28910 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
28911 FMUL/FMADD instructions.
28912 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
28913 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
28914 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
28915 * config/aarch64/cortex-a57-fma-steering.h: New file.
28916 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
28918 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
28920 * gensupport.c (std_preds): Add missing codes to address_operand entry.
28922 2015-04-28 Richard Biener <rguenther@suse.de>
28924 PR tree-optimization/65851
28925 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
28926 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
28927 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
28928 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
28929 (ccp_visit_phi_node): Adjust.
28930 (evaluate_stmt): For simplifications to SSA names return its
28931 lattice value if that isn't VARYING. Return immediately when
28932 simplified to a constant.
28933 (visit_assignment): Adjust.
28934 (ccp_visit_stmt): Likewise.
28936 2015-04-28 Tom de Vries <tom@codesourcery.com>
28938 PR tree-optimization/65818
28939 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
28942 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28944 * calls.c (save_fixed_argument_area): Don't check
28945 ARGS_GROW_DOWNWARD with the preprocessor.
28946 (restore_fixed_argument_area): Likewise.
28947 (mem_overlaps_already_clobbered_arg_p): Likewise.
28948 (check_sibcall_argument_overlap): Likewise.
28949 (expand_call): Likewise.
28950 (emit_library_call_value_1): Likewise.
28951 (store_one_arg): Likewise.
28952 * function.c (assign_parms): Likewise.
28953 (locate_and_pad_parm): Likewise.
28954 (pad_to_arg_alignment): Likewise.
28955 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28957 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28959 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
28960 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
28961 * calls.c (save_fixed_argument_area): Don't chekc if
28962 ARGS_GROW_DOWNWARD is defined.
28963 (restore_fixed_argument_area): Likewise.
28964 (mem_overlaps_already_clobbered_arg_p): Likewise.
28965 (check_sibcall_argument_overlap): Likewise.
28966 (expand_call): Likewise.
28967 (emit_library_call_value_1): Likewise.
28968 (store_one_arg): Likewise.
28969 * function.c (assign_parms): Likewise.
28970 (locate_and_pad_parm): Likewise.
28971 (pad_to_arg_alignment): Likewise.
28972 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
28974 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28976 * defaults.h (gen_epilogue): New function.
28977 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
28979 * cfgrtl.c (cfg_layout_finalize): Likewise.
28980 * df-scan.c: Likewise.
28981 * function.c (thread_prologue_and_epilogue_insns): Likewise.
28982 (reposition_prologue_and_epilogue_notes): Likewise.
28983 * reorg.c (find_end_label): Likewise.
28984 * toplev.c: Likewise.
28986 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28988 * bb-reorder.c (HAVE_return): Don't check if its undefined.
28989 * defaults.h (gen_simple_return): New function.
28990 (gen_simple_return): Likewise.
28991 (HAVE_return): Add default definition to false.
28992 (HAVE_simple_return): Likewise.
28993 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
28994 HAVE_return and HAVE_simple_return are defined.
28995 * function.c (gen_return_pattern): Likewise.
28996 (convert_jumps_to_returns): Likewise.
28997 (thread_prologue_and_epilogue_insns): Likewise.
28998 * reorg.c (find_end_label): Likewise.
28999 (dbr_schedule): Likewise.
29000 * shrink-wrap.c: Likewise.
29001 * shrink-wrap.h: Likewise.
29003 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29005 * defaults.h (EPILOGUE_USES): Add default definition of false.
29006 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
29007 * resource.c (init_resource_info): Likewise.
29009 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29011 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
29013 * dwarf2out.c (field_byte_offset): REmove check if
29014 PCC_BITFIELD_TYPE_MATTERS is defined.
29015 * stor-layout.c (layout_decl): Likewise.
29016 (update_alignment_for_field): Likewise.
29017 (place_field): Likewise.
29019 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29021 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
29023 * regrename.c (check_new_reg_p): Remove check if
29024 HARD_REGNO_RENAME_OK is defined.
29025 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
29027 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29029 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
29030 * cse.c (fold_rtx): Likewise.
29031 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
29032 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
29033 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
29034 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
29035 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
29036 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
29037 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
29038 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
29039 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
29040 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
29042 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
29043 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
29044 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
29045 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
29046 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
29047 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
29048 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
29049 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
29050 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
29051 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
29052 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
29053 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
29054 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
29055 * doc/tm.texi: Regenerate.
29056 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
29057 either true or false.
29059 2015-04-27 Jeff Law <law@redhat.com>
29061 PR tree-optimization/65217
29062 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
29063 of them has a single use, make sure it is the LHS of the implied
29066 2015-04-28 Alan Modra <amodra@gmail.com>
29069 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
29070 (offsettable_ok_by_alignment): Use minimum of decl and toc
29071 pointer alignment. Replace dead code with assertion.
29072 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
29073 case if size exceeds toc pointer alignment.
29074 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
29075 (rs6000_emit_move): Likewise.
29076 * configure.ac: Add linker toc pointer alignment check.
29077 * configure: Regenerate.
29078 * config.in: Regenerate.
29080 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
29082 * config.gcc: Add h8300-*-linux.
29083 * config/h8300/linux.h: New.
29084 * config/h8300/t-linux: New.
29085 * config/h8300/h8300.c (h8300_option_override): Normal mode
29086 is not supported for h8300-*-linux.
29087 (h8300_file_start): Target priority change.
29088 (get_shift_alg): Likewise.
29089 (h8300_shift_need_scratch_p): Likewise.
29090 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
29091 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
29093 2015-04-27 Caroline Tice <cmtice@google.com>
29095 * final.c (final_scan_insn): Output cold_function_name as function
29097 * varasm.c (cold_function_name): Make global.
29098 (assemble_start_function): Re-set cold_function_name.
29099 (assemble_end_function): Output cold partition size.
29100 * varasm.h (cold_function_name): Declare global.
29102 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
29104 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
29105 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
29107 (*movxi_internal_avx512f): Ditto.
29108 (define_split): Check for xmm16+, when splitting scalar float_extend.
29109 (*extendsfdf2_mixed): Use "v" constraint.
29110 (define_split): Check for xmm16+, when splitting scalar float_truncate.
29111 (*truncdfsf_fast_sse): Use "v" constraint.
29112 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
29113 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
29114 (define_peephole2): Check for xmm16+, when converting scalar
29116 (define_peephole2): Check for xmm16+, when converting scalar
29118 (*fop_<mode>_comm_mixed): Use "v" constraint.
29119 (*fop_<mode>_comm_sse): Ditto.
29120 (*fop_<mode>_1_mixed): Ditto.
29121 (*sqrt<mode>2_sse): Ditto.
29122 (*ieee_s<ieee_maxmin><mode>3): Ditto.
29124 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29126 * combine.c (simplify_if_then_else): Use std::swap instead
29127 of manually swapping.
29128 (known_cond): Likewise.
29129 (simplify_comparison): Likewise.
29131 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
29134 * config/rs6000/htm.md: Remove all define_expands.
29135 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
29136 UNSPECV_HTM_TABORTWCI): Remove.
29137 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
29138 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
29139 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
29140 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
29141 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
29142 tabortwci_internal): Remove define_insns.
29143 (tabort<wd>c, tabort<wd>ci): New define_insns.
29144 (tabort): Use gpc_reg_operand.
29145 (tcheck): Remove operand.
29146 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
29147 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
29149 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
29150 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
29151 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
29152 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
29153 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
29154 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
29155 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
29156 (tcheck): Remove builtin argument.
29157 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
29159 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
29160 tabortdc and tabortdci builtins when not in 64-bit mode.
29161 Modify code to handle the loss of the HTM define_expands.
29162 Emit code to copy the CR register to TARGET.
29163 (htm_init_builtins): Modify code to handle the loss of the HTM
29165 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
29166 (RS6000_BTC_64BIT): Likewise.
29167 (RS6000_BTC_CR): New macro.
29168 * doc/extend.texi: Update documentation for htm builtins.
29170 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29172 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
29173 of manually swapping.
29174 (simplify_associative_operation): Likewise.
29175 (simplify_binary_operation): Likewise.
29176 (simplify_plus_minus): Likewise.
29177 (simplify_relational_operation): Likewise.
29178 (simplify_ternary_operation): Likewise.
29180 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
29182 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
29183 (xs_hi_nonmemory_operand): Remove error.
29184 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
29185 general_operand rather than xs_hi_general_operand.
29187 2015-04-27 Richard Biener <rguenther@suse.de>
29189 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
29190 (record_equivalences_from_stmt): Valueize rhs.
29191 (record_equality): Canonicalize x and y order via
29192 tree_swap_operands_p. Do not swap operands for same loop depth.
29194 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
29198 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
29199 Add hint how to use own spec file.
29201 2015-04-27 Jakub Jelinek <jakub@redhat.com>
29203 PR tree-optimization/65875
29204 * tree-vrp.c (update_value_range): If in is_new case setting
29205 old_vr to VR_VARYING, also set new_vr to it. Remove
29206 old_vr->type == VR_VARYING test.
29207 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
29208 SSA_PROP_INTERESTING if update_value_range returned true,
29209 but new range is VR_VARYING.
29211 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
29213 * combine.c (sign_extend_short_imm): New.
29214 (set_nonzero_bits_and_sign_copies): Use above new function for sign
29215 extension of src short immediate.
29216 (reg_nonzero_bits_for_combine): Likewise for tem.
29218 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
29220 * stor-layout.c (self_referential_component_ref_p): New predicate.
29221 (copy_self_referential_tree_r): Use it.
29222 (self_referential_size): Punt for simple operations directly involving
29223 self-referential component references.
29224 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
29226 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
29228 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
29230 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
29232 * vec.h (vec): Make splice arguments const. Update definitions
29235 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
29237 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
29240 2015-04-26 Tom de Vries <tom@codesourcery.com>
29242 PR tree-optimization/65826
29243 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
29245 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
29247 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
29248 (*madd3<mode>): Ditto.
29249 (*msub4<mode>): Ditto.
29250 (*msub3<mode>): Ditto.
29251 (*nmadd4<mode>): Ditto.
29252 (*nmadd3<mode>): Ditto.
29253 (*nmadd4<mode>_fastmath): Ditto.
29254 (*nmadd3<mode>_fastmath): Ditto.
29255 (*nmsub4<mode>): Ditto.
29256 (*nmsub3<mode>): Ditto.
29257 (*nmsub4<mode>_fastmath): Ditto.
29258 (*nmsub3<mode>_fastmath): Ditto.
29260 2015-04-24 Jason Merrill <jason@redhat.com>
29263 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
29264 down when building TYPE_CANONICAL.
29265 (build_pointer_type_for_mode): Likewise.
29267 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
29269 * genrecog.c (validate_pattern): Check matching constraint refers
29270 to a lower numbered operand.
29272 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
29275 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
29276 save to independent variables use the Save attribute. This will
29277 allow these options to be modified with the #pragma/attribute
29279 (-mallow-movmisalign): Likewise.
29280 (-mallow-df-permute): Likewise.
29281 (-msched-groups): Likewise.
29282 (-malways-hint): Likewise.
29283 (-malign-branch-targets): Likewise.
29284 (-mvectorize-builtins): Likewise.
29285 (-msave-toc-indirect): Likewise.
29287 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
29288 can be set via the #pragma/attribute target support.
29289 (rs6000_opt_vars): Likewise.
29290 (rs6000_inner_target_options): If VSX was set, also set
29291 -mno-avoid-indexed-addresses.
29293 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29295 * config/arm/iterators.md (shiftable_ops): Rename to...
29296 (SHIFTABLE_OPS): ... This. Update use in comments.
29297 (ior_xor): Rename to...
29298 (IOR_XOR): ... This.
29299 (vqh_ops): Rename to...
29300 (VQH_OPS): ... This.
29301 (vqhs_ops): Rename to...
29302 (VQHS_OPS): ... This.
29303 (rshifts): Rename to...
29304 (RSHIFTS): ... This.
29305 (returns): Rename to...
29306 (RETURNS): ... This.
29307 * config/arm/arm.md: Update uses of the above.
29308 * config/arm/neon.md: Likewise.
29310 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29312 * config.host (case ${host}): Add aarch64*-*-linux case.
29313 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
29314 fields to all the cores.
29315 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
29316 Add MCPU_MTUNE_NATIVE_SPECS.
29317 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
29318 field to all extensions.
29319 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
29320 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
29321 Adjust definition of AARCH64_OPT_EXTENSION.
29322 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
29323 (MCPU_MTUNE_NATIVE_SPECS): Define.
29324 * config/aarch64/driver-aarch64.c: New file.
29325 * config/aarch64/x-arch64: New file.
29326 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
29329 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
29330 Wei Mi <wmi@google.com>
29332 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
29333 * config/i386/i386.c (extract_base_offset_in_addr): New function.
29334 (ix86_operands_ok_for_move_multiple): Ditto.
29335 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
29336 (movlpd/movhpd to movupd peephole2): Ditto.
29338 2015-04-24 Marek Polacek <polacek@redhat.com>
29341 * input.h (from_macro_expansion_at): Define.
29344 * doc/invoke.texi: Update description of -Wlogical-op.
29346 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
29348 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
29349 ternary operator in fprintf and harmonize spacing.
29351 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
29353 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
29354 Mark operand1 commutative.
29356 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
29358 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
29359 input operands in memory.
29360 (*vec_concatv2si_sse4_1): Ditto.
29361 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
29362 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
29364 (vec_extract_hi_v32hi): Ditto.
29365 (vec_extract_hi_v64hi): Ditto.
29366 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
29368 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
29369 Steven Bosscher <steven@gcc.gnu.org>
29371 PR rtl-optimization/34503
29372 * cprop.c (cprop_reg_p): New.
29373 (hash_scan_set): Use above function to check if register can be
29375 (find_avail_set): Return up to two sets, one whose source is a
29376 register and one whose source is a constant. Sets are returned in an
29377 array passed as parameter rather than as a return value.
29378 (cprop_insn): Use a do while loop rather than a goto. Try each of the
29379 sets returned by find_avail_set, starting with the one whose source is
29380 a constant. Use cprop_reg_p to check if register can be propagated.
29381 (do_local_cprop): Use cprop_reg_p to check if register can be
29383 (implicit_set_cond_p): Likewise.
29385 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29387 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
29388 (sem_function::equals): IGNORED_NODES parameter is now unused;
29389 update call of equals_private.
29390 (sem_function::equals_private): Do not call equals_wpa; skip
29391 gimple body matching if there is no body.
29392 (sem_function::init): Add logic to hash tthunk info.
29393 (sem_function::parse): Also parse thunks.
29394 * ipa-icf.h (equals_private): Update declaration.
29396 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29398 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
29399 asterisk from name so this can be generated directly.
29400 (*altivec_stvx_<mode>_internal): Likewise.
29401 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
29402 that this is never called during or after reload/lra.
29403 (rs6000_frame_related): Remove split_reg
29404 argument and logic that references it.
29405 (emit_frame_save): Remove last parameter from call to
29406 rs6000_frame_related.
29407 (rs6000_emit_prologue): Remove last parameter from eight calls to
29408 rs6000_frame_related. Force generation of stvx instruction for
29409 Altivec register saves. Remove split_reg handling, which is no
29411 (rs6000_emit_epilogue): Force generation of lvx instruction for
29412 Altivec register restores.
29414 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29416 * config/rs6000/rs6000.opt (mcrypto): Change option description to
29417 match category changes in ISA 2.07B.
29419 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29421 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
29423 (cmp_op, cmp_type): New code attributes.
29424 (NEON_VCMP, NEON_VACMP): New int iterators.
29425 (cmp_op_unsp): New int attribute.
29426 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
29427 (neon_vceq<mode>): Delete.
29428 (neon_vc<cmp_op><mode>_insn): New pattern.
29429 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
29430 (neon_vcgeu<mode>): Delete.
29431 (neon_vcle<mode>): Likewise.
29432 (neon_vclt<mode>: Likewise.
29433 (neon_vcage<mode>): Likewise.
29434 (neon_vcagt<mode>): Likewise.
29435 (neon_vca<cmp_op><mode>): New define_expand.
29436 (neon_vca<cmp_op><mode>_insn): New pattern.
29437 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
29439 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29441 * tree.h (attribute_value_equal): Declare.
29442 * tree.c (attribute_value_equal): Export.
29444 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29446 * ipa-icf.c (sem_item::compare_attributes): New function.
29447 (sem_item::compare_referenced_symbol_properties): Compare variable
29449 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
29450 (sem_function::param_used_p): New function.
29451 (sem_function::equals_wpa): Fix attribute comparsion; match
29452 parameter type codes; do not compare paremter flags when
29453 they are not used; compare edge flags; compare indirect calls.
29454 (sem_item::update_hash_by_addr_refs): Hash reference type.
29455 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
29456 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
29457 reference use type.
29458 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
29459 * ipa-icf.h (compare_attributes, param_used_p): Declare.
29461 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
29463 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
29465 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
29466 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
29467 (sem_item::compare_referenced_symbol_properties): New.
29468 (sem_item::hash_referenced_symbol_properties): New.
29469 (sem_item::compare_cgraph_references): Rename to ...
29470 (sem_item::compare_symbol_references): ... this one; use
29471 compare_referenced_symbol_properties.
29472 (sem_function::equals_wpa): Do not compare
29473 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
29474 DECL_IS_OPERATOR_NEW; compare pointer sizes.
29475 (sem_item::update_hash_by_addr_refs): Call
29476 hash_referenced_symbol_properties.
29477 (sem_item::update_hash_by_local_refs): Cleanup.
29478 (sem_function::merge): Do not mix up symbol properties.
29479 (sem_variable::equals_wpa): Use compare_symbol_references.
29480 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
29481 (sem_item::hash_referenced_symbol_properties): New.
29482 (sem_item::compare_symbol_references): New.
29483 (sem_item::compare_cgraph_references): Remove.
29485 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
29488 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
29489 Emit size of local.
29491 2015-04-23 Nick Clifton <nickc@redhat.com>
29493 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
29494 ATTRIBUTE_UNUSED to x parameter.
29495 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
29497 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29499 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
29500 TARGET_CRYPTO to TARGET_P8_VECTOR>
29501 (crypto_vpermxor_<mode>): Likewise.
29502 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
29503 (BU_CRYPTO_3A): Likewise.
29504 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
29505 (BU_CRYPTO_OVERLOAD_3A): New #define.
29506 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
29507 (VPMSUMH): Likewise.
29508 (VPMSUMW): Likewise.
29509 (VPMSUMD): Likewise.
29510 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
29511 (VPERMXOR_V4SI): Likewise.
29512 (VPERMXOR_V8HI): Likewise.
29513 (VPERMXOR_V16QI): Likewise.
29514 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
29515 BU_CRYPTO_OVERLOAD_2A.
29516 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
29517 BU_CRYPTO_OVERLOAD_3A.
29518 * config/rs6000/rs6000.opt (mcrypto): Change description of
29521 2015-04-23 Richard Biener <rguenther@suse.de>
29523 * passes.def: Remove copy propagation passes run directly after CCP.
29524 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
29526 (ccp_visit_phi_node): Rework to handle first executable edge
29529 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
29531 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
29532 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29533 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
29534 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
29535 (thumb_legimitimize_reload_address): Remove.
29536 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
29538 (thumb_legimitimize_reload_address): Remove.
29540 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29542 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
29544 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29546 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
29548 (store_multiple): Likewise.
29550 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29552 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
29553 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
29554 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
29555 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
29556 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
29557 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
29558 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
29559 Specify issue_rate value.
29560 (arm_issue_rate): Look up issue rate from tuning structs. Remove
29561 large switch statement.
29562 (arm_marvell_pj4_tune): New struct.
29563 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
29566 2015-04-23 Richard Biener <rguenther@suse.de>
29568 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
29569 (vect_find_last_store_in_slp_instance): Rename to ...
29570 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
29571 (vect_analyze_slp_cost_1): Use vector_load for constant defs
29572 and vec_construct for external defs when estimating prologue cost.
29573 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
29574 Compute costs here only when vectorizing loops.
29575 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
29576 have been determined.
29577 (vect_schedule_slp_instance): Simplify vectorized code placement
29578 and prepare for in-BB external defs.
29579 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
29580 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
29581 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
29583 (vect_model_load_cost): Likewise.
29584 (vectorizable_store): Instead add it here.
29585 (vectorizable_load): Likewise.
29586 (vect_is_simple_use): Dump def type textually.
29588 2015-04-23 Richard Biener <rguenther@suse.de>
29590 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
29591 * cfgloop.c (verify_loop_structure): Verify the root loop node.
29592 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
29593 instead of get_eh_region_from_lp_number.
29594 * loop-init.c (fix_loop_structure): If we removed a loop, reset
29597 2015-04-23 Anton Blanchard <anton@samba.org>
29599 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
29600 need for -mprofile-kernel to save LR to stack.
29602 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29604 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
29606 (insn_is_swappable_p): Return 1 for a convert from double to
29607 single precision when all of its uses are splats of BE element
29610 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
29612 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
29614 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29617 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
29618 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
29619 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
29621 (rs6000_builtin_mask_for_load): Return 0 for targets with
29622 efficient unaligned VSX accesses so that the vectorizer will use
29623 direct unaligned loads.
29624 (rs6000_builtin_support_vector_misalignment): Always return true
29625 for targets with efficient unaligned VSX accesses.
29626 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
29627 stores on targets with efficient unaligned VSX accesses is almost
29628 always the same as the cost of an aligned load or store, so model
29630 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
29631 unaligned vectors if we have efficient unaligned VSX accesses.
29632 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
29633 undocumented option.
29635 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29638 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
29640 * config.gcc (LIBC_MUSL): New tm_defines macro.
29641 * config/linux.h (OPTION_MUSL): Define.
29642 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29643 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29644 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29646 * config/linux.opt (mmusl): New option.
29647 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29648 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29650 * configure: Regenerate.
29652 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
29654 * config.gcc (LIBC_MUSL): New tm_defines macro.
29655 * config/linux.h (OPTION_MUSL): Define.
29656 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
29657 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
29658 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
29660 * config/linux.opt (mmusl): New option.
29661 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
29662 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
29664 * configure: Regenerate.
29666 2015-04-22 Yury Gribov <y.gribov@samsung.com>
29668 * doc/invoke.texi (-fsanitize-sections): Update description.
29669 * asan.c (set_sanitized_sections): Parse incoming arg.
29670 (section_sanitized_p): Support wildcards.
29672 2015-04-22 Tom de Vries <tom@codesourcery.com>
29674 PR tree-optimization/65823
29675 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
29676 equality between ap_copy and ap.
29678 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29681 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
29683 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29686 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
29688 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29691 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
29692 remove already contained t-files.
29694 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29696 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
29697 Remove unneeded forward declarations.
29698 (suitable_for_tail_call_opt_p): Commentary typo fix.
29700 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29702 * varasm.c (emit_bss): Remove redundant guard.
29704 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29706 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
29708 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29710 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
29712 2015-04-22 Hale Wang <hale.wang@arm.com>
29713 Terry Guo <terry.guo@arm.com>
29715 PR rtl-optimization/64818
29716 * combine.c (can_combine_p): Don't combine user-specified
29717 register if it is in an asm input.
29719 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
29722 * passes.def (early_optimizations): Add pass_dse.
29724 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29726 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
29727 * reorg.c (redundant_insn): Remove ifdef
29728 INSN_REFERENCES_ARE_DELAYED.
29729 * resource.c (mark_referenced_resources): Likewise.
29731 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29733 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
29734 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
29735 * resource.c (mark_set_resources): Likewise.
29737 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29739 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
29740 * cfgcleanup.c (flow_find_cross_jump): Likewise.
29741 (flow_find_head_matching_sequence): Likewise.
29742 (try_head_merge_bb): Likewise.
29743 * combine.c (can_combine_p): Likewise.
29744 (try_combine): Likewise.
29745 (distribute_notes): Likewise.
29746 * df-problems.c (can_move_insns_across): Likewise.
29747 * final.c (final): Likewise.
29748 * gcse.c (insert_insn_end_basic_block): Likewise.
29749 * ira.c (find_moveable_pseudos): Likewise.
29750 * reorg.c (try_merge_delay_insns): Likewise.
29751 (fill_simple_delay_slots): Likewise.
29752 (fill_slots_from_thread): Likewise.
29753 * sched-deps.c (sched_analyze_2): Likewise.
29755 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29757 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
29758 PIC_OFFSET_TABLE_REGNUM.
29760 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29762 * alias.c (init_alias_target): Remove ifdef
29763 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
29764 * df-scan.c (df_insn_refs_collect): Likewise.
29765 (df_get_regular_block_artificial_uses): Likewise.
29766 (df_get_eh_block_artificial_uses): Likewise.
29767 (df_get_entry_block_def_set): Likewise.
29768 (df_get_exit_block_use_set): Likewise.
29769 * emit-rtl.c (gen_rtx_REG): Likewise.
29770 * ira.c (ira_setup_eliminable_regset): Likewise.
29771 * reginfo.c (init_reg_sets_1): Likewise.
29772 * regrename.c (rename_chains): Likewise.
29773 * reload1.c (reload): Likewise.
29774 (eliminate_regs_in_insn): Likewise.
29775 * resource.c (mark_referenced_resources): Likewise.
29776 (init_resource_info): Likewise.
29778 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29780 * defaults.h (MASK_RETURN_ADDR): New definition.
29781 * except.c (expand_builtin_extract_return_addr): Remove ifdef
29784 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29786 * defaults.h (RETURN_ADDR_OFFSET): New definition.
29787 * except.c (expand_builtin_extract_return_addr): Remove ifdef
29788 RETURN_ADDR_OFFSET.
29789 (expand_builtin_frob_return_addr): Likewise.
29791 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29793 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
29794 (try_redirect_by_replacing_jump): Likewise.
29795 (rtl_tidy_fallthru_edge): Likewise.
29796 * combine.c (insn_a_feeds_b): Likewise.
29797 (find_split_point): Likewise.
29798 (simplify_set): Likewise.
29799 * cprop.c (cprop_jump): Likewise.
29800 * cse.c (cse_extended_basic_block): Likewise.
29801 * df-problems.c (can_move_insns_across): Likewise.
29802 * function.c (emit_use_return_register_into_block): Likewise.
29803 * haifa-sched.c (sched_init): Likewise.
29804 * ira.c (find_moveable_pseudos): Likewise.
29805 * loop-invariant.c (find_invariant_insn): Likewise.
29806 * lra-constraints.c (curr_insn_transform): Likewise.
29807 * postreload.c (reload_combine_recognize_const_pattern):
29809 * reload.c (find_reloads): Likewise.
29810 * reorg.c (delete_scheduled_jump): Likewise.
29811 (steal_delay_list_from_target): Likewise.
29812 (steal_delay_list_from_fallthrough): Likewise.
29813 (redundant_insn): Likewise.
29814 (fill_simple_delay_slots): Likewise.
29815 (fill_slots_from_thread): Likewise.
29816 (delete_computation): Likewise.
29817 * sched-rgn.c (add_branch_dependences): Likewise.
29819 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29821 * genconfig.c (main): Always define HAVE_cc0.
29822 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
29824 * cfgcleanup.c (flow_find_cross_jump): Likewise.
29825 (flow_find_head_matching_sequence): Likewise.
29826 (try_head_merge_bb): Likewise.
29827 * cfgrtl.c (rtl_merge_blocks): Likewise.
29828 (try_redirect_by_replacing_jump): Likewise.
29829 (rtl_tidy_fallthru_edge): Likewise.
29830 * combine.c (do_SUBST_MODE): Likewise.
29831 (insn_a_feeds_b): Likewise.
29832 (combine_instructions): Likewise.
29833 (can_combine_p): Likewise.
29834 (try_combine): Likewise.
29835 (find_split_point): Likewise.
29837 (simplify_set): Likewise.
29838 (distribute_notes): Likewise.
29839 * cprop.c (cprop_jump): Likewise.
29840 * cse.c (cse_extended_basic_block): Likewise.
29841 * df-problems.c (can_move_insns_across): Likewise.
29842 * final.c (final): Likewise.
29843 (final_scan_insn): Likewise.
29844 * function.c (emit_use_return_register_into_block): Likewise.
29845 * gcse.c (insert_insn_end_basic_block): Likewise.
29846 * haifa-sched.c (sched_init): Likewise.
29847 * ira.c (find_moveable_pseudos): Likewise.
29848 * loop-invariant.c (find_invariant_insn): Likewise.
29849 * lra-constraints.c (curr_insn_transform): Likewise.
29850 * optabs.c (prepare_cmp_insn): Likewise.
29851 * postreload.c (reload_combine_recognize_const_pattern):
29853 * reload.c (find_reloads): Likewise.
29854 (find_reloads_address_1): Likewise.
29855 * reorg.c (delete_scheduled_jump): Likewise.
29856 (steal_delay_list_from_target): Likewise.
29857 (steal_delay_list_from_fallthrough): Likewise.
29858 (try_merge_delay_insns): Likewise.
29859 (redundant_insn): Likewise.
29860 (fill_simple_delay_slots): Likewise.
29861 (fill_slots_from_thread): Likewise.
29862 (delete_computation): Likewise.
29863 (relax_delay_slots): Likewise.
29864 * sched-deps.c (sched_analyze_2): Likewise.
29865 * sched-rgn.c (add_branch_dependences): Likewise.
29867 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29869 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
29870 that is trivially ded on non cc0 targets.
29871 (simplify_set): Likewise.
29872 (mark_used_regs_combine): Likewise.
29873 * cse.c (new_basic_block): Likewise.
29874 (fold_rtx): Likewise.
29875 (cse_insn): Likewise.
29876 (cse_extended_basic_block): Likewise.
29877 (set_live_p): Likewise.
29878 * rtlanal.c (canonicalize_condition): Likewise.
29879 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
29881 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29883 * conditions.h: Define macros even if HAVE_cc0 is undefined.
29884 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
29885 * final.c: Likewise.
29886 * jump.c: Likewise.
29887 * recog.c: Likewise.
29888 * recog.h: Declare functions even when HAVE_cc0 is undefined.
29889 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
29891 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29893 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
29894 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
29895 * builtins.c (expand_builtin): Remove check if
29896 EH_RETURN_DATA_REGNO is defined.
29897 * df-scan.c (df_bb_refs_collect): Likewise.
29898 (df_get_exit_block_use_set): Likewise.
29899 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
29900 * ira-lives.c (process_bb_node_lives): Likewise.
29901 * lra-lives.c (process_bb_lives): Likewise.
29903 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
29905 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
29906 FIRST_PSEUDO_REG): New.
29907 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
29908 (ARG_POINTER_REGNUM): Define to ARGP_REG.
29909 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
29910 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
29911 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
29912 (FIRST_INT_REG): New.
29913 (LAST_INT_REG): New.
29914 (FIRST_*_REG): Define using *_REG.
29915 (LAST_*_REG): Ditto.
29916 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
29917 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
29918 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
29920 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29922 * expmed.c: (synth_mult): Only assume overlapping
29923 shift with previous steps in alg_sub_t_m2 case.
29925 2015-04-21 Richard Biener <rguenther@suse.de>
29927 PR tree-optimization/65650
29928 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
29929 transitions involving copies.
29930 (set_lattice_value): Adjust for copy lattice state.
29931 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
29932 if that doesn't dominate the merge point.
29933 (bit_value_unop): Adjust what we treat as varying mask.
29934 (bit_value_binop): Likewise.
29935 (bit_value_assume_aligned): Likewise.
29936 (evaluate_stmt): When we simplified to a SSA name record a copy
29937 instead of dropping to varying.
29938 (visit_assignment): Simplify.
29940 * gimple-match.h (gimple_simplify): Add another callback.
29941 * gimple-fold.c (fold_stmt_1): Adjust caller.
29942 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
29943 for the 2nd callback.
29944 * gimple-match-head.c (gimple_simplify): Add a callback that is
29945 used to valueize the stmt operands and use it that way.
29947 2015-04-21 Richard Biener <rguenther@suse.de>
29949 PR tree-optimization/65788
29950 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
29952 2015-04-21 Richard Biener <rguenther@suse.de>
29954 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
29955 vec_construct cost by vec_stmt_cost.
29957 2015-04-21 Richard Biener <rguenther@suse.de>
29959 * cfghooks.h (create_basic_block): Replace with two overloads
29960 for RTL and GIMPLE.
29961 (split_block): Likewise.
29962 * cfghooks.c (split_block): Rename to ...
29963 (split_block_1): ... this.
29964 (split_block): Add two type-safe overloads for RTL and GIMPLE.
29965 (split_block_after_labels): Call split_block_1.
29966 (create_basic_block): Rename to ...
29967 (create_basic_block_1): ... this.
29968 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
29969 (create_empty_bb): Call create_basic_block_1.
29970 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
29971 split_block_after_labels.
29972 * omp-low.c (expand_parallel_call): Likewise.
29973 (expand_omp_target): Likewise.
29974 (simd_clone_adjust): Likewise.
29975 * tree-chkp.c (chkp_get_entry_block): Likewise.
29976 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
29977 create_basic_block overload.
29978 (cgraph_node::expand_thunk): Likewise.
29979 * tree-cfg.c (make_blocks): Likewise.
29980 (handle_abnormal_edges): Likewise.
29981 * tree-inline.c (copy_bb): Likewise.
29983 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29985 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
29987 (*xor_one_cmplsidi3_ze): Likewise.
29989 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
29991 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
29992 use df_remove_problem rather than manually removing problems, leaving
29993 holes in df->problems_in_order[].
29995 2015-04-21 Tom de Vries <tom@codesourcery.com>
29997 PR tree-optimization/65802
29998 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
30000 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30002 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
30004 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
30005 at '.'. Assert that there's enough space for everything.
30007 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
30009 PR tree-optimization/64950
30011 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
30014 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
30017 2015-04-20 Shiva Chen <shiva0217@gmail.com>
30019 PR rtl-optimization/64916
30020 * cfgcleanup.c (values_equal_p): New function.
30021 (can_replace_by): Use it.
30023 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
30026 * doc/invoke.texi ([-Wnarrowing]): Update.
30028 2015-04-20 Jeff Law <law@redhat.com>
30030 PR tree-optimization/65658
30031 * tree-ssa-threadupdate.c (redirection_block_p): Remove
30032 redundant test for GIMPLE_ASSIGN in last change.
30034 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
30036 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
30037 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
30038 (legitimize_tls_address): Ditto.
30039 (ix86_expand_move): Ditto.
30040 (ix86_expand_binary_operator): Remove reload_in_progress checks.
30041 (ix86_expand_unary_operator): Ditto.
30042 * config/i386/predicates.md (index_register_operand): Ditto.
30044 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
30046 * reorg.c (try_merge_delay_insns): Improve correctness checking
30047 for targets with multiple delay slots.
30049 2015-04-20 Jeff Law <law@redhat.com>
30051 PR tree-optimization/65658
30052 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
30055 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
30057 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
30058 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
30061 2015-04-20 Jakub Jelinek <jakub@redhat.com>
30064 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
30066 2015-04-20 Richard Biener <rguenther@suse.de>
30068 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
30069 * gimple-fold.c (gimple_build_valueize): New function.
30070 (gimple_build): Always use gimple_build_valueize as valueize hook.
30072 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
30075 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
30076 and overwrite variable parts if <= 1/2 the elements are variable.
30078 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
30080 PR rtl-optimization/65805
30081 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
30082 Don't use difference of offset and previous offset if
30083 update_sp_offset is non-zero.
30084 (eliminate_regs_in_insn): Ditto.
30085 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
30086 lra_eliminate_regs_1 call.
30087 * lra-constraints.c (get_equiv_with_elimination): Ditto.
30089 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
30091 * hash-table.h: Remove version of hash_table that stored value_type *.
30092 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
30093 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
30094 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
30095 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
30096 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
30097 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
30098 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
30099 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
30100 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
30101 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
30102 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
30103 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
30104 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
30105 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
30106 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
30107 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
30109 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30110 Jakub Jelinek <jakub@redhat.com>
30113 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
30114 subsequent SH_NONE operand does not overwrite an existing *special
30116 (adjust_extract): Handle case where a vec_extract operation is
30117 wrapped in a PARALLEL.
30119 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
30122 * config/i386/i386.c (ix86_binds_local_p): Define only if
30123 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
30125 2015-04-17 Jeff Law <law@redhat.com>
30127 PR tree-optimization/47679
30128 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
30129 * tree-ssa-scopedtables.c: New file.
30130 * tree-ssa-scopedtables.h: New file.
30131 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
30132 (const_and_copies): Change name/type.
30133 (record_const_or_copy): Move into tree-ssa-scopedtables.c
30134 (record_const_or_copy_1): Similarly.
30135 (restore_vars_to_original_value): Similarly.
30136 (pass_dominator::execute): Create and destroy const_and_copies table.
30137 (thread_across_edge): Update passing of const_and_copies.
30138 (record_temporary_equivalence): Use method calls rather than
30139 manipulating const_and_copies directly.
30140 (record_equality, cprop_into_successor_phis): Similarly.
30141 (dom_opt_dom_walker::before_dom_children): Similarly.
30142 (dom_opt_dom_walker::after_dom_children): Similarly.
30143 (eliminate_redundant_computations): Similarly.
30144 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
30145 (record_temporary_equivalence): Likewise.
30146 (invalidate_equivalences): Likewise.
30147 (record_temporary_equivalences_from_phis): Update due to type
30148 change of const_and_copies. Use method calls rather than
30149 manipulating the stack directly.
30150 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
30151 (thread_through_normal_block, thread_across_edge): Likewise.
30152 (thread_across_edge): Likewise.
30153 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
30154 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
30156 (identify_jump_threads): Update due to type change of equiv_stack.
30157 (finalize_jump_threads): Delete the equiv_stack when complete.
30159 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
30161 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
30162 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
30163 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
30165 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
30168 * config.gcc: Exit with a comment when we do not have a major version
30169 number for the FreeBSD target.
30171 2015-04-17 Jakub Jelinek <jakub@redhat.com>
30174 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
30175 maybe_allows_mem bitfields.
30176 (maybe_allows_none_start, maybe_allows_none_end,
30177 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
30178 maybe_allows_mem_end): New variables.
30179 (compute_maybe_allows): New function.
30180 (add_constraint): Use it to initialize maybe_allows_reg and
30181 maybe_allows_mem fields.
30182 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
30183 is_address constraints such that those that allow neither mem nor
30184 reg come first, then those that only allow reg but not mem, then
30185 those that only allow mem but not reg, then the rest.
30186 (write_allows_reg_mem_function): New function.
30187 (write_tm_preds_h): Call it.
30188 * stmt.c (parse_output_constraint, parse_input_constraint): Use
30189 the generated insn_extra_constraint_allows_reg_mem function
30190 instead of always setting *allows_reg = true; *allows_mem = true;
30191 for unknown extra constraints.
30193 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
30196 * output.h (default_binds_local_p_3): New.
30197 * varasm.c (default_binds_local_p_3): Make it public. Take an
30198 argument to indicate if common symbol may be local. If common
30199 symbol may be local, treat non-external variable as defined
30201 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
30202 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
30203 * config/i386/i386.c (ix86_binds_local_p): New.
30204 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
30205 ix86_binds_local_p.
30207 2015-04-17 Jakub Jelinek <jakub@redhat.com>
30210 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
30211 trying mem_loc_descriptor on XEXP (rtl, 0).
30213 2015-04-17 Martin Liska <mliska@suse.cz>
30215 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
30216 Release symbol_compare_collection.
30217 * ipa-reference.c: Add TODO that a vector should be released.
30219 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
30222 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
30223 to new AVR-LibC file layout (bug #44574).
30224 (*avrlibc_devicelib): Same.
30225 * config/avr/avr-mcus.def: Adjust comments.
30226 * config/avr/avr.opt (nodevicelib): Adjust help.
30228 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
30230 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
30232 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
30235 * gimplify.c (gimplify_init_constructor): Always emit a
30236 side-effecting constructor.
30238 2015-04-17 Tom de Vries <tom@codesourcery.com>
30240 PR tree-optimization/64950
30241 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
30242 in cfun->curr_properties.
30243 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
30244 if we generate an IFN_VA_ARG.
30245 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
30246 function if PROP_gimple_lva is not set in src function.
30248 2015-04-17 Tom de Vries <tom@codesourcery.com>
30249 Michael Matz <matz@suse.de>
30251 PR tree-optimization/64950
30252 * gimple-iterator.c (update_modified_stmts): Remove static.
30253 * gimple-iterator.h (update_modified_stmts): Declare.
30254 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
30255 (gimplify_va_arg_internal): New function.
30256 (gimplify_va_arg_expr): Use IFN_VA_ARG.
30257 * gimplify.h (gimplify_va_arg_internal): Declare.
30258 * internal-fn.c (expand_VA_ARG): New unreachable function.
30259 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
30260 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
30261 (expand_ifn_va_arg): New function.
30262 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
30263 (pass_stdarg::execute): Call expand_ifn_va_arg.
30264 (pass_data_lower_vaarg): New pass_data.
30265 (pass_lower_vaarg): New gimple_opt_pass.
30266 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
30267 (make_pass_lower_vaarg): New function.
30268 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
30269 properties_required field.
30270 * passes.def (all_passes): Add pass_lower_vaarg.
30271 * tree-pass.h (PROP_gimple_lva): Add define.
30272 (make_pass_lower_vaarg): Declare.
30274 2015-04-17 Tom de Vries <tom@codesourcery.com>
30276 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
30277 * calls.c (call_expr_flags): Same.
30279 2015-04-17 Tom de Vries <tom@codesourcery.com>
30281 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
30282 (pass_stdarg::execute): ... here.
30284 2015-04-17 Tom de Vries <tom@codesourcery.com>
30285 Michael Matz <matz@suse.de>
30287 * tree-cfg.c (make_blocks_1): Factor out of ...
30288 (make_blocks): ... here.
30289 (make_edges_bb): Factor out of ...
30290 (make_edges): ... here.
30291 (gimple_find_sub_bbs): New function.
30292 * tree-cfg.h (gimple_find_sub_bbs): Declare.
30294 2015-04-17 Tom de Vries <tom@codesourcery.com>
30296 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
30298 2015-04-17 Yury Gribov <y.gribov@samsung.com>
30300 * asan.c (set_sanitized_sections): New function.
30301 (section_sanitized_p): Ditto.
30302 (asan_protect_global): Optionally sanitize user-defined
30304 * asan.h (set_sanitized_sections): Declare new function.
30305 * common.opt (fsanitize-sections): New option.
30306 * doc/invoke.texi (-fsanitize-sections): Document new option.
30307 * opts-global.c (handle_common_deferred_options): Handle new
30310 2015-04-17 Jakub Jelinek <jakub@redhat.com>
30313 * dwarf2out.c (loc_list_from_tree): Return NULL
30314 for DEBUG_EXPR_DECL.
30316 2015-04-17 Christian Bruel <christian.bruel@st.com>
30318 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
30321 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
30323 * ira-color.c (setup_left_conflict_sizes_p): Do not process
30324 node itself when computing left conflict subnode size.
30326 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
30328 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
30329 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
30330 *fop_<mode>_1_sse using enabled attribute. Use
30331 register_mixssei387nonimm_operand operand 1 predicate. Change
30332 alternative 3 constraints from "x" to "v".
30334 2015-04-16 Richard Biener <rguenther@suse.de>
30336 PR tree-optimization/65774
30337 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
30338 bit-value tracking on.
30340 2015-04-16 Richard Biener <rguenther@suse.de>
30342 PR tree-optimization/64277
30343 * tree-vrp.c (check_array_ref): Fix anti-range handling,
30344 simplify upper bound handling.
30345 (search_for_addr_array): Simplify.
30346 (check_array_bounds): Handle ADDR_EXPRs here.
30347 (check_all_array_refs): Simplify.
30349 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
30351 * config/i386/i386.c (print_reg): Rewrite function.
30353 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30355 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
30356 Invert the condition.
30358 2015-04-16 Renlin Li <renlin.li@arm.com>
30360 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
30361 simplifications for UNSIGNED_FLOAT.
30363 2015-04-16 Nick Clifton <nickc@redhat.com>
30365 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
30367 (enum rl78_cpu_type): New.
30368 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
30369 (umulhi3_shift_virt): Remove m constraint from operand 1.
30370 (umulqihi3_virt): Likewise.
30371 * config/rl78/rl78.c (rl78_option_override): Add code to process
30372 -mcpu and -mmul options.
30373 (rl78_alloc_physical_registers): Add code to handle divhi and
30374 divsi valloc attributes.
30375 (set_origin): Likewise.
30376 * config/rl78/rl78.h (RL78_MUL_G14): Define.
30377 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
30378 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
30380 (ASM_SPEC): Pass -mcpu on to assembler.
30381 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
30382 (mulqi3_rl78): Likewise.
30383 (mulhi3_g13): Likewise.
30384 (mulhi3): Generate the G13 or G14 versions of the insn directly.
30385 (mulsi3): Likewise.
30386 (mulhi3_g14): Add clobbers of AX and BC.
30387 (mulsi3_g14): Likewise.
30388 (mulsi3_g13): Likewise.
30389 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
30390 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
30391 * config/rl78/rl78.opt (mmul): Initialise value to
30393 (mcpu): New option.
30394 (m13, m14, mrl78): New option aliases.
30395 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
30396 (MULTILIB_DIRNAMES): Add g13 and g14.
30397 * doc/invoke.texi: Document -mcpu and -mmul options.
30399 2015-04-16 Richard Biener <rguenther@suse.de>
30401 * tree-ssa-ccp.c (likely_value): See if we have operands that
30402 are marked as never simulate again and return CONSTANT in this
30404 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
30405 not have any operands that will be simulated again as
30406 not being simulated again.
30408 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
30410 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
30411 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
30412 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
30414 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
30416 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
30417 *float<SWI48:mode><MODEF:mode>2_sse.
30418 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
30420 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
30423 2015-04-15 Tom de Vries <tom@codesourcery.com>
30426 * function.c (push_dummy_function): New function.
30427 (init_dummy_function_start): Use push_dummy_function.
30428 (pop_dummy_function): New function. Factored out of ...
30429 (expand_dummy_function_end): ... here.
30430 * function.h (push_dummy_function, pop_dummy_function): Declare.
30431 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
30432 pop_dummy_function.
30433 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
30435 2015-04-15 Jeff Law <law@redhat.com>
30437 PR tree-optimization/47679
30438 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
30439 need for forward declaration in upcoming changes.
30440 (record_conditions, record_edge_info): Likewise.
30442 PR rtl-optimization/42522
30443 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
30444 SIGN_EXTRACT as a whole object rather than simplifying
30447 2015-04-15 Jakub Jelinek <jakub@redhat.com>
30450 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
30451 and GIMPLE_PREDICT use break instead of return true. For
30452 GIMPLE_EH_DISPATCH, compare dispatch region.
30454 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
30456 * doc/extend.texi (__sync Builtins): Simplify some text. Update
30457 details about the implementation. Make clear preference for
30458 __atomic builtins. Reduce possibility of future change.
30460 2015-04-15 Nick Clifton <nickc@redhat.com>
30462 * config/rx/rx.opt (mallow-string-insns): New option.
30463 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
30464 builtin if string instructions are denied.
30465 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
30466 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
30468 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
30469 * config/rx/rx.md (movstr): Enable pattern only if string
30470 instructions are allowed.
30471 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
30472 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
30473 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
30474 (MULTILIB_DIRNAMES): Add no-strings.
30475 * doc/invoke.texi: Document -mno-allow-string-insns.
30477 2015-04-15 Alan Modra <amodra@gmail.com>
30481 PR middle-end/36043
30482 * calls.c (load_register_parameters): Don't load past end of
30483 mem unless suitably aligned.
30485 2015-04-15 Nick Clifton <nickc@redhat.com>
30487 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
30488 decrement instruction as being frame related.
30489 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
30491 If zero extending a function address enclose the operation in
30493 (rl78_preferred_reload_class): New function.
30494 (TARGET_PREFERRED_RELOAD_CLASS): Define.
30495 * config/rl78/rl78.md: Remove useless constraints in expanders.
30496 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
30497 (mulhi3_rl78): Likewise.
30498 (mulhi3_g13): Likewise.
30499 (mulsi3_rl78): Likewise.
30500 (es_addr): Move to before the multiply patterns.
30502 2015-04-15 Alan Modra <amodra@gmail.com>
30504 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
30505 and sequence_stack. Add seq.
30506 (seq_stack): Delete.
30507 * function.c (prepare_function_start): Don't access x_last_insn.
30508 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
30509 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
30510 * emit_rtl.c (start_sequence, push_topmost_sequence,
30511 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
30512 sequence accessors.
30513 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
30514 remove_insn): Likewise. Simplify.
30515 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
30516 and pop_topmost_sequence.
30517 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
30519 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
30521 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
30524 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
30527 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
30529 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
30530 (LEGACY_INT_REGNO_P): Ditto.
30531 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
30532 (ANY_MASK_REG_P): Remove.
30533 (BND_REG_P): Rename from ANY_BND_REG_P.
30534 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
30535 legacy integer registers. Do not handle MMX_REG_P in a special way.
30536 Merge 64byte and 32byte SSE handling.
30538 2015-04-14 Nick Clifton <nickc@redhat.com>
30540 * expr.c (expand_assignment): Force an address offset computation
30541 into a register before changing its mode.
30542 (expand_expr_real_1): Likewise.
30544 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
30546 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
30547 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
30548 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
30549 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
30550 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
30551 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
30552 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
30553 and __aarch64_vget_lane_any.
30555 2015-04-14 Jakub Jelinek <jakub@redhat.com>
30557 PR rtl-optimization/65761
30558 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
30559 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
30561 2015-04-14 Richard Biener <rguenther@suse.de>
30563 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
30564 (graphite_can_represent_scev): Use POINTER_TYPE_P.
30566 2015-04-14 Richard Biener <rguenther@suse.de>
30568 PR tree-optimization/65758
30569 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
30571 (ccp_lattice_meet): Likewise.
30572 (bit_value_unop): Likewise.
30573 (bit_value_binop): Likewise.
30574 (bit_value_assume_aligned): Likewise.
30576 2015-04-14 Christian Bruel <christian.bruel@st.com>
30578 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
30581 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
30583 PR tree-optimization/63387
30584 * match.pd ((x unord x) | (y unord y) -> (x unord y),
30585 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
30587 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
30589 * config/i386/predicates.md (any_QIreg_operand): Rename from
30590 q_regs_operand. Do not process subregs.
30591 (QIreg_operand): Use QI_REGNO_P predicate.
30592 (ext_QIreg_operand): Ditto.
30593 (ext_register_operand): Ditto.
30594 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
30595 (AND splitters): Ditto.
30596 (AND with -65536 splitter): Add SWI48 mode for operand 0.
30597 (AND with -256 splitter): Use any_QIreg_operand predicate and
30598 SWI248 mode for operand 0.
30599 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
30600 mode for operand 0.
30601 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
30603 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
30605 * doc/plugins.texi: Rewrite first introductory paragraph.
30607 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30609 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
30610 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
30612 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30614 * ipa-profie.c (ipa_profile): Check number of parameters
30615 and possible polymorphic call targets before
30618 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
30620 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
30621 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
30623 2015-04-13 Richard Biener <rguenther@suse.de>
30625 PR tree-optimization/65204
30626 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
30627 takens for bit-CCP.
30629 2015-04-13 Richard Biener <rguenther@suse.de>
30632 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
30633 and cond_not_taken_branch_cost to 4 and 2.
30634 (bdver2_cost): Likewise.
30635 (bdver3_cost): Likewise.
30636 (bdver4_cost): Likewise.
30638 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30640 * hash-table.h (hash_table constructor): Add mem stats.
30641 (alloc_entries): Likewise.
30643 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30645 * ipa-cp.c (ipcp_driver): Relase prev_edge.
30646 * passes.c (execute_one_pass): Only add transform if pass has one.
30648 2015-04-12 Joseph Myers <joseph@codesourcery.com>
30650 * config/i386/i386.c (ix86_option_override_internal): Don't set
30651 -fprefetch-loop-arrays if optimizing for size.
30653 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
30654 Gerald Pfeifer <gerald@pfeifer.com>
30656 * doc/contrib.texi (Contributors): Add Martin Jambor and
30659 2015-04-12 Jakub Jelinek <jakub@redhat.com>
30661 * BASE-VER: Set to 6.0.0.
30663 PR tree-optimization/65747
30664 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
30665 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
30667 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
30669 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
30670 sentence. Improve grammar.
30672 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
30674 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
30676 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
30679 * ipa-inline-transform.c (speculation_removed): Remove static var.
30680 (check_speculations): New function.
30681 (clone_inlined_nodes): Do not check spculations.
30682 (inline_call): Call check_speculations.
30683 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
30684 consider non-invariants.
30686 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
30687 Martin Liska <mliska@suse.cz>
30690 * ipa-icf.c (sem_item::compare_cgraph_references): function and
30691 variable can not match.
30692 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
30693 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
30695 2015-04-11 Jakub Jelinek <jakub@redhat.com>
30697 PR tree-optimization/65735
30698 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
30699 Remove visited_phis argument, add visited_bbs, avoid recursing into the
30700 same bb rather than just into the same phi node.
30701 (thread_through_normal_block): Adjust caller.
30703 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
30705 * doc/contrib.texi (Contributors): Add Ira Rosen.
30707 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
30709 * gcov.c (find_source): Fix miswording in error message.
30710 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
30711 (ix86_expand_sse_comi_round): Fix typo in error message.
30713 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
30715 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
30717 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
30719 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
30721 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
30724 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
30725 Print bad_spills_num and insn_pseudos_num.
30727 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30730 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
30731 when creating +1 values for SImode.
30733 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
30736 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
30739 2015-04-10 Jakub Jelinek <jakub@redhat.com>
30740 Iain Sandoe <iain@codesourcery.com>
30743 * configure: Regenerate.
30745 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
30748 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
30750 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
30752 * doc/contrib.texi (Contributors): Add John Marino.
30754 2015-04-09 Jakub Jelinek <jakub@redhat.com>
30756 PR tree-optimization/65709
30757 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
30758 TREE_TYPE (TREE_TYPE (t)).
30760 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
30763 * lra-int.h (lra_bad_spill_regno_start): New.
30764 * lra.c (lra_bad_spill_regno_start): New.
30765 (lra): Set up lra_bad_spill_regno_start. Set up
30766 lra_constraint_new_regno_start unconditionally.
30767 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
30770 2015-04-09 Marek Polacek <polacek@redhat.com>
30771 Jakub Jelinek <jakub@redhat.com>
30773 PR middle-end/65554
30774 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
30775 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
30778 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
30780 PR rtl-optimization/65693
30781 * combine.c (is_parallel_of_n_reg_sets): Move outside of
30784 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
30787 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
30788 device specs file if "device-specs%s" didn't resolve to a path.
30790 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
30793 * config/i386/i386.c (fixup_modeless_constant): New.
30794 (ix86_expand_args_builtin): Fixup modeless constant operand.
30795 (ix86_expand_round_builtin): Ditto.
30796 (ix86_expand_special_args_builtin): Ditto.
30797 (ix86_expand_builtin): Ditto.
30799 2015-04-09 Jakub Jelinek <jakub@redhat.com>
30802 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
30803 any pow2 integer in between 2 and 0x80000000U inclusive.
30805 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
30807 PR rtl-optimization/65693
30808 * combine.c (is_parallel_of_n_reg_sets): Change first argument
30809 from an rtx_insn * to an rtx.
30810 (try_combine): Adjust both callers. Use it once more.
30812 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30814 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
30815 (chkp_make_static_const_bounds): Search existing
30816 symbol by assembler name. Use make_decl_one_only.
30817 (chkp_get_zero_bounds_var): Remove node search which
30818 is now performed in chkp_make_static_const_bounds.
30819 (chkp_get_none_bounds_var): Likewise.
30821 2015-04-08 Michael Witten <mfwitten@gmail.com>
30823 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
30826 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30828 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
30830 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30832 * doc/extend.texi (__sync Builtins): Fix grammar.
30834 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30836 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
30838 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30840 * varasm.c (emit_local): Move definition of align.
30842 2015-04-08 Julian Brown <julian@codesourcery.com>
30844 * config/nvptx/mkoffload.c (process): Support variable mapping.
30846 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
30848 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
30850 (alpha_write_one_linkage): Correct typo.
30852 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30854 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
30856 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
30858 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
30860 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
30862 * tree-chkp.h (chkp_insert_retbnd_call): New.
30863 * tree-chkp.c (chkp_insert_retbnd_call): New.
30864 * ipa-split.c (insert_bndret_call_after): Remove.
30865 (split_function): Use chkp_insert_retbnd_call.
30866 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
30867 bounds for instrumented functions.
30869 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
30872 * calls.c (initialize_argument_information): When producing tail
30873 call also turn SSA_NAMES passed by references to original PARM_DECLs
30875 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
30878 * lra-remat.c (do_remat): Process input and non-input insn
30879 registers separately.
30881 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30884 * valtrack.c (debug_lowpart_subreg): New function.
30885 (dead_debug_insert_temp): Use it.
30887 PR middle-end/65680
30888 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
30889 into signed HOST_WIDE_INT the same as negative bit_offset.
30891 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
30893 * ipa-comdats.c (ipa_comdats): Visit all thunks
30894 to set proper comdat group.
30896 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30899 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
30900 on constants for NEON VSTRUCT modes.
30902 2015-04-07 Jakub Jelinek <jakub@redhat.com>
30903 Iain Sandoe <iain@codesourcery.com>
30906 * configure: Regenerate.
30908 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
30911 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
30912 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
30913 that LFD is used to load double constants instead of LFS. Add
30914 defaults for all costs structures. Add comments for missing
30915 initialization fields.
30916 (size32_cost): Likewise.
30917 (size64_cost): Likewise.
30918 (rs64a_cost): Likewise.
30919 (mpccore_cost): Likewise.
30920 (ppc403_cost): Likewise.
30921 (ppc405_cost): Likewise.
30922 (ppc440_cost): Likewise.
30923 (ppc476_cost): Likewise.
30924 (ppc601_cost): Likewise.
30925 (ppc603_cost): Likewise.
30926 (ppc604_cost): Likewise.
30927 (ppc604e_cost): Likewise.
30928 (ppc620_cost): Likewise.
30929 (ppc630_cost): Likewise.
30930 (ppccell_cost): Likewise.
30931 (ppc750_cost): Likewise.
30932 (ppc7450_cost): Likewise.
30933 (ppc8540_cost): Likewise.
30934 (ppce300c2c3_cost): Likewise.
30935 (ppce500mc_cost): Likewise.
30936 (ppce500mc64_cost): Likewise.
30937 (ppce5500_cost): Likewise.
30938 (ppce6500_cost): Likewise.
30939 (titan_cost): Likewise.
30940 (power4_cost): Likewise.
30941 (power6_cost): Likewise.
30942 (power7_cost): Likewise.
30943 (power8_cost): Likewise.
30944 (ppca2_cost): Likewise.
30945 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
30947 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
30948 instead of XXLOR to copy SFmode to clear out dirty bits created
30949 when SFmode denormals are generated.
30950 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
30951 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
30953 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30955 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
30956 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
30957 * config/aarch64/aarch64-tune.md: Regenerate.
30959 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
30961 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
30962 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
30963 * config/arm/arm-cores.def (exynos-m1): New core.
30964 * config/arm/arm-tune.md: Regenerate.
30965 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
30966 * config/arm/bpabi.h: Likewise.
30968 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30970 * ipa-cp (set_single_call_flag): Remove too
30971 restrictive assert.
30973 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
30975 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
30976 GOMP_offload_unregister from the destructor.
30978 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
30980 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
30981 flags for instrumentation thunk.
30982 (chkp_produce_thunks): Likewise.
30984 2015-04-05 Martin Liska <mliska@suse.cz>
30987 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
30988 has computed data structure.
30989 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
30991 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
30993 * invoke.texi (inline-unit-growth): Increase growth to 20%
30994 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
30996 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
30999 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
31001 (lra_rematerialization_iter): New.
31002 * lra.c (lra): Initialize lra_rematerialization_iter.
31003 Stop updating lra_constraint_new_regno_start after switching of
31004 inheritance and rematerialization.
31005 * lra-remat.c (lra_rematerialization_iter): New.
31006 (lra_remat): Add printing pass iteration. Do rematerialization
31007 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
31009 2015-04-04 Richard Biener <rguenther@suse.de>
31011 PR tree-optimization/64909
31012 PR tree-optimization/65660
31013 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
31014 to take a cost vector for scalar iteration cost.
31015 (vect_get_single_scalar_iteration_cost): Likewise.
31016 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
31017 Compute the scalar iteration cost into a cost vector.
31018 (vect_get_known_peeling_cost): Use the scalar cost vector to
31019 account for the cost of the peeled iterations.
31020 (vect_estimate_min_profitable_iters): Likewise.
31021 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
31024 2015-04-04 Alan Modra <amodra@gmail.com>
31028 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
31029 0.0 constant unless TARGET_VSX.
31030 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
31033 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
31036 * ipa-inline-transform.c (inline_call): Skip sanity check to work
31039 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
31042 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
31043 speculative indirect edges to avoid ordering issue.
31045 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
31048 * ipa-inline.c (edge_badness): Add combined size to the denominator.
31050 2015-04-03 Jakub Jelinek <jakub@redhat.com>
31052 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
31053 TYPE_ARTIFICIAL on the .omp_data* types.
31055 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
31057 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
31058 instrumentation thunks.
31060 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
31062 * config/i386/i386.c (ix86_expand_call): Avoid nested
31063 PARALLEL in returned call value.
31065 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
31067 * lto-cgraph.c (input_cgraph_1): Always link instrumented
31068 assembler name with original one.
31070 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
31072 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
31074 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
31076 Revert parts of r216820.
31077 * config/i386/i386.md (movqi_internal): Correct type calculation
31078 for alternatives 3 and 5.
31080 2015-04-02 Jakub Jelinek <jakub@redhat.com>
31082 PR preprocessor/61977
31083 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
31084 predefine __vector/__bool/__pixel macros nor context sensitive
31085 macros for CLK_ASM.
31086 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
31088 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
31090 * config/pa/pa.c (pa_output_move_double): Directly handle register
31091 indexed memory operand. Simplify handling of scaled register indexed
31094 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
31097 * config/i386/linux-common.h (MPX_SPEC): New.
31098 (CHKP_SPEC): Add MPX_SPEC.
31099 * doc/invoke.texi (-fcheck-pointer-boudns): Document
31100 possible issues with '-z bndplt' support in linker.
31102 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
31104 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
31105 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
31106 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
31107 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
31108 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
31110 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
31112 * config/i386/sync.md (UNSPEC_MOVA): Remove.
31113 (atomic_load<mode>): Change operand 0 predicate to
31114 nonimmediate_operand and fix up the destination when needed.
31116 (atomic_loaddi_fpu): Use UNSPEC_LDA.
31117 (atomic_store<mode>): Change operand 1 predicate to
31118 nonimmendate_operand and move the source to register when needed.
31120 (atomic_store<mode>_1): Use UNSPEC_STA.
31121 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
31122 Fix moves from memory operand. Use UNSPEC_STA.
31124 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
31126 * expmed.c (strict_volatile_bitfield_p): Check that the access will
31127 not cross a MODESIZE boundary.
31128 (store_bit_field, extract_bit_field): Added assertions in the
31129 strict volatile bitfields code path.
31131 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
31134 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
31135 Increase args array size by one to avoid buffer overflow.
31137 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
31139 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
31141 * ipa-inline.c (edge_badness): Add wrapper penalty.
31142 (sum_callers): Move up.
31143 (inline_small_functions): Set single_caller.
31144 * ipa-inline.h (inline_summary): Add single_caller.
31145 * ipa-split.c (split_function): Set split_part.
31146 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
31147 * cgraph.h (cgraph_node): Add split_part.
31149 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
31152 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
31153 Do not split operands 0 and operands 2 to halfmode.
31154 (atomic_compare_and_swap<mode>): Update for
31155 atomic_compare_and_swap<dwi>_doubleword changes.
31157 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
31159 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
31160 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
31161 no caching is done.
31163 2015-03-31 Martin Liska <mliska@suse.cz>
31166 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
31167 has already filled up function summary.
31168 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
31170 2015-03-31 Richard Biener <rguenther@suse.de>
31172 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
31175 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
31177 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
31179 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
31180 (s390_asm_output_function_label): Adapt to new signature of
31181 s390_function_num_hotpatch_hw
31182 Optimise the code generating assembler output.
31183 Add comments to assembler file.
31185 2015-03-31 Richard Biener <rguenther@suse.de>
31187 PR middle-end/65626
31188 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
31189 of the noreturn call so it is last and cleanup_control_flow_bb
31190 can do the CFG part.
31192 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
31195 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
31196 same_comdat_group for external symbols.
31197 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
31198 infinite same_comdat_group traversal loop.
31200 2015-03-31 Jakub Jelinek <jakub@redhat.com>
31203 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
31204 automatically to $headers.
31206 2015-03-30 Jakub Jelinek <jakub@redhat.com>
31209 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
31210 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
31212 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
31214 * ipa-prop.c (param_type_may_change_p): Likewise.
31215 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
31216 (remove_unused_scope_block_p): Add in_ctor_dtor_block
31217 argument. Before inlining, preserve
31218 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
31219 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
31221 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
31223 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
31226 * ipa-inline.c (edge_badness): Base denominator on callee's
31229 2015-03-27 Martin Jambor <mjambor@suse.cz>
31232 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
31233 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
31234 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
31235 node_calling_single_call.
31236 * ipa-cp.c (count_callers): New function.
31237 (set_single_call_flag): Likewise.
31238 (initialize_node_lattices): Count callers and set single_flag_call if
31240 (incorporate_penalties): New function.
31241 (good_cloning_opportunity_p): Use it, dump new flags.
31242 (propagate_constants_topo): Set node_within_scc flag if appropriate.
31243 * doc/invoke.texi (ipa-cp-recursion-penalty,
31244 ipa-cp-single-call-pentalty): Document.
31246 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
31249 * symtab.c (symtab_node::get_partitioning_class): Register vars
31251 * varpool.c (symbol_table::output_variables) Do not assemble unefined
31252 decls for non-symbols.
31254 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
31257 * output.h (default_binds_local_p_2): New.
31258 * varasm.c (default_binds_local_p_2): Renamed to ...
31259 (default_binds_local_p_3): This. Don't return true on protected
31260 data symbol if protected data may be external.
31261 (default_binds_local_p): Use default_binds_local_p_3.
31262 (default_binds_local_p_1): Likewise.
31263 (default_binds_local_p_2): New.
31264 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
31265 default_binds_local_p_2 if TARGET_MACHO is undefined.
31267 2015-03-27 Jakub Jelinek <jakub@redhat.com>
31270 * config/i386/i386.c (legitimize_pic_address): If base
31271 is SYMBOL_REF or LABEL_REF using %rip addressing, force
31272 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
31274 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
31277 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
31280 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
31283 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
31284 of optimized out indirect call.
31285 (redirect_to_unreachable): Always build symbol table node for
31286 BUILT_IN_UNREACHABLE
31288 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
31291 * ira-costs.c (record_reg_classes): Process all constraint string
31294 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
31296 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
31300 * config/c6x/constraints.md (S3): New constraint.
31301 * config/c6x/c6x.md (real_jump): Use it.
31303 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31305 PR middle-end/65595
31306 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
31307 do redirection if the call is not optimized out.
31309 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
31312 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
31313 (fchkp-check-incomplete-type): Add LTO.
31314 (fchkp-zero-input-bounds-for-main): Likewise.
31315 (fchkp-first-field-has-own-bounds): Likewise.
31316 (fchkp-narrow-bounds): Likewise.
31317 (fchkp-narrow-to-innermost-array): Likewise.
31318 (fchkp-use-static-bounds): Likewise.
31319 (fchkp-use-static-const-bounds): Likewise.
31320 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31322 2015-03-27 Marek Polacek <polacek@redhat.com>
31324 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
31326 2015-03-27 Marek Polacek <polacek@redhat.com>
31329 * ubsan.c (ubsan_create_edge): New function.
31330 (instrument_bool_enum_load): Call it.
31331 (instrument_nonnull_arg): Likewise.
31332 (instrument_nonnull_return): Likewise.
31333 (instrument_object_size): Likewise.
31335 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31337 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
31340 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31343 * lto-streamer.h (class lto_location_cache): New.
31344 (struct data_in): Add location_cache.
31345 (lto_input_location): Update prototype.
31346 (stream_input_location_now): New.
31347 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
31348 pointer to location.
31349 (stream_input_location): Update.
31350 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
31351 (warn_odr): Apply location cache before warning.
31352 (lto_input_location): Update prototype.
31353 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
31354 Use stream_input_location_now.
31355 * lto-streamer-in.c (lto_location_cache::current_cache): New static
31357 (lto_location_cache::cmp_loc): New function.
31358 (lto_location_cache::apply_location_cache): New function.
31359 (lto_location_cache::accept_location_cache): New function.
31360 (lto_location_cache::revert_location_cache): New function.
31361 (lto_location_cache::input_location): New function.
31362 (lto_input_location): Do location caching.
31363 (stream_input_location_now): New function.
31364 (input_eh_region, input_struct_function_base): Use
31365 stream_input_location_now.
31366 (lto_data_in_create): use new.
31367 (lto_data_in_delete): Use delete.
31368 * tree-streamer-in.c (unpack_ts_block_value_fields,
31369 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
31370 lto_input_ts_exp_tree_pointers): Update for cached location api.
31372 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31375 * passes.def: Add pass_nothrow.
31376 * ipa-pure-const.c: (pass_data_nothrow): New.
31377 (pass_nothrow): New.
31378 (pass_nothrow::execute): New.
31379 (make_pass_nothrow): New.
31380 * tree-pass.h (make_pass_nothrow): Declare.
31382 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31384 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
31385 edge to change by speculation resolution or redirection.
31386 (edge_set_predicate): Likewise.
31387 (inline_summary_t::duplicate): Likewise.
31388 (remap_edge_summaries): Likewise.
31390 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31392 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
31394 (can_inline_edge_p): Relax option matching for always inline functions.
31396 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
31399 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
31400 Check operand 4 and operand 0 for equality.
31401 (avx512f_vextract<shuffletype>32x4_1_maskm):
31402 Check operand 6 and operand 0 for equality.
31403 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
31405 (vec_extract_hi_<mode>_maskm): Ditto.
31407 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31409 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
31410 dead calls back to live.
31411 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
31413 (cgraph_node::verify_node): ... here; verify only callee edges,
31415 * cif-code.def (CILK_SPAWN): New code.
31417 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
31419 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
31420 (edge_set_predicate): Use it to mark unreachable edges.
31421 (inline_summary_t::duplicate): Remove unnecesary code.
31422 (remap_edge_summaries): Likewise.
31423 (dump_inline_summary): Report contains_cilk_spawn.
31424 (compute_inline_parameters): Compute contains_cilk_spawn.
31425 (inline_read_section, inline_write_summary): Stream
31426 contains_cilk_spawn.
31427 * ipa-inline.c (can_inline_edge_p): Do not touch
31428 DECL_STRUCT_FUNCTION that may not be available;
31429 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
31430 remove check for callee_fun->can_throw_non_call_exceptions and
31431 replace it by optimization attribute check; check for flag_exceptions.
31432 * ipa-inline-transform.c (inline_call): Maintain
31433 DECL_FUNCTION_PERSONALITY
31434 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
31436 2015-03-26 Jakub Jelinek <jakub@redhat.com>
31438 PR tree-optimization/65551
31439 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
31440 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
31442 2015-03-26 Richard Biener <rguenther@suse.de>
31444 PR middle-end/65555
31445 * tree-cfg.c (verify_gimple_call): Do not require a call to
31446 have no LHS if it wasn't recognized as control altering yet.
31448 2015-03-26 Jakub Jelinek <jakub@redhat.com>
31450 PR tree-optimization/64715
31451 * passes.def: Add another instance of pass_object_sizes before ccp1.
31452 * tree-object-size.c (pass_object_sizes::execute): In
31453 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
31454 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
31455 __bos result and the computed constant. Remove redundant
31456 checks, obsoleted by gimple_call_builtin_p test.
31458 * var-tracking.c (variable_tracking_main_1): Don't track
31459 variables for targetm.no_register_allocation targets.
31461 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
31463 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
31464 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
31466 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
31469 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
31470 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
31471 0.0 is correctly setup.
31472 (extenddftf2_internal): Likewise.
31474 2015-03-25 Sebastian Pop <s.pop@samsung.com>
31476 PR tree-optimization/65177
31477 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
31479 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
31480 edges not adjacent on the path to the original code.
31482 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
31485 * doc/install.texi (Building a native compiler): Document new
31486 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
31487 configuration assumes that the host supports the linker plugin.
31489 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
31492 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
31493 chain for generated call.
31495 2015-03-25 Richard Biener <rguenther@suse.de>
31497 * passes.c (pass_manager::execute_early_local_passes): Guard
31498 execution of pass_chkp_instrumentation_passes with
31499 flag_check_pointer_bounds.
31500 (pass_chkp_instrumentation_passes::gate): Likewise.
31502 2015-03-25 Martin Liska <mliska@suse.cz>
31504 PR tree-optimization/65538
31505 * symbol-summary.h (function_summary::~function_summary):
31506 Relese memory for allocated summaries.
31507 (function_summary::release): New function.
31509 2015-03-25 Jakub Jelinek <jakub@redhat.com>
31512 * lto-streamer-out.c (DFS::worklist): New struct.
31513 (DFS::worklist_vec): New data member.
31514 (DFS::next_dfs_num): Remove.
31515 (DFS::DFS): Rewritten using worklist instead of recursion,
31516 using most of code from DFS::DFS_write_tree.
31517 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
31518 pass it to DFS_write_tree calls.
31519 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
31520 quick initial checks push it into worklist_vec and return.
31522 2015-03-25 Richard Biener <rguenther@suse.de>
31524 PR middle-end/65519
31525 * genmatch.c (expr::gen_transform): Re-write to avoid
31526 using gimple_build.
31528 2015-03-25 Bin Cheng <bin.cheng@arm.com>
31530 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
31532 2015-03-25 Bin Cheng <bin.cheng@arm.com>
31534 * config/arm/arm.opt (print_tune_info): New option.
31535 * config/arm/arm.c (arm_print_tune_info): New function.
31536 (arm_file_start): Call arm_print_tune_info.
31537 * config/arm/arm-protos.h (struct tune_params): Add comment.
31538 * doc/invoke.texi (@item -mprint-tune-info): New item.
31539 (-mtune): mention it in ARM Option Summary.
31541 2015-03-25 DJ Delorie <dj@redhat.com>
31543 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
31546 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
31547 Martin Liska <mliska@suse.cz>
31549 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
31550 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
31551 (sem_item::add_type): New function.
31552 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
31553 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
31554 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
31555 (sem_function::equals_wpa): Fix typo.
31556 * ipa-icf.h (sem_item::add_type): New function.
31557 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
31560 2015-03-24 Jakub Jelinek <jakub@redhat.com>
31562 PR tree-optimization/65533
31563 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
31564 with swapped operands, call vect_free_slp_tree on
31565 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
31568 2015-03-24 Richard Biener <rguenther@suse.de>
31570 PR middle-end/65517
31571 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
31572 for fixup if necessary.
31574 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
31576 * doc/extend.texi (Function Attributes): Add @cindex entries
31577 for all attributes and regularize their format. Delete text
31578 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
31579 information about "eightbit_data", "tiny_data", and "model"
31580 variable attributes to the Variable Attributes section. Fix
31581 some obvious typos and copy-editing issues.
31582 (Variable Attributes, Type Attributes): Likewise add/fix
31583 @cindex entries for all attributes.
31585 2015-03-23 Jakub Jelinek <jakub@redhat.com>
31588 * tree-chkp.c (chkp_build_returned_bound): Ignore
31589 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
31591 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
31594 * config/sh/predicates.md (simple_mem_operand,
31595 displacement_mem_operand): Add test for reg.
31596 (short_displacement_mem_operand): Test for displacement_mem_operand
31597 before invoking sh_disp_addr_displacement.
31598 * config/sh/constraints.md (Sdd, Sra): Simplify.
31599 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
31600 Remove redundant displacement_mem_operand tests.
31602 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
31605 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
31606 the same -mmcu=MCU more than once.
31608 2015-03-23 Jakub Jelinek <jakub@redhat.com>
31611 * ipa-devirt.c: Remove duplicate demangle.h include.
31614 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
31616 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
31617 REG_POINTER on *destptr after adjusting it for prologue size.
31620 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
31621 ultimate_alias_target ()->order ints instead of
31622 ultimate_alias_target () pointers.
31624 2015-03-23 Richard Biener <rguenther@suse.de>
31626 PR tree-optimization/65518
31627 * tree-vect-stmts.c (vectorizable_load): Reject single-element
31628 interleaving cases we generate absymal code for.
31630 2015-03-23 Richard Biener <rguenther@suse.de>
31632 PR tree-optimization/65494
31633 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
31635 (vect_analyze_slp_instance): But do that here, always and once.
31637 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31639 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
31640 adding T or multiplying by T+1 and subracting T.
31642 2015-03-22 Jeff Law <law@redhat.com>
31644 PR rtl-optimization/64317
31645 * Makefile.in (OBJS): Add gcse-common.c
31646 * gcse.c: Include gcse-common.h
31647 (struct modify_pair_s): Move structure definition to gcse-common.h
31648 (compute_transp): Move function to gcse-common.c.
31649 (canon_list_insert): Similarly.
31650 (record_last_mem_set_info): Break out some code and put it into
31651 gcse-common.c. Call into the new common code.
31652 (compute_local_properties): Pass additional arguments to compute_transp.
31653 * postreload-gcse.c: Include gcse-common.h and df.h
31654 (modify_mem_list_set, blocks_with_calls): New variables.
31655 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
31656 (get_bb_avail_insn): Pass in the expression index too.
31657 (alloc_mem): Allocate memory for the new bitmaps and lists.
31658 (free_mem): Free memory for the new bitmaps and lists.
31659 (insert_expr_in_table): Record a bitmap index for each entry we
31661 (record_last_mem_set_info): Call into common code in gcse-common.c.
31662 (get_bb_avail_insn): If no available insn was found in the requested
31663 BB. If BB has a single predecessor, see if the expression is
31664 transparent in BB and available in that single predecessor.
31665 (compute_expr_transp): New wrapper for compute_transp.
31666 (eliminate_partially_redundant_load): Pass expression's bitmap_index
31667 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
31668 (gcse_after_reload_main): If there are elements in the hash table,
31669 then compute transparency for all the elements in the hash table.
31670 * gcse-common.h: New file.
31671 * gcse-common.c: New file.
31673 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
31675 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
31677 (System Headers): Likewise.
31679 (Traditional macros): Likewise.
31680 (Invocation): Likewise.
31681 (Option Index): Likewise.
31682 * doc/cppopts.texi (-M): Likewise.
31683 (-finput-charset): Likewise.
31684 (--help): Likewise.
31685 * doc.invoke.texi (AVR Options): Likewise.
31686 (V850 Options): Likewise.
31688 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
31691 * ipa-devirt.c: Include demangle.h
31692 (odr_type_d): Add field rtti_broken.
31693 (odr_subtypes_equivalent_p): Do not require name to match.
31694 (compare_virtual_tables): Fix typo; if type already has ODR violation,
31695 bypass the tests; be ready for function referneces in vtables that are
31696 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
31697 (warn_odr): Give up for nameless types.
31698 (warn_types_mismatch): Report mismatch in mangled names;
31699 report mismatch in anonymous namespaces; look into component types to
31700 give useful error; report when mismatch is dragged in from other ODR
31702 (odr_types_equivalent_p): Match types for being polymorphic; avoid
31703 duplicated diagnostics.
31704 (add_type_duplicate): Reorder checks so more informative ones come
31705 first; fix typo; do not output "the extra base is defined here" when
31707 (BINFO_N_BASE_BINFOS): Relax sanity check.
31709 2015-03-22 Martin Liska <mliska@suse.cz>
31710 Jakub Jelinek <jakub@redhat.com>
31712 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
31713 masks that can potentially include a builtin.
31714 (ix86_add_new_builtins): Introduce fast filter for isa values
31715 that cannot trigger builtin inclusion.
31717 2015-03-22 Martin Liska <mliska@suse.cz>
31719 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
31720 (sem_item::update_hash_by_local_refs): Likewise.
31721 (sem_variable::get_hash): Empty line is fixed.
31722 (sem_item_optimizer::execute): Include adding of hash references.
31723 (sem_item_optimizer::update_hash_by_addr_refs): New function.
31724 (sem_item_optimizer::build_hash_based_classes): Use local hash.
31725 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
31726 (sem_item::update_hash_by_local_refs): Likewise.
31728 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31731 * ipa-comdats.c (enqueue_references): Walk through thunks.
31732 (ipa_comdats): Likewise.
31733 (set_comdat_group_1): New function.
31735 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31738 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
31741 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
31742 Gerald Pfeifer <gerald@pfeifer.com>
31744 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
31746 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
31747 Sandra Loosemore <sandra@codesourcery.com>
31749 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
31750 function parameter declaration.
31751 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
31752 Update arguments to nios2_adjust_call_address().
31753 (sibcall_internal): Rename from *sibcall.
31754 (sibcall_value_internal): Rename from *sibcall_value.
31755 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
31756 (nios2_large_got_address): Add target temp reg parameter.
31757 (nios2_got_address): Adjust call to nios2_large_got_address, add
31758 force_reg around it.
31759 (nios2_load_pic_address): Add target temp reg parameter, replace call
31760 to nios2_got_address with corresponding code.
31761 (nios2_legitimize_constant_address): Update call to
31762 nios2_load_pic_address.
31763 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
31764 to use temp reg for PIC loading purposes.
31765 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
31766 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
31767 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
31769 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31771 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
31772 usage of "the @option{...}".
31773 (-Wopenmp-simd): Likewise.
31774 (-fsanitize-recover): Likewise.
31775 (-fsanitize-undefined-trap-on-error): Likewise.
31777 (tracer-dynamic-coverage-feedback): Likewise.
31778 (reorder-block-duplicate-feedback): Likewise.
31779 (loop-unroll-jam-size): Likewise.
31782 (-mabs=legacy): Likewise.
31783 (-mupper-regs-df): Likewise.
31784 (-mupper-regs-sf): Likewise.
31785 (-mpointers-to-nested-functions): Likewise.
31787 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31789 * doc/extend.texi (Cilk Plus Builtins): Add markup.
31791 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
31793 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
31794 additional index entries and cross-references.
31795 (-fchkp-check-incomplete-type): Likewise.
31796 (-fchkp-first-field-has-own-bounds): Likewise.
31797 (-fchkp-narrow-to-innermost-array): Likewise.
31798 (-fchkp-use-fast-string-functions): Likewise.
31799 (-fchkp-use-nochk-string-functions): Likewise.
31800 (-fchkp-use-static-const-bounds): Likewise.
31801 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
31802 (-fchkp-instrument-marked-only): Likewise.
31803 (-fchkp-use-wrappers): Likewise.
31804 (-static-libmpx): Likewise.
31805 (-static-libmpxwrappers): Likewise.
31806 * doc/extend.texi (bnd_legacy): Likewise.
31807 (bnd_instrument): Likewise.
31808 (bnd_variable_size): Likewise.
31809 (Pointer Bounds Checker builtins): Likewise.
31811 2015-03-21 Tom de Vries <tom@codesourcery.com>
31813 PR tree-optimization/65458
31814 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
31815 * cgraph.h (cgraph_node): Add parallelized_function field.
31816 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
31817 (input_overwrite_node): Read parallelized_function field.
31818 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
31819 parallelized_function on cgraph_node for child_fn.
31820 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
31821 Remove include of gt-tree-parloops.h.
31822 (parallelized_functions): Remove static variable.
31823 (parallelized_function_p): Rewrite using parallelized_function field of
31825 (create_loop_fn): Remove adding to parallelized_functions.
31826 * Makefile.in (GTFILES): Remove tree-parloops.c
31828 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
31830 PR rtl-optimization/64366
31831 * lra.c (lra_update_insn_regno_info): Consider regs in
31832 CALL_INSN_FUNCTION_USAGE memory.
31834 2015-03-20 Richard Biener <rguenther@suse.de>
31836 PR middle-end/64715
31837 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
31838 for type comparison and gcc_checking_assert.
31839 (chrec_fold_plus_poly_poly): Likewise.
31840 (chrec_fold_multiply_poly_poly): Likewise.
31841 (chrec_convert_1): Likewise.
31842 * gimplify.c (gimplify_expr): Remove premature folding of
31843 &X + CST to &MEM[&X, CST].
31845 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
31847 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
31849 (ipa_inline): Recompute inline_failed codes.
31850 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
31851 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
31854 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
31856 PR rtl-optimization/60851
31857 * recog.c (constrain_operands): Accept a pseudo register before reload
31858 for LRA enabled targets.
31860 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
31863 * config/rs6000/predicates.md (easy_fp_constant): Remove special
31864 -ffast-math handling that kept non-0 constants live in the RTL
31865 until reload. Remove logic testing the number of instructions it
31866 took to create a constant in a GPR that was never used, due to a
31867 test for soft-float earlier.
31868 (memory_fp_constant): Delete, no longer used.
31870 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
31871 alternatives for loading non-0 constants into GPRs for hard
31872 floating point that is no longer needed due to changes in
31873 easy_fp_constant. Add support for loading 0.0 into GPRs.
31874 (mov<mode>_hardfloat32): Likewise.
31875 (mov<mode>_hardfloat64): Likewise.
31876 (mov<mode>_64bit_dm): Likewise.
31877 (movtd_64bit_nodm): Likewise.
31878 (pre-reload move FP constant define_split): Delete define_split,
31879 since it is no longer used.
31880 (extenddftf2_internal): Remove GHF constraints that are not valid
31883 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
31885 PR rtl-optimization/63491
31886 * lra-constraints.c (check_and_process_move): Use src instead of
31887 sreg. Remove some dead code.
31889 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
31892 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
31893 (sem_variable::merge): Likewise.
31895 2015-03-19 Martin Liska <mliska@suse.cz>
31898 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
31899 all fields of cgraph_thunk_info.
31901 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
31903 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
31904 clone instrumented thunks.
31906 2015-03-19 Richard Biener <rguenther@suse.de>
31909 2015-03-10 Richard Biener <rguenther@suse.de>
31911 PR middle-end/63155
31912 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
31913 * tree-ssa-coalesce.c: Include timevar.h.
31914 (attempt_coalesce): Handle graph being NULL.
31915 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
31916 Split out abnormal coalescing to ...
31917 (perform_abnormal_coalescing): ... this function.
31918 (coalesce_ssa_name): Perform abnormal coalescing without computing
31920 (verify_ssa_coalescing_worker): New function.
31921 (verify_ssa_coalescing): Likewise.
31923 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
31924 Jakub Jelinek <jakub@redhat.com>
31927 * tsan.c (instrument_gimple): Clear tail call flag on
31930 2015-03-19 Jakub Jelinek <jakub@redhat.com>
31933 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
31934 call in the return bb.
31935 (find_split_points): Add RETURN_BB argument, don't call
31937 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
31938 if true append TSAN_FUNC_EXIT internal call after the call to
31939 the split off function.
31940 (execute_split_functions): Call find_return_bb here.
31941 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
31942 Adjust find_split_points and split_function calls.
31944 2015-03-18 DJ Delorie <dj@redhat.com>
31946 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
31947 (iorqi3_virt): Likewise.
31949 2015-03-18 Tom de Vries <tom@codesourcery.com>
31951 * tree-parloops.c (parallelize_loops): Make static.
31952 * tree-parloops.h (parallelize_loops): Remove extern declaration.
31954 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
31956 PR middle-end/64491
31958 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
31960 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
31961 condition would be removed due to undefined behaviour.
31963 2015-03-18 Martin Liska <mliska@suse.cz>
31966 * cgraph.c (cgraph_node::get_create): Remove unnecessary
31967 xstrdup_for_dump wrapper.
31968 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
31970 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
31971 with xstrdup_for_dump.
31972 (sem_variable::equals): Likewise.
31973 (sem_item_optimizer::read_section): Use symtab_node::name instead of
31975 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
31976 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
31977 symtab_node::asm_name with xstrdup_for_dump.
31978 (congruence_class::dump): Use symtab_node::name instead of
31980 * ipa-icf.h (symtab_node::name): Remove.
31981 (symtab_node::asm_name): Likewise.
31983 2015-03-18 Jakub Jelinek <jakub@redhat.com>
31985 PR tree-optimization/65450
31986 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
31988 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
31989 it instead of duplicate_ssa_name_ptr_info.
31992 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
31994 2015-03-18 Richard Biener <rguenther@suse.de>
31996 * tree-data-ref.h (struct access_matrix): Remove.
31997 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
31998 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
31999 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
32000 (am_vector_index_for_loop): Likewise.
32001 (struct data_reference): Remove access_matrix member.
32002 (DR_ACCESS_MATRIX): Remove.
32003 (lambda_vector_new): Add comment.
32004 (lambda_matrix_new): Use XOBNEWVEC.
32006 2015-03-18 Richard Biener <rguenther@suse.de>
32008 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
32009 (pass_ch::execute): Cleanup the CFG only if we did sth.
32010 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
32012 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32014 * expmed.c (synth_mult): Use std::swap instead of manually
32015 swapping algorithms.
32017 2015-03-18 Jakub Jelinek <jakub@redhat.com>
32020 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
32022 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
32025 * config/avr/avr.opt (-nodevicelib): New option.
32026 * doc/invoke.texi (AVR Options): Document it.
32027 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
32028 libgcc.a, libc.a, libm.a.
32029 * config/avr/specs.h: Same.
32030 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
32031 which don't (directly) depend on the device. Print more help.
32032 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
32033 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
32034 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
32036 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
32037 for specs file name.
32038 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
32039 * config/avr/avr-mcus.def: Adjust initializers and comments.
32041 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
32043 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
32044 DECL_ONE_ONLY to check if decl is one only.
32045 * ipa-split.c (consider_split): Limit splitt of one only functions.
32047 2015-03-16 Jakub Jelinek <jakub@redhat.com>
32049 PR tree-optimization/65427
32050 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
32052 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
32054 2015-03-16 Marek Polacek <polacek@redhat.com>
32056 * cgraph.h (add_new_static_var): Remove declaration.
32057 * varpool.c (add_new_static_var): Remove function.
32059 2015-03-16 Jakub Jelinek <jakub@redhat.com>
32061 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
32062 instead of vec<tree> * with vec_alloc and release for args.
32065 PR middle-end/65431
32066 * omp-low.c (delete_omp_context): Only splay_tree_delete
32067 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
32068 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
32070 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
32073 * cfgexpand.c (align_base): New function.
32074 (alloc_stack_frame_space): Call it.
32075 (expand_stack_vars): Align prev_frame to be sure
32076 data->asan_vec elements aligned properly.
32078 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
32080 PR middle-end/65409
32081 * expr.c (store_field): Do not do a direct block copy if the source is
32082 a PARALLEL with BLKmode.
32084 2015-03-16 Tom de Vries <tom@codesourcery.com>
32086 PR middle-end/65414
32088 2015-03-12 Tom de Vries <tom@codesourcery.com>
32090 PR rtl-optimization/64895
32091 * lra-lives.c (check_pseudos_live_through_calls): Use
32092 actual_call_used_reg_set instead of call_used_reg_set, if available.
32094 2015-03-16 Alan Modra <amodra@gmail.com>
32097 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
32098 Modify Z->r bswapdi splitter to use dest in place of scratch.
32099 In r->Z and Z->r bswapdi splitter rename word_high, word_low
32100 to word1, word2 and rearrange logic to suit.
32101 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
32102 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
32103 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
32104 Add one '?' on r->r. Modify Z->r splitter to avoid need for
32107 2015-03-14 Jakub Jelinek <jakub@redhat.com>
32109 PR tree-optimization/65369
32110 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
32111 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
32112 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
32114 PR tree-optimization/65418
32115 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
32116 are casts in the first PLUS_EXPR operand, ensure tbias and
32117 *totallowp are in the inner type.
32119 PR rtl-optimization/65401
32120 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
32121 argument. If true, adjust_address_nv of x with big-endian
32122 correction for the mode widening to GET_MODE (y).
32123 (make_field_assignment): Don't do MEM mode widening here.
32124 Use MEM_P instead of GET_CODE == MEM.
32126 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
32128 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
32129 the external decls.
32131 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32134 * config/arm/arm.c (arm_gen_constant, AND case): Use
32135 ARM_SIGN_EXTEND when constructing AND mask.
32137 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32139 * graph.c (print_graph_cfg): Make function names visible and append
32140 parenthesis to it. Also make groups of basic blocks belonging to the
32141 same function visible.
32143 2015-03-12 Richard Biener <rguenther@suse.de>
32145 PR middle-end/44563
32146 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
32147 to avoid quadratic behavior with inline expansion splitting blocks.
32148 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
32149 with the successor if the predecessor will be merged with it.
32150 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
32151 entry block with its successor.
32153 2015-03-13 Richard Biener <rguenther@suse.de>
32155 PR middle-end/44563
32156 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
32157 (cleanup_tree_cfg_1): Do not call it.
32158 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
32159 (fixup_noreturn_call): Mark the stmt as control altering.
32160 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
32162 (pass_data_fixup_cfg): Produce a dump file.
32163 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
32164 (need_noreturn_fixup): New global.
32165 (pass_dominator::execute): Fixup queued noreturn calls.
32166 (optimize_stmt): Queue calls that became noreturn for fixup.
32167 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
32168 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
32169 (el_to_fixup): New global.
32170 (eliminate_dom_walker::before_dom_childre): Queue calls that
32171 became noreturn for fixup.
32172 (eliminate): Fixup queued noreturn calls.
32173 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
32174 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
32175 (substitute_and_fold_dom_walker::before_dom_children): Queue
32176 alls that became noreturn for fixup.
32177 (substitute_and_fold): Fixup queued noreturn calls.
32179 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
32181 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
32182 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
32183 are building; for methods check ODR type of class they belong to if
32184 they may lead to a polymorphic call.
32185 (sem_function::compare_polymorphic_p): Be bit smarter about testing
32186 when function may lead to a polymorphic call.
32187 (sem_function::compare_type_list): Remove.
32188 (sem_variable::equals): Update use of compatible_types_p.
32189 (sem_variable::parse_tree_refs): Remove.
32190 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
32192 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
32194 (func_checker::compatible_polymorphic_types_p): Break out from ...
32195 (unc_checker::compatible_types_p): ... here.
32196 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
32198 (unc_checker::compatible_types_p): Update.
32199 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
32202 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32204 PR rtl-optimization/65235
32205 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
32206 When first element of vec_concat is const_int, calculate its size
32207 using second element.
32209 2015-03-12 Richard Biener <rguenther@suse.de>
32211 PR middle-end/65270
32212 * fold-const.c (operand_equal_p): Fix ordering of resetting
32213 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
32215 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
32217 * config/s390/s390.c (s390_reorg): Move code to output nops after label
32219 (s390_asm_output_function_label): Likewise.
32220 * config/s390/s390.c (s390_asm_output_function_label):
32221 Fix function label alignment with -mhtopatch.
32222 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
32223 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
32224 ("nop_2_byte"): New define_insn.
32225 ("nop_4_byte"): Likewise.
32226 ("nop_6_byte"): Likewise.
32227 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
32228 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
32230 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
32233 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
32236 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
32239 * toplev.c (process_options): Restrict Pointer Bounds Checker
32240 usage with Address Sanitizer.
32242 2015-03-12 Richard Biener <rguenther@suse.de>
32244 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
32246 * omp-low.c (expand_omp_taskreg): Split block before removing
32248 (expand_omp_target): Likewise.
32249 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
32250 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
32251 stmt to split_block.
32253 2015-03-12 Tom de Vries <tom@codesourcery.com>
32255 PR rtl-optimization/64895
32256 * lra-lives.c (check_pseudos_live_through_calls): Use
32257 actual_call_used_reg_set instead of call_used_reg_set, if available.
32259 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
32261 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
32262 (cgraph_node::remove): Likewise.
32263 (cgraph_node::get_untransformed_body): Likewise.
32264 * varpool.c (varpool_node::remove): Likewise.
32265 (varpool_node::get_constructor): Add sanity check.
32267 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
32269 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
32271 (-fabi-compat-version): Likewise.
32272 (-ffriend-injection): Likewise.
32273 (-Wdeclaration-after-statement): Likewise.
32274 (-fomit-frame-pointer): Likewise.
32275 (-ftree-coalesce-inlined-vars): Likewise.
32276 (-fvisibility=): Likewise.
32277 * doc/extend.texi (Typeof): Likewise.
32278 (Zero Length): Likewise.
32279 (Escaped Newlines): Likewise.
32280 (Compound Literals): Likewise.
32281 (Function Attributes): Likewise.
32282 (Label Attributes): Likewise.
32283 (Type Attributes): Likewise.
32284 (Function Names): Likewise.
32285 (Other Builtins): Likewise.
32286 (Function Specific Option Pragmas): Likewise.
32287 (C++ Interface): Likewise.
32289 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
32291 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
32293 2015-03-11 Marek Polacek <polacek@redhat.com>
32295 PR tree-optimization/65388
32296 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
32298 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
32301 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
32302 * configure: Regenerate.
32303 * config.in: Regenerate.
32304 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
32305 [-mn-flash]: Document it.
32306 [__AVR_ARCH__]: Document avrtiny.
32308 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
32309 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
32310 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
32312 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32314 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
32316 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
32319 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
32320 allow reloads of PLUS in floating point/VSX registers.
32322 2015-03-11 Junmo Park <junmoz.park@samsung.com>
32324 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
32325 crypto_sha256_fast.
32326 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
32328 2015-03-11 Richard Biener <rguenther@suse.de>
32330 PR tree-optimization/65310
32331 * tree-sra.c (build_ref_for_offset): Also preserve larger
32334 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
32336 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
32338 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32341 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
32343 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
32345 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
32347 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
32348 (sem_function::equals_wpa): ... here.
32350 2015-03-10 Marek Polacek <polacek@redhat.com>
32351 Jakub Jelinek <jakub@redhat.com>
32354 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
32355 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
32358 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32361 * config/rs6000/t-linux: For powerpc64* target set
32362 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
32364 2015-03-10 Richard Biener <rguenther@suse.de>
32366 PR middle-end/44563
32367 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
32368 for redirect_all_calls.
32370 2015-03-10 Marek Polacek <polacek@redhat.com>
32372 * gdbinit.in (pcfun): Define and document.
32374 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
32376 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
32377 of libgomp-plugin.h.
32378 (find_target_compiler): Support a case when the path to gcc is
32379 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
32380 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
32381 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
32383 (main): Use GCC_INSTALL_NAME as target_driver_name.
32384 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
32386 (mkoffload.o): Remove obsolete include path and defines.
32387 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
32389 2015-03-10 Richard Biener <rguenther@suse.de>
32391 PR middle-end/63155
32392 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
32393 * tree-ssa-coalesce.c: Include timevar.h.
32394 (attempt_coalesce): Handle graph being NULL.
32395 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
32396 Split out abnormal coalescing to ...
32397 (perform_abnormal_coalescing): ... this function.
32398 (coalesce_ssa_name): Perform abnormal coalescing without computing
32400 (verify_ssa_coalescing_worker): New function.
32401 (verify_ssa_coalescing): Likewise.
32403 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
32406 * config.gcc (extra_options) [avr]: Remove.
32407 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
32408 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
32409 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
32411 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
32412 (-mmcu=): Add Var and MissingArgError properties.
32414 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
32415 * config/avr/t-multilib: Regenerate.
32416 * config/avr/specs.h: New file.
32417 * config/avr/driver-avr.c: New file.
32418 * config/avr/genopt.sh: Remove file.
32419 * config/avr/avr-tables.opt: Remove file.
32420 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
32421 * config/avr/avr-c.c: Same.
32422 * avr-arch.h: Same.
32423 (avr_current_device): Remove proto.
32424 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
32425 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
32426 (EXTRA_SPEC_FUNCTIONS): Define.
32427 (avr_devicespecs_file): New specs function proto.
32428 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
32429 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
32430 (avr_current_device): Remove definition and usage.
32431 (avr_set_core_architecture): New static function.
32432 (avr_option_override): Use it.
32433 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
32434 (mcu_name): New static array.
32435 (comparator, avr_archs_str, avr_mcus_str): New static functions.
32436 (avr_inform_devices, avr_inform_core_architectures): New functions.
32437 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
32438 (avrlibc.h) [WITH_AVRLIBC]: Include.
32439 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
32440 (print_mcu): Rewrite from scratch.
32441 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
32442 Forward to avr-specific specs defined in device-specs file.
32443 * config/avr/t-avr (driver-avr.o): New rule.
32444 (avr-devices.o): Depend on avr-arch.h.
32445 (avr-mcus): No more depend on avr-tables.opt.
32446 (avr-tables.opt): Remove rule.
32447 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
32449 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32451 * c-family/c.opt (fchkp-use-wrappers): New.
32452 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
32453 (chkp_wrap_function): New.
32454 (chkp_build_instrumented_fndecl): Support wrapped
32456 * doc/invoke.texi (-fcheck-pointer-bounds): New.
32457 (-fchkp-check-incomplete-type): New.
32458 (-fchkp-first-field-has-own-bounds): New.
32459 (-fchkp-narrow-bounds): New.
32460 (-fchkp-narrow-to-innermost-array): New.
32461 (-fchkp-optimize): New.
32462 (-fchkp-use-fast-string-functions): New.
32463 (-fchkp-use-nochk-string-functions): New.
32464 (-fchkp-use-static-bounds): New.
32465 (-fchkp-use-static-const-bounds): New.
32466 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
32467 (-fchkp-check-read): New.
32468 (-fchkp-check-write): New.
32469 (-fchkp-store-bounds): New.
32470 (-fchkp-instrument-calls): New.
32471 (-fchkp-instrument-marked-only): New.
32472 (-fchkp-use-wrappers): New.
32473 (-static-libmpx): New.
32474 (-static-libmpxwrappers): New.
32476 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32478 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
32479 (CHKP_SPEC): Add wrappers library.
32480 * c-family/c.opt (static-libmpxwrappers): New.
32482 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
32484 * config/i386/linux-common.h (LIBMPX_LIBS): New.
32485 (LIBMPX_SPEC): New.
32487 * gcc.c (CHKP_SPEC): New.
32488 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
32489 * c-family/c.opt (static-libmpx): New.
32491 2015-03-10 Richard Biener <rguenther@suse.de>
32493 PR middle-end/44563
32494 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
32496 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
32497 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
32498 (cgraph_add_edge_to_call_site_hash): Likewise.
32499 (cgraph_node::get_edge): Likewise.
32500 (cgraph_edge::set_call_stmt): Likewise.
32501 (cgraph_edge::remove_caller): Likewise.
32503 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
32505 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
32506 (callee_saved_gpr_regs_size): ... this.
32507 (callee_saved_regs_first_regno): Rename to ...
32508 (callee_saved_first_gpr_regno): ... this.
32509 (callee_saved_regs_last_regno) Rename to ...
32510 (callee_saved_last_gpr_regno): ... this.
32511 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
32513 (nds32_initial_elimination_offset): Likewise.
32514 (nds32_expand_prologue): Likewise.
32515 (nds32_expand_epilogue): Likewise.
32516 (nds32_expand_prologue_v3push): Likewise.
32517 (nds32_expand_epilogue_v3pop): Likewise.
32518 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
32519 Adjust renamed variables.
32520 (nds32_output_stack_pop): Likewise.
32522 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
32524 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
32527 2015-03-10 Jakub Jelinek <jakub@redhat.com>
32529 PR rtl-optimization/65321
32530 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
32532 * var-tracking.c (use_narrower_mode): Likewise.
32534 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
32536 PR tree-optimization/65355
32537 * varasm.c (notice_global_symbol): Do not produce RTL.
32538 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
32540 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
32541 check for section anchors.
32543 2015-03-10 Alan Modra <amodra@gmail.com>
32546 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
32547 to be single-arch by default. Set cpu_is_64bit for powerpc64
32548 given --with-cpu=native.
32549 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
32550 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
32552 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
32553 rs6000_isa_flags rather than TARGET_64BIT.
32555 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
32556 Kaz Kojima <kkojima@gcc.gnu.org>
32558 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
32560 2015-03-09 Jakub Jelinek <jakub@redhat.com>
32563 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
32564 on a TREE_BINFO, instead use BINFO_TYPE.
32566 2015-03-09 Richard Biener <rguenther@suse.de>
32568 PR middle-end/65270
32569 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
32570 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
32571 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
32572 of that. When comparing dereferences compare alignment.
32573 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
32575 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
32577 * ipa-inline-analysis.c (check_callers): Check
32578 node->can_remove_if_no_direct_calls_and_refs_p.
32579 (growth_likely_positive): Reorganize to call
32580 can_remove_if_no_direct_calls_p later.
32581 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
32582 will_be_removed_from_program_if_no_direct_calls_p): Add
32583 will_inline parameter.
32584 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
32585 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32586 Handle inliner case correctly.
32588 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
32590 PR tree-optimization/63743
32591 * cfgexpand.c (reorder_operands): Also reorder if only second operand
32592 had its definition forwarded by TER.
32594 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
32597 * ipa-utils.h (types_odr_comparable): Add strict argument.
32598 * ipa-devirt.c: Fix whitespace;
32599 (odr_hasher): Remove.
32600 (odr_name_hasher, odr_vtable_hasher): New hashers.
32601 (can_be_name_hashed_p): New predicate.
32602 (hash_type_name): remove.
32603 (hash_odr_name): New.
32604 (odr_name_hasher::hash): new.
32605 (can_be_vtable_hashed_p): New.
32606 (hash_odr_vtable): New.
32607 (odr_vtable_hasher::hash): New.
32608 (types_same_for_odr): Add strict parameter.
32609 (types_odr_comparable): Likewise.
32610 (odr_name_hasher::equal): New.
32611 (odr_vtable_hasher::equal): New.
32612 (odr_name_hasher::remove): New.
32613 (odr_hash_type): Change to hash_table<odr_name_hasher>.
32614 (odr_vtable_hash_type): New.
32615 (odr_vtable_hash): New.
32616 (odr_subtypes_equivalent_p): Do strict comparsion.
32617 (add_type_duplicate): Merge type names; cleanup; avoid type
32619 (register_odr_type): Initialize vtable hash.
32620 (build_type_inheritance_graph): Likewise
32621 (get_odr_type): Reorg to use two hashes.
32622 (dump_possible_polymorphic_call_targets): Move sanity check after debug
32624 (ipa_devirt): Dump type_inheritance_graph.
32625 (types_same_for_odr): Add strict mode.
32627 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32630 * cgraph.h (symtab_node): Add definition_alignment,
32631 can_increase_alignment_p and increase_alignment.
32632 * symtab.c (symtab_node::can_increase_alignment_p,
32633 increase_alignment_1, symtab_node::increase_alignment,
32634 symtab_node::definition_alignment): New.
32635 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
32636 can_increase_alignment_p.
32637 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
32638 * tree-vect-stmts.c (ensure_base_align): Likewise.
32639 * varasm.c (function_section_1): Use definition_alignment.
32640 (assemble_start_function): Likewise.
32641 (emit_local): likewise.
32642 (build_constant_desc): Likewsie.
32643 (output_constant_def_contents): Likewise.
32644 (place_block_symbol): Likewise.
32645 (output_object_block): Likewise.
32647 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32650 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
32651 when outputting debug.
32653 2015-03-07 Marek Polacek <polacek@redhat.com>
32654 Martin Uecker <uecker@eecs.berkeley.edu>
32657 * doc/invoke.texi: Update description of -fsanitize=bounds.
32659 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
32661 * tree-ssa-phiopt.c (neg_replacement): Remove.
32662 (tree_ssa_phiopt_worker): Remove negate optimization.
32664 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32667 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
32669 2015-03-06 Richard Biener <rguenther@suse.de>
32671 PR middle-end/64928
32672 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
32673 and liveout_obstack members.
32674 (calculate_live_on_exit): Remove.
32675 (calculate_live_ranges): Change declaration.
32676 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
32677 (new_tree_live_info): Adjust.
32678 (calculate_live_ranges): Delete livein when not wanted.
32679 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
32680 Deal with partly deleted live info.
32681 (loe_visit_block): Remove temporary bitmap by using
32682 bitmap_ior_and_compl_into.
32683 (live_worklist): Adjust accordingly.
32684 (calculate_live_on_exit): Make static.
32685 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
32686 we do not need livein.
32688 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
32690 * real.c (real_from_string): Fix typo in assertion.
32692 2015-03-06 Alex Velenko <alex.velenko@arm.com>
32694 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
32697 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
32699 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
32701 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
32704 * lra-assigns.c (find_hard_regno_for): Rename to
32705 find_hard_regno_for_1. Add a new parameter.
32706 (find_hard_regno_for): New function using find_hard_regno_for_1.
32708 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
32710 PR rtl-optimization/65067
32711 * expmed.c (store_bit_field, extract_bit_field): Reworked the
32712 strict volatile bitfield handling.
32714 2015-03-05 Martin Liska <mliska@suse.cz>
32717 * ipa-icf.c (sem_variable::equals): Compare variables types.
32719 2015-03-05 Richard Henderson <rth@redhat.com>
32722 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
32723 correctly check weak symbol binding.
32725 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
32727 PR middle-end/65315
32728 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
32731 2015-03-05 Martin Liska <mliska@suse.cz>
32733 * ipa-inline.c (inline_small_functions): Set default value to
32734 prevent warning during bootstrap.
32735 * tree.h: Add pragma guard that ignores false positives during
32738 2015-03-05 Richard Biener <rguenther@suse.de>
32740 PR tree-optimization/65310
32741 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
32742 Properly preserve alignment of the base of the access.
32744 2015-03-05 Richard Biener <rguenther@suse.de>
32747 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
32748 Compare dependence info.
32750 2015-03-05 Richard Biener <rguenther@suse.de>
32752 PR middle-end/65233
32753 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
32755 (walk_ssa_copies): Revert last chage. Instead do not walk
32756 SSA names registered for SSA update.
32758 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32761 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
32762 vtable references for their containing type.
32763 (sem_function::equals_wpa): Compare TYPE_RESTRICT
32764 and type attributes.
32766 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
32768 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
32769 before negating it.
32770 * stor-layout.c (finalize_record_size): Revert latest change.
32772 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
32774 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
32776 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32778 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
32779 for correct comdat handling.
32780 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
32782 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
32783 (used_from_object_file_p_worker): Remove.
32784 (cgraph_node::only_called_directly_or_alised): Add
32785 used_from_object_file_p.
32786 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
32787 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
32788 can_remove_if_no_direct_calls_and_refs_p.
32790 2015-03-04 Nick Clifton <nickc@redhat.com>
32792 * config/rl78/rl78.h (enum reg_class): Remove real registers from
32793 General register class.
32794 * config/rl78/rl78-real.md: Replace general register constraints
32795 with real+virtual register constraints.
32797 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32799 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
32800 from checking for -mhtm option.
32802 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
32804 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
32805 (struct ipa_sra_check_caller_data): Add has_thunk field.
32806 (ipa_sra_check_caller): Check for thunk.
32807 (ipa_sra_preliminary_function_checks): Give up on function with
32809 (ipa_early_sra): Use call_for_symbol_and_aliases.
32811 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
32814 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
32815 called for __stack_chk_guard symbol.
32817 2015-03-03 DJ Delorie <dj@redhat.com>
32819 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
32821 (*addhi3_real): Likewise.
32822 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
32823 pattern to match incrementing memory.
32824 * config/rl78/predicates.md (rl78_1_2_operand): New.
32825 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
32826 it's the same and only mem.
32827 (rl78_alloc_physical_registers_op2): If there's effectively only
32828 one MEM, transcode it into HL.
32829 (rl78_far_p): Reject addresses that aren't legitimate.
32831 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
32833 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
32836 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
32838 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32840 Implement call0 ABI for xtensa
32841 * config/xtensa/constraints.md ("a" constraint): Include stack
32842 pointer in case of call0 ABI.
32843 ("q" constraint): Make empty in case of call0 ABI.
32844 ("D" constraint): Include stack pointer in case of call0 ABI.
32845 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
32846 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
32848 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
32850 (xtensa_regno_to_class): Make it a local variable in the
32851 function xtensa_regno_to_class.
32852 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
32853 macro, function prototype and implementation.
32854 (reg_nonleaf_alloc_order): Make it a local variable in the
32855 function order_regs_for_local_alloc.
32856 (xtensa_conditional_register_usage): New function.
32857 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
32858 (xtensa_valid_move): Allow direct moves to stack pointer
32859 register in call0 ABI.
32860 (xtensa_setup_frame_addresses): Only spill register windows in
32862 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
32863 call0 ABI respectively.
32864 (xtensa_function_arg_1): Only mark a7 register for copying in
32866 (xtensa_call_save_reg): New function.
32867 (compute_frame_size): Add space for callee saved register
32868 storage to the frame size in call0 ABI.
32869 (xtensa_expand_prologue): Generate code to set up stack frame
32870 and save callee-saved registers in call0 ABI.
32871 (xtensa_expand_epilogue): New function.
32872 (xtensa_set_return_address): New function.
32873 (xtensa_return_addr): Calculate return address in call0 ABI.
32874 (xtensa_builtin_saveregs): Only mark a7 register for copying and
32875 emit copying code in windowed ABI.
32876 (order_regs_for_local_alloc): Add preferred register allocation
32877 order for non-leaf function in call0 ABI.
32878 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
32879 (xtensa_asm_trampoline_template): Add trampoline generation for
32881 (xtensa_trampoline_init): Add trampoline initialization for
32883 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
32885 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
32886 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
32887 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
32888 ABI call-used registers.
32889 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
32890 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
32892 (REG_CLASS_CONTENTS): Include all registers into the preferred
32893 reload registers set, adjust the set in the
32894 xtensa_conditional_register_usage.
32895 (xtensa_regno_to_class): Drop variable declaration.
32896 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
32898 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
32900 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
32901 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
32902 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
32903 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
32904 location in call0 ABI.
32905 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
32906 stack adjustment size when handling exception.
32907 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
32908 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
32910 ("return" pattern): Generate ret.n/ret in call0 ABI.
32911 ("epilogue" pattern): Expand epilogue.
32912 ("nonlocal_goto" pattern): Use default in call0 ABI.
32913 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
32914 emit eh_set_a0_* depending on ABI.
32915 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
32916 ("eh_set_a0_call0", "blockage"): New patterns.
32918 2015-03-03 Martin Liska <mliska@suse.cz>
32921 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
32923 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
32926 * config/rs6000/rs6000-tables.opt: Regenerate table.
32928 2015-03-03 Renlin Li <renlin.li@arm.com>
32930 * doc/md.texi (@item ^): Change ? into ^.
32932 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
32934 * doc/tm.texi: Regenerated.
32936 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
32938 * builtins.c (expand_builtin_return_addr): Add
32939 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
32940 surrounding #ifdef.
32941 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
32943 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
32945 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
32947 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
32950 2015-03-03 Martin Jambor <mjambor@suse.cz>
32951 Eric Botcazou <ebotcazou@adacore.com>
32953 * tree-sra.c (ipa_sra_check_caller_data): New type.
32954 (has_caller_p): Removed.
32955 (ipa_sra_check_caller): New function.
32956 (ipa_sra_preliminary_function_checks): Use it.
32958 2015-03-03 Martin Liska <mliska@suse.cz>
32960 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
32961 instead of if branch.
32963 2015-03-03 Martin Liska <mliska@suse.cz>
32966 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
32968 2015-03-23 Jeff Law <law@redhat.com>
32970 PR tree-optimization/65241
32971 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
32972 hash table if INSERT is true.
32974 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32977 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
32979 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32982 * config/avr/avr.c (context.h, tree-pass.h): Include them.
32983 (avr_pass_data_recompute_notes): New static variable.
32984 (avr_pass_recompute_notes): New class.
32985 (avr_register_passes): New static function.
32986 (avr_option_override): Call it.
32988 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
32990 Fix various problems with specs file generation.
32993 * config.gcc (extra_gcc_objs) [avr]: Remove.
32994 * config/avr/driver-avr.c: Remove file.
32995 * config/avr/t-avr (driver-avr.o): Remove rule.
32996 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
32997 INCLUDES to build. Depend on TM_H.
32998 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
32999 build warnings. Fix non-matching types and non-existing %-codes.
33001 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
33002 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
33003 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
33004 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
33005 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
33006 (LIBGCC_SPEC): Remove definitions.
33008 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
33010 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
33011 to create a register in testing mode.
33013 2015-03-03 Martin Liska <mliska@suse.cz>
33014 Jan Hubicka <hubicka@ucw.cz>
33017 * cgraph.c (cgraph_node::has_thunk_p): New function.
33018 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
33019 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
33020 (sem_function::merge): Assert is changed.
33022 2015-03-03 Martin Liska <mliska@suse.cz>
33023 Martin Jambor <mjambor@suse.cz>
33026 * ipa-icf.c (sem_item_optimizer::execute): Change function
33027 return value to boolean.
33028 (sem_item_optimizer::merge_classes): Likewise.
33029 (ipa_icf_driver): Return TODO_remove_functions in case there's
33030 a merge operation processed.
33031 * ipa-icf.h: Change function return value to boolean.
33033 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
33036 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
33037 processor type for 64-bit little endian PowerPC.
33039 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
33040 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
33041 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
33042 printing built-in mask so it does not pass NULL pointers.
33044 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
33047 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
33050 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
33051 !ISA_HAS_FP_CONDMOVE.
33053 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
33055 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
33058 2015-03-02 Ulrich Drepper <drepper@gmail.com>
33060 * doc/invoke.texi (Options for Code Generation Conventions):
33061 Fix URL of DSO paper.
33063 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
33066 * ipa-inline.c (check_callers): Looks for recursion.
33067 (inline_to_all_callers): Give up on uninlinable or recursive edges.
33068 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
33069 summary of inline clones.
33070 (do_estimate_growth_1): Fix recursion check.
33072 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
33075 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
33078 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
33079 Aldy Hernandez <aldyh@redhat.com>
33082 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
33083 when checking TYPE_BINFO.
33085 2015-03-02 Richard Biener <rguenther@suse.de>
33088 * ipa-icf-gimple.c: Include builtins.h.
33089 (func_checker::compare_memory_operand): Compare base alignment.
33091 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
33094 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
33095 passed by reference.
33097 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
33100 * tree-chkp.c (chkp_check_lower): Don't check against
33101 zero bounds for already instrumented functions.
33102 (chkp_check_upper): Likewise.
33103 (chkp_fini): Clean pass local data to avoid wrong reusage.
33105 2015-02-28 Martin Liska <mliska@suse.cz>
33106 Jan Hubicka <hubicka@ucw.cz>
33108 * ipa-icf.c (sem_variable::equals): Improve debug output;
33109 get variable constructor.
33110 (sem_variable::parse): Do not filter out too early; give up on
33111 volatile and register vars.
33112 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
33114 * ipa-icf.h (sem_variable::init): Do not set ctor.
33115 (sem_variable::ctor): Remove.
33117 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
33119 PR middle-end/65233
33120 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
33122 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33124 * ipa-icf.c: Include stor-layout.h
33125 (sem_function::compare_cgraph_references): Rename to ...
33126 (sem_item::compare_cgraph_references): ... this one.
33127 (sem_variable::equals_wpa): New function
33128 (sem_variable::equals): Do not check stuff already verified by
33130 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
33131 * ipa-icf.h (sem_item): Add compare_cgraph_references.
33132 (sem_function): Remove compare_cgraph_references.
33133 (sem_variable): Turns equals_wpa into non-inline.
33135 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33137 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
33138 (sem_item::add_expr): New function.
33139 (sem_function::hash_stmt): Handle operands of most statements.
33140 (sem_variable::get_hash): Hash the actual constructor.
33141 * ipa-icf.h (sem_item): Add add_expr.
33142 (sem_function): Update prototype of hash_stmt
33144 2015-02-28 Martin Liska <mliska@suse.cz>
33145 Jan Hubicka <hubicka@ucw.cz>
33148 * ipa-icf-gimple.c (func_checker::compare_function_decl):
33150 (func_checker::compare_variable_decl): Skip symtab vars.
33151 (func_checker::compare_cst_or_decl): Update.
33152 * ipa-icf.c (sem_function::parse): Do not consider aliases.
33153 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
33154 use correct symtab predicates.
33155 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
33156 (sem_variable::parse): Update comment.
33157 (sem_item_optimizer::build_graph): Consider ultimate aliases
33160 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33162 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
33165 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33167 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
33168 (sem_variable::merge) Likewise.
33170 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33172 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
33173 target; also match flag_ipa_devirt.
33175 2015-03-01 Martin Liska <mliska@suse.cz>
33176 Jan Hubicka <hubicka@ucw.cz>
33178 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
33179 Validate variable alignment.
33180 * ipa-icf.c (sem_function::equals_private): Be more precise
33181 about non-common function attributes.
33182 (sem_variable::equals): Likewise.
33184 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33187 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
33188 across COMDAT group boundary.
33190 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33193 * ipa-icf.c (clear_decl_rtl): New function.
33194 (sem_function::merge): Clear RTL before forming alias.
33195 (sem_variable::merge): Clear RTL before forming alias.
33197 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
33200 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
33202 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
33204 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
33207 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
33209 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
33210 a typo in the description.
33212 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
33215 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
33216 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
33217 * lra-constraints.c: Include "params.h".
33218 (EBB_PROBABILITY_CUTOFF): Use
33219 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
33220 (lra_inheritance): Use '<' instead of '<=' for
33221 EBB_PROBABILITY_CUTOFF.
33222 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
33225 2015-02-27 Martin Liska <mliska@suse.cz>
33227 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
33228 vector length condition.
33230 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
33232 * doc/extend.texi (x86 transactional memory intrinsics):
33233 Reorganize discussion of _xbegin. Clarify that the return
33234 value is a bit mask. Expand example and move to end of section.
33236 2015-02-26 Jakub Jelinek <jakub@redhat.com>
33237 Aldy Hernandez <aldyh@redhat.com>
33239 PR rtl-optimization/65220
33240 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
33242 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
33245 * lra-remat.c (update_scratch_ops): New.
33246 (do_remat): Call it.
33247 * lra.c (lra_register_new_scratch_op): New. Take code from ...
33248 (remove_scratches): ... here.
33249 * lra-int.h (lra_register_new_scratch_op): New prototype.
33251 2015-02-27 Marek Polacek <polacek@redhat.com>
33254 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
33255 -Wformat-signedness anymore.
33257 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33259 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
33261 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
33263 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33265 * config/s390/s390.c (enum s390_builtin):
33266 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
33267 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
33268 (s390_init_builtins): Generate new builtin functions.
33269 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
33270 (s390_sfpc, s390_efpc): New pattern definitions.
33272 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33274 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
33275 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
33276 (s390_builtin_decls): New array.
33277 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
33278 (s390_builtin_decl): New function.
33279 (TARGET_BUILTIN_DECL): Define macro.
33281 2015-02-27 Richard Biener <rguenther@suse.de>
33283 PR middle-end/63175
33284 * builtins.c (get_object_alignment_2): Make sure to re-apply
33285 the ANDed mask after recursing to its operand gets us a new
33286 misalignment bit position.
33288 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
33289 Martin Liska <mliska@suse.cz>
33292 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
33293 Use address_matters_p.
33294 (redirect_all_callers, set_addressable): New functions.
33295 (sem_function::merge): Reorganize and fix merging issues.
33296 (sem_variable::merge): Likewise.
33297 (sem_variable::compare_sections): Remove.
33298 * common.opt (fmerge-all-constants, fmerge-constants): Remove
33300 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
33302 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
33304 (address_matters_1): New function.
33305 (symtab_node::address_matters_p): New function.
33306 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
33307 check for merged flag.
33308 * cgraph.h (address_matters_p): Declare.
33309 (symtab_node::address_taken_from_non_vtable_p): Remove.
33310 (symtab_node::address_can_be_compared_p): New method.
33311 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
33312 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
33314 (comdat_can_be_unshared_p_1) Use address_matters_p.
33315 (update_vtable_references): Fix formating.
33316 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
33317 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
33318 * cgraphclones.c: Preserve merged and icf_merged flags.
33320 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
33322 * doc/extend.texi (Function Attributes): Fix spelling and typos.
33323 (Label Attributes): Likewise.
33324 (Cilk Plus Builtins): Likewise.
33325 (ARC SIMD Built-in Functions): Likewise.
33326 (ARM C Language Extensions (ACLE)): Likewise.
33327 (PowerPC Built-in Functions): Likewise.
33328 (PowerPC Hardware Transactional Memory Built-in Functions):
33331 2015-02-26 Jakub Jelinek <jakub@redhat.com>
33333 PR tree-optimization/65216
33334 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
33335 new stmt and new SSA_NAME for lhs whenever the arguments have
33336 changed and weren't just swapped. Fix comment typo.
33338 PR tree-optimization/65215
33339 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
33340 for PDP endian targets.
33341 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
33342 Fix up formatting issues.
33343 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
33344 size is smaller than the original, adjust MEM_REF offset by the
33345 difference of sizes. Use is_gimple_mem_ref_addr instead of
33346 is_gimple_min_invariant test to avoid adding address temporaries.
33348 2015-02-26 Martin Liska <mliska@suse.cz>
33349 Jan Hubicka <hubicka@ucw.cz>
33352 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
33353 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
33354 (sem_item_optimizer::process_cong_reduction): Include division by
33355 sensitive references.
33356 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
33357 * ipa-ref.c (ipa_ref::address_matters_p): New function.
33358 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
33360 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
33363 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
33365 * config/avr/avr.c: Same.
33366 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
33367 Refuse any constant address not in 0..0xbf.
33368 * config/avr/avr.md (*mov<mode>, *movsf): Remove
33369 tiny_valid_direct_memory_access_range from insn conditions.
33370 (mov<mode>): Don't special-case expansion of avrtiny addresses.
33372 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
33375 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
33376 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
33377 * config/sh/predicates.md (const_logical_operand): New predicate.
33378 * config/sh/sh.md: Add new peephole2 patterns.
33380 2015-02-26 Marek Polacek <polacek@redhat.com>
33383 * ipa-inline.c (early_inliner): Recompute inline parameters.
33385 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33388 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
33389 instructions with TImode operands are included in the analysis.
33391 2015-02-26 Sebastian Pop <s.pop@samsung.com>
33393 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
33394 of an EDGE_FSM_THREAD.
33396 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
33398 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
33400 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
33403 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
33405 2015-02-26 Sebastian Pop <s.pop@samsung.com>
33407 PR tree-optimization/65048
33408 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
33409 (thread_through_all_blocks): Call valid_jump_thread_path.
33410 Remove invalid FSM jump-thread paths.
33412 2015-02-26 Jakub Jelinek <jakub@redhat.com>
33414 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
33415 (ipa_write_optimization_summaries): Likewise.
33416 * tree-streamer.h: Include data-streamer.h.
33417 (streamer_mode_table): Declare extern variable.
33418 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
33419 * lto-streamer-out.c (lto_output_init_mode_table,
33420 lto_write_mode_table): New functions.
33421 (produce_asm_for_decls): Call lto_write_mode_table when streaming
33423 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
33424 (lto_create_simple_input_block): Add mode_table argument to the
33425 lto_input_block constructors.
33426 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
33428 * data-streamer-in.c (string_for_index): Likewise.
33429 * ipa-inline-analysis.c (inline_read_section): Likewise.
33430 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
33431 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
33432 * lto-streamer-in.c (lto_read_body_or_constructor,
33433 lto_input_toplevel_asms): Likewise.
33434 (lto_input_mode_table): New function.
33435 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
33436 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
33437 Use bp_pack_machine_mode.
33438 * real.h (struct real_format): Add name field.
33439 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
33440 (class lto_input_block): Add mode_table member.
33441 (lto_input_block::lto_input_block): Add mode_table_ argument,
33442 initialize mode_table.
33443 (struct lto_file_decl_data): Add mode_table field.
33444 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
33445 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
33446 unpack_ts_decl_common_value_fields,
33447 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
33448 * tree-streamer.c (streamer_mode_table): New variable.
33449 * real.c (ieee_single_format, mips_single_format,
33450 motorola_single_format, spu_single_format, ieee_double_format,
33451 mips_double_format, motorola_double_format,
33452 ieee_extended_motorola_format, ieee_extended_intel_96_format,
33453 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
33454 ibm_extended_format, mips_extended_format, ieee_quad_format,
33455 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
33456 decimal_single_format, decimal_double_format, decimal_quad_format,
33457 ieee_half_format, arm_half_format, real_internal_format): Add name
33459 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
33461 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
33464 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
33465 reordering for selective scheduling.
33467 2015-02-26 Terry Guo <terry.guo@arm.com>
33469 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
33470 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
33471 (arm_arch_no_volatile_ce): Declare new global variable.
33472 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
33473 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
33474 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
33475 (TARGET_NO_VOLATILE_CE): New macro.
33476 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
33477 volatile memory access in IT block
33479 2015-02-25 Kai Tietz <ktietz@redhat.com>
33481 PR tree-optimization/61917
33482 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
33483 that reduc_def_stmt is null.
33485 2015-02-25 Martin Liska <mliska@suse.cz>
33487 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
33488 hard register variables.
33490 2015-02-25 Kai Tietz <ktietz@redhat.com>
33493 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
33494 (symtab::noninterposable_alias): Likewise.
33496 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
33499 * config/i386/i386.c (ix86_function_arg_regno_p): Support
33501 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
33503 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
33506 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
33507 as split condition; force split via '#' in output pattern.
33509 2015-02-25 Richard Biener <rguenther@suse.de>
33510 Kai Tietz <ktietz@redhat.com>
33512 PR tree-optimization/61917
33513 * tree-vect-loop.c (vectorizable_reduction): Allow
33514 vect_internal_def without reduction to exit graceful.
33516 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
33519 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
33520 only with NONDEBUG_INSN_P.
33522 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
33524 Use variadic macros with avr-log.c.
33526 * config/avr/avr-protos.h (avr_vdump): New prototype.
33527 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
33528 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
33529 * config/avr/avr-log.c: Adjust comments.
33530 (avr_vdump): New function.
33531 (avr_vadump): Pass caller as 2nd argument instead of format string.
33532 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
33533 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
33535 2015-02-25 Jakub Jelinek <jakub@redhat.com>
33538 * target.def (target_option_stream_in): New target hook.
33539 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
33540 targetm.target_option.post_stream_in if non-NULL.
33541 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
33542 * doc/tm.texi: Updated.
33543 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
33545 (TARGET_OPTION_POST_STREAM_IN): Redefine.
33547 2015-02-24 Jeff Law <law@redhat.com>
33550 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
33551 of operand 0 and operand 2.
33552 (zero_cost_loop_end, loop_end): Similarly.
33554 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
33556 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
33559 2015-02-24 DJ Delorie <dj@redhat.com>
33561 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
33562 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
33563 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
33564 instead of hardcoding SImode.
33566 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
33568 * omp-low.c (create_omp_child_function): Tag entrypoint
33569 functions with a special attribute.
33571 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33574 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
33576 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
33578 PR rtl-optimization/65123
33579 * lra-remat.c (operand_to_remat): Check hard regs in insn
33582 2015-02-24 Nick Clifton <nickc@redhat.com>
33584 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
33587 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
33590 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
33591 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
33592 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
33593 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
33594 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
33595 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
33596 (BUILT_IN_GOACC_PARALLEL): Specify as
33597 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
33598 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
33599 * builtin-types.def
33600 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33601 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33602 Remove function types.
33603 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
33604 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
33605 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
33606 New function types.
33608 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
33610 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
33612 2015-02-24 Jakub Jelinek <jakub@redhat.com>
33614 PR tree-optimization/65170
33615 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
33616 if val[1] < 0, clear also val[2] and return 3.
33618 2015-02-24 Alan Modra <amodra@gmail.com>
33621 * config/rs6000/rs6000.c (get_memref_parts): Only return true
33622 when *base is a reg. Handle nested plus addresses. Simplify
33625 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
33627 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
33628 use natural alignment when optimizing for size.
33630 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
33633 * config/sh/sh.md (movsicc_true+3): Remove peephole.
33634 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
33635 * config/sh/sh.c (replace_n_hard_rtx): Remove.
33637 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
33640 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
33641 too big for a wide_int. Implement missing wrapping operation.
33643 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
33646 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
33647 instead of const_int 4294901760.
33649 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
33651 * config/avr/t-avr: Fix typo in comment.
33653 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
33655 * doc/rtl.texi (fma): Clarify documentation.
33657 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
33660 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
33661 over input_location.
33663 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33665 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
33666 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
33667 restrict alignments to absolute_biggest_alignment.
33668 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
33670 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
33671 * doc/tm.texi: Regenerate.
33672 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
33674 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
33677 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
33679 2015-02-20 Richard Biener <rguenther@suse.de>
33681 PR tree-optimization/65136
33682 * tree-ssa-propagate.c: Include cfgloop.h.
33683 (replace_phi_args_in): Avoid replacing loop latch edge PHI
33684 arguments with constants.
33686 2015-02-20 Jakub Jelinek <jakub@redhat.com>
33687 Martin Liska <mliska@suse.cz>
33690 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
33691 don't try to create_thunk if stdarg_p. If
33692 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
33693 redirect_callers if possible.
33694 (sem_item_optimizer::execute): Call unregister_hooks here...
33695 (ipa_icf_driver): ... instead of here.
33697 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33699 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
33700 Mark operand 0 as earlyclobber in 2nd alternative.
33701 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
33702 Write negated shift amount into QI lowpart operand 0 and use it
33704 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
33706 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33708 * cgraph.h (clone_function_name_1): Declare.
33709 * cgraphclones.c (clone_function_name_1): New function.
33710 (clone_function_name): Use it.
33711 * lto-partition.c: Include "stringpool.h".
33712 (must_not_rename, maybe_rewrite_identifier)
33713 (validize_symbol_for_target): New static functions.
33714 (privatize_symbol_name): Use must_not_rename.
33715 (promote_symbol): Call validize_symbol_for_target.
33716 (lto_promote_cross_file_statics): Likewise.
33717 (lto_promote_statics_nonwpa): Likewise.
33719 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
33722 * config/avr/avr.md (pushhi_insn): New insn.
33723 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
33725 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
33726 Jakub Jelinek <jakub@redhat.com>
33728 * tree-streamer.c (preload_common_nodes): Don't preload
33729 TI_VA_LIST* for offloading.
33730 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
33733 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
33735 * config/pa/pa.c (pa_emit_move_sequence): Always force
33736 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
33739 * config/pa/pa.c (pa_reloc_rw_mask): New function.
33740 (TARGET_ASM_RELOC_RW_MASK): Define.
33741 (pa_cannot_force_const_mem): Revert previous change.
33743 2015-02-19 Martin Jambor <mjmabor@suse.cz>
33744 Jan Hubicka <hubicka@ucw.cz>
33747 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
33748 across jump functions.
33750 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
33752 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
33754 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
33756 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
33758 2015-02-19 Richard Henderson <rth@redhat.com>
33760 PR middle-end/65074
33761 * varasm.c (default_binds_local_p_2): Don't test node->definition;
33762 test DECL_EXTERNAL independent of symtab_node.
33764 2015-02-19 Jakub Jelinek <jakub@redhat.com>
33767 * varpool.c (varpool_node::get_constructor): Return early
33768 if this->lto_file_data is NULL.
33770 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33772 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
33773 (rank_for_schedule_debug): Update.
33774 (ready_sort): Make static. Move sorting logic to ...
33775 (ready_sort_debug, ready_sort_real): New static functions.
33776 (schedule_block): Sort both debug insns and real insns in preparation
33777 for ready list trimming. Improve debug output.
33778 * sched-int.h (ready_sort): Remove global declaration.
33780 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
33782 * ipa-icf.c (sem_function::equals_private): Adjust.
33783 (sem_function::bb_dict_test): Take a vec<int> * instead of
33785 * ipa-icf.h (bb_dict_test): Likewise.
33787 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33789 PR gcov-profile/64634
33790 * tree-eh.c (frob_into_branch_around): Fix up typos
33791 in function comment.
33792 (lower_catch): Put eh_seq resulting from EH lowering of
33793 the cleanup sequence after the cleanup rather than before it.
33795 2015-02-18 Tom de Vries <tom@codesourcery.com>
33797 * common.opt (fstdarg-opt): New option.
33798 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
33799 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
33800 (@item -fstdarg-opt): New item.
33802 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
33805 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
33806 for common symbols.
33808 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33810 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
33812 (ALL_HOST_OBJS): Add mkoffload.o.
33813 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
33815 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
33817 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
33818 (compare_virtual_tables): Be smarter about skipping typeinfos;
33819 do sane output on virtual table table mismatch.
33820 (warn_odr): Be ready for forward declarations of enums;
33821 output sane info on base mismatch and virtual table mismatch.
33822 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
33823 when only one type is polymorphic.
33824 (get_odr_type): Fix hashtable corruption.
33825 (dump_odr_type): Dump mangled names.
33827 2015-02-18 Richard Biener <rguenther@suse.de>
33829 PR tree-optimization/65063
33830 * tree-predcom.c (determine_unroll_factor): Return 1 if we
33831 have replaced looparound PHIs.
33833 2015-02-18 Martin Liska <mliska@suse.cz>
33835 * lto-streamer.c (lto_streamer_init): Encapsulate
33836 streamer_check_handled_ts_structures with checking macro.
33838 2015-02-18 Jakub Jelinek <jakub@redhat.com>
33841 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
33842 section if !implicit_section.
33843 (cgraph_node::create_version_clone_with_body): Likewise.
33844 * trans-mem.c (ipa_tm_create_version): Likewise.
33846 2015-02-18 Richard Biener <rguenther@suse.de>
33848 PR tree-optimization/62217
33849 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
33852 2015-02-18 Marek Polacek <polacek@redhat.com>
33855 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
33856 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
33857 is in range [-16K, -1]. Don't issue run-time error if
33858 (ptr > ptr + offset).
33860 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
33862 * doc/install.texi (nvptx-*-none): New section.
33863 * doc/invoke.texi (Nvidia PTX Options): Likewise.
33864 * config/nvptx/nvptx.opt: Update.
33866 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
33867 (access_check): New functions, copied from
33868 config/i386/intelmic-mkoffload.c.
33869 (main): For non-installed testing, look in all COMPILER_PATHs for
33872 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
33874 2015-02-18 Andrew Pinski <apinski@cavium.com>
33875 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
33877 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
33878 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
33880 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33882 * ipa-visibility.c (function_and_variable_visibility): Only
33883 check locality if node is not already local.
33884 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33885 call_for_symbol_and_aliases instead of
33886 call_for_symbol_thunks_and_aliases.
33887 (ipa_inline): Likewise.
33888 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33889 first walk aliases.
33890 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33891 call_for_symbol_and_aliases.
33892 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33893 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33894 (ipa_propagate_frequency): Update.
33895 (ipa_profile): Add opt_for_fn gueards.
33897 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33899 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
33900 * doc/invoke.texi (SH options): Document it.
33901 * config/sh/sh.c (sh_insn_length_adjustment): Check
33902 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
33904 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
33906 * common.opt (fipa-cp-alignment): New.
33907 * ipa-cp.c (ipcp_store_alignment_results): Check
33908 flag_ipa_cp_alignment.
33909 * opts.c (default_options_table): Enable -fipa-cp-alignment for
33911 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
33912 * doc/invoke.texi: Document -fipa-cp-alignment.
33914 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
33917 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
33918 to nil. Adjust comments.
33920 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
33922 * ipa-visibility.c (function_and_variable_visibility): Only
33923 check locality if node is not already local.
33924 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
33925 call_for_symbol_and_aliases instead of
33926 call_for_symbol_thunks_and_aliases.
33927 (ipa_inline): Likewise.
33928 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
33929 first walk aliases.
33930 * ipa.c (symbol_table::remove_unreachable_nodes): Use
33931 call_for_symbol_and_aliases.
33932 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
33933 (ipa_propagate_frequency_1): Use it; use opt_for_fn
33934 (ipa_propagate_frequency): Update.
33935 (ipa_profile): Add opt_for_fn guards.
33937 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
33939 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
33940 skipping of "strange" tokens.
33942 2015-02-17 Jeff Law <law@redhat.com>
33944 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
33947 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
33949 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
33950 as forcing a HARD_DEP between instructions, thereby
33951 disallowing rewriting to break dependencies.
33953 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
33955 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
33956 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
33957 variables in boundary that have no inlitalizer encoded and are
33959 * varasm.c (default_binds_local_p_2): External definitions do not
33960 count as definitions here.
33962 2015-02-16 Jeff Law <law@redhat.com>
33964 PR tree-optimization/64823
33965 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
33967 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
33968 threading through blocks with PHIs, but no statements.
33969 (thread_through_normal_block): Distinguish between blocks where
33970 we did not process all the statements and blocks with no statements.
33972 2015-02-16 Jakub Jelinek <jakub@redhat.com>
33973 James Greenhalgh <james.greenhalgh@arm.com>
33976 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
33977 section if not linkonce. Fix up formatting.
33978 (cgraph_node::create_version_clone_with_body): Copy section.
33979 * trans-mem.c (ipa_tm_create_version): Likewise.
33981 2015-02-16 Richard Biener <rguenther@suse.de>
33983 PR tree-optimization/65077
33984 * tree-ssa-structalias.c (get_constraint_for_1): Handle
33985 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
33986 (find_func_aliases): Allow float values to carry pointers again.
33988 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
33990 * doc/install.texi (Specific): Reorder targets list to put
33991 aarch64 in alphabetical order. Add a link to aarch64*-*-*
33994 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33995 David Edelsohn <dje.gcc@gmail.com>
33998 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
33999 mapping class to external variable or function reference.
34000 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
34003 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
34006 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
34007 ASM_WEAKEN_DECL if defined.
34009 2015-02-16 Richard Biener <rguenther@suse.de>
34012 * varasm.c (default_file_start): For LTO produced units
34013 emit <artificial> as file directive.
34015 2015-02-16 Richard Biener <rguenther@suse.de>
34017 PR tree-optimization/63593
34018 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
34019 stmts and releasing SSA names until...
34020 (execute_pred_commoning): ... after processing all chains.
34022 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
34025 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
34026 external functions.
34028 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
34030 * doc/bugreport.texi: Adjust section titles throughout the file
34031 to use "Title Case".
34032 * doc/extend.texi: Likewise.
34033 * doc/gcov.texi: Likewise.
34034 * doc/implement-c.texi: Likewise.
34035 * doc/implement-cxx.texi: Likewise.
34036 * doc/invoke.texi: Likewise.
34037 * doc/objc.texi: Likewise.
34038 * doc/standards.texi: Likewise.
34039 * doc/trouble.texi: Likewise.
34041 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
34043 * cgraph.h (symtab_node::has_aliases_p): Simplify.
34044 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
34045 * tree.c (lookup_binfo_at_offset): Make static.
34046 (get_binfo_at_offset): Do not shadow offset; add explanatory
34049 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
34051 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
34052 for all floading point loads and stores except those using a register
34054 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
34057 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
34059 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
34060 (do_estimate_growth_1): Record if any uninlinable edge was seen.
34061 (estimate_growth): Handle uninlinable edges correctly.
34062 (check_callers): New.
34063 (growth_likely_positive): Handle aliases correctly.
34065 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
34067 * ipa-chkp.c: Use iterate_direct_aliases.
34068 * symtab.c (resolution_used_from_other_file_p): Move inline.
34069 (symtab_node::create_reference): Fix formating.
34070 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
34071 (symtab_node::iterate_reference): Move inline.
34072 (symtab_node::iterate_referring): Move inline.
34073 (symtab_node::iterate_direct_aliases): Move inline.
34074 (symtab_node::used_from_object_file_p_worker): Inline into ...
34075 (symtab_node::used_from_object_file_p): ... this one; move inline.
34076 (symtab_node::call_for_symbol_and_aliases): Move inline;
34077 use iterate_direct_aliases.
34078 (symtab_node::call_for_symbol_and_aliases_1): New method.
34079 (cgraph_node::call_for_symbol_and_aliases): Move inline;
34080 use iterate_direct_aliases.
34081 (cgraph_node::call_for_symbol_and_aliases_1): New method.
34082 (varpool_node::call_for_node_and_aliases): Rename to ...
34083 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
34084 use iterate_direct_aliases.
34085 (varpool_node::call_for_symbol_and_aliases_1): New method.
34086 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
34087 (ipa_discover_readonly_nonaddressable_var): Update.
34088 * ipa-devirt.c: Fix formating.
34089 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
34091 (cgraph_node::call_for_symbol_and_aliases): Move inline.
34092 (cgraph_node::call_for_symbol_and_aliases_1): New function..
34093 * cgraph.h (used_from_object_file_p_worker): Remove.
34094 (resolution_used_from_other_file_p): Move inline.
34095 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
34096 (symtab_node::iterate_reference): Move inline.
34097 (symtab_node::iterate_referring): Move inline.
34098 (symtab_node::iterate_direct_aliases): Move inline.
34099 (symtab_node::used_from_object_file_p_worker): Inline into ...
34100 (symtab_node::used_from_object_file_p): Move inline.
34101 * tree-emutls.c (ipa_lower_emutls): Update.
34102 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
34103 (varpool_node::call_for_node_and_aliases): Remove.
34105 2015-02-14 Jakub Jelinek <jakub@redhat.com>
34107 PR tree-optimization/62209
34108 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
34109 op == range->exp, insert seq and gimplified code after labels
34110 instead of after the phi.
34112 2015-02-13 Jeff Law <law@redhat.com>
34115 Revert my change for tree-optimization/64823.
34117 2015-02-13 Jakub Jelinek <jakub@redhat.com>
34119 PR tree-optimization/65053
34120 * tree-ssa-phiopt.c (value_replacement): When moving assign before
34121 cond, either reset VR on lhs or set it to phi result VR.
34123 2015-02-13 Jeff Law <law@redhat.com>
34125 PR tree-optimization/64823
34126 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
34127 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
34128 threading through blocks with PHIs, but no statements.
34129 (thread_through_normal_block): Distinguish between blocks where
34130 we did not process all the statements and blocks with no statements.
34132 PR rtl-optimization/47477
34133 * match.pd (convert (plus/minus (convert @0) (convert @1): New
34134 simplifier to narrow arithmetic.
34136 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
34139 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
34140 polymorphic call info when type is not known to be preserved.
34142 2015-02-13 Maritn Jambor <mjambor@suse.cz>
34145 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
34146 (inline_call): Use it.
34148 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
34150 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
34151 GOMP_DEVICE_NVIDIA_PTX.
34153 2015-02-13 Jakub Jelinek <jakub@redhat.com>
34156 * stmt.c (emit_case_nodes): Use void_type_node instead of
34157 NULL_TREE as LABEL_DECL type.
34159 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
34161 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
34163 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
34164 symbolic references to data to be forced to constant memory on the
34167 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
34169 PR tree-optimization/65002
34170 * tree-cfg.c (pass_data_fixup_cfg): Don't update
34172 * tree-sra.c (some_callers_have_no_vuse_p): New.
34173 (ipa_early_sra): Reject functions whose callers
34174 assume function is read only.
34176 2015-02-13 Richard Biener <rguenther@suse.de>
34179 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
34180 for LTO produced CUs.
34182 2015-02-13 Bin Cheng <bin.cheng@arm.com>
34184 PR tree-optimization/64705
34185 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
34186 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
34187 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
34188 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
34189 expand_simple_operations.
34191 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
34192 Richard Henderson <rth@redhat.com>
34195 * cgraphunit.c (cgraph_node::finalize_function): Set definition
34196 before notice_global_symbol.
34197 (varpool_node::finalize_decl): Likewise.
34198 * varasm.c (default_binds_local_p_2): Rename from
34199 default_binds_local_p_1, add weak_dominate argument. Use direct
34200 returns instead of assigning to local variable. Unify varpool and
34201 cgraph paths via symtab_node. Reject undef weak variables before
34202 testing visibility. Reorder tests for simplicity.
34203 (default_binds_local_p): Use default_binds_local_p_2.
34204 (default_binds_local_p_1): Likewise.
34205 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
34207 (default_elf_asm_output_external): Emit visibility when specified.
34209 2015-02-13 Alan Modra <amodra@gmail.com>
34211 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
34212 code setting up r11 for out-of-line fp restore.
34214 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
34216 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
34217 (muser-mode): Likewise.
34219 2015-02-13 Alan Modra <amodra@gmail.com>
34221 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
34222 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
34224 2015-02-12 David Howells <dhowells@redhat.com>
34226 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
34228 * tree-ssa-uninit.c (dump_predicates): Likewise.
34229 * opts.c (print_filtered_help): Likewise.
34231 2015-02-12 Jakub Jelinek <jakub@redhat.com>
34233 * dwarf2out.c (output_die): Use "%s", name instead of name to
34234 avoid -Wformat-security warning.
34236 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
34237 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
34238 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
34239 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
34241 2015-02-12 Jason Merrill <jason@redhat.com>
34243 * common.opt (-flifetime-dse): New.
34245 2015-02-12 Jakub Jelinek <jakub@redhat.com>
34248 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
34250 PR tree-optimization/65014
34251 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
34252 use original second operand of arg0 or arg1 instead of
34253 that adjusted by STRIP_NOPS.
34255 2015-02-11 Jeff Law <law@redhat.com>
34258 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
34259 that needs to be queued, just queue it for a single cycle.
34261 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
34263 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
34264 bodies of thunks; comment on why.
34265 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
34266 symbols are extern.
34268 2015-02-11 Richard Henderson <rth@redhat.com>
34271 * tree-eh.c (mark_reachable_handlers): Mark source and destination
34272 regions of __builtin_eh_copy_values.
34274 2015-02-11 Jakub Jelinek <jakub@redhat.com>
34276 PR middle-end/65003
34277 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
34278 ultimate alias is MEM with SYMBOL_REF satisfying
34279 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
34280 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
34282 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
34284 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
34285 "diagnostic-core.h".
34286 (main): Initialize progname, and call diagnostic_initialize.
34288 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
34289 instead of __OPENMP_TARGET__.
34291 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
34292 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
34293 hard-coding PTX_ID.
34295 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
34297 * doc/sourcebuild.texi (pie_enabled): Document.
34299 2015-02-11 Martin Liska <mliska@suse.cz>
34302 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
34303 a return value for call to a function that is noreturn.
34305 2015-02-11 Richard Biener <rguenther@suse.de>
34308 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
34311 2015-02-11 Andrew Pinski <apinski@cavium.com>
34314 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
34315 Change the first argument type to size_type_node and add another
34317 (aarch64_simd_expand_builtin): Handle the new argument to
34318 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
34319 print an out when the first two arguments are not
34320 nonzero integer constants.
34321 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
34322 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
34324 2015-02-11 Jakub Jelinek <jakub@redhat.com>
34327 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
34328 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
34329 (ix86_set_current_function): Rewritten.
34330 (ix86_add_new_builtins): Temporarily clear current_target_pragma
34331 when creating builtin fndecls.
34333 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34336 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
34338 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
34339 have no comdat group.
34340 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
34341 (lto_output_varpool_node): Always output alias info.
34342 (output_refs): Output refs of boundary aliases, too.
34343 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
34344 (output_symtab): Output call eges in thunks in boundary.
34345 (get_alias_symbol): Remove.
34346 (input_node, input_varpool_node): Do not special case weakrefs.
34347 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
34348 alias and thunks targets in the boundary; do not take removed symbols
34349 from their comdat groups.
34350 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
34351 (cgraph_node::global_info): Remove.
34352 (cgraph_node::rtl_info): Look through aliases and thunks.
34353 * cgrpah.h (global_info): Remove.
34354 (non_local_p): Remove.
34356 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
34357 Sandra Loosemore <sandra@codesourcery.com>
34359 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
34360 to inline asm. List dialects in proper order.
34362 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
34363 Sandra Loosemore <sandra@codesourcery.com>
34365 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
34367 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
34369 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
34370 modified) reference to Solaris.
34372 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
34374 * doc/extend.texi (Extended Asm): Fix typos.
34376 2015-02-10 Jakub Jelinek <jakub@redhat.com>
34379 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
34381 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
34384 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
34385 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
34386 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
34387 * config/sh/constraints.md (Ara, Add): New constraints.
34388 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
34390 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
34391 atomic_mem_operand_0. Don't use force_reg on the memory address.
34392 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
34393 Sra constraint. Convert to insn_and_split. Add workaround for
34395 (atomic_compare_and_swap<mode>_hard): Copy to
34396 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
34397 Use atomic_mem_operand_0 predicate.
34398 (atomic_compare_and_swap<mode>_soft_gusa,
34399 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
34400 AraAdd constraints.
34401 (atomic_compare_and_swap<mode>_soft_tcb,
34402 atomic_compare_and_swap<mode>_soft_imask,
34403 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
34404 atomic_mem_operand_0 predicate and SraSdd constraints.
34405 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
34407 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
34408 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
34409 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
34410 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
34411 force_reg on the memory address.
34412 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
34413 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
34414 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
34415 atomic_mem_operand_1 predicate and Sra constraint.
34416 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
34417 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
34418 Use atomic_mem_operand_1 predicate.
34419 (atomic_<fetchop_name><mode>_hard): Copy to
34420 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
34421 Use atomic_mem_operand_1 predicate.
34422 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
34423 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
34424 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
34425 insn_and_split. Use atomic_mem_operand_1 predicate.
34426 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
34427 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
34428 Use atomic_mem_operand_1 predicate.
34429 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
34430 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
34431 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
34432 in generated insn with original mem operand before emitting the insn.
34433 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
34434 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
34435 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
34436 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
34437 Use atomic_mem_operand_1 predicate and AraAdd constraints.
34438 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
34439 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
34440 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
34441 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
34442 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
34443 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
34444 atomic_not_fetch<mode>_soft_tcb,
34445 atomic_<fetchop_name>_fetch<mode>_soft_imask,
34446 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
34447 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
34448 Use atomic_mem_operand_1 predicate and SraSdd constraints.
34450 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
34452 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
34453 and 3 earlyclobber operands.
34455 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34457 * common.opt (fstack-reuse): Mark as optimization.
34459 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
34462 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
34464 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
34466 PR tree-optimization/64326
34467 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
34469 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
34471 PR gcov-profile/61889
34472 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
34474 2015-02-10 Richard Biener <rguenther@suse.de>
34476 PR tree-optimization/64995
34477 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
34478 value we use is final.
34479 (visit_reference_op_store): Always valueize op.
34480 (visit_use): Properly valueize vuses.
34482 2015-02-10 Richard Biener <rguenther@suse.de>
34484 PR tree-optimization/64909
34485 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
34486 pass a scalar-stmt count estimate to the cost model.
34487 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
34489 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
34491 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
34492 enabled by default together with var-tracking.
34494 2015-02-10 Nick Clifton <nickc@redhat.com>
34496 * config/rl78/rl78.c: Remove DIV attribute code accidentally
34497 included in previous rl78 commit.
34499 2015-02-10 Richard Biener <rguenther@suse.de>
34501 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
34502 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
34503 return the bitpack.
34505 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
34507 PR gcov-profile/61889
34508 * config.in: regenerate.
34509 * configure.in: Likewise.
34510 * configure.ac: Check for ftw.h.
34511 * gcov-tool.c: Check for ftw.h before using nftw.
34513 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
34516 * ipa-visibility.c (update_visibility_by_resolution_info): Only
34517 assert when not in lto mode.
34519 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
34521 * ira-color.c (setup_left_conflict_sizes_p): Simplify
34522 initialization/assignment of conflict_size.
34524 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
34527 * ipa-cp.c (gather_caller_stats): Skip thunks.
34528 (propagate_constants_topo): Skip aliases.
34530 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
34533 * config/sh/sh.c (sh_option_override): Don't change
34534 -freorder-blocks-and-partition to -freorder-blocks even when
34535 unwinding is enabled.
34536 (sh_can_follow_jump): Return false if the followee jump is
34537 a crossing jump when -freorder-blocks-and-partition is specified.
34538 * config/sh/sh.md (*jump_compact_crossing): New insn.
34540 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
34541 Kaz Kojima <kkojima@gcc.gnu.org>
34544 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
34545 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
34546 (sh_can_redirect_branch): Rename to ...
34547 (sh_can_follow_jump): ... this. Constify argument types.
34548 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
34549 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
34550 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
34551 * doc/tm.texi: Regenerate.
34553 2015-02-09 Jakub Jelinek <jakub@redhat.com>
34556 * builtins.c (expand_builtin): Call targetm.expand_builtin
34557 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
34559 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34562 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
34564 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34567 * ipa-icf.c (set_local): New function.
34568 (sem_function::merge): Use it.
34570 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34572 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
34573 (add_type_duplicate): Fix comparison of BINFOs.
34575 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34577 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
34578 on getting VOID pointer.
34580 2015-02-09 Jakub Jelinek <jakub@redhat.com>
34583 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
34586 2015-02-09 Richard Biener <rguenther@suse.de>
34588 * genmatch.c (replace_id): Copy expr_type.
34590 2015-02-09 Richard Biener <rguenther@suse.de>
34592 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
34593 (streamer_write_tree_bitfields): Declare.
34594 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
34595 properly unpack padding.
34596 (unpack_value_fields): Inline ...
34597 (streamer_read_tree_bitfields): ... here.
34598 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
34599 and properly add padding bits.
34600 (streamer_pack_tree_bitfields): Fold into ...
34601 (streamer_write_tree_bitfields): ... this new function,
34602 exposing the bitpack object.
34603 * lto-streamer-out.c (lto_write_tree_1): Call
34604 streamer_write_tree_bitfields.
34606 2015-02-09 Richard Biener <rguenther@suse.de>
34608 PR tree-optimization/54000
34609 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
34610 (struct ivopts_data): Add loop_loc member.
34611 (tree_ssa_iv_optimize_loop): Dump loop location.
34612 (create_new_ivs): Likewise, also dump number of IVs generated.
34614 2015-02-09 Martin Liska <mliska@suse.cz>
34616 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
34617 just if not yet registered.
34618 (ipa_icf_generate_summary): Register callgraph hooks.
34620 2015-02-08 Andrew Pinski <apinski@cavium.com>
34622 * config/aarch64/aarch64.c (gty_dummy): Delete.
34624 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34627 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
34628 (cgraph_node::local_p): Remove thunk related FIXME.
34630 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34633 * i386.c (ix86_function_regparm): Look through aliases to see if callee
34634 is local and optimized.
34635 (ix86_function_sseregparm): Likewise; also use target's SSE math
34636 settings; error out instead of silently generating wrong code
34638 (init_cumulative_args): Look through aliases.
34640 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34643 * ipa-split.c (execute_split_functions): Split if function has aliases.
34645 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
34648 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
34649 aliases before trying to expand it.
34650 (cgraph_node::expand_thunk): Fix formating.
34652 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
34654 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
34655 (Using Assembly Language with C): Expand introduction.
34656 (Basic Asm): Copy-edit. Add more information about uses of
34658 (Extended Asm): Copy-edit. Document new escape syntax and
34660 (Global Reg Vars): Copy-edit.
34661 (Local Reg Vars): Likewise.
34663 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
34667 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
34668 (DBX_CONTIN_CHAR): Define.
34670 2015-02-06 Sebastian Pop <s.pop@samsung.com>
34671 Brian Rzycki <b.rzycki@samsung.com>
34673 PR tree-optimization/64878
34674 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
34675 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
34676 Stop recursion at loop phi nodes after having visited a loop phi node.
34678 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34680 * toplev.c (process_options): Change flag_ipa_ra before creating
34681 optimization_{default,current}_node.
34684 * cgraphunit.c (cgraph_node::expand_thunk): If
34685 restype is not is_gimple_reg_type nor the thunk_fndecl
34686 returns aggregate_value_p, set restmp to a temporary variable
34687 instead of resdecl.
34689 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
34691 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
34693 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34696 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
34697 add a general secondary reload handler for SDmode, unless we have
34698 both read/write support for SDmode.
34700 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34702 PR middle-end/64937
34703 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
34704 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
34705 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
34706 1 before, push it to abstract_vec.
34707 (dwarf2out_abstract_function): Adjust caller. Don't call
34708 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
34709 DECL_ABSTRACT_P flags for all abstract_vec elts.
34711 2015-02-06 Renlin Li <renlin.li@arm.com>
34713 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
34715 * tree-ssa.c (execute_update_addresses_taken): Likewise.
34717 2015-02-06 Jeff Law <law@redhat.com>
34720 * config/h8300/h8300.c (push): New argument "in_prologue".
34721 Pass "in_prologue" along to "F".
34722 (h8300_push_pop): Corresponding changes.
34723 (h8300_expand_prologue): Likewise.
34724 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
34726 2015-02-06 Jakub Jelinek <jakub@redhat.com>
34728 PR rtl-optimization/64957
34730 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
34731 IOR rather than for AND.
34733 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
34736 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
34737 of shift-add and (add + shift) operations. Rename local variable.
34739 2015-02-05 Jeff Law <law@redhat.com>
34742 * config/h8300/constraints.md (U): Correctly dectect
34743 "eightbit_data" memory addresses.
34744 * config/h8300/h8300.c (eightbit_constant_address_p): Also
34745 handle (const (plus (symbol_ref (x)))) where x is declared
34746 as an 8-bit data memory address.
34747 * config/h8300/h8300.md (call, call_value): Correctly detect
34748 "funcvec" functions.
34751 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
34752 24 to 28 bits for the H8/300.
34754 2015-02-06 Alan Modra <amodra@gmail.com>
34757 * config/rs6000/rs6000.c (chain_already_loaded): New function.
34758 (rs6000_call_aix): Use it.
34760 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
34762 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
34765 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
34767 * config/h8300/constraints.md ("U" constraint): Use strict
34768 variant of REG_OK_FOR_BASE_P after reload has started.
34770 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
34772 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
34773 define to zero if !TARGET_NEON.
34774 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
34776 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34777 Trevor Saunders <tsaunders@mozilla.com>
34780 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
34782 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34785 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
34786 when removing varpool nodes.
34788 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34791 * varpool.c (varpool_node::remove): Fix order of variables.
34793 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34796 * ipa-inline.c (inline_small_functions): Fix ordering issue between
34797 speculation resolution and key updates.
34799 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34801 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
34802 about not letting any speculative edges unupdated.
34804 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34807 * gcov-io.c (gcov_var): Export.
34809 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34811 PR middle-end/64922
34812 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
34813 edges that become speculative.
34815 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34817 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
34818 or DW_LANG_Fortran08.
34819 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
34821 (gen_compile_unit_die): Handle "GNU Fortran2003" and
34822 "GNU Fortran2008" language strings.
34823 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
34824 * langhooks.h (lang_GNU_Fortran): New prototype.
34825 * langhooks.c (lang_GNU_Fortran): New function.
34826 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
34829 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34831 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
34832 (RTX_OK_FOR_OLO10_P): Likewise.
34834 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
34836 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
34838 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
34840 PR middle-end/64922
34841 * gimple.c: Include gimple-ssa.h.
34842 (maybe_remove_unused_call_args): New function.
34843 * gimple.h (maybe_remove_unused_call_args): Declare.
34844 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
34845 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
34846 * gimple-fold.c (gimple_fold_call): Likewise.
34848 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
34850 PR rtl-optimization/64905
34851 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
34852 pointer alignment if it isn't needed.
34854 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34856 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
34857 cortex-a72.cortex-a53.
34858 * config/aarch64/aarch64-tune.md: Regenerate.
34859 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
34861 2015-02-04 Nick Clifton <nickc@redhat.com>
34863 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
34866 2015-02-04 Jakub Jelinek <jakub@redhat.com>
34868 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
34869 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
34870 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
34872 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
34873 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
34874 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
34875 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
34876 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
34877 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
34878 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
34879 * tree-core.h (enum built_in_function): In between
34880 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
34881 for builtins that use DEF_BUILTIN_CHKP macro.
34883 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
34886 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
34887 operands for tcc_comparison exprs. Fix typos.
34890 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
34891 of two XORs that have an intervening AND or IOR.
34894 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
34895 simplification of XOR of AND to not allocate new rtx before
34896 committing to a simplification.
34898 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34900 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
34901 manual swaps in all peepholes.
34903 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34905 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
34906 of manual swapping implementation.
34907 (aarch64_expand_vec_perm_const_1): Likewise.
34909 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
34911 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
34912 (generic_addrcost_table): Remove NAMED_PARAM.
34913 (cortexa57_addrcost_table): Likewise.
34914 (xgene1_addrcost_table): Likewise.
34915 (generic_regmove_table): Likewise.
34916 (cortexa53_regmove_table): Likewise.
34917 (xgene1_regmove_table): Likewise.
34918 (generic_vector_table): Likewise.
34919 (cortexa57_vector_table): Likewise.
34920 (xgene1_vector_table): Likewise.
34921 (generic_tunings): Likewise.
34922 (cortexa53_tunings): Likewise.
34923 (cortexa57_tunings): Likewise.
34924 (xgene1_tunings): Likewise.
34926 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
34928 * config/arm/arm-cores.def: Add cortex-a72 and
34929 cortex-a72.cortex-a53.
34930 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
34931 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
34932 * config/arm/arm-tune.md: Regenerate.
34933 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
34934 "cortex-a72.cortex-a53".
34935 * doc/invoke.texi (ARM Options/-mtune): Likewise.
34937 2015-02-04 Nick Clifton <nickc@redhat.com>
34940 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
34942 (nonimmediate_di_operand): Likewise.
34944 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
34945 prefixes of known F5 using MSP430 MCUs.
34947 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34949 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
34950 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
34951 instead of __builtin_sqrt.
34953 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
34955 * varasm.c (do_assemble_alias): Follow transparent alias
34957 (default_assemble_visibility): Follow transparent alias
34958 chain for decl name.
34960 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
34962 PR middle-end/62103
34963 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
34964 to compute size of referenced value in the constant case.
34966 2015-02-03 Jakub Jelinek <jakub@redhat.com>
34968 PR rtl-optimization/64756
34969 * cse.c (invalidate_dest): New function.
34970 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
34971 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
34972 invalidate and do not record it.
34974 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
34977 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
34978 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
34979 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
34980 atomic_nand<mode>_soft_tcb): New insns.
34981 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
34982 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
34983 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
34984 Split into atomic_not_fetchsi_hard if operands[0] is unused.
34985 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
34986 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
34987 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
34988 atomic_not<mode>_hard if operands[0] is unused.
34989 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
34990 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
34991 if operands[0] is unused.
34992 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
34993 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
34994 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
34995 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
34997 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
34998 into atomic_not<mode>_soft_tcb if operands[0] is unused.
34999 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
35000 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
35001 if operands[0] is unused.
35002 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
35003 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
35004 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
35005 atomic_nand_fetchsi_hard if operands[0] is unused.
35006 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
35007 atomic_nand<mode>_hard if operands[0] is unused.
35008 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
35009 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
35010 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
35011 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
35012 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
35013 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
35014 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
35015 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
35016 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
35017 atomic_not<mode>_hard if operands[0] is unused.
35018 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
35019 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
35021 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
35022 into atomic_not<mode>_soft_tcb if operands[0] is unused.
35023 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
35024 atomic_nand<mode>_hard if operands[0] is unused.
35025 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
35026 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
35028 2015-02-03 David Malcolm <dmalcolm@redhat.com>
35031 * Makefile.in (GCC_OBJS): Add gcc-main.o.
35032 * gcc-main.c: New file, containing "main" taken from gcc.c.
35033 * gcc.c (do_self_spec): Free decoded_options.
35034 (class driver): Move declaration to gcc.h.
35035 (main): Move declaration and implementation to new file
35037 (driver_get_configure_time_options): New function.
35038 * gcc.h (class driver): Move this declaration here, from
35040 (driver_get_configure_time_options): New declaration.
35042 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
35044 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
35045 cross-module inlining.
35046 * cgraph.h (cgraph_node): Add flag merged.
35047 * ipa-icf.c (sem_function::merge): Maintain it.
35049 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
35051 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
35052 instead of OBJECT_P.
35054 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
35057 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
35058 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
35059 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
35060 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
35062 2015-02-03 Jakub Jelinek <jakub@redhat.com>
35065 * combine.c (reg_n_sets_max): New variable.
35066 (can_change_dest_mode, reg_nonzero_bits_for_combine,
35067 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
35068 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
35069 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
35070 (rest_of_handle_combine): Initialize reg_n_sets_max.
35072 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
35074 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
35075 if some always_inline was inlined, apply changes before inlining
35078 2015-02-02 David Malcolm <dmalcolm@redhat.com>
35081 * config/arm/arm.c (arm_option_override): Set
35082 arm_selected_arch/cpu/tune to NULL on entry.
35084 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
35085 Andrew Pinski <pinskia@gcc.gnu.org>
35086 Jakub Jelinek <jakub@gcc.gnu.org>
35089 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
35090 integer typing for small model. Use IN_RANGE.
35092 2015-02-02 Richard Biener <rguenther@suse.de>
35094 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
35095 * tree-vrp.c (vrp_valueize_1): Likewise.
35097 2015-02-02 Alan Modra <amodra@gmail.com>
35099 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
35100 than mem for toc_restore.
35101 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
35102 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
35103 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
35105 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
35108 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
35109 explicit default options.
35111 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
35114 * ipa-utils.c (ipa_merge_profiles): Add release argument.
35115 * ipa-icf.c (sem_function::merge): Do not release body when merging.
35116 * ipa-utils.h (ipa_merge_profiles): Update prototype.
35118 2015-02-01 Jakub Jelinek <jakub@redhat.com>
35121 * cfgexpand.c (deep_ter_debug_map): New variable.
35122 (avoid_deep_ter_for_debug): New function.
35123 (expand_debug_expr): If TERed SSA_NAME is in
35124 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
35125 instead of trying to expand SSA_NAME's def stmt.
35126 (expand_debug_locations): When expanding debug bind
35127 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
35128 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
35130 (pass_expand::execute): Call avoid_deep_ter_for_debug on
35131 all debug bind stmts. Delete deep_ter_debug_map after
35132 expand_debug_location if non-NULL and clear it.
35134 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
35137 * config/sh/sync.md (atomic_fetch_notsi_hard,
35138 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
35139 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
35140 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
35141 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
35142 atomic_not_fetch<mode>_soft_imask): New insns.
35144 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35146 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
35147 (rank_for_schedule_debug): Split from ...
35148 (rank_for_schedule): ... this.
35149 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
35150 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
35152 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
35154 * doc/md.texi (Machine Constraints): Alphabetize table by target.
35155 * doc/extend.texi (x86 Variable Attributes): Move section to
35156 correct alphabetization after renaming.
35157 (x86 Type Attributes): Likewise.
35158 (Target Builtins): Re-alphabetize menu.
35159 (x86 Built-in Functions): Move section to correct alphabetization
35161 (x86 transactional memory intrinsics): Likewise.
35162 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
35163 and x86 Windows Options in table and menu.
35164 (x86 Options): Move section to correct alphabetization after
35166 (x86 Windows Options): Likewise.
35168 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
35170 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
35171 preferred names of the architecture and its 32- and 64-bit
35173 * doc/invoke.texi: Likewise.
35174 * doc/md.texi: Likewise.
35176 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
35179 * config/i386/predicates.md (address_no_seg_operand): Reject
35180 non-CONST_INT_P operands in invalid mode.
35182 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
35184 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
35185 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
35186 * config/i386/predicates.md (address_no_seg_operand): Call
35187 address_operand with VOIDmode.
35188 (vsib_address_operand): Ditto.
35189 (address_mpx_no_base_operand): Ditto.
35190 (address_mpx_no_index_operand): Ditto.
35192 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
35195 * lra-constraints.c (original_subreg_reg_mode): New.
35196 (simplify_operand_subreg): Try to simplify subreg of const. Use
35197 original_subreg_reg_mode for it.
35198 (swap_operands): Update original_subreg_reg_mode.
35199 (curr_insn_transform): Set up original_subreg_reg_mode.
35201 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
35204 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
35206 (process_alt_operands): Use it.
35207 (curr_insn_transform): Check the optional reload pseudo class is
35210 2015-01-30 Joseph Myers <joseph@codesourcery.com>
35212 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
35213 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
35215 * toplev.h (init_asm_output): Update comment on use of
35216 UNKNOWN_LOCATION with fatal_error.
35217 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
35218 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
35219 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
35220 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
35221 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
35222 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
35223 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
35224 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
35225 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
35226 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
35227 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
35228 fatal_error changed to pass input_location as first argument.
35230 2015-01-30 Martin Liska <mliska@suse.cz>
35232 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
35233 in #pragma GCC diagnostic guards.
35235 2015-01-30 Richard Biener <rguenther@suse.de>
35237 PR tree-optimization/64829
35238 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
35239 not add a widening conversion pattern but hand off extra
35240 widenings to callers.
35241 (vect_recog_widen_mult_pattern): Handle extra widening produced
35242 by vect_handle_widen_op_by_const.
35243 (vect_recog_widen_shift_pattern): Likewise.
35244 (vect_pattern_recog_1): Remove excess vertical space in dumping.
35245 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
35246 (vect_init_vector_1): Likewise.
35247 (vect_get_vec_def_for_operand): Likewise.
35248 (vect_finish_stmt_generation): Likewise.
35249 (vectorizable_load): Likewise.
35250 (vect_analyze_stmt): Likewise.
35251 (vect_is_simple_use): Likewise.
35253 2015-01-29 Jeff Law <law@redhat.com>
35255 * combine.c (try_combine): Fix typo in comment.
35257 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
35260 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
35261 (rs6000_stack_info): Add assert.
35262 (rs6000_output_savres_externs): New function, split off from...
35263 (rs6000_output_function_prologue): ... here. Do not call it for
35266 2015-01-29 Jeff Law <law@redhat.com>
35269 * combine.c (try_combine): If I0 is a memory load and I3 a store
35270 to a related address, increase the "goodness" of doing a 4-insn
35271 combination with I0-I3.
35272 (make_field_assignment): Handle SUBREGs in the ior+and case.
35274 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
35276 PR tree-optimization/64746
35277 * tree-if-conv.c (mask_exists): New function.
35278 (predicate_mem_writes): Save created mask with given size for further
35280 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
35281 (ifcvt_repair_bool_pattern): Collect all statements that are root
35282 of bool pattern and use iterative algorithm to remove multiple uses
35283 of predicates, display number of required iterations.
35285 2015-01-29 Richard Biener <rguenther@suse.de>
35287 PR tree-optimization/64853
35288 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
35289 stmt will get simulated again.
35290 * tree-ssa-ccp.c (valueize_op_1): Likewise.
35292 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35294 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
35295 return_in_pc. Remove redundant assignments.
35296 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
35297 (arm_expand_epilogue): Don't compare boolean with true in if condition.
35299 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
35301 * config/i386/i386.c (ix86_mode_after): Make static.
35303 2015-01-29 Richard Biener <rguenther@suse.de>
35305 PR tree-optimization/64844
35306 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
35307 dump cost model analysis.
35308 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
35309 Do not register adjusted load/store costs here.
35311 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
35312 Uros Bizjak <ubizjak@gmail.com>
35314 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
35315 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
35316 using x86_use_pseudo_pic_reg.
35317 * config/i386/i386.c (ix86_conditional_register_usage): Remove
35318 support for fixed PIC register.
35319 (ix86_use_pseudo_pic_reg): Not static any more.
35321 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
35323 PR middle-end/64805
35324 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
35325 to avoid error in cgraph node verification.
35327 2015-01-29 Marek Polacek <polacek@redhat.com>
35329 * doc/standards.texi: Reflect that the default for C is gnu11.
35331 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
35334 * reorg.c (switch_text_sections_between_p): New function.
35335 (relax_delay_slots): Call it when testing if the jump insn
35336 is removable. Use targetm.can_follow_jump when testing if
35337 the conditional branch can follow an unconditional jump.
35339 2015-01-27 Caroline Tice <cmtice@google.com>
35341 Committing VTV Cywin/Ming patch for Patrick Wollgast
35342 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
35343 if -fvtable-verify=preinit/std is used.
35344 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
35345 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
35346 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
35347 if -fvtable-verify=preinit/std is used.
35348 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
35349 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
35350 if -fvtable-verify=preinit/std is used.
35351 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
35352 * config/i386/mingw32.h (LIB_SPEC): Likewise.
35353 * varasm.c (assemble_variable): Add code to properly set the comdat
35354 section and name for the .vtable_map_vars section in case the
35355 target is PE or COFF.
35357 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
35360 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
35361 make sane BB profile.
35362 (cgraph_node::expand_thunk): Make sane BB profile.
35363 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
35364 * cgraph.h (init_lowered_empty_function): Update prototype.
35365 * config/i386/i386.c (make_resolver_func): Update call.
35366 * predict.c (gate): Disable branch prediction pass if
35367 profile is already there.
35369 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
35371 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
35372 * opth-gen.awk: Likewise.
35373 * common.opt: Mark flag_fp_contract_mode as Optimization.
35375 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
35377 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
35378 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
35380 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
35383 * config/sh/predicates.md (atomic_arith_operand,
35384 atomic_logical_operand): Remove.
35385 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
35386 (atomic_arith_operand_0): New predicate.
35387 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
35388 Use atomic_arith_operand_0 for input values.
35389 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
35390 atomic_compare_and_swap<mode>_soft_gusa,
35391 atomic_compare_and_swap<mode>_soft_tcb,
35392 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
35393 arith_reg_operand instead of register_operand.
35394 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
35395 atomic_arith_operand_0 for newval input.
35396 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
35397 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
35398 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
35399 arith_reg_operand instead of register_operand.
35400 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
35401 fetchop_predicate_1, fetchop_constraint_1_llcs,
35402 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
35403 fetchop_constraint_1_imask): New code iterator attributes.
35404 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
35405 register_operand. Use fetchop_predicate_1.
35406 (atomic_fetch_<fetchop_name>si_hard,
35407 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
35408 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
35409 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
35410 and arith_reg_operand instead of register_operand. Use
35411 fetchop_predicate_1, fetchop_constraint_1_gusa.
35412 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
35413 and arith_reg_operand instead of register_operand. Use
35414 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
35416 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
35417 and arith_reg_operand instead of register_operand. Use
35418 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
35420 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
35421 register_operand. Use atomic_logical_operand_1.
35422 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
35423 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
35424 arith_reg_operand instead of register_operand.
35425 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
35426 Use arith_reg_dest and arith_reg_operand instead of register_operand.
35427 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
35428 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
35429 register_operand. Use fetchop_predicate_1.
35430 (atomic_<fetchop_name>_fetchsi_hard,
35431 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
35432 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35433 fetchop_constraint_1_llcs.
35434 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
35435 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35436 fetchop_constraint_1_gusa.
35437 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
35438 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35439 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
35440 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
35441 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
35442 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
35443 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
35444 register_operand. Use atomic_logical_operand_1.
35445 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
35446 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
35447 arith_reg_operand instead of register_operand.
35448 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
35449 arith_reg_operand instead of register_operand. Use logical_operand
35450 and K08. Adjust asm sequence to allow R0 usage.
35451 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
35452 arith_reg_operand instead of register_operand. Use logical_operand
35455 2015-01-28 Jakub Jelinek <jakub@redhat.com>
35458 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
35459 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
35460 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
35461 only get_full_len HOST_WIDE_INTs from get_val () array rather than
35462 all bits in *val_wide.
35464 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
35466 * varpool.c (tls_model_names): Fix names.
35467 (varpool_node::dump): Dump tls- prefix for tls models.
35469 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
35470 Bernd Schmidt <bernds@codesourcery.com>
35471 Nathan Sidwell <nathan@codesourcery.com>
35473 * config/nvptx/mkoffload.c: New file.
35474 * config/nvptx/t-nvptx: Add build rules for it.
35475 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
35476 (extra_programs): Add mkoffload.
35477 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
35479 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
35481 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
35483 PR middle-end/64809
35484 * cfgexpand.c (reorder_operands): Skip debug gimples.
35486 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
35488 PR tree-optimization/64277
35489 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
35490 range info when possible to refine estimation.
35492 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
35494 PR tree-optimization/64718
35495 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
35496 be a 16bit unsigned integer when n->range is 16.
35497 (bswap_replace): Convert src to that type if necessary for all bswap
35498 sizes. Fix rotation right notation in nearby comment. Use bswap_type
35499 set in pass_optimize_bswap::execute ().
35501 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
35503 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
35504 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
35505 integer and floating point variants.
35506 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
35508 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
35510 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
35511 for all vector modes.
35513 2015-01-28 Jakub Jelinek <jakub@redhat.com>
35516 * doc/sourcebuild.texi (comdat_group): Document.
35518 2015-01-28 Terry Guo <terry.guo@arm.com>
35520 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
35522 2015-01-27 David Malcolm <dmalcolm@redhat.com>
35524 * toplev.c (print_version): Add param "show_global_state", and
35525 only print GGC and plugin information if it is true.
35526 (init_asm_output): Pass in "true" for the new param when calling
35528 (process_options): Likewise.
35529 (toplev::main): Likewise.
35530 * toplev.h (print_version): Add new param to decl.
35532 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
35536 * tree.c (lookup_binfo_at_offset): New function.
35537 (get_binfo_at_offset): Use it.
35539 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
35542 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
35543 on vtable being vtable.
35545 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
35547 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
35548 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
35549 -mhotpatch= option.
35550 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
35551 -mno-hotpatch options. Change syntax of -mhotpatch= option.
35552 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
35554 (s390_hotpatch_trampoline_halfwords_max): Renamed.
35555 (s390_hotpatch_hw_max): New name.
35556 (s390_hotpatch_trampoline_halfwords): Renamed.
35557 (s390_hotpatch_hw_before_label): New name.
35558 (get_hotpatch_attribute): Removed.
35559 (s390_hotpatch_hw_after_label): New name.
35560 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
35562 (s390_attribute_table): Ditto.
35563 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
35564 (s390_function_num_hotpatch_hw): New name.
35565 Remove special handling of inline functions and hotpatching.
35566 Return number of nops before and after the function label.
35567 (s390_can_inline_p): Removed.
35568 (s390_asm_output_function_label): Emit a configurable number of nops
35569 after the function label.
35570 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
35571 (TARGET_CAN_INLINE_P) Removed.
35572 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
35574 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35575 Jiong Wang <jiong.wang@arm.com>
35577 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
35579 (cb<optab><mode>1): Likewise.
35580 * config/aarch64/iterators.md (bcond): New define_code_attr.
35582 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35584 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
35587 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
35589 * config/s390/s390.c (s390_register_move_cost): Increase costs for
35592 2015-01-27 Richard Biener <rguenther@suse.de>
35594 * tree-vrp.c (update_value_range): Intersect the range with
35595 old recorded SSA name range information.
35597 2015-01-27 Nick Clifton <nickc@redhat.com>
35599 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
35600 BC, DE and HL registers directly, not via AX.
35601 When decrementing the stack pointer by a large amount, transfer SP
35602 into AX and perform the subtraction there.
35603 (rl78_expand_epilogue): Perform the inverse of the above
35606 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35608 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
35610 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35611 Yury Gribov <y.gribov@samsung.com>
35614 * ubsan.c (ubsan_source_location): Refactor code.
35615 (ubsan_type_descriptor): Update type size. Refactor code.
35617 2015-01-27 Richard Biener <rguenther@suse.de>
35619 PR tree-optimization/56273
35620 PR tree-optimization/59124
35621 PR tree-optimization/64277
35622 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
35623 from the first VRP pass.
35625 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35628 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
35629 handle the first argument in the same loop as all the other arguments.
35631 PR rtl-optimization/61058
35632 * jump.c (cleanup_barriers): Update basic block boundaries
35633 if BLOCK_FOR_INSN is non-NULL on PREV.
35635 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
35637 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
35638 bounds narrowing, already instrumented calls and calls to
35639 not instrumentable functions.
35641 2015-01-27 Jakub Jelinek <jakub@redhat.com>
35643 PR tree-optimization/64807
35644 * wide-int.cc (wi::divmod_internal): Clear
35645 b_dividend[dividend_blocks_needed].
35647 2015-01-26 DJ Delorie <dj@redhat.com>
35649 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
35650 volatile memory references.
35652 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
35655 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
35657 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
35658 shifts if it already fits into K08.
35660 2015-01-26 Jakub Jelinek <jakub@redhat.com>
35663 * ipa-inline.c (inline_small_functions): Print "unknown" even
35664 if edge->call_stmt is non-NULL, but has builtins or unknown
35667 PR middle-end/64421
35668 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
35669 with asterisk, skip the first character.
35671 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
35674 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
35677 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
35680 * config/i386/i386.md (*movdi_internal): Also check operand 0
35681 to determine TYPE_LEA operand.
35682 (*movsi_internal): Ditto.
35684 2015-01-26 Jakub Jelinek <jakub@redhat.com>
35686 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
35687 OPTION_MASK_QUAD_MEMORY_ATOMIC.
35689 2015-01-26 Renlin Li <renlin.li@arm.com>
35691 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
35693 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
35696 2015-01-26 Richard Biener <rguenther@suse.de>
35698 PR middle-end/64764
35699 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
35700 combining two BIT_AND_EXPR predicates.
35702 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
35705 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
35707 2015-01-26 Terry Guo <terry.guo@arm.com>
35709 * config/arm/arm.c (arm_file_start): Update the assignment of
35710 Tag_ABI_HardFP_use.
35712 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
35714 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
35716 config/arm/arm.md: Include the new Cortex-A57 model.
35717 (generic_sched): Don't use generic_sched when tuning for
35720 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
35721 Uros Bizjak <ubizjak@gmail.com>
35723 * config/i386/i386.c (get_builtin_code_for_version): Add
35724 support for BMI and BMI2 multiversion functions.
35726 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35728 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
35729 (extract_bit_field): Likewise.
35730 (extract_low_bits): Likewise.
35731 (expand_mult): Likewise.
35732 (expand_mult_highpart_adjust): Likewise.
35734 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
35736 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
35737 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
35738 * config/i386/i386.c (processor_model): Add
35739 M_INTEL_COREI7_BROADWELL.
35740 (arch_names_table): Add "broadwell".
35742 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
35751 * config/sh/sh-protos.h
35752 (sh_extending_set_of_reg::can_use_as_unextended_reg,
35753 sh_extending_set_of_reg::use_as_unextended_reg,
35754 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
35755 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
35756 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
35757 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
35758 (sh_treg_insns): New class.
35759 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
35760 (scope_counter): New class.
35761 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
35762 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
35763 sh_extending_set_of_reg::can_use_as_unextended_reg,
35764 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
35765 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
35766 sh_split_treg_set_expr): New functions.
35767 (addsubcosts): Handle treg_set_expr.
35768 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
35769 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
35770 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
35771 (sh_insn_operands_modified_between_p): Make non-static.
35772 * config/sh/predicates.md (zero_extend_movu_operand): Allow
35773 simple_mem_operand in addition to displacement_mem_operand.
35774 (zero_extend_operand): Don't allow zero_extend_movu_operand.
35775 (treg_set_expr, treg_set_expr_not_const01,
35776 arith_reg_or_treg_set_expr): New predicates.
35777 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
35778 arith_or_int_operand instead of logical_operand. Convert to
35779 insn_and_split. Try to optimize constant operand in splitter.
35780 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
35781 (*tstqi_t_zero): Delete.
35782 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
35783 (tstsi_t_and_not): Delete.
35784 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
35785 Convert to insn_and_split.
35786 (unnamed split, tstsi_t_zero_extract_xor,
35787 tstsi_t_zero_extract_subreg_xor_little,
35788 tstsi_t_zero_extract_subreg_xor_big): Delete.
35789 (*tstsi_t_shift_mask): New insn_and_split.
35790 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
35791 to recombine with surrounding insns when splitting.
35792 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
35793 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
35794 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
35795 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
35796 (*cbranch_div0s: Delete.
35797 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
35798 Try to recombine with surrounding insns when splitting. Add operand
35800 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
35801 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
35802 *addc_r_r_msb, *addc_2r_msb): Delete.
35803 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
35805 (*addc_negreg_t): New insn_and_split.
35806 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
35807 Try to recombine with surrounding insns when splitting.
35808 Add operand order variants.
35809 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
35810 insn_and_split patterns.
35811 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
35812 surrounding insns when splitting.
35813 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
35814 (*rotcl): Likewise. Add zero_extract variant.
35815 (*ashrsi2_31): New insn_and_split.
35816 (*negc): Convert to insn_and_split. Use treg_set_expr.
35817 (*zero_extend<mode>si2_disp_mem): Update comment.
35818 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
35820 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
35821 with surrounding insns when splitting.
35822 (any_treg_expr_to_reg): New insn_and_split.
35823 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
35824 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
35825 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
35826 *zero_extract_2): New single bit zero extract patterns.
35827 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
35828 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
35829 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
35830 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
35832 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
35833 register_operand for set source.
35835 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
35837 * i386.opt (prefetch_sse): New targetsave.
35838 * i386.c (ix86_function_specific_save): Save prefetch_sse.
35839 (ix86_function_specific_restore): Restore prefetch_sse and initialize
35840 ix86_cost/ix86_tune_cost.
35842 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35844 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
35845 Support the JIT by using 0 as the language type.
35847 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
35850 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
35851 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
35852 (mark_regno_live, process_bb_lives): Pass new parameter value to
35853 make_hard_regno_born.
35855 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35857 PR rtl-optimization/63637
35858 PR rtl-optimization/60663
35859 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
35860 if elt->cost is MAX_COST for ASM_OPERANDS.
35861 (find_sets_in_insn): Fix up comment typo.
35862 (cse_insn): Don't set src_volatile for all non-volatile
35863 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
35864 or with "memory" clobber. Set elt->cost to MAX_COST
35865 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
35866 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
35868 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35870 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
35873 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
35875 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
35876 libgcc/config/i386/elf-lib.h.
35878 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35881 * gcc.c (print_configuration): Don't print a blank line at the end
35883 (run_attempt): ... but here unstead.
35885 PR middle-end/64734
35886 * omp-low.c (scan_sharing_clauses): Don't ignore
35887 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
35888 on target data/update constructs.
35890 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
35893 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
35894 (DEBUG_RELOAD): Removed define.
35895 (m32c_limit_reload_class): Enable traces with if DEBUG0.
35896 (m32c_function_arg): Added a type cast.
35897 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
35898 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
35899 * config/m32c/bitops.md (andqi3_16): Likewise.
35900 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
35901 (push_a01_l): Likewise.
35903 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35906 * main.c (main): Construct toplev instances with init_signals=true.
35907 * toplev.c (general_init): Add param "init_signals", and use it to
35908 conditionalize the calls to signal and host_hooks.extra_signals.
35909 (toplev::toplev): Add param "init_signals".
35910 (toplev::main): When invoking general_init, pass m_init_signals
35911 to control whether signal-handlers are installed.
35912 * toplev.h (toplev::toplev): Add param "init_signals".
35913 (toplev::m_init_signals): New field.
35915 2015-01-23 David Malcolm <dmalcolm@redhat.com>
35918 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
35919 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
35920 latter may be affected by the former (e.g. on i686).
35922 2015-01-23 Martin Liska <mliska@suse.cz>
35924 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
35925 false positive during profiledbootstrap.
35927 2015-01-23 Tom de Vries <tom@codesourcery.com>
35930 * lto-opts.c (lto_write_options): Output non-explicit conservative
35932 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
35933 (append_compiler_options): Pass -fopenacc through.
35935 2015-01-23 Tom de Vries <tom@codesourcery.com>
35938 * lto-opts.c (lto_write_options): Output non-explicit conservative
35940 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
35941 (append_compiler_options): Pass -fopenmp through.
35943 2015-01-23 Jakub Jelinek <jakub@redhat.com>
35946 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
35949 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
35950 * diagnostic.def (DK_ICE_NOBT): New kind.
35951 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
35952 like DK_ICE, but never print backtrace.
35953 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
35954 (internal_error_no_backtrace): New function.
35955 * gcc.c (execute): Use internal_error_no_backtrace instead of
35958 2015-01-22 Jeff Law <law@redhat.com>
35961 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
35962 improve code density for small immediate to memory case.
35963 (insv): Better handle bitfield assignments when the field is
35964 being set to all ones.
35965 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
35968 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35969 Jakub Jelinek <jakub@redhat.com>
35971 PR middle-end/64729
35972 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
35973 for !TARGET_LIBC_PROVIDES_SSP version and
35974 -fstack-protector-{all,strong,explicit} otherwise.
35975 * config/freebsd.h (LINK_SSP_SPEC): Handle
35976 -fstack-protector-{strong,explicit}.
35978 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
35979 H.J. Lu <hongjiu.lu@intel.com>
35982 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
35985 2015-01-22 Wei Mi <wmi@google.com>
35987 PR rtl-optimization/64557
35988 * dse.c (record_store): Call get_addr for mem_addr.
35989 (check_mem_read_rtx): Likewise.
35991 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
35993 * fold-const.c (const_binop): Add early return for non-tcc_binary.
35995 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
35997 * toplev.c (init_local_tick): Process the failure when read
35998 fails for random_seed.
36000 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
36001 'pretty_name' to avoid memory overflow.
36003 2015-01-22 Richard Biener <rguenther@suse.de>
36005 PR middle-end/64728
36006 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
36007 abnormal coalescing on undefined SSA names.
36009 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
36013 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
36015 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
36017 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
36019 PR middle-end/63325
36020 * fold-const.c (fold_checksum_tree): Don't include value of
36021 expr->decl_with_vis.symtab_node in the checksum.
36023 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36025 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
36027 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
36030 * gcc.c (insert_comments): New function.
36031 (try_generate_repro): Call it.
36032 (append_text): Removed.
36034 2015-01-22 Richard Biener <rguenther@suse.de>
36036 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
36037 with IL incompatible options. Properly honor user optimize
36040 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
36042 PR rtl-optimization/64682
36043 * combine.c (distribute_notes): When moving a death note for
36044 a register that is set in the new I2, make sure to put it
36045 before that new I2.
36047 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
36049 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
36050 not TARGET_DEFAULT.
36052 2015-01-21 Jakub Jelinek <jakub@redhat.com>
36055 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
36056 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
36057 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
36060 * doc/invoke.texi (-fsanitize=vptr): Document.
36062 PR rtl-optimization/62078
36063 * dse.c: Include cfgcleanup.h.
36064 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
36065 anything call purge_all_dead_edges and cleanup_cfg at the end
36068 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
36070 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
36073 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
36075 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
36078 2015-01-21 David Sherwood <david.sherwood@arm.com>
36079 Tejas Belagod <Tejas.Belagod@arm.com>
36081 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
36082 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
36083 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
36086 2015-01-21 David Sherwood <david.sherwood@arm.com>
36087 Tejas Belagod <Tejas.Belagod@arm.com>
36089 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
36090 (aarch64_reverse_mask): New decls.
36091 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
36092 (insn_count): New mode_attr.
36093 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
36094 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
36095 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
36096 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
36097 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
36098 (aarch64_simd_st4): New patterns.
36099 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
36100 (aarch64_reverse_mask): New functions.
36102 2015-01-21 Alan Hayward <alan.hayward@arm.com>
36104 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
36106 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
36107 addressing modes for BE.
36108 (aarch64_print_operand): Add 'R' specifier.
36109 (aarch64_simd_disambiguate_copy): Delete.
36110 (aarch64_simd_emit_reg_reg_move): New function.
36111 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
36112 in define_splits for structural moves.
36113 (mov<mode>): Use less restrictive predicates.
36114 (*aarch64_mov<mode>): Simplify and only allow for LE.
36115 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
36117 2015-01-21 Alan Hayward <alan.hayward@arm.com>
36119 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
36121 2015-01-21 Richard Henderson <rth@redhat.com>
36124 * ccmp.c (used_in_cond_stmt_p): Remove.
36125 (expand_ccmp_expr): Don't use it.
36127 2015-01-21 Nick Clifton <nickc@redhat.com>
36129 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
36132 2015-01-21 Richard Biener <rguenther@suse.de>
36134 PR middle-end/64313
36135 * tree-core.h (builtin_info, builtin_info_type): Turn from
36136 an object with two arrays into an array of an object with
36137 decl and two flags, implicit_p and declared_p.
36138 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
36139 set_builtin_decl, set_builtin_decl_implicit_p,
36140 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
36141 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
36142 * builtins.c (builtin_info): Adjust.
36143 * gimplify.c (gimplify_addr_expr): References to builtins
36144 that have been declared by the user makes them eligible for
36145 use by the compiler. Call set_builtin_decl_implicit_p on them.
36147 2015-01-20 Jeff Law <law@redhat.com>
36150 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
36151 allow pc-relative addresses in operand predicates or constraints.
36153 2015-01-21 Bin Cheng <bin.cheng@arm.com>
36155 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
36156 neon on aarch32 processors for stringops.
36158 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36161 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
36163 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36166 * ipa-inline.c: Include lto-streamer.h
36167 (report_inline_failed_reason): Output source file differences and
36168 flags on optimization/target node mismatch.
36169 (can_inline_edge_p): Consider caller to be the outer inline function;
36170 be less restrictive about matching opimize and optimize_size attributes.
36171 (inline_account_function_p): Break out from ...
36172 (inline_small_functions): ... here.
36173 * ipa-inline-transform.c (clone_inlined_nodes): Use
36174 inline_account_function_p.
36175 (inline_call): Use optimize attribution; use inline_account_function_p.
36176 (inline_transform): Use opt_for_fn.
36177 * ipa-inline.h (inline_account_function_p): Declare.
36179 2015-01-20 Jakub Jelinek <jakub@redhat.com>
36182 * dwarf2out.c (decl_piece_node): Don't put bitsize into
36183 mode if bitsize <= 0.
36184 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
36185 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
36186 sizes and positions.
36188 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
36190 * config/nios2/nios2.c (nios2_asm_file_end): Implement
36191 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
36193 (TARGET_ASM_FILE_END): Define.
36195 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36197 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
36198 (struct tune_params): Use the enum.
36199 * arm.c (arm_*_tune): Update.
36200 (arm_option_override): Update.
36202 2015-01-20 Richard Biener <rguenther@suse.de>
36205 * ipa-reference.c (add_static_var): Inline ...
36206 (analyze_function): ... here after splitting out from ...
36207 (is_proper_for_analysis): ... this.
36209 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
36212 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
36213 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
36214 replace the conditional with it's true branch.
36215 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
36216 (arm_lra_p): Remove.
36218 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
36220 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
36222 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36224 * config/tilegx/mul-tables.c: Move symtab.h include after
36225 coretypes.h include.
36226 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
36227 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
36228 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
36229 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
36230 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
36232 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
36236 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
36238 PR rtl-optimization/64081
36239 * loop-iv.c (def_pred_latch_p): New function.
36240 (latch_dominating_def): Allow specific cases with non-single
36242 (iv_get_reaching_def): Likewise.
36243 (check_complex_exit_p): New function.
36244 (check_simple_exit): Use check_complex_exit_p to allow certain cases
36245 with exits not executing on any iteration.
36247 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36250 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
36251 to set branch cost.
36253 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36256 * i386.c (gate): Check flag_expensive_optimizations and
36258 (ix86_option_override_internal): Drop optimize_size condition
36259 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
36260 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
36261 MASK_PREFER_AVX128.
36262 (ix86_avx256_split_vector_move_misalign,
36263 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
36264 * sse.md (all uses of TARGET_PREFER_AVX128): Add
36265 optimize_insn_for_speed_p check.
36267 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
36269 * config/mips/mips.h (FP_ASM_SPEC): New define.
36270 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
36273 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
36276 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
36277 nullptr for insn when reaching the first insn.
36278 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
36279 (sh_insn_operands_modified_between_p): Add nullptr check.
36280 (sh_find_extending_set_of_reg): Fix log message. Don't accept
36281 sign extending mem load if the insn contains any UNSPEC or
36284 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36286 * params.def (inline-unit-growth): Drop to 15%.
36287 * invoke.texi (inline-unit-growth): Document change.
36289 2015-01-19 Martin Liska <mliska@suse.cz>
36292 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
36293 function for second argument of OBJ_TYPE_REF.
36295 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36298 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
36299 whether function is an alias.
36301 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
36303 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
36306 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
36308 PR rtl-optimization/64671
36309 * lra-remat.c (operand_to_remat): Don't consider jump and call
36312 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
36315 * config/rs6000/default64.h: Include rs6000-cpus.def.
36316 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
36317 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
36318 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
36320 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
36322 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
36323 pseudo-op to specify assembler dialect.
36325 2015-01-19 Martin Liska <mliska@suse.cz>
36328 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
36329 Handle safe potentially removed nodes during filtering.
36331 2015-01-19 Martin Liska <mliska@suse.cz>
36333 * doc/extend.texi (no_icf): Add new attribute description.
36334 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
36335 where the pass attempts to merge a function with no_icf attribute.
36337 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36340 * doc/md.texi (ARM Options): Document register constraints.
36342 2015-01-19 Jiong Wang <jiong.wang@arm.com>
36343 Andrew Pinski <apinski@cavium.com>
36346 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
36347 (ashl<mode>3): Don't expand if operands[2] is not constant.
36349 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36352 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
36353 Match xor-and-xor RTL pattern.
36355 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
36357 PR rtl-optimization/64081
36358 * loop-iv.c (def_pred_latch_p): New function.
36359 (latch_dominating_def): Allow specific cases with non-single
36361 (iv_get_reaching_def): Likewise.
36362 (check_complex_exit_p): New function.
36363 (check_simple_exit): Use check_complex_exit_p to allow certain cases
36364 with exits not executing on any iteration.
36366 2015-01-19 Jakub Jelinek <jakub@redhat.com>
36368 * common.opt (fgraphite): Fix a typo.
36370 2015-01-19 Felix Yang <felix.yang@huawei.com>
36372 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
36374 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
36375 uminp, smax_nanp, smin_nanp): New builtins.
36376 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
36377 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
36378 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
36379 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
36380 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
36381 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
36382 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
36383 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
36384 vpminnms_f32): Rewrite using builtin functions.
36386 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
36389 * omp-low.c (offload_symbol_decl): Remove variable.
36390 (get_offload_symbol_decl): Remove function.
36391 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
36392 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
36393 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
36394 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
36395 BUILT_IN_GOACC_UPDATE don't pass it at all.
36397 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
36399 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
36402 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
36404 * ipa-chkp.c (chkp_produce_thunks): Add early param
36405 to split thunks production into two passes. Keep
36406 'always_inline' function bodies after the first pass.
36407 (pass_data_ipa_chkp_early_produce_thunks): New.
36408 (pass_ipa_chkp_early_produce_thunks): New.
36409 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
36410 chkp_produce_thunks signature.
36411 (make_pass_ipa_chkp_early_produce_thunks): New.
36412 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
36413 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
36414 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
36416 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36418 * cgraph.c (cgraph_node::dump): Dump profile flags.
36420 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
36423 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
36424 reg appear first in the parallel.
36426 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36428 * ipa-reference.c (set_reference_optimization_summary,
36429 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
36431 (ignore_module_statics): New static var.
36432 (propagate_bits): If ipa-reference is disabled, do not look into local
36434 (analyze_function): Disable analysis when ipa_reference is disabled.
36435 (generate_summary): Do not dump when reference is disabled;
36436 collect vars accessed from functions with ipa-reference disabled.
36437 (get_read_write_all_from_node): When ipa-reference is disabled, use the
36439 (gate): Enable for LTO.
36440 (ignore_edge_p): New function.
36441 (propagate): Skip functions w/o ipa-reference analysis.
36442 * optc-save-gen.awk: Handle optimize_debug correctly.
36443 * opth-gen.awk: Likewise.
36444 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
36445 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
36446 fira-share-save-slots, fira-share-spill-slots,
36447 fmodulo-sched-allow-regmoves, fpartial-inlining,
36448 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
36449 ftracer, ftree-parallelize-loops, fassociative-math,
36450 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
36452 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
36453 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
36455 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
36458 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
36461 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
36463 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
36465 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
36467 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
36468 Remove duplicate option listings.
36470 2015-01-18 Felix Yang <felix.yang@huawei.com>
36472 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
36473 (autofdo_source_profile::get_callsite_total_count,
36474 function_instance::get_function_instance_by_decl,
36475 string_table::get_index, string_table::get_index_by_decl,
36476 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
36477 Fix comment typos. Reformatting and minor code rearrangement.
36479 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36481 * config/rs6000/rs6000.md (probe_stack): Delete.
36482 (probe_stack_address): New.
36484 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36486 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
36487 to test for 32-bit ABIs, not !TARGET_POWERPC64.
36489 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
36491 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
36492 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
36493 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
36495 (rs6000_libcall_value): Use the new function.
36497 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
36499 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
36501 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
36503 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
36504 implement a more precise life analysis for it during backward scan.
36506 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
36508 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
36510 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
36512 PR rtl-optimization/52773
36513 * calls.c (emit_library_call_value): When pushing arguments use
36514 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
36515 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
36516 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
36518 2015-01-17 Jeff Law <law@redhat.com>
36520 PR rtl-optimization/32790
36521 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
36522 not ZERO_EXTEND in SET_DESTs.
36524 2015-01-17 Alan Modra <amodra@gmail.com>
36526 * cprop.c (do_local_cprop): Revert last change.
36528 2015-01-16 DJ Delorie <dj@redhat.com>
36529 Nick Clifton <nickc@redhat.com>
36531 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
36532 (addhi3_real): Likewise. Fix [HL+0] syntax.
36533 (subqi3_real): Likewise.
36534 (subhi3_real): Likewise.
36535 (cbranchqi4_real): Likewise. Allow saddr,#imm.
36536 (cbranchhi4_real): Likewise.
36537 (cbranchhi4_real_inverted): Likewise.
36538 (cbranchsi4_real_lt): Likewise.
36539 (cbranchsi4_real_ge): Likewise.
36540 (cbranchsi4_real_ge): Likewise.
36541 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
36542 (sub<mode>3_virt): Likewise.
36543 (cbranchqi4_virt): Likewise.
36544 (cbranchhi4_virt): Likewise.
36545 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
36546 always use '[reg+imm]' even when imm is zero.
36547 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
36548 (rl78_general_operand): New.
36549 (rl78_nonimmediate_operand): New.
36550 (rl78_nonfar_operand): Use them.
36551 (rl78_nonfar_nonimm_operand): Likewise.
36552 (rl78_stack_based_mem): Fix.
36553 * config/rl78/constraints.md (Ibqi): New.
36558 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
36559 (iorqi3): Likewise.
36560 (xorqi3): Likewise.
36561 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
36563 * config/rl78/constrains (Qs8): New constraint.
36564 * config/rl78/rl78.c (rl78_flags_already_set): New function.
36565 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
36566 * config/rl78/rl78-real.md (update_Z): New attribute.
36567 Update patterns to set it.
36568 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
36569 shorter compare and branch sequence can be used.
36570 (cbranchhi4_real): Likewise.
36571 (cbranchhi4_real_inverted): Likewise.
36573 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
36574 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
36576 * config/rl78/rl78.c (rl78_get_name_encoding): New.
36577 (rl78_option_override): Allow -mes0 only if C.
36578 (characterize_address): Support subregs of symbol_refs.
36579 (rl78_addr_space_address_mode): Move. Add __near.
36580 (rl78_far_p): Likewise.
36581 (rl78_addr_space_pointer_mode): Likewise.
36582 (rl78_as_legitimate_address): Likewise.
36583 (rl78_addr_space_subset_p): Likewise.
36584 (rl78_addr_space_convert): Likewise.
36585 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
36586 symbols with -mes0.
36587 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
36589 (rl78_alloc_physical_registers_op1): Change logic to prefer
36590 symbol[BC] addressing.
36591 (frodata_section): New.
36592 (rl78_asm_init_sections): Initialize it.
36593 (rl78_select_section): Put __far readonly symbols in .frodata.
36594 (rl78_make_type_far): New.
36595 (rl78_insert_attributes): Force all readonly symbols to be
36597 (rl78_asm_out_integer): New.
36598 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
36599 * config/rl78/rl78.opt (-mes0): New.
36601 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
36602 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
36603 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
36604 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
36605 (rl78_saddr_p): New.
36606 (rl78_output_aligned_common): New.
36607 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
36608 (rl78_handle_saddr_attribute): New.
36609 (rl78_handle_naked_attribute): New.
36610 (rl78_attribute_table): Add saddr.
36611 (rl78_print_operand_1): Don't print '!' on saddr operands.
36612 (rl78_print_operand_1): Strip encodings.
36614 (rl78_strip_name_encoding): New.
36615 (rl78_attrlist_to_encoding): New.
36616 (rl78_encode_section_info): New.
36617 (rl78_asm_init_sections): New.
36618 (rl78_select_section): New.
36619 (rl78_output_labelref): New.
36620 (rl78_output_aligned_common): New.
36621 (rl78_asm_out_integer): New.
36622 (rl78_asm_ctor_dtor): New.
36623 (rl78_asm_constructor): New.
36624 (rl78_asm_destructor): New.
36626 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
36627 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
36628 (transcode_memory_rtx): Update.
36629 (rl78_expand_epilogue): Use A_REG instead of 0.
36631 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36633 * config/arm/arm-protos.h (struct tune_params): New field
36634 sched_autopref_queue_depth.
36635 * config/arm/arm.c (sched-int.h): Include header.
36636 (arm_first_cycle_multipass_dfa_lookahead_guard,)
36637 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
36638 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
36639 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
36640 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
36641 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
36642 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
36643 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
36644 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
36645 * config/arm/t-arm (arm.o): Update.
36646 * haifa-sched.c (update_insn_after_change): Update.
36647 (rank_for_schedule): Use auto-prefetcher model, if requested.
36648 (autopref_multipass_init): New static function.
36649 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
36650 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
36651 variable for debug dumps.
36652 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
36653 (autopref_multipass_dfa_lookahead_guard): New global function that
36654 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
36655 (init_h_i_d): Update.
36656 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
36657 * sched-int.h (enum autopref_multipass_data_status): New const enum.
36658 (autopref_multipass_data_): Structure for auto-prefetcher data.
36659 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
36660 (struct _haifa_insn_data:autopref_multipass_data): New field.
36661 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
36662 (autopref_multipass_dfa_lookahead_guard): Declare.
36664 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36666 * rtlanal.c (get_base_term): Handle SCRATCH.
36668 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
36670 * config/aarch64/aarch64.c
36671 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
36672 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36674 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
36675 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
36677 2015-01-17 Alan Modra <amodra@gmail.com>
36679 * cprop.c (do_local_cprop): Disallow replacement of fixed
36682 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36685 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
36688 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
36690 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
36691 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
36693 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36695 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
36696 * config/arm/thumb1.md: ... Here.
36698 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36700 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
36701 TImode for TARGET_32BIT.
36703 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36705 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
36706 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
36708 (rs6000_abi_word_mode): New function.
36710 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36712 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
36713 instead of UNITS_PER_WORD to describe the size of stack slots.
36715 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36717 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
36718 as rs6000_promote_function_mode. Move comment to there.
36719 (rs6000_promote_function_mode): New function.
36721 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
36723 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
36724 -mpowerpc64 is active.
36726 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
36728 PR middle-end/64353
36729 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
36732 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
36734 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
36735 introduced in revision 219724.
36737 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36738 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
36741 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
36742 destination is not a GP reg.
36743 (*movdi_aarch64): Likewise.
36745 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
36748 * config/rs6000/default64.h: Revert ISA change.
36750 2015-01-16 Richard Biener <rguenther@suse.de>
36752 PR middle-end/64614
36753 * tree-ssa-uninit.c: Include tree-cfg.h.
36754 (MAX_SWITCH_CASES): New define.
36755 (convert_control_dep_chain_into_preds): Handle switch statements.
36756 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
36757 (normalize_one_pred_1): Do not split bit-manipulations.
36760 2015-01-16 Richard Biener <rguenther@suse.de>
36762 PR tree-optimization/64568
36763 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
36764 complex load rewriting for TARGET_MEM_REFs.
36766 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
36768 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
36770 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
36773 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
36775 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
36776 (aarch64_lra_p): Remove.
36778 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
36781 * ipa-chkp.h (chkp_instrumentable_p): New.
36782 * ipa-chkp.c: Include tree-inline.h.
36783 (chkp_instrumentable_p): New.
36784 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
36785 Fix processing of not instrumentable functions.
36786 (chkp_versioning): Use chkp_instrumentable_p. Warn about
36787 not instrumentable functions.
36788 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
36789 chkp_instrumentable_p.
36790 * tree-inline.h (copy_forbidden): New.
36791 * tree-inline.c (copy_forbidden): Not static anymore.
36793 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
36795 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
36798 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
36800 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
36801 type OP_OUT to OP_INOUT.
36803 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
36805 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
36806 (high x) y) to y if x and y have the same base.
36808 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
36810 * config/arm/cortex-a57.md: New.
36811 * config/aarch64/aarch64.md: Include it.
36812 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
36813 * config/aarch64/aarch64-tune.md: Regenerate.
36815 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
36818 * ccmp.c (expand_ccmp_next): New function.
36819 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
36820 and compare insn sequence.
36821 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
36822 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
36823 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
36824 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
36825 (*ccmp_ior): Changed to ccmp_ior<mode>.
36826 (cmp<mode>): New pattern.
36827 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
36829 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
36831 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
36833 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
36834 _mm256_bsrli_epi128): New.
36835 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
36837 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36839 * expmed.c (store_bit_field_using_insv): Improve warning message.
36840 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
36842 2015-01-15 Jiong Wang <jiong.wang@arm.com>
36844 PR rtl-optimization/64011
36845 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
36846 there is partial overflow.
36848 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36850 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
36852 (nds32_expand_epilogue_v3pop): Likewise.
36853 * config/nds32/nds32.md (sibcall): Define this for sibling call
36855 (sibcall_register): Likewise.
36856 (sibcall_immediate): Likewise.
36857 (sibcall_value): Likewise.
36858 (sibcall_value_register): Likewise.
36859 (sibcall_value_immediate): Likewise.
36860 (sibcall_epilogue): Likewise.
36861 (epilogue): Pass false to indicate this is not a sibcall epilogue.
36862 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
36863 (nds32_expand_epilogue_v3pop): Likewise.
36865 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36867 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
36868 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
36869 (return_internal): New.
36870 (return): Define this named pattern.
36871 (simple_return): Define this named pattern.
36872 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
36873 pattern instead of unspec_volatile_func_return.
36874 (nds32_expand_epilogue_v3pop): Likewise.
36875 (nds32_can_use_return_insn): New function.
36877 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36879 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
36880 * config/nds32/nds32.md (pop25return): New.
36881 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
36882 pop25return pattern.
36884 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36886 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
36887 -mforbid-fp-as-gp, and -mex9 options.
36889 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
36891 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
36892 remove -mgp-direct option.
36894 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36896 * doc/invoke.texi (--param early-inlining-insns): Update default value.
36897 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
36899 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36901 * ipa-inline.c (inline_small_functions): Work around hints
36904 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
36907 * doc/invoke.texi (Option Summary): Document new Nios II
36909 (Nios II Options): Likewise.
36910 * config/nios2/nios2.opt: Add -mgpopt= option support.
36911 Modify existing -mgpopt and -mno-gpopt options to be aliases.
36912 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
36913 * config/nios2/nios2.c (nios2_option_override): Adjust
36914 -mgpopt defaulting.
36915 (nios2_in_small_data_p): Return true for explicit small data
36916 sections even with -G0.
36917 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
36920 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
36923 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
36925 (inline_call): Fix removal of aliases.
36927 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36929 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
36930 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
36931 * opts.c (common_handle_option): Add -fsanitize=vptr.
36932 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
36933 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
36934 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
36935 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
36936 (ubsan_expand_vptr_ifn): New prototype.
36937 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
36938 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
36939 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
36940 expand_LOOP_VECTORIZED): Make argument nameless, remove
36942 (expand_UBSAN_VPTR): New function.
36943 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
36945 (UBSAN_VPTR): New internal function.
36946 * sanopt.c (tree_map_traits): Renamed to ...
36947 (sanopt_tree_map_traits): ... this.
36948 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
36949 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
36950 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
36951 (maybe_optimize_ubsan_vptr_ifn): New function.
36952 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
36953 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
36955 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
36956 internal calls like pure functions for aliasing, even when they
36957 have other side-effects that prevent making them ECF_PURE.
36958 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
36959 (ubsan_expand_vptr_ifn): New function.
36961 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
36963 PR rtl-optimization/64110
36964 * stmt.c (parse_output_constraint): Process '^' and '$'.
36965 (parse_input_constraint): Ditto.
36966 * lra-constraints.c (process_alt_operands): Process the new
36968 * ira-costs.c (record_reg_classes): Process the new constraint
36970 * genoutput.c (indep_constraints): Add '^' and '$'.
36971 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
36972 * doc/md.texi: Add description of the new constraints.
36974 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
36975 Bernd Schmidt <bernds@codesourcery.com>
36976 Cesar Philippidis <cesar@codesourcery.com>
36977 James Norris <jnorris@codesourcery.com>
36978 Tom de Vries <tom@codesourcery.com>
36979 Ilmir Usmanov <i.usmanov@samsung.com>
36980 Dmitry Bocharnikov <dmitry.b@samsung.com>
36981 Evgeny Gavrin <e.gavrin@samsung.com>
36982 Jakub Jelinek <jakub@redhat.com>
36984 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
36985 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
36986 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
36987 New function types.
36988 * builtins.c: Include "gomp-constants.h".
36989 (expand_builtin_acc_on_device): New function.
36990 (expand_builtin, is_inexpensive_builtin): Handle
36991 BUILT_IN_ACC_ON_DEVICE.
36992 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
36994 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
36996 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
36997 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
36998 i386/intelmic-offload.h.
36999 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
37000 to libgomp and its dependencies.
37001 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
37002 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
37003 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
37004 * config/ia64/hpux.h (LIB_SPEC): Likewise.
37005 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
37006 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
37007 * doc/generic.texi: Update for OpenACC changes.
37008 * doc/gimple.texi: Likewise.
37009 * doc/invoke.texi: Likewise.
37010 * doc/sourcebuild.texi: Likewise.
37011 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
37012 GF_OMP_FOR_KIND_OACC_LOOP.
37013 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
37014 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
37015 GF_OMP_TARGET_KIND_OACC_UPDATE,
37016 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
37018 * gimple.c: Update comments for OpenACC changes.
37019 * gimple.def: Likewise.
37020 * gimple.h: Likewise.
37021 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
37022 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
37023 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
37024 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
37025 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
37027 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
37028 * gimplify.c: Include "gomp-constants.h".
37029 Update comments for OpenACC changes.
37030 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
37031 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
37032 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
37033 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
37034 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
37035 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
37036 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
37037 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
37038 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
37040 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
37041 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
37042 OMP_CLAUSE_SET_MAP_KIND.
37043 (gimplify_oacc_cache): New function.
37044 (gimplify_omp_for): Handle OACC_LOOP.
37045 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
37047 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
37048 OACC_EXIT_DATA, OACC_UPDATE.
37049 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
37050 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
37051 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
37052 (gimplify_body): Consider flag_openacc next to flag_openmp.
37053 * lto-streamer-out.c: Include "gomp-constants.h".
37054 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
37055 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
37056 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
37057 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
37058 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
37059 (BUILT_IN_ACC_ON_DEVICE): New builtins.
37060 * omp-low.c: Include "gomp-constants.h".
37061 Update comments for OpenACC changes.
37062 (struct omp_context): Add reduction_map, gwv_below, gwv_this
37064 (extract_omp_for_data, use_pointer_for_field, install_var_field)
37065 (new_omp_context, delete_omp_context, scan_sharing_clauses)
37066 (create_omp_child_function, scan_omp_for, scan_omp_target)
37067 (check_omp_nesting_restrictions, lower_reduction_clauses)
37068 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
37069 Update for OpenACC changes.
37070 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
37071 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
37072 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
37073 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
37074 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
37075 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
37077 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
37078 Handle GF_OMP_FOR_KIND_OACC_LOOP.
37079 (expand_omp_target, lower_omp_target): Handle
37080 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
37081 GF_OMP_TARGET_KIND_OACC_UPDATE,
37082 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
37083 GF_OMP_TARGET_KIND_OACC_DATA.
37084 (pass_expand_omp::execute, execute_lower_omp)
37085 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
37087 (offload_symbol_decl): New variable.
37088 (oacc_get_reduction_array_id, oacc_max_threads)
37089 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
37090 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
37091 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
37092 (oacc_gimple_assign, oacc_initialize_reduction_data)
37093 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
37095 (is_targetreg_ctx): Remove function.
37096 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
37097 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
37098 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
37099 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
37100 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
37101 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
37102 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
37103 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
37104 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
37105 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
37106 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
37107 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
37108 * tree-core.h: Update comments for OpenACC changes.
37109 (enum omp_clause_map_kind): Remove.
37110 (struct tree_omp_clause): Change type of map_kind member from enum
37111 omp_clause_map_kind to unsigned char.
37112 * tree-inline.c: Update comments for OpenACC changes.
37113 * tree-nested.c: Likewise. Include "gomp-constants.h".
37114 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
37115 (convert_tramp_reference_stmt, convert_gimple_call): Update for
37116 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
37117 OMP_CLAUSE_SET_MAP_KIND.
37118 * tree-pretty-print.c: Include "gomp-constants.h".
37119 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
37120 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
37121 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
37122 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
37123 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
37124 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
37125 instead of OMP_CLAUSE_MAP_*.
37126 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
37127 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
37128 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
37129 * tree-streamer-in.c: Include "gomp-constants.h".
37130 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
37131 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
37132 * tree-streamer-out.c: Include "gomp-constants.h".
37133 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
37135 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
37136 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
37137 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
37138 * tree.c (omp_clause_num_ops): Update accordingly.
37139 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
37141 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
37142 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
37143 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
37144 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
37145 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
37146 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
37147 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
37148 (OMP_CLAUSE_SET_MAP_KIND): New macro.
37149 * varpool.c (varpool_node::get_create): Consider flag_openacc next
37151 * config/i386/intelmic-offload.h: New file.
37152 * config/nvptx/offload.h: Likewise.
37154 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37156 * explow.h: Remove duplicate contents.
37157 * dojump.h: Likewise.
37159 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
37161 * arm.c (arm_xgene_tune): Add default initializer for instruction
37164 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
37168 * ipa.c (symbol_table::remove_unreachable_nodes):
37169 Do not put abstract origins into boundary.
37171 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
37173 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
37174 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
37176 2015-01-15 Steve Ellcey <sellcey@mips.com>
37178 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
37179 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
37180 builtins.def, and chkp-builtins.def.
37182 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
37184 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
37187 2015-01-15 Richard Biener <rguenther@suse.de>
37189 PR tree-optimization/61743
37190 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
37191 information on PHIs for some simple cases.
37193 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37195 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
37197 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
37198 * config/arm/arm-cores.def (xgene1): New entry.
37199 * config/arm/arm-tables.opt: Regenerate.
37200 * config/arm/arm-tune.md: Regenerate.
37201 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
37203 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
37205 * tree-if-conv.c: Include hash-map.h.
37206 (aggressive_if_conv): New variable.
37207 (fold_build_cond_expr): Add simplification of non-zero condition.
37208 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
37209 destination block is not always executed.
37210 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
37211 than two predecessors if AGGRESSIVE_IF_CONV is true.
37212 (if_convertible_stmt_p): Fix commentary.
37213 (all_preds_critical_p): New function.
37214 (has_pred_critical_p): New function.
37215 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
37216 BB can have more than two predecessors and all incoming edges can be
37218 (predicate_bbs): Skip predication for loop exit block, use build2_loc
37219 to compute predicate for true edge.
37220 (find_phi_replacement_condition): Delete this function.
37221 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
37222 Allow interchange PHI arguments if EXTENDED is false.
37223 Change check that block containing reduction statement candidate
37224 is predecessor of phi-block since phi may have more than two arguments.
37225 (phi_args_hash_traits): New helper structure.
37226 (struct phi_args_hash_traits): New type.
37227 (phi_args_hash_traits::hash): New function.
37228 (phi_args_hash_traits::equal_keys): New function.
37229 (gen_phi_arg_condition): New function.
37230 (predicate_scalar_phi): Add handling of phi nodes with more than two
37231 arguments, delete COND and TRUE_BB arguments, insert body of
37232 find_phi_replacement_condition to predicate ordinary phi nodes.
37233 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
37234 delete call of find_phi_replacement_condition and invoke
37235 predicate_scalar_phi with two arguments.
37236 (insert_gimplified_predicates): Add assert that non-predicated block
37237 don't have statements to insert.
37238 (ifcvt_split_critical_edges): New function.
37239 (ifcvt_split_def_stmt): Likewise.
37240 (ifcvt_walk_pattern_tree): Likewise.
37241 (stmt_is_root_of_bool_pattern): Likewise.
37242 (ifcvt_repair_bool_pattern): Likewise.
37243 (ifcvt_local_dce): Likewise.
37244 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
37245 is copy of inner or outer loop force_vectorize field, invoke
37246 ifcvt_split_critical_edges, ifcvt_local_dce and
37247 ifcvt_repair_bool_pattern for aggressive if-conversion.
37249 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
37251 * config/aarch64/aarch64.md: Include xgene1.md.
37252 * config/aarch64/xgene1.md: New file.
37254 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
37256 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
37257 xgene1 (APM XGene-1) core definition.
37258 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
37259 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
37260 * doc/invoke.texi: Document -mcpu=xgene1.
37262 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
37264 * dojump.h: New header file.
37265 * explow.h: Likewise.
37266 * expr.h: Remove includes.
37267 Move expmed.c prototypes to expmed.h.
37268 Move dojump.c prototypes to dojump.h.
37269 Move alias.c prototypes to alias.h.
37270 Move explow.c prototypes to explow.h.
37271 Move calls.c prototypes to calls.h.
37272 Move emit-rtl.c prototypes to emit-rtl.h.
37273 Move varasm.c prototypes to varasm.h.
37274 Move stmt.c prototypes to stmt.h.
37275 (saved_pending_stack_adjust): Move to dojump.h.
37276 (adjust_address): Move to explow.h.
37277 (adjust_address_nv): Move to emit-rtl.h.
37278 (adjust_bitfield_address): Likewise.
37279 (adjust_bitfield_address_size): Likewise.
37280 (adjust_bitfield_address_nv): Likewise.
37281 (adjust_automodify_address_nv): Likewise.
37282 * explow.c (expr_size): Move to expr.c.
37283 (int_expr_size): Likewise.
37284 (tree_expr_size): Likewise.
37285 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37286 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37287 * genemit.c (main): Generate includes statistics.h, real.h,
37288 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
37290 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
37291 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
37292 explow.h, emit-rtl.h, stmt.h.
37293 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
37294 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
37295 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
37296 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
37297 emit-rtl.h, varasm.h, stmt.h.
37298 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
37299 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
37300 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
37301 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
37302 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
37303 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
37304 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
37305 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
37306 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
37307 tm.h tree.h varasm.h vec.h wide-int.h.
37308 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37309 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37310 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
37311 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
37312 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
37313 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
37314 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
37315 * loop-iv.c: Likewise.
37316 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
37317 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
37318 statistics.h stmt.h tree.h varasm.h wide-int.h.
37319 * lra-constraints.c: Likewise.
37320 * lra-eliminations.c: Likewise.
37321 * lra-lives.c: Likewise.
37322 * lra-remat.c: Likewise.
37323 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37324 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
37325 statistics.h stmt.h tree.h varasm.h wide-int.h.
37326 * hw-doloop.c: Likewise.
37327 * ira-color.c: Likewise.
37328 * ira-emit.c: Likewise.
37329 * loop-doloop.c: Likewise.
37330 * loop-invariant.c: Likewise.
37331 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37332 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
37333 statistics.h stmt.h tree.h varasm.h wide-int.h.
37334 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
37335 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
37336 statistics.h stmt.h tree.h varasm.h wide-int.h.
37337 * combine-stack-adj.c: Likewise.
37340 * ifcvt.c: Likewise.
37341 * ira-costs.c: Likewise.
37342 * jump.c: Likewise.
37343 * lra-coalesce.c: Likewise.
37344 * lra-spills.c: Likewise.
37345 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37346 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
37347 stmt.h varasm.h wide-int.h.
37348 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
37349 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37351 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
37352 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
37353 statistics.h stmt.h varasm.h wide-int.h.
37354 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
37355 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
37356 varasm.h wide-int.h.
37357 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
37358 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37359 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
37360 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
37361 statistics.h stmt.h.
37362 * config/tilepro/tilepro.c: Likewise.
37363 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
37364 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
37365 * config/pdp11/pdp11.c: Likewise.
37366 * config/xtensa/xtensa.c: Likewise.
37367 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
37368 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
37370 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37371 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
37372 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
37373 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37374 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
37375 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
37376 * rtl-chkp.c: Likewise.
37377 * tree-chkp-opt.c: Likewise.
37378 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
37379 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
37380 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
37381 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37382 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37383 statistics.h stmt.h.
37384 * tree-vect-data-refs.c: Likewise.
37385 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
37386 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37387 rtl.h statistics.h stmt.h varasm.h.
37388 * internal-fn.c: Likewise.
37389 * ipa-icf-gimple.c: Likewise.
37390 * lto-section-out.c: Likewise.
37391 * tree-data-ref.c: Likewise.
37392 * tree-nested.c: Likewise.
37393 * tree-outof-ssa.c: Likewise.
37394 * tree-predcom.c: Likewise.
37395 * tree-pretty-print.c: Likewise.
37396 * tree-scalar-evolution.c: Likewise.
37397 * tree-ssa-strlen.c: Likewise.
37398 * tree-vect-loop.c: Likewise.
37399 * tree-vect-patterns.c: Likewise.
37400 * tree-vect-slp.c: Likewise.
37401 * tree-vect-stmts.c: Likewise.
37402 * tsan.c: Likewise.
37403 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37404 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
37406 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
37407 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37408 statistics.h stmt.h varasm.h.
37409 * loop-unroll.c: Likewise.
37410 * ubsan.c: Likewise.
37411 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
37412 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
37414 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37415 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
37416 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
37417 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37418 statistics.h stmt.h.
37419 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
37420 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
37421 statistics.h stmt.h varasm.h.
37422 * gimple-match-head.c: Likewise.
37423 * lto-cgraph.c: Likewise.
37424 * lto-section-in.c: Likewise.
37425 * lto-streamer-in.c: Likewise.
37426 * lto-streamer-out.c: Likewise.
37427 * tree-affine.c: Likewise.
37428 * tree-cfg.c: Likewise.
37429 * tree-cfgcleanup.c: Likewise.
37430 * tree-if-conv.c: Likewise.
37431 * tree-into-ssa.c: Likewise.
37432 * tree-ssa-alias.c: Likewise.
37433 * tree-ssa-copyrename.c: Likewise.
37434 * tree-ssa-dse.c: Likewise.
37435 * tree-ssa-forwprop.c: Likewise.
37436 * tree-ssa-live.c: Likewise.
37437 * tree-ssa-math-opts.c: Likewise.
37438 * tree-ssa-pre.c: Likewise.
37439 * tree-ssa-sccvn.c: Likewise.
37440 * tree-tailcall.c: Likewise.
37441 * tree-vect-generic.c: Likewise.
37442 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37443 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
37444 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37445 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
37446 * varasm.c: Likewise.
37447 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37448 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
37450 * init-regs.c: Likewise.
37452 * omp-low.c: Likewise.
37453 * stack-ptr-mod.c: Likewise.
37454 * tree-ssa-reassoc.c: Likewise.
37455 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37456 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
37458 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37459 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
37460 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37461 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
37462 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37463 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
37464 * tree-ssa-phiopt.c: Likewise.
37465 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37466 fixed-value.h hashtab.h real.h statistics.h stmt.h.
37467 * config/fr30/fr30.c: Likewise.
37468 * config/frv/frv.c: Likewise.
37469 * expr.c: Likewise.
37470 * final.c: Likewise.
37471 * optabs.c: Likewise.
37472 * passes.c: Likewise.
37473 * simplify-rtx.c: Likewise.
37474 * stmt.c: Likewise.
37475 * toplev.c: Likewise.
37476 * var-tracking.c: Likewise.
37477 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37478 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37479 * lower-subreg.c: Likewise.
37480 * postreload-gcse.c: Likewise.
37482 * reginfo.c: Likewise.
37483 * store-motion.c: Likewise.
37484 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37485 fixed-value.h hashtab.h real.h stmt.h varasm.h.
37486 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37487 fixed-value.h hashtab.h statistics.h stmt.h.
37488 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37489 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
37490 * except.c: Likewise.
37491 * explow.c: Likewise.
37492 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37493 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
37495 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37496 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
37497 * tree-ssa-structalias.c: Likewise.
37498 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37499 fixed-value.h insn-config.h real.h statistics.h.
37500 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37501 fixed-value.h insn-config.h real.h statistics.h stmt.h.
37502 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37503 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37504 * cfgbuild.c: Likewise.
37505 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37506 fixed-value.h real.h rtl.h statistics.h stmt.h.
37507 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37508 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37509 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37510 fixed-value.h real.h statistics.h stmt.h.
37511 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
37512 fixed-value.h real.h statistics.h stmt.h varasm.h.
37513 * cprop.c: Likewise.
37514 * modulo-sched.c: Likewise.
37515 * postreload.c: Likewise.
37516 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37517 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
37518 statistics.h stmt.h varasm.h.
37519 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
37520 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37521 rtl.h statistics.h stmt.h varasm.h.
37522 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
37523 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
37525 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
37526 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
37528 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
37529 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
37531 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
37532 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37533 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37534 function.h real.h statistics.h stmt.h varasm.h.
37535 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37536 insn-config.h real.h statistics.h stmt.h.
37537 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
37538 statistics.h stmt.h.
37539 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
37540 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
37541 statistics.h stmt.h varasm.h.
37542 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
37543 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
37544 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37545 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
37546 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
37547 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
37548 statistics.h stmt.h varasm.h.
37549 * ipa-polymorphic-call.c: Likewise.
37550 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
37551 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37552 statistics.h stmt.h.
37553 * config/c6x/c6x.c: Likewise.
37554 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
37555 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
37556 statistics.h stmt.h varasm.h.
37557 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
37558 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
37560 * ipa-split.c: Likewise.
37561 * tree-eh.c: Likewise.
37562 * tree-ssa-dce.c: Likewise.
37563 * tree-ssa-loop-niter.c: Likewise.
37564 * tree-vrp.c: Likewise.
37565 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
37566 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
37568 * config/nds32/nds32-fp-as-gp.c: Likewise.
37569 * config/nds32/nds32-intrinsic.c: Likewise.
37570 * config/nds32/nds32-isr.c: Likewise.
37571 * config/nds32/nds32-md-auxiliary.c: Likewise.
37572 * config/nds32/nds32-memory-manipulation.c: Likewise.
37573 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
37574 * config/nds32/nds32-predicates.c: Likewise.
37575 * config/nds32/nds32.c: Likewise.
37576 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
37577 fixed-value.h hashtab.h real.h statistics.h.
37578 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
37579 fixed-value.h hashtab.h real.h statistics.h stmt.h.
37580 * config/arm/arm.c: Likewise.
37581 * config/avr/avr.c: Likewise.
37582 * config/bfin/bfin.c: Likewise.
37583 * config/h8300/h8300.c: Likewise.
37584 * config/i386/i386.c: Likewise.
37585 * config/ia64/ia64.c: Likewise.
37586 * config/iq2000/iq2000.c: Likewise.
37587 * config/m32c/m32c.c: Likewise.
37588 * config/m32r/m32r.c: Likewise.
37589 * config/m68k/m68k.c: Likewise.
37590 * config/mcore/mcore.c: Likewise.
37591 * config/mep/mep.c: Likewise.
37592 * config/mips/mips.c: Likewise.
37593 * config/mn10300/mn10300.c: Likewise.
37594 * config/moxie/moxie.c: Likewise.
37595 * config/pa/pa.c: Likewise.
37596 * config/rl78/rl78.c: Likewise.
37597 * config/rx/rx.c: Likewise.
37598 * config/s390/s390.c: Likewise.
37599 * config/sh/sh.c: Likewise.
37600 * config/sparc/sparc.c: Likewise.
37601 * config/spu/spu.c: Likewise.
37602 * config/stormy16/stormy16.c: Likewise.
37603 * config/v850/v850.c: Likewise.
37604 * config/vax/vax.c: Likewise.
37605 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
37606 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
37607 * config/msp430/msp430.c: Likewise.
37608 * predict.c: Likewise.
37609 * value-prof.c: Likewise.
37610 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
37611 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
37612 * config/microblaze/microblaze.c: Likewise.
37613 * config/nios2/nios2.c: Likewise.
37614 * config/rs6000/rs6000.c: Likewise.
37615 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37616 insn-config.h real.h rtl.h statistics.h stmt.h.
37617 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
37618 insn-config.h real.h statistics.h stmt.h.
37619 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
37620 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
37621 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
37622 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
37623 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
37624 fixed-value.h real.h statistics.h stmt.h.
37625 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
37626 fixed-value.h statistics.h stmt.h.
37627 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
37630 2015-01-15 Jakub Jelinek <jakub@redhat.com>
37632 * gengtype.c (create_user_defined_type): Workaround
37633 -Wmaybe-uninitialized false positives.
37634 * cse.c (fold_rtx): Likewise.
37635 * loop-invariant.c (gain_for_invariant): Likewise.
37637 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
37639 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
37640 set the memory attributes in all cases but clear MEM_EXPR if need be.
37642 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
37644 PR tree-optimization/64434
37645 * cfgexpand.c (reorder_operands): New function.
37646 (expand_gimple_basic_block): Insert call of reorder_operands if
37649 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
37651 * config/mips/micromips.md (*swp): Remove explicit parallel.
37652 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
37653 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
37654 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
37655 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
37656 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
37657 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
37658 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
37659 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
37660 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
37661 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
37662 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
37663 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
37664 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
37665 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
37666 (mips_wrdsp): Likewise.
37667 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
37669 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
37670 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
37671 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
37672 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
37673 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
37674 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
37675 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
37676 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
37677 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
37679 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37681 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
37682 (mips_print_operand): Support 'y' to print exact log2 in decimal
37684 * config/mips/mips.h (ISA_HAS_LSA): New define.
37685 (ISA_HAS_DLSA): Likewise.
37686 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
37687 * config/mips/predicates.md (const_immlsa_operand): New predicate.
37689 2015-01-15 Martin Liska <mliska@suse.cz>
37692 * optc-save-gen.awk: Add support for array types.
37694 2015-01-15 Richard Biener <rguenther@suse.de>
37696 PR middle-end/64365
37697 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
37698 for MEM_REF access functions with the same base can never partially
37701 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
37703 * common.opt: New option -fstack-protector-explicit.
37704 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
37705 (stack_protect_decl_phase): Handle stack_protect attribute for
37706 explicit stack protection requests.
37707 (expand_used_vars): Similarly.
37708 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
37709 * doc/extend.texi: Add documentation for "stack_protect" attribute.
37710 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
37712 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
37715 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
37717 (sh_extending_set_of_reg): New struct.
37718 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
37719 sh_remove_reg_dead_or_unused_notes): New Declarations.
37720 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
37721 sh_find_extending_set_of_reg, sh_split_tst_subregs,
37722 sh_extending_set_of_reg::use_as_extended_reg): New functions.
37723 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
37724 convert to insn_and_split and use new function sh_split_tst_subregs.
37726 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
37728 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
37730 (Optimization Options): Move -fuse-ld documentation to...
37731 (Link Options): ...here.
37733 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37735 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
37737 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
37738 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
37739 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
37740 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
37741 instead of ZR for the memory operand of LL/SC.
37742 (compare_and_swap_12, sync_add<mode>): Likewise.
37743 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
37744 (sync_new_<optab>_12, sync_nand_12): Likewise.
37745 (sync_old_nand_12, sync_new_nand_12): Likewise.
37746 (sync_sub<mode>, sync_old_add<mode>): Likewise.
37747 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
37748 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
37749 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
37750 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
37751 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
37752 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
37753 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
37754 * doc/md.texi (ZC): Update description.
37756 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
37758 * builtins.c (expand_builtin_atomic_exchange): Remove error when
37759 memory model is CONSUME.
37760 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
37761 expand_builtin_atomic_store): Change invalid memory model errors to
37763 (expand_builtin_atomic_clear): Change invalid model errors to warnings
37764 and issue warning for CONSUME.
37766 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
37768 * lto-cgraph: Update function comments for
37769 lto_symtab_encoder_encode_*.
37771 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
37773 * Makefile.in (site.exp): Do not set ENABLE_LTO.
37775 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
37777 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
37778 * lto-cgraph.c (select_what_to_stream): Remove argument, use
37779 lto_stream_offload_p instead.
37780 * lto-streamer.h (select_what_to_stream): Remove argument.
37781 * passes.c (ipa_write_summaries): Likewise.
37782 * tree-pass.h (ipa_write_summaries): Likewise.
37784 2015-01-14 Richard Biener <rguenther@suse.de>
37786 PR tree-optimization/59354
37787 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
37788 groups larger than the slp group size as having gaps.
37790 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
37792 PR middle-end/59448
37793 * builtins.c (get_memmodel): Promote consume to acquire always.
37795 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37798 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
37801 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37804 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
37806 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
37807 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
37808 AVX512VBMI, as it implies AVX512BW.
37810 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
37813 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
37814 (vec_unpacks_hi_v16sf): Ditto.
37816 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37818 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
37821 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37823 * doc/invoke.texi (mapcs): Mention deprecation.
37824 (mapcs-frame): Likewise.
37826 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
37829 * config/arm/arm.c (callee_saved_reg_p): Define.
37830 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
37831 register is callee saved instead of !call_used_regs[reg].
37832 (thumb1_compute_save_reg_mask): Likewise.
37834 2015-01-14 Hale Wang <hale.wang@arm.com>
37836 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
37839 2015-01-14 Richard Biener <rguenther@suse.de>
37842 * tree-inline.c (insert_debug_decl_map): Check destination
37843 function MAY_HAVE_DEBUG_STMTS.
37844 (insert_init_debug_bind): Likewise.
37845 (insert_init_stmt): Remove redundant check.
37846 (remap_gimple_stmt): Drop debug stmts if the destination
37847 function has var-tracking assignments disabled.
37849 2015-01-14 Martin Liska <mliska@suse.cz>
37851 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
37852 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
37854 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37857 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
37858 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
37860 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
37862 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
37863 level from an ARCH; do not inject the default.
37864 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
37865 MIPS_ISA_LEVEL_SPEC.
37866 (MIPS_ISA_NAN2008_SPEC): Update comment.
37867 (BASE_DRIVER_SELF_SPECS): Likewise.
37868 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
37869 MIPS_DEFAULT_ISA_LEVEL_SPEC.
37870 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
37871 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
37872 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
37874 2015-01-14 Richard Biener <rguenther@suse.de>
37876 PR tree-optimization/64493
37877 PR tree-optimization/64495
37878 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
37879 assign the proper vectorized PHI to the inner loop exit PHIs.
37881 2015-01-14 Joey Ye <joey.ye@arm.com>
37883 * config/arm/arm.c (arm_compute_save_reg_mask):
37884 Do not save lr in case of tail call.
37885 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
37887 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
37889 * tree-vrp.c (check_array_ref): Emit more warnings
37890 for warn_array_bounds >= 2.
37891 * common.opt: New option -Warray-bounds=.
37892 * doc/invoke.texi: Document -Warray-bounds=.
37894 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
37896 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
37897 (mforbid-fp-as-gp): Remove.
37899 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
37900 (nds32_symbol_load_store_p): Remove.
37901 (nds32_fp_as_gp_check_available): Clean up implementation.
37902 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
37904 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
37905 fp-as-gp and ex9 cases.
37907 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37909 * tree-profile.c (init_ic_make_global_vars): Drop workaround
37910 for bintuils bug 14342.
37911 (init_ic_make_global_vars): Likewise.
37912 (gimple_init_edge_profiler): Likewise.
37913 (gimple_gen_ic_func_profiler): Likewise.
37915 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37917 * ipa-inline.c (inline_small_functions): Swap the operands in
37920 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37923 * ipa-inline-analysis.c (node_growth_cache): Remove.
37924 (initialize_growth_caches): Do not initialize it.
37925 (free_growth_caches): Do not free it.
37926 (do_estimate_growth): Rename to ...
37927 (estimate_growth): ... this one; drop growth cache code.
37928 (growth_likely_positive): Always go the heuristics way.
37929 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
37930 (reset_edge_caches): Do not reset node growth.
37931 (heap_edge_removal_hook): Do not maintain cache.
37932 (inline_small_functions): Likewise; strenghten sanity check.
37933 (ipa_inline): Do not maintain caches.
37934 * ipa-inline.h (node_growth_cache): Remove.
37935 (do_estimate_growth): Remove to ...
37936 (estimate_growth): this one; remove inline version.
37937 (reset_node_growth_cache): Remove.
37939 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
37942 * ipa-inline.c (inline_small_functions): Update callee keys after
37943 resolving speculation
37944 (inline_small_functions): Always check monotonicity of the queue.
37946 2015-01-13 Marek Polacek <polacek@redhat.com>
37948 PR middle-end/64391
37949 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
37951 2015-01-13 Jakub Jelinek <jakub@redhat.com>
37953 PR rtl-optimization/64286
37954 * ree.c (combine_reaching_defs): Move part of comment earlier,
37955 remove !SCALAR_INT_MODE_P check.
37956 (add_removable_extension): Don't add vector mode
37957 extensions if all uses of the source register aren't the same
37960 2015-01-13 Renlin Li <renlin.li@arm.com>
37962 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
37963 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
37965 2015-01-13 Martin Liska <mliska@suse.cz>
37967 * ipa-icf.c (sem_function::equals_private): Call new functions
37968 cl_target_option_print_diff and cl_optimization_print_diff.
37969 * optc-save-gen.awk (cl_target_option_print_diff): New function.
37970 (cl_optimization_print_diff): Likewise.
37971 * opth-gen.awk: Likewise.
37973 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
37975 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
37976 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
37977 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
37978 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
37979 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
37980 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
37982 2015-01-13 Andrew Pinski <apinski@cavium.com>
37984 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
37985 instead of src mode.
37987 2015-01-13 Richard Biener <rguenther@suse.de>
37990 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
37993 2015-01-13 Andrew Pinski <apinski@cavium.com>
37995 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
37997 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
37999 2015-01-13 Jakub Jelinek <jakub@redhat.com>
38001 PR middle-end/63974
38002 * cfgexpand.c (expand_computed_goto): Don't call
38003 convert_memory_address here.
38005 2015-01-13 Richard Biener <rguenther@suse.de>
38007 PR tree-optimization/64406
38008 * tree-loop-distibution.c (pass_loop_distribution::execute):
38009 Reset the SCEV hashtable if we distributed anything.
38011 2015-01-13 Richard Biener <rguenther@suse.de>
38013 PR tree-optimization/64404
38014 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
38015 SLP types for CSEd loads.
38017 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
38019 PR tree-optimization/64436
38020 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
38021 merge of two symbolic numbers for a bitwise OR to ...
38022 (perform_symbolic_merge): This. Also fix computation of the range and
38023 end of the symbolic number corresponding to the result of a bitwise OR.
38025 2015-01-13 Richard Biener <rguenther@suse.de>
38027 PR tree-optimization/64568
38028 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
38029 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
38031 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38033 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
38034 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
38036 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38038 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
38039 target-specific symbol_ref flag.
38040 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
38041 resides in rodata section.
38042 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
38043 (nds32_encode_section_info): New function.
38045 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38047 * config/nds32/nds32.md (call): Use pseudo instruction bal which
38048 clobbers TA_REGNUM if large code model is specified.
38049 (call_register): Likewise.
38050 (call_immediate): Likewise.
38051 (call_value): Likewise.
38052 (call_value_register): Likewise.
38053 (call_value_immediate): Likewise.
38055 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38057 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
38058 (TARGET_CMODEL_MEDIUM): New macro.
38059 (TARGET_CMODEL_LARGE): New macro.
38060 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
38061 code model setting in assembly code.
38063 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38065 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
38066 Remove MASK_GP_DIRECT flag.
38067 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
38068 one of the multilib default options.
38069 * config/nds32/nds32.opt (mgp-direct): Remove.
38070 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
38071 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
38073 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
38075 * config/nds32/nds32.opt (mcmodel): Add new option.
38076 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
38077 to describe code model.
38079 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
38082 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
38084 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
38086 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
38087 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
38088 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
38089 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
38090 __builtin_sh_set_fpscr.
38092 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
38094 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
38095 after a funtion name just to indicate it is a function.
38096 ([-fsanitize-undefined-trap-on-error]): Likewise.
38097 ([-fdbg-cnt=]): Likewise.
38098 ([-mmemcpy]): Likewise.
38099 ([-mflush-func]): Likewise.
38100 ([-msynci]): Likewise.
38102 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
38104 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
38107 2015-01-12 Jakub Jelinek <jakub@redhat.com>
38109 PR tree-optimization/64563
38110 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
38111 instead of != VR_VARYING.
38114 * config/i386/i386.c (ix86_expand_prologue): Add
38115 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
38117 PR tree-optimization/64454
38118 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
38119 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
38120 for signed or [0, op1 - 1] for unsigned modulo.
38121 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
38122 even if op1 does not satisfy integer_pow2p.
38125 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
38127 2015-01-12 Jeff Law <law@redhat.com>
38130 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
38131 (trunchiqi2, truncsihi2): Similarly.
38133 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
38134 rather than calling F.
38136 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
38138 * tsan.c (instrument_expr): Use force_gimple_operand.
38139 Use may_be_nonaddressable_p instead of is_gimple_addressable.
38141 2015-01-12 Richard Biener <rguenther@suse.de>
38143 PR tree-optimization/64530
38144 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
38147 2015-01-12 Richard Biener <rguenther@suse.de>
38149 PR middle-end/64357
38150 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
38153 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38155 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
38156 Cortex-A17 tuning parameters.
38157 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
38159 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38161 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
38162 * config/arm/arm.c (arm_macro_fusion_p): New function.
38163 (arm_macro_fusion_pair_p): Likewise.
38164 (TARGET_SCHED_MACRO_FUSION_P): Define.
38165 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
38166 (ARM_FUSE_NOTHING): Likewise.
38167 (ARM_FUSE_MOVW_MOVT): Likewise.
38168 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
38169 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
38170 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
38171 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
38172 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
38173 arm_cortex_a5_tune): Specify fuseable_ops value.
38175 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
38178 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
38179 test for PIE with copy reloc.
38180 * configure: Regenerated.
38182 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38184 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
38186 (arm_tls_descseq_addr): Likewise.
38187 (arm_gen_movmemqi): Likewise.
38188 (arm_expand_epilogue_apcs_frame): Likewise.
38189 (arm_expand_epilogue): Likewise.
38190 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
38193 2015-01-12 Martin Liska <mliska@suse.cz>
38196 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
38197 volatility for correct operands.
38199 2015-01-12 Martin Liska <mliska@suse.cz>
38201 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
38202 indication that a function is not leaf.
38203 (sem_function::compare_polymorphic_p): Likewise.
38205 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
38207 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
38208 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
38209 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
38210 fold-const.h, tree-check.h.
38212 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
38216 * ipa-inline.c (compute_uninlined_call_time,
38217 compute_inlined_call_time): Use counts for extra precision when
38219 (big_speedup_p): Fix formating.
38220 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
38221 (relative_time_benefit): Remove.
38222 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
38223 merge guessed and read profile paths.
38224 (inline_small_functions): Count only !optimize_size functions into
38225 initial size; be more lax about sanity check when profile is used;
38226 be sure to update inlined function profile when profile is read.
38228 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
38231 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
38232 cost when edge becomes direct.
38233 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
38234 is resolved or when introducing new speculation.
38236 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
38240 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
38241 '||' to fix typo issue.
38243 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
38244 accept and return NULL.
38246 2015-01-12 Martin Liska <mliska@suse.cz>
38248 * cgraph.c (cgraph_edge::remove_callee): Move function to header
38249 file for being inlined.
38250 (cgraph_set_edge_callee): Delete.
38251 (cgraph_edge::redirect_callee): Move function to header file
38253 (cgraph_edge::make_direct): Use new function.
38254 (cgraph_edge::dump_edge_flags): New function created from
38255 static dump_edge_flags function.
38256 (cgraph_node::dump): Use new function.
38257 (cgraph_edge::verify_count_and_frequency): New function created
38258 from verify_edge_count_and_frequency.
38259 (cgraph_edge::verify_corresponds_to_fndecl): New function created
38260 from verify_edge_corresponds_to_fndecl.
38261 (verify_edge_corresponds_to_fndecl): Delete.
38262 (cgraph_node::verify_node): Use new function.
38263 * cgraph.h (cgraph_edge::set_callee): New function.
38264 (cgraph_edge::dump_edge_flags): Likewise.
38265 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
38267 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
38269 * ipa-utils.c (estimate_function_body_sizes): Do not
38270 free node params when called late with early=true.
38272 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
38274 * doc/md.texi (Instruction Patterns): Rewrite text for
38276 (Example): Likewise.
38278 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
38280 * doc/invoke.texi (Option Summary): Break long lines.
38281 [(-fdiagnostics-color)]: Put long literal in @smallexample
38283 [(-fsanitize-recover)]: Likewise.
38284 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
38285 [(-ffast-math)]: Likewise.
38286 [(--param max-inline-insns-recursive)]: Likewise.
38287 [(--param max-inline-recursive-depth)]: Likewise.
38288 [(-mno-text-section-literals)]: Likewise.
38290 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
38292 * doc/install.texi: Update for libgomp being renamed from "GNU
38293 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
38295 * doc/sourcebuild.texi: Likewise.
38297 2015-01-10 Anthony Green <green@moxielogic.com>
38299 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
38300 mul.x availability for moxiebox configuration.
38302 2015-01-09 Anthony Green <green@moxielogic.com>
38304 * config/moxie/moxie.md: Tabify assembly output.
38306 2015-01-09 Anthony Green <green@moxielogic.com>
38308 * config/moxie/moxie.md (CC_REG): Correct register definition.
38310 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
38312 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
38313 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
38316 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
38318 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
38320 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
38321 Jakub Jelinek <jakub@redhat.com>
38323 PR middle-end/64412
38324 * lto-streamer.h (lto_stream_offload_p): New declaration.
38325 * lto-streamer.c (lto_stream_offload_p): New variable.
38326 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
38327 at the same time as section_name_prefix.
38328 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
38329 if lto_stream_offload_p.
38330 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
38331 stream TREE_TARGET_OPTION if lto_stream_offload_p.
38332 (write_ts_function_decl_tree_pointers): Don't
38333 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
38334 * tree-streamer-in.c (unpack_value_fields): Don't stream
38335 TREE_TARGET_OPTION in if ACCEL_COMPILER.
38336 (lto_input_ts_function_decl_tree_pointers): Don't stream
38337 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
38338 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
38339 instead of section_name_prefix string comparisons.
38341 2015-01-09 Jakub Jelinek <jakub@redhat.com>
38343 PR rtl-optimization/64536
38344 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
38347 2015-01-09 Michael Collison <michael.collison@linaro.org>
38349 PR tree-optimization/64322
38350 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
38351 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
38353 2015-01-09 Tom de Vries <tom@codesourcery.com>
38355 PR rtl-optimization/64539
38356 * regcprop.c (kill_clobbered_values): Factor out of ...
38357 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
38358 instead of note_stores with kill_clobbered_value.
38360 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
38362 * ginclude/unwind-arm-common.h: Revert previous commit.
38364 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
38366 * config.gcc (arm*-*-freebsd*): New configuration.
38367 * config/arm/freebsd.h: New file.
38368 * config.host: Add extra components for arm*-*-freebsd*.
38369 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
38370 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
38372 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38374 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
38376 * config/rs6000/t-rtems: Add e6500 multilibs.
38378 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38380 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
38383 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38385 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
38386 MULTILIB_EXCEPTIONS.
38388 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38390 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
38391 MULTILIB_EXCEPTIONS.
38393 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
38395 * config/arm/t-rtems-eabi: Rename to...
38396 * config/arm/t-rtems: ...this.
38397 * config/arm/rtems-eabi.h: Rename to...
38398 * config/arm/rtems.h: ...this.
38399 * config.gcc (arm*-*-rtems*): Reflect changes above.
38401 2015-01-09 Richard Biener <rguenther@suse.de>
38403 PR tree-optimization/64410
38404 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
38406 (execute_update_addresses_taken): Deal with that.
38407 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
38408 loads/stores for complex variables.
38410 2015-01-09 Martin Liska <mliska@suse.cz>
38412 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
38414 (func_checker::compare_memory_operand): New function.
38415 (func_checker::compare_operand): Split case to newly
38417 (func_checker::compare_cst_or_decl): New function.
38418 (func_checker::compare_gimple_call): Identify
38420 (func_checker::compare_gimple_assign): Likewise.
38421 * ipa-icf-gimple.h: New function.
38423 2015-01-09 Martin Liska <mliska@suse.cz>
38426 * sreal.c (sreal::dump): Change unsigned format to signed for
38428 (sreal::to_double): Replace exp2 with scalbln.
38430 2015-01-09 Martin Liska <mliska@suse.cz>
38432 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
38433 * ipa-icf.c (sem_function::equals_private): Add support for target and
38434 (sem_item_optimizer::merge_classes): Remove redundant function
38435 optimization flags comparison.
38436 * tree.h (target_opts_for_fn): New function.
38438 2015-01-09 Tom de Vries <tom@codesourcery.com>
38440 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
38442 2015-01-09 Kito Cheng <kito@0xlab.org>
38444 PR rtl-optimization/64348
38445 * lra-constraints.c (split_reg): Fix caller-save store/restore
38446 instruction generation.
38448 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
38450 PR gcov-profile/61790
38451 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
38452 long long. Fallback to int64_t if host doesn't have long long and
38453 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
38455 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38457 PR tree-optimization/63989
38458 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
38459 from 1000 to 10000.
38460 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
38461 (get_stridx): If we don't have a record for certain SSA_NAME,
38462 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
38463 constant offset, call get_stridx_plus_constant.
38464 (get_stridx_plus_constant): New function.
38465 (zero_length_string): Don't use get_stridx here.
38468 PR middle-end/64388
38469 * dse.c (struct insn_info): Mention frame_read set also
38470 before reload for tail calls on some targets.
38471 (scan_insn): Revert 2014-12-22 change. Set frame_read
38472 also before reload for tail calls if
38473 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
38474 instead of add_non_frame_wild_read for non-const/memset
38475 tail calls after reload.
38477 2015-01-08 Jason Merrill <jason@redhat.com>
38479 * ubsan.c (do_ubsan_in_current_function): New.
38480 (pass_ubsan::gate): Use it.
38481 * ubsan.h: Declare it.
38482 * convert.c (convert_to_integer): Use it.
38484 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38487 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
38488 compare_code when it is unconditionally overwritten afterwards.
38489 Use ix86_reverse_condition instead of reverse_condition. Don't
38490 change code if *reverse_condition* returned UNKNOWN and don't
38491 swap ct/cf and negate diff in that case.
38493 2015-01-08 Mike Stump <mikestump@comcast.net>
38495 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
38496 (pass_tsan_O0::gate): Likewise.
38497 * extend.texi (Function Attributes): Add no_sanitize_thread
38500 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
38502 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
38503 for registering builtins.
38504 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
38505 add -fopenmp to the argv_obstack used when invoking
38506 compile_for_target.
38508 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
38509 add "-m32" or "-m64" to argv_obstack.
38510 (generate_host_descr_file): Likewise, when invoking host_compiler.
38511 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
38514 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
38516 * config/sh/sh-mem.cc: Use constant as second operand when emitting
38519 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
38522 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
38523 constant load if constant operand fits into I08.
38525 2015-01-08 Jakub Jelinek <jakub@redhat.com>
38528 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
38529 and TREE_THIS_VOLATILE for MEM_REFs.
38530 (build5_stat): Fix up initialization of TREE_READONLY and
38531 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
38533 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
38536 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
38537 of r for the second alternative of the destination operand.
38539 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
38542 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
38544 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
38546 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
38548 ([-fivar-visibility], [-fvisibility]): Likewise.
38550 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
38552 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
38553 the file where @code, @command, etc is more appropriate.
38555 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
38557 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
38558 of -mrecip= documentation.
38560 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38563 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
38564 correct reload handler if -m32 -mpowerpc64 is used.
38566 2015-01-06 Tom de Vries <tom@codesourcery.com>
38568 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
38570 2015-01-08 Christian Bruel <christian.bruel@st.com>
38573 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
38575 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
38577 PR tree-optimization/63259
38578 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
38579 if optab exists for 16bit byteswap.
38581 2015-01-06 Jakub Jelinek <jakub@redhat.com>
38583 * opts.c (common_handle_option): Add support for
38584 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
38585 * doc/invoke.texi: Document -fno-sanitize=all,
38586 -f{,no-}sanitize-recover=all. Document that
38587 -fsanitize=float-cast-overflow is not enabled
38588 by -fsanitize=undefined. Fix up documentation
38589 of -f{,no-}sanitize-recover.
38591 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
38593 * config.gcc: Add Visium support.
38594 * configure.ac: Likewise.
38595 * configure: Regenerate.
38596 * doc/extend.texi (interrupt attribute): Add Visium.
38597 * doc/invoke.texi: Document Visium options.
38598 * doc/install.texi: Document Visium target.
38599 * doc/md.texi: Document Visium constraints.
38600 * common/config/visium: New directory.
38601 * config/visium: Likewise.
38603 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
38605 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
38606 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
38608 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
38610 * combine.c (combine_validate_cost): Do not count the cost of a
38611 split I2 twice. Do not display it twice in the dump, either.
38613 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
38615 Revert parts of r219199.
38616 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
38618 ([-Wtraditional]): Restore markup on <limits.h>.
38620 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
38623 * doc/invoke.texi: Document -Wsuggest-override.
38625 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
38627 PR rtl-optimization/64287
38628 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
38629 (process_options): Disable flag_ipa_ra if profiling.
38631 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
38633 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
38635 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
38637 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
38638 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
38639 put under #if TARGET_LOOPS guard.
38641 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
38643 * config/i386/i386.c (output_387_binary_op): Use std::swap.
38645 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
38647 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
38648 * rtl.h (refers_to_regno_p): Add overload.
38650 * bt-load.c: Likewise.
38651 * combine.c: Likewise.
38652 * df-scan.c: Likewise.
38653 * sched-deps.c: Likewise.
38654 * config/s390/s390.c: Likewise.
38655 * config/m32r/m32r.c: Likewise.
38656 * config/rs6000/spe.md: Likewise.
38657 * config/rs6000/rs6000.c: Likewise.
38658 * config/pa/pa.c: Likewise.
38659 * config/stormy16/stormy16.c: Likewise.
38660 * config/cris/cris.c: Likewise.
38661 * config/arc/arc.md: Likewise.
38662 * config/arc/arc.c: Likewise.
38663 * config/sh/sh.md: Likewise.
38664 * config/sh/sh.c: Likewise.
38665 * config/frv/frv.c: Likewise.
38667 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38670 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
38671 call as cleanup of the whole body.
38672 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
38673 * tsan.c (replace_func_exit): New function.
38674 (instrument_func_exit): Moved earlier.
38675 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
38676 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
38678 (tsan_pass): Don't call instrument_func_exit.
38679 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
38680 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
38684 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
38685 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
38686 it to libubsan handler instead of EXPR. Fold comparisons earlier,
38687 if the result is integer_zerop, return NULL_TREE.
38688 * convert.c (convert_to_integer): Pass expr as ARG.
38690 PR tree-optimization/64465
38691 * tree-inline.c (redirect_all_calls): During inlining
38692 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
38693 changed the stmt to a non-throwing call.
38695 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
38697 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
38698 etc markup throughout the file.
38700 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
38702 Enable experimental TSAN support for Ada.
38703 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
38705 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38707 PR tree-optimization/64494
38708 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
38709 clear SSA_NAME_ANTI_RANGE_P flag.
38711 2015-01-05 Marek Polacek <polacek@redhat.com>
38713 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
38715 2015-01-05 Jakub Jelinek <jakub@redhat.com>
38717 Update copyright years.
38719 * gcc.c (process_command): Update copyright notice dates.
38720 * gcov-dump.c: Ditto.
38722 * doc/cpp.texi: Bump @copying's copyright year.
38723 * doc/cppinternals.texi: Ditto.
38724 * doc/gcc.texi: Ditto.
38725 * doc/gccint.texi: Ditto.
38726 * doc/gcov.texi: Ditto.
38727 * doc/install.texi: Ditto.
38728 * doc/invoke.texi: Ditto.
38730 * auto-profile.c, auto-profile.h: Fix up Copyright line.
38732 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
38734 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
38736 ([-fvtable-verify], [-fvtv-debug]): Likewise.
38737 ([-Wabi]): Likewise.
38738 ([-fmessage-length]): Likewise.
38739 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
38740 ([-Wno-discarded-qualifiers]): Likewise.
38741 ([-Wnodiscarded-array-qualifiers]): Likewise.
38742 ([-Wno-virtual-move-assign]): Likewise.
38743 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
38744 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
38745 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
38746 ([-fsanitize-undefined-trap-on-error]): Likewise.
38747 ([-floop-interchange]): Likewise.
38748 ([-ftree-coalesce-inlined-vars]): Likewise.
38749 ([-fvect-cost-model]): Likewise.
38750 ([-flto]): Likewise.
38751 ([--param]): Likewise.
38752 (Spec Files): Likewise.
38753 ([-mstrict-align]): Likewise.
38754 ([-mfix-cortex-a53-835769]): Likewise.
38755 ([-march], [-mtune]): Likewise.
38756 ([-mpic-register]): Likewise.
38757 ([-munaligned-access]): Likewise.
38758 ([-msp8]): Likewise.
38759 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
38760 (AVR Built-in Macros): Likewise.
38761 ([-mpreferred-stack-boundary]): Likewise.
38762 ([-mtune-crtl]): Likewise.
38763 ([-mashf]): Likewise.
38764 ([-mmcu=]): Likewise.
38765 ([-minrt]): Likewise.
38766 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
38767 ([-mupper-regs]): Likewise.
38768 ([-matomic-model]): Likewise.
38769 ([-mdiv]): Likewise.
38770 ([-mzdcbranch]): Likewise.
38771 ([-mdisable-callt]): Likewise.
38772 ([-msoft-float]): Likewise.
38773 ([-m8byte-align]): Likewise.
38774 ([-fstack-reuse]): Likewise.
38776 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38778 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
38779 Fix markup, light copy-editing.
38780 ([-fauto-profile]): Rewrite to fix formatting and content
38783 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38785 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
38786 Copy-edit description.
38787 ([-fisolate-erroneous-paths-attribute]): Likewise.
38788 * common.opt (fisolate-erroneous-paths-dereference):
38789 Copy-edit description.
38790 (fisolate-erroneous-paths-attribute): Likewise.
38792 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38794 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
38797 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
38799 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
38800 ([-fvtv-debug]): Likewise.
38801 ([-Wc++-compat]): Likewise.
38802 ([-Wc++11-compat]): Likewise.
38803 ([-Wc++14-compat]): Likewise.
38804 ([-Wno-sized-deallocation]): Likewise.
38805 ([-femit-class-debug-always]): Likewise.
38806 ([-femit-struct-debug-detailed]): Likewise.
38807 ([-fno-keep-inline-dllexport]): Likewise.
38808 ([-fira-algorithm]): Likewise.
38809 ([-fira-region]): Likewise.
38810 ([-flra-remat]): Likewise.
38811 ([-fipa-ra]): Likewise.
38812 ([-fhoist-adjacent-loads]): Likewise.
38813 ([-fisolate-erroneous-paths-dereference]): Likewise.
38814 ([-fisolate-erroneous-paths-attribute]): Likewise.
38815 ([-ftree-switch-conversion]): Likewise.
38816 ([-ftree-tail-merge]): Likewise.
38817 ([-ftree-loop-if-convert]): Likewise.
38818 ([-ftree-loop-if-convert-stores]): Likewise.
38819 ([-ftree-loop-distribution]): Likewise.
38820 ([-ftree-loop-distribute-patterns]): Likewise.
38821 ([-flto-compression-level]): Likewise.
38822 ([-flto-report]): Likewise.
38823 ([-flto-report-wpa]): Likewise.
38824 ([-fuse-linker-plugin]): Likewise.
38825 ([-mfix-cortex-a53-835769]): Likewise.
38826 ([-mno-fix-cortex-a53-835769]): Likewise.
38827 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
38828 explicit listing; add a note to the discussion indicating they
38829 exist. Reorder table to group similar options. Add missing
38830 @opindex entries. Add @need commands throughout the table to
38831 allow it to be split across multiple pages.
38832 ([-m8bit-idiv]): Fix @opindex.
38833 ([-mavx256-split-unaligned-load]): Likewise.
38834 ([-mavx256-split-unaligned-store]): Likewise.
38835 ([-mstack-protector-guard]): Likewise.
38836 ([-mcpu=]): Likewise.
38837 ([-mcpu]): Likewise.
38838 ([-mpointer-size=]): Likewise.
38840 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
38842 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
38843 instead of `m' constraint. Likewise for unnamed movb comparison
38844 patterns using reg_before_reload_operand predicate.
38845 * config/pa/predicates.md (reg_before_reload_operand): Tighten
38846 predicate to reject register index and LO_SUM DLT memory forms
38849 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38851 * doc/invoke.texi (Option Summary): Fix spelling of
38852 -fdevirtualize-at-ltrans.
38853 ([-fdevirtualize]): Fix markup.
38854 ([-fdevirtualize-speculatively]): Fix typo.
38855 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
38856 implementor-speaky.
38857 * common.opt (fdevirtualize-at-ltrans): Likewise.
38858 * ipa-devirt.c: Fix typos in comments throughout the file.
38859 (ipa_devirt): Fix typos in format strings for dump output.
38861 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
38863 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
38864 discussion of defaults, light copy-editing.
38866 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38868 * tsan.c (instrument_expr): corrected previous checkin.
38870 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
38872 Instrument bit field and unaligned accesses for TSAN.
38873 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
38874 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
38875 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
38876 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
38877 unaligned memory regions.
38879 2015-01-01 Anthony Green <green@moxielogic.com>
38881 * config/moxie/predicates.md (moxie_general_movsrc_operand):
38882 Restrict move source register offsets to 16 bits.
38884 Copyright (C) 2015 Free Software Foundation, Inc.
38886 Copying and distribution of this file, with or without modification,
38887 are permitted in any medium without royalty provided the copyright
38888 notice and this notice are preserved.