1 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
3 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
5 (-mpower9-vector): Likewise.
6 (-mpower9-dform): Likewise.
7 (-mpower9-minmax): Likewise.
8 (-mtoc-fusion): Likewise.
10 (-mfloat128-hardware): Likewise.
12 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
13 mask for ISA 3.0 (power9).
14 (POWERPC_MASKS): Add new ISA 3.0 switches.
15 (power9 cpu): Add power9 cpu.
17 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for
19 (ASM_CPU_SPEC): Likewise.
20 (EXTRA_SPECS): Likewise.
22 * config/rs6000/rs6000-opts.h (enum processor_type): Add
25 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for
27 (rs6000_debug_reg_global): Add support for power9 fusion.
28 (rs6000_setup_reg_addr_masks): Cache mode size.
29 (rs6000_option_override_internal): Until real power9 tuning is
30 added, use -mtune=power8 for -mcpu=power9.
31 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
32 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
34 (rs6000_option_override_internal): Add support for ISA 3.0
36 (rs6000_loop_align): Add support for power9 cpu.
37 (rs6000_file_start): Likewise.
38 (rs6000_adjust_cost): Likewise.
39 (rs6000_issue_rate): Likewise.
40 (insn_must_be_first_in_group): Likewise.
41 (insn_must_be_last_in_group): Likewise.
42 (force_new_group): Likewise.
43 (rs6000_register_move_cost): Likewise.
44 (rs6000_opt_masks): Likewise.
46 * config/rs6000/rs6000.md (cpu attribute): Add power9.
47 * config/rs6000/rs6000-tables.opt: Regenerate.
49 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
50 _ARCH_PWR9 if power9 support is available.
52 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
53 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
55 * configure.ac: Determine if the assembler supports the ISA 3.0
57 * config.in (HAVE_AS_POWER9): Likewise.
58 * configure: Regenerate.
60 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
63 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
65 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
66 Remove integer CONST_DOUBLE handling. It should never occur.
68 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
71 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
72 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
73 Delete VOIDmode case. Assert that mode is not VOIDmode.
74 * config/aarch64/predicates.md (const0_operand): Remove const_double
77 2015-11-09 Martin Liska <mliska@suse.cz>
79 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
80 body_info release function.
81 * ipa-prop.c (ipa_release_body_info): New function.
82 (ipa_analyze_node): Call the function.
83 (ipa_node_params::~ipa_node_params): Release known_csts.
84 * ipa-prop.h (ipa_release_body_info): Declare.
86 2015-11-09 Martin Liska <mliska@suse.cz>
88 * gcc.c (record_temp_file): Release name string.
89 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead
91 * lra-lives.c (free_live_range_list): Utilize
92 lra_live_range_pool for allocation and deallocation.
93 (create_live_range): Likewise.
94 (copy_live_range): Likewise.
95 (lra_merge_live_ranges): Likewise.
96 (remove_some_program_points_and_update_live_ranges): Likewise.
97 (lra_create_live_ranges_1): Release point_freq_vec that can
98 be not freed from previous iteration of the function.
99 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of
101 * tree-sra.c (sra_deinitialize): Release all vectors in
103 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
104 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
105 Release edge_info for a removed edge.
106 (thread_through_all_blocks): Free region vector.
107 * tree-ssa.h (free_dom_edge_info): Declare function extern.
109 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
111 * optabs.c (expand_vec_cond_expr): Always get sign from type.
112 * tree.c (wide_int_to_tree): Support negative values for boolean.
113 (build_nonstandard_boolean_type): Use signed type for booleans.
115 2015-11-09 Richard Biener <rguenther@suse.de>
117 PR tree-optimization/68248
118 * tree-vect-generic.c (expand_vector_operations_1): Handle
121 2015-11-09 Richard Biener <rguenther@suse.de>
123 PR tree-optimization/56118
124 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
125 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
126 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
128 (vect_slp_analyze_data_ref_dependences): Instead of computing
129 all dependences of the region DRs just analyze the code motions
130 SLP vectorization will perform. Remove SLP instances that
131 cannot have their store/load motions applied.
132 (vect_analyze_data_refs): Allow DRs without a vectype
135 2015-11-09 Julian Brown <julian@codesourcery.com>
137 * final.c (output_asm_insn): Pass VOIDmode to output_address.
138 (output_address): Add MODE argument. Pass to print_operand_address
140 * targhooks.c (default_print_operand_address): Add MODE argument.
141 * targhooks.h (default_print_operand_address): Update prototype.
142 * output.h (output_address): Update prototype.
143 * target.def (print_operand_address): Add MODE argument.
144 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
146 (print_operand): Pass access mode to output_address.
147 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
149 (mcore_print_operand): Update calls to mcore_print_operand_address.
150 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
152 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
154 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
156 (tilegx_print_operand): Don't set above global. Update calls to
158 (tilegx_print_operand_address): Add MODE argument. Use instead of
159 output_memory_reference_mode global.
160 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
161 (frv_print_operand): Pass mode to frv_print_operand_address calls.
162 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
164 * config/cris/cris.c (cris_print_operand_address): Add MODE
166 (cris_print_operand): Pass mode to output_address calls.
167 * config/spu/spu.c (print_operand): Pass mode to output_address
169 * config/aarch64/aarch64.h (aarch64_print_operand)
170 (aarch64_print_operand_address): Remove prototypes.
171 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
173 (aarch64_print_operand): Make static. Update calls to
175 (aarch64_print_operand_address): Add MODE argument. Use instead of
176 aarch64_memory_reference_mode global.
177 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
179 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
180 Delete macro definitions.
181 * config/pa/pa.c (pa_print_operand): Pass mode in output_address
183 * config/xtensa/xtensa.c (print_operand): Pass mode in
184 output_address calls.
185 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
187 (h83000_print_operand): Update calls to h8300_print_operand_address
189 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE
191 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
193 (tilepro_print_operand): Pass mode to output_address.
194 (tilepro_print_operand_address): Add MODE argument. Use instead of
195 output_memory_reference_mode.
196 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
197 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
198 to output_address calls.
199 (nvptx_print_operand_address): Add MODE argument.
200 * config/alpha/alpha.c (print_operand): Pass mode argument in
201 output_address calls.
202 * config/m68k/m68k.c (print_operand): Pass mode argument in
204 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
205 (avr_print_operand): Update calls to avr_print_operand_address.
206 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
207 argument. Update calls to output_address.
208 (sparc_print_operand): Pass mode to output_address.
209 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
211 (iq2000_print_operand): Pass mode in output_address calls.
212 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
214 (xstormy16_print_operand): Pass mode to
215 xstormy16_print_operand_address calls.
216 * config/mips/mips.c (mips_print_operand): Update calls to
218 (mips_print_operand_address): Add MODE argument.
219 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
221 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
222 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
224 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
225 (rx_print_operand): Update calls to output_address,
226 rx_print_operand_address.
227 * config/nds32/nds32.c (nds32_print_operand): Update calls to
229 (nds32_print_operand_address): Add MODE argument.
230 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
231 output_address calls.
232 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
234 (c6x_print_address_operand): Update calls to output_address.
235 (c6x_print_operand_address): Pass mode to above.
236 * config/v850/v850.c (v850_print_operand_address): Add MODE
238 (v850_print_operand): Pass mode to v850_print_operand_address,
240 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE
242 (mmix_print_operand): Pass mode in output_address calls.
243 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
244 (sh_print_operand): Pass mem mode to output_address,
245 sh_print_operand_address.
246 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE
248 (cr16_print_operand): Pass mode to output_address,
249 cr16_print_operand_address.
250 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
252 * config/microblaze/microblaze.c (print_operand): Pass mode to
254 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
256 (nios2_print_operand_address): Add MODE argument. Update call to
257 nios2_print_operand_address.
258 * config/s390/s390.c (print_operand): Pass mode to output_address.
259 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE
261 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
263 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
264 Use instead of output_memory_reference_mode.
265 (output_memory_reference_mode): Delete global.
266 (arm_print_operand): Pass mem mode to output_address.
267 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE
269 (m32r_print_operand): Pass mode to output_address.
270 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
272 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
273 * config/i386/i386.c (ix86_print_operand): Pass mode to
274 output_address calls.
275 (ix86_print_operand_address): Add MODE argument.
277 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
280 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
281 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
282 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
283 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
285 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
287 PR rtl-optimization/67749
288 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
289 case before emitting the two blocks. Instead modify the register
290 in the corresponding final insn of the basic block.
292 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
294 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
297 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
299 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
300 HAVE_INITFINI_ARRAY_SUPPORT.
301 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT
304 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
305 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
306 Don't check HAVE_AS_SPARC_NOBITS.
309 * configure: Regenerate.
310 * config.in: Regenerate.
312 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
315 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
317 2015-11-09 Richard Henderson <rth@redhat.com>
319 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
321 (ix86_register_pragmas): Register address spaces __seg_fs,
323 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
324 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
325 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
326 * config/i386/i386.c (ix86_decompose_address): Likewise.
327 (ix86_legitimate_address_p): Likewise.
328 (memory_address_length): Likewise. Check mem address space too.
329 (ix86_print_operand): Use ix86_print_operand_address_as.
330 (ix86_print_operand_address_as): Rename from
331 ix86_print_operand_address, add new addr_space_t parameter.
332 Validate that either the parameter or the ix86_address segment
333 is default address space. Handle ADDR_SPACE_SEG_TLS.
334 (ix86_print_operand_address): New.
335 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
336 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
337 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
338 (ix86_addr_space_zero_address_valid): New.
339 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
340 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
341 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
342 * config/i386/predicates.md (address_no_seg_operand): Likewise.
343 (vsib_address_operand): Likewise.
344 (address_mpx_no_base_operand): Likewise.
345 (address_mpx_no_index_operand): Likewise.
346 * doc/extend.texi (x86 Named Address Spaces): New section.
348 * config/i386/i386.c (ix86_check_no_addr_space): New.
349 (decide_alg): Add have_as parameter.
350 (alg_usable_p): Likewise; disable rep algorithms if set.
351 (ix86_expand_set_or_movmem): Notice if either MEM has a
352 non-default address space.
353 (ix86_expand_strlen): Likewise.
354 * config/i386/i386.md (strmov, strset): Likewise.
355 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
356 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
357 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
358 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
359 *cmpstrnqi_1, *strlenqi_1): Likewise.
361 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
362 (*movabs<mode>_2): Likewise.
364 * dwarf2out.c (modified_type_die): Pass the address space number
365 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
366 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
367 * targhooks.c (default_addr_space_debug): New.
368 * targhooks.h (default_addr_space_debug): Declare.
369 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
370 * doc/tm.texi: Rebuild.
372 * gimple.c (check_loadstore): Return false when 0 is a valid address.
373 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
374 null when 0 is valid in the source address space.
375 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
376 * targhooks.c (default_addr_space_zero_address_valid): New.
377 * targhooks.h (default_addr_space_zero_address_valid): Declare.
378 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
379 * doc/tm.texi: Rebuild.
381 * cselib.c (add_mem_for_addr): Compare address spaces when
383 (cselib_lookup_mem): Likewise.
384 * fold-const.c (operand_equal_p): Check address spaces of
385 pointer types before checking integer constants.
388 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
389 the correct type for the base.
391 2015-11-09 Jeff Law <law@redhat.com>
393 * tree-into-ssa.c (names_to_release): No longer static.
394 * tree-into-ssa.h (names_to_release): Declare.
395 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
396 (release_free_names_and_compact_live_names): New function extracted
397 from pass_release_ssa_names::execute.
398 (pass_release_ssa_names::execute): Use it.
400 2015-11-09 Alan Modra <amodra@gmail.com>
402 * gensupport.c (add_mnemonic_string): Make len param a size_t.
403 (gen_mnemonic_setattr): Make "size" var a size_t. Use
404 obstack_blank_fast to shrink obstack. Cast obstack_next_free
407 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
409 PR rtl-optimization/68182
410 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
411 branch with only one successor just like unconditional branches.
413 2015-11-08 Jeff Law <law@redhat.com>
415 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
416 non-FSM path has no edges marked with EDGE_DFS_BACK.
417 (ssa_redirect_edges): No longer call mark_loop_for_removal.
418 (thread_single_edge, def_split_header_continue_p): Remove.
419 (bb_ends_with_multiway_branch): Likewise.
420 (thread_through_loop_header): Remove cases of threading from
421 latch through the header. Simplify knowing we won't thread
423 (thread_through_all_blocks): Simplify knowing that only the FSM
424 threader needs to handle backedges.
426 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
428 * doc/extend.texi (type attributes): Document scalar_storage_order.
429 (Structure-Packing Pragmas): Rename into...
430 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
431 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
432 (Warnings): Document -Wno-scalar-storage-order.
433 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
434 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
435 extract_bit_field and store_bit_field.
436 (initialize_argument_information): Adjust call to store_expr.
437 (load_register_parameters): Adjust call to extract_bit_field.
438 * expmed.c (check_reverse_storage_order_support): New function.
439 (check_reverse_float_storage_order_support): Likewise.
440 (flip_storage_order): Likewise.
441 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
442 of the value if it is true. Pass REVERSE to recursive call after
443 adjusting the target offset.
444 Do not use extraction or movstrict instruction if REVERSE is true.
445 Pass REVERSE to store_fixed_bit_field.
446 (store_bit_field): Add REVERSE parameter and pass to it to above.
447 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
448 store_split_bit_field and store_fixed_bit_field_1.
449 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
450 order of the value if it is true and adjust the target offset.
451 (store_split_bit_field): Add REVERSE parameter and pass it to
452 store_fixed_bit_field. Adjust the target offset if it is true.
453 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
454 of the value if it is true. Pass REVERSE to recursive call after
455 adjusting the target offset.
456 Do not use extraction or subreg instruction if REVERSE is true.
457 Pass REVERSE to extract_fixed_bit_field.
458 (extract_bit_field): Add REVERSE parameter and pass to it to above.
459 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
460 extract_split_bit_field and extract_fixed_bit_field_1.
461 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
462 order of the value if it is true and adjust the target offset.
463 (extract_split_bit_field): Add REVERSE parameter and pass it to
464 extract_fixed_bit_field. Adjust the target offset if it is true.
465 * expmed.h (flip_storage_order): Declare.
466 (store_bit_field): Adjust prototype.
467 (extract_bit_field): Likewise.
468 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
469 (emit_group_store): Adjust call to store_bit_field.
470 (copy_blkmode_from_reg): Likewise.
471 (copy_blkmode_to_reg): Likewise.
472 (write_complex_part): Likewise.
473 (read_complex_part): Likewise.
474 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
475 that it isn't true if the target is a register.
476 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
477 and flip the storage order of the value.
478 <BIT_IOR_EXPR>: Flip the storage order of the value.
479 (get_bit_range): Adjust call to get_inner_reference.
480 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
481 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
482 with reverse storage order.
483 (store_expr_with_bounds): Add REVERSE parameter and pass it to
484 recursive calls and call to store_bit_field. Force the value into a
485 register if it is true and then flip the storage order of the value.
486 (store_expr): Add REVERSE parameter and pass it to above.
487 (categorize_ctor_elements_1): Adjust call to
488 initializer_constant_valid_p.
489 (store_constructor_field): Add REVERSE parameter and pass it to
490 recursive calls and call to store_field.
491 (store_constructor): Add REVERSE parameter and pass it to calls to
492 store_constructor_field and store_expr. Set it to true for an
493 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
494 (store_field): Add REVERSE parameter and pass it to recursive calls
495 and calls to store_expr and store_bit_field. Temporarily flip the
496 storage order of the value with record type and integral mode and
497 adjust the shift if it is true.
498 (get_inner_reference): Add PREVERSEP parameter and set it to true
499 upon encoutering a reference with reverse storage order.
500 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
501 (expand_constructor): Adjust call to store_constructor.
502 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
503 of the union type to store_expr in the MEM case and assert that it
504 isn't set in the REG case. Adjust call to store_field.
505 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
506 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
507 get_inner_reference and extract_bit_field. Temporarily flip the
508 storage order of the value with record type and integral mode and
509 adjust the shift if it is true. Flip the storage order of the value
510 at the end if it is true.
511 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
512 get_inner_reference. Do not fetch an inner reference if it is true.
513 * expr.h (store_expr_with_bounds): Ajust prototype.
514 (store_expr): Likewise.
515 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
516 REF_REVERSE_STORAGE_ORDER on the reference according to it.
517 (optimize_bit_field_compare): Deal with reverse storage order.
518 Adjust calls to get_inner_reference and make_bit_field_ref.
519 (decode_field_reference): Add PREVERSEP parameter and adjust call to
521 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
522 to decode_field_reference and make_bit_field_ref.
523 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
524 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
525 (fold_comparison): Adjust call to get_inner_reference.
526 (split_address_to_core_and_offset): Adjust call to
528 * gimple-expr.c (useless_type_conversion_p): Return false for array
529 types with different TYPE_REVERSE_STORAGE_ORDER flag.
530 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
531 REF_REVERSE_STORAGE_ORDER flag.
532 * lto-streamer-out.c (hash_tree): Deal with
533 TYPE_REVERSE_STORAGE_ORDER.
534 * output.h (assemble_real): Adjust prototype.
535 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
536 * stor-layout.c (finish_record_layout): Propagate the
537 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
538 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
539 (TYPE_SATURATING): Adjust.
540 (REF_REVERSE_STORAGE_ORDER): Document.
541 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
542 set it to true upon encoutering a reference with reverse storage
544 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
545 * tree-inline.c (remap_gimple_op_r): Propagate the
546 REF_REVERSE_STORAGE_ORDER flag.
547 (copy_tree_body_r): Likewise.
548 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
550 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
551 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
552 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
553 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
554 REF_REVERSE_STORAGE_ORDER flag.
555 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
556 (gimple_canonical_types_compatible_p): Likewise.
557 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
558 (TYPE_SATURATING): Adjust.
559 (REF_REVERSE_STORAGE_ORDER): New flag.
560 (reverse_storage_order_for_component_p): New inline predicate.
561 (storage_order_barrier_p): Likewise.
562 (get_inner_reference): Adjust prototype.
563 * varasm.c: Include expmed.h.
564 (assemble_variable_contents): Adjust call to output_constant.
565 (assemble_real): Add REVERSE parameter. Flip the storage
566 order of the value if REVERSE is true.
567 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
568 (assemble_constant_contents): Adjust call to output_constant.
569 (output_constant_pool_2): Adjust call to assemble_real.
570 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
571 TYPE_REVERSE_STORAGE_ORDER.
572 (initializer_constant_valid_p): Add REVERSE parameter.
573 (output_constant): Add REVERSE parameter.
574 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
575 <REAL_TYPE>: Adjust call to assemble_real.
576 <COMPLEX_TYPE>: Pass it to recursive calls.
577 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
578 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
579 (struct oc_local_state): Add REVERSE field.
580 (output_constructor_array_range): Adjust calls to output_constant.
581 (output_constructor_regular_field): Likewise.
582 (output_constructor_bitfield): Adjust call to output_constructor.
583 Flip the storage order of the value if REVERSE is true.
584 (output_constructor): Add REVERSE parameter. Set it to true for an
585 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
586 output_constructor_bitfield.
587 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
588 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
589 * builtins.c (get_object_alignment_2): Likewise.
590 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
591 and get_ref_base_and_extent.
592 * dbxout.c (dbxout_expand_expr): Likewise.
593 * dwarf2out.c (add_var_loc_to_decl): Likewise.
594 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
595 (loc_list_from_tree): Likewise.
596 (fortran_common): Likewise.
597 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
598 get_ref_base_and_extent.
599 (get_base_constructor): Likewise.
600 (fold_const_aggregate_ref_1): Likewise.
601 * gimple-laddress.c (pass_laddress::execute): Adjust call to
603 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
604 get_inner_reference and bail out on reverse storage order.
605 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
606 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
607 build_ref_for_offset.
608 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
609 get_ref_base_and_extent.
610 (ipa_polymorphic_call_context): Likewise.
611 (extr_type_from_vtbl_ptr_store): Likewise.
612 (check_stmt_for_type_change): Likewise.
613 (get_dynamic_type): Likewise.
614 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
615 get_ref_base_and_extent.
616 (compute_complex_assign_jump_func): Likewise.
617 (get_ancestor_addr_info): Likewise.
618 (compute_known_type_jump_func): Likewise.
619 (determine_known_aggregate_parts): Likewise.
620 (ipa_get_adjustment_candidate): Likewise.
621 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on
623 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
624 (build_ref_for_offset): Adjust prototype.
625 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
627 * tree-affine.c (tree_to_aff_combination): Adjust call to
629 (get_inner_reference_aff): Likewise.
630 * tree-data-ref.c (split_constant_offset_1): Likewise.
631 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
632 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
634 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
635 (dump_access): Print new fields.
636 (create_access): Adjust call to get_ref_base_and_extent and set the
637 REVERSE flag according to the result.
638 (completely_scalarize_record): Set the REVERSE flag.
639 (scalarize_elem): Add REVERSE parameter.
640 (build_access_from_expr_1): Preserve storage order barriers.
641 (build_accesses_from_assign): Likewise.
642 (build_ref_for_offset): Add REVERSE parameter and set the
643 REF_REVERSE_STORAGE_ORDER flag accordingly.
644 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
645 the REF_REVERSE_STORAGE_ORDER flag if there are components.
646 (analyze_access_subtree): Likewise.
647 (create_artificial_child_access): Set the REVERSE flag.
648 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
649 (turn_representatives_into_adjustments): Propagate REVERSE flag.
650 (ipa_sra_check_caller): Adjust call to get_inner_reference.
651 * tree-ssa-alias.c (ao_ref_base): Adjust call to
652 get_ref_base_and_extent.
653 (aliasing_component_refs_p): Likewise.
654 (stmt_kills_ref_p_1): Likewise.
655 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
656 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
657 Return true if reverse storage order.
658 <BIT_FIELD_REF>: Likewise.
659 <COMPONENT_REF>: Likewise.
660 <ARRAY_REF>: Likewise.
661 <ARRAY_RANGE_REF>: Likewise.
662 (split_address_cost): Likewise. Bail out if reverse storage order.
663 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
664 get_inner_reference. Bail out if reverse storage order.
665 (bswap_replace): Adjust call to get_inner_reference.
666 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
667 the REF_REVERSE_STORAGE_ORDER flag.
668 <BIT_FIELD_REF>: Likewise.
669 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
671 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
672 to the REF_REVERSE_STORAGE_ORDER flag.
673 <BIT_FIELD_REF>: Likewise.
674 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
675 (contains_storage_order_barrier_p): New predicate.
676 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
677 Punt on storage order barriers if necessary.
678 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
679 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
680 call to get_ref_base_and_extent.
681 (do_structure_copy): Likewise.
682 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
684 (vect_analyze_data_refs): Likewise. Bail out if reverse storage
686 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
687 * ubsan.c (instrument_bool_enum_load): Likewise.
688 (instrument_object_size): Likewise.
689 * var-tracking.c (track_expr_p): Adjust call to
690 get_ref_base_and_extent
691 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
693 * config/s390/s390.c (s390_expand_atomic): Adjust call to
695 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
697 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
699 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
701 * config/sparc/sparc.opt (mfix-at697f): Add final period.
703 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
705 PR rtl-optimization/67864
706 * common/config/i386/i386-common.c (ix86_option_optimization_table)
707 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
710 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
712 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
715 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
717 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
718 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
720 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
722 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
723 * internal-fn.c: Don't undef it here.
724 * tree-core.h: Likewise.
726 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
728 * builtins.c (fold_builtin_nan): Delete.
729 (fold_builtin_memcmp): Remove case where both arguments are constant.
730 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
731 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
732 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
733 * fold-const-call.c: Include fold-const.h.
734 (host_size_t_cst_p): New function.
735 (build_cmp_result, fold_const_builtin_nan): Likewise.
736 (fold_const_call_1): New function, split out from...
737 (fold_const_call): ...here (for all three interfaces). Handle
738 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
740 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
742 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
743 (fold_builtin_1): Don't call them.
744 * fold-const-call.c: Include tm.h.
745 (fold_const_call_ss): New variant for integer-to-integer folds.
746 (fold_const_call): Call it.
748 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
750 * builtins.c (fold_builtin_classify): Move constant cases to...
751 * fold-const-call.c (fold_const_call_ss): ...here.
753 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
755 * builtins.h (c_getstr): Move to...
756 * fold-const.h (c_getstr): ...here.
757 * builtins.c (c_getstr): Move to...
758 * fold-const.c (c_getstr): ...here.
760 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
762 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
763 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
765 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
767 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
768 the dominance info; free it if we can't.
769 (pass_call_cdce::execute): Don't free the dominance info here.
771 2015-11-06 Jeff Law <law@redhat.com>
773 * tree-ssa-threadedge.c (dummy_simplify): Remove.
774 (thread_around_empty_blocks): Remove backedge_seen_p argument.
775 If we thread to a backedge, then return false. Update recursive
776 call to eliminate backedge_seen_p argument.
777 (thread_through_normal_block): Remove backedge_seen_p argument.
778 Remove backedge_seen_p argument from calls to
779 thread_around_empty_blocks. Remove checks on backedge_seen_p.
780 If we thread to a backedge, then return 0.
781 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
782 pass it to thread_through_normal_block or thread_through_empty_blocks.
783 For joiner handling, if we see a backedge, do not try normal
786 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
788 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
789 * graphite-poly.c (new_scop): Initialize original_schedule.
790 (free_scop): Free original_schedule.
791 * graphite-poly.h (struct scop): Add field original_schedule.
792 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
793 (build_poly_scop): Call build_scop_original_schedule.
795 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
797 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
798 (build_pbb_minimal_scattering_polyhedrons): New.
799 (build_scop_scattering): Remove.
800 (build_scop_minimal_scattering): New.
801 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
802 (build_poly_scop): Call build_scop_minimal_scattering.
804 2015-11-06 Jeff Law <law@redhat.com>
806 * cfg-flags.def (IGNORE): New edge flag.
807 * tree-vrp.c (identify_jump_threads): Mark and clear edges
808 scheduled for removal with EDGE_IGNORE around call into
809 jump threader. Do no thread across edges with EDGE_IGNORE,
810 but do allow threading across those with EDGE_DFS_BACK.
812 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
814 * doc/md.texi (multi-alternative constraints): Don't document
815 alternatives inherently tied to reload for the user documentation.
817 2015-11-06 Michael Collison <michael.collison@linaro.org
818 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
821 2015-08-01 Michael Collison <michael.collison@linaro.org
822 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
824 * config/arm/arm.md (*arm_smin_cmp): New pattern.
825 (*arm_umin_cmp): Likewise.
827 2015-11-06 Jakub Jelinek <jakub@redhat.com>
829 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics
831 * omp-low.c (check_omp_nesting_restrictions): Update for the
832 various new OpenMP 4.5 nesting restrictions, clarified
833 nesting glossary, closely nested region relationship clarified
834 to mean explicit or implicit parallel regions (target/teams),
835 use %</%> or %qs where appropriate.
837 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
838 Sebastian Pop <s.pop@samsung.com>
840 * graphite-scop-detection.c (loop_is_valid_scop): Call
841 optimize_loop_nest_for_speed_p.
843 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
844 Sebastian Pop <s.pop@samsung.com>
846 * graphite-optimize-isl.c (optimize_isl): Call
847 isl_options_set_schedule_maximize_band_depth.
849 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
850 Sebastian Pop <s.pop@samsung.com>
852 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
853 and exit edges should not be a part of irreducible loop.
854 (scop_detection::can_represent_loop_1): Loops should not be
856 (scop_detection::harmful_stmt_in_region): All the basic block
857 should belong to reducible loops.
859 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
861 * config/aarch64/aarch64-simd-builtins.def: Update builtins
862 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
863 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
864 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
865 (aarch64_tbx4v8qi): Rename to...
866 aarch64_tbx4<mode>): ... this.
867 (aarch64_qtbl3<mode>): New pattern.
868 (aarch64_qtbx3<mode>): New pattern.
869 (aarch64_qtbl4<mode>): New pattern.
870 (aarch64_qtbx4<mode>): New pattern.
871 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
872 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
873 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
874 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
875 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
876 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
877 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
878 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
881 2015-11-06 Mike Stump <mikestump@comcast.net>
884 * dwarf2out.c (get_full_len): Return a value based upon the actual
885 precision needed for the value.
886 (add_const_value_attribute): Use a maximal wide-int for
887 CONST_WIDE_INTs, not VOIDmode.
888 (output_die): Don't ever output NULL with printf.
890 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
891 BLKmode nor VOIDmode values.
893 2015-11-06 David Malcolm <dmalcolm@redhat.com>
895 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
897 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
898 * diagnostic-core.h (warning_at_rich_loc): New declaration.
899 (error_at_rich_loc): New declaration.
900 (permerror_at_rich_loc): New declaration.
901 (inform_at_rich_loc): New declaration.
902 * diagnostic-show-locus.c (adjust_line): Delete.
903 (struct point_state): New struct.
904 (class colorizer): New class.
905 (class layout_point): New class.
906 (class layout_range): New class.
907 (struct line_bounds): New.
908 (class layout): New class.
909 (colorizer::colorizer): New ctor.
910 (colorizer::~colorizer): New dtor.
911 (layout::layout): New ctor.
912 (layout::print_source_line): New method.
913 (layout::print_annotation_line): New method.
914 (layout::get_state_at_point): New method.
915 (layout::get_x_bound_for_row): New method.
916 (diagnostic_show_locus): Reimplement in terms of class layout.
917 (diagnostic_print_caret_line): Delete.
918 * diagnostic.c (diagnostic_initialize): Replace
919 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
920 (diagnostic_set_info_translated): Convert param from location_t
921 to rich_location *. Eliminate calls to set_location on the
922 message in favor of storing the rich_location ptr there.
923 (diagnostic_set_info): Convert param from location_t to
925 (diagnostic_build_prefix): Break out array into...
926 (diagnostic_kind_color): New variable.
927 (diagnostic_get_color_for_kind): New function.
928 (diagnostic_report_diagnostic): Colorize the option_text
929 using the color for the severity.
930 (diagnostic_append_note): Update for change in signature of
932 (diagnostic_append_note_at_rich_loc): New function.
933 (emit_diagnostic): Update for change in signature of
936 (inform_at_rich_loc): New function.
937 (inform_n): Update for change in signature of diagnostic_set_info.
939 (warning_at): Likewise.
940 (warning_at_rich_loc): New function.
941 (warning_n): Update for change in signature of diagnostic_set_info.
943 (permerror): Likewise.
944 (permerror_at_rich_loc): New function.
945 (error): Update for change in signature of diagnostic_set_info.
947 (error_at): Likewise.
948 (error_at_rich_loc): New function.
949 (sorry): Update for change in signature of diagnostic_set_info.
950 (fatal_error): Likewise.
951 (internal_error): Likewise.
952 (internal_error_no_backtrace): Likewise.
953 (source_range::debug): New function.
954 * diagnostic.h (struct diagnostic_info): Eliminate field
955 "override_column". Add field "richloc".
956 (struct diagnostic_context): Add field "colorize_source_p".
957 (diagnostic_override_column): Delete.
958 (diagnostic_set_info): Convert param from location_t to
960 (diagnostic_set_info_translated): Likewise.
961 (diagnostic_append_note_at_rich_loc): New function.
962 (diagnostic_num_locations): New function.
963 (diagnostic_expand_location): Get the location from the
965 (diagnostic_print_caret_line): Delete.
966 (diagnostic_get_color_for_kind): New declaration.
967 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
968 (error_cb): Update for change in signature of "error" callback.
969 (fatal_at): Likewise.
970 (warning_at): Likewise.
971 * input.c (linemap_client_expand_location_to_spelling_point): New.
972 * pretty-print.c (text_info::set_range): New method.
973 (text_info::get_location): New method.
974 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
975 (struct text_info): Eliminate "locations" array in favor of
976 "m_richloc", a rich_location *.
977 (textinfo::set_location): Add a "caret_p" param, and reimplement
978 in terms of a call to set_range.
979 (textinfo::get_location): Eliminate inline implementation in favor of
980 an out-of-line reimplementation.
981 (textinfo::set_range): New method.
982 * rtl-error.c (diagnostic_for_asm): Update for change in signature
983 of diagnostic_set_info.
984 * tree-diagnostic.c (default_tree_printer): Update for new
985 "caret_p" param for textinfo::set_location.
986 * tree-pretty-print.c (percent_K_format): Likewise.
988 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
991 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
992 * config/aarch64/aarch64.c
993 (aarch64_can_use_per_function_literal_pools_p): New.
994 (aarch64_use_blocks_for_constant_p): Adjust declaration
995 and use aarch64_can_use_function_literal_pools_p.
996 (aarch64_select_rtx_section): Update.
998 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1000 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
1001 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
1002 (arm_output_multireg_pop): Likewise.
1003 (output_move_double): Likewise.
1004 (output_move_quad): Likewise.
1005 (output_return_instruction): Likewise.
1006 (arm_print_operand): Remove support for %( and %. print modifiers.
1007 (arm_output_shift): Make unified asm.
1008 (arm_declare_function_name): Likewise.
1009 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
1010 (ASM_APP_OFF): Adjust.
1011 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
1012 (ASM_OUTPUT_REG_POP): Likewise.
1013 * config/arm/arm.md: Adjust uses of %., %(, %)
1014 * config/arm/sync.md: Likewise.
1015 * config/arm/thumb2.md: Likewise.
1016 * config/arm/ldmstm.md: Regenerate.
1017 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
1018 * doc/invoke.texi (masm-unified-syntax): Update documentation.
1020 2015-11-06 David Malcolm <dmalcolm@redhat.com>
1022 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
1024 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1026 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
1027 add OEP_MATCH_SIDE_EFFECTS.
1028 * fold-const.c (operand_equal_p): Update documentation; handle
1029 OEP_MATCH_SIDE_EFFECTS.
1030 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
1031 OEP_MATCH_SIDE_EFFECTS.
1033 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
1034 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
1036 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
1037 * config/aarch64/aarch64-protos.h: Declare.
1038 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
1040 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
1041 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation code when
1043 * config/aarch64/aarch64.md: Added enum entries.
1044 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
1045 * testsuite/gcc.target/aarch64/rsqrt_asm_check_common.h: Common macros for
1047 * testsuite/gcc.target/aarch64/rsqrt_asm_check_negative_1.c: Make sure
1048 frsqrts and frsqrte are not emitted.
1049 * testsuite/gcc.target/aarch64/rsqrt_asm_check_1.c: Make sure frsqrts and
1050 frsqrte are emitted.
1051 * testsuite/gcc.target/aarch64/rsqrt_1.c: Functional tests for rsqrt.
1053 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
1057 * ipa-polymorphic-call.c
1058 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
1059 issue when offset is out of range.
1060 (contains_type_p): Fix out of range check, clear dynamic flag.
1062 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
1064 * config.gcc (e6500): Fix cpu_is_64bit typo.
1066 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
1068 * tree-sra.c (completely_scalarize): Properly handle negative array
1069 indices using offset_int.
1071 2015-11-06 Richard Biener <rguenther@suse.de>
1073 * alloc-pool.h (object_allocator::allocate): Default-initialize
1076 2015-11-06 Richard Biener <rguenther@suse.de>
1078 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
1079 * lra.c (init_reg_info): Truncate copy_vec instead of
1080 re-allocating a new one and leaking the old.
1081 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
1083 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
1084 * postreload-gcse.c (free_mem): Free modify_mem_list and
1085 canon_modify_mem_list.
1087 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
1089 PR tree-optimization/68145
1090 * tree-vect-stmts.c (vectorizable_operation): Fix
1091 determination for booleans.
1093 2015-11-06 Tom de Vries <tom@codesourcery.com>
1095 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
1096 cond_jump, instead of split after last nondebug insn before cond_jump.
1097 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
1100 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1103 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
1104 subregs from accumulator and make sure it's a register.
1106 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
1108 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
1110 (reduc_uplus_<mode>): Remove.
1111 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
1112 loongson_extract_lo_<mode>.
1113 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
1114 reduc_smax_<mode>, reduc_smax_<mode>, use vec
1115 loongson_extract_lo_<mode>.
1116 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
1118 2015-11-06 Richard Biener <rguenther@suse.de>
1120 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
1122 (vect_stmt_in_region_p): Declare.
1123 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
1124 (destroy_bb_vec_info): Likewise.
1125 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
1126 (vect_get_and_check_slp_defs): Likewise.
1127 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
1128 (vect_slp_bb): Likewise.
1129 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
1130 in terms of vect_stmt_in_region_p.
1131 (vect_pattern_recog): Iterate over the BB region.
1132 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
1133 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
1134 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
1135 * config/i386/i386.c: Include gimple-iterator.h.
1136 * config/aarch64/aarch64.c: Likewise.
1138 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
1140 PR rtl-optimization/67753
1141 PR rtl-optimization/64164
1142 * function.c (assign_parm_setup_block): Avoid allocating a
1143 stack slot if we don't have an ABI-reserved one. Emit the
1144 copy to target_reg in the conversion seq if the copy from
1145 entry_parm is in it too. Don't use the conversion seq to copy
1146 a PARALLEL to a REG or a CONCAT.
1148 2015-11-06 Richard Biener <rguenther@suse.de>
1150 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
1153 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
1154 Thomas Schwinge <thomas@codesourcery.com>
1155 James Norris <jnorris@codesourcery.com>
1158 * gimplify.c (gimplify_scan_omp_clauses): Add support for
1159 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
1160 (gimplify_adjust_omp_clauses): Likewise.
1161 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
1162 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
1163 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
1164 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
1165 (omp_clause_code_name): Likewise.
1166 (walk_tree_1): Handle OMP_CLAUSE_TILE.
1167 * tree.h (OMP_TILE_LIST): New macro.
1169 2015-11-05 Martin Sebor <msebor@redhat.com>
1172 * doc/invoke.texi (-Wplacement-new): Document new option.
1174 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
1176 PR tree-optimization/65963
1177 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
1178 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
1180 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
1182 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
1183 (noce_convert_multiple_sets): Likewise.
1184 (noce_process_if_block): Call them.
1186 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
1188 * gimple-fold.c: Include omp-low.h.
1189 (fold_internal_goacc_dim): New.
1190 (gimple_fold_call): Call it.
1192 2015-11-05 Jakub Jelinek <jakub@redhat.com>
1193 Ilya Verbin <ilya.verbin@intel.com>
1196 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
1197 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
1198 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
1199 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
1200 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
1201 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
1202 (struct cgraph_simd_clone_arg): Adjust comment.
1203 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
1204 to GOMP_target_ext. Add num_teams and thread_limit arguments.
1205 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
1206 to GOMP_target_data_ext.
1207 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
1208 to GOMP_target_update_ext.
1209 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
1210 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
1211 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
1212 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
1213 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
1214 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
1215 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
1216 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
1217 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
1218 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
1219 * tree-core.h (enum omp_clause_schedule_kind): Add
1220 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
1221 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
1222 OMP_CLAUSE_SCHEDULE_LAST value.
1223 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
1224 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
1225 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
1226 OMP_FOR_CHECK. Remove comment.
1227 * tree-pretty-print.c (dump_omp_clause): Handle
1228 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
1229 Simplify. Print schedule clause modifiers.
1230 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
1231 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
1233 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
1234 (omp_default_clause): Tweak for
1235 private/firstprivate/is_device_ptr variables on target
1236 construct and use_device_ptr on target data.
1237 (omp_check_private): Likewise.
1238 (omp_notice_variable): For references check whether what it refers
1239 to has mappable type, rather than the reference itself.
1240 (omp_is_private): Diagnose linear iteration variables on non-simd
1242 (omp_no_lastprivate): Return true only for Fortran.
1243 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
1244 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
1245 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
1246 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
1247 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
1248 lastprivate and linear when combined with distribute. Gimplify
1249 variable low-bound for array reduction. Look through
1250 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
1252 (gimplify_adjust_omp_clauses_1): For implicit references to
1253 variables with reference type and when not ref to scalar or
1254 ref to pointer, map what they refer to using tofrom and
1255 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
1256 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
1257 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
1258 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
1259 Diagnose the same var on both firstprivate and lastprivate on
1260 distribute construct.
1261 (gimplify_omp_for): Fix up handling of predetermined
1262 lastprivate or linear iter vars when combined with distribute.
1263 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
1265 (gimplify_omp_workshare): Call optimize_target_teams.
1266 * omp-low.c (struct omp_region): Add sched_modifiers field.
1267 (struct omp_for_data): Likewise.
1268 (omp_any_child_fn_dumped): New variable.
1269 (extract_omp_for_data): Fill in sched_modifiers, and mask out
1270 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
1272 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
1273 bits of OMP_CLAUSE_SCHED_KIND.
1274 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
1275 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
1276 for array section reductions.
1277 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
1278 for distribute parallel for, if there are lastprivate clauses on the
1280 (lower_rec_input_clauses): Handle non-zero low-bound on array
1282 (lower_reduction_clauses): Likewise.
1283 (lower_send_clauses): Look through POINTER_PLUS_EXPR
1284 for array section reductions.
1285 (expand_parallel_call): Use nonmonotonic entrypoints for
1286 nonmonotonic: dynamic/guided.
1287 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
1288 child_fn if current_function_decl has assembler name set, but child_fn
1289 does not. Dump the header and IL of the child function when not in SSA
1291 (expand_omp_target): Likewise. Pass num_teams and thread_limit
1292 arguments to BUILT_IN_GOMP_TARGET.
1293 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
1294 Initialize the extra _looptemp_ clause to fd->loop.n2.
1295 (expand_omp_for): Use nonmonotonic entrypoints for
1296 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
1297 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
1298 again if we have dumped any child functions.
1299 (lower_omp_for_lastprivate): Determine the right count variable
1300 for distribute simd, or distribute parallel for{, simd}.
1301 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
1302 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
1304 (simd_clone_clauses_extract): Handle variable step
1305 for references and arguments passed by reference.
1306 (simd_clone_mangle): Mangle ref/uval/val variable steps.
1307 (simd_clone_adjust_argument_types): Handle
1308 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
1309 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
1310 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
1311 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
1312 (simd_clone_linear_addend): New function.
1313 (simd_clone_adjust): Handle variable step like similarly
1314 to constant step, use simd_clone_linear_addend to determine
1315 the actual step at runtime.
1317 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
1319 * target.def (goacc.dim_limit): New hook.
1320 * targhooks.h (default_goacc_dim_limit): Declare.
1321 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
1322 * doc/tm.texi: Rebuilt.
1323 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
1324 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
1325 (default_goacc_dim_limit): New.
1326 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1327 (nvptx_goacc_dim_limit) New.
1328 (TARGET_GOACC_DIM_LIMIT): Override.
1329 * tree-vrp.c: Include omp-low.h, target.h.
1330 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
1333 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1335 * tree-vect-generic.c (do_compare): Use -1 for true
1336 result instead of 1.
1338 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1340 * config/aarch64/aarch64.c
1341 (aarch64_can_use_per_function_literal_pools_p): New.
1342 (aarch64_use_blocks_for_constant_p): Adjust declaration
1343 and use aarch64_can_use_function_literal_pools_p.
1344 (aarch64_select_rtx_section): Update.
1346 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
1348 * targhooks.c (default_get_mask_mode): Use BLKmode in
1349 case target doesn't support required vector mode.
1350 * stor-layout.c (layout_type); Check for BLKmode.
1352 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
1353 Sebastian Pop <s.pop@samsung.com>
1355 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
1356 Remove use of parameter_rename_map.
1358 (copy_internal_parameters): Remove.
1359 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
1360 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
1361 (free_sese_info): Do not free parameter_rename_map.
1362 (set_rename): Do not use parameter_rename_map.
1363 (rename_uses): Update call to set_rename.
1364 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
1365 * sese.h (parameter_rename_map_t): Remove.
1366 (struct sese_info_t): Remove field parameter_rename_map.
1368 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
1369 Sebastian Pop <s.pop@samsung.com>
1371 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
1372 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
1373 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
1374 anonymous namespace.
1375 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
1376 (isl_id_for_pbb): Use a buffer of size 10.
1377 (isl_id_for_ssa_name): Same.
1378 * sese.c (set_rename): Add more dumps.
1380 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1382 * omp-low.c (struct omp_context): Remove reduction_map field.
1383 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
1384 (new_omp_context, delete_omp_context, scan_omp_target): Remove
1385 reduction_map handling.
1386 (lower_omp_target): Remove obsolete openacc reduction handling.
1388 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1390 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
1392 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1393 Cesar Philippidis <cesar@codesourcery.com>
1395 * config/nvptx/nvptx.c: Include gimple headers.
1396 (worker_red_size, worker_red_align, worker_red_name,
1397 worker_red_sym): New.
1398 (nvptx_option_override): Initialize worker reduction buffer.
1399 (nvptx_file_end): Write out worker reduction buffer var.
1400 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
1401 nvptx_expand_cmp_swap): New builtin expanders.
1402 (enum nvptx_builtins): New.
1403 (nvptx_builtin_decls): New.
1404 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
1405 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
1406 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
1407 nvptx_lockless_update): New helpers.
1408 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
1409 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
1410 (nvptx_goacc_reduction): New.
1411 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
1412 TARGET_BUILTIN_DECL): Override.
1413 (TARGET_GOACC_REDUCTION): Override.
1415 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
1416 Cesar Philippidis <cesar@codesourcery.com>
1418 * internal-fn.def (GOACC_REDUCTION): New.
1419 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
1420 * internal-fn.c (expand_GOACC_REDUCTION): New.
1421 * target.def (goacc.reduction): New OpenACC hook.
1422 * targhooks.h (default_goacc_reduction): Declare.
1423 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
1424 * doc/tm.texi: Rebuilt.
1425 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
1426 scan_sharing_clauses): Remove oacc reduction handling here.
1427 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
1428 (oacc_lower_reduction_var_helper): Delete.
1429 (lower_oacc_reductions): New.
1430 (lower_reduction_clauses): Don't handle OpenACC reductions here.
1431 (lower_oacc_head_tail): Call lower_oacc_reductions.
1432 (oacc_gimple_assign, oacc_init_reduction_array,
1433 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
1434 oacc_process_reduction_data): Delete.
1435 (lower_omp_target): Remove old OpenACC reduction handling. Insert
1436 dummy OpenACC gang reduction for reductions at outer level.
1437 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
1438 (default_goacc_reduction): New.
1439 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
1441 2015-11-04 Martin Liska <mliska@suse.cz>
1443 * cgraphunit.c (cgraph_node::expand_thunk): Call
1444 allocate_struct_function before init_function_start.
1445 (cgraph_node::expand): Use push_cfun and pop_cfun.
1446 * config/i386/i386.c (ix86_code_end): Call
1447 allocate_struct_function before init_function_start.
1448 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
1449 * function.c (init_function_start): Move preamble to all
1451 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
1452 (execute_one_pass): Handle newly added TODO_discard_function.
1453 (execute_pass_list_1): Terminate if cfun equals to NULL.
1454 (execute_pass_list): Do not push and pop cfun, expect that
1456 * tree-pass.h (TODO_discard_function): Define.
1458 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
1460 * cfganal.c (inverted_post_order_compute): Remove conditional
1461 compilation, use flag_checking.
1462 * config.in: Regenerate.
1463 * configure: Regenerate.
1464 * configure.ac: Remove ENABLE_CHECKING.
1465 * genconditions.c: Do not #undef ENABLE_CHECKING.
1466 * sese.h (bb_in_region): Comment out broken check.
1467 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
1468 conditional compilation, use flag_checking.
1470 2015-11-04 Tom de Vries <tom@codesourcery.com>
1472 PR tree-optimization/67742
1473 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
1475 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
1476 (create_variable_info_for_1): Add and handle handle_param parameter.
1477 Add restrict handling.
1478 (create_variable_info_for): Call create_variable_info_for_1 with extra
1480 (make_param_constraints): Drop restrict_name parameter. Ignore
1481 vi->only_restrict_pointers.
1482 (intra_create_variable_infos): Call create_variable_info_for_1 with
1483 extra arg. Remove restrict handling. Call make_param_constraints with
1486 2015-11-04 Tom de Vries <tom@codesourcery.com>
1488 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
1491 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1493 * config/arm/coff.h: Remove.
1495 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
1497 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
1498 check for aggregate types and beef up comment for mode check.
1500 2015-11-03 Richard Biener <rguenther@suse.de>
1502 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
1503 data references here.
1504 * tree-vect-loop.c: Include cgraph.h.
1505 (vect_analyze_loop_2): Collect data references here.
1506 * tree-vect-slp.c (find_bb_location): Inline ...
1507 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
1508 Factor in vect_slp_transform_bb.
1509 (vect_slp_transform_bb): Removed.
1510 (vect_slp_analyze_bb_1): Collect data references here.
1511 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
1513 * tree-vectorizer.h (vect_slp_bb): Declare.
1514 (vect_slp_analyze_bb): Remove.
1515 (vect_slp_transform_bb): Remove.
1516 (find_bb_location): Remove.
1517 (vect_analyze_data_refs): Remove stmt count reference parameter.
1519 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
1521 * multiple_target.c (create_dispatcher_calls): Add target check
1523 (create_target_clone): Change assembler name for versioned declarations.
1525 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
1526 Chung-Lin Tang <cltang@codesourcery.com>
1528 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
1529 * omp-low.c (check_omp_nesting_restrictions): Allow
1530 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
1533 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
1535 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
1536 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
1537 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
1539 (vmulxq_f32): Likewise.
1541 (vmulxq_f64): Rewrite to call fmulx builtin.
1542 (vmulxs_f32): Likewise.
1543 (vmulxd_f64): Likewise.
1544 (vmulx_lane_f32): Remove.
1545 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
1547 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
1549 * config/aarch64/aarch64.md (*movhf_aarch64): Use
1550 aarch64_reg_or_fp_zero for second operand.
1552 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
1554 * gimple-expr.c: Include hash-set.h and rtl.h.
1555 (mark_addressable_queue): New var.
1556 (mark_addressable): Factor actual marking into...
1557 (mark_addressable_1): ... this. Queue it up during expand.
1558 (mark_addressable_2): New.
1559 (flush_mark_addressable_queue): New.
1560 * gimple-expr.h (flush_mark_addressable_queue): Declare.
1561 * cfgexpand.c: Include gimple-expr.h.
1562 (pass_expand::execute): Flush mark_addressable queue.
1564 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
1566 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
1567 bb_no_side_effects_p tests...
1568 (tree_ssa_ifcombine_bb): ... here.
1570 PR tree-optimization/68083
1571 * tree-ssa-ifcombine.c: Include tree-ssa.h.
1572 (bb_no_side_effects_p): Test for undefined uses too.
1573 * tree-ssa.c (gimple_uses_undefined_value_p): New.
1574 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
1576 2015-11-02 Jeff Law <law@redhat.com>
1578 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
1579 cases where the loop latch edge is in the middle of an FSM path.
1581 2015-11-03 Tom de Vries <tom@codesourcery.com>
1583 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
1584 (make_param_constraints): ... this. Add and handle restrict_name
1585 parameter. Handle is_full_var case.
1586 (intra_create_variable_infos): Use make_param_constraints.
1588 2015-11-03 Tom de Vries <tom@codesourcery.com>
1590 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
1591 make_copy_constraint call with make_constraint_from call.
1593 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
1595 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
1598 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
1600 * builtins.h (fold_fma): Move to fold-const-call.h.
1601 * builtins.c: Include fold-const-call.h.
1602 (mathfn_built_in_2): New function, split out from...
1603 (mathfn_built_in_1): ...here.
1604 (do_real_to_int_conversion, fold_const_builtin_pow)
1605 (fold_const_builtin_logb, fold_const_builtin_significand)
1606 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
1607 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
1608 (fold_builtin_sincos): Use fold_const_call to handle constants.
1609 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
1610 checks for ERROR_MARK. Use fold_const_call to handle constant
1611 folds for math functions.
1612 (fold_fma): Move to fold-const-call.c.
1613 * fold-const.c: Include fold-const-call.h.
1614 * Makefile.in (OBJS): Add fold-const-call.o.
1615 (PLUGIN_HEADERS): Add fold-const-call.h.
1616 * realmpfr.h (real_from_mpfr): Allow the format to be specified
1618 * realmpfr.c (real_from_mpfr): Likewise.
1619 * fold-const-call.h, fold-const-call.c: New files.
1621 2015-11-02 Julian Brown <julian@codesourcery.com>
1623 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
1624 brackets and semicolon.
1626 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
1629 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
1631 PR tree-optimization/65963
1632 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
1633 LSHIFT_EXPRs as equivalent MULT_EXPRs.
1635 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
1638 * fold-const.c: Include "md5.h".
1640 2015-11-01 Jeff Law <law@redhat.com>
1642 * vmsdbgout.c: Revert unused header file reduction patch.
1644 * config/mcore/mcore.c: Include regs.h.
1646 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
1648 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
1650 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
1652 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
1653 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
1654 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
1656 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
1658 * ggc-common.c: Restore needed header for checking=release.
1660 2015-10-31 Tom de Vries <tom@codesourcery.com>
1662 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
1664 2015-10-31 Tom de Vries <tom@codesourcery.com>
1666 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
1667 existing varinfo for arguments.
1669 2015-10-31 Tom de Vries <tom@codesourcery.com>
1671 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
1672 create_function_info_for. Dump constraints generated during
1673 create_function_info_for. Move intra_create_variable_infos call and
1674 function-return-values-escape bit to ...
1675 (create_function_info_for): ... here, and merge
1676 intra_create_variable_infos call with argument loop. Add and handle
1677 nonlocal_p parameter.
1679 2015-10-31 Tom de Vries <tom@codesourcery.com>
1681 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
1682 updating is alap, and seperated from preceding code. Make sure
1683 insert_vi_for_tree is seperated from surrounding code.
1685 2015-10-31 Tom de Vries <tom@codesourcery.com>
1687 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
1689 2015-10-30 Jeff Law <law@redhat.com>
1690 Nathan Sidwell <nathan@acm.org>
1692 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
1694 (MOVE_MAX): Set to 8.
1696 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
1698 * cgraph.c: Include context.h for offloading.
1699 * varpool.c: Include context.h and omp-low.h.
1701 2015-10-30 Anatoly Sokolov <aesok@post.ru>
1703 * rtl.h (contains_symbol_ref_p): Declare.
1704 (SYMBOL_REF_P): Define.
1705 * rtlanal.c (contains_symbol_ref_p: New function.
1706 * lra-constraints.c (contains_symbol_ref_p): Remove.
1707 * var-tracking.c (contains_symbol_ref): Remove.
1708 (track_expr_p): Use contains_symbol_ref_p instead of
1709 contains_symbol_ref.
1711 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
1713 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
1714 * fold-const.c (get_array_ctor_element_at_index): New.
1715 (fold): Remove binary-search through CONSTRUCTOR, call previous.
1717 * fold-const.h (get_array_ctor_element_at_index): New.
1719 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
1721 * Makefile.in (OBJS): Add multiple_target.o.
1722 * attrib.c (make_attribute): Moved from config/i386/i386.c
1723 * config/i386/i386.c (make_attribute): Deleted.
1724 * multiple_target.c (create_dispatcher_calls): New.
1725 (get_attr_len): Ditto.
1726 (get_attr_str): Ditto.
1727 (separate_attrs): Ditto.
1728 (is_valid_asm_symbol): Ditto.
1729 (create_new_asm_name): Ditto.
1730 (create_target_clone): Ditto.
1731 (expand_target_clones): Ditto.
1732 (ipa_target_clone): Ditto.
1733 (ipa_dispatcher_calls): Ditto.
1734 * passes.def (pass_target_clone): Two new ipa passes.
1735 * tree-pass.h (make_pass_target_clone): Ditto.
1736 * doc/extend.texi (target_clones): New attribute description.
1738 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
1740 PR rtl-optimization/68106
1741 * lra-remat.c (input_regno_present_p): Process hard regs
1742 explicitly present in machine description insns.
1743 (call_used_input_regno_present_p): Ditto.
1744 (calculate_gen_cands): Ditto.
1747 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
1749 * config/arm/neon-testgen.ml: Fix comment typo.
1751 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1753 * rtlanal.c (reg_set_p): Expand function comment.
1755 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
1757 * alias.c: Remove unused headers.
1759 * attribs.c: Likewise.
1760 * auto-inc-dec.c: Likewise.
1761 * auto-profile.c: Likewise.
1762 * bb-reorder.c: Likewise.
1763 * bitmap.c: Likewise.
1764 * bt-load.c: Likewise.
1765 * builtins.c: Likewise.
1766 * caller-save.c: Likewise.
1767 * calls.c: Likewise.
1770 * cfganal.c: Likewise.
1771 * cfgbuild.c: Likewise.
1772 * cfgcleanup.c: Likewise.
1773 * cfgexpand.c: Likewise.
1774 * cfghooks.c: Likewise.
1775 * cfgloop.c: Likewise.
1776 * cfgloopanal.c: Likewise.
1777 * cfgloopmanip.c: Likewise.
1778 * cfgrtl.c: Likewise.
1779 * cgraph.c: Likewise.
1780 * cgraphbuild.c: Likewise.
1781 * cgraphclones.c: Likewise.
1782 * cgraphunit.c: Likewise.
1783 * cilk-common.c: Likewise.
1784 * combine-stack-adj.c: Likewise.
1785 * combine.c: Likewise.
1786 * compare-elim.c: Likewise.
1787 * convert.c: Likewise.
1788 * coverage.c: Likewise.
1789 * cppbuiltin.c: Likewise.
1790 * cprop.c: Likewise.
1792 * cselib.c: Likewise.
1793 * data-streamer-in.c: Likewise.
1794 * data-streamer-out.c: Likewise.
1795 * data-streamer.c: Likewise.
1796 * dbxout.c: Likewise.
1799 * debug.c: Likewise.
1800 * df-core.c: Likewise.
1801 * df-problems.c: Likewise.
1802 * df-scan.c: Likewise.
1804 * dojump.c: Likewise.
1805 * dominance.c: Likewise.
1806 * domwalk.c: Likewise.
1807 * double-int.c: Likewise.
1809 * dumpfile.c: Likewise.
1810 * dwarf2asm.c: Likewise.
1811 * dwarf2cfi.c: Likewise.
1812 * dwarf2out.c: Likewise.
1813 * emit-rtl.c: Likewise.
1814 * except.c: Likewise.
1815 * explow.c: Likewise.
1816 * expmed.c: Likewise.
1818 * final.c: Likewise.
1819 * fixed-value.c: Likewise.
1820 * fold-const.c: Likewise.
1821 * function.c: Likewise.
1822 * fwprop.c: Likewise.
1824 * generic-match-head.c: Likewise.
1825 * ggc-common.c: Likewise.
1826 * gimple-builder.c: Likewise.
1827 * gimple-expr.c: Likewise.
1828 * gimple-fold.c: Likewise.
1829 * gimple-iterator.c: Likewise.
1830 * gimple-low.c: Likewise.
1831 * gimple-match-head.c: Likewise.
1832 * gimple-pretty-print.c: Likewise.
1833 * gimple-ssa-isolate-paths.c: Likewise.
1834 * gimple-ssa-strength-reduction.c: Likewise.
1835 * gimple-streamer-in.c: Likewise.
1836 * gimple-streamer-out.c: Likewise.
1837 * gimple-walk.c: Likewise.
1838 * gimple.c: Likewise.
1839 * gimplify-me.c: Likewise.
1840 * gimplify.c: Likewise.
1841 * godump.c: Likewise.
1842 * graph.c: Likewise.
1843 * graphds.c: Likewise.
1844 * haifa-sched.c: Likewise.
1845 * hw-doloop.c: Likewise.
1846 * ifcvt.c: Likewise.
1847 * init-regs.c: Likewise.
1848 * internal-fn.c: Likewise.
1849 * ipa-chkp.c: Likewise.
1850 * ipa-comdats.c: Likewise.
1851 * ipa-cp.c: Likewise.
1852 * ipa-devirt.c: Likewise.
1853 * ipa-icf-gimple.c: Likewise.
1854 * ipa-icf.c: Likewise.
1855 * ipa-inline-analysis.c: Likewise.
1856 * ipa-inline-transform.c: Likewise.
1857 * ipa-inline.c: Likewise.
1858 * ipa-polymorphic-call.c: Likewise.
1859 * ipa-profile.c: Likewise.
1860 * ipa-prop.c: Likewise.
1861 * ipa-pure-const.c: Likewise.
1862 * ipa-ref.c: Likewise.
1863 * ipa-reference.c: Likewise.
1864 * ipa-split.c: Likewise.
1865 * ipa-utils.c: Likewise.
1866 * ipa-visibility.c: Likewise.
1868 * ira-build.c: Likewise.
1869 * ira-color.c: Likewise.
1870 * ira-conflicts.c: Likewise.
1871 * ira-costs.c: Likewise.
1872 * ira-emit.c: Likewise.
1873 * ira-lives.c: Likewise.
1876 * langhooks.c: Likewise.
1878 * lists.c: Likewise.
1879 * loop-doloop.c: Likewise.
1880 * loop-init.c: Likewise.
1881 * loop-invariant.c: Likewise.
1882 * loop-iv.c: Likewise.
1883 * loop-unroll.c: Likewise.
1884 * lower-subreg.c: Likewise.
1885 * lra-assigns.c: Likewise.
1886 * lra-coalesce.c: Likewise.
1887 * lra-constraints.c: Likewise.
1888 * lra-eliminations.c: Likewise.
1889 * lra-lives.c: Likewise.
1890 * lra-remat.c: Likewise.
1891 * lra-spills.c: Likewise.
1893 * lto-cgraph.c: Likewise.
1894 * lto-compress.c: Likewise.
1895 * lto-opts.c: Likewise.
1896 * lto-section-in.c: Likewise.
1897 * lto-section-out.c: Likewise.
1898 * lto-streamer-in.c: Likewise.
1899 * lto-streamer-out.c: Likewise.
1900 * lto-streamer.c: Likewise.
1902 * mode-switching.c: Likewise.
1903 * modulo-sched.c: Likewise.
1904 * optabs.c: Likewise.
1905 * opts-global.c: Likewise.
1906 * passes.c: Likewise.
1907 * plugin.c: Likewise.
1908 * postreload-gcse.c: Likewise.
1909 * postreload.c: Likewise.
1910 * predict.c: Likewise.
1911 * print-tree.c: Likewise.
1912 * profile.c: Likewise.
1914 * realmpfr.c: Likewise.
1915 * recog.c: Likewise.
1917 * reg-stack.c: Likewise.
1918 * regcprop.c: Likewise.
1919 * reginfo.c: Likewise.
1920 * regrename.c: Likewise.
1921 * regstat.c: Likewise.
1922 * reload.c: Likewise.
1923 * reload1.c: Likewise.
1924 * reorg.c: Likewise.
1925 * resource.c: Likewise.
1926 * rtl-chkp.c: Likewise.
1927 * rtl-error.c: Likewise.
1928 * rtlanal.c: Likewise.
1929 * rtlhooks.c: Likewise.
1930 * sanopt.c: Likewise.
1931 * sched-deps.c: Likewise.
1932 * sched-ebb.c: Likewise.
1933 * sched-rgn.c: Likewise.
1934 * sdbout.c: Likewise.
1935 * sel-sched-dump.c: Likewise.
1936 * sel-sched-ir.c: Likewise.
1937 * sel-sched.c: Likewise.
1939 * shrink-wrap.c: Likewise.
1940 * simplify-rtx.c: Likewise.
1941 * stack-ptr-mod.c: Likewise.
1942 * statistics.c: Likewise.
1944 * stor-layout.c: Likewise.
1945 * store-motion.c: Likewise.
1946 * stringpool.c: Likewise.
1947 * symtab.c: Likewise.
1948 * target-globals.c: Likewise.
1949 * targhooks.c: Likewise.
1950 * toplev.c: Likewise.
1951 * tracer.c: Likewise.
1952 * trans-mem.c: Likewise.
1953 * tree-affine.c: Likewise.
1954 * tree-call-cdce.c: Likewise.
1955 * tree-cfg.c: Likewise.
1956 * tree-cfgcleanup.c: Likewise.
1957 * tree-chkp-opt.c: Likewise.
1958 * tree-chkp.c: Likewise.
1959 * tree-chrec.c: Likewise.
1960 * tree-complex.c: Likewise.
1961 * tree-data-ref.c: Likewise.
1962 * tree-dfa.c: Likewise.
1963 * tree-diagnostic.c: Likewise.
1964 * tree-dump.c: Likewise.
1965 * tree-eh.c: Likewise.
1966 * tree-emutls.c: Likewise.
1967 * tree-if-conv.c: Likewise.
1968 * tree-inline.c: Likewise.
1969 * tree-into-ssa.c: Likewise.
1970 * tree-iterator.c: Likewise.
1971 * tree-loop-distribution.c: Likewise.
1972 * tree-nested.c: Likewise.
1973 * tree-nrv.c: Likewise.
1974 * tree-object-size.c: Likewise.
1975 * tree-outof-ssa.c: Likewise.
1976 * tree-parloops.c: Likewise.
1977 * tree-phinodes.c: Likewise.
1978 * tree-predcom.c: Likewise.
1979 * tree-pretty-print.c: Likewise.
1980 * tree-profile.c: Likewise.
1981 * tree-scalar-evolution.c: Likewise.
1982 * tree-sra.c: Likewise.
1983 * tree-ssa-address.c: Likewise.
1984 * tree-ssa-alias.c: Likewise.
1985 * tree-ssa-ccp.c: Likewise.
1986 * tree-ssa-coalesce.c: Likewise.
1987 * tree-ssa-copy.c: Likewise.
1988 * tree-ssa-dce.c: Likewise.
1989 * tree-ssa-dse.c: Likewise.
1990 * tree-ssa-forwprop.c: Likewise.
1991 * tree-ssa-ifcombine.c: Likewise.
1992 * tree-ssa-live.c: Likewise.
1993 * tree-ssa-loop-ch.c: Likewise.
1994 * tree-ssa-loop-im.c: Likewise.
1995 * tree-ssa-loop-ivcanon.c: Likewise.
1996 * tree-ssa-loop-ivopts.c: Likewise.
1997 * tree-ssa-loop-manip.c: Likewise.
1998 * tree-ssa-loop-niter.c: Likewise.
1999 * tree-ssa-loop-prefetch.c: Likewise.
2000 * tree-ssa-loop-unswitch.c: Likewise.
2001 * tree-ssa-loop.c: Likewise.
2002 * tree-ssa-math-opts.c: Likewise.
2003 * tree-ssa-operands.c: Likewise.
2004 * tree-ssa-phiopt.c: Likewise.
2005 * tree-ssa-phiprop.c: Likewise.
2006 * tree-ssa-pre.c: Likewise.
2007 * tree-ssa-propagate.c: Likewise.
2008 * tree-ssa-reassoc.c: Likewise.
2009 * tree-ssa-scopedtables.c: Likewise.
2010 * tree-ssa-sink.c: Likewise.
2011 * tree-ssa-strlen.c: Likewise.
2012 * tree-ssa-structalias.c: Likewise.
2013 * tree-ssa-tail-merge.c: Likewise.
2014 * tree-ssa-ter.c: Likewise.
2015 * tree-ssa-threadupdate.c: Likewise.
2016 * tree-ssa-uncprop.c: Likewise.
2017 * tree-ssa-uninit.c: Likewise.
2018 * tree-ssa.c: Likewise.
2019 * tree-ssanames.c: Likewise.
2020 * tree-stdarg.c: Likewise.
2021 * tree-streamer-in.c: Likewise.
2022 * tree-streamer-out.c: Likewise.
2023 * tree-streamer.c: Likewise.
2024 * tree-switch-conversion.c: Likewise.
2025 * tree-tailcall.c: Likewise.
2026 * tree-vect-data-refs.c: Likewise.
2027 * tree-vect-generic.c: Likewise.
2028 * tree-vect-loop-manip.c: Likewise.
2029 * tree-vect-loop.c: Likewise.
2030 * tree-vect-patterns.c: Likewise.
2031 * tree-vect-slp.c: Likewise.
2032 * tree-vect-stmts.c: Likewise.
2033 * tree-vectorizer.c: Likewise.
2034 * tree-vrp.c: Likewise.
2037 * ubsan.c: Likewise.
2038 * value-prof.c: Likewise.
2039 * var-tracking.c: Likewise.
2040 * varasm.c: Likewise.
2041 * varpool.c: Likewise.
2042 * vmsdbgout.c: Likewise.
2043 * vtable-verify.c: Likewise.
2045 * wide-int-print.cc: Likewise.
2046 * wide-int.cc: Likewise.
2047 * xcoffout.c: Likewise.
2049 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
2051 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
2052 between pass numbering and execution order.
2054 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2056 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
2057 check for dependencies.
2059 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2061 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
2064 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2066 * real.h (format_helper): New.
2067 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
2068 (real_from_target, real_nan, real_2expN, real_value_truncate)
2069 (significand_size, real_from_string2, exact_real_inverse)
2070 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
2071 (real_round, real_isinteger, real_from_integer): Replace
2072 machine_mode arguments with format_helper arguments.
2073 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
2074 (real_from_integer, real_nan, real_2expN, real_convert)
2075 (real_value_truncate, exact_real_truncate, real_to_target)
2076 (real_from_target, significand_size, real_powi, real_trunc)
2077 (real_floor, real_ceil, real_round, real_isinteger): Replace
2078 machine_mode arguments with format_helper arguments.
2079 (real_to_target_fmt, real_from_target_fmt): Delete.
2080 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
2081 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
2082 argument with real_format.
2083 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
2085 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2087 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
2088 (fixed_to_decimal, fixed_convert_from_real)
2089 (real_convert_from_fixed): Fix mode arguments to real_2expN.
2091 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
2093 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
2094 SCALAR_FLOAT_MODE_P.
2096 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
2098 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
2099 (completely_scalarize): Comment zero-length arrays.
2100 (get_access_replacement): Correct comment re. precondition.
2102 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
2104 * config/i386/i386.c (get_builtin_code_for_version): Set priority
2105 for PROCESSOR_ZNVER1.
2106 (enum processor_model): Add M_AMDFAM17H_znver1.
2107 (struct arch_names_table): Likewise.
2108 * doc/extend.texi: ADD znver1.
2110 2015-10-30 Richard Biener <rguenther@suse.de>
2112 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
2113 fold () on single RHSs. Allow CONSTRUCTORS with trailing
2114 zeros to be folded to VECTOR_CSTs.
2115 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
2116 * fold-const.c (fold): Use build_vector_from_ctor.
2118 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
2120 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
2121 "mov %0.h[0], %1.h[0] to "neon_move".
2122 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
2123 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
2125 (*cmovsi_insn_uxtw): Likewise.
2127 2015-10-30 Tom de Vries <tom@codesourcery.com>
2129 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
2130 unsigned, and initialize, and use initial value instead of hardcoded
2131 constant. Add generic constraints dumping section. Don't dump global
2132 initializers constraints dumping section if empty. Don't update
2133 variable from if unused.
2135 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
2137 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
2138 flag_checking and/or CHECKING_P to eliminate conditional compilation
2140 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
2141 * config/bfin/bfin.c (hwloop_optimize): Likewise.
2142 * config/i386/i386.c (ix86_print_operand_address): Likewise.
2143 (output_387_binary_op): Likewise.
2144 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
2145 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
2146 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
2148 * config/rs6000/rs6000.h: Likewise.
2149 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
2151 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
2153 * config/sh/sh.opt (mfdpic): Add missing period.
2155 2015-08-29 Anatoly Sokolov <aesok@post.ru>
2157 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
2158 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
2159 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
2160 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
2161 mcore_base_register_rtx_p, mcore_legitimate_index_p,
2162 mcore_legitimate_address_p): New functions.
2163 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
2165 2015-10-29 Jeff Law <law@redhat.com>
2167 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
2169 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
2170 * tree-ssa-threadedge.c
2171 (record_temporary_equivalences_from_stmts_at_dest): Remove
2172 backedge_seen argument and associated code which invalidated
2173 equivalences based on the value of that argument.
2174 (thread_through_normal_block): Corresponding changes.
2176 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
2178 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
2179 function earlier in the file.
2180 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
2181 df_regs_ever_live_p.
2183 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
2185 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
2188 2015-10-29 Richard Henderson <rth@redhat.com>
2192 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
2193 sse check to the exact conditions of PR 67609.
2195 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2197 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
2198 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
2199 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
2200 of the traditional names that TFmode uses for handling IEEE
2201 extended double. If -mfloat128, add KFmode functions for all of
2202 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
2203 make TFmode use the same emulation functions as KFmode.
2204 (init_float128_ibm): Likewise.
2205 (init_float128_ieee): Likewise.
2206 (rs6000_generate_compare): For IEEE 128-bit floating point
2207 comparisons, call the unordered comparison function instead of the
2208 ordered comparison function.
2209 (rs6000_expand_float128_convert): Deal with operands that are
2210 memory operands. Restructure the code to use a switch statement on
2211 the mode. Add support for TFmode defaulting to either IBM extended
2212 double or IEEE 128-bit floating point. If the underlying types are
2213 the same, use a move instead of a conversion function.
2214 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
2215 use for IEEE 128-bit floating point constants with -mfloat128.
2216 (rs6000_c_mode_for_suffix): Likewise.
2217 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
2218 128-bit floating point with IBM extended double floating point.
2219 (rs6000_invalid_binary_op): Likewise.
2220 (rs6000_gen_le_vsx_permute): On little endian systems generate a
2221 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
2222 types that can go in vector registers.
2223 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
2224 point types that can go in vector registers on little endian
2226 (mark_swaps_for_removal): Likewise.
2227 (rs6000_analyze_swaps): Likewise.
2228 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
2230 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
2231 rework IEEE 128-bit floating point insns to deal with TFmode being
2232 either IBM extended double or IEEE 128-bit floating point.
2234 (IBM128): Update iterator to add condition that the mode is IBM
2236 (IEEE128): New iterator for IEEE 128-bit floating point.
2237 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
2238 (FLOAT128): Likewise.
2239 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
2241 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
2242 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
2243 instead of hard coding TFmode or KFmode.
2244 (negtf2_internal): Likewise.
2245 (neg<mode>2_internal): Likewise.
2246 (abs<mode>2): Likewise.
2247 (abstf2_internal): Likewise.
2248 (abs<mode>2_internal): Likewise.
2249 (ieee_128bit_neg<mode>2): Likewise.
2250 (ieee_128bit_neg<mode>2_internal): Likewise.
2251 (ieee_128bit_abs<mode>2): Likewise.
2252 (ieee_128bit_abs<mode>2_internal): Likewise.
2253 (ieee_128bit_nabs<mode>2): Likewise.
2254 (ieee_128bit_nabs<mode>2_internal): Likewise.
2255 (extendiftf2): Add explicit conversions between 128-bit floating
2256 point types. Drop the old conversions that had become unwieldy.
2257 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
2258 (extendifkf2): Likewise.
2259 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
2260 (extendtfkf2): Likewise.
2261 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
2262 (trunciftf2): Likewise.
2263 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
2264 (truncifkf2): Likewise.
2265 (float<SDI:mode><IFKF:mode>2): Likewise.
2266 (trunckftf2): Likewise.
2267 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
2268 (trunctfif2): Likewise.
2269 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
2270 (extenddftf2): Rework 128-bit floating point conversions to
2271 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
2272 KFmode expanders into one function.
2273 (extenddf<mode>2): Likewise.
2274 (extenddftf2_fprs): Likewise.
2275 (extenddf<mode>2_fprs): Likewise.
2276 (extenddftf2_vsx): Likewise.
2277 (extenddf<mode>2_vsx): Likewise.
2278 (extendsftf2): Likewise.
2279 (extendsf<mode>2): Likewise.
2280 (trunctfdf2): Likewise.
2281 (trunc<mode>df2): Likewise.
2282 (trunctfdf2_internal1): Likewise.
2283 (trunc<mode>df2_internal1): Likewise.
2284 (trunctfdf2_internal2): Likewise.
2285 (trunc<mode>df2_internal2): Likewise.
2286 (trunctfsf2): Likewise.
2287 (trunc<mode>sf2): Likewise.
2288 (trunctfsf2_fprs): Likewise.
2289 (trunc<mode>sf2_fprs): Likewise.
2290 (floatsit2f): Likewise.
2291 (floatsi<mode>2): Likewise.
2292 (fix_trunc_helper): Likewise.
2293 (fix_trunc_helper<mode>): Likewise.
2294 (fix_trunctfsi2): Likewise.
2295 (fix_trunc<mode>si2): Likewise.
2296 (fix_trunctfsi2_fprs): Likewise.
2297 (fix_trunc<mode>si2_fprs): Likewise.
2298 (fix_trunctfsi2_internal): Likewise.
2299 (fix_trunc<mode>si2_internal): Likewise.
2300 (fix_trunctfdi2): Likewise.
2301 (fix_trunc<mode>di2): Likewise.
2302 (fixuns_trunctf<mode>2): Likewise.
2303 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
2304 (floatditf2): Likewise.
2305 (floatdi<mode>2): Likewise.
2306 (floatuns<mode>tf2): Likewise.
2307 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
2308 (cmptf_internal1): Use a mode iterator to add support for both
2309 types (IFmode, TFmode) that support IBM extended double.
2310 (cmp<mode>_internal1): Likewise.
2311 (cmptf_internal2): Likewise.
2312 (cmp<mode>_internal2): Likewise.
2314 * doc/extend.texi (Floating Types): Document __ibm128 and
2315 __float128 on PowerPC.
2317 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2318 -mfloat128 and -mno-float128.
2320 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
2322 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
2323 floating point modes that can go in vector registers.
2324 (MODES_TIEABLE_P): Move tests for vector modes before tests for
2325 scalar floating point, so that IEEE 128-bit floating point that
2326 can go in vector registers bind with vectors and not FP.
2327 (struct rs6000_args): Add libcall field.
2329 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
2330 and -mfloat128-software switches. Replace them with a binary
2332 (-mfloat128): Likewise.
2334 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
2335 128-bit floating point types in GPRs, even if the appropriate
2336 option enabling the type was not used.
2337 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
2339 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
2340 pre-decrement on IEEE 128-bit floating point values.
2341 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
2342 is IEEE 128-bit floating point.
2343 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
2344 128-bit floating point types that can go in vector registers.
2345 (rs6000_option_override_internal): Change -mfloat128-none and
2346 -mfloat128-software to -mfloat128, and move code to be near other
2347 VSX option handling.
2348 (rs6000_option_override_internal): Disable -mfloat128 if we don't
2349 have the Altivec ABI.
2350 (rs6000_init_builtins): Don't make TFmode use either IFmode or
2351 KFmode floating point nodes. Instead, have three separate nodes.
2352 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
2353 eventually moving the long double default to IEEE 128-bit floating
2355 (rs6000_opt_masks): Add -mfloat128.
2356 (struct rs6000_opt_var): Fix typo in comment.
2357 (init_cumulative_args): Initialize libcall field in
2359 (rs6000_function_arg): Treat library functions as if they had
2360 prototypes to prevent IEEE 128-bit support functions from passing
2361 arguments in both GPRs and vector registers.
2362 (rs6000_arg_partial_bytes): Likewise.
2364 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
2365 an option that can be turned on via -mcpu=<xxx>.
2367 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
2370 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2371 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
2372 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
2373 double is IBM extended double.
2375 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
2378 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
2380 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
2381 * genconditions.c: Define CHECKING_P in the generated code.
2382 * genextract.c: Use flag_checking in insn_extract.
2383 * gengtype.c (main): Remove conditional compilation.
2384 * gengtype.h: Likewise.
2386 2015-10-29 Jeff Law <law@redhat.com>
2388 PR tree-optimization/67892
2389 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
2391 (thread_through_normal_block): If we have seen a backedge, then
2392 do nothing. No longer call find_jump_threads_backwards here.
2393 (thread_across_edge): Use find_jump_threads_backwards to find
2394 jump threads if the old style threader was not successful.
2395 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
2396 gsi_last_nondebug_bb. Return NULL if the block does not end
2397 with a control statement.
2398 (find_jump_threads_backwards): Setup code moved here from
2399 tree-ssa-threadedge.c::thread_through_normal_block. Accept
2400 single edge argument instead of name & block.
2401 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
2404 2015-10-29 Tom de Vries <tom@codesourcery.com>
2406 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
2409 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
2411 * omp-low.c (lower_omp_target): Remove unreachable code & merge
2414 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
2416 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
2418 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
2420 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2421 guard_bb0 and use guard_bb throughout.
2423 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
2425 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
2428 2015-10-29 Richard Biener <rguenther@suse.de>
2431 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
2434 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
2436 * alias.c: Reorder #include statements and remove duplicates.
2438 * attribs.c: Likewise.
2439 * auto-inc-dec.c: Likewise.
2440 * auto-profile.c: Likewise.
2441 * bb-reorder.c: Likewise.
2442 * bt-load.c: Likewise.
2443 * builtins.c: Likewise.
2444 * caller-save.c: Likewise.
2445 * calls.c: Likewise.
2448 * cfganal.c: Likewise.
2449 * cfgbuild.c: Likewise.
2450 * cfgcleanup.c: Likewise.
2451 * cfgexpand.c: Likewise.
2452 * cfghooks.c: Likewise.
2453 * cfgloop.c: Likewise.
2454 * cfgloopanal.c: Likewise.
2455 * cfgloopmanip.c: Likewise.
2456 * cfgrtl.c: Likewise.
2457 * cgraph.c: Likewise.
2458 * cgraphbuild.c: Likewise.
2459 * cgraphclones.c: Likewise.
2460 * cgraphunit.c: Likewise.
2461 * cilk-common.c: Likewise.
2462 * combine-stack-adj.c: Likewise.
2463 * combine.c: Likewise.
2464 * compare-elim.c: Likewise.
2465 * convert.c: Likewise.
2466 * coverage.c: Likewise.
2467 * cppbuiltin.c: Likewise.
2468 * cprop.c: Likewise.
2470 * cselib.c: Likewise.
2471 * data-streamer-in.c: Likewise.
2472 * data-streamer-out.c: Likewise.
2473 * data-streamer.c: Likewise.
2474 * dbxout.c: Likewise.
2477 * debug.c: Likewise.
2478 * df-core.c: Likewise.
2479 * df-problems.c: Likewise.
2480 * df-scan.c: Likewise.
2482 * dojump.c: Likewise.
2483 * dominance.c: Likewise.
2484 * double-int.c: Likewise.
2486 * dumpfile.c: Likewise.
2487 * dwarf2asm.c: Likewise.
2488 * dwarf2cfi.c: Likewise.
2489 * dwarf2out.c: Likewise.
2490 * emit-rtl.c: Likewise.
2491 * except.c: Likewise.
2492 * explow.c: Likewise.
2493 * expmed.c: Likewise.
2495 * final.c: Likewise.
2496 * fixed-value.c: Likewise.
2497 * fold-const.c: Likewise.
2498 * function.c: Likewise.
2499 * fwprop.c: Likewise.
2501 * generic-match-head.c: Likewise.
2502 * ggc-common.c: Likewise.
2503 * gimple-builder.c: Likewise.
2504 * gimple-expr.c: Likewise.
2505 * gimple-fold.c: Likewise.
2506 * gimple-iterator.c: Likewise.
2507 * gimple-low.c: Likewise.
2508 * gimple-match-head.c: Likewise.
2509 * gimple-pretty-print.c: Likewise.
2510 * gimple-ssa-isolate-paths.c: Likewise.
2511 * gimple-ssa-strength-reduction.c: Likewise.
2512 * gimple-streamer-in.c: Likewise.
2513 * gimple-streamer-out.c: Likewise.
2514 * gimple-walk.c: Likewise.
2515 * gimple.c: Likewise.
2516 * gimplify-me.c: Likewise.
2517 * gimplify.c: Likewise.
2518 * godump.c: Likewise.
2519 * graph.c: Likewise.
2520 * graphite-poly.c: Likewise.
2521 * haifa-sched.c: Likewise.
2522 * hw-doloop.c: Likewise.
2523 * ifcvt.c: Likewise.
2524 * incpath.c: Likewise.
2525 * init-regs.c: Likewise.
2526 * internal-fn.c: Likewise.
2527 * ipa-chkp.c: Likewise.
2528 * ipa-comdats.c: Likewise.
2529 * ipa-cp.c: Likewise.
2530 * ipa-devirt.c: Likewise.
2531 * ipa-icf-gimple.c: Likewise.
2532 * ipa-icf.c: Likewise.
2533 * ipa-inline-analysis.c: Likewise.
2534 * ipa-inline-transform.c: Likewise.
2535 * ipa-inline.c: Likewise.
2536 * ipa-polymorphic-call.c: Likewise.
2537 * ipa-profile.c: Likewise.
2538 * ipa-prop.c: Likewise.
2539 * ipa-pure-const.c: Likewise.
2540 * ipa-ref.c: Likewise.
2541 * ipa-reference.c: Likewise.
2542 * ipa-split.c: Likewise.
2543 * ipa-utils.c: Likewise.
2544 * ipa-visibility.c: Likewise.
2546 * ira-build.c: Likewise.
2547 * ira-color.c: Likewise.
2548 * ira-conflicts.c: Likewise.
2549 * ira-costs.c: Likewise.
2550 * ira-emit.c: Likewise.
2551 * ira-lives.c: Likewise.
2554 * langhooks.c: Likewise.
2556 * lists.c: Likewise.
2557 * loop-doloop.c: Likewise.
2558 * loop-init.c: Likewise.
2559 * loop-invariant.c: Likewise.
2560 * loop-iv.c: Likewise.
2561 * loop-unroll.c: Likewise.
2562 * lower-subreg.c: Likewise.
2563 * lra-assigns.c: Likewise.
2564 * lra-coalesce.c: Likewise.
2565 * lra-constraints.c: Likewise.
2566 * lra-eliminations.c: Likewise.
2567 * lra-lives.c: Likewise.
2568 * lra-remat.c: Likewise.
2569 * lra-spills.c: Likewise.
2571 * lto-cgraph.c: Likewise.
2572 * lto-compress.c: Likewise.
2573 * lto-opts.c: Likewise.
2574 * lto-section-in.c: Likewise.
2575 * lto-section-out.c: Likewise.
2576 * lto-streamer-in.c: Likewise.
2577 * lto-streamer-out.c: Likewise.
2578 * lto-streamer.c: Likewise.
2579 * mode-switching.c: Likewise.
2580 * modulo-sched.c: Likewise.
2581 * omp-low.c: Likewise.
2582 * optabs.c: Likewise.
2583 * opts-global.c: Likewise.
2584 * passes.c: Likewise.
2585 * plugin.c: Likewise.
2586 * postreload-gcse.c: Likewise.
2587 * postreload.c: Likewise.
2588 * predict.c: Likewise.
2589 * print-tree.c: Likewise.
2590 * profile.c: Likewise.
2592 * realmpfr.c: Likewise.
2593 * recog.c: Likewise.
2595 * reg-stack.c: Likewise.
2596 * regcprop.c: Likewise.
2597 * reginfo.c: Likewise.
2598 * regrename.c: Likewise.
2599 * regstat.c: Likewise.
2600 * reload.c: Likewise.
2601 * reload1.c: Likewise.
2602 * reorg.c: Likewise.
2603 * resource.c: Likewise.
2604 * rtl-chkp.c: Likewise.
2605 * rtl-error.c: Likewise.
2606 * rtlanal.c: Likewise.
2607 * rtlhooks.c: Likewise.
2608 * sanopt.c: Likewise.
2609 * sched-deps.c: Likewise.
2610 * sched-ebb.c: Likewise.
2611 * sched-rgn.c: Likewise.
2613 * shrink-wrap.c: Likewise.
2614 * simplify-rtx.c: Likewise.
2615 * stack-ptr-mod.c: Likewise.
2616 * statistics.c: Likewise.
2618 * stor-layout.c: Likewise.
2619 * store-motion.c: Likewise.
2620 * stringpool.c: Likewise.
2621 * symtab.c: Likewise.
2622 * target-globals.c: Likewise.
2623 * targhooks.c: Likewise.
2624 * toplev.c: Likewise.
2625 * tracer.c: Likewise.
2626 * trans-mem.c: Likewise.
2627 * tree-affine.c: Likewise.
2628 * tree-call-cdce.c: Likewise.
2629 * tree-cfg.c: Likewise.
2630 * tree-cfgcleanup.c: Likewise.
2631 * tree-chkp-opt.c: Likewise.
2632 * tree-chkp.c: Likewise.
2633 * tree-chrec.c: Likewise.
2634 * tree-complex.c: Likewise.
2635 * tree-data-ref.c: Likewise.
2636 * tree-dfa.c: Likewise.
2637 * tree-diagnostic.c: Likewise.
2638 * tree-dump.c: Likewise.
2639 * tree-eh.c: Likewise.
2640 * tree-emutls.c: Likewise.
2641 * tree-if-conv.c: Likewise.
2642 * tree-inline.c: Likewise.
2643 * tree-into-ssa.c: Likewise.
2644 * tree-iterator.c: Likewise.
2645 * tree-loop-distribution.c: Likewise.
2646 * tree-nested.c: Likewise.
2647 * tree-nrv.c: Likewise.
2648 * tree-object-size.c: Likewise.
2649 * tree-outof-ssa.c: Likewise.
2650 * tree-parloops.c: Likewise.
2651 * tree-phinodes.c: Likewise.
2652 * tree-predcom.c: Likewise.
2653 * tree-pretty-print.c: Likewise.
2654 * tree-profile.c: Likewise.
2655 * tree-scalar-evolution.c: Likewise.
2656 * tree-sra.c: Likewise.
2657 * tree-ssa-address.c: Likewise.
2658 * tree-ssa-alias.c: Likewise.
2659 * tree-ssa-ccp.c: Likewise.
2660 * tree-ssa-coalesce.c: Likewise.
2661 * tree-ssa-copy.c: Likewise.
2662 * tree-ssa-dce.c: Likewise.
2663 * tree-ssa-dom.c: Likewise.
2664 * tree-ssa-dse.c: Likewise.
2665 * tree-ssa-forwprop.c: Likewise.
2666 * tree-ssa-ifcombine.c: Likewise.
2667 * tree-ssa-live.c: Likewise.
2668 * tree-ssa-loop-ch.c: Likewise.
2669 * tree-ssa-loop-im.c: Likewise.
2670 * tree-ssa-loop-ivcanon.c: Likewise.
2671 * tree-ssa-loop-ivopts.c: Likewise.
2672 * tree-ssa-loop-manip.c: Likewise.
2673 * tree-ssa-loop-niter.c: Likewise.
2674 * tree-ssa-loop-prefetch.c: Likewise.
2675 * tree-ssa-loop-unswitch.c: Likewise.
2676 * tree-ssa-loop.c: Likewise.
2677 * tree-ssa-math-opts.c: Likewise.
2678 * tree-ssa-operands.c: Likewise.
2679 * tree-ssa-phiopt.c: Likewise.
2680 * tree-ssa-phiprop.c: Likewise.
2681 * tree-ssa-pre.c: Likewise.
2682 * tree-ssa-propagate.c: Likewise.
2683 * tree-ssa-reassoc.c: Likewise.
2684 * tree-ssa-sccvn.c: Likewise.
2685 * tree-ssa-scopedtables.c: Likewise.
2686 * tree-ssa-sink.c: Likewise.
2687 * tree-ssa-strlen.c: Likewise.
2688 * tree-ssa-structalias.c: Likewise.
2689 * tree-ssa-tail-merge.c: Likewise.
2690 * tree-ssa-ter.c: Likewise.
2691 * tree-ssa-threadedge.c: Likewise.
2692 * tree-ssa-threadupdate.c: Likewise.
2693 * tree-ssa-uncprop.c: Likewise.
2694 * tree-ssa-uninit.c: Likewise.
2695 * tree-ssa.c: Likewise.
2696 * tree-ssanames.c: Likewise.
2697 * tree-stdarg.c: Likewise.
2698 * tree-streamer-in.c: Likewise.
2699 * tree-streamer-out.c: Likewise.
2700 * tree-streamer.c: Likewise.
2701 * tree-switch-conversion.c: Likewise.
2702 * tree-tailcall.c: Likewise.
2703 * tree-vect-data-refs.c: Likewise.
2704 * tree-vect-generic.c: Likewise.
2705 * tree-vect-loop-manip.c: Likewise.
2706 * tree-vect-loop.c: Likewise.
2707 * tree-vect-patterns.c: Likewise.
2708 * tree-vect-slp.c: Likewise.
2709 * tree-vect-stmts.c: Likewise.
2710 * tree-vectorizer.c: Likewise.
2711 * tree-vrp.c: Likewise.
2714 * ubsan.c: Likewise.
2715 * value-prof.c: Likewise.
2716 * var-tracking.c: Likewise.
2717 * varasm.c: Likewise.
2718 * varpool.c: Likewise.
2719 * vtable-verify.c: Likewise.
2721 * wide-int-print.cc: Likewise.
2722 * wide-int.cc: Likewise.
2723 * xcoffout.c: Likewise.
2725 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
2727 * Makefile.in (NO_PIE_CFLAGS): New.
2728 (NO_PIE_FLAG): Likewise.
2729 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2730 (NO_PIE_FLAG_FOR_BUILD): Likewise.
2731 (BUILD_NO_PIE_CFLAGS): Likewise.
2732 (BUILD_NO_PIE_FLAG): Likewise.
2733 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
2734 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
2735 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
2736 $(BUILD_NO_PIE_CFLAGS).
2737 (BUILD_CXXFLAGS): Likewise.
2738 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
2739 $(BUILD_NO_PIE_FLAG).
2740 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
2741 (BUILD_NO_PIE_FLAG): Likewise.
2742 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
2743 (NO_PIE_FLAG_FOR_BUILD): Likewise.
2744 * configure: Regenerated.
2746 2015-10-29 Richard Biener <rguenther@suse.de>
2749 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
2750 unsigned conditonal negation to ABS_EXPR.
2752 2015-10-29 Richard Biener <rguenther@suse.de>
2754 * gimple-match-head.c (gimple_simplify): Remove premature checking
2755 of builtin_decl_implicit of function calls we simplify.
2757 2015-10-29 Bin Cheng <bin.cheng@arm.com>
2759 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
2760 (get_computation_cost_at): Ditto.
2761 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
2764 2015-10-28 Tom de Vries <tom@codesourcery.com>
2766 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
2769 2015-10-28 Jason Merrill <jason@redhat.com>
2771 * Makefile.in (TAGS): Include libcpp and libiberty.
2773 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2775 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
2776 (extract_omp_for_data): Remove OpenACC special handling of
2779 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
2780 (struct parallel): Update comment.
2781 (nvptx_reorg): Likewise.
2782 (nvptx_neuter): Cleanup whitespace.
2784 2015-10-28 Richard Henderson <rth@redhat.com>
2786 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
2788 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2791 * config/avr/predicates.md (low_io_address_operand): Don't
2792 consider MODE when computing upper bound.
2793 (io_address_operand): Likewise.
2795 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
2797 * fold-const.c (operand_equal_p): Do not verify that types are
2798 compatible for MEM_REFs.
2800 2015-10-28 Richard Biener <rguenther@suse.de>
2802 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
2803 in simplifying VEC_COND_EXPR conditions.
2805 2015-10-28 Tom de Vries <tom@codesourcery.com>
2807 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
2808 into vi_next of a full_var.
2810 2015-10-28 Tom de Vries <tom@codesourcery.com>
2812 * tree-ssa-structalias.c (new_var_info, make_heapvar)
2813 (make_constraint_from_restrict, make_constraint_from_global_restrict)
2814 (create_function_info_for, create_variable_info_for_1)
2815 (create_variable_info_for): Add and handle add_id parameter.
2816 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
2817 (init_base_vars): Add extra argument to calls to new_var_info.
2818 (get_vi_for_tree): Add extra argument to call to
2819 create_variable_info_for.
2820 (process_constraint, do_deref, process_all_all_constraints): Add extra
2821 argument to calls to new_scalar_tmp_constraint_exp.
2822 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
2823 argument to calls to make_heapvar.
2824 (make_restrict_var_constraints): Add extra argument to call to
2825 make_constraint_from_global_restrict.
2826 (intra_create_variable_infos): Add extra argument to call to
2827 create_variable_info_for_1.
2828 (ipa_pta_execute): Add extra argument to call to
2829 create_function_info_for.
2831 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2833 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
2834 (sibcall_value): Likewise.
2836 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
2838 * config/nvptx/nvptx.h (struct machine_function): Add
2840 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
2841 nvptx_expand_oacc_join): Declare.
2842 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
2843 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
2844 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
2845 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
2846 UNSPECV_JOINING, UNSPECV_JOIN): New.
2847 (BITS, BITD): New mode iterators.
2848 (br_true_uni, br_false_uni): New.
2849 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
2850 (oacc_dim_size, oacc_dim_pos): New.
2851 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
2852 (oacc_fork, oacc_join): New.
2853 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
2854 (worker_load<mode>, worker_store<mode>): New.
2855 (nvptx_barsync): New.
2856 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
2857 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
2858 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
2859 worker_bcast_sym): New.
2860 (nvptx_option_override): Initialize worker broadcast buffer.
2861 (nvptx_emit_forking, nvptx_emit_joining): New.
2862 (nvptx_init_axis_predicate): New.
2863 (nvptx_declare_function_name): Init axis predicates.
2864 (nvptx_expand_call): Add fork/join markers around routine call.
2865 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
2866 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
2867 (nvptx_gen_vcast): New.
2868 (struct wcast_data_t): New.
2869 (enum propagate_mask): New.
2870 (nvptx_gen_wcast): New.
2871 (nvptx_print_operand): Add 'S' case.
2872 (struct parallel): New.
2873 (parallel::parallel, parallel::~parallel): New.
2874 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
2875 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
2876 nvptx_find_par, nvptx_discover_pars): New.
2877 (nvptx_propagate): New.
2878 (vprop_gen, nvptx_vpropagate): New.
2879 (wprop_gen, nvptx_wpropagate): New.
2881 (nvptx_single, nvptx_skip_par): New.
2882 (nvptx_process_pars, nvptx_neuter_pars): New.
2883 (ntptx_reorg): Split blocks, generate parallel structure, apply
2885 (nvptx_cannot_copy_insn_p): New.
2886 (nvptx_file_end): Emit worker broadcast decl.
2887 (nvptx_goacc_fork_join): New.
2888 (TARGET_CANNOT_COPY_INSN_P): Override.
2889 (TARGET_GOACC_FORK_JOIN): Override.
2891 2015-10-28 Richard Biener <rguenther@suse.de>
2893 * fold-const.c (negate_expr_p): Adjust the division case to
2894 properly avoid introducing undefined overflow.
2895 (fold_negate_expr): Likewise.
2897 2015-10-28 Richard Biener <rguenther@suse.de>
2899 PR tree-optimization/65962
2900 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
2901 Avoid creating loop carried dependences also for outer loops
2902 of the loop a use to replace is in.
2904 2015-10-28 Richard Biener <rguenther@suse.de>
2906 * common.opt (fchecking): New flag controlling flag_checking.
2907 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
2908 * timevar.c (timer::print): Adjust output.
2909 * doc/invoke.texi (fchecking): Document.
2911 2015-10-28 Richard Biener <rguenther@suse.de>
2914 * fold-const.c (negate_expr_p): We cannot negate plus or minus
2915 if overflow is not wrapping. Likewise multiplication unless
2916 one operand is constant and not power of two.
2917 (fold_negate_expr): Adjust accordingly.
2919 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
2921 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
2923 (is_oacc_parallel, is_oacc_kernels): New.
2924 (enclosing_target_ctx): May return NULL.
2925 (ctx_in_oacc_kernels_region): New.
2926 (check_oacc_kernel_gwv): New.
2927 (oacc_loop_or_target_p): Delete.
2928 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
2929 operands. Strip reductions fro kernels.
2930 (scan_omp_target): Don't calculate gwv mask.
2931 (lower_oacc_head_mark, lower_oacc_loop_marker,
2932 lower_oacc_head_tail): New.
2933 (struct oacc_collapse): New.
2934 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
2935 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
2936 Remove OpenACC handling.
2937 (expand_oacc_for): New.
2938 (expand_omp_for): Call expand_oacc_for.
2939 (lower_omp_for): Call lower_oacc_head_tail.
2941 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
2943 * attribs.c (check_attribute_tables): New function, broken out from...
2944 (init_attributes): Use it.
2945 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
2946 gcc_checking_assert and checking_* functions to eliminate
2947 ENABLE_CHECKING conditionals.
2948 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
2949 (pass_expand::execute): Likewise.
2950 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
2951 * cgraphunit.c (mark_functions_to_output): Likewise.
2952 (cgraph_node::expand_thunk): Likewise.
2953 (symbol_table::compile): Likewise.
2954 * ddg.c (add_cross_iteration_register_deps): Likewise.
2955 (create_ddg_all_sccs): Likewise.
2956 * df-core.c (df_finish_pass, df_analyze): Likewise.
2957 * diagnostic-core.h: Likewise.
2958 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
2959 * dominance.c (calculate_dominance_info): Likewise.
2960 * dwarf2out.c (add_AT_die_ref): Likewise.
2961 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
2962 (loc_list_from_tree, gen_lexical_block_die): Likewise.
2963 gen_type_die_with_usage, gen_type_die): Likewise.
2964 (dwarf2out_decl): Likewise.
2965 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
2966 * except.c (duplicate_eh_regions): Likewise.
2967 * fwprop.c (register_active_defs, update_df_init): Likewise.
2968 (fwprop_init, fwprop_done): Likewise.
2969 (update_uses): Likewise.
2970 * ggc-page.c (ggc_grow): Likewise.
2971 * gimplify.c (gimplify_body): Likewise.
2972 (gimplify_hasher::equal): Likewise.
2973 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
2974 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
2976 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
2977 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
2978 * hash-table.h (::find_empty_slot_for_expand): Likewise.
2979 * ifcvt.c (if_convert): Likewise.
2980 * ipa-cp.c (ipcp_propagate_stage): Likewise.
2981 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
2982 (odr_type_p, odr_types_equivalent_p): Likewise.
2983 (add_type_duplicate, get_odr_type): Likewise.
2984 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
2985 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
2986 (sem_item_optimizer::verify_classes): Likewise.
2987 (sem_item_optimizer::traverse_congruence_split): Likewise.
2988 (sem_item_optimizer::checking_verify_classes): New.
2989 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
2991 * cfgrtl.c (commit_edge_insertions): Likewise.
2992 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
2993 (rtl_flow_call_edges_add): Likewise.
2994 * cgraph.c (symbol_table::create_edge): Likewise.
2995 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
2996 * cgraph.h (symtab_node): Likewise.
2997 (symtab_node::checking_verify_symtab_nodes): Define.
2998 (cgraph_node::checking_verify_cgraph_nodes): Define.
2999 * cfghooks.h (checking_verify_flow_info): Define.
3000 * cfgloop.h (checking_verify_loop_structure): Define.
3001 * dominance.h (checking_verify_dominators): Define.
3002 * et-forest.c: Fix comment.
3003 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
3004 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3005 ENABLE_CHECKING conditionals.
3006 * ipa-inline-transform.c (save_inline_function_body): Likewise.
3007 * ipa-inline.c (inline_small_functions): Likewise.
3008 (early_inliner): Likewise.
3009 * ipa-inline.h (estimate_edge_growth): Likewise.
3010 * ipa-visibility.c (function_and_variable_visibility): Likewise.
3011 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
3012 (ipa_single_use): Likewise.
3013 * ira-int.h: Likewise.
3014 * ira.c (ira): Likewise.
3015 * loop-doloop.c (doloop_optimize_loops): Likewise.
3016 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
3017 * loop-invariant.c (move_loop_invariants): Likewise.
3018 * lra-assigns.c (lra_assign): Likewise.
3019 * lra-constraints.c (lra_constraints): Likewise.
3020 * lra-eliminations.c (lra_eliminate): Likewise.
3021 * lra-int.h (struct lra_reg): Likewise.
3022 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
3023 (lra_create_live_ranges_1): Likewise.
3024 * lra-remat.c (create_remat_bb_data): Likewise.
3025 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
3027 (check_rtl): Always define. Remove incorrect guard around
3028 extract_constrain_insn call.
3029 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
3030 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3031 ENABLE_CHECKING conditionals.
3032 * lto-streamer-out.c (DFS::DFS): Likewise.
3033 (lto_output): Likewise.
3034 * lto-streamer.c (lto_streamer_init): Likewise.
3035 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
3036 expand_omp_target, execute_expand_omp): Likewise.
3037 (lower_omp_target): Likewise.
3038 * passes.c (execute_function_todo): Likewise.
3039 (execute_todo, execute_one_pass): Likewise.
3040 (verify_curr_properties): Always define.
3041 * predict.c (tree_estimate_probability: Use flag_checking,
3042 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
3043 ENABLE_CHECKING conditionals.
3044 (propagate_freq): Likewise.
3045 * pretty-print.c (pp_format): Likewise.
3046 * real.c (real_to_decimal_for_mode): Likewise.
3047 * recog.c (split_all_insns): Likewise.
3048 * regcprop.c (kill_value_one_regno): Likewise.
3049 (copy_value): Likewise.
3050 (validate_value_data): Define unconditionally.
3051 * reload.c: Fix comment.
3052 * timevar.c: Include options.h
3053 * tree-ssa.h (checking_verify_ssa): Define.
3054 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
3055 * sched-deps.c (CHECK): Remove unused macro.
3056 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
3057 gcc_checking_assert and checking_* functions to eliminate
3058 ENABLE_CHECKING conditionals.
3059 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
3060 * sel-sched.c (struct moveop_static_params): Likewise.
3061 (find_best_reg_for_expr, move_cond_jump): Likewise.
3062 (move_op_orig_expr_not_found): Likewise.
3063 (code_motion_process_successors, move_op): Likewise.
3064 * ssa-iterators.h (first_readonly_imm_use): Likewise.
3065 (next_readonly_imm_use): Likewise.
3066 * store-motion.c (compute_store_table): Likewise.
3067 * symbol-summary.h (function_summary::function_summary): Likewise.
3068 * target.h (cumulative_args_t): Likewise.
3069 (get_cumulative_args, pack_cumulative_args): Likewise.
3070 * timevar.c: (timer::print): Likewise.
3071 * trans-mem.c (ipa_tm_execute): Likewise.
3072 * tree-cfg.c (move_stmt_op): Likewise.
3073 (move_sese_region_to_fn): Likewise.
3074 (gimple_flow_call_edges_add): Likewise.
3075 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
3077 * tree-eh.c (remove_unreachable_handlers): Likewise.
3078 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
3079 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
3080 * tree-into-ssa.c (update_ssa): Likewise.
3081 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
3082 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
3083 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
3084 * tree-predcom.c (suitable_component_p): Likewise.
3085 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
3086 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
3087 * tree-ssa-live.c (verify_live_on_entry): Likewise.
3088 * tree-ssa-live.h (register_ssa_partition): Likewise.
3089 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
3090 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
3091 (tree_transform_and_unroll_loop): Likewise.
3092 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
3093 * tree-ssa-operands.c (get_expr_operands): Likewise.
3094 * tree-ssa-propagate.c (replace_exp_1): Likewise.
3095 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
3096 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
3097 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
3098 * tree-ssanames.c (release_ssa_name_fn): Likewise.
3099 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
3100 * tree-vect-loop-manip.c
3101 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
3102 (slpeel_checking_verify_cfg_after_peeling): Likewise.
3103 (vect_do_peeling_for_loop_bound): Likewise.
3104 (vect_do_peeling_for_alignment): Likewise.
3105 * tree-vrp.c (supports_overflow_infinity): Likewise.
3106 (set_value_range): Likewise.
3107 * tree.c (free_lang_data_in_cgraph): Likewise.
3108 * value-prof.c (gimple_remove_histogram_value): Likewise.
3109 (free_hist): Likewise.
3110 * var-tracking.c (canonicalize_values_star): Likewise.
3111 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
3113 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3115 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
3116 IFN_GOACC_LOOP): New.
3117 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
3118 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
3119 IFN_UNIQUE_OACC_TAIL_MARK.
3120 (enum ifn_goacc_loop_kind): New.
3121 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
3122 IFN_UNIQUE_OACC_JOIN cases.
3123 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
3124 (expand_GOACC_LOOP): New.
3125 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
3126 * omp-low.c: Include gimple-pretty-print.h.
3127 (struct oacc_loop): New.
3128 (enum oacc_loop_flags): New.
3129 (oacc_thread_numbers): New.
3130 (oacc_xform_loop): New.
3131 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
3132 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
3133 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
3134 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
3135 oacc_loop_discovery): New.
3136 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
3137 oacc_loop_process): New.
3138 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
3139 (execute_oacc_device_lower): Discover & process loops. Process
3141 * target.def (goacc.fork_join): Change sense of hook, clarify
3143 * doc/tm.texi: Regenerated.
3145 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3147 * target-insns.def (oacc_fork, oacc_join): Define.
3148 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
3149 (goacc.fork_join): New GOACC hook.
3150 * targhooks.h (default_goacc_fork_join): Declare.
3151 * omp-low.c (default_goacc_forkjoin): New.
3152 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
3153 * doc/tm.texi: Regenerate.
3155 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3157 * omp-low.c (oacc_init_rediction_array): New.
3158 (oacc_initialize_reduction_data): Initialize array.
3160 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3162 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
3164 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
3166 * internal-fn.c (expand_UNIQUE): New.
3167 * internal-fn.h (enum ifn_unique_kind): New.
3168 * internal-fn.def (IFN_UNIQUE): New.
3169 * target-insns.def (unique): Define.
3170 * gimple.h (gimple_call_internal_unique_p): New.
3171 * gimple.c (gimple_call_same_target_p): Check internal fn
3173 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
3174 * tree-ssa-threadedge.c
3175 (record_temporary_equivalences_from_stmts): Likewise.
3176 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
3178 2015-10-27 Richard Henderson <rth@redhat.com>
3181 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
3182 narrowing subregs on SSE and MMX registers.
3183 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
3184 appear to be sub-words of multi-register pseudos must be rejected.
3185 * doc/tm.texi: Regenerate.
3187 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3190 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
3191 operands[0] is a reg before taking its REGNO in split condition.
3192 (*movdi_aarch64): Likewise.
3194 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3196 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
3197 Handle floating point inner modes properly.
3199 2015-10-27 Alan Hayward <alan.hayward@arm.com>
3202 (vectorizable_live_operation): Change iterator.
3204 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
3205 Aditya Kumar <aditya.k7@samsung.com>
3207 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
3208 function to schedule based on isl_schedule_node.
3209 (get_schedule_map_st): New schedule optimizer based on
3211 (scop_get_domains): New. Return the isl_union_set containing the
3212 domains of all the pbbs.
3213 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
3215 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
3218 * calls.c (prepare_call_address): Don't handle -fno-plt here.
3219 * config/i386/i386.c (ix86_expand_call): Generate indirect call
3220 via GOT for -fno-plt. Support indirect call via GOT for x32.
3221 * config/i386/predicates.md (sibcall_memory_operand): Allow
3224 2015-10-27 Richard Biener <rguenther@suse.de>
3226 PR tree-optimization/68104
3227 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
3228 strided access check ...
3229 (vect_compute_data_refs_alignment): ... here.
3231 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
3232 Joseph Myers <joseph@codesourcery.com>
3233 Mark Shinwell <shinwell@codesourcery.com>
3234 Andrew Stubbs <ams@codesourcery.com>
3235 Rich Felker <dalias@libc.org>
3237 * config.gcc: Handle --enable-fdpic.
3238 * config/sh/constraints.md (Ccl): New constraint.
3239 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
3240 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
3242 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
3244 * config/sh/sh-protos.h (function_symbol_result): New struct.
3245 (function_symbol): Return function_symbol_result.
3246 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
3248 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
3250 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
3251 (sh_option_override): Force -fPIC if FDPIC is in effect.
3252 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
3253 UNSPEC_GOTOFFFUNCDESC cases.
3254 (prepare_move_operands): Use FDPIC initial GOT register for
3255 TLS-related GOT access; inhibit cross-section address offset constants
3257 (sh_assemble_integer): New function.
3258 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
3259 PC-relative call sites.
3260 (expand_ashiftrt): Adapt invocation of function_symbol.
3261 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
3262 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
3263 UNSPEC_GOTOFFFUNCDESC.
3264 (legitimize_pic_address): Resolve function symbols to function
3265 descriptors for FDPIC. Do not use GOT-relative addressing for local
3266 data that may be read-only on FDPIC.
3267 (sh_emit_storesi, sh_emit_storehi): New functions.
3268 (sh_trampoline_init): Generate FDPIC trampolines.
3269 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
3270 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
3271 (sh_output_mi_thunk): Generate FDPIC call.
3272 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
3273 FDPIC, generate call site labels to use PC-relative addressing rather
3274 than GOT-relative addressing.
3275 (sh_conditional_register_usage): Make PIC register fixed and call used
3276 when FDPIC is in effect.
3277 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
3278 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
3279 sh_get_fdpic_reg_initial_val): New functions.
3280 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
3282 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
3283 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
3284 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
3285 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
3287 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
3288 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
3289 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
3290 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
3292 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
3293 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
3294 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
3295 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
3296 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
3297 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
3298 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
3299 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
3300 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
3301 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
3302 block_move_real, block_lump_real, block_move_real_i4,
3303 block_lump_real_i4): Add support for FDPIC calls.
3304 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
3305 call_value_pop): Adjust for new function_symbol signature.
3306 * config/sh/sh.opt (-mfdpic): New option.
3307 * doc/install.texi (Options specification): Document --enable-fdpic.
3308 * doc/invoke.texi (SH Options): Document -mfdpic.
3311 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
3313 PR tree-optimization/65963
3314 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
3315 LSHIFT_EXPRs as equivalent MULT_EXPRs.
3317 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3320 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
3321 * config/arm/constraints.md (Dp): Update callsite.
3322 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
3324 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3326 * builtins.c (fold_builtin_load_exponent): Rename to...
3327 (fold_const_builtin_load_exponent): ...this and only handle
3329 (fold_builtin_2): Update accordingly.
3330 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
3332 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3334 * builtins.c (fold_builtin_logb): Rename to...
3335 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
3336 (fold_builtin_significand): Rename to...
3337 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
3338 (fold_builtin_1): Update accordingly.
3340 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3342 * builtins.c (fold_builtin_fmin_fmax): Delete.
3343 (fold_builtin_2): Handle constant fmin and fmax arguments here.
3344 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
3346 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
3348 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
3349 for register extension into sign and zero register extension.
3350 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
3351 for sign and zero register extension.
3352 (cortexa57_addrcost_table): Likewise.
3353 (xgene1_addrcost_table): Likewise.
3355 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3357 * fold-const.c (fold_minmax): Delete.
3358 (fold_binary_loc): Don't call it.
3359 * match.pd: Add rules previously handled by fold_minmax.
3361 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3363 * builtins.c (fold_builtin_fma): Remove constant handling.
3364 (fold_builtin_3): Handle constant fma arguments here.
3366 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3368 * builtins.c (fold_builtin_fabs): Remove constant handling.
3369 (fold_builtin_abs): Likewise.
3371 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3373 * builtins.c (fold_builtin_copysign): Delete.
3374 (fold_builtin_2): Handle constant copysign arguments here.
3375 * match.pd: Add rules previously handled by fold_builtin_copysign.
3377 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3379 * builtins.c (fold_builtin_signbit): Delete.
3380 (fold_builtin_2): Handle constant signbit arguments here.
3381 * match.pd: Add rules previously handled by fold_builtin_signbit.
3383 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3385 * match.pd: Handle sqrt(x) cmp 0 specially.
3387 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
3389 * tree-vect-generic.c (expand_vector_operations_1): Check
3390 optab type before using it.
3392 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3394 * config/aarch64/aarch64-protos.h
3395 (struct tune_params): Add autoprefetcher_model field.
3396 * config/aarch64/aarch64.c: Include params.h
3397 (generic_tunings): Specify autoprefetcher_model value.
3398 (cortexa53_tunings): Likewise.
3399 (cortexa57_tunings): Likewise.
3400 (cortexa72_tunings): Likewise.
3401 (thunderx_tunings): Likewise.
3402 (xgene1_tunings): Likewise.
3403 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
3404 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
3405 (aarch64_override_options_internal): Set
3406 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
3408 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3410 * builtins.c (fold_builtin_exponent): Delete.
3411 (fold_builtin_2): Handle constant expN arguments here.
3412 * match.pd: Fold expN(logN(x)) -> x.
3414 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3416 * builtins.c (fold_builtin_powi): Delete.
3417 (fold_builtin_2): Handle constant powi arguments here.
3418 * match.pd: Add rules previously handled by fold_builtin_powi.
3420 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3422 * builtins.c (fold_builtin_pow): Delete in favor of...
3423 (fold_const_builtin_pow): ...this new function. Only handle constant
3425 (fold_builtin_2): Update accordingly.
3426 * match.pd: Add rules previously handled by fold_builtin_pow.
3428 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3430 * builtins.c (fold_builtin_hypot): Delete.
3431 (fold_builtin_2): Handle constant hypot arguments here.
3432 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
3433 hypot(x, x) to fabs(x)*sqrt(2).
3435 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
3437 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
3438 instead of make_ssa_name if not yet in SSA form.
3440 2015-10-27 Richard Biener <rguenther@suse.de>
3442 * cfg.c (free_edge): Add function argument and use it instead of cfun.
3443 (clear_edges): Likewise.
3444 * cfg.h (clear_edges): Adjust prototype.
3445 * cfgexpand.c (pass_expand::execute): Adjust.
3446 * cfgloop.c (release_recorded_exits): Add function argument and use
3448 * cfgloop.h (release_recorded_exits): Adjust prototype.
3449 (loops_state_satisfies_p): Add overload with function argument.
3450 (loops_state_set): Likewise.
3451 (loops_state_clear): Likewise.
3452 (struct loop_iterator): Add function argument to constructor
3453 and iterator and use it instead of cfun.
3454 (FOR_EACH_LOOP_FN): New macro.
3455 (loop_optimizer_finalize): Add overload with function argument.
3456 * loop-init.c (loop_optimizer_init): Adjust.
3457 (fix_loop_structure): Likewise.
3458 (loop_optimizer_finaliz): Add function argument and use it
3460 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
3461 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
3462 * cgraph.c (release_function_body): Do not push/pop cfun.
3463 * final.c (rest_of_clean_state): Adjust.
3464 * graphite.c (graphite_finalize): Likewise.
3465 * tree-ssa-copy.c (fini_copy_prop): Likewise.
3466 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
3467 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
3468 (tree_unroll_loops_completely): Likewise.
3469 (pass_complete_unrolli::execute): Likewise.
3470 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
3471 Add function argument and use it instead of cfun.
3472 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
3474 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
3475 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
3477 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
3478 * tree-ssanames.c (fini_ssanames): Add function argument and use it
3480 * tree-ssanames.c (fini_ssanames): Adjust prototype.
3481 * tree-vrp.c (execute_vrp): Adjust.
3482 * value-prof.c (free_histograms): Add function argument and use it
3484 * value-prof.h (free_histograms): Adjust prototype.
3486 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
3488 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
3489 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
3490 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
3492 2015-10-27 Tom de Vries <tom@codesourcery.com>
3494 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
3497 2015-10-27 Bin Cheng <bin.cheng@arm.com>
3499 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
3500 (inv_can_prop_to_addr_use): New function.
3501 (record_use): Call can_prop_to_addr_uses, set the new field.
3502 (get_inv_cost): Count cost if inv can't be propagated into its
3505 2015-10-26 Doug Evans <dje@google.com>
3507 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
3509 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
3511 * match.pd (fold_widened_comparison): Apply simplifications to all
3514 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
3516 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
3517 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
3518 * doc/tm.texi: Regenerated.
3519 * reorg.c (dbr_schedule): Use new hook.
3520 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
3522 2015-10-26 Jeff Law <law@redhat.com>
3524 PR tree-optimization/68013
3525 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3526 Make sure the first block in the path is in VISITED_BBs.
3528 2015-10-26 Richard Biener <rguenther@suse.de>
3529 Dominik Vogt <vogt@linux.vnet.ibm.com>
3532 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
3533 Properly prune ref->ref for accesses outside of ref.
3535 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3537 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
3538 new statements to be inserted if inplace. Allow calls to have
3541 2015-10-26 Richard Biener <rguenther@suse.de>
3543 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
3544 (do_valueize): New function.
3545 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
3547 * tree-ssa-threadedge.c: Remove builtins.h include, include
3549 (fold_assignment_stmt): Remove.
3550 (threadedge_valueize): New function.
3551 (record_temporary_equivalences_from_stmts): Use
3552 gimple_fold_stmt_to_constant_1, note additional cleanup
3555 2015-10-26 Richard Biener <rguenther@suse.de>
3557 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
3558 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
3560 2015-10-26 Alan Hayward <alan.hayward@arm.com>
3562 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
3563 VEC_COND_EXPR types.
3565 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3567 * auto-inc-dec.c (insert_move_insn_before): Delete.
3568 (attempt_change): Remember to cost the simple move in the
3569 FORM_PRE_ADD and FORM_POST_ADD cases.
3571 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
3574 * config/sh/sh.c (sh_vector_mode_supported_p): Use
3575 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
3577 2015-10-26 Tom de Vries <tom@codesourcery.com>
3579 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
3581 (intra_create_variable_infos): ... here.
3583 2015-10-26 Tom de Vries <tom@codesourcery.com>
3585 * tree-ssa-structalias.c (intra_create_variable_infos): Add
3586 restrict_pointer_p and recursive_restrict_p variables.
3588 2015-10-26 Tom de Vries <tom@codesourcery.com>
3590 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
3591 get_vi_for_tree call.
3593 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3596 * optabs.c (expand_atomic_compare_and_swap): Handle case when
3597 ptarget_oval or ptarget_bool are const0_rtx.
3599 2015-10-26 Christian Bruel <christian.bruel@st.com>
3601 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
3602 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
3603 * cp/method.c (implicitly_declare_fn): Likewise.
3604 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
3605 * java/class.c (add_method_1): Likewise.
3607 2015-10-26 Richard Biener <rguenther@suse.de>
3609 * alloc-pool.h (base_pool_allocator): Use placement new.
3610 (base_pool_allocator::remove): Likewise. Compute size outside of
3613 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3615 * builtins.c (do_real_to_int_conversion): New function.
3616 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
3617 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
3619 * match.pd: Add rules previously handled by fold_fixed_mathfn
3620 and fold_builtin_int_roundingfn.
3622 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
3624 * match.pd: Use macros to define built-in operator lists.
3626 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
3627 Richard Biener <rguenther@suse.de>
3629 * genmatch.c (dt_simplify::gen): Skip captures that are
3631 (parser::parse_expr): Allow captures in results too.
3632 * builtins.c (fold_builtin_cexp): Delete.
3633 (fold_builtin_1): Handle constant cexp arguments here.
3634 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
3636 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
3638 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
3639 conditional compilation.
3640 (base_pool_allocator::remove): Use flag_checking.
3642 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
3644 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
3647 * dojump.c (do_compare_and_jump): Canonicalize both function and
3650 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
3653 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
3656 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3659 * ipa-polymorphic-call.c
3660 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
3661 instance offset with offset of outer type.
3663 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3665 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
3667 2015-10-23 Caroline Tice <cmtice@google.com>
3669 (from Richard Biener
3670 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
3671 call to iterative_hash_host_wide_int.
3673 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
3675 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
3678 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3680 * tree-vect-generic.c (expand_vector_operations_1): Check
3681 optab exists before use it.
3683 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3685 * tree-vect-generic.c (expand_vector_condition): Avoid
3686 uninitialized variable warning.
3688 2015-10-23 Jeff Law <law@redhat.com>
3690 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
3692 (execute_todo): Call it here.
3693 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
3695 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
3697 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
3698 Szabolcs Nagy <szabolcs.nagy@arm.com>
3700 * config.gcc (enable_secureplt): Add *-linux*-musl*.
3702 2015-10-23 Jeff Law <law@redhat.com>
3704 PR tree-optimization/67830
3705 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
3706 Explicitly verify the mask has no bits outside the type of
3707 the innermost operands.
3709 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
3710 Szabolcs Nagy <szabolcs.nagy@arm.com>
3712 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
3713 (MUSL_DYNAMIC_LINKER64): Define.
3714 (GNU_USER_DYNAMIC_LINKER32): Update.
3715 (GNU_USER_DYNAMIC_LINKER64): Update.
3716 (CHOOSE_DYNAMIC_LINKER): Update.
3718 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
3719 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
3720 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
3721 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
3722 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
3723 (CHOOSE_DYNAMIC_LINKER): Update.
3724 (INCLUDE_DEFAULTS): Redefine.
3726 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
3728 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3730 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
3731 comparing addresses.
3733 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
3735 * fold-const.c (operand_equal_p): Handle matching of vector
3738 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
3740 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
3742 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
3743 Andrew Pinski <apinski@cavium.com>
3745 PR rtl-optimization/67736
3746 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
3749 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3752 * tree.c (build_truth_vector_type): Support BLK mode
3753 returned for boolean vector.
3755 2015-10-23 Alan Hayward <alan.hayward@arm.com>
3757 PR tree-optimization/65947
3759 (vect_is_simple_reduction_1): Find condition reductions.
3760 (vect_model_reduction_cost): Add condition reduction costs.
3761 (get_initial_def_for_reduction): Add condition reduction initial var.
3762 (vect_create_epilog_for_reduction): Add condition reduction epilog.
3763 (vectorizable_reduction): Condition reduction support.
3764 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
3765 * doc/sourcebuild.texi (Vector-specific attributes): Document
3768 2015-10-23 Richard Biener <rguenther@suse.de>
3770 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
3773 2015-10-23 Richard Biener <rguenther@suse.de>
3774 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
3776 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
3777 into (A ^ B) - B to match.pd
3778 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
3780 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
3782 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
3784 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
3786 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
3788 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
3789 INTEGER_CST@1)): New simplifier.
3791 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
3793 * builtins.c (integer_valued_real_p): Move to fold-const.c.
3794 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
3795 (fold_builtin_ceil, fold_builtin_round): Delete.
3796 (fold_builtin_1): Handle constant trunc, floor, ceil and round
3798 * convert.c (convert_to_real): Remove narrowing of rounding
3800 * fold-const.h (integer_valued_real_unary_p)
3801 (integer_valued_real_binary_p, integer_valued_real_call_p)
3802 (integer_valued_real_single_p, integer_valued_real_p): Declare.
3803 * fold-const.c (tree_single_nonnegative_warnv_p): Move
3804 name_registered_for_update_p check to SSA_NAME case statement.
3805 Don't call tree_simple_nonnegative_warnv_p for SSA names.
3806 (integer_valued_real_unary_p, integer_valued_real_binary_p)
3807 (integer_valued_real_call_p, integer_valued_real_single_p)
3808 (integer_valued_real_invalid_p): New functions.
3809 (integer_valued_real_p): Move from fold-const.c and rework
3810 to call the functions above. Handle SSA names.
3811 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
3812 * gimple-fold.c (gimple_assign_integer_valued_real_p)
3813 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
3814 (gimple_stmt_integer_valued_real_p): New functions.
3815 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
3816 Fold f(x)->x for the same f if x is known to be integer-valued.
3817 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
3818 the result. Canonicalize floor(x) as trunc(x) if x is
3821 2015-10-23 Tom de Vries <tom@codesourcery.com>
3823 * tree-ssa-structalias.c (intra_create_variable_infos): Use
3824 make_constraint_from.
3826 2015-10-23 Tom de Vries <tom@codesourcery.com>
3828 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
3829 setting of is_full_var in case of a single field.
3831 2015-10-22 Martin Sebor <msebor@redhat.com>
3834 * config/i386/i386.opt: Add missing periods to the ends of sentences.
3835 * config/msp430/msp430.opt: Same.
3837 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
3839 * doc/extend.exp (Global Register Variables): Rewrite.
3841 2015-10-22 Jeff Law <law@redhat.com>
3843 * genattrtab.c (main): If we do not have any annul-true or annul-false
3844 slots, then write out a dummy eligible_for_annul_true or
3845 eligible_for_annul_false as needed.
3847 2015-10-22 Nick Clifton <nickc@redhat.com>
3849 * config/msp430/msp430.opt: Add -msilicon-errata and
3850 -msilicon-errata-warn.
3851 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
3853 * doc/invoke.texi: Document new options.
3855 2015-10-22 Richard Biener <rguenther@suse.de>
3857 PR tree-optimization/58497
3858 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
3859 (expand_vector_operations_1): Use it. Lower operations on
3860 all uniform vectors to scalar operations if the HW supports it.
3862 2015-10-22 Richard Biener <rguenther@suse.de>
3864 PR tree-optimization/19049
3865 PR tree-optimization/65962
3866 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
3867 to strided accesses if single-element interleaving doesn't work.
3869 2015-10-22 Richard Biener <rguenther@suse.de>
3873 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
3874 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
3875 (expand_unop): Likewise.
3877 2015-10-22 Richard Biener <rguenther@suse.de>
3879 * fold-const.c (fold_addr_of_array_ref_difference): Properly
3880 convert operands before folding a MINUS_EXPR.
3881 (fold_binary_loc): Move simplification of MINUS_EXPR on
3882 converted POINTER_PLUS_EXPRs ...
3883 * match.pd: ... here.
3885 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
3887 * builtins.c (fold_builtin_tan): Delete.
3888 (fold_builtin_1): Handle constant tan arguments here.
3889 * match.pd: Simplify (tan (atan x)) to x.
3891 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
3893 * builtins.c (fold_builtin_cproj): Delete.
3894 (fold_builtin_1): Handle constant arguments here.
3895 (build_complex_cproj): Move and rename to...
3896 * tree.c: (build_complex_inf): ...this.
3897 * tree.h (build_complex_inf): Declare.
3898 * match.pd: Fold cproj(x)->x if x has no infinity.
3899 Use build_complex_inf for existing cproj rules.
3901 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3904 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
3905 already have a comparison result.
3907 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3910 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
3911 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
3912 (aarch64_classify_address): Likewise.
3913 (aarch64_secondary_reload): Likewise.
3914 (aarch64_override_options_after_change_1): Adjust.
3915 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
3916 Use aarch64_nopcrelative_literal_loads.
3917 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
3918 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
3921 2015-10-21 Martin Sebor <msebor@redhat.com>
3924 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
3925 (print_filtered_help): Reference aliased option's name and encourage
3926 readers to use it in preference to the alias if the former is not
3927 documented. Mention when using an option is diagnosed.
3928 * gcc.c (display_help): End each sentence with a period.
3930 * common.opt: End each sentence that describes an option with
3932 * config/aarch64/aarch64.opt: Same.
3933 * config/alpha/alpha.opt: Same.
3934 * config/arc/arc.opt: Same.
3935 * config/arm/arm.opt: Same.
3936 * config/avr/avr.opt: Same.
3937 * config/bfin/bfin.opt: Same.
3938 * config/c6x/c6x.opt: Same.
3939 * config/cr16/cr16.opt: Same.
3940 * config/cris/cris.opt: Same.
3941 * config/cris/linux.opt: Same.
3942 * config/darwin.opt: Same.
3943 * config/epiphany/epiphany.opt: Same.
3944 * config/fr30/fr30.opt: Same.
3945 * config/frv/frv.opt: Same.
3946 * config/ft32/ft32.opt: Same.
3947 * config/g.opt: Same.
3948 * config/h8300/h8300.opt: Same.
3949 * config/i386/cygming.opt: Same.
3950 * config/i386/djgpp.opt: Same.
3951 * config/i386/i386.opt: Same.
3952 * config/i386/interix.opt: Same.
3953 * config/i386/mingw-w64.opt: Same.
3954 * config/i386/mingw.opt: Same.
3955 * config/ia64/ia64.opt: Same.
3956 * config/ia64/ilp32.opt: Same.
3957 * config/iq2000/iq2000.opt: Same.
3958 * config/linux.opt: Same.
3959 * config/lm32/lm32.opt: Same.
3960 * config/lynx.opt: Same.
3961 * config/m32c/m32c.opt: Same.
3962 * config/m32r/m32r.opt: Same.
3963 * config/m68k/ieee.opt: Same.
3964 * config/m68k/m68k.opt: Same.
3965 * config/mcore/mcore.opt: Same.
3966 * config/mep/mep.opt: Same.
3967 * config/microblaze/microblaze.opt: Same.
3968 * config/mips/mips.opt: Same.
3969 * config/mmix/mmix.opt: Same.
3970 * config/mn10300/mn10300.opt: Same.
3971 * config/moxie/moxie.opt: Same.
3972 * config/msp430/msp430.opt: Same.
3973 * config/nios2/elf.opt: Same.
3974 * config/nios2/nios2.opt: Same.
3975 * config/nvptx/nvptx.opt: Same.
3976 * config/pa/pa-hpux.opt: Same.
3977 * config/pa/pa-hpux1010.opt: Same.
3978 * config/pa/pa-hpux1111.opt: Same.
3979 * config/pa/pa-hpux1131.opt: Same.
3980 * config/pa/pa.opt: Same.
3981 * config/pa/pa64-hpux.opt: Same.
3982 * config/pdp11/pdp11.opt: Same.
3983 * config/rl78/rl78.opt: Same.
3984 * config/rs6000/476.opt: Same.
3985 * config/rs6000/aix64.opt: Same.
3986 * config/rs6000/darwin.opt: Same.
3987 * config/rs6000/linux64.opt: Same.
3988 * config/rs6000/rs6000.opt: Same.
3989 * config/rs6000/sysv4.opt: Same.
3990 * config/s390/s390.opt: Same.
3991 * config/s390/tpf.opt: Same.
3992 * config/sh/sh.opt: Same.
3993 * config/sol2.opt: Same.
3994 * config/sparc/long-double-switch.opt: Same.
3995 * config/sparc/sparc.opt: Same.
3996 * config/spu/spu.opt: Same.
3997 * config/stormy16/stormy16.opt: Same.
3998 * config/tilegx/tilegx.opt: Same.
3999 * config/tilepro/tilepro.opt: Same.
4000 * config/v850/v850.opt: Same.
4001 * config/vax/vax.opt: Same.
4002 * config/visium/visium.opt: Same.
4003 * config/vms/vms.opt: Same.
4004 * config/vxworks.opt: Same.
4005 * config/xtensa/xtensa.opt: Same.
4007 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4008 Sebastian Pop <s.pop@samsung.com>
4010 * graphite-scop-detection.c (parameter_index_in_region): Update call to
4011 invariant_in_sese_p_rec.
4012 * graphite-sese-to-poly.c (extract_affine): Same.
4013 * sese.c (invariant_in_sese_p_rec): Pass in an extra
4014 parameter has_vdefs.
4015 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
4016 variable depends on virtual definitions in the current region.
4017 * sese.h (invariant_in_sese_p_rec): Update declaration.
4019 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4020 Sebastian Pop <s.pop@samsung.com>
4022 * graphite-scop-detection.c (build_scops): Do not handle scops
4023 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
4024 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
4026 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
4028 * config.in: Regenerate.
4029 * configure: Regenerate.
4030 * configure.ac (CHECKING_P): Define.
4031 * system.h: Use CHECKING_P.
4033 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4036 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
4037 is negative we don't know the type.
4038 (check_stmt_for_type_change): Skip constructors of non-polymorphic
4039 types as those won't help devirutalization.
4041 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4043 * fold-const.c (operand_equal_p): Add code matching empty constructors.
4045 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
4047 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
4049 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
4050 Add comments on sign of the result.
4051 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
4052 Recurse on operand #1 instead of operand #0.
4053 <CEIL_MOD_EXPR>: Do not recurse.
4054 <ROUND_MOD_EXPR>: Likewise.
4056 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4058 * cfgrtl.c (pass_free_cfg::execute): Adjust.
4059 * final.c (dbr_sequence_length): Always define.
4060 (shorten_branches): Adjust.
4061 * genattr-common.c (main): Always define DELAY_SLOTS.
4062 * genattr.c (main): Unconditionally declare functions and define
4063 macros related to delay slots.
4064 * genattrtab.c (write_eligible_delay): Adjust.
4065 (main): Always write out delay slot functions.
4066 * opts.c (default_options_table): Adjust.
4067 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
4068 (redirect_with_delay_list_safe_p): Likewise.
4069 (fill_simple_delay_slots): Likewise.
4070 (fill_slots_from_thread): Likewise.
4071 (make_return_insns): Likewise.
4072 (dbr_schedule): Likewise.
4073 (rest_of_handle_delay_slots): Likewise.
4074 (pass_delay_slots::gate): Likewise.
4075 * toplev.c (process_options): Likewise.
4077 2015-10-21 Richard Henderson <rth@redhat.com>
4079 * targhooks.c (default_addr_space_pointer_mode): Remove check
4080 for generic address space.
4081 (default_addr_space_address_mode): Likewise.
4082 (default_addr_space_valid_pointer_mode): Likewise.
4083 (default_addr_space_legitimate_address_p): Likewise.
4084 (default_addr_space_legitimize_address): Likewise.
4085 * target.def (addr_space.pointer_mode): Update documentation
4086 of default behavior.
4087 (addr_space.address_mode): Likewise.
4090 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
4093 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4095 * builtins.c (fold_builtin_cabs): Delete.
4096 (fold_builtin_1): Update accordingly. Handle constant arguments here.
4097 * match.pd: Add rules previously handled by fold_builtin_cabs.
4099 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4101 * fold-const.h (fold_strip_sign_ops): Delete.
4102 * fold-const.c (fold_strip_sign_ops): Likewise.
4103 (fold_unary_loc, fold_binary_loc): Remove calls to it.
4104 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
4105 (fold_builtin_ccos): Delete.
4106 (fold_builtin_pow): Don't call fold_strip_sign_ops.
4107 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
4108 Remove fndecl argument.
4109 (fold_builtin_1): Update calls accordingly. Handle constant
4110 cos, cosh, ccos and ccosh here.
4112 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4114 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
4115 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
4116 * common.opt (fssa-backprop): New option.
4117 * fold-const.h (negate_mathfn_p): Declare.
4118 * fold-const.c (negate_mathfn_p): Make public.
4119 * timevar.def (TV_TREE_BACKPROP): New.
4120 * tree-pass.h (make_pass_backprop): Declare.
4121 * passes.def (pass_backprop): Add.
4122 * gimple-ssa-backprop.c: New file.
4124 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4125 Sebastian Pop <s.pop@samsung.com>
4127 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
4128 Do not call create_empty_if_region_on_edge when cond_expr is true.
4129 (translate_isl_ast_node_for): Check whether a guard has been generated.
4131 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4133 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
4134 (operator=): Removed.
4135 (dr_info): Make alias_set number the last argument with default
4136 value of invalid_alias_set.
4137 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
4139 (rewrite_reductions_out_of_ssa): Iterate only through the
4140 basic blocks which are inside region.
4141 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
4142 * sese.h (struct sese_l): Removed assignment operator.
4143 (split_region_for_bb): Removed dead code.
4145 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
4147 * graphite-poly.h (struct dr_info): Removed conversion constructor.
4148 (struct scop): Renamed scop::region to scop::scop_info
4149 (scop_set_region): Same.
4150 (SCOP_REGION): Removed
4151 (SCOP_CONTEXT): Removed.
4152 (POLY_SCOP_P): Removed.
4153 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
4154 Rename scop->region to scop->scop_info.
4155 (add_parameters_to_ivs_params): Same.
4156 (graphite_regenerate_ast_isl): Same.
4157 * graphite-poly.c (new_scop): Same.
4159 (print_scop_params): Same.
4160 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
4161 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
4162 (dot_all_scops_1): Rename scop->region to scop->scop_info.
4163 (scop_detection::nb_pbbs_in_loops): Same.
4164 (find_scop_parameters): Same.
4165 (try_generate_gimple_bb): Same.
4166 (gather_bbs::before_dom_children): Same.
4167 (gather_bbs::after_dom_children): Same.
4168 (build_scops): Same.
4169 * graphite-sese-to-poly.c (build_scop_scattering): Same.
4170 (extract_affine_chrec): Same.
4171 (extract_affine): Same.
4172 (set_scop_parameter_dim): Same.
4173 (build_loop_iteration_domains): Same.
4174 (create_pw_aff_from_tree): Same.
4175 (add_param_constraints): Same.
4176 (build_scop_iteration_domain): Same.
4177 (build_scop_drs): Same.
4178 (analyze_drs_in_stmts): Same.
4179 (insert_out_of_ssa_copy_on_edge): Same.
4180 (rewrite_close_phi_out_of_ssa):Same.
4181 (rewrite_reductions_out_of_ssa):Same.
4182 (handle_scalar_deps_crossing_scop_limits):Same.
4183 (rewrite_cross_bb_scalar_deps):Same.
4184 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
4185 (build_poly_scop):Same.
4186 (build_alias_set): Use pointer to dr_info.
4187 * graphite.c (print_graphite_scop_statistics):
4188 (graphite_transform_loops):
4189 * sese.h (struct sese_l): Remove conversion constructor.
4191 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4194 * tree.c (verify_type): Verify that TYPE_MODE match
4195 between TYPE_CANONICAL and type.
4196 * expr.c (store_expr_with_bounds): Revert my previous change.
4197 * expmed.c (store_bit_field_1): Revert prevoius change.
4198 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
4199 to match for all types.
4201 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
4203 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
4206 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
4208 * doc/tm.texi: Regenerated.
4209 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
4210 * stor-layout.c (layout_type): Use mode to get vector mask size.
4211 * target.def (get_mask_mode): New.
4212 * targhooks.c (default_get_mask_mode): New.
4213 * targhooks.h (default_get_mask_mode): New.
4214 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
4216 * tree.c (MAX_BOOL_CACHED_PREC): New.
4217 (nonstandard_boolean_type_cache): New.
4218 (build_nonstandard_boolean_type): New.
4219 (make_vector_type): Vector mask has no canonical type.
4220 (build_truth_vector_type): New.
4221 (build_same_sized_truth_vector_type): New.
4222 (truth_type_for): Support vector masks.
4223 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
4224 (build_truth_vector_type): New.
4225 (build_same_sized_truth_vector_type): New.
4226 (build_nonstandard_boolean_type): New.
4227 * tree-cfg.c (verify_gimple_comparison) Require boolean
4228 vector type for vector comparison.
4229 (verify_gimple_assign_ternary): Likewise.
4230 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
4232 * tree-vect-stmts.c (vectorizable_condition): Use boolean
4233 vector type for vector comparison.
4234 * tree-vect-generic.c (elem_op_func): Add new operand to hold
4236 (do_unop): Adjust to modified function type.
4237 (do_binop): Likewise.
4238 (do_plus_minus): Likewise.
4239 (do_negate); Likewise.
4240 (expand_vector_piecewise): Likewise.
4241 (do_cond): Likewise.
4242 (do_compare): Use comparison instead of condition.
4243 (expand_vector_divmod): Use boolean vector type for comparison.
4244 (expand_vector_operations_1): Skip scalar mask operations.
4246 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
4248 * omp-low.c (simd_clone_create): Set in_other_partition
4251 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
4253 * doc/extend.exp (Local Register Variables): Rewrite.
4255 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
4257 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
4258 and x*x in cases where the operands are sign ops. Extend these
4259 rules to handle copysign as a sign op (including for cos, cosh
4260 and pow, which already treated negate and abs as sign ops).
4262 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
4265 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
4266 for 64-bit MS_ABI targets also when default incoming stack boundary
4269 2015-10-21 Richard Biener <rguenther@suse.de>
4271 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
4272 cond stmts, enhanced and split out from ...
4273 (vn_phi_eq): ... here.
4275 2015-10-21 Richard Biener <rguenther@suse.de>
4278 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
4279 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
4280 (tree_single_nonnegative_warnv_p): ... here. For SSA names
4281 make sure they are not registered for update.
4283 2015-10-21 Richard Biener <rguenther@suse.de>
4285 PR tree-optimization/68026
4286 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
4287 unsigned VARYING values.
4289 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
4291 * asan.c (asan_emit_stack_protection): Don't pass local stack to
4292 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
4293 NULL and use local stack than.
4294 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
4295 in addition to __asan_init.
4296 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
4297 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
4298 * asan.h (asan_intercepted_p): Handle new string builtins.
4299 * ubsan.c (ubsan_use_new_style_p): New function.
4300 (ubsan_instrument_float_cast): If location is unknown, assign
4301 input_location to loc. Propagate loc to ubsan_create_data if
4302 ubsan_use_new_style_p returned true.
4304 2015-10-21 Jeff Law <law@redhat.com>
4306 * Makefile.in (OBJS): Remove sched-vis.c
4307 * sched-vis.c: Removed. Code moved into...
4308 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
4309 * rtl.h: Remove prototypes for functions now living in print-rtl.c
4310 * print-rtl.h Add prototypes for new functions in print-rtl.c.
4311 * auto-inc-dec.c: Include print-rtl.h
4312 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
4313 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
4315 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
4318 2015-10-21 Richard Biener <rguenther@suse.de>
4319 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4321 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
4323 Move (a * (1 << b)) is (a << b) to match.pd.
4324 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
4325 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
4326 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
4328 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
4330 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
4331 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
4332 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
4334 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
4336 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
4338 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
4339 Szabolcs Nagy <szabolcs.nagy@arm.com>
4340 Alan Modra <amodra@gmail.com>
4342 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
4343 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
4344 (LINK_SPEC): Add %(link_secure_plt).
4345 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
4346 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
4348 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
4349 Szabolcs Nagy <szabolcs.nagy@arm.com>
4351 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
4352 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
4354 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4356 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
4358 (fusion_load_store): Use it.
4359 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
4360 ldp and stp in VD modes.
4361 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
4362 (store_pair<mode>, VD): Likewise.
4364 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
4366 PR rtl-optimization/67609
4367 * lra-splill.c (lra_final_code_change): Don't remove all
4370 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4372 * simplify-rtx.c (simplify_binary_operation): If either operand was
4373 a constant pool reference use them if all other simplifications failed.
4375 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4377 * config/aarch64/aarch64.md
4378 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
4379 * config/aarch64/aarch64-simd.md
4380 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
4381 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
4382 (aarch64_fpconst_pow_of_2): New function.
4383 (aarch64_vec_fpconst_pow_of_2): Likewise.
4384 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
4386 (aarch64_vec_fpconst_pow_of_2): Likewise.
4387 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
4388 (aarch64_fp_vec_pow2): Likewise.
4390 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
4392 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
4393 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
4394 * config/alpha/alpha.c (alpha_function_arg_advance): Update
4395 ALPHA_ARG_SIZE usage.
4396 (alpha_arg_partial_bytes): Ditto.
4398 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
4401 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
4402 error_mark_node decls.
4404 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
4408 * common/config/i386/i386-common.c (ix86_handle_option): Remove
4409 OPT_miamcu handling.
4410 * config/i386/i386.c (PTA_NO_80387): New macro.
4411 (processor_alias_table): Add PTA_NO_80387 to lakemont.
4412 (ix86_option_override_internal): Update MASK_80387 from
4413 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
4414 SSE math only if 80387 is supported. Don't change
4416 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
4418 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
4419 if TARGET_80387 is true and TARGET_IAMCU is false.
4420 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
4421 is true and TARGET_IAMCU_P is false.
4423 2015-10-20 Richard Biener <rguenther@suse.de>
4425 PR tree-optimization/68017
4426 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
4428 2015-10-20 Martin Liska <mliska@suse.cz>
4430 * cgraphclones.c (cgraph_node::create_virtual_clone):
4431 Verify cgraph_node.local.versionable instead of calling
4432 tree_versionable_function_p.
4433 * ipa-cp.c (determine_versionability): Save the information
4434 to ipa_node_params summary.
4435 (ipcp_versionable_function_p): Use it.
4436 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
4437 (ipcp_generate_summary): Do not compute cgraph_node
4439 * ipa-inline-analysis.c (inline_generate_summary): Compute
4440 versionability for all cgraph nodes.
4441 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
4442 ipa_node_params::versionability.
4443 * ipa-prop.h (struct ipa_node_params): Declare it.
4445 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4448 * varasm.c (assemble_variable): Move special vtv handling to..
4449 (handle_vtv_comdat_sections): .. here. New function.
4450 (output_object_block): Handle vtv sections.
4452 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
4455 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
4457 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
4459 * doc/extend.texi: Update documentation WRT inline functions.
4461 2015-10-20 Alan Modra <amodra@gmail.com>
4464 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
4465 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
4466 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
4468 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
4470 PR rtl-optimization/66790
4471 * df.h (DF_MIR): New macro.
4472 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
4473 (DF_MIR_INFO_BB): New macro.
4474 (DF_MIR_IN, DF_MIR_OUT): New macros.
4475 (struct df_mir_bb_info): New.
4476 (df_mir): New macro.
4477 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
4479 (df_mir_get_bb_info): New.
4480 * df-problems.c (struct df_mir_problem_data): New.
4481 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
4482 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
4483 df_mir_confluence_0, df_mir_confluence_n,
4484 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
4485 df_mir_bottom_dump, df_mir_verify_solution_start,
4486 df_mir_verify_solution_end): New.
4488 (df_mir_add_problem, df_mir_simulate_one_insn): New.
4489 * timevar.def (TV_DF_MIR): New.
4490 * ree.c: Include bitmap.h
4491 (add_removable_extension): Add an INIT_REGS parameter. Use it
4492 to skip zero-extensions that may get an uninitialized register.
4493 (find_removable_extensions): Compute must-initialized registers
4494 using the MIR dataflow problem. Update the call to
4495 add_removable_extension.
4496 (find_and_remove_re): Call df_mir_add_problem.
4498 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
4500 * common/config/mn10300/mn10300-common.c
4501 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
4502 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
4504 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
4506 * doc/extend.texi (Explicit Register Variables): Simplify and
4507 avoid unnecessary and confusion abbreviations. Update cross
4509 doc/implement-c.tex: Update cross reference.
4511 2015-10-19 Jeff Law <law@redhat.com>
4513 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
4514 that create irreducible loops unless the path elimiantes a multiway
4517 2015-10-19 Richard Biener <rguenther@suse.de>
4519 PR tree-optimization/67975
4520 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
4521 * tree-cfg.c (extract_true_false_controlled_edges): Split out
4522 core worker from ...
4523 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
4524 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
4525 instead of block number for PHIs with two or one args.
4526 (vn_phi_eq): Compare edge predicates of PHIs that are in different
4529 2015-10-19 Richard Biener <rguenther@suse.de>
4531 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
4532 (gimple_stmt_nonnegative_warnv_p): Use it.
4533 * match.pd (CPROJ): New operator list.
4534 (cproj (complex ...)): Move simplifications from ...
4535 * builtins.c (fold_builtin_cproj): ... here.
4537 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4539 * config/i386/i386.c (ix86_expand_vector_move): Use
4540 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
4543 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4545 * doc/invoke.texi: Replace @optindex with @opindex.
4547 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
4550 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
4551 arch= is set, clear all bits in x_ix86_isa_flags, except for
4552 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
4554 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
4557 * common.opt (fkeep-static-functions): New option.
4558 * doc/invoke.texi: Document it.
4559 * cgraphunit.c (cgraph_node::finalize_function): Use it.
4561 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4563 * sched-int.h (struct autopref_multipass_data_): Remove offset
4564 field. Add min_offset, max_offset, multi_mem_insn_p fields.
4565 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
4566 (autopref_multipass_init): Use it. Handle PARALLEL sets.
4567 (autopref_rank_data): New function.
4568 (autopref_rank_for_schedule): Use it.
4569 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
4571 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
4574 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
4576 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4578 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
4579 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
4580 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
4581 (STANDARD_STARTFILE_PREFIX_1): New.
4582 (STANDARD_STARTFILE_PREFIX_2): New.
4584 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4586 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
4587 (darwin_driver_init): Note a version-min when provided on the c/l.
4588 * config/darwin.h (%darwin_minversion): Remove.
4589 * config/i386/darwin.h: Likewise.
4590 * config/rs6000/darwin.h: Likewise.
4591 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
4592 rather than an arbitrary constant.
4594 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4596 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
4597 PPC, detect conflicts between -arch and multilib settings. Detect
4598 and warn about conflicts between multiple -arch definitions.
4600 2015-10-18 Iain Sandoe <iain@codesourcery.com>
4602 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
4604 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4606 * lra-constraints.c (add_next_usage_insn): Change argument type
4607 from rtx to rtx_insn *.
4609 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
4611 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
4614 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
4616 * config/tilepro/gen-mul-tables.cc: Adjust include files.
4617 * config/tilegx/mul-tables.c: Regenerate.
4618 * config/tilepro/mul-tables.c: Regenerate.
4620 * config/tilegx/tilegx-c.c: Adjust include files.
4621 * config/tilegx/tilegx.c: Likewise.
4622 * config/tilepro/tilepro-c.c: Likewise.
4623 * config/tilepro/tilepro.c: Likewise.
4624 * config/aarch64/aarch64-builtins.c: Likewise.
4625 * config/aarch64/aarch64.c: Likewise.
4626 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4627 * config/alpha/alpha.c: Likewise.
4628 * config/arc/arc.c: Likewise.
4629 * config/arm/aarch-common.c: Likewise.
4630 * config/arm/arm-builtins.c: Likewise.
4631 * config/arm/arm-c.c: Likewise.
4632 * config/arm/arm.c: Likewise.
4633 * config/avr/avr-c.c: Likewise.
4634 * config/avr/avr-devices.c: Likewise.
4635 * config/avr/avr-log.c: Likewise.
4636 * config/avr/avr.c: Likewise.
4637 * config/bfin/bfin.c: Likewise.
4638 * config/c6x/c6x.c: Likewise.
4639 * config/cr16/cr16.c: Likewise.
4640 * config/cris/cris.c: Likewise.
4641 * config/darwin-c.c: Likewise.
4642 * config/darwin-driver.c: Likewise.
4643 * config/darwin.c: Likewise.
4644 * config/default-c.c: Likewise.
4645 * config/epiphany/epiphany.c: Likewise.
4646 * config/epiphany/mode-switch-use.c: Likewise.
4647 * config/epiphany/resolve-sw-modes.c: Likewise.
4648 * config/fr30/fr30.c: Likewise.
4649 * config/frv/frv.c: Likewise.
4650 * config/ft32/ft32.c: Likewise.
4651 * config/glibc-c.c: Likewise.
4652 * config/h8300/h8300.c: Likewise.
4653 * config/i386/host-cygwin.c: Likewise.
4654 * config/i386/host-mingw32.c: Likewise.
4655 * config/i386/i386-c.c: Likewise.
4656 * config/i386/i386.c: Likewise.
4657 * config/i386/msformat-c.c: Likewise.
4658 * config/i386/winnt-cxx.c: Likewise.
4659 * config/i386/winnt-stubs.c: Likewise.
4660 * config/i386/winnt.c: Likewise.
4661 * config/ia64/ia64-c.c: Likewise.
4662 * config/ia64/ia64.c: Likewise.
4663 * config/iq2000/iq2000.c: Likewise.
4664 * config/lm32/lm32.c: Likewise.
4665 * config/m32c/m32c-pragma.c: Likewise.
4666 * config/m32c/m32c.c: Likewise.
4667 * config/m32r/m32r.c: Likewise.
4668 * config/mcore/mcore.c: Likewise.
4669 * config/mep/mep-pragma.c: Likewise.
4670 * config/mep/mep.c: Likewise.
4671 * config/microblaze/microblaze-c.c: Likewise.
4672 * config/microblaze/microblaze.c: Likewise.
4673 * config/mips/mips-tables.opt
4674 * config/mips/mips.c: Likewise.
4675 * config/mmix/mmix.c: Likewise.
4676 * config/mn10300/mn10300.c: Likewise.
4677 * config/moxie/moxie.c: Likewise.
4678 * config/msp430/msp430-c.c: Likewise.
4679 * config/msp430/msp430.c: Likewise.
4680 * config/nds32/nds32-cost.c: Likewise.
4681 * config/nds32/nds32-fp-as-gp.c: Likewise.
4682 * config/nds32/nds32-intrinsic.c: Likewise.
4683 * config/nds32/nds32-isr.c: Likewise.
4684 * config/nds32/nds32-md-auxiliary.c: Likewise.
4685 * config/nds32/nds32-memory-manipulation.c: Likewise.
4686 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4687 * config/nds32/nds32-predicates.c: Likewise.
4688 * config/nds32/nds32.c: Likewise.
4689 * config/nios2/nios2.c: Likewise.
4690 * config/nvptx/mkoffload.c: Likewise.
4691 * config/nvptx/nvptx.c: Likewise.
4692 * config/pa/pa.c: Likewise.
4693 * config/pdp11/pdp11.c: Likewise.
4694 * config/rl78/rl78-c.c: Likewise.
4695 * config/rl78/rl78.c: Likewise.
4696 * config/rs6000/host-darwin.c: Likewise.
4697 * config/rs6000/rs6000-c.c: Likewise.
4698 * config/rs6000/rs6000-linux.c: Likewise.
4699 * config/rs6000/rs6000.c: Likewise.
4700 * config/rx/rx.c: Likewise.
4701 * config/s390/s390-c.c: Likewise.
4702 * config/s390/s390.c: Likewise.
4703 * config/sh/sh-c.c: Likewise.
4704 * config/sh/sh-mem.cc: Likewise.
4705 * config/sh/sh.c: Likewise.
4706 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4707 * config/sh/sh_treg_combine.cc: Likewise.
4708 * config/sol2-c.c: Likewise.
4709 * config/sol2-cxx.c: Likewise.
4710 * config/sol2-stubs.c: Likewise.
4711 * config/sol2.c: Likewise.
4712 * config/sparc/sparc-c.c: Likewise.
4713 * config/sparc/sparc.c: Likewise.
4714 * config/spu/spu-c.c: Likewise.
4715 * config/spu/spu.c: Likewise.
4716 * config/stormy16/stormy16.c: Likewise.
4717 * config/v850/v850-c.c: Likewise.
4718 * config/v850/v850.c: Likewise.
4719 * config/vax/vax.c: Likewise.
4720 * config/visium/visium.c: Likewise.
4721 * config/vms/vms-c.c: Likewise.
4722 * config/vms/vms.c: Likewise.
4723 * config/vxworks.c: Likewise.
4724 * config/winnt-c.c: Likewise.
4725 * config/xtensa/xtensa.c: Likewise.
4727 2015-10-16 Christian Bruel <christian.bruel@st.com>
4730 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
4731 (FUNCTION_BOUNDARY_P): New macro:
4732 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
4734 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
4735 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
4736 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
4737 * function.c (allocate_struct_function): Call
4738 relayout_function hook.
4739 * passes.c (rest_of_decl_compilation): Likewise.
4741 2015-10-16 Christian Bruel <christian.bruel@st.com>
4744 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
4745 * config/arm/arm.c (arm_option_override_internal): Call
4746 arm_override_options_after_change_1.
4747 (arm_override_options_after_change): New function.
4748 (arm_override_options_after_change_1): Likewise.
4749 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
4751 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4754 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4757 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
4759 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
4760 argument is an ADDR_EXPR.
4762 2015-10-16 Richard Biener <rguenther@suse.de>
4764 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
4765 and get rid of force_gimple_operand_gsi.
4766 (gimple_fold_builtin_memory_chk): Likewise.
4767 (gimple_fold_builtin_stxcpy_chk): Likewise.
4768 (rewrite_to_defined_overflow): Likewise.
4769 (gimple_convert_to_ptrofftype): New function.
4770 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
4772 2015-10-16 Richard Biener <rguenther@suse.de>
4774 * tree-nested.h (build_addr): Adjust prototype.
4775 * tree-nested.c (build_addr): Remove context argument and use
4777 (get_static_chain): Adjust calls to build_addr.
4778 (convert_nl_goto_reference): Likewise.
4779 (convert_tramp_reference_op): Likewise.
4780 (finalize_nesting_tree_1): Likewise.
4781 * value-prof.c (gimple_ic): Likewise.
4782 * gimple-low.c (lower_builtin_setjmp): Likewise.
4783 * tree-parloops.c (take_address_of): Likewise.
4784 (create_call_for_reduction_1): Likewise.
4785 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
4786 (gimple_gen_ic_func_profiler): Likewise.
4788 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
4790 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
4793 2015-10-16 Michael Collison <michael.collison@linaro.org>
4794 Andrew Pinski <andrew.pinski@caviumnetworks.com>
4796 * match.pd ((x < y) && (x < z) -> x < min (y,z),
4797 (x > y) and (x > z) -> x > max (y,z))
4799 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
4800 Szabolcs Nagy <szabolcs.nagy@arm.com>
4802 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
4803 (DYNAMIC_LINKER): Renamed to ...
4804 (GLIBC_DYNAMIC_LINKER): This.
4805 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
4807 2015-10-15 Marek Polacek <polacek@redhat.com>
4809 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
4810 gimple_call_builtin instead of is_gimple_call.
4812 2015-10-15 Richard Biener <rguenther@suse.de>
4814 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
4816 2015-10-15 Richard Biener <rguenther@suse.de>
4818 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
4819 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
4820 * tree-vect-loop.c (get_initial_def_for_induction): Drop
4821 use of force_gimple_operand in favor of gimple_build.
4822 Use vect_get_new_ssa_name.
4823 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
4824 (vectorizable_mask_load_store): Likewise.
4825 (vectorizable_call): Likewise.
4826 (vectorizable_store): Likewise.
4827 (vectorizable_load): Likewise.
4828 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
4830 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
4832 PR tree-optimization/67945
4833 * tree-pass.h (PROP_gimple_opt_math): New property flag.
4834 * generic-match-head.c (canonicalize_math_p): New function.
4835 * gimple-match-head.c: Include tree-pass.h.
4836 (canonicalize_math_p): New function.
4837 * match.pd: Group math built-in rules into simplifications
4838 and canonicalizations. Guard the latter with canonicalize_math_p.
4839 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
4840 PROP_gimple_opt_math property.
4842 2015-10-15 Marek Polacek <polacek@redhat.com>
4844 PR tree-optimization/67953
4845 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
4847 2015-10-15 Jiong Wang <jiong.wang@arm.com>
4849 * config.gcc: Recognize "." in architecture base name for AArch64.
4851 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
4853 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
4855 * config/mips/mips.c (mips_setup_incoming_varargs): Use
4856 ROUND_DOWN to calculate off.
4857 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
4858 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
4861 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
4863 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
4865 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
4866 Torvald Riegel <triegel@redhat.com>
4869 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
4870 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
4871 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
4872 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
4873 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
4874 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
4875 trechkpt, treclaim, tsr, ttest): New define_expands.
4876 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
4877 __TM_FENCE__ for htm.
4878 * doc/extend.texi: Update documentation for htm builtins.
4880 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
4883 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
4884 REG_CFA_EXPRESSION to aligned SSE stores.
4886 2015-10-14 Jeff Law <law@redhat.com>
4888 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
4889 num_threaded_edges for successful FSM threads too.
4891 2015-10-14 Richard Biener <rguenther@suse.de>
4893 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
4894 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
4895 (vect_get_vec_def_for_operand): Remove unused parameter.
4896 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
4897 (vect_create_epilog_for_reduction): Likewise.
4898 (vectorizable_reduction): Likewise.
4899 (vectorizable_live_operation): Likewise.
4900 * tree-vect-patterns.c (type_conversion_p): Likewise.
4901 (vect_recog_vector_vector_shift_pattern): Likewise.
4902 (check_bool_pattern): Likewise.
4903 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
4904 (vect_analyze_slp_cost_1): Likewise.
4905 * tree-vect-stmts.c (process_use): Likewise.
4906 (vect_get_vec_def_for_operand): Do not handle reductions.
4907 (vect_get_vec_defs): Adjust.
4908 (vectorizable_mask_load_store): Likewise.
4909 (vectorizable_call): Likewise.
4910 (vectorizable_simd_clone_call): Likewise.
4911 (vect_get_loop_based_defs): Likewise.
4912 (vectorizable_conversion): Likewise.
4913 (vectorizable_assignment): Likewise.
4914 (vectorizable_shift): Likewise.
4915 (vectorizable_operation): Likewise.
4916 (vectorizable_store): Likewise.
4917 (vectorizable_load): Likewise.
4918 (vect_is_simple_cond): Likewise.
4919 (vectorizable_condition): Likewise.
4920 (vect_is_simple_use): Remove unused parameters.
4921 (vect_is_simple_use_1): Adjust and rename.
4923 2015-10-14 Richard Biener <rguenther@suse.de>
4925 PR tree-optimization/67915
4926 * match.pd: Handle comparisons of addresses of STRING_CSTs.
4927 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
4928 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
4929 stmt folding in favor of GIMPLE one.
4931 2015-10-14 Marek Polacek <polacek@redhat.com>
4933 PR tree-optimization/67815
4934 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
4935 (reassociate_bb): Call it.
4937 2015-10-14 Richard Biener <rguenther@suse.de>
4939 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
4940 Reset info at start.
4941 (vect_analyze_group_access_1): Add debug print.
4942 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
4943 (vect_compute_single_scalar_iteration_cost): ... to this.
4944 (vect_analyze_loop_2): Adjust.
4945 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
4946 * tree-vectorizer.h: ... here.
4947 (add_stmt_info_to_vec): Remove.
4948 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
4950 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
4952 * targhooks.c (default_target_option_pragma_parse): Do not warn if
4953 called on behalf of "#pragma GCC pop_options".
4955 2015-10-14 Tom de Vries <tom@codesourcery.com>
4957 * cfganal.c (verify_no_unreachable_blocks): New function.
4958 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
4959 verify_no_unreachable_blocks.
4960 cfganal.h (verify_no_unreachable_blocks): Declare.
4962 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
4964 * common.opt: Add flag_checking.
4965 * system.h (CHECKING_P): Define.
4967 2015-10-13 Jakub Jelinek <jakub@redhat.com>
4968 Aldy Hernandez <aldyh@redhat.com>
4969 Ilya Verbin <ilya.verbin@intel.com>
4971 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
4972 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
4973 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
4974 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
4975 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
4976 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
4977 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
4978 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
4979 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
4980 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
4981 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
4982 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
4983 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
4984 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
4985 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
4986 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
4987 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
4988 (struct cgraph_simd_clone_arg): Adjust comment.
4989 * coretypes.h (struct gomp_ordered): New forward decl.
4990 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
4991 set critical clauses to it.
4992 (gimple_build_omp_ordered): Return gomp_ordered * instead of
4993 gimple *. Add CLAUSES argument, set ordered clauses to it.
4994 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
4996 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
4997 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
4998 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
4999 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
5000 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
5001 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
5002 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
5003 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
5005 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
5006 (gomp_critical): Add clauses field.
5007 (gomp_ordered): New struct.
5008 (is_a_helper <gomp_ordered *>::test): New inline.
5009 (gimple_build_omp_critical): Add CLAUSES argument.
5010 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
5011 instead of gimple *.
5012 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
5013 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
5014 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
5015 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
5017 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
5018 (dump_gimple_omp_target): Handle enter data and exit data.
5019 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
5020 (dump_gimple_omp_critical): Print clauses.
5021 (dump_gimple_omp_ordered): New function.
5022 (dump_gimple_omp_task): Handle taskloop.
5023 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
5025 * gimple-walk.c (walk_gimple_op): Walk clauses on
5026 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
5027 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
5028 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
5029 (struct gimplify_omp_ctx): Add loop_iter_var,
5030 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
5031 and target_firstprivatize_array_bases fields.
5032 (delete_omp_context): Release loop_iter_var.
5033 (gimplify_bind_expr): Handle ORT_NONE.
5034 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
5035 ORT_COMBINED_TARGET.
5036 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
5037 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
5038 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
5039 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
5040 ctx->target_map_scalars_firstprivate.
5041 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
5042 data sharing clauses. For data sharing clause with VLA decl
5043 on omp target/target data don't add firstprivate for the pointer.
5044 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
5045 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
5046 the addition of ORT_COMBINED_TARGET.
5047 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
5048 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
5049 pointers as zero length array sections and
5050 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
5052 (omp_check_private): Handle omp_member_access_dummy_var vars.
5053 (find_decl_expr): New function.
5054 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
5055 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
5056 Handle OMP_CLAUSE_GANG separately. Handle
5057 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5058 clauses. Diagnose linear clause on combined
5059 distribute {, parallel for} simd construct, unless it is the loop
5060 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
5061 Handle map clauses with COMPONENT_REF. Initialize
5062 ctx->target_map_scalars_firstprivate,
5063 ctx->target_firstprivatize_array_bases and
5064 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
5065 linear clause even to target region if combined. Remove
5066 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
5067 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
5068 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
5069 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
5070 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
5071 For linear clause on worksharing loop combined with parallel add
5072 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
5073 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
5074 omp_member_access_dummy_var vars. Add lastprivate clause to outer
5076 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
5077 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
5078 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
5080 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
5081 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
5082 in target body. Handle removal of struct mapping if struct is not
5083 seen in target body. Remove GOMP_MAP_STRUCT map clause on
5084 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
5085 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
5086 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
5087 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
5088 clause appear together. Handle
5089 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
5090 clause if it has map-type-modifier always. Handle
5091 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
5093 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
5094 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
5096 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
5097 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
5098 iterators in doacross loops.
5099 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
5100 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
5101 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
5102 for the addition of ORT_COMBINED_TARGET.
5103 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
5104 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
5105 and OMP_TARGET_EXIT_DATA.
5106 (gimplify_omp_ordered): New function.
5107 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
5108 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
5109 Gimplify clauses on OMP_CRITICAL.
5110 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
5111 expand_GOMP_SIMD_ORDERED_END): New functions.
5112 * internal-fn.def (GOMP_SIMD_ORDERED_START,
5113 GOMP_SIMD_ORDERED_END): New internal functions.
5114 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
5115 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
5116 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
5117 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
5118 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
5119 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
5120 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
5121 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
5122 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
5123 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
5124 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
5125 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
5126 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
5127 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
5129 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
5130 GOMP_target_data_41, adjust type.
5131 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
5132 GOMP_target_update_41, adjust type.
5133 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
5135 (struct omp_for_data): Add ordered and simd_schedule fields.
5136 (omp_member_access_dummy_var, unshare_and_remap_1,
5137 unshare_and_remap, is_taskloop_ctx): New functions.
5138 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
5139 (extract_omp_for_data): Handle taskloops and doacross loops
5140 and simd schedule modifier.
5141 (omp_adjust_chunk_size): New function.
5142 (get_ws_args_for): Use it.
5143 (lookup_sfield): Change first argument to splay_tree_key,
5144 add overload with first argument tree.
5145 (maybe_lookup_field): Likewise.
5146 (use_pointer_for_field): Handle omp_member_access_dummy_var.
5147 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
5148 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
5149 (build_outer_var_ref): Add LASTPRIVATE argument, handle
5150 taskloops and omp_member_access_dummy_var vars.
5151 (build_sender_ref): Change first argument to splay_tree_key,
5152 add overload with first argument tree.
5153 (install_var_field): For mask & 8 use &DECL_UID as key instead
5155 (fixup_child_record_type): Const qualify *.omp_data_i.
5156 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
5157 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
5158 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
5159 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
5160 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
5161 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
5162 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
5164 (add_taskreg_looptemp_clauses): New function.
5165 (scan_omp_parallel): Use it.
5166 (scan_omp_task): Likewise.
5167 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5168 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
5169 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5170 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
5171 sandwiched taskloop constructs. Type check
5172 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
5173 region. Diagnose depend(source) or depend(sink:...) on
5174 target constructs or task/taskloop.
5175 (handle_simd_reference): Use get_name.
5176 (lower_rec_input_clauses): Likewise. Ignore all
5177 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
5178 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
5179 before passing it to omp_clause_{default,copy}_ctor. Handle
5180 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
5181 lastprivate_firstprivate flag for linear that needs copyin and
5182 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
5183 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
5184 on taskloop lookup decl in outer context. Pass true to
5185 build_outer_var_ref lastprivate argument. Handle
5186 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
5187 outside of outer taskloop for.
5188 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
5190 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
5191 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
5192 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
5193 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
5194 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
5195 abstract origin. Handle omp_member_access_dummy_var vars.
5196 (expand_parallel_call): Use expand_omp_build_assign.
5197 (expand_task_call): Handle taskloop construct expansion. Add
5198 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
5199 integers. Add priority argument to GOMP_task* calls. Or in
5200 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
5202 (expand_omp_build_assign): Add prototype. Add AFTER
5203 argument, if true emit statements after *GSI_P and continue linking.
5204 (expand_omp_taskreg): Adjust expand_task_call caller.
5205 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
5206 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
5207 zero_iter2_bb and first_zero_iter2 arguments, handle computation
5208 of counts even for ordered loops.
5209 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
5210 (expand_omp_ordered_source, expand_omp_ordered_sink,
5211 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
5213 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
5214 clauses on worksharing loop. Handle DOACROSS loop expansion.
5215 (expand_omp_for_static_nochunk): Handle linear clauses on
5216 worksharing loop. Adjust expand_omp_for_init_counts
5218 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
5219 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
5220 expand_omp_for_init_counts callers.
5221 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
5223 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
5224 Handle doacross loops.
5225 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5226 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
5227 GOMP_target_{41,update_41,enter_exit_data} libcalls.
5228 (expand_omp): Don't expand ordered depend constructs here, record
5229 ord_stmt instead for later expand_omp_for_generic.
5230 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5231 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
5232 clause as stand-alone directive.
5233 (lower_omp_ordered_clauses): New function.
5234 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
5235 don't lower anything.
5236 (lower_omp_for_lastprivate): Use last _looptemp_ clause
5237 on taskloop for comparison.
5238 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
5239 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
5240 expansion for linear adjustments.
5241 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
5242 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
5243 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
5244 to tree * pointing to the stmt's clauses.
5245 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
5246 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
5247 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
5248 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
5249 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
5250 clauses. Always use short kind and 8-bit align shift.
5251 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
5252 (struct lower_omp_regimplify_operands_data): New type.
5253 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
5255 (lower_omp_1): Use lower_omp_regimplify_operands instead of
5256 gimple_regimplify_operands.
5257 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
5258 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
5259 clause as stand-alone directive.
5260 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
5261 (simd_clone_mangle): Mangle the various linear kinds
5263 (simd_clone_adjust_argument_types): Handle
5264 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
5265 (simd_clone_init_simd_arrays): Don't do anything for uval.
5266 (simd_clone_adjust): Handle
5267 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
5268 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
5269 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
5270 * omp-low.h (omp_member_access_dummy_var): New prototype.
5271 * passes.def (pass_simduid_cleanup): Schedule another copy of the
5272 pass after all optimizations.
5273 * tree.c (omp_clause_code_name): Add entries for
5274 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5275 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5276 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
5277 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
5278 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
5279 OMP_CLAUSE_REDUCTION 5 arguments. Handle
5280 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5281 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
5283 * tree-core.h (enum omp_clause_linear_kind): New.
5284 (struct tree_omp_clause): Change type of map_kind
5285 from unsigned char to unsigned int. Add subcode.if_modifier
5286 and subcode.linear_kind fields.
5287 (enum omp_clause_code): Add
5288 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
5289 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
5290 (OMP_CLAUSE_REDUCTION): Document
5291 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5292 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
5293 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
5294 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
5296 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
5298 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
5300 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
5301 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
5303 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
5304 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
5305 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
5306 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
5307 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
5308 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
5309 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
5310 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
5311 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
5312 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
5313 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
5314 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
5315 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
5316 * tree-inline.c (remap_gimple_stmt): Handle clauses on
5317 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
5318 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
5319 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
5320 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5321 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5322 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
5323 (convert_local_omp_clauses): Likewise.
5324 * tree-pretty-print.c (dump_omp_clause): Handle
5325 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
5326 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
5327 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
5328 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
5329 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
5330 GOMP_MAP_FORCE_DEALLOC. Handle
5331 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
5332 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
5333 and clauses on OMP_ORDERED and OMP_CRITICAL.
5334 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
5335 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
5336 (vectorize_loops): Adjust comments.
5337 (pass_simduid_cleanup::execute): Likewise.
5338 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
5339 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
5340 * wide-int.h (wi::gcd): New.
5342 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
5344 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
5345 (ix86_function_arg_advance): Ditto.
5346 (ix86_function_arg): Ditto.
5347 (ix86_gimplify_va_arg): Ditto.
5348 (ix86_class_max_nregs): Ditto.
5349 (inline_memory_move_cost): Ditto.
5350 (ix86_set_reg_reg_cost): Ditto.
5351 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
5353 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
5356 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
5358 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
5360 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
5361 ROUND_UP macro and UNITS_PER_WORD * 2.
5362 * config/sparc/sparc.c (sparc_compute_frame_size):
5363 Use ROUND_UP and ROUND_DOWN macros where applicable.
5364 (function_arg_record_value, function_arg_record_value_1)
5365 (function_arg_record_value_1): Ditto.
5366 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
5367 alignment to double-word.
5368 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
5369 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
5372 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
5374 * rtl.h (print_insn): Fix prototype.
5376 2015-10-13 Tom de Vries <tom@codesourcery.com>
5378 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
5379 -1. Add assert that returned entry matches phi argument.
5380 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
5381 free_stmt_vec_info_vec ...
5382 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
5385 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
5387 PR tree-optimization/67909, 67947
5388 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
5389 really skip the inner loop.
5391 2015-10-13 Jeff Law <law@redhat.com>
5393 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
5394 Allow single block jump threading paths.
5396 2015-10-13 Tom de Vries <tom@codesourcery.com>
5398 PR tree-optimization/67476
5399 * doc/invoke.texi (@item parloops-schedule): New item.
5400 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
5401 * tree-parloops.c: Include params-enum.h.
5402 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
5404 2015-10-13 Tom de Vries <tom@codesourcery.com>
5406 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
5407 * params-enum.h: New file.
5408 * opts.c (handle_param): Handle case that param arg is a string.
5409 * params-list.h: Handle DEFPARAMENUM5 in params.def.
5410 * params.c (find_param): New function, factored out of ...
5411 (set_param_value): ... here.
5412 (param_string_value_p): New function.
5413 * params.h (struct param_info): Add value_names field.
5414 (find_param, param_string_value_p): Declare.
5416 2015-10-13 Tom de Vries <tom@codesourcery.com>
5418 PR tree-optimization/67476
5419 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
5421 2015-10-13 Richard Biener <rguenther@suse.de>
5423 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
5424 the data dependence vector.
5425 (vect_peeling_hash_insert): Get the peeling hash table as argument.
5426 (vect_peeling_hash_get_lowest_cost): Likewise.
5427 (vect_enhance_data_refs_alignment): Adjust.
5428 (struct _vect_peel_info, struct _vect_peel_extended_info,
5429 struct peel_info_hasher): Move from ...
5430 * tree-vectorizer.h: ... here.
5431 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
5432 (LOOP_VINFO_PEELING_HTAB): Likewise.
5433 (struct _loop_vec_info): Remove min_profitable_iters and
5434 peeling_htab members.
5435 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
5437 (destroy_loop_vec_info): Adjust.
5438 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
5439 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
5440 to estimate alias versioning cost.
5441 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
5443 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
5445 * real.h (real_isinteger): Declare.
5446 * real.c (real_isinteger): New function.
5447 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
5448 if y is an even integer.
5450 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5453 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5454 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5455 counts when these are more informative.
5457 2015-10-12 Jeff Law <law@redhat.com>
5459 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
5460 (fsm_find_control_stmt_paths): Change name of first argument to
5461 more accurately relfect what it really is. Handle simplification
5462 of GIMPLE_COND after finding a thread path for NAME.
5463 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
5464 nontrivial conditions to be handled by FSM threader.
5465 (thread_through_normal_block): Extract the name to looup via
5466 FSM threader from COND_EXPR.
5468 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
5469 restriction that traced SSA_NAME is a user variable.
5471 2015-10-12 Tom de Vries <tom@codesourcery.com>
5473 PR tree-optimization/67476
5474 * omp-low.c (expand_omp_for_generic): Add missing phis.
5476 2015-10-12 Tom de Vries <tom@codesourcery.com>
5478 PR tree-optimization/67476
5479 * omp-low.c (expand_omp_for_generic): Handle simple latch.
5481 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
5483 * config/aarch64/aarch64-simd-builtins.def: Update builtins
5484 tables: add tbl3 and tbx4.
5485 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
5486 (aarch64_tbx4v8qi): New.
5487 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
5488 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
5489 Rewrite using builtin functions.
5490 * config/aarch64/iterators.md (UNSPEC_TBX): New.
5492 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
5494 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
5496 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
5497 Use ROUND_UP and ROUND_DOWN macros where applicable.
5498 (rs6000_darwin64_record_arg_flush): Ditto.
5499 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
5500 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
5503 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
5505 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
5506 (AARCH64_ROUND_DOWN): Ditto.
5507 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
5509 2015-10-12 Richard Biener <rguenther@suse.de>
5512 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
5513 code that analyzes IVs on each stmt but in a cheaper way avoiding
5516 2015-10-12 Nick Clifton <nickc@redhat.com>
5518 * config/msp430/msp430.c (msp430_mcu_names): Rename to
5519 msp430_mcu_data, add fields for ISA and hardware multiply
5520 support. Import latest data from the devices.csv file.
5521 (msp430_override_option): Use the data from the new array.
5522 (msp430_use_f5_series_hwmult): Likewise.
5523 (use_32bit_hwmult): Likewise.
5524 (msp430_no_hwmult): Likewise.
5525 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
5527 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
5528 not recognised then no hardware multiply support is assumed and
5529 that only the MSP430 ISA is allowed.
5531 2015-10-12 Richard Biener <rguenther@suse.de>
5533 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
5535 (vect_analyze_loop_2): ... here.
5537 2015-10-11 Jason Merrill <jason@redhat.com>
5540 * expr.c (store_field): Call store_constructor directly when
5541 storing a CONSTRUCTOR into a target smaller than its type.
5542 Guard against unsafe bitwise copy.
5544 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5546 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
5547 counts when these are more informative.
5549 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5551 * tree-profile.c (tree_profiling): Do not clear
5552 pure/const when not instrumenting.
5553 (pass tree_profile): Add dump of symtab.
5555 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
5557 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
5559 (fold_addr_of_array_ref_difference): Likewise.
5561 2015-10-11 Jeff Law <law@redhat.com>
5563 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
5564 tree-ssa-threadbackward.c.
5565 (fsm_find_control_statement_thread_paths): Likewise.
5566 (thread_through_normal_block): Break out FSM bits and move them
5567 into a new function in tree-ssa-threadbackward.c. Call new function
5569 Minimize header file usage.
5570 * tree-ssa-threadbackward.h: New file.
5571 * tree-ssa-threadbackward.c: Likewise.
5572 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
5574 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
5576 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
5578 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
5580 PR rtl-optimization/67864
5581 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
5582 fallthrough edges for conditional jumps. Don't sort candidate
5583 edges if not optimizing for speed.
5585 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5587 * defaults.h (REVERSE_CONDITION): New default definition.
5588 * jump.c (reversed_comparison_code_parts): Adjust.
5590 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5592 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
5593 check HARD_FRAME_POINTER_IS_ARG_POINTER.
5595 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5597 * defaults.h (FRAME_ADDR_RTX): New default definition.
5598 * builtins.c (expand_builtin_return_addr): Adjust.
5600 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5602 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
5603 * builtins.c (expand_builtin_return_addr): Adjust.
5605 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5607 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
5608 * builtins.c (expand_builtin_return_addr): Adjust.
5609 * doc/tm.texi: Likewise.
5610 * doc/tm.texi.in: Likewise.
5611 * except.c (expand_builtin_unwind_init): Likewise.
5613 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5615 * builtins.c (expand_builtin_return_addr): Adjust.
5616 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
5618 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
5620 * tree.c (type_with_interoperable_signedness): New.
5621 (gimple_canonical_types_compatible_p): Use it.
5622 * tree.h (type_with_interoperable_signedness): Declare
5624 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
5626 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
5627 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
5628 when OEP_ADDRESS_OF is se.
5630 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
5631 Sebastian Pop <s.pop@samsung.com>
5633 * graphite-dependences.c (scop_get_dependences): Add dump of the
5634 data dependence graph.
5635 * graphite-poly.c (print_isl_union_map): New.
5636 (debug_isl_union_map): New.
5637 * graphite-poly.h (print_isl_union_map): Declare.
5638 (debug_isl_union_map): Declare.
5640 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
5641 Sebastian Pop <s.pop@samsung.com>
5643 * graphite-poly.c (print_iteration_domain): Remove verbosity.
5644 Remove OpenScop formatting.
5645 (print_iteration_domains): Same.
5646 (debug_iteration_domain): Same.
5647 (debug_iteration_domains): Same.
5650 (dump_gbb_cases): Same.
5651 (dump_gbb_conditions): Same.
5654 (print_pbb_body): Same.
5656 (print_scop_params): Same.
5657 (print_scop_context): Same.
5659 (debug_pbb_domain): Same.
5661 (debug_scop_context): Same.
5663 (debug_scop_params): Same.
5664 * graphite-poly.h: Same.
5665 * graphite.c (graphite_transform_loops): Same.
5667 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5669 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
5670 call that isn't needed.
5672 2015-10-09 Jeff Law <law@redhat.com>
5674 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
5675 rather than moving each name to the freelist individually.
5677 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
5679 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
5680 * frame-header-opt.c: New file.
5681 * config/mips/mips-proto.h (mips_register_frame_header_opt):
5683 * config/mips/mips.c (mips_compute_frame_info): Check
5684 optimize_call_stack flag.
5685 (mips_option_override): Register new frame_header_opt pass.
5686 (mips_frame_info, mips_int_mask, mips_shadow_set,
5687 machine_function): Move these types to...
5688 * config/mips/mips.h: here.
5689 (machine_function): Add does_not_use_frame_header and
5690 optimize_call_stack fields.
5691 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
5692 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
5694 * config/mips/mips.opt (mframe-header-opt): Add new option.
5696 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
5698 * config/i386/i386.c
5699 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
5700 ROUND_DOWN where applicable.
5702 2015-10-09 Jeff Law <law@redhat.com>
5704 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
5707 2015-10-09 Renlin Li <renlin.li@arm.com>
5709 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
5710 operands[0] and operands[2].
5711 (neon_vtrn<mode>_insn): Likewise.
5712 (neon_vzip<mode>_insn): Likewise.
5714 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
5716 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
5717 ((X & C2) << C1): Expand to...
5718 (X {&,^,|} C2 << C1): ...This.
5719 ((X & C2) >> C1): Expand to...
5720 (X {&,^,|} C2 >> C1): ...This.
5722 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
5725 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
5726 Adjust embedded rounding/SAE specifier position.
5727 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
5728 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
5729 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
5730 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
5731 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
5733 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
5735 2015-10-09 Martin Jambor <mjambor@suse.cz>
5737 tree-optimization/67794
5738 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
5739 between types of state,ents but accept original definitions as a
5741 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
5742 iterate over definitions.
5744 2015-10-09 James Norris <jnorris@codesourcery.com>
5746 * config/rs6000/rs6000.c (rs6000_offload_options): New.
5747 (TARGET_OFFLOAD_OPTIONS): New.
5749 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
5752 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
5755 * function.c (expand_function_end): Move return value
5756 promotion past the handling of PARALLELs and CONCATs.
5758 PR rtl-optimization/67828
5759 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
5760 (tree_may_unswitch_on): Don't unswitch on expressions
5761 involving undefined values.
5763 2015-10-09 Richard Biener <rguenther@suse.de>
5765 * genmatch.c (print_operand): Fix formatting.
5766 (dt_node::append_simplify): Warn for multiple simplifiers
5767 that match the same pattern.
5768 * match.pd (log (exp @0)): Remove duplicates.
5770 2015-10-09 Richard Biener <rguenth@suse.de>
5773 * gimple-fold.c (optabs-query.h): Include
5774 (gimple_fold_builtin_memory_op): Allow unaligned stores
5775 when movmisalign_optabs are available.
5777 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5780 * config/arm/arm.md (movmisalign<mode>): New.
5781 * config/arm/iterators.md (HSI): New.
5783 2015-10-09 Richard Biener <rguenther@suse.de>
5785 PR tree-optimization/67891
5786 * gimple-match.h (gimple_simplified_result_is_gimple_val):
5788 (gimple_resimplify1): Declare.
5789 (gimple_resimplify2): Likewise.
5790 (gimple_resimplify3): Likewise.
5791 * gimple-match-head.c (gimple_resimplify1): Export.
5792 (gimple_resimplify2): Likewise.
5793 (gimple_resimplify3): Likewise.
5794 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
5795 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
5796 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
5797 to avoid creating stmts without VN info.
5799 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
5801 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
5804 2015-10-08 Jeff Law <law@redhat.com>
5806 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
5807 and release_ssa_name in two places.
5808 (gimple_stringop_fixed_value): Similarly.
5810 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
5813 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
5814 unlink_stmt_vdef and release_ssa_name_fn.
5816 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
5819 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
5821 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
5822 SSE register save area to 16 bytes only if the incoming stack
5823 boundary is no less than 16 bytes.
5825 2015-10-08 Jeff Law <law@redhat.com>
5827 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
5828 release_ssa_name. Fix typo in comment.
5830 2015-10-08 Nathan Sidwell <nathan@acm.org>
5832 * config/nvptx/nvptx.h (struct machine_function): Add comment.
5833 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
5834 may return pointer as well as in memory.
5835 (nvptx_output_return): Likewise.
5837 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
5839 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
5840 (fold_builtin_1): Update accordingly. Handle constant arguments here.
5841 * match.pd: Add rules previously handled by fold_builtin_sqrt
5842 and fold_builtin_cbrt.
5844 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
5846 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
5847 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
5848 * fold-const.h (tree_unary_nonnegative_warnv_p)
5849 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
5850 (tree_expr_nonnegative_warnv_p): Add depth parameters.
5851 * fold-const.c: Include gimple-fold.h and params.h.
5852 (tree_ssa_name_nonnegative_warnv_p): New function.
5853 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
5854 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
5855 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
5856 Add a depth parameter and increment it for recursive calls to
5857 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
5858 to handle SSA names.
5859 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
5860 (gimple_stmt_nonnegative_warnv_p): Declare.
5861 * tree-vrp.c (remove_range_assertions): Remove assert that condition
5862 cannot be proven false.
5863 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
5864 (gimple_stmt_nonnegative_warnv_p): Move to...
5865 * gimple-fold.c: ...here. Add depth parameters and pass them
5866 down to the tree routines. Accept statements that aren't
5867 assignments or calls but just return false for them.
5868 (gimple_val_nonnegative_real_p): Delete.
5869 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
5870 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
5871 Check HONOR_NANs first.
5873 2015-10-08 Martin Jambor <mjambor@suse.cz>
5875 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
5878 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5880 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
5881 in the tail of outer-loop.
5883 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
5885 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
5888 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
5890 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
5891 "cfghooks.h", add prototypes for introduced new functions.
5892 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
5893 checks on ability of loop unswitching to tree_unswitch_single_loop;
5894 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
5895 on innermost loop check.
5896 (tree_unswitch_single_loop): Add all required checks on ability of
5897 loop unswitching under zero recursive level guard.
5898 (tree_unswitch_outer_loop): New function.
5899 (find_loop_guard): Likewise.
5900 (empty_bb_without_guard_p): Likewise.
5901 (used_outside_loop_p): Likewise.
5902 (get_vop_from_header): Likewise.
5903 (hoist_guard): Likewise.
5904 (check_exit_phi): Likewise.
5906 2015-10-08 Marek Polacek <polacek@redhat.com>
5908 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
5911 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5914 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
5915 create_tmp_var_raw instead of create_tmp_var.
5917 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
5919 * expr.c (store_expr_with_bounds): Handle aggregate moves from
5921 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
5922 to define gimple type system; compare aggregates only by size.
5924 2015-10-07 Jeff Law <law@redhat.com>
5926 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
5927 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
5928 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
5931 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
5932 Sebastian Pop <s.pop@samsung.com>
5934 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
5935 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
5936 (generate_isl_schedule): Same.
5937 * graphite-optimize-isl.c (scop_get_domains): Same.
5938 (apply_schedule_map_to_scop): Same.
5939 * graphite-poly.c (print_iteration_domains): Same.
5940 (remove_gbbs_in_scop): Same.
5944 * graphite-poly.h (struct scop): Rename bbs to pbbs.
5946 * graphite-scop-detection.c (compare_bb_depths): Remove.
5947 (graphite_sort_dominated_info): Remove.
5948 (try_generate_gimple_bb): Move out of scop_detection.
5949 (all_non_dominated_preds_marked_p): Remove.
5950 (build_scop_bbs_1): Remove.
5951 (build_scop_bbs): Remove.
5952 (nb_pbbs_in_loops): Do not use SCOP_BBS.
5953 (find_scop_parameters): Same.
5954 (sese_dom_walker): Rename gather_bbs.
5955 (before_dom_children): Call try_generate_gimple_bb and collect gbb
5957 (build_scops): Call gather_bbs.
5958 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
5959 (add_conditions_to_constraints): Same.
5960 (build_scop_iteration_domain): Same.
5961 (build_scop_drs): Same.
5962 (new_pbb_from_pbb): Same.
5963 * sese.c (new_sese_info): Create bbs.
5964 * sese.h (struct sese_info_t): Add bbs.
5966 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
5968 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
5969 encoding in 64-bit mode.
5971 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
5974 * config/i386/i386.c (ix86_option_override_internal): Always use
5975 8-byte minimum stack boundary in 64-bit mode.
5976 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
5977 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
5978 Add a REG_CFA_EXPRESSION note if needed.
5979 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
5980 (ix86_handle_force_align_arg_pointer_attribute): New.
5981 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
5982 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
5983 with ix86_handle_force_align_arg_pointer_attribute.
5984 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
5986 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
5987 Sebastian Pop <s.pop@samsung.com>
5989 * graphite-scop-detection.c (parameter_index_in_region): Remove
5990 use of SESE_ADD_PARAMS.
5991 (find_scop_parameters): Same.
5992 * sese.c (new_sese_info): Same.
5993 * sese.h (struct sese_info_t): Remove add_params.
5994 (SESE_ADD_PARAMS): Remove.
5996 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
5997 Sebastian Pop <s.pop@samsung.com>
5999 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
6002 (copy_internal_parameters): Same.
6003 (translate_isl_ast_to_gimple): Use an sese_l.
6004 (build_iv_mapping): Same.
6005 * graphite-poly.c (new_sese): Rename new_sese_info.
6006 (free_sese): Rename free_sese_info.
6007 * graphite-poly.h (struct scop): Use an sese_info_p.
6008 (scop_set_region): Same.
6009 * graphite-scop-detection.c (struct sese_l): Moved...
6010 (get_entry_bb): Moved...
6011 (get_exit_bb): Moved...
6012 (parameter_index_in_region_1): Use an sese_info_p.
6013 (parameter_index_in_region): Same.
6014 (scan_tree_for_params): Same.
6015 (find_params_in_bb): Same.
6016 (sese_dom_walker): Use an sese_l.
6017 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
6018 (reduction_phi_p): Same.
6019 (parameter_index_in_region_1): Use an sese_info_p.
6020 (propagate_expr_outside_region): Use an sese_l.
6021 * graphite.c: Replace uses of SCOP_REGION.
6022 * sese.c (sese_record_loop): Use an sese_info_p.
6023 (build_sese_loop_nests): Same.
6024 (sese_build_liveouts_use): Same.
6025 (sese_build_liveouts_bb): Same.
6026 (sese_build_liveouts_bb): Same.
6027 (sese_bad_liveouts_use): Same.
6028 (sese_reset_debug_liveouts_bb): Same.
6029 (sese_build_liveouts): Same.
6030 (new_sese): Renamed new_sese_info.
6031 (free_sese): Renamed free_sese_info.
6032 (set_rename): Use an sese_info_p.
6033 (graphite_copy_stmts_from_block): Same.
6034 (copy_bb_and_scalar_dependences): Same.
6035 (outermost_loop_in_sese_1): Use an sese_l.
6036 (outermost_loop_in_sese): Same.
6037 (if_region_set_false_region): Use an sese_info_p.
6038 (move_sese_in_condition): Same.
6039 (scalar_evolution_in_region): Use an sese_l.
6040 * sese.h (struct sese_l): ... here.
6041 (SESE_ENTRY): Remove.
6042 (SESE_ENTRY_BB): Remove.
6043 (SESE_EXIT): Remove.
6044 (SESE_EXIT_BB): Remove.
6045 (sese_contains_loop): Use an sese_info_p.
6046 (sese_nb_params): Same.
6047 (bb_in_sese_p): Use an sese_l.
6048 (stmt_in_sese_p): Same.
6049 (defined_in_sese_p): Same.
6050 (loop_in_sese_p): Same.
6051 (sese_loop_depth): Same.
6052 (struct ifsese_s): Use an sese_info_p.
6053 (gbb_loop_at_index): Use an sese_l.
6054 (nb_common_loops): Same.
6055 (scev_analyzable_p): Same.
6057 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6059 * config/i386/i386.c (ix86_conditional_register_usage): Use
6060 CALL_USED_REGISTERS_MASK.
6061 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
6063 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6066 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
6067 * configure: Regenerated.
6069 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
6072 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
6073 (ix86_set_current_function): This.
6074 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
6076 2015-10-07 Richard Biener <rguenther@suse.de>
6078 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
6079 (vinfo_for_stmt): Adjust.
6080 (set_vinfo_for_stmt): Likewise.
6081 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
6082 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
6083 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
6085 (vect_analyze_loop_1): Remove.
6086 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
6087 inner loop when vectorizing an outer loop by splitting out from ...
6088 (vect_analyze_loop_form): ... here.
6090 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6093 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
6094 Use create_tmp_var_raw instead of create_tmp_var.
6096 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
6098 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
6099 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
6100 * real.c (CACHED_FRACTION): New helper macro.
6101 (dconst_third_ptr): Use it.
6102 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
6103 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
6105 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
6107 2015-10-06 Jeff Law <law@redhat.com>
6109 PR tree-optimization/67816
6110 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
6111 from remove_jump_threads_starting_at. Accept an edge rather than
6113 * tree-ssa-threadupdate.c (removed_edges): New hash table.
6114 (remove_jump_threads_including): Note edges that get removed from
6115 the CFG for later pruning of jump threading paths including them.
6116 (thread_through_all_blocks): Remove paths which include edges that
6118 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
6119 on each outgoing edges when optimizing away a control statement.
6121 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6123 * reorg.c (emit_delay_sequence): Store list of delay slot insns
6124 in a vector instead of rtx_insn_list.
6125 (add_to_delay_list): Likewise.
6126 (delete_from_delay_slot): Likewise.
6127 (optimize_skip): Likewise.
6128 (redirect_with_delay_list_safe_p): Likewise.
6129 (check_annul_list_true_false): Likewise.
6130 (steal_delay_list_from_target): Likewise.
6131 (steal_delay_list_from_fallthrough): Likewise.
6132 (redundant_insn): Likewise.
6133 (fill_simple_delay_slots): Likewise.
6134 (fill_slots_from_thread): Likewise.
6135 (fill_eager_delay_slots): Likewise.
6136 (relax_delay_slots): Likewise.
6138 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
6140 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
6141 For -mgpopt=local, also exclude unintialized common symbols.
6142 * doc/invoke.texi (Nios II Options): Document the change.
6144 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
6146 * config/aarch64/iterators.md (vwcore): Add missing cases for
6149 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6150 Sebastian Pop <s.pop@samsung.com>
6152 * graphite-poly.c (new_scop): Initialize drs.
6153 * graphite-poly.h (struct dr_info): New.
6154 (struct scop): Add drs.
6155 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
6156 (pdr_add_memory_accesses): Same.
6157 (build_poly_dr): Same.
6158 (build_alias_set): Same.
6159 (build_scop_drs): Same.
6160 (build_pbb_drs): Remove.
6161 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
6162 * tree-data-ref.h (data_reference): Remove alias_set.
6164 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6165 Sebastian Pop <s.pop@samsung.com>
6167 * graphite-poly.c (free_data_refs_aux): Remove.
6168 (free_gimple_poly_bb): Do not call free_data_refs_aux.
6169 * graphite-poly.h (struct base_alias_pair): Remove.
6170 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
6171 base_alias_pair and dr->aux.
6172 (build_alias_set): Same.
6173 * tree-data-ref.c (create_data_ref): Initialize alias_set.
6174 * tree-data-ref.h (data_reference): Add alias_set.
6176 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
6177 Sebastian Pop <s.pop@samsung.com>
6179 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
6180 Do not set PDR_BASE_OBJECT_SET.
6181 * graphite-poly.h (poly_dr): Same.
6182 (PDR_BASE_OBJECT_SET): Remove.
6183 (new_poly_dr): Update decl.
6184 * graphite-sese-to-poly.c (build_poly_dr): Update call to
6186 (write_alias_graph_to_ascii_dimacs): Remove.
6187 (write_alias_graph_to_ascii_dot): Remove.
6188 (write_alias_graph_to_ascii_ecc): Remove.
6189 (dr_same_base_object_p): Remove.
6190 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
6192 (build_base_obj_set_for_drs): Remove.
6193 (dump_alias_graphs): Remove.
6194 (build_scop_drs): Remove dead code.
6196 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
6197 Peter Bergner <bergner@vnet.ibm.com>
6200 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
6201 allow registers, but provide insns for the combiner to create for
6202 loads from memory. Separate VSX code from non-VSX code. For
6203 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
6204 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
6205 so that registers come before memory operations. Drop support from
6206 converting DFmode to TFmode, if the DFmode value is in a GPR
6208 (extenddftf2_fprs): Likewise.
6209 (extenddftf2_internal): Likewise.
6210 (extenddftf2_vsx): Likewise.
6211 (extendsftf2): In the expander, only allow registers, but provide
6212 insns for the combiner to create for stores and loads.
6214 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6216 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
6217 from the decl parameter.
6219 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
6222 * gimple-fold.c (gimple_fold_builtin): Add break after
6223 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
6225 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
6227 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
6228 to scop->isl_context.
6230 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
6232 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
6233 (output_probe_stack_range): Rotate the loop and simplify.
6234 (thumb1_expand_prologue): Tweak sorry message.
6235 * config/arm/arm.md (probe_stack): Use bare string.
6237 2015-10-06 Nick Clifton <nickc@redhat.com>
6239 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
6241 2015-10-06 Nick Clifton <nickc@redhat.com>
6243 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
6244 (ATTR_PERSIST): New constant.
6245 (msp430_data_attr): New function - verifies an attribute that only
6246 applies to variables.
6247 (msp430_attributes): Add noinit and persistent attributes.
6248 (noinit_section): New variable.
6249 (presis_section): New variable.
6250 (TARGET_ASM_INIT_SECTIONS): Define.
6251 (msp430_init_sections): New function - initialises the noinit and
6252 persist section variables.
6253 (msp430_select_section): Add support for noinit and persist
6255 (msp430_section_type_flags): Likewise.
6256 * doc/extend.texi: Document the reent, critical, wakeup, noinit
6257 and persistent attributes.
6259 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6260 Sebastian Pop <s.pop@samsung.com>
6262 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
6263 (no_violations): Remove.
6264 (subtract_commutative_associative_deps): Remove.
6265 (compute_deps): Do not call subtract_commutative_associative_deps.
6266 (transform_is_safe): Remove.
6267 (graphite_legal_transform): Remove.
6268 * graphite-poly.h (graphite_legal_transform): Remove.
6270 2015-10-05 Aditya Kumar <hiraditya@msn.com>
6272 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
6273 which are in this region are passed so gcc_assert and remove redundant
6275 * sese.c (sese_build_liveouts): Pass only those bbs which are not
6277 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
6278 gcc_assert on that and remove unnecessary computation.
6279 (sese_build_liveouts_use): Same.
6281 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6283 * graphite-dependences.c (scop_get_reads): Renamed scop->context
6284 to scop->param_context.
6285 (scop_get_must_writes): Same.
6286 (scop_get_may_writes): Same.
6287 (scop_get_original_schedule): Same.
6288 (scop_get_transformed_schedule): Same.
6289 (subtract_commutative_associative_deps): Same.
6290 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
6291 (generate_isl_context): Same.
6292 (generate_isl_schedule): Same.
6293 (scop_to_isl_ast): Same.
6294 (graphite_regenerate_ast_isl): Same.
6295 * graphite-optimize-isl.c (scop_get_domains): Same.
6296 (optimize_isl): Renamed scop->context to scop->param_context.
6297 * graphite-poly.c (new_poly_bb): Change the type of argument to
6299 (new_scop): Renamed scop->context to scop->param_context.
6301 (print_scop_context): Same.
6302 * graphite-poly.h (new_poly_dr): Change the type of argument from
6303 void* to data_reference_p.
6304 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
6305 (new_poly_bb): Change the type of argument from void* to
6307 (pbb_set_black_box): Same.
6308 (struct scop): Rename context to param_context, ctx to isl_context.
6309 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
6310 Move declarations closer to assignment.
6311 (find_params_in_bb): Same.
6312 (find_scop_parameters): Same.
6313 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
6314 Global to be used for statement IDs.
6315 (isl_id_for_pbb): Use ssa_name_version_typesize.
6316 (simple_copy_phi_p): Move declarations closer to assignment.
6317 (build_pbb_scattering_polyhedrons): Same.
6318 (build_scop_scattering): Same.
6319 (isl_id_for_ssa_name): Same.
6320 (extract_affine_name): Same.
6321 (extract_affine_int): Same.
6322 (extract_affine): Same.
6323 (set_scop_parameter_dim): Use renamed member.
6324 (build_loop_iteration_domains): Same.
6325 (add_param_constraints): Same.
6326 (build_scop_iteration_domain): Same.
6327 (pdr_add_data_dimensions): Same.
6328 (build_poly_dr): Same.
6329 (build_scop_drs): Move declarations closer to assignment.
6330 (analyze_drs_in_stmts): Same.
6331 (insert_out_of_ssa_copy): Same.
6332 (insert_out_of_ssa_copy_on_edge): Same.
6333 (propagate_expr_outside_region): Same.
6334 (rewrite_phi_out_of_ssa): Same.
6335 (rewrite_degenerate_phi): Same.
6336 (rewrite_reductions_out_of_ssa): Same.
6337 (rewrite_cross_bb_scalar_dependence): Same.
6338 (handle_scalar_deps_crossing_scop_limits): Same.
6339 (rewrite_cross_bb_scalar_deps): Same.
6340 * graphite.c (graphite_transform_loops): Use renamed member.
6342 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
6345 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
6346 create_tmp_var_raw instead of create_tmp_var.
6348 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6351 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
6352 Use create_tmp_var_raw instead of create_tmp_var.
6354 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
6357 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
6358 split for upper-bank registers when target does not support
6360 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
6361 split when target does not support AVX512VL.
6363 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
6366 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
6367 Adjust to use create_tmp_var_raw instead of create_tmp_var.
6369 2015-10-06 Nick Clifton <nickc@redhat.com>
6371 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
6374 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
6376 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
6377 (case ${target}): Add znver1.
6378 * config/i386/cpuid.h(bit_CLZERO): Define.
6379 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
6380 -march=native recognize znver1 processors.
6381 * config/i386/i386-c.c (ix86_target_macros_internal): Add
6382 znver1, clzero def_and_undef.
6383 * config/i386/i386.c (struct processor_costs znver1_cost): New.
6384 (m_znver1): New definition.
6385 (m_AMD_MULTIPLE): Includes m_znver1.
6386 (processor_target_table): Add znver1 entry.
6387 (ix86_target_string) : Add clzero entry.
6388 (static const char *const cpu_names): Add znver1 entry.
6389 (ix86_option_override_internal): Add znver1 instruction sets.
6390 (PTA_CLZERO) : New definition.
6391 (ix86_option_override_internal): Handle new clzerooption.
6392 (ix86_issue_rate): Add znver1.
6393 (ix86_adjust_cost): Add znver1.
6394 (ia32_multipass_dfa_lookahead): Add znver1.
6395 (has_dispatch): Add znver1.
6396 * config/i386/i386.h (TARGET_znver1): New definition.
6397 (TARGET_CLZERO): Define.
6398 (TARGET_CLZERO_P): Define.
6399 (struct ix86_size_cost): Add TARGET_ZNVER1.
6400 (enum processor_type): Add PROCESSOR_znver1.
6401 * config/i386/i386.md (define_attr "cpu"): Add znver1.
6402 (set_attr znver1_decode): New definitions for znver1.
6403 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
6405 * config/i386/mmx.md (set_attr znver1_decode): New definitions
6407 * config/i386/sse.md (set_attr znver1_decode): Likewise.
6408 * config/i386/x86-tune.def: Add znver1 tunings.
6409 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
6410 * doc/invoke.texi: Add details about znver1
6412 2015-10-06 Richard Biener <rguenther@suse.de>
6414 PR tree-optimization/67859
6415 * tree-ssa-pre.c (create_expression_by_pieces): Properly
6416 discard not inserted stmts.
6418 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
6420 * doc/extend.texi (Template Instantiation): Reorder options and
6421 de-emphasize -frepo.
6422 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
6423 example instead of -frepo.
6425 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
6428 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
6429 use create_tmp_var_raw rather than create_tmp_var.
6431 2015-10-06 Richard Biener <rguenther@suse.de>
6433 * tree-vectorizer.h (vec_info): New base class for...
6434 (_loop_vec_info): ... this and ...
6435 (_bb_vec_info): ... this.
6436 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
6437 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
6438 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
6439 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
6440 vect_destroy_datarefs): Adjust interface to take a vec_info *
6441 rather than both a loop_vec_info and a bb_vec_info argument.
6442 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
6443 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
6444 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
6445 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
6447 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
6448 (destroy_loop_vec_info, vect_analyze_loop_2,
6449 vect_is_simple_reduction_1, get_initial_def_for_induction,
6450 vect_create_epilog_for_reduction, vectorizable_reduction,
6451 vectorizable_live_operation, vect_transform_loop): Adjust.
6452 * tree-vect-patterns.c (type_conversion_p,
6453 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
6454 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
6455 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
6456 check_bool_pattern, vect_recog_bool_pattern,
6457 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
6458 * tree-vect-slp.c (vect_get_and_check_slp_defs,
6459 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
6460 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
6461 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
6462 (new_bb_vec_info): Initialize base classs.
6463 * tree-vect-stmts.c (record_stmt_cost, process_use,
6464 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
6465 vectorizable_mask_load_store, vectorizable_call,
6466 vectorizable_simd_clone_call, vectorizable_conversion,
6467 vectorizable_assignment, vectorizable_shift,
6468 vectorizable_operation, vectorizable_store,
6469 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
6470 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
6471 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
6473 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
6476 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
6477 create_tmp_var_raw rather than create_tmp_var.
6479 2015-10-05 Marek Polacek <polacek@redhat.com>
6481 * tree-ssa-loop-im.c
6482 (move_computations_dom_walker::before_dom_children): Don't set
6483 SSA_NAME_ANTI_RANGE_P.
6484 * tree-ssa-phiopt.c (value_replacement): Likewise.
6486 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6487 Sebastian Pop <s.pop@samsung.com>
6489 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
6491 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6492 Sebastian Pop <s.pop@samsung.com>
6494 * graphite-poly.c (new_gimple_poly_bb): ... here.
6495 (free_data_refs_aux): ... here.
6496 (free_gimple_poly_bb): ... here.
6497 (remove_gbbs_in_scop): ... here.
6498 (new_scop): Call new_sese.
6499 (free_scop): Call remove_gbbs_in_scop and free_sese.
6500 * graphite-poly.h (base_alias_pair): ... here.
6501 (new_gimple_poly_bb): Declare.
6502 (free_gimple_poly_bb): Declare.
6503 * graphite-scop-detection.c (parameter_index_in_region_1):
6504 (parameter_index_in_region): ... here.
6505 (scan_tree_for_params): ... here.
6506 (find_params_in_bb): ... here.
6507 (find_scop_parameters): ... here.
6508 (build_scops): Call find_scop_parameters.
6509 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
6510 (free_scops): Move...
6511 (single_pred_cond_non_loop_exit): Move...
6512 (sese_dom_walker::before_dom_children): Move...
6513 (sese_dom_walker::after_dom_children): Move...
6514 (build_poly_scop): Move...
6515 * graphite-sese-to-poly.h (base_alias_pair): Move...
6516 * graphite.c (free_scops): ... here.
6518 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
6519 Sebastian Pop <s.pop@samsung.com>
6521 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
6522 (trivially_empty_bb_p): Move...
6523 (same_close_phi_node): Move...
6524 (new_gimple_poly_bb): Move...
6525 (compare_bb_depths): Move...
6526 (graphite_sort_dominated_info): Move...
6527 (remove_duplicate_close_phi): Move...
6528 (make_close_phi_nodes_unique): Move...
6529 (canonicalize_loop_closed_ssa): Move...
6530 (canonicalize_loop_closed_ssa_form): Move...
6531 (loop_ivs_can_be_represented): Move...
6532 (single_pred_cond_non_loop_exit): Move...
6533 (graphite_can_represent_init): Move...
6534 (graphite_can_represent_scev): Move...
6535 (stmt_has_simple_data_refs_p): Move...
6536 (stmt_has_side_effects): Move...
6537 (graphite_can_represent_stmt): Move...
6538 (scop_detection): ... here.
6539 (sese_dom_walker): ... and here.
6540 (build_scops): Call all moved functions.
6541 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
6542 (all_non_dominated_preds_marked_p): Move...
6543 (build_scop_bbs_1): Move...
6544 (build_scop_bbs): Move...
6545 (set_scop_parameter_dim): Move...
6546 (nb_pbbs_in_loops): Move...
6547 (build_poly_scop): Do not call all the moved functions.
6549 2015-10-05 Martin Jambor <mjambor@suse.cz>
6550 Jan Hubicka <hubicka@ucw.cz>
6552 * ipa-cp.c (ipcp_alignment_lattice): New type.
6553 (ipcp_param_lattices): Use the above to represent alignment.
6554 (ipcp_alignment_lattice::print): New function.
6555 (print_all_lattices): Use it to print alignment information.
6556 (ipcp_alignment_lattice::top_p): New function.
6557 (ipcp_alignment_lattice::bottom_p): Likewise.
6558 (ipcp_alignment_lattice::set_to_bottom): Likewise.
6559 (ipcp_alignment_lattice::meet_with_1): Likewise.
6560 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
6561 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
6562 (initialize_node_lattices): Likewise.
6563 (propagate_alignment_accross_jump_function): Work with the new class
6564 for alignment lattices.
6565 (propagate_constants_accross_call): Pass only the alignment lattice to
6566 propagate_alignment_accross_jump_function.
6567 (ipcp_store_alignment_results): Work with the new class for alignment
6570 2015-10-05 Marek Polacek <polacek@redhat.com>
6572 PR tree-optimization/67821
6573 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
6575 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
6578 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
6580 (mkoffload_cleanup): ... this. Adjust all users.
6581 (maybe_unlink): Look at save_temps and verbose flags instead of
6583 (main): Parse "-save-temps" flag.
6584 (generate_target_descr_file, generate_target_offloadend_file)
6585 (generate_host_descr_file, prepare_target_image): Pass it on.
6586 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
6587 (mkoffload_cleanup): New function.
6588 (maybe_unlink): Look at save_temps and verbose flags instead of
6590 (main): Instead of calling utils_cleanup, register atexit handler
6591 for mkoffload_cleanup.
6592 (main): Parse "-save-temps" flag.
6593 (compile_native, main): Pass it on.
6594 * lto-wrapper.c (compile_offload_image): Likewise.
6596 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6598 * gimple.h (gimple_op_ptr): Require a non const gimple *.
6599 (gimple_assign_lhs_ptr): Likewise.
6600 (gimple_assign_rhs1_ptr): Likewise.
6601 (gimple_assign_rhs2_ptr): Likewise.
6602 (gimple_assign_rhs3_ptr): Likewise.
6603 (gimple_call_lhs_ptr): Likewise.
6604 (gimple_call_fn_ptr): Likewise.
6605 (gimple_call_chain_ptr): Likewise.
6606 (gimple_call_arg_ptr): Likewise.
6607 (gimple_cond_lhs_ptr): Likewise.
6608 (gimple_cond_rhs_ptr): Likewise.
6609 (gimple_switch_index_ptr): Likewise.
6610 (gimple_return_retval_ptr): Likewise.
6612 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6614 * gimple.h (gimple_asm_input_op_ptr): Remove.
6615 (gimple_asm_output_op_ptr): Likewise.
6617 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6619 * gimple.h (gimple_location_ptr): Remove.
6620 * tree-vrp.c (check_all_array_refs): Adjust.
6622 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6624 * tree-ssa-operands.c (build_uses): store tree * instead of
6626 (finalize_ssa_uses): Adjust.
6627 (append_use): Likewise.
6628 (verify_ssa_operands): Likewise.
6630 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6632 * real.h (build_real_truncate): Declare.
6633 * tree.c (build_real_truncate): New function.
6634 (strip_float_extensions): Use it.
6635 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
6636 (fold_builtin_hypot, fold_builtin_pow): Likewise.
6637 * match.pd: Likewise.
6639 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
6640 Jiong Wang <jiong.wang@arm.com>
6642 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
6644 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6646 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
6647 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
6648 (aarch64_print_operand, aarch64_float_const_representable_p)
6649 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
6650 instead of REAL_VALUE_FROM_CONST_DOUBLE.
6651 * config/arc/arc.c (arc_print_operand): Likewise.
6652 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
6653 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
6654 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
6656 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
6657 (consttable_16): Likewise.
6658 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
6659 * config/avr/avr.c (avr_print_operand): Likewise.
6660 * config/bfin/bfin.md: Likewise (in a define_split).
6661 * config/c6x/c6x.md: Likewise (in a define_split).
6662 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
6663 (cr16_print_operand): Likewise.
6664 * config/cris/cris.c (cris_print_operand): Likewise.
6665 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
6666 * config/fr30/fr30.c (fr30_print_operand): Likewise.
6667 (fr30_const_double_is_zero): Likewise.
6668 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
6669 * config/frv/frv.md: Likewise (in a define_split).
6670 * config/frv/predicates.md (int_2word_operand): Likewise.
6671 * config/h8300/h8300.c (h8300_print_operand): Likewise.
6672 * config/i386/i386.c (standard_80387_constant_p): Likewise.
6673 (ix86_print_operand, ix86_split_to_parts): Likewise.
6674 * config/i386/i386.md: Likewise (in a define_split).
6675 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
6676 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
6677 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
6678 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
6679 (print_operand): Likewise.
6680 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
6681 * config/mep/mep.md: Likewise (in define_split).
6682 * config/microblaze/microblaze.c (microblaze_const_double_ok)
6683 (print_operand): Likewise.
6684 * config/mips/mips.md (consttable_float): Likewise.
6685 * config/mmix/mmix.c (mmix_intval): Likewise.
6686 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
6687 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
6688 * config/pa/pa.c (pa_singlemove_string): Likewise.
6689 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
6690 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
6691 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
6692 (output_toc): Likewise.
6693 * config/rs6000/rs6000.md: Likewise (in define_splits).
6694 * config/rx/rx.c (rx_print_operand): Likewise.
6695 * config/s390/s390.c (s390_output_pool_entry): Likewise.
6696 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6697 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
6698 (and also in define_splits).
6699 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
6700 (fp_high_losum_p): Likewise.
6701 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
6702 (*movsf_high): Likewise.
6703 * config/spu/spu.c (const_double_to_hwint): Likewise.
6704 * config/v850/v850.c (const_double_split): Likewise.
6705 * config/vax/vax.c (vax_float_literal): Likewise.
6706 * config/visium/visium.c (visium_expand_copysign): Likewise.
6707 * config/visium/visium.md: Likewise (in define_split).
6708 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6709 * config/xtensa/xtensa.c (print_operand): Likewise.
6710 (xtensa_output_literal): Likewise.
6711 * cprop.c (implicit_set_cond_p): Likewise.
6712 * dwarf2out.c (insert_float): Likewise.
6713 * expmed.c (expand_mult, make_tree): Likewise.
6714 * expr.c (compress_float_constant): Likewise.
6715 * rtlanal.c (split_double): Likewise.
6716 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6717 (simplify_const_unary_operation, simplify_binary_operation_1)
6718 (simplify_const_binary_operation): Likewise.
6719 (simplify_const_relational_operation): Likewise.
6720 * varasm.c (output_constant_pool_2): Likewise.
6722 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6724 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
6725 instead of CONST_DOUBLE_FROM_REAL_VALUE.
6726 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
6727 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
6728 instead of CONST_DOUBLE_FROM_REAL_VALUE.
6729 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
6730 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
6731 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
6732 (ix86_emit_swsqrtsf): Likewise.
6733 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
6734 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
6735 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
6736 * config/pa/pa.c (pa_expand_builtin): Likewise.
6737 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
6738 (rs6000_scale_v2df): Likewise.
6739 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
6740 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
6741 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
6742 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
6743 (vec_ctul): Likewise.
6744 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
6745 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
6746 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
6747 * cse.c (fold_rtx): Likewise.
6748 * emit-rtl.c (immed_double_const): Likewise (in comments).
6749 (init_emit_once): Likewise.
6750 * expr.c (compress_float_constant, expand_expr_real_1)
6751 (const_vector_from_tree): Likewise.
6752 * optabs.c (expand_float, expand_fix): Likewise.
6753 * reg-stack.c (reg_to_stack): Likewise.
6754 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
6755 (simplify_const_unary_operation, simplify_binary_operation_1)
6756 (simplify_const_binary_operation, simplify_relational_operation)
6757 (simplify_immed_subreg): Likewise.
6759 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6761 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
6762 * doc/tm.texi: Regenerate.
6763 * real.h (REAL_ARITHMETIC): Delete.
6764 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
6765 (ix86_expand_round_sse4): Use real_arithmetic instead of
6767 * config/i386/sse.md (round<mode>2): Likewise.
6768 * rtl.h (rtx_to_tree_code): Likewise (in comment).
6769 * explow.c (rtx_to_tree_code): Likewise (in comment).
6770 * match.pd: Likewise.
6771 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6772 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6773 (expand_pow_as_sqrts): Likewise.
6774 * tree-pretty-print.c (dump_generic_node): Remove code that
6775 was conditional on REAL_ARITHMETIC being undefined.
6777 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6779 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
6780 * doc/tm.texi: Regenerate.
6781 * real.h (real_less): Declare.
6782 (REAL_VALUES_LESS): Delete.
6783 * real.c (real_less): New function.
6784 (real_compare): Use it.
6785 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
6786 of REAL_VALUES_LESS.
6787 * config/microblaze/microblaze.c (microblaze_const_double_ok):
6789 * fold-const.c (fold_convert_const_int_from_real): Likewise.
6790 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
6791 (simplify_const_relational_operation): Likewise.
6792 * tree-call-cdce.c (check_pow): Likewise.
6793 (gen_conditions_for_pow_cst_base): Likewise.
6795 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6797 * real.h (REAL_VALUES_IDENTICAL): Delete.
6798 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
6799 instead of REAL_VALUES_IDENTICAL.
6800 * fold-const.c (operand_equal_p): Likewise.
6801 * ipa-icf.c (sem_variable::equals): Likewise.
6802 * tree-complex.c (some_nonzerop): Likewise.
6803 (expand_complex_multiplication): Likewise.
6804 * tree.c (simple_cst_equal): Likewise.
6805 * varasm.c (compare_constant): Likewise.
6807 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
6809 * real.h (real_equal): Declare.
6810 (REAL_VALUES_EQUAL): Delete.
6811 * real.c (real_equal): New function.
6812 (real_compare): Use it.
6813 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
6814 * doc/tm.texi: Regenerate.
6815 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
6816 real_equal instead of REAL_VALUES_EQUAL.
6817 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
6818 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
6819 (fp_const_from_val): Likewise.
6820 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
6821 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
6822 (floating_exact_log2): Likewise.
6823 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
6824 * config/vax/vax.c (vax_float_literal): Likewise.
6825 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
6826 * cprop.c (implicit_set_cond_p): Likewise.
6827 * expmed.c (expand_mult): Likewise.
6828 * fold-const.c (const_binop): Likewise.
6829 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
6830 (simplify_const_binary_operation): Likewise.
6831 (simplify_const_relational_operation): Likewise.
6832 * tree-call-cdce.c (check_pow): Likewise.
6833 (gen_conditions_for_pow_cst_base): Likewise.
6834 * tree-inline.c (estimate_num_insns): Likewise.
6835 * tree-ssa-dom.c (record_equality): Likewise.
6836 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
6837 (gimple_expand_builtin_pow): Likewise.
6838 (pass_optimize_widening_mul::execute): Likewise.
6839 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
6840 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
6841 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
6843 2015-10-05 Richard Biener <rguenther@suse.de>
6846 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
6847 consider loop header PHI defs as IVs.
6849 2015-10-05 Richard Biener <rguenther@suse.de>
6851 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
6853 (create_expression_by_pieces): ... here and build GIMPLE
6854 calls directly. Use gimple_build API and avoid force_gimple_operand.
6855 (insert_into_preds_of_block): Simplify.
6856 (do_regular_insertion): Add comment.
6858 2015-10-04 Jason Merrill <jason@redhat.com>
6860 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
6862 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
6864 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
6865 check for general register.
6866 (ix86_emit_save_regs): Ditto.
6867 (ix86_emit_save_regs_using_mov): Ditto.
6868 (ix86_emit_restore_regs_using_pop): Ditto.
6869 (ix86_emit_restore_regs_using_mov): Ditto.
6871 2015-10-03 Marek Polacek <polacek@redhat.com>
6873 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
6874 (insn-dfatab.o): Likewise.
6876 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
6878 * config.gcc (xtensa*-*-uclinux*): New configuration.
6879 * config/xtensa/uclinux.h: New file.
6880 * config/xtensa/uclinux.opt: New file.
6882 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
6884 * doc/cpp.texi (Standard Predefined Macros): Document value of
6885 __cplusplus for C++14.
6887 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
6889 * gcc.c (process_command): Use spec_machine rather than
6890 spec_host_machine to build tooldir_prefix2.
6892 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6893 Bernd Schmidt <bernds@codesourcery.com>
6895 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
6896 (Token, Stmt): Remove structs.
6897 (decls, vars, fns): Remove variables.
6898 (alloc_comment, append_stmt, is_keyword): Remove macros.
6899 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
6900 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
6901 (parse_init, parse_file): Remove functions.
6902 (read_file): Accept a pointer to a length and store into it.
6903 (process): Don't try to parse the input file, just write it out as
6904 a string, but looking for maps. Also write out the length.
6905 (main): Don't use "-S" to compile PTX code.
6907 2015-10-02 Jeff Law <law@redhat.com>
6909 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
6912 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
6915 * config/nvptx/mkoffload.c (main): Scan the argument vector for
6916 -fopenmp, and skip generating an offloading image if specified.
6918 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
6920 * system.h (ROUND_UP): New macro definition.
6921 (ROUND_DOWN): Ditto.
6922 * ggc-page.c (ROUND_UP): Remove local macro definition.
6923 (PAGE_ALIGN): Implement using ROUND_UP macro.
6925 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
6926 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
6928 (ix86_compute_frame_layout): Ditto.
6929 (ix86_expand_prologue): Ditto.
6930 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
6931 to round down values.
6932 (expand_set_or_movmem_via_rep): Ditto.
6934 2015-10-02 Marek Polacek <polacek@redhat.com>
6936 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
6938 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
6940 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
6941 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
6942 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
6943 (free_gimple_bb): Renamed free_gimple_poly_bb.
6944 (try_generate_gimple_bb): Hoist loop invariant code.
6945 (analyze_drs_in_stmts): Same.
6946 (build_scop_drs): Call renamed functions.
6947 (new_pbb_from_pbb): Same.
6948 (scop_ivs_can_be_represented): Delete as functionality now moved to
6949 graphite-scop-detection.c
6950 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
6952 2015-10-02 Aditya Kumar <hiraditya@msn.com>
6954 * graphite-scop-detection.c (stmt_has_side_effects): New function
6955 outlined from stmt_simple_for_scop_p.
6956 (graphite_can_represent_stmt): Same.
6957 (stmt_simple_for_scop_p): Moved code out of this function for better
6960 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
6962 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
6964 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
6966 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6968 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
6970 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
6972 PR rtl-optimization/67756
6973 * lra-constraints.c (match_reload): Add a new parameter. Use it
6974 for creating a pseudo with the same value.
6975 (curr_insn_transform): Pass a new argument to match_reload.
6977 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
6979 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
6980 (expand_vec_perm_even_odd_1): Handle V64QImode.
6981 (ix86_expand_vec_perm_const_1): Try expansion with
6982 expand_vec_perm_even_odd_trunc as well.
6983 * config/i386/sse.md (VI124_AVX512F): Rename to ...
6984 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
6986 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
6987 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
6989 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
6990 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
6991 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
6992 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
6993 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
6994 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
6996 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
6998 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
6999 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
7001 2015-10-02 Jason Merrill <jason@redhat.com>
7004 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
7005 (diagnose_tm_1_op): Also diagnose volatile accesses in
7006 transaction_safe function.
7008 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
7010 * system.h (malloc.h): Don't include obsolete header.
7012 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7014 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
7015 (TLS_SECTION_ASM_FLAG): Delete.
7017 2015-10-02 Marek Polacek <polacek@redhat.com>
7020 * doc/invoke.texi: Document -Wduplicated-cond.
7021 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
7022 (insn-dfatab.o): Likewise.
7023 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
7026 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
7028 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
7031 2015-10-02 Renlin Li <renlin.li@arm.com>
7033 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
7035 2015-10-02 Renlin Li <renlin.li@arm.com>
7038 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
7040 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7042 PR rtl-optimization/67786
7043 PR rtl-optimization/67787
7044 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
7045 it modifies a reg used in the condition calculation.
7047 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
7049 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
7050 alternatives for reads from memory and moves from general-purpose
7052 (*aarch64_combinez_be<mode>): Likewise.
7054 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
7057 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
7058 selectany within this function without need to keep attribute.
7059 (i386_pe_encode_section_info): Remove selectany-code.
7061 2015-10-02 Richard Biener <rguenther@suse.de>
7063 * tree-ssa-sccvn.c (has_VN_INFO): New function.
7064 (free_scc_vn): Use it.
7065 (visit_use): Remove dead code and refactor to use gassign
7066 and use less indentation.
7068 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7072 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
7073 (rs6000_cannot_copy_insn_p): New function.
7074 * config/rs6000/rs6000.md (cannot_copy): New attribute.
7075 (load_toc_v4_PIC_1_normal): Set cannot_copy.
7076 (load_toc_v4_PIC_1_476): Ditto.
7078 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
7080 * graphite-scop-detection.c (struct sese_l): New conversion constructor
7081 so that this type can be pushed into a vec.
7082 (class scop_builder): use sese_l to collect scops.
7083 (get_scops): New getter function.
7084 (remove_intersecting_scops): Use sese_l instead of scops_p.
7088 (remove_subscops): Same.
7089 (build_scops): Add scops to vec<scops_p> once all the scops have been
7092 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
7094 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7095 Renamed type from gimple_bb_p to gimple_poly_bb_p.
7096 (translate_isl_ast_node_user): Same.
7097 * graphite-poly.c (new_poly_bb): Same.
7098 * graphite-poly.h (gbb_from_bb): Same.
7100 * graphite-sese-to-poly.c (new_gimple_bb):
7101 gimple_bb_p -> gimple_poly_bb_p
7102 (build_scop_scattering): Same.
7103 (find_params_in_bb): Same.
7104 (add_conditions_to_domain): Same.
7105 (sese_dom_walker::before_dom_children): Same.
7106 (analyze_drs_in_stmts): Same.
7107 (new_pbb_from_pbb): Same.
7108 (free_data_refs_aux): New pointer to type base_alias_pair.
7109 * graphite-sese-to-poly.h: Same.
7110 * sese.c (if_region_set_false_region): Fixed Indentation.
7111 (move_sese_in_condition): Same.
7113 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7114 Aditya Kumar <aditya.k7@samsung.com>
7116 PR tree-optimization/66980
7117 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
7118 when data reference analysis has failed.
7120 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7121 Aditya Kumar <aditya.k7@samsung.com>
7123 PR tree-optimization/67754
7124 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
7125 scev analysis on the same loop nest as analyze_drs_in_stmts.
7126 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
7128 (try_generate_gimple_bb): Call outermost_loop_in_sese.
7129 (analyze_drs_in_stmts): Same.
7130 * sese.c (outermost_loop_in_sese): ...here.
7132 2015-10-01 Sebastian Pop <s.pop@samsung.com>
7133 Aditya Kumar <aditya.k7@samsung.com>
7135 PR tree-optimization/67754
7136 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
7137 recursion on the inner loops.
7139 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7141 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
7142 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
7143 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
7144 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
7145 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
7147 2015-10-01 Marek Polacek <polacek@redhat.com>
7150 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
7151 create_tmp_var_raw rather than create_tmp_var.
7153 2015-10-01 Marek Polacek <polacek@redhat.com>
7155 PR tree-optimization/67769
7156 * tree-ssa-phiopt.c (conditional_replacement): Call
7157 reset_flow_sensitive_info_in_bb.
7158 (minmax_replacement): Likewise.
7159 (abs_replacement): Likewise.
7161 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
7163 * builtins.c: Don't include gomp-constants.h.
7164 (fold_builtin_1): Don't fold acc_on_device here.
7165 * gimple-fold.c: Include gomp-constants.h.
7166 (gimple_fold_builtin_acc_on_device): New.
7167 (gimple_fold_builtin): Call it.
7169 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
7171 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
7172 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
7174 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
7176 * config/arm/aarch-common-protos.h
7177 (aarch_accumulator_forwarding): New.
7178 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7179 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
7180 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
7181 * config/arm/cortex-a53.md: Rewrite.
7183 2015-10-01 Richard Biener <rguenther@suse.de>
7185 * gimple-match.h (mprts_hook): Declare.
7186 * gimple-match.head.c (mprts_hook): Define.
7187 (maybe_push_res_to_seq): Use new hook.
7188 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
7189 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
7190 (vn_ssa_aux::has_constants): Remove.
7191 * tree-ssa-sccvn.c: Include gimple-match.h.
7192 (VN_INFO_GET): Assert we don't re-use SSA names.
7193 (vn_get_expr_for): Remove.
7194 (expr_has_constants): Likewise.
7195 (stmt_has_constants): Likewise.
7196 (simplify_binary_expression): Likewise.
7197 (simplify_unary_expression): Likewise.
7198 (vn_lookup_simplify_result): New hook.
7199 (visit_copy): Adjust.
7200 (visit_reference_op_call): Likewise.
7201 (visit_phi): Likewise.
7202 (visit_use): Likewise.
7203 (process_scc): Likewise.
7204 (init_scc_vn): Likewise.
7205 (visit_reference_op_load): Likewise. Use match-and-simplify and
7206 a gimple seq for inserted expressions.
7207 (try_to_simplify): Remove GENERIC stmt combining code.
7208 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
7209 * tree-ssa-pre.c (eliminate_insert): Adjust.
7210 (eliminate_dom_walker::before_dom_children): Likewise.
7212 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7214 * doc/invoke.texi (Optimization Options): Add
7215 -freorder-blocks-algorithm=.
7216 (Optimize Options) <-O>: Add -freorder-blocks.
7217 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
7218 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
7219 <-freorder-blocks>: Also enabled at levels -O and -Os.
7220 <-freorder-blocks-algorithm=>: Document new option.
7222 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7224 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
7225 with flag_reorder_blocks_algorithm.
7226 * common.opt (freorder-blocks-algorithm=): New flag.
7227 (reorder_blocks_algorithm): New enum.
7228 * flag-types.h (reorder_blocks_algorithm): New enum.
7229 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
7230 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
7232 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7234 * bb-reorder.c: Add intro comment.
7235 (reorder_basic_blocks_software_trace_cache): Print a header to
7237 (edge_order): New function.
7238 (reorder_basic_blocks_simple): New function.
7239 (reorder_basic_blocks): Choose between the STC and the simple
7240 algorithms (always choose the former).
7242 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
7244 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
7245 function, factored out from ...
7246 (reorder_basic_blocks): ... here.
7248 2015-10-01 Tom de Vries <tom@codesourcery.com>
7250 * tree-cfg.c (dump_function_to_file): Dump function attributes using
7251 __attribute__(()) string. Move dumping of function attributes to before
7254 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
7257 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
7258 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
7259 based on gold linker version.
7260 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
7261 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
7262 * configure, config.in: Regenerate.
7264 2015-10-01 Alan Modra <amodra@gmail.com>
7266 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
7267 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
7268 (rs6000_output_mi_thunk): Likewise.
7270 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7272 * config/nvptx/mkoffload.c (process): Change offload data format.
7274 2015-09-30 Jeff Law <law@redhat.com>
7276 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
7277 with constant conditions.
7278 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
7279 (remove_ctrl_stmt_and_useless_edges): No longer static.
7280 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
7281 (remove_ctrl_stmt_and_useless_edges): Likewise.
7283 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
7284 Cesar Philippidis <cesar@codesourcery.com>
7286 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
7287 (TARGET_GOACC_VALIDATE_DIMS): Override.
7288 * target.def (TARGET_GOACC): New target hook prefix.
7289 (validate_dims): New hook.
7290 * targhooks.h (default_goacc_validate_dims): New.
7291 * omp-low.c (oacc_validate_dims): New.
7292 (execute_oacc_device_lower): New.
7293 (default_goacc_validate_dims): New.
7294 (pass_data_oacc_device_lower): New.
7295 (pass_oacc_device_lower): New pass.
7296 (make_pass_oacc_device_lower): New.
7297 * tree-pass.h (make_pass_oacc_device_lower): Declare.
7298 * passes.def (pass_oacc_device_lower): Add it.
7299 * doc/tm.texi: Rebuilt.
7300 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
7301 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
7303 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
7305 PR rtl-optimization/67037
7306 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
7308 2015-09-30 Bernd Schmidt <bernds@redhat.com>
7310 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
7311 * passes.c: Include tree-ssanames.h.
7312 (execute_function_todo): Flush the pending free SSA_NAMEs after
7313 eliminating unreachable basic blocks.
7314 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
7315 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
7316 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
7317 (flush_ssanames_freelist): New function.
7318 (release_ssaname_fn): Put released names on the queue.
7319 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
7320 * tree-ssanames.h (flush_ssanames_freelist): Declare.
7322 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7324 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
7325 (generate_target_descr_file, generate_target_offloadend_file)
7326 (generate_host_descr_file, prepare_target_image): Pass it on.
7327 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
7328 (compile_native, main): Pass it on.
7329 * lto-wrapper.c (compile_offload_image): Likewise.
7331 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7332 Ilya Verbin <ilya.verbin@intel.com>
7333 Andrey Turetskiy <andrey.turetskiy@intel.com>
7335 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
7336 (prepare_target_image, main): Refactor argv building to use
7339 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
7341 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
7342 * config/spu/spu.c (spu_expand_atomic_op): New function.
7343 * config/spu/spu.md (AINT): New mode iterator.
7344 (ATOMIC): New code iterator.
7345 (atomic_name, atomic_pred): New code predicates.
7346 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
7347 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
7348 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
7349 "atomic_<atomic_name>_fetch<mode>"): Likewise.
7351 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
7353 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
7355 (scalar_chain::convert_reg): Likewise.
7357 2015-09-30 Richard Biener <rguenther@suse.de>
7359 * builtins.c: Add comment that no new simplifications should
7362 2015-09-30 Marek Polacek <polacek@redhat.com>
7364 PR tree-optimization/67690
7365 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
7366 reset_flow_sensitive_info_in_bb.
7367 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
7368 * tree-ssanames.c: Include "gimple-iterator.h".
7369 (reset_flow_sensitive_info_in_bb): New function.
7370 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
7372 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
7374 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
7375 variable, replacing it with...
7376 (offload_abi): ... this new variable. Adjust all users.
7377 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
7379 2015-09-30 Matthias Klose <doko@ubuntu.com>
7381 * configure.ac: Remove extraneous ;;.
7382 * configure: Regenerate.
7384 2015-09-29 James Bowman <james.bowman@ftdichip.com>
7386 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
7387 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
7388 predicate, disallow register for operand 2.
7390 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
7392 * graphite-dependences.c (scop_get_dependences): Moved in down
7393 in order to be visible to its caller.
7394 * graphite-poly.h: Removed compute_deps, and extend_schedule.
7396 2015-09-29 Sebastian Pop <s.pop@samsung.com>
7397 Aditya Kumar <aditya.k7@samsung.com>
7399 PR tree-optimization/67754
7400 * graphite-optimize-isl.c (optimize_isl): Call
7401 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
7403 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
7405 * builtins.c (expand_builtin_acc_on_device): Delete.
7406 (expand_builtin): Don't call it.
7407 (fold_builtin_1): Fold acc_on_device.
7409 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
7411 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
7412 (ix86_nsaved_sseregs): Likewise.
7414 2015-09-29 Jeff Law <law@redhat.com>
7416 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
7417 computation of unused value.
7419 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
7420 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
7421 inline macro expansion.
7423 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
7425 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
7426 (gen_shl_sext): Likewise.
7427 * config/sh/sh.md (divsi3): Likewise.
7428 (imm->ext_dest_operand splitter): Likewise.
7430 2015-09-29 Sebastian Pop <s.pop@samsung.com>
7431 Aditya Kumar <aditya.k7@samsung.com>
7433 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
7434 (nb_data_writes_in_bb): Remove.
7435 (split_pbb): Remove.
7436 (split_reduction_stmt): Remove.
7437 (is_reduction_operation_p): Remove.
7438 (phi_contains_arg): Remove.
7439 (follow_ssa_with_commutative_ops): Remove.
7440 (detect_commutative_reduction_arg): Remove.
7441 (detect_commutative_reduction_assign): Remove.
7442 (follow_inital_value_to_phi): Remove.
7443 (edge_initial_value_for_loop_phi): Remove.
7444 (initial_value_for_loop_phi): Remove.
7445 (used_outside_reduction): Remove.
7446 (detect_commutative_reduction): Remove.
7447 (translate_scalar_reduction_to_array_for_stmt): Remove.
7448 (remove_phi): Remove.
7449 (dr_indices_valid_in_loop): Remove.
7450 (close_phi_written_to_memory): Remove.
7451 (translate_scalar_reduction_to_array): Remove.
7452 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
7453 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
7454 (rewrite_commutative_reductions_out_of_ssa): Remove.
7455 (build_poly_scop): Remove call to
7456 rewrite_commutative_reductions_out_of_ssa.
7458 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
7460 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
7461 Add new insn types for vector load and store pairs.
7462 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
7463 types "neon_ldp{,_q}".
7464 * config/arm/cortex-a57.md (neon_load_c): Add insn types
7466 (neon_store_complex): Add insn types "neon_stp{,_q}".
7467 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
7470 2015-09-29 Jeff Law <law@redhat.com>
7472 * config/rx/constraints.md (Int08): Fix undefined left shift
7474 (Sint08, Sint16, Sint24): Likewise.
7475 * config/rx/rx.c (rx_get_stack_layout): Likewise.
7477 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
7480 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
7481 left shift behaviour.
7482 * config/msp430/constraints.md ('L' constraint): Similarly.
7483 ('Ys' constraint): Similarly.
7485 2015-09-29 Richard Biener <rguenther@suse.de>
7487 PR tree-optimization/67170
7488 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
7489 the translate function pointer parameter to get the
7490 bool whether to disambiguate only by reference.
7491 (walk_non_aliased_vuses): Likewise.
7492 * tree-ssa-alias.c (maybe_skip_until): Adjust.
7493 (get_continuation_for_phi_1): Likewise.
7494 (get_continuation_for_phi): Likewise.
7495 (walk_non_aliased_vuses): Likewise.
7496 * tree-ssa-sccvn.c (const_parms): New bitmap.
7497 (vn_reference_lookup_3): Adjust for interface change.
7498 Disambiguate parameters pointing to readonly memory.
7499 (free_scc_vn): Free const_parms.
7500 (run_scc_vn): Initialize const_parms from a fn spec attribute.
7502 2015-09-29 Richard Biener <rguenther@suse.de>
7504 PR tree-optimization/67741
7505 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
7506 builtin calls with correct signature.
7508 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
7511 * config/i386/i386.c: Include dbgcnt.h.
7512 (has_non_address_hard_reg): New.
7513 (convertible_comparison_p): New.
7514 (scalar_to_vector_candidate_p): New.
7515 (remove_non_convertible_regs): New.
7516 (scalar_chain): New.
7517 (scalar_chain::scalar_chain): New.
7518 (scalar_chain::~scalar_chain): New.
7519 (scalar_chain::add_to_queue): New.
7520 (scalar_chain::mark_dual_mode_def): New.
7521 (scalar_chain::analyze_register_chain): New.
7522 (scalar_chain::add_insn): New.
7523 (scalar_chain::build): New.
7524 (scalar_chain::compute_convert_gain): New.
7525 (scalar_chain::replace_with_subreg): New.
7526 (scalar_chain::replace_with_subreg_in_insn): New.
7527 (scalar_chain::emit_conversion_insns): New.
7528 (scalar_chain::make_vector_copies): New.
7529 (scalar_chain::convert_reg): New.
7530 (scalar_chain::convert_op): New.
7531 (scalar_chain::convert_insn): New.
7532 (scalar_chain::convert): New.
7533 (convert_scalars_to_vector): New.
7534 (pass_data_stv): New.
7536 (make_pass_stv): New.
7537 (ix86_option_override): Created and register stv pass.
7538 (flag_opts): Add -mstv.
7539 (ix86_option_override_internal): Likewise.
7540 * config/i386/i386.md (SWIM1248x): New.
7541 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
7542 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
7543 (*anddi3_doubleword): New.
7544 (*zext<mode>_doubleword): New.
7545 (*zextsi_doubleword): New.
7546 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
7547 (*<code>di3_doubleword): New.
7548 * config/i386/i386.opt (mstv): New.
7549 * dbgcnt.def (stv_conversion): New.
7551 2015-09-29 Tom de Vries <tom@codesourcery.com>
7553 * tree-cfg.c (dump_function_to_file): Dump function attributes.
7555 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
7558 * config/sh/sh.c (sh_override_options_after_change): New.
7559 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
7560 (sh_option_override): Move align_loops, align_jumps and
7561 align_functions handling into sh_override_options_after_change.
7563 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
7565 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
7566 (nvptx_record_offload_symbol): Record function execution geometry.
7567 * config/nvptx/mkoffload.c (process): Include launch geometry in
7569 * omp-low.c (oacc_launch_pack): New.
7570 (replace_oacc_fn_attrib): New.
7571 (set_oacc_fn_attrib): New.
7572 (get_oacc_fn_attrib): New.
7573 (expand_omp_target): Create keyed varargs for GOACC_parallel call
7575 * omp-low.h (get_oacc_fn_attrib): Declare.
7576 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
7577 (DEF_FUNCTION_TYPE_VAR_11): Delete.
7578 * tree.h (OMP_CLAUSE_EXPR): New.
7579 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
7581 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7582 Sebastian Pop <s.pop@samsung.com>
7584 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
7586 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7587 Sebastian Pop <s.pop@samsung.com>
7589 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
7590 * graphite-scop-detection.c (struct sese_l): New type.
7591 (get_entry_bb): API for getting entry bb of SESE.
7592 (get_exit_bb): API for getting exit bb of SESE.
7593 (class debug_printer): New type. Simple printer in debug mode.
7594 (trivially_empty_bb_p): New. Return true when BB is empty or
7595 contains only debug instructions.
7596 (graphite_can_represent_expr): Call scalar_evoution_in_region
7597 instead of analyze_scalar_evolution. Pass in scop instead of only
7599 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
7601 (stmt_simple_for_scop_p): Same.
7602 (harmful_stmt_in_bb): Same.
7603 (graphite_can_represent_loop): Deleted.
7604 (struct scopdet_info): Deleted.
7605 (scopdet_basic_block_info): Deleted.
7606 (build_scops_1): Deleted.
7607 (bb_in_sd_region): Deleted.
7608 (find_single_entry_edge): Deleted.
7609 (find_single_exit_edge): Deleted.
7610 (create_single_entry_edge): Deleted.
7611 (sd_region_without_exit): Deleted.
7612 (create_single_exit_edge): Deleted.
7613 (unmark_exit_edges): Deleted.
7614 (mark_exit_edges): Deleted.
7615 (create_sese_edges): Deleted.
7616 (build_graphite_scops): Deleted.
7617 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
7618 (build_scops): Use the new scop_builder to build scops.
7619 (dot_all_scops_1): Use the new pretty printer. Print loop father
7621 (loop_body_is_valid_scop): New. Return true if loop body is a
7623 (class scop_builder): New. Builds SCoPs for polyhedral
7625 (scop_builder): New constructor.
7626 (static sese_l invalid_sese): sese_l with invalid edges.
7627 (get_sese): Get an sese (from a loop) if possible, invalid_sese
7629 (get_nearest_dom_with_single_entry): Get nearest dominator of a
7630 basic_block with single entry. Return NULL if we get to the
7631 beginning of a function.
7632 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
7633 a basic_block with single exit. Return NULL if we get to the
7634 beginning of a function.
7635 (print_sese): Pretty-print SESE.
7636 (merge_sese): Merge two SESEs if possible and return the new SESE.
7637 (build_scop_depth): Start building the SCoP within a loop nest.
7638 (build_scop_breadth): Start building the SCoP at a single loop
7639 depth. Merge adjacent SESEs if valid.
7640 (can_represent_loop_1): Returns true if Graphite can represent
7641 loop inside SCoP. Helper for can_represent_loop.
7642 (can_represent_loop): Returns true if Graphite can represent LOOP
7643 and all its nested loops in SCoP.
7644 (loop_is_valid_scop): Returns true if LOOP and all its nests
7645 constitute a valid SCoP.
7646 (region_has_one_loop): Returns true of a region has only one loop.
7647 (add_scop): Add SCoP to the list of valid scops. Removes an
7648 already existing scop if it intersects with or subsumed by this one.
7649 (harmful_stmt_in_region): Returns true if SCoP has any statment
7650 which cannot be represented by Graphite.
7651 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
7652 (remove_subscops): Remove any SCoP from the list of already found
7653 SCoPs, if subsumed by S1.
7654 (intersects): Return true if region bounded by SCoPs S1 and S2
7656 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
7657 * graphite.c (print_graphite_scop_statistics):
7658 (print_graphite_statistics): Print SCoP info while debugging.
7659 (graphite_initialize): Early exit in case number of loops in a
7660 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
7661 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
7662 (graphite_finalize):
7663 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
7664 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
7665 (recompute_all_dominators): Recalculate POST_DOMINATORS.
7666 * tree-cfg.c (print_loops): Print the function name while printing
7669 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
7670 Sebastian Pop <s.pop@samsung.com>
7672 PR tree-optimization/67700
7673 * graphite-sese-to-poly.c (parameter_index_in_region): Call
7674 invariant_in_sese_p_rec.
7675 (extract_affine): Same.
7676 (rewrite_cross_bb_scalar_deps): Call update_ssa.
7677 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
7678 * sese.h (invariant_in_sese_p_rec): Declare.
7680 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
7682 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
7684 2015-09-28 Jiong Wang <jiong.wang@arm.com>
7687 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7688 Jiong Wang <jiong.wang@arm.com>
7690 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
7691 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
7692 (REG_CLASS_NAMES): Likewise.
7693 (REG_CLASS_CONTENTS): Likewise.
7694 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
7695 (aarch64_register_move_cost): Likewise.
7696 (aarch64_load_symref_appropriately): Invoke the new added pattern if
7698 * config/aarch64/constraints.md (Uc0): New constraint.
7700 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
7702 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
7704 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
7706 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
7707 SECTION_EXCLUDE in XO mapping class.
7709 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
7712 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
7713 and handle ne and eq codes.
7714 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
7715 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
7716 CONST_INT_P. Use reverse_condition.
7717 (sh_split_treg_set_expr): Likewise.
7719 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
7721 * config/arm/types.md (type): Add rotate_imm.
7722 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
7724 (*rorsi3_insn_uxtw): Likewise.
7725 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
7726 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
7727 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
7729 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7731 PR rtl-optimization/67481
7732 * ifcvt.c (contains_ccmode_rtx_p): New function.
7733 (insn_valid_noce_process_p): Use it.
7735 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7737 PR rtl-optimization/67456
7738 PR rtl-optimization/67464
7739 PR rtl-optimization/67465
7740 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
7741 move in the mode of x. Handle combination of complex and simple
7742 block pairs as well as the case when one is empty.
7744 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
7746 * doc/gimple.texi: Update references to gimple_statement_base.
7747 * gdbhooks.py: Likewise.
7748 * gimple.h: Likewise.
7750 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7752 * config/sparc/driver-sparc.c: map LEON to leon3
7754 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7756 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
7757 and make it inverse to change default
7758 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
7760 * doc/invoke.texi: Document change of default
7762 2015-09-28 Daniel Cederman <cederman@gaisler.com>
7764 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
7765 true on %f0 for a target without FPU.
7766 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
7768 (untyped_return): Do not load %f0 for a target without FPU.
7770 2015-09-28 Andrew Pinski <apinski@cavium.com>
7772 * config/aarch64/aarch64.md (prefetch):
7773 Change the predicate of operand 0 to register_operand.
7775 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
7777 * config/i386/predicates.md (register_sse4nonimm_operand): New
7779 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
7780 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
7781 Use register_sse4nonimm_operand as operand 0 predicate.
7782 (*vec_extractv8hi_sse2): Remove insn pattern.
7783 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
7784 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
7786 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
7787 Kaz Kojima <kkojima@gcc.gnu.org>
7790 * config/sh/sh-protos.h (sh_lra_p): Declare.
7791 * config/sh/sh.c (sh_lra_p): Make non-static.
7792 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
7793 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
7794 Expand into addsi3_scr if operands[2] if needed.
7795 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
7796 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
7797 (addsi3_scr, *addsi3): New insn_and_split patterns.
7799 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
7801 PR rtl-optimization/64164
7802 PR tree-optimization/67312
7806 * cfgexpand.c (parm_in_stack_slot_p): Remove.
7807 (ssa_default_def_partition): Remove.
7808 (get_rtl_for_parm_ssa_default_def): Remove.
7809 (set_rtl): Check that RTL assignments match expectations.
7810 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
7811 default def location for params and results. Record SSA names
7812 or types in REG and MEM attrs, respectively.
7813 (set_parm_rtl): New.
7814 (expand_one_ssa_partition): Drop logic that assigned MEMs with
7815 unassigned addresses.
7816 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
7817 deferred stack alloc vars.
7818 (expand_used_vars): Skip partitions holding parm default defs.
7819 Move adjust_one_expanded_partition_var loop...
7820 (pass_expand::execute): ... here. Drop redundant assert.
7821 Adjust comments before the final loop over all ssa names.
7822 Require assigned rtl of parms and results to match exactly.
7823 Reset its attributes to match them, not any other variables in
7825 (expand_debug_expr): Use entry value for PARM's default defs
7826 only iff they have zero nondebug uses.
7827 * cfgexpand.h (parm_in_stack_slot_p): Remove.
7828 (get_rtl_for_parm_ssa_default_def): Remove.
7829 (set_parm_rtl): Declare.
7830 * doc/invoke.texi: Improve wording.
7831 * explow.c (promote_decl_mode): Fix promote_function_mode for
7832 result decls not by reference.
7833 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
7834 bypass TYPE_MODE to get the actual vector mode.
7835 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
7836 2015-08-19's changes as follows. Drop include of
7837 basic-block.h and df.h.
7838 (rtl_for_parm): Remove.
7839 (maybe_reset_rtl_for_parm): Remove.
7840 (parm_in_unassigned_mem_p): Remove.
7841 (use_register_for_decl): Add logic for RESULT_DECLs matching
7842 assign_parms' behavior.
7843 (split_complex_args): Revert.
7844 (assign_parms_augmented_arg_list): Revert. Add comment
7845 referencing the logic above.
7846 (assign_parm_adjust_stack_rtl): Revert.
7847 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
7848 of SET_DECL_RTL. Set up a REG if the parm demands so.
7849 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
7850 calls into a single set_parm_rtl. Set up a temporary RTL
7851 temporarily for expand_assignment.
7852 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
7853 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
7854 (assign_bounds): Revert.
7855 (assign_parms): Revert. Use set_parm_rtl.
7856 (allocate_struct_function): Relayout result and parms of
7857 non-abstruct functions.
7858 (expand_function_start): Revert. Use set_parm_rtl. If the
7859 result is not a hard reg, create a pseudo from the promoted
7860 mode of the default def. Promote static chain mode.
7861 * tree-outof-ssa.c (remove_ssa_form): Drop unused
7862 partition_has_default_def. Set up
7863 partitions_for_parm_default_defs.
7864 (finish_out_of_ssa): Remove partition_has_default_def.
7865 Release partitions_for_parm_default_defs.
7866 * tree-outof-ssa.h (struct ssaexpand): Remove
7867 partition_has_default_def. Add
7868 partitions_for_parm_default_defs.
7869 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
7871 (build_ssa_conflict_graph): Fix conflict-detection of default
7872 defs of even unused default defs of params and results.
7873 (for_all_parms): New.
7874 (create_default_def): New.
7875 (register_default_def): New.
7876 (coalesce_with_default): New.
7877 (create_outofssa_var_map): Create default defs for all parms
7878 and results, and register their partitions. Add GIMPLE_RETURN
7879 operands as coalesce candidates with results. Add default
7880 defs of each parm or result as coalesce candidates with its
7881 other defs. Mark each result def, and each default def of
7882 parms, as used_in_copy.
7883 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
7884 with the ssa names, even anonymous ones. Drop
7885 parm_in_stack_slot_p calls. Require same signedness and
7887 (coalesce_ssa_name): Add coalesce candidates for all defs of
7888 each parm and result, even unused ones.
7889 (parm_default_def_partition_arg): New type.
7890 (set_parm_default_def_partition): New.
7891 (get_parm_default_def_partitions): New.
7892 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
7893 * tree-ssa-live.c (partition_view_init): Regard unused defs of
7894 parms and results as used.
7895 (verify_live_on_entry): Don't error out just because they're
7898 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
7900 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
7901 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
7902 (output_fde): Don't output length for debug_frame on AIX.
7903 (output_call_frame_info): Don't output length for debug_frame on AIX.
7904 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
7905 HAVE_XCOFF_DWARF_EXTRAS.
7906 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
7907 HAVE_XCOFF_DWARF_EXTRAS.
7908 (output_compilation_unit_header): Don't output length on AIX.
7909 (output_pubnames): Don't output length on AIX.
7910 (output_aranges): Delete argument. Compute length locally. Don't
7911 output length on AIX.
7912 (output_line_info): Don't output length on AIX.
7913 (dwarf2out_finish): Don't compute aranges_length.
7914 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
7915 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
7916 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
7917 symbol decoration for AIX.
7918 (rs6000_xcoff_debug_unwind_info): New.
7919 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
7921 (rs6000_xcoff_declare_function_name): Emit different
7922 .function pseudo-op when DWARF2_DEBUG. Don't call
7923 xcoffout_declare_function for DWARF2_DEBUG.
7924 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
7926 * config/rs6000/aix71.h: New.
7927 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
7929 * configure: Regenerate.
7930 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
7933 2015-09-26 Jeff Law <law@redhat.com>
7935 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
7937 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
7940 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
7943 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
7944 undefined behaviour.
7946 * config/cris/cris.md (asrandb): Fix left shift undefined
7948 (asrandw): Likewise.
7950 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
7953 * lra-constarints.c (match_reload): Check presence of the input pseudo
7954 in the output operand.
7956 2015-09-25 Tobias Burnus <burnus@net-b.de>
7958 * doc/invoke.texi (-fsanitize): Minor wording tweak.
7960 2015-09-25 Tobias Burnus <burnus@net-b.de>
7962 * doc/invoke.texi (-fsanitize): Update URLs.
7964 2015-09-25 Teresa Johnson <tejohnson@google.com>
7966 * opts.c (finish_options): Unset -freorder-blocks-and-partition
7967 if not using profile.
7969 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
7971 PR pretty-print/67567
7972 * pretty-print.c (pp_string): Add gcc_checking_assert.
7973 * pretty-print.h (output_buffer_append_r): Likewise.
7975 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
7978 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
7979 addr2 individually. Don't emit logical or insn if one is known to
7980 be aligned approriately.
7981 (sh_expand_cmpnstr): Likewise.
7983 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
7985 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
7986 __builtin_aarch64_fp[sc]r arguments into a register.
7988 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
7990 * config.gcc (x86_archs): Replace lakemount with lakemont.
7991 (with_cpu): Likewise.
7992 (with_arch): Likewise.
7993 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
7994 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
7995 __tune_lakemount__ with __tune_lakemont__.
7996 * config/i386/i386.c (lakemount_cost): Renamed to ...
7997 (lakemont_cost): This.
7998 (m_LAKEMOUNT): Renamed to ...
8000 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
8001 (processor_target_table): Replace "lakemount" with "lakemont".
8002 (processor_alias_table): Likewise.
8003 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
8005 (ix86_adjust_cost): Likewise.
8006 (ia32_multipass_dfa_lookahead): Likewise.
8007 * config/i386/i386.h (processor_type): Likewise.
8008 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
8009 * doc/invoke.texi: Replace lakemount with lakemont. Replace
8010 Lakemount with Lakemont.
8012 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
8014 * config.gcc (x86_archs): Replace iamcu with lakemount.
8015 (with_cpu): Likewise.
8016 (with_arch): Likewise.
8017 * doc/invoke.texi: Likewise.
8018 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
8019 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
8020 __tune_iamcu__ with __tune_lakemount__.
8021 * config/i386/i386.c (iamcu_cost): Renamed to ...
8022 (lakemount_cost): This.
8023 (m_IAMCU): Renamed to ...
8024 (m_LAKEMOUNT): This.
8025 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
8026 (processor_target_table): Replace "iamcu" with "lakemount".
8027 (processor_alias_table): Likewise.
8028 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
8029 PROCESSOR_LAKEMOUNT.
8030 (ix86_adjust_cost): Likewise.
8031 (ia32_multipass_dfa_lookahead): Likewise.
8032 * config/i386/i386.h (processor_type): Likewise.
8033 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
8035 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
8037 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
8038 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
8040 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
8041 (pa_expand_compare_and_swap_loop): New.
8042 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
8043 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
8044 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
8045 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
8046 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
8049 2015-09-24 Michael Collison <michael.collison@linaro.org>
8052 * read-md.c (read_name): Allow mode iterators inside angle
8053 brackets in rtl expressions.
8055 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
8058 * ira-color.c (update_allocno_cost): Add parameter.
8059 (update_costs_from_allocno): Decrease conflict cost. Pass the new
8062 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
8065 * opts-common.c (prune_options): Discard all -fdiagnostics-color
8066 but the last one, which is moved to the front to be processed
8068 * opts.c (enable_warning_as_error): Reject options that do not
8071 2015-09-24 Jiong Wang <jiong.wang@arm.com>
8073 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
8075 2015-09-24 Jiong Wang <jiong.wang@arm.com>
8077 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
8078 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
8079 (aarch64_cannot_force_const_mem): Likewise.
8080 (aarch64_classify_address): Likewise.
8081 (aarch64_classify_symbolic_expression): Likewise.
8082 (aarch64_print_operand): Likewise.
8083 (aarch64_classify_symbol): Likewise.
8084 (aarch64_mov_operand_p): Likewise.
8085 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
8086 (aarch64_mov_operand): Likewise.
8088 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
8090 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
8091 for info->spe_gp_size.
8093 2015-09-24 Richard Biener <rguenther@suse.de>
8096 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
8099 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
8101 * tree-object-size.c (plus_stmt_object_size)
8102 (cond_expr_object_size): Change the formal parameters from gimple
8104 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
8105 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
8106 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
8108 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8110 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
8111 Check for ld -type pie on Solaris 11.x and 12.
8112 * configure: Regenerate.
8113 * config.in: Regenerate.
8115 * gcc.c (LD_PIE_SPEC): Allow redefinition.
8117 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
8118 (STARTFILE_SPEC): Use it.
8119 (ENDFILE_CRTEND_SPEC): Define.
8120 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
8121 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
8122 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
8123 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
8124 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
8125 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
8126 (ENDFILE_ARCH_SPEC): Define.
8127 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
8129 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8131 * configure.ac (gcc_cv_solaris_crts): New test.
8132 * configure. Regenerate.
8133 * config.in: Regenerate.
8134 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
8135 HAVE_SOLARIS_CRTS variant.
8137 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8139 * tree-inline.h (count_insns_seq): Delete prototype.
8140 (estimate_num_insns_seq): Define prototype.
8141 * tree-inline.c (count_insns_seq): Delete.
8142 (estimate_num_insns_seq): Remove static qualifier.
8143 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
8144 with estimate_num_insns_seq.
8146 2015-09-24 Richard Biener <rguenther@suse.de>
8148 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
8150 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
8151 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
8153 (ao_ref_init_from_vn_reference): Record clique and base in the
8155 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
8157 2015-09-24 Richard Biener <rguenther@suse.de>
8159 PR tree-optimization/48885
8160 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
8161 as not including any restrict tags from other pointers.
8163 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
8165 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
8166 character when appending to offload_targets.
8168 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
8169 offload targets by commas, not colons.
8170 * config.in: Regenerate.
8171 * configure: Likewise.
8172 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
8173 instead of setting up the default offload targets here...
8174 (process_command): ..., do it here.
8176 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
8177 targets are separated by commas.
8178 * config.h.in: Regenerate.
8180 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
8181 Nathan Sidwell <nathan@codesourcery.com>
8183 * omp-low.h (omp_reduction_init_op): Declare.
8184 * omp-low.c (omp_reduction_init_op): New, broken out of ...
8185 (omp_reduction_init): ... here. Call it.
8186 * tree-parloops.c (initialize_reductions): Use
8187 omp_reduction_init_op.
8189 2015-09-23 Richard Biener <rguenther@suse.de>
8192 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
8193 undefined overflow unless they will cancel out.
8195 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
8197 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
8200 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
8203 * opts.h (write_langs): Declare.
8204 * opts-global.c (write_langs): Make it extern.
8206 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
8209 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
8210 overlapping regs when matching the pattern.
8212 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
8214 * config/aarch64/aarch64-simd.md
8215 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
8216 (aarch64_float_truncate_hi_v4sf_le): New.
8217 (aarch64_float_truncate_hi_v4sf_be): Likewise.
8219 2015-09-23 Richard Biener <rguenther@suse.de>
8221 * tree-ssa-structalias.c (intra_create_variable_infos): Build
8222 representatives for all restrict qualified pointer destinations.
8224 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
8226 * config/i386/i386.md (define_code_attr mshift): New.
8227 (define_mode_iterator SWI1248_AVX512BW): Rename ...
8228 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
8230 (define_insn "*k<logic><mode>"): Use new iterator name.
8231 (define_insn "*<mshift><mode>3"): New.
8233 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
8236 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
8237 mark the block as accessible.
8239 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
8241 * function.c (thread_prologue_and_epilogue_insns): Delete
8242 orig_entry_edge argument to try_shrink_wrapping.
8243 * shrink-wrap.c (can_get_prologue): New function.
8244 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
8245 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
8246 can_get_prologue where needed. Remove code that finds a single
8247 edge for the prologue. Remove code that tests if any reg clobbered
8248 by the prologue is live on the prologue edge. Remove code that finds
8249 the new prologue edge after duplicating blocks. Make a new prologue
8251 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
8253 2015-09-22 Jeff Law <law@redhat.com>
8255 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
8258 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
8260 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
8261 -Wtemplates, -Wnamespaces): Document.
8263 2015-09-22 Tom de Vries <tom@codesourcery.com>
8265 PR tree-optimization/67671
8266 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
8267 pointer references as restrict.
8269 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
8271 * config/nios2/nios2.c (nios2_legitimize_address): When handling
8272 'reg + reloc' cases, allow first operand to be non-REG, and use
8273 force_reg() to enforce address pattern.
8275 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
8278 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
8279 (define_mode_iterator VI12_AVX_AVX512F): New.
8280 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
8281 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
8282 (define_insn "*<code><mode>3"): ... Into new pattern using
8283 VI12_AVX_AVX512F iterators without masking.
8285 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8287 * config.gcc: Support "skylake-avx512".
8288 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
8289 PROCESSOR_SKYLAKE_AVX512.
8290 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
8291 (processor_target_table): Add "skylake-avx512".
8292 (PTA_SKYLAKE_AVX512): Define.
8293 (ix86_option_override_internal): Add "skylake_avx512".
8294 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
8295 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
8296 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
8297 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
8298 * doc/invoke.texi (skylake-avx512): New.
8300 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8302 * config/i386/i386.md (define_insn "kunpckhi"): Fix
8304 (define_insn "kunpcksi"): Ditto.
8305 (define_insn "kunpckdi"): Ditto.
8307 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
8309 * config/i386/i386.md (define_split not/xor SWI1248x): Use
8310 iterator instead of fixed modes.
8312 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8314 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8316 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
8317 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
8318 out_result. Update to support update-fetch operations.
8319 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
8320 Adjust for change to aarch64_gen_atomic_ldop.
8321 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
8322 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
8323 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
8324 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
8325 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
8327 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8329 * config/aarch64/aarch64-protos.h
8330 (aarch64_atomic_ldop_supported_p): Declare.
8331 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
8332 (enum aarch64_atomic_load_op_code): New.
8333 (aarch64_emit_atomic_load_op): New.
8334 (aarch64_gen_atomic_ldop): Update to support load-operate
8336 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
8338 (aarch64_atomic_<atomic_optab><mode>): New.
8339 (aarch64_atomic_<atomic_optab><mode>_lse): New.
8340 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
8341 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
8342 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
8344 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8346 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
8347 (UNSPECV_ATOMIC_LDOP_OR): New.
8348 (UNSPECV_ATOMIC_LDOP_BIC): New.
8349 (UNSPECV_ATOMIC_LDOP_XOR): New.
8350 (UNSPECV_ATOMIC_LDOP_PLUS): New.
8353 (aarch64_atomic_load<atomic_ldop><mode>): New.
8355 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8357 * config/aarch64/aarch64.md
8358 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
8361 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
8363 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
8365 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
8366 (aarch64_gen_atomic_ldop): New.
8367 (aarch64_split_atomic_op): Fix whitespace and add a comment.
8368 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
8369 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
8370 (atomic_exchange<mode>): Replace with an expander.
8371 (aarch64_atomic_exchange<mode>): New.
8372 (aarch64_atomic_exchange<mode>_lse): New.
8373 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
8374 (aarch64_atomic_swp<mode>): New.
8376 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
8378 * tree-inline.c (expand_call_inline): Use inform for extra note.
8379 Do not give a note with UNKNOWN_LOCATION.
8380 Replace input_location with gimple_location (stmt).
8381 Use true/false instead of TRUE/FALSE.
8383 2015-09-22 Tom de Vries <tom@codesourcery.com>
8385 PR tree-optimization/67666
8386 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
8387 with single field non-conservative.
8389 2015-09-21 David S. Miller <davem@davemloft.net>
8393 2015-09-11 David S. Miller <davem@davemloft.net>
8395 * config/sparc/constraints.md: Make "U" constraint a real register
8397 * config/sparc/sparc.c (TARGET_LRA_P): Define.
8398 (D_MODES, DF_MODES): Add missing cast.
8399 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
8400 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
8401 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
8403 * config/sparc/sparc.h (PROMOTE_MODE): Define.
8404 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
8405 provide these insn when flag_pic.
8407 2015-09-17 David S. Miller <davem@davemloft.net>
8409 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
8411 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
8413 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8414 (HARD_REGNO_CALLER_SAVE_MODE): Define.
8415 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8416 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8417 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8418 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8419 provide when flag_pic.
8421 2015-09-21 Jeff Law <law@redhat.com>
8423 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
8426 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
8428 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
8430 2015-09-21 Richard Biener <rguenther@suse.de>
8432 * passes.c (rest_of_decl_compilation): Do not call
8433 dwarf2out_early_global_decl for aliases.
8435 2015-09-21 Richard Biener <rguenther@suse.de>
8438 * dwarf2out.c (add_location_or_const_value_attribute): Remove
8439 attribute parameter. Early exit if either DW_AT_const_value
8440 or DW_AT_location are present already.
8441 (gen_variable_die): Adjust caller.
8442 (dwarf2out_late_global_decl): Likewise.
8444 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8447 * config/sh/sh.c (sh_remove_overlapping_post_inc,
8448 sh_peephole_emit_move_insn): Add new functions.
8449 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
8450 sh_peephole_emit_move_insn): Declere them.
8451 * config/sh/sh.md: Use them in various peephole2 patterns.
8453 2015-09-21 Richard Biener <rguenther@suse.de>
8456 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
8457 address with -fno-delete-null-pointer-checks.
8459 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
8461 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
8462 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
8463 (reduc_uplus_v16qi): Remove.
8465 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
8466 (reduc_<VEC_reduc_name>_v2df): Remove.
8467 (reduc_<VEC_reduc_name>_v4sf): Remove.
8468 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
8470 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
8471 gen_ function by removing * prefix.
8472 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
8474 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
8477 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
8478 Print i_bound without converting it to a tree.
8480 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
8482 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
8483 operands[4] operands[5] swap with std::swap, removed tmp variable.
8484 (arm_evpc_neon_vzip): Replaced in0/in1 and
8485 out0/out1 swaps with std::swap, removed x variable.
8486 (arm_evpc_neon_vtrn): Replaced in0/int1 and
8487 out0/out1 swaos with std::swap, removed x variable.
8488 (arm_expand_vec_perm_const_1): Replaced
8489 d->op0/d->op1 swap with std::swap, removed x variable.
8490 (arm_evpc_neon_vuzp): Replaced in0/in1 and
8491 out0/out1 swaps with std::swap, removed x variable.
8493 2015-09-21 Jonathan Yong <10walls@gmail.com>
8495 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
8496 sysroot/usr/lib/32api for additional win32 libraries,
8497 fixes failing Cygwin bootstrapping.
8499 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8501 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
8503 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
8506 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
8507 (*mov_t_msb_neg): Rewrite negc pattern.
8509 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8511 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
8512 immediate generation code.
8514 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8516 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
8517 redundant immediate generation code.
8519 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8521 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
8522 (AARCH64_NUM_BITMASKS): Remove.
8523 (aarch64_bitmasks_cmp): Remove.
8524 (aarch64_build_bitmask_table): Remove.
8526 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8528 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
8529 slow immediate matching loops with a faster algorithm.
8531 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
8533 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
8536 2015-09-20 Jeff Law <law@redhat.com>
8538 PR tree-optimization/47679
8539 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
8540 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
8541 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
8542 (thread_through_normal_block): Use record_temporary_equivalences.
8544 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
8546 * coretypes.h (gimple): Change typedef to be a forward declaration.
8547 * gimple.h (gimple_statement_base): rename to gimple.
8548 * (all functions and types using gimple): Adjust.
8551 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
8552 David Edelsohn <dje.gcc@gmail.com>
8554 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
8555 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8556 (EH_FRAME_THROUGH_COLLECT2): Define.
8557 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8558 (ASM_OUTPUT_DWARF_PCREL): Define.
8559 (ASM_OUTPUT_DWARF_DATAREL): Define.
8561 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
8563 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
8566 2015-09-18 Jeff Law <law@redhat.com>
8568 PR tree-optimization/47679
8569 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
8571 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
8572 object. Update constructor.
8573 (pass_dominator::execute): Corresponding chagnes to declaration
8574 and initialization of avail_exprs_stack. Update constructor call
8575 for dom_opt_dom_walker object.
8576 (lookup_avail_expr, record_cond): Accept additional argument. Pass
8577 it down to children as needed.
8578 (record_equivalences_from_incoming_edge): Likewise.
8579 (eliminate_redundant_computations): Likewise.
8580 (record_equivalences_from_stmt): Likewise.
8581 (simplify_stmt_for_jump_threading): Likewise.
8582 (record_temporary_equivalences): Likewise.
8583 (optimize_stmt): Likewise.
8584 (dom_opt_dom_walker::thread_across_edge): Update access to
8585 avail_exprs_stack object and pass it to children as needed.
8586 (dom_opt_dom_walker::before_dom_children): Similarly.
8587 (dom_opt_dom_walker::after_dom_children): Similarly.
8588 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
8589 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
8590 Add avail_expr_stack argument. Pass it to children as needed.
8591 (dummy_simplify): Likewise.
8592 (simplify_control_stmt_condition): Likewise.
8593 (thread_around_empty_blocks): Likewise.
8594 (thread_through_normal_block): Likewise.
8595 (thread_across_edge): Likewise.
8596 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8597 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
8599 PR tree-optimization/47679
8600 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
8602 (dom_opt_dom_walker): New private member holding the const_and_copies
8603 object. Update constructor.
8604 (pass_dominator::execute): Corresponding changes to declaration
8605 and initialization of const_and_copies. Update constructor call
8606 for the dom_opt_dom_walker object.
8607 (record_temporary_equivalences): Accept const_and_copies argument
8608 pass it down to children as needed.
8609 (record_equality): Likewise.
8610 (record_equivalences_from_incoming_edge): Likewise.
8611 (cprop_into_successor_phis, optimize_stmt): Likewise.
8612 (eliminate_redundant_computations): Likewise.
8613 (dom_opt_dom_walker::thread_across_edge): Update access to
8614 const_and_copies object and pass it to children as needed.
8615 (dom_opt_dom_walker::before_dom_children): Similarly.
8616 (dom_opt_dom_walker::after_dom_children): Similarly.
8618 PR tree-optimization/47679
8619 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
8620 it into the avail_exprs_stack class.
8621 (pass_dominator::execute): Corresponding changes to declaration
8622 and initialization of avail_exprs. Pass avail_exprs to
8623 dump_dominator_optimization_stats.
8624 (record_cond): Extract avail_exprs from avail_exprs_stack.
8625 (lookup_avail_expr): Similarly.
8626 (htab_staticstics): Remove unnecessary prototype. Move to earlier
8628 (dump_dominator_optimization_stats): Make static and prototype.
8629 Add argument for the hash table to dump.
8630 (debug_dominator_optimization_stats): Remove.
8631 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
8633 (debug_dominator_optimization_stats): Similarly.
8634 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
8635 "void" in prototype for pop_to_marker method. Add accessor method
8636 for the underlying avail_exprs table.
8638 * tree-ssa-threadedge.c: Remove trailing whitespace.
8640 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
8642 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
8644 (pa_ldil_cint_p): Likewise.
8645 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
8646 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
8648 * config/pa/pa.md: Likewise.
8650 2015-09-18 David Malcolm <dmalcolm@redhat.com>
8652 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
8653 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
8654 (diagnostic_show_locus): Likewise.
8655 (diagnostic_print_caret_line): Likewise.
8656 * diagnostic-show-locus.c: New file.
8658 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
8660 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
8661 "back" parameter. Declare label in #if block.
8663 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
8666 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
8667 the address to a register.
8669 2015-09-18 Jeff Law <law@redhat.com>
8671 PR tree-optimization/47679
8672 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
8673 * tree-ssa-dom.c: Remove unnecessary header includes.
8674 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
8675 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
8676 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
8677 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
8678 (pass_phi_only_cprop::execute): Likewise.
8679 (make_pass_phi_only_cprop): Likewise.
8680 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
8681 uses of file scoped statics by passing the required objects
8682 as parameters wherever needed.
8684 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
8685 David Edelsohn <dje.gcc@gmail.com>
8687 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
8688 EH_FRAME_THROUGH_COLLECT2.
8689 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
8691 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
8692 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
8693 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
8694 * except.c (switch_to_exception_section): Use a read-only section
8695 even if EH_FRAME_SECTION_NAME is undefined.
8696 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
8697 * collect2.c (write_c_file_stat): Provide dbase on AIX.
8698 (scan_prog_file): Don't export __dso_handle nor
8700 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8701 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8702 (ASM_OUTPUT_DWARF_PCREL): Define.
8703 (ASM_OUTPUT_DWARF_DATAREL): Define.
8704 (EH_FRAME_THROUGH_COLLECT2): Define.
8705 (EH_FRAME_IN_DATA_SECTION): Delete.
8706 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
8707 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
8709 (rs6000_asm_output_dwarf_datarel): Declare.
8710 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
8711 (rs6000_aix_asm_output_dwarf_datarel): New.
8712 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
8713 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
8714 (EH_FRAME_THROUGH_COLLECT2): Define.
8715 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
8716 (EH_FRAME_THROUGH_COLLECT2): Define.
8717 (EH_TABLES_CAN_BE_READ_ONLY): Define.
8718 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
8719 (EH_FRAME_THROUGH_COLLECT2): New.
8720 (ASM_OUTPUT_DWARF_DATAREL): New.
8721 * doc/tm.texi: Regenerate.
8723 2015-09-18 Richard Biener <rguenther@suse.de>
8725 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
8726 we're in early phase.
8727 (schedule_generic_params_dies_gen): Likewise.
8728 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
8729 work as possible, retaining unhandled cases.
8730 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
8731 clear out generic_type_instances at the end.
8732 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
8733 (dwarf2out_early_finish): ... here. Do most of
8734 gen_remaining_tmpl_value_param_die_attribute here.
8736 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
8738 PR tree-optimization/67283
8739 * tree-sra.c (type_consists_of_records_p): Rename to...
8740 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
8741 (completely_scalarize_record): Rename to...
8742 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
8743 (scalarize_elem): New.
8744 (analyze_all_variable_accesses): Follow renamings.
8746 2015-09-18 Richard Biener <rguenther@suse.de>
8748 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
8751 2015-09-18 Richard Biener <rguenther@suse.de>
8753 PR tree-optimization/66142
8754 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
8755 treat MEM[&x] and x the same.
8756 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
8757 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
8758 when we simplified sth.
8759 (vn_reference_maybe_forwprop_address): Likewise.
8760 (valueize_refs_1): When we simplified through
8761 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
8762 set valueized_anything to true.
8763 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
8764 one ref kills the other instead of just a offset-based test.
8765 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
8766 for the operand_equal_p test to compare bases and also compare
8769 2015-09-17 Christian Bruel <christian.bruel@st.com>
8771 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
8773 2015-09-17 Richard Henderson <rth@redhat.com>
8776 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
8777 pointers that encode the alignment of the object.
8779 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
8781 PR rtl-optimization/66790
8782 * df-problems.c (LIVE): Amend documentation.
8784 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
8786 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
8788 (GTFILES): Replace optabs.c with optabs-libfunc.c.
8789 * genopinit.c (main): Add an include guard to insn-opinit.h.
8790 Protect the rtx_code parts with NUM_RTX_CODE.
8791 * optabs.h: Split parts out to...
8792 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
8793 * optabs.c: Split parts out to...
8794 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
8795 * cilk-common.c: Include optabs-query.h rather than optabs.h.
8796 * fold-const.c: Likewise.
8797 * target-globals.c: Likewise.
8798 * tree-if-conv.c: Likewise.
8799 * tree-ssa-forwprop.c: Likewise.
8800 * tree-ssa-loop-prefetch.c: Likewise.
8801 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
8802 Remove unncessary include files.
8803 * tree-ssa-phiopt.c: Likewise.
8804 * tree-ssa-reassoc.c: Likewise.
8805 * tree-switch-conversion.c: Likewise.
8806 * tree-vect-data-refs.c: Likewise.
8807 * tree-vect-generic.c: Likewise.
8808 * tree-vect-loop.c: Likewise.
8809 * tree-vect-patterns.c: Likewise.
8810 * tree-vect-slp.c: Likewise.
8811 * tree-vect-stmts.c: Likewise.
8812 * tree-vrp.c: Likewise.
8813 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
8814 rather than optabs.h.
8815 * expr.c: Include optabs-tree.h.
8816 * function.c: Likewise.
8818 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
8821 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
8822 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
8823 * config/arm/arm.c: Include common/common-target.h.
8824 (use_return_insn): Return 0 if the static chain register was saved
8825 above a non-APCS frame.
8826 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
8827 (struct scratch_reg): New.
8828 (get_scratch_register_on_entry): New function.
8829 (release_scratch_register_on_entry): Likewise.
8830 (arm_emit_probe_stack_range): Likewise.
8831 (output_probe_stack_range): Likewise.
8832 (arm_expand_prologue): Factor out code dealing with the IP register
8833 for nested function and adjust it for stack checking.
8834 Invoke arm_emit_probe_stack_range if static builtin stack checking
8836 (thumb1_expand_prologue): Sorry out if static builtin stack checking
8838 (arm_expand_epilogue): Add the saved static chain register, if any, to
8839 the amount of pre-pushed registers to pop.
8840 (arm_frame_pointer_required): Return true if static stack checking is
8841 enabled and we want to catch the exception with the EABI unwinder.
8842 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
8843 (UNSPEC_PROBE_STACK_RANGE): Likewise.
8844 * config/arm/arm.md (probe_stack): New insn.
8845 (probe_stack_range): Likewise.
8847 2015-09-17 Richard Biener <rguenther@suse.de>
8849 * genmatch.c (parser::parse_expr): Improve error message
8850 for mis-placed flags.
8852 2015-09-17 Richard Biener <rguenther@suse.de>
8854 * passes.c (rest_of_decl_compilation): Always call early_global_decl
8855 debug hook when we created a varpool node.
8856 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
8857 dwarf2out_early_global_decl, when not just add location or
8858 value attributes to existing DIEs.
8860 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
8862 * config/aarch64/aarch64.md (copysigndf3): New.
8863 (copysignsf3): Likewise.
8865 2015-09-17 David S. Miller <davem@davemloft.net>
8867 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
8868 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
8869 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
8870 (HARD_REGNO_CALLER_SAVE_MODE): Define.
8871 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
8872 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
8873 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
8874 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
8875 provide when flag_pic.
8877 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
8879 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
8880 object_allocator change.
8882 2015-09-17 Bin Cheng <bin.cheng@arm.com>
8884 PR tree-optimization/66388
8885 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
8886 (dump_iv): Dump no_overflow information.
8887 (alloc_iv): Initialize new field for struct iv.
8888 (mark_bivs): Count number of no_overflow bivs.
8889 (find_deriving_biv_for_expr, record_biv_for_address_use): New
8891 (idx_find_step): Call new functions above.
8892 (add_candidate_1, add_candidate): New paramter.
8893 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
8894 (get_computation_aff): Simplify convertion of cand for BIV.
8895 (get_computation_cost_at): Step cand's base if necessary.
8897 2015-09-17 Bin Cheng <bin.cheng@arm.com>
8899 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
8901 (tree_simplify_using_condition): Ditto.
8902 (simplify_using_initial_conditions): Ditto.
8903 (loop_exits_before_overflow): Pass new argument to function
8904 simplify_using_initial_conditions. Remove case for type conversions
8906 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
8908 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
8909 in iv base using loop initial conditions.
8911 2015-09-16 Jeff Law <law@redhat.com>
8913 PR tree-optimization/47679
8914 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
8915 (free_all_edge_infos): Use it.
8916 (allocate_edge_info): Free preexisting edge info data.
8917 (pass_dominator::execute): Set up initial edge info structures.
8918 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
8920 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
8921 If non-null, then push/pop markers appropriately.
8922 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
8923 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
8926 2015-09-16 James Bowman <james.bowman@ftdichip.com>
8928 * config/ft32/ft32.c: Fix the memory address space predicate.
8930 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
8933 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
8934 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
8936 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
8938 * toplev.h (check_global_declaration): Remove declaration.
8939 * toplev.c (check_global_declaration): Move to ...
8940 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
8941 (analyze_functions): Update call.
8943 2015-09-16 David S. Miller <davem@davemloft.net>
8945 * lra-constraints.c (simplify_operand_subreg): Do not assume that
8946 lowpart of a SUBREG has offset zero.
8948 2015-09-16 Jeff Law <law@redhat.com>
8950 PR tree-optimization/47679
8951 * tree-ssa-dom.c (enum expr_kind): Moved from here to
8952 tree-ssa-scopedtables.h.
8953 (struct hashable_expr, class expr_hash_elt): Likewise.
8954 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
8955 Move associated methods into tree-ssa-scopedtables.c.
8956 (avail_expr_hash, initialize_expr_from_cond): Similarly.
8957 (hashable_expr_equal_p, add_expr_commutative): Likewise.
8958 (add_hashable_expr): Likewise.
8959 (record_cond): Delete element directly.
8960 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
8961 private copy ctor and assignment operator methods.
8962 (expr_elt_hasher): Inline trivial methods.
8963 (initialize_expr_from_cond): Prototype.
8964 * tree-ssa-scopedtables.c: Add necessary includes, functions and
8965 methods that were previously in tree-ssa-dom.c. Improve various
8968 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
8970 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
8972 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
8975 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
8978 2015-09-16 Richard Biener <rguenther@suse.de>
8981 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
8982 location of possibly shared trees.
8984 2015-09-16 Richard Biener <rguenther@suse.de>
8987 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
8989 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
8991 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
8992 offset and size computations instead of HOST_WIDE_INT.
8994 2015-09-16 Richard Biener <rguenther@suse.de>
8997 * fold-const.c (extract_muldiv_1): Properly extend multiplication
8998 result before builting a tree via wide_int_to_tree.
9000 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
9002 * Makefile.in: Add memory-block.cc
9003 (pool_allocator::initialize): Use fixed block size.
9004 (pool_allocator::release): Use memory_block_pool.
9005 (pool_allocator::allocate): Likewise.
9006 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
9008 * cfg.c (initialize_original_copy_tables): Likewise.
9009 * cselib.c (elt_list_pool, elt_loc_list_pool,
9010 cselib_val_pool): Likewise.
9011 * df-problems.c (df_chain_alloc): Likewise.
9012 * df-scan.c (df_scan_alloc): Likewise.
9013 * dse.c (cse_store_info_pool, rtx_store_info_pool,
9014 read_info_type_pool, insn_info_type_pool, bb_info_pool,
9015 group_info_pool, deferred_change_pool): Likewise.
9016 * et-forest.c (et_nodes, et_occurrences): Likewise.
9017 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
9018 ipcp_agg_lattice_pool): Likewise.
9019 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
9020 * ipa-profile.c (histogram_pool): Likewise.
9021 * ipa-prop.c (ipa_refdesc_pool): Likewise.
9022 * ira-build.c (live_range_pool, allocno_pool, object_pool,
9023 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
9024 * ira-color.c (update_cost_record_pool): Likewise.
9025 * lra-lives.c (lra_live_range_pool): Likewise.
9026 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
9027 * memory-block.cc: New file.
9028 * memory-block.h: New file.
9029 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
9030 * sched-deps.c (sched_deps_init): Likewise.
9031 * sel-sched-ir.c (sched_lists_pool): Likewise.
9032 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
9033 * tree-sra.c (access_pool): Likewise.
9034 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
9035 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
9036 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
9037 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
9038 * tree-ssa-strlen.c (strinfo_pool): Likewise.
9039 * tree-ssa-structalias.c (variable_info_pool): Likewise.
9040 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
9041 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
9043 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
9045 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
9047 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
9050 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
9052 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
9053 to pass TLS call argument, according to current ABI.
9054 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
9055 callx0 for TLS call, according to current ABI.
9057 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
9059 * tree-eh.c (lower_try_finally_dup_block): Clear location information
9060 on stack restore statements.
9061 (decide_copy_try_finally): Do not consider a stack restore statement as
9062 coming from sources.
9064 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
9066 * config/alpha/alpha.c (alpha_expand_block_clear): Use
9067 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
9069 2015-09-15 Jeff Law <law@redhat.com>
9071 PR tree-optimization/47679
9072 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
9073 methods and private members.
9074 (avail_exprs_stack): Similarly. Change type of global
9075 from a pair of expr_hash_elt_t to the new class.
9076 (expr_elt_hasher::hash): Corresponding changes.
9077 (expr_elt_hasher::equal): Similarly.
9078 (avail_expr_hash): Similarly.
9079 (pass_dominator::execute): Similarly.
9080 (dom_opt_dom_walker::thread_across_edge): Similarly.
9081 (record_cond): Similarly.
9082 (dom_opt_dom_walker::before_dom_children): Similarly.
9083 (dom_opt_dom_walker::after_dom_children): Similarly.
9084 (lookup_avail_expr): Likewise.
9085 (initialize_hash_element): Now a expr_hash_elt constructor.
9086 (initialize_hash_element_from_expr): Similarly.
9087 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
9088 (free_expr_hash_elt): Call dtor for the element.
9089 (remove_local_expressions_from_table): Now the "pop_to_marker"
9090 method in the available_exprs_stack class.
9091 (avail_expr_stack::record_expr): Method factored out.
9092 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
9094 (hashable_expr_equal_p): Fix formatting.
9096 2015-09-15 David Malcolm <dmalcolm@redhat.com>
9098 * input.h (location_get_source_line): Drop "expanded_location"
9099 param in favor of a file and line number.
9100 * input.c (location_get_source_line): Likewise.
9101 (dump_location_info): Update for change in signature of
9102 location_get_source_line.
9103 * diagnostic.c (diagnostic_print_caret_line): Likewise.
9105 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
9107 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
9108 Bump to 4KB for SJLJ exceptions.
9109 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
9110 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
9111 * doc/tm.texi: Regenerate.
9113 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9115 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
9116 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
9119 2015-09-15 Richard Biener <rguenther@suse.de>
9121 PR tree-optimization/67470
9122 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
9123 structure for PHI hoisting by inserting a forwarder block
9126 2015-09-15 Christian Bruel <christian.bruel@st.com>
9128 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
9129 (arm_option_print): New function.
9131 2015-09-15 Christian Bruel <christian.bruel@st.com>
9134 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
9135 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
9136 Remove flags parameter.
9137 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
9138 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
9139 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
9140 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
9141 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
9142 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
9143 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
9144 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
9146 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9148 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
9150 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
9151 AARCH64_VALID_SIMD_DREG_MODE.
9153 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9155 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
9156 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
9157 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
9158 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
9159 aarch64_ld4_lane<mode>): Combine together, making...
9160 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9161 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9162 aarch64_st4_lane<mode>): Combine together, making...
9163 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
9164 * config/aarch64/iterators.md (nregs): Add comment.
9166 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9168 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
9169 Change operand mode from <V_TWO_ELEM> to BLK.
9170 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
9171 (aarch64_vec_store_lanesoi_lane<mode): Likewise
9172 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9173 (aarch64_ld2_lane<mode>): Likewise.
9174 (aarch64_st2_lane<VQ:mode>): Likewise.
9175 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
9177 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9179 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
9180 Change operand mode from <V_FOUR_ELEM> to BLK.
9181 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
9182 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
9183 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9184 (aarch64_ld4_lane<mode>): Likewise.
9185 (aarch64_st4_lane<mode>): Likewise.
9186 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
9188 2015-09-15 Richard Biener <rguenther@suse.de>
9191 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
9192 transfer EH info from old to new stmt.
9193 (replace_call_with_value): Likewise.
9194 (replace_call_with_call_and_fold): Likewise.
9195 (gimple_fold_builtin_memory_op): Likewise.
9196 (gimple_fold_builtin_memset): Likewise.
9197 (gimple_fold_builtin_stpcpy): Likewise.
9198 (gimple_fold_call): Likewise.
9200 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9202 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
9204 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
9205 (aarch64_simd_intEI_type_node): Likewise.
9206 (aarch64_simd_builtin_std_type): Remove EImode case.
9207 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
9208 * config/aarch64/aarch64-modes.def: Remove EImode.
9210 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9212 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
9213 Change operand mode from <V_THREE_ELEM> to BLK.
9214 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
9215 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
9216 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
9217 (aarch64_ld3_lane<mode>): Likewise.
9218 (aarch64_st3_lane<mode>): Likewise.
9219 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
9221 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9223 * config/aarch64/aarch64-simd.md
9224 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
9225 Change all TImode operands to BLKmode.
9226 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
9227 Change all EImode operands to BLKmode.
9228 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
9229 Change all OImode operands to BLKmode.
9231 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
9232 and call set_mem_size.
9233 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
9235 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
9237 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
9239 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
9241 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
9243 (vec_store_lanesci_lane<mode>): Rename to...
9244 (aarch64_vec_store_lanesci_lane<mode>): ...this.
9246 (vec_store_lanesxi_lane<mode>): Rename to...
9247 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
9249 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
9250 aarch64_st4_lane<mode>): Follow renaming.
9252 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9254 * config/s390/s390.c (s390_const_operand_ok): Add missing
9257 2015-09-15 Richard Biener <rguenther@suse.de>
9260 * lto-streamer.h (lto_location_cache::current_sysp): Properly
9262 * lto-streamer-out.c (clear_line_info): Likewise.
9264 2015-09-15 Richard Biener <rguenther@suse.de>
9266 * doc/match-and-simplify.texi: Fix wording.
9268 2015-09-15 Bin Cheng <bin.cheng@arm.com>
9270 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
9271 unnecessary type conversion in op1.
9273 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
9275 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
9276 (dup_block_and_redirect): Delete function.
9277 (can_dup_for_shrink_wrapping): New function.
9278 (fix_fake_fallthrough_edge): New function.
9279 (try_shrink_wrapping): Rewrite function.
9280 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
9282 2015-09-14 Rich Felker <dalias@libc.org>
9284 * configure.ac: Change target pattern for sh TLS support
9285 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
9286 * configure: Regenerate.
9288 2015-09-14 Jeff Law <law@redhat.com>
9290 PR tree-optimization/47679
9291 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
9292 type rather than void *.
9294 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
9297 * diagnostic.c (diagnostic_initialize): Do not set
9298 some_warnings_are_errors.
9299 (diagnostic_finish): Use DK_WERROR count instead.
9300 (diagnostic_report_diagnostic): Do not set
9301 some_warnings_are_errors.
9302 * diagnostic.h (struct diagnostic_context): Remove
9303 some_warnings_are_errors.
9305 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
9307 * config/sparc/predicates.md (const_all_ones_operand): Use
9308 CONSTM1_RTX to simplify definition.
9310 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
9313 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
9316 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
9318 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
9319 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
9320 OPT_fshow_column to handled saved option cases.
9321 (append_compiler_options): Do not skip the above added options.
9323 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9326 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
9327 nopcrelative_literal_loads.
9328 (aarch64_classify_address): Likewise.
9329 (aarch64_constant_pool_reload_icode): Define.
9330 (aarch64_secondary_reload): Handle secondary reloads for
9332 (aarch64_override_options): Handle nopcrelative_literal_loads.
9333 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
9334 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
9336 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
9337 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
9338 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
9340 * doc/invoke.texi (mpc-relative-literal-loads): Document.
9342 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
9345 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
9346 sync_compare_and_swap_optab libcall to target_oval.
9348 2015-09-14 Marek Polacek <polacek@redhat.com>
9350 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
9352 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
9354 2015-09-11 Mark Wielaard <mjw@redhat.com>
9357 * toplev.c (check_global_declaration): Check and use
9358 warn_unused_const_variable.
9359 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
9360 (-Wunused-variable): Remove non-constant. For C implies
9361 -Wunused-const-variable.
9362 (-Wunused-const-variable): New.
9364 2015-09-14 Richard Biener <rguenther@suse.de>
9366 * doc/match-and-simplify.texi: Update for changed syntax
9367 of inner ifs and the new switch expression.
9369 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
9371 * config/i386/haswell.md: New file describing Haswell pipeline.
9372 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
9373 haswell-like processors.
9374 (ix86_reassociation_width): Increase reassociation width for 64-bit
9375 Haswell processor family.
9376 * config/i386/i386.md: Introduce haswell cpu and include new md file.
9378 2015-09-14 Richard Biener <rguenther@suse.de>
9380 * doc/match-and-simplify.texi: Fixup some formatting issues
9381 and document the 's' flag.
9383 2015-09-13 Olivier Hainque <hainque@adacore.com>
9384 Eric Botcazou <ebotcazou@adacore.com>
9386 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
9387 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
9388 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
9389 (TARGET_CPU_gr5): Likewise.
9390 (TARGET_CPU_gr6): Likewise.
9391 (MULTILIB_DEFAULTS): Likewise.
9392 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
9393 for mcpu=gr5 and mcpu=gr6.
9394 (MULTILIB_DIRNAMES): Adjust accordingly.
9396 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9398 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
9399 (mem_ref_p): Likewise.
9400 (outermost_indep_loop): Adjust.
9401 (mem_ref_in_stmt): Likewise.
9402 (determine_max_movement): Likewise.
9403 (mem_ref_alloc): Likewise.
9404 (record_mem_ref_loc): Likewise.
9405 (set_ref_stored_in_loop): Likewise.
9406 (mark_ref_stored): Likewise.
9407 (gather_mem_refs_stmt): Likewise.
9408 (mem_refs_may_alias_p): Likewise.
9409 (for_all_locs_in_loop): Likewise.
9410 (struct rewrite_mem_ref_loc): Likewise.
9411 (rewrite_mem_refs): Likewise.
9412 (struct first_mem_ref_loc_1): Likewise.
9413 (first_mem_ref_loc): Likewise.
9414 (struct sm_set_flag_if_changed): Likewise.
9415 (execute_sm_if_changed_flag_set): Likewise.
9416 (execute_sm): Likewise.
9417 (hoist_memory_references):
9418 (struct ref_always_accessed): Likewise.
9419 (ref_always_accessed_p): Likewise.
9420 (refs_independent_p): Likewise.
9421 (record_dep_loop): Likewise.
9422 (ref_indep_loop_p_1): Likewise.
9423 (ref_indep_loop_p_2): Likewise.
9424 (ref_indep_loop_p): Likewise.
9425 (can_sm_ref_p): Likewise.
9426 (find_refs_for_sm): Likewise.
9427 (tree_ssa_lim_finalize): Likewise.
9429 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9431 * dwarf2out.c (dw_attr_ref): Remove typedef.
9432 (dw_line_info_ref): Likewise.
9433 (pubname_ref): Likewise.
9434 (dw_ranges_ref): Likewise.
9435 (dw_ranges_by_label_ref): Likewise.
9436 (comdat_type_node_ref): Likewise.
9438 (get_AT_low_pc): Likewise.
9439 (get_AT_hi_pc): Likewise.
9440 (get_AT_string): Likewise.
9441 (get_AT_flag): Likewise.
9442 (get_AT_unsigned): Likewise.
9443 (get_AT_ref): Likewise.
9444 (get_AT_file): Likewise.
9445 (remove_AT): Likewise.
9446 (print_die): Likewise.
9447 (check_die): Likewise.
9448 (die_checksum): Likewise.
9449 (attr_checksum_ordered): Likewise.
9450 (struct checksum_attributes): Likewise.
9451 (collect_checksum_attributes): Likewise.
9452 (die_checksum_ordered): Likewise.
9453 (same_die_p): Likewise.
9454 (is_declaration_die): Likewise.
9455 (clone_die): Likewise.
9456 (clone_as_declaration): Likewise.
9457 (copy_declaration_context): Likewise.
9458 (break_out_comdat_types): Likewise.
9459 (copy_decls_walk): Likewise.
9460 (output_location_lists): Likewise.
9461 (external_ref_hasher::hash): Likewise.
9462 (optimize_external_refs_1): Likewise.
9463 (build_abbrev_table): Likewise.
9464 (size_of_die): Likewise.
9465 (unmark_all_dies): Likewise.
9466 (size_of_pubnames): Likewise.
9467 (output_die_abbrevs): Likewise.
9468 (output_die): Likewise.
9469 (output_pubnames): Likewise.
9470 (add_ranges_num): Likewise.
9471 (add_ranges_by_labels): Likewise.
9472 (add_high_low_attributes): Likewise.
9473 (gen_producer_string): Likewise.
9474 (dwarf2out_set_name): Likewise.
9475 (new_line_info_table): Likewise.
9476 (prune_unused_types_walk_attribs): Likewise.
9477 (prune_unused_types_update_strings): Likewise.
9478 (prune_unused_types): Likewise.
9479 (resolve_addr): Likewise.
9480 (optimize_location_lists_1): Likewise.
9481 (index_location_lists): Likewise.
9482 (dwarf2out_finish): Likewise.
9484 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9486 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
9488 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9490 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
9491 (dump_asserts_for): Adjust.
9492 (register_new_assert_for): Likewise.
9493 (process_assert_insertions): Likewise.
9494 (insert_range_assertions): Likewise.
9496 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9498 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
9500 (new_temp_expr_table): Adjust.
9501 (free_temp_expr_table): Likewise.
9502 (version_to_be_replaced_p): Likewise.
9503 (make_dependent_on_partition): Likewise.
9504 (add_to_partition_kill_list): Likewise.
9505 (remove_from_partition_kill_list): Likewise.
9506 (add_dependence): Likewise.
9507 (finished_with_expr): Likewise.
9508 (process_replaceable): Likewise.
9509 (kill_expr): Likewise.
9510 (kill_virtual_exprs): Likewise.
9511 (mark_replaceable): Likewise.
9512 (find_replaceable_in_bb): Likewise.
9513 (find_replaceable_exprs): Likewise.
9514 (debug_ter): Likewise.
9516 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9518 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
9519 (struct btr_user): Rename from btr_user_s.
9520 (struct btr_def): Rename from btr_def_s.
9521 (find_btr_def_group): Adjust.
9522 (add_btr_def): Likewise.
9523 (new_btr_user): Likewise.
9524 (note_other_use_this_block): Likewise.
9525 (compute_defs_uses_and_gen): Likewise.
9526 (link_btr_uses): Likewise.
9527 (build_btr_def_use_webs): Likewise.
9528 (block_at_edge_of_live_range_p): Likewise.
9529 (btr_def_live_range): Likewise.
9530 (combine_btr_defs): Likewise.
9531 (move_btr_def): Likewise.
9532 (migrate_btr_def): Likewise.
9533 (migrate_btr_defs): Likewise.
9535 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9537 * var-tracking.c (shared_hash_def): Rename to shared_hash.
9538 (shared_hash): Remove typedef.
9539 (struct dataflow_set): Adjust.
9540 (shared_hash_unshare): Likewise.
9541 (dataflow_set_merge): Likewise.
9542 (vt_initialize): Likewise.
9543 (vt_finalize): Likewise.
9545 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9547 * var-tracking.c (struct location_chain): Rename from
9549 (struct variable_part): Adjust.
9550 (variable_htab_free): Likewise.
9551 (unshare_variable): Likewise.
9552 (get_init_value): Likewise.
9553 (get_addr_from_local_cache): Likewise.
9554 (drop_overlapping_mem_locs): Likewise.
9555 (val_reset): Likewise.
9556 (struct variable_union_info): Likewise.
9557 (variable_union): Likewise.
9558 (find_loc_in_1pdv): Likewise.
9559 (insert_into_intersection): Likewise.
9560 (intersect_loc_chains): Likewise.
9561 (canonicalize_loc_order_check): Likewise.
9562 (canonicalize_values_mark): Likewise.
9563 (canonicalize_values_star): Likewise.
9564 (canonicalize_vars_star): Likewise.
9565 (variable_merge_over_cur): Likewise.
9566 (remove_duplicate_values): Likewise.
9567 (variable_post_merge_new_vals): Likewise.
9568 (variable_post_merge_perm_vals): Likewise.
9569 (find_mem_expr_in_1pdv): Likewise.
9570 (dataflow_set_preserve_mem_locs): Likewise.
9571 (dataflow_set_remove_mem_locs): Likewise.
9572 (variable_part_different_p): Likewise.
9573 (onepart_variable_different_p): Likewise.
9574 (find_src_set_src): Likewise.
9575 (dump_var): Likewise.
9576 (set_slot_part): Likewise.
9577 (clobber_slot_part): Likewise.
9578 (delete_slot_part): Likewise.
9579 (vt_expand_var_loc_chain): Likewise.
9580 (emit_note_insn_var_location): Likewise.
9581 (vt_finalize): Likewise.
9583 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9585 * dse.c (store_info_t): Remove typedef.
9586 (group_info_t): Likewise.
9587 (const_group_info_t): Likewise.
9588 (deferred_change_t): Likewise.
9589 (get_group_info): Adjust.
9590 (free_store_info): Likewise.
9591 (canon_address): Likewise.
9592 (clear_rhs_from_active_local_stores): Likewise.
9593 (record_store): Likewise.
9594 (replace_read): Likewise.
9595 (check_mem_read_rtx): Likewise.
9596 (scan_insn): Likewise.
9597 (remove_useless_values): Likewise.
9598 (dse_step1): Likewise.
9599 (dse_step2_init): Likewise.
9600 (dse_step2_nospill): Likewise.
9601 (scan_stores_nospill): Likewise.
9602 (scan_reads_nospill): Likewise.
9603 (dse_step3_exit_block_scan): Likewise.
9604 (dse_step3): Likewise.
9605 (dse_step5_nospill): Likewise.
9606 (dse_step6): Likewise.
9608 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9610 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
9611 (alias_set_entry): Remove typedef.
9612 (alias_set_subset_of): Adjust.
9613 (alias_sets_conflict_p): Likewise.
9614 (init_alias_set_entry): Likewise.
9615 (get_alias_set): Likewise.
9616 (new_alias_set): Likewise.
9617 (record_alias_subset): Likewise.
9619 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
9621 * doc/install.texi (Downloading the source): Mark up
9622 contrib/download_prerequisites properly and drop leading "./".
9624 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9626 * config/arc/arc.h: Remove define of STRUCT_VALUE.
9627 * config/lm32/lm32.h: Likewise.
9628 * config/mep/mep.h: Likewise.
9629 * config/visium/visium.h: Likewise.
9630 * system.h: Poison STRUCT_VALUE macro.
9632 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
9634 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
9635 CONSTANT_P operands.
9637 2015-09-11 David S. Miller <davem@davemloft.net>
9639 * config/sparc/constraints.md: Make "U" constraint a real register
9641 * config/sparc/sparc.c (TARGET_LRA_P): Define.
9642 (D_MODES, DF_MODES): Add missing cast.
9643 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
9644 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
9645 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
9647 * config/sparc/sparc.h (PROMOTE_MODE): Define.
9648 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
9649 provide these insn when flag_pic.
9651 2015-09-11 Jeff Law <law@redhat.com>
9653 PR tree-optimization/47679
9654 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
9655 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
9656 member with m_. Update inline member functions as necessary. Add
9658 * tree-ssa-scopedtables.c: Update const_and_copies's member
9659 functions to use m_ prefix to access the stack.
9661 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
9663 * graphite-optimize-isl.c (disable_tiling): Remove.
9664 (get_schedule_for_band): Do not use disable_tiling.
9665 (get_prevector_map): Delete function.
9666 (enable_polly_vector): Remove.
9667 (get_schedule_for_band_list): Remove dead code.
9669 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
9671 * graphite-optimize-isl.c (get_tile_map): Refactor.
9672 (get_schedule_for_band): Same.
9673 (getScheduleForBand): Same.
9674 (get_prevector_map): Same.
9675 (get_schedule_for_band_list): Same.
9676 (get_schedule_map): Same.
9677 (get_single_map): Same.
9678 (apply_schedule_map_to_scop): Same.
9679 (optimize_isl): Same.
9681 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9684 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
9686 * config/aarch64/iterators.md (GPF_TF_F16): New.
9689 2015-09-10 Nathan Sidwell <nathan@acm.org>
9691 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
9692 (nvptx_reorg): Adjust comments.
9694 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
9697 * configure.ac: Check if setenv and unsetenv are declared.
9698 * configure: Rebuild.
9699 * config.in: Rebuild.
9700 * system.h: Declare setenv and unsetenv if not declared.
9702 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9704 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
9705 commentary to simplify permute mask adjustment equation.
9706 (special_handling_values): Add SH_VPERM.
9707 (const_load_sequence_p): New function.
9708 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
9709 the mask loaded from the constant pool.
9710 (adjust_vperm): New function.
9711 (handle_special_swappables): Call adjust_vperm.
9712 (dump_swap_insn_table): Handle SH_VPERM.
9714 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
9716 * shrink-wrap.c (requires_stack_frame_p): Remove static.
9717 * shrink-wrap.h (requires_stack_frame_p): Put back.
9719 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
9721 * reload1.c (elimination_costs_in_insn): Locally turn
9722 -Wmaybe-uninitialized into a warning.
9724 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
9726 * shrink-wrap.c (requires_stack_frame_p): Make static.
9727 (prepare_shrink_wrap): Likewise.
9728 (dup_block_and_redirect): Likewise.
9729 * shrink-wrap.h: Remove declarations of those functions.
9731 2015-09-10 Mark Wielaard <mjw@redhat.com>
9733 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
9735 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
9738 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
9739 missing simplify_gen_subreg.
9741 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9743 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
9744 the vector element is bigger than 64 bit.
9746 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9748 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
9749 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
9751 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9753 * config/s390/s390.c: Add V1TImode to constant pool modes.
9755 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9758 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
9759 predicate. Set predicable_short_it attr to "no".
9761 2015-09-10 Jiong Wang <jiong.wang@arm.com>
9763 PR rtl-optimization/67421
9764 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
9765 left wide shift tranformation.
9767 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
9769 * common/config/arc/arc-common.c: Remove references to A5.
9770 * config/arc/arc-opts.h: Likewise.
9771 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
9772 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
9773 * config/arc/t-arc-newlib: Likewise.
9775 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
9777 * config/arc/arc.md (length): Fix attribute length for conditional
9778 executed instructions with long immediate.
9780 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9782 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
9783 type for second alternative.
9785 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
9787 * doc/invoke.texi (Downloading GCC): Mention
9788 contrib/download_prerequisites script.
9790 2015-09-10 Jakub Jelinek <jakub@redhat.com>
9793 * gimplify.c (gimplify_omp_for): If inner stmt is not found
9794 for combined loop, assert seen_error () and return GS_ERROR.
9797 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
9798 if decl is already in outer->variables.
9801 * gimplify.c (gimplify_scan_omp_clauses): Instead of
9802 asserting that decl is not specified in octx->variables,
9803 break out of the loop if it is.
9806 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
9807 iterator is not explicitly determined, but is defined inside
9808 of the combined workshare region, handle it like if it has
9809 DECL_EXPR in OMP_FOR_PRE_BODY.
9811 2015-09-09 Nathan Sidwell <nathan@acm.org>
9813 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
9814 (*cmp<mode>): Add assembler spacing.
9815 (setcc_int<mode>, set_cc_float<mode>): Likewise.
9816 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
9818 (write_func_decl_from_insn): Refactor argument loops & comma emission.
9819 (nvptx_expand_call): Likewise.
9820 (nvptx_output_call_insn): Likewise.
9821 (nvptx_reorg_subreg): Add spacing.
9823 2015-09-09 Marek Polacek <polacek@redhat.com>
9826 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
9829 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
9832 * doc/invoke.texi ([Wsubobject-linkage]): Document.
9834 2015-09-09 Tom de Vries <tom@codesourcery.com>
9836 * params-list.h: Add missing copyright notice.
9838 2015-09-09 Nathan Sidwell <nathan@acm.org>
9840 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
9841 sel_truesi, not andsi.
9843 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9845 * config/arm/arm.md (*subsi3_compare0): Rename to...
9846 (subsi3_compare0): ... This.
9847 (modsi3): New define_expand.
9848 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
9849 when operand is power of 2.
9851 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9853 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
9854 (*neg<mode>2_compare0): Rename to...
9855 (neg<mode>2_compare0): ... This.
9856 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
9857 Move check for speed inside the if-then-elses. Reflect
9858 CSNEG sequence in MOD by power of 2 case.
9860 2015-09-09 Alan Modra <amodra@gmail.com>
9863 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
9864 reload replacement for PRE_MODIFY address reg.
9866 2015-09-09 Sebastian Pop <s.pop@samsung.com>
9868 PR tree-optimization/53852
9869 * config.in: Regenerate.
9870 * configure: Regenerate.
9871 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
9872 * graphite-optimize-isl.c (optimize_isl): Stop computation when
9873 PARAM_MAX_ISL_OPERATIONS is reached.
9874 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
9875 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
9876 result equal to isl_stat_ok as the status now can be isl_error_quota.
9877 (subtract_commutative_associative_deps): Same.
9878 (compute_deps): Same.
9880 2015-09-08 Aditya Kumar <hiraditya@msn.com>
9881 Sebastian Pop <s.pop@samsung.com>
9883 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
9884 Return the parameter if it was saved in corresponding
9885 parameter_rename_map of the region.
9886 (copy_def): Copy def from sese region to the newly created region.
9887 (copy_internal_parameters): Copy all the internal parameters defined
9888 within a region to the newly created region.
9889 (graphite_regenerate_ast_isl): Copy parameters to the new region before
9890 translating isl to gimple.
9891 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
9892 the loop-nest does not have any data-references.
9893 (build_graphite_scops): Create a scop only when there is at least one
9895 (contains_only_close_phi_nodes): Deleted.
9896 (print_graphite_scop_statistics): Deleted
9897 (print_graphite_statistics): Deleted
9898 (limit_scops): Deleted.
9899 (build_scops): Removed call to limit_scops.
9900 * sese.c (new_sese): Construct.
9901 (free_sese): Destruct.
9902 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
9904 (set_rename): Pass sese region so that parameters inside the region can
9905 be added to its parameter_rename_map.
9906 (rename_uses): Pass sese region.
9907 (graphite_copy_stmts_from_block): Do not copy parameters that have been
9908 generated in the header of the scop. For each SSA_NAME in the
9909 parameter_rename_map rename its usage.
9910 (invariant_in_sese_p_rec): Return false if tree t is defined outside
9912 (scalar_evolution_in_region): If the tree t is invariant just return t.
9913 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
9914 struct sese to keep track of all the parameters which need renaming.
9915 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
9917 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
9919 2015-09-08 Tom de Vries <tom@codesourcery.com>
9921 * Makefile.in (generated_files): Add params.list.
9922 (params.list, s-params.list): Add rule.
9923 * params.h (enum compiler_param): Include params-list.h. Move define
9924 DEFPARAM, include params.def and undef DEFPARAM ...
9925 * params-list.h: ... here. New file.
9927 2015-09-08 David Malcolm <dmalcolm@redhat.com>
9929 * pretty-print.h (printer_fn): Fix typo in comment.
9931 2015-09-07 Jeff Law <law@redhat.com>
9933 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
9935 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9937 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
9938 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
9939 (arm_neon_fp16_hw): New.
9941 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9943 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
9944 UNITS_PER_WORD >= 4.
9946 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9948 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
9949 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
9950 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
9951 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
9952 (aarch64_float_extend_lo_v2df): Rename to...
9953 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
9955 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
9956 (float_extend_lo): Add v4sf.
9958 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
9959 * config/aarch64/iterators.md (VQ_HSF): New iterator.
9960 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
9961 (Vwide): New mode_attr.
9963 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9965 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
9966 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
9967 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
9968 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
9969 V4HF and V8HF variants to iterator.
9971 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
9973 * config/aarch64/iterators.md (VDQF_F16): New.
9974 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
9976 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9978 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
9979 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
9980 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
9981 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
9982 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
9983 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
9984 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
9985 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
9986 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
9987 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
9988 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
9989 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
9990 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
9991 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
9992 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
9993 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
9994 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
9995 vld1q_dup_f16): New.
9997 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
9999 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
10000 Reparameterize to...
10001 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
10002 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
10003 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
10005 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
10007 (float_truncate_lo_): Use BUILTIN_VDF iterator.
10009 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
10011 * config/aarch64/iterators.md (VDF, Vdtype): New.
10012 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
10014 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10016 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
10017 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
10018 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
10019 Add __builtin_aarch64_simd_hf.
10020 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
10021 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
10022 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
10023 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
10024 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
10025 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
10026 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
10027 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
10028 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
10030 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
10031 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
10032 (VDC, Vdbl): Add V4HF.
10034 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10036 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
10037 V4HFmode and V8HFmode.
10038 (aarch64_split_simd_move): Add case for V8HFmode.
10039 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
10040 (aarch64_simd_builtin_std_type): Handle HFmode.
10041 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
10043 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
10044 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
10045 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
10047 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
10050 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
10051 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
10053 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
10054 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
10055 vst1q_lane_f16): New.
10056 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
10057 (VALLDI_F16, VALL_F16): New.
10058 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
10059 Add cases for V4HF and V8HF.
10060 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
10062 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10064 * config/arm/arm-builtins.c (VAR11, VAR12): New.
10065 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
10066 vld4_dup): Add v4hf variant.
10067 (vget_high, vget_low): Add v8hf variant.
10068 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
10069 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
10070 v4hf and v8hf variants.
10072 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
10074 (V_DOUBLE): Add case for V4HF.
10076 (V_HALF): Add case for V8HF.
10077 (VDQX): Add V4HF, V8HF.
10078 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
10079 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
10081 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
10082 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
10083 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
10084 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
10085 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
10086 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
10087 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
10088 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
10089 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
10091 (neon_vcreate, neon_vreinterpretv8qi<mode>,
10092 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
10093 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
10094 Change VDX to VD_RE.
10096 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
10097 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
10098 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
10100 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
10101 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
10102 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
10103 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
10104 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
10105 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
10106 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
10107 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
10108 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
10110 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10112 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
10113 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
10114 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
10115 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
10116 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
10117 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
10118 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
10119 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
10120 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
10121 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
10124 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10126 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
10128 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
10130 * config/arm/arm-builtins.c (v8hf_UP): New.
10131 (arm_init_simd_builtin_types): Initialise Float16x8_t.
10133 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
10135 * config/arm/arm_neon.h (float16x8_t): New typedef.
10137 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
10139 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
10140 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
10141 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
10142 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
10143 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
10144 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
10145 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
10146 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
10147 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
10148 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
10150 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
10152 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
10153 non-alphanumeric characters in the symbol name.
10155 2015-09-07 Marek Polacek <polacek@redhat.com>
10157 PR inline-asm/67448
10158 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
10161 2015-09-07 Marek Polacek <polacek@redhat.com>
10163 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
10165 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
10167 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
10170 2015-09-04 Jakub Jelinek <jakub@redhat.com>
10172 PR middle-end/67452
10173 * tree-ssa-live.c: Include cfgloop.h.
10174 (remove_unused_locals): Clear loop->simduid if simduid is about
10175 to be removed from cfun->local_decls.
10177 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10180 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
10183 2015-09-04 Tom de Vries <tom@codesourcery.com>
10185 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
10187 2015-09-04 Jeff Law <law@redhat.com>
10189 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
10190 unnecessary constructor. It's now trivial and implemented inside...
10191 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
10192 constructor. Add comments to various methods. Remove unused
10194 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
10195 * tree-vrp.c (identify_jump_threads): Likewise.
10196 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
10197 indentation issues.
10198 (thread_across_edge): Similarly.
10199 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
10200 arguments in constructor call.
10202 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
10204 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
10205 temp path contains a '-'.
10207 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
10208 Petr Murzin <petr.murzin@intel.com>
10209 Kirill Yukhin <kirill.yukhin@intel.com>
10211 * config/i386/i386-builtin-types.def
10212 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
10213 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
10214 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
10215 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
10216 * config/i386/i386.c
10217 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
10218 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10219 IX86_BUILTIN_SCATTERALTDIV16SI.
10220 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
10221 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
10222 __builtin_ia32_scatteraltdiv8si.
10223 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
10224 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
10225 IX86_BUILTIN_SCATTERALTDIV16SI.
10226 (ix86_vectorize_builtin_scatter): New.
10227 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
10228 ix86_vectorize_builtin_scatter.
10230 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
10231 Petr Murzin <petr.murzin@intel.com>
10232 Kirill Yukhin <kirill.yukhin@intel.com>
10234 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
10235 * doc/tm.texi: Regenerate.
10236 * target.def: Add scatter builtin.
10237 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
10238 for loads/stores in case of gather/scatter accordingly.
10239 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10240 STMT_VINFO_GATHER_P(S).
10241 (vect_check_gather): Rename to ...
10242 (vect_check_gather_scatter): this.
10243 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
10244 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
10245 (vect_check_gather_scatter): Use it instead of vect_check_gather.
10246 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
10247 variable and new checkings for it accordingly.
10248 * tree-vect-stmts.c
10249 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
10250 STMT_VINFO_GATHER_P(S).
10251 (vect_check_gather_scatter): Use it instead of vect_check_gather.
10252 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
10254 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
10256 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
10258 (mulv16qi3): New define_expand.
10260 2015-09-03 Martin Sebor <msebor@redhat.com>
10263 * doc/extend.texi (Other Builtins): Document when the address
10264 of a built-in function can be taken.
10266 2015-09-03 Richard Biener <rguenther@suse.de>
10268 * dwarf2out.c (flush_limbo_die_list): Split out from ...
10269 (dwarf2out_early_finish): ... here.
10270 (dwarf2out_finish): Do not call dwarf2out_early_finish but
10271 flush_limbo_die_list. Assert we have no deferred asm names.
10273 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10275 * optabs.c (expand_binop): Don't create a broadcast vector with a
10276 source element wider than the inner mode.
10278 2015-09-03 Richard Biener <rguenther@suse.de>
10280 * varasm.c (output_constant): Use fold_convert instead of
10283 2015-09-03 Tom de Vries <tom@codesourcery.com>
10285 PR tree-optimization/65637
10286 * omp-low.c (expand_omp_for_static_chunk): Handle case that
10287 fin_bb has 2 predecessors.
10289 2015-09-03 Tom de Vries <tom@codesourcery.com>
10291 PR tree-optimization/65637
10292 * omp-low.c (find_phi_with_arg_on_edge): New function.
10293 (expand_omp_for_static_chunk): Fix inner loop phi.
10295 2015-09-03 Tom de Vries <tom@codesourcery.com>
10297 PR tree-optimization/65637
10298 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
10301 2015-09-03 Tom de Vries <tom@codesourcery.com>
10303 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
10305 2015-09-03 Tom de Vries <tom@codesourcery.com>
10307 * doc/invoke.texi (parloops-chunk-size): Add item.
10308 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
10309 * tree-parloops.c: Include params.h.
10310 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
10311 param parloops-chunk-size is used.
10313 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10315 PR middle-end/67351
10316 * fold-const.c (fold_binary_loc) : Move
10317 Transform (x >> c) << c into x & (-1<<c) or
10318 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
10319 types using simplify and match.
10320 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
10321 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
10323 2015-09-03 Richard Biener <rguenther@suse.de>
10326 * tree-ssa-structalias.c (ctor_for_analysis): New function.
10327 (create_variable_info_for_1): Use ctor_for_analysis instead
10328 of get_constructor.
10329 (create_variable_info_for): Likewise.
10331 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
10334 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
10335 in new callgraph edge.
10337 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
10342 * config/aarch64/aarch64-simd.md
10343 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
10344 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
10345 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
10346 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
10348 2015-09-02 Alan Modra <amodra@gmail.com>
10350 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
10351 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
10352 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
10354 2015-09-02 Alan Modra <amodra@gmail.com>
10357 * config/rs6000/predicates.md (current_file_function_operand): Don't
10358 return true for weak symbols.
10359 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
10361 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
10362 Andrew Bennett <andrew.bennett@imgtec.com>
10364 * config/mips/mips-opts.h (mips_cb_setting): New enum.
10365 * config/mips/mips-protos.h: Add definitions for
10366 mips_output_jump and mips_output_equal_conditional_branch
10367 * config/mips/mips.c (MIPS_JR): Change to support the
10369 (mips_emit_compare): Add support for the MIPS R6 conditional
10371 (mips_process_sync_loop): Likewise.
10372 (mips_output_order_conditional_branch): Likewise.
10373 (mips16_build_call_stub): Change MIPS_CALL to
10375 (mips_print_operand_punctuation): Update 's' case to only
10376 apply to micromips r2.
10377 (mips_adjust_insn_length): Add support for forbidden slot
10379 (mips_avoid_hazard): Likewise.
10380 (mips_reorg_process_insns): Likewise.
10381 (mips_output_jump): New function.
10382 (mips_output_equal_conditional_branch): Likewise.
10383 (mips_output_conditional_branch): Use jrc/bc if compact
10384 branch support is enabled. Ensure the forbidden slots
10385 between the two branch instructions is filled with a nop.
10386 (mips_option_override): Add support to process the compact
10387 branch option and set the correct defaults. Prevent
10388 non-explict relocs being using for MIPS R6.
10389 (mips_trampoline_init): Add compact branch support.
10390 (mips_mult_zero_zero_cost): Allow zero initialisation of
10391 accumulators with TARGET_DSP.
10392 * config/mips/mips.h (TARGET_CB_NEVER): New define.
10393 (TARGET_CB_MAYBE): New define.
10394 (TARGET_CB_ALWAYS): New define.
10395 (ISA_HAS_DELAY_SLOTS): New define.
10396 (ISA_HAS_COMPACT_BRANCHES): New define.
10397 (ISA_HAS_JRC): New define.
10398 (MIPS_BRANCH_C): New define.
10399 (MIPS_CALL): Removed.
10400 (MICROMIPS_J): Removed.
10401 * config/mips/mips.md (compact_form): New attr.
10402 (hazard): Add support for forbidden slots.
10403 (define_delay): Add support for compact branches.
10404 (*branch_order<mode>): Likewise.
10405 (*branch_order<mode>_inverted): Likewise.
10406 (*branch_equality<mode>): Likewise.
10407 (*branch_equality<mode>_inverted): Likewise.
10408 (*jump_absolute): Likewise.
10409 (*jump_pic): Likewise.
10410 (indirect_jump): Use mips_output_jump to produce assembly output.
10411 (tablejump_<mode>"): Likewise.
10412 (*<optab>"): Likewise.
10413 (<optab>_internal): Likewise.
10414 (sibcall_internal): Likewise.
10415 (sibcall_value_internal): Likewise.
10416 (sibcall_value_multiple_internal): Likewise.
10417 (call_internal): Likewise.
10418 (call_split): Likewise.
10419 (call_internal_direct): Likewise.
10420 (call_direct_split): Likewise.
10421 (call_value_internal): Likewise.
10422 (call_value_split): Likewise.
10423 (call_value_internal_direct): Likewise.
10424 (call_value_direct_split): Likewise.
10425 (call_value_multiple_internal): Likewise.
10426 (call_value_multiple_split): Likewise.
10427 (mips_get_fcsr_mips16_<mode>): Likewise.
10428 (mips_set_fcsr_mips16_<mode>): Likewise.
10429 (tls_get_tp_mips16_<mode>): Likewise.
10430 * config/mips/mips.opt: Add -mcompact-branches option.
10431 * config/mips/predicates.md (order_operator): Ensure the
10432 conditional compact branches are only used if the ISA them.
10433 * doc/invoke.texi: Document -mcompact-branches option.
10435 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
10438 * lra-lives.c (process_bb_lives): Process move pseudos with the
10439 same value for copies and preferences
10440 * lra-constraints.c (match_reload): Create match reload pseudo
10441 with the same value from single dying input pseudo.
10443 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
10446 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
10448 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
10450 * trans-mem.c: Add contributed-by.
10451 * trans-mem.h: Same.
10453 2015-09-01 Richard Biener <rguenther@suse.de>
10455 * expr.c (expand_expr_real_1): For expanding TERed defs
10456 set the current location to that of the def if not UNKNOWN.
10458 2015-09-01 David Sherwood <david.sherwood@arm.com>
10460 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
10462 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10464 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
10465 then_cost, else_cost fields. Change branch_cost field to unsigned int.
10466 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
10467 Include rtl-iter.h.
10468 (noce_simple_bbs): New function.
10469 (noce_try_move): Bail if basic blocks are not simple.
10470 (noce_try_store_flag): Likewise.
10471 (noce_try_store_flag_constants): Likewise.
10472 (noce_try_addcc): Likewise.
10473 (noce_try_store_flag_mask): Likewise.
10474 (noce_try_cmove): Likewise.
10475 (noce_try_minmax): Likewise.
10476 (noce_try_abs): Likewise.
10477 (noce_try_sign_mask): Likewise.
10478 (noce_try_bitop): Likewise.
10479 (bbs_ok_for_cmove_arith): New function.
10480 (noce_emit_all_but_last): Likewise.
10481 (noce_emit_insn): Likewise.
10482 (noce_emit_bb): Likewise.
10483 (noce_try_cmove_arith): Handle non-simple basic blocks.
10484 (insn_valid_noce_process_p): New function.
10485 (contains_mem_rtx_p): Likewise.
10486 (bb_valid_for_noce_process_p): Likewise.
10487 (noce_process_if_block): Allow non-simple basic blocks
10490 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
10492 * tree-ssa-dom.c (record_equivalences_from_phis,
10493 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
10494 (lookup_avail_expr): Likewise, and remove comment and unused temp.
10496 2015-09-01 Nick Clifton <nickc@redhat.com>
10498 * config/msp430/msp430.opt (mcpu): Fix typo.
10500 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10502 * config/aarch64/aarch64.c (aarch64_set_current_function):
10503 Re-layout any vector parameters have non-simd layout.
10504 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
10506 (aarch64_simd_expand_args): Delete call to the above.
10508 2015-08-31 Mike Frysinger <vapier@gentoo.org>
10510 * doc/invoke.texi (asan-stack): Add space before option.
10512 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
10514 * tree.h (zerop): New function.
10515 * tree.c (zerop): Likewise.
10516 (element_precision): Handle expressions.
10517 * match.pd (define_predicates): Add zerop.
10518 (x <= +Inf): Fix comment.
10519 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
10520 * fold-const.c (fold_binary_loc): ... here. Remove.
10522 2015-08-31 Richard Biener <rguenther@suse.de>
10524 PR middle-end/67381
10525 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
10527 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
10529 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
10530 (CEXPI): New operator list.
10531 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
10532 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
10534 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
10536 2015-08-31 Tom de Vries <tom@codesourcery.com>
10538 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
10539 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
10541 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
10542 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
10543 (rewrite_into_loop_closed_ssa): ... here.
10544 (replace_uses_in_dominated_bbs): Remove function.
10545 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
10546 rewrite_into_loop_closed_ssa_1.
10548 2015-08-31 Michael Matz <matz@suse.de>
10550 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
10551 enter entry and exit blocks for reverse post order.
10553 2015-08-31 Richard Biener <rguenther@suse.de>
10555 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
10556 (lto_location_cache::current_sysp): Likewise.
10557 (output_block::current_sysp): Likewise.
10558 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
10559 (lto_location_cache::apply_location_cache): Properly record
10560 system header locations.
10561 (lto_location_cache::input_location): Input whether a file
10562 is a system header.
10563 * lto-streamer-out.c (lto_output_location): Stream whether a file
10564 is a system header.
10566 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10569 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
10571 2015-08-31 Tom de Vries <tom@codesourcery.com>
10573 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
10574 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
10575 Improve function header comments.
10577 2015-08-30 Michael Collison <michael.collison@linaro.org>
10580 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
10583 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
10585 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
10586 special_handling bitfield.
10587 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
10588 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
10589 that represents a general xxpermdi.
10590 (insn_is_swappable_p): Add handling for vec_concat of two
10591 doublewords, which maps to a specific xxpermdi.
10592 (adjust_xxpermdi): New function.
10593 (adjust_concat): Likewise.
10594 (handle_special_swappables): Call adjust_xxpermdi and
10596 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
10598 2015-08-30 Rich Felker <dalias@libc.org>
10600 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
10601 case instead of sh[123456ble]-*-*.
10603 2015-08-29 Anatoly Sokolov <aesok@post.ru>
10605 * ira.c (print_unform_and_important_classes,
10606 print_translated_classes): Remove reg_class_names static array.
10607 (print_unform_and_important_classes): Rename to ...
10608 (print_uniform_and_important_classes): ... this.
10609 (ira_debug_allocno_classes): Update accordingly.
10611 2015-08-29 Tom de Vries <tom@codesourcery.com>
10613 PR tree-optimization/46193
10614 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
10617 2015-08-28 Jeff Law <law@redhat.com>
10620 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
10621 unable to find X NE 0 in the tables, return X as the simplified
10623 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
10624 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
10626 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
10627 after removing the control flow statement and unnecessary edges.
10629 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
10632 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
10634 PR tree-optimization/67283
10635 * tree-sra.c (type_consists_of_records_p): Rename to...
10636 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10638 (completely_scalarize_record): Rename to...
10639 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
10641 (scalarize_elem): New.
10643 2015-08-28 Jiong Wang <jiong.wang@arm.com>
10645 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
10646 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
10647 (aarch64_symbol_type): Likewise.
10648 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
10650 (aarch64_expand_mov_immediate): Likewise.
10651 (aarch64_print_operand): Likewise.
10652 (aarch64_classify_tls_symbol): Likewise.
10654 2015-08-28 Richard Biener <rguenther@suse.de>
10656 * cgraphunit.c (symbol_table::compile): Move early debug generation
10658 (symbol_table::finalize_compilation_unit): ... back here and
10659 add a !seen_error () guard.
10661 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10663 * toplev.c (process_options): Do not use flag_loop_block,
10664 flag_loop_interchange, and flag_loop_strip_mine. Add check for
10665 flag_loop_optimize_isl.
10667 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10669 * Makefile.in (OBJS): Remove graphite-blocking.o and
10670 graphite-interchange.o.
10671 * common.opt (floop-strip-mine, floop-interchange, floop-block):
10672 Alias of floop-nest-optimize.
10673 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
10674 Document as alias of -floop-nest-optimize.
10675 * graphite-blocking.c: Remove.
10676 * graphite-interchange.c: Remove.
10677 * graphite-optimize-isl.c: Include dumpfile.h.
10678 (getScheduleForBand): Add dump for tiled loops. Use
10679 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
10680 * graphite-poly.c (scop_max_loop_depth): Remove.
10681 (print_scattering_function_1): Remove.
10682 (print_scattering_function): Remove.
10683 (print_scattering_functions): Remove.
10684 (debug_scattering_function): Remove.
10685 (debug_scattering_functions): Remove.
10686 (apply_poly_transforms): Remove use of flag_loop_block,
10687 flag_loop_strip_mine, and flag_loop_interchange.
10688 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
10690 (print_pdr_access_layout): Remove.
10691 (print_pdr): Print ISL representation.
10692 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
10693 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
10695 (openscop_print_pbb_domain): Remove.
10696 (print_pbb): Remove call to print_scattering_function.
10697 (openscop_print_scop_context): Remove.
10698 (print_scop_context): Do not print matrices anymore.
10699 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
10700 SCOP_TRANSFORMED_SCHEDULE.
10701 (print_isl_set): Add printing of a new line.
10702 (print_isl_map): Same.
10703 (print_isl_aff): Same.
10704 (print_isl_constraint): Same.
10705 (loop_to_lst): Remove.
10706 (scop_to_lst): Remove.
10707 (lst_indent_to): Remove.
10708 (print_lst): Remove.
10709 (debug_lst): Remove.
10710 (dot_lst_1): Remove.
10712 (reverse_loop_at_level): Remove.
10713 (reverse_loop_for_pbbs): Remove.
10714 * graphite-poly.h (pdr_dim_iter_domain): Remove.
10715 (pdr_nb_params): Remove.
10716 (pdr_alias_set_dim): Remove.
10717 (pdr_subscript_dim): Remove.
10718 (pdr_iterator_dim): Remove.
10719 (pdr_parameter_dim): Remove.
10720 (same_pdr_p): Remove.
10721 (struct poly_scattering): Remove.
10722 (struct poly_bb): Remove _original, _transformed, _saved.
10723 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
10724 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
10725 (PBB_NB_LOCAL_VARIABLES): Remove.
10726 (PBB_NB_SCATTERING_TRANSFORM): Remove.
10727 (schedule_to_scattering): Remove.
10728 (number_of_write_pdrs): Remove.
10729 (pbb_dim_iter_domain): Remove.
10730 (pbb_nb_params): Remove.
10731 (pbb_nb_scattering_orig): Remove.
10732 (pbb_nb_scattering_transform): Remove.
10733 (pbb_nb_dynamic_scattering_transform): Remove.
10734 (pbb_nb_local_vars): Remove.
10735 (pbb_iterator_dim): Remove.
10736 (pbb_parameter_dim): Remove.
10737 (psco_scattering_dim): Remove.
10738 (psct_scattering_dim): Remove.
10739 (psct_local_var_dim): Remove.
10740 (psco_iterator_dim): Remove.
10741 (psct_iterator_dim): Remove.
10742 (psco_parameter_dim): Remove.
10743 (psct_parameter_dim): Remove.
10744 (psct_dynamic_dim): Remove.
10745 (psct_static_dim): Remove.
10746 (psct_add_local_variable): Remove.
10747 (new_lst_loop): Remove.
10748 (new_lst_stmt): Remove.
10749 (free_lst): Remove.
10750 (copy_lst): Remove.
10751 (lst_add_loop_under_loop): Remove.
10752 (lst_depth): Remove.
10753 (lst_dewey_number): Remove.
10754 (lst_dewey_number_at_depth): Remove.
10755 (lst_pred): Remove.
10756 (lst_succ): Remove.
10757 (lst_find_pbb): Remove.
10758 (find_lst_loop): Remove.
10759 (lst_find_first_pbb): Remove.
10760 (lst_empty_p): Remove.
10761 (lst_find_last_pbb): Remove.
10762 (lst_contains_p): Remove.
10763 (lst_contains_pbb): Remove.
10764 (lst_create_nest): Remove.
10765 (lst_remove_from_sequence): Remove.
10766 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
10767 (lst_niter_for_loop): Remove.
10768 (pbb_update_scattering): Remove.
10769 (lst_update_scattering_under): Remove.
10770 (lst_update_scattering): Remove.
10771 (lst_insert_in_sequence): Remove.
10772 (lst_replace): Remove.
10773 (lst_substitute_3): Remove.
10774 (lst_distribute_lst): Remove.
10775 (lst_remove_all_before_including_pbb): Remove.
10776 (lst_remove_all_before_excluding_pbb): Remove.
10777 (struct scop): Remove original_schedule, transformed_schedule, and
10779 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
10780 (SCOP_SAVED_SCHEDULE): Remove.
10781 (poly_scattering_new): Remove.
10782 (poly_scattering_free): Remove.
10783 (poly_scattering_copy): Remove.
10784 (store_scattering_pbb): Remove.
10785 (store_lst_schedule): Remove.
10786 (restore_lst_schedule): Remove.
10787 (store_scattering): Remove.
10788 (restore_scattering_pbb): Remove.
10789 (restore_scattering): Remove.
10790 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
10791 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
10792 compute the scattering polyhedron dimension from the dimension of
10794 (build_scop_scattering): Update call to
10795 build_pbb_scattering_polyhedrons.
10796 (build_poly_scop): Remove call to scop_to_lst.
10797 * graphite.c (graphite_transform_loops): Add call to print_scop.
10798 (gate_graphite_transforms): Remove use of flag_loop_block,
10799 flag_loop_interchange, and flag_loop_strip_mine.
10801 2015-08-27 Sebastian Pop <s.pop@samsung.com>
10803 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
10804 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
10805 -floop-nest-optimize.
10806 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
10807 (generate_luj_sepclass): Remove.
10808 (generate_luj_options): Remove.
10809 (set_options): Remove opt_luj.
10810 (scop_to_isl_ast): Remove opt_luj.
10811 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
10812 flag_loop_unroll_jam.
10813 (getPrevectorMap_full): Remove.
10814 (getScheduleForBandList): Remove map_sepcl.
10815 (getScheduleMap): Same.
10816 (apply_schedule_map_to_scop): Remove sepcl.
10817 (optimize_isl): Same.
10818 * graphite-poly.c (apply_poly_transforms): Remove check for
10819 flag_loop_unroll_jam.
10820 (new_poly_bb): Remove map_sepclass.
10821 * graphite-poly.h (struct poly_bb): Same.
10822 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
10823 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
10824 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
10825 * toplev.c (process_options): Remove flag_loop_unroll_jam.
10827 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
10830 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
10831 (addqi3_cc): Ditto.
10832 (UNSPEC_ADD_CARRY): Remove.
10833 (addqi3_cconly_overflow): New expander.
10834 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
10835 Adjust for changed add<mode>3_carry.
10836 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
10837 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
10838 (<plusminus_insn><mode>3_carry): Remove expander.
10839 (*<plusminus_insn><mode>3_carry): Split insn pattern to
10840 add<mode>3_carry and sub<mode>3_carry.
10841 (plusminus_carry_mnemonic): Remove code attribute.
10842 (add<mode>3_carry): Canonicalize insn pattern.
10843 (*addsi3_carry_zext): Ditto.
10844 (sub<mode>3_carry): Ditto.
10845 (*subsi3_carry_zext): Ditto.
10846 (adcx<mode>3): Remove insn pattern.
10847 (addcarry<mode>): New insn pattern.
10848 (subborrow<mode>): Ditto.
10849 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
10850 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
10851 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
10852 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
10853 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
10854 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
10855 Rewrite expander to not clobber carry flag chains.
10857 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
10859 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
10860 instead of a rotate.
10862 2015-08-27 Marek Polacek <polacek@redhat.com>
10864 PR middle-end/67005
10865 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
10866 an entry into an irreducible region.
10868 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
10870 * configure: Regenerate.
10872 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
10874 PR tree-optimization/67283
10875 * tree-sra.c (type_consists_of_records_p): Rename to...
10876 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
10878 (completely_scalarize_record): Rename to...
10879 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
10880 (scalarize_elem): New.
10882 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
10884 * tree-sra.c (completely_scalarize_var): Rename to...
10885 (create_total_scalarization_access): ... Here. Drop call to
10886 completely_scalarize_record.
10888 (analyze_all_variable_accesses): Replace completely_scalarize_var
10889 with create_total_scalarization_access and completely_scalarize_record.
10891 2015-08-27 Alan Modra <amodra@gmail.com>
10894 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
10897 2015-08-27 Richard Biener <rguenther@suse.de>
10899 * passes.c (rest_of_decl_compilation): Guard early_global_decl
10900 call with !seen_error ().
10901 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
10902 early debug generation and finish...
10903 (symbol_table::compile): ... here to put it after a !seen_error ()
10906 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10908 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
10911 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10912 Andre Vieira <andre.simoesdiasvieira@arm.com>
10914 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
10915 (*cb<optab><mode>1): Likewise.
10916 (*tb<optab><mode>1): Likewise.
10917 (*cb<optab><mode>1): Likewise.
10918 * config/aarch64/iterators.md (inv_cb): New code attribute.
10919 (inv_tb): Likewise.
10920 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
10921 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
10923 2015-08-27 Richard Biener <rguenther@suse.de>
10925 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
10927 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
10929 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
10932 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
10934 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
10937 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
10939 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
10940 floating point in VSX registers.
10941 (rs6000_output_move_128bit): Always print out the set insn if we
10942 can't generate an appropriate 128-bit move.
10943 (rs6000_generate_compare): Add support for IEEE 128-bit floating
10944 point in VSX registers comparisons.
10945 (rs6000_expand_float128_convert): Likewise.
10947 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
10948 predicate for only GPR hard registers.
10950 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
10951 modes to iterators. Add new iterators for moving 128-bit values in
10952 scalar FPR registers and VSX registers.
10953 (FMOVE128): Likewise.
10954 (FMOVE128_FPR): Likewise.
10955 (FMOVE128_GPR): Likewise.
10956 (FMOVE128_VSX): Likewise.
10957 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
10960 (IBM128): Likewise.
10961 (TFIFKF): Likewise.
10962 (RELOAD): Add IEEE 128-bit floating point modes.
10963 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
10964 floating point in VSX registers modes.
10965 (signbit<mode>2, IBM128 iterator): Likewise.
10966 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
10967 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
10968 (negtf2): Likewise.
10969 (neg<mode>2, TFIFKF iterator): Likewise.
10970 (negtf2_internal): Likewise.
10971 (abstf2): Likewise.
10972 (abs<mode>2, TFIFKF iterator): Likewise.
10973 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
10974 VSX insn support for negate, absolute value, and negative absolute
10976 (ieee_128bit_vsx_neg<mode>2): Likewise.
10977 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
10978 (ieee_128bit_vsx_abs<mode>2): Likewise.
10979 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
10980 (ieee_128bit_vsx_nabs<mode>2): Likewise.
10981 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
10982 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
10983 floating point in VSX registers.
10984 (unpack<mode>_dm): Likewise.
10985 (unpack<mode>_nodm): Likewise.
10986 (pack<mode>): Likewise.
10987 (unpackv1ti): Likewise.
10988 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
10989 (packv1ti): Likewise.
10990 (pack<mode>, FMOVE128_VSX iterator): Likewise.
10991 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
10993 (extenddftf2_internal): Likewise.
10994 (trunctfdf2): Likewise.
10995 (trunctfdf2_internal2): Likewise.
10996 (fix_trunc_helper): Likewise.
10997 (fix_trunctfdi2"): Likewise.
10998 (floatditf2): Likewise.
10999 (floatuns<mode>tf2): Likewise.
11000 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
11001 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
11002 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
11003 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
11004 (float<SDI:mode><IFKF:mode>2): Likewise.
11005 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
11007 2015-08-26 Renlin Li <renlin.li@arm.com>
11009 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
11011 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
11012 Jiong Wang <jiong.wang@arm.com>
11014 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
11015 (tlsie_tiny_<mode>): New define_insn.
11016 (tlsie_tiny_sidi): Likewise.
11017 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
11019 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
11020 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
11022 (aarch64_expand_mov_immediate): Likewise.
11023 (aarch64_print_operand): Likewise.
11024 (arch64_classify_tls_symbol): Likewise.
11026 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11028 * config/arm/arm-arches.def: Replace single value flags with
11029 an initializer built from ARM_FSET_MAKE_CPU1.
11030 * config/arm/arm-cores.def: Likewise.
11031 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
11032 derivation from the ARM_CORE macro definition, use the given value
11034 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
11035 ARM_ARCH macro definition, use the given value instead.
11037 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11039 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
11041 (struct builtin_description): Replace field mask with field
11043 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
11044 (IWMMXT2_BUILTIN): Likewise.
11045 (IWMMXT2_BUILTIN2): Likewise.
11046 (FP_BUILTIN): Likewise.
11047 (CRC32_BUILTIN): Likewise.
11048 (CRYPTO_BUILTIN): Likewise.
11049 (iwmmx_mbuiltin): Likewise.
11050 (iwmmx2_mbuiltin): Likewise.
11051 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
11052 struct builtin_description.
11054 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11056 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
11057 (struct builtin_description): Change type of mask to unsigned
11059 * config/arm/arm-protos.h (insn_flags): Declare as type
11061 (tune_flags): Likewise.
11062 * config/arm/arm.c (feature_count): New.
11063 (insn_flags): Define as type arm_feature_set.
11064 (tune_flags): Likewise.
11065 (struct processors): Define field flags as type arm_feature_set.
11066 (all_cores): Update for change to struct processors.
11067 (all_architectures): Likewise.
11068 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
11070 (arm_option_override_internal): Likewise.
11071 (arm_option_override): Likewise.
11073 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
11074 Jiong Wang <jiong.wang@arm.com>
11076 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
11077 tls size for tiny, small, large memory model.
11078 (aarch64_load_symref_appropriately): Support new symbol types.
11079 (aarch64_expand_mov_immediate): Likewise.
11080 (aarch64_print_operand): Likewise.
11081 (aarch64_classify_tls_symbol): Likewise.
11082 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
11083 (aarch64_symbol_type): Likewise.
11084 * config/aarch64/aarch64.md (tlsle): Deleted.
11085 (tlsle12_<mode>): New define_insn.
11086 (tlsle24_<mode>): Likewise.
11087 (tlsle32_<mode>): Likewise.
11088 (tlsle48_<mode>): Likewise.
11089 * doc/sourcebuild.texi (AArch64-specific attributes): Document
11092 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11094 * config/arm/arm-protos.h (FL_NONE): New.
11096 (arm_feature_set): New.
11097 (ARM_FSET_MAKE): New.
11098 (ARM_FSET_MAKE_CPU1): New.
11099 (ARM_FSET_MAKE_CPU2): New.
11100 (ARM_FSET_CPU1): New.
11101 (ARM_FSET_CPU2): New.
11102 (ARM_FSET_EMPTY): New.
11103 (ARM_FSET_ANY): New.
11104 (ARM_FSET_HAS_CPU1): New.
11105 (ARM_FSET_HAS_CPU2): New.
11106 (ARM_FSET_HAS_CPU): New.
11107 (ARM_FSET_ADD_CPU1): New.
11108 (ARM_FSET_ADD_CPU2): New.
11109 (ARM_FSET_DEL_CPU1): New.
11110 (ARM_FSET_DEL_CPU2): New.
11111 (ARM_FSET_UNION): New.
11112 (ARM_FSET_INTER): New.
11113 (ARM_FSET_XOR): New.
11114 (ARM_FSET_EXCLUDE): New.
11115 (AFM_FSET_IS_EMPTY): New.
11116 (ARM_FSET_CPU_SUBSET): New.
11118 2015-08-26 Jiong Wang <jiong.wang@arm.com>
11120 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
11121 SYMBOL_TLSLE to SYMBOL_TLSLE24.
11122 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
11124 (aarch64_expand_mov_immediate): Likewise.
11125 (aarch64_print_operand): Likewise.
11126 (aarch64_classify_symbol): Likewise.
11128 2015-08-26 Jiong Wang <jiong.wang@arm.com>
11130 * config/aarch64/aarch64.opt (mtls-size): New entry.
11131 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
11132 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
11133 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
11135 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
11137 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
11138 ARM_CORE entry. Fix some white-space.
11139 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
11140 ARM_CORE definition.
11142 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11144 * fold-const.c (fold_binary_loc) : Move Optimize
11145 root(x)*root(y) as root(x*y) to match.pd.
11146 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
11147 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
11148 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
11149 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
11150 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
11151 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
11152 (mult (exps:s @0) (exps:s @1)) : New simplifier.
11153 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
11154 (rdiv @0 (exps:s @1)) : New simplifier.
11156 2015-08-25 Joseph Myers <joseph@codesourcery.com>
11158 * gcc.c (driver::finalize): Only assign to extra_specs if
11161 2015-08-25 Marek Polacek <polacek@redhat.com>
11163 PR middle-end/67330
11164 * varasm.c (declare_weak): Return after giving an error.
11166 2015-08-25 David Malcolm <dmalcolm@redhat.com>
11168 * gcc-main.c (main): Add params to driver ctor.
11169 * gcc.c (class env_manager): New.
11171 (env_manager::init): New.
11172 (env_manager::get): New.
11173 (env_manager::xput): New.
11174 (env_manager::restore): New.
11175 Poison getenv and putenv.
11176 (DEFAULT_TARGET_SYSTEM_ROOT): New.
11177 (target_system_root): Update initialization to use
11178 DEFAULT_TARGET_SYSTEM_ROOT.
11179 (struct spec_list): Add field "default_ptr".
11180 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
11181 (init_spec): Likewise.
11182 (set_spec): Clear field "default_ptr".
11183 (read_specs): Free "spec" and "buffer".
11184 (xputenv): Reimplement in terms of env_manager.
11185 (process_command): Replace ::getenv calls with calls to the
11186 env_manager singleton.
11187 (process_brace_body): Free string in three places.
11188 (driver::driver): New.
11189 (driver::~driver): New.
11190 (used_arg): Convert from a function to...
11191 (class used_arg_t): ...this class, and...
11192 (used_arg): ...this new global instance.
11193 (used_arg_t::finalize): New function.
11194 (getenv_spec_function): Add "const" to local "value". Replace
11195 ::getenv call with call to the env_manager singleton.
11196 (path_prefix_reset): New function.
11197 (driver::finalize): New function.
11198 * gcc.h (driver::driver): New.
11199 (driver::~driver): New.
11200 (driver::finalize): New.
11202 2015-08-25 Nathan Sidwell <nathan@acm.org>
11204 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
11205 target doesn't have one.
11207 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
11210 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
11212 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
11215 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
11216 a define_insn, remove second alternative.
11218 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
11219 Joseph Myers <joseph@codesourcery.com>
11221 * gcc.c (struct switchstr): Expand comment.
11223 2015-08-25 Nathan Sidwell <nathan@acm.org>
11225 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
11226 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
11228 2015-08-25 Richard Biener <rguenther@suse.de>
11230 PR middle-end/67306
11231 * genmatch.c (expr::gen_transform): Verify the result of
11232 builtin_decl_implicit.
11233 (dt_simplify::gen_1): Likewise.
11235 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
11237 * config/arm/constraints.md: Also list Cs and US ARM-specific
11238 constraints as used.
11240 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
11243 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
11245 (nonpic_symbol_mentioned_p): Likewise.
11246 (sh_delegitimize_address): Likewise.
11247 (sh_function_ok_for_sibcall): Take into account weak symbols.
11248 (sh_expand_sym_label2reg): New.
11249 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
11250 * config/sh/sh.md (UNSPEC_PCREL): New enum.
11251 (call_pcrel): Use sh_expand_sym_label2reg.
11252 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
11253 (symPCREL_label2reg) New expand.
11255 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
11257 * graphite-poly.c: Change type of region from void* to sese.
11258 * graphite-poly.h (struct scop): Changing the type of scop::region
11259 from void* to sese. Change accessor macro accordingly.
11260 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
11262 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
11264 * graphite-scop-detection.c (stmt_simple_for_scop_p):
11265 Constrain only on INTEGER_TYPE.
11267 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
11270 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
11271 -mefficient-unaligned-vsx on ISA 2.7.
11273 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
11274 option to a masked option.
11276 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
11277 logic for -mefficient-unaligned-vsx so that it is set via an arch
11278 ISA option, instead of being set if -mtune=power8 is set. Move
11279 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
11280 near other default option handling.
11282 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11284 * genflags.c (gen_macro): Delete.
11285 (gen_proto): Don't create GEN.*CALL.* macros.
11286 * gensupport.h (get_file_location): Declare.
11287 * gensupport.c (rtx_locs): New variable.
11288 (read_md_rtx): Record rtx locations.
11289 (get_file_location): New function.
11290 * target-insns.def (call, call_pop, call_value, call_value_pop)
11291 (sibcall, sibcall_value): New patterns.
11292 * gentarget-def.c (parse_argument): New function.
11293 (def_target_insn): Use it. Handle optional operands. Raise an
11294 error if an .md pattern has the wrong number of operands for the
11295 pattern name. Remove the names of unused operands from the prototype.
11296 * builtins.c (expand_builtin_apply): Use targetm functions
11297 instead of HAVE_call_value and GEN_CALL_VALUE.
11298 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
11299 and sibcall_value_pop.
11300 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
11302 * config/alpha/alpha.md (untyped_call): Likewise.
11303 * config/iq2000/iq2000.md (untyped_call): Likewise.
11304 * config/m68k/m68k.md (untyped_call): Likewise.
11305 * config/mips/mips.md (untyped_call): Likewise.
11306 * config/pa/pa.md (untyped_call): Likewise.
11307 * config/rs6000/rs6000.md (untyped_call): Likewise.
11308 * config/sparc/sparc.md (untyped_call): Likewise.
11309 * config/tilegx/tilegx.md (untyped_call): Likewise.
11310 * config/tilepro/tilepro.md (untyped_call): Likewise.
11311 * config/visium/visium.md (untyped_call): Likewise.
11312 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
11313 gen_call_value instead of GEN_CALL_VALUE.
11314 * config/arm/arm.md (untyped_call): Likewise.
11315 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
11318 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11320 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
11321 (have_cbranchcc4): New variable.
11322 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
11323 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
11324 (if_convert): Initialize have_cbranchcc4.
11326 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11328 * builtins.c (expand_cmpstrn): Rename to...
11329 (expand_cmpstrn_or_cmpmem): ...this.
11330 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
11331 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
11332 Remove mode argument.
11333 (expand_builtin): Update accordingly.
11335 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11337 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
11338 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
11339 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
11340 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
11341 Add predicates for operands 0 and 3.
11342 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
11344 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
11345 immediate_operand to nonmemory_operand.
11347 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11349 * df-scan.c (df_insn_info_init_fields): New function, split out
11351 (df_insn_create_insn_record): ...here.
11352 (df_insn_info_free_fields): New function, split out from...
11353 (df_insn_info_delete): ...here.
11354 (df_insn_rescan): Use the new functions instead of freeing and
11355 reallocating the df_insn_info.
11357 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11359 * doc/install.texi (Binaries): Remove links no longer valid.
11361 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
11363 * config/nvptx/mkoffload.c (process): Replace
11364 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
11366 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
11369 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
11371 2015-08-24 Renlin Li <renlin.li@arm.com>
11373 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
11374 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
11375 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
11376 * config/arm/constraints.md ("j"): Add check for high code.
11378 2015-08-24 Tom de Vries <tom@codesourcery.com>
11380 PR tree-optimization/65468
11381 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
11384 2015-08-24 Nathan Sidwell <nathan@acm.org>
11386 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
11387 change to nvptx_type_from_mode call. Use arg_promotion for both
11388 split and non-split args.
11390 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11392 * target-insns.def (movstr): New pattern.
11393 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
11394 (expand_movstr): Use targetm rather than HAVE_movstr/
11397 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
11399 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
11402 2015-08-24 Andrew Pinski <apinski@cavium.com>
11404 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
11405 AARCH64_EXTRA_TUNING_OPTION.
11406 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
11408 (aarch64_extra_tuning_flags): Base the shifted value on the index
11409 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
11410 * config/aarch64/aarch64.c: Remove the last argument to
11411 AARCH64_EXTRA_TUNING_OPTION.
11413 2015-08-23 Nathan Sidwell <nathan@acm.org>
11415 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
11417 (nvptx_declare_function_name): Insert formatting tabs for
11420 2015-08-23 Tom de Vries <tom@codesourcery.com>
11422 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
11423 parm_decl, rather than generating a dummy default def in cfun.
11424 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
11425 ssa_name from cfun and child_fn do not share a stmt as def stmt.
11426 (move_stmt_op): Handle PARM_DECl.
11427 (gather_ssa_name_hash_map_from): New function.
11428 (move_sese_region_to_fn): Add default defs for function params, and add
11429 them to vars_map. Release copied ssa names.
11430 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
11432 2015-08-23 Tom de Vries <tom@codesourcery.com>
11434 * doc/sourcebuild.texi: Rename vect_no_int_max with
11435 vect_no_int_min_max. Update description.
11437 2015-08-22 Andrew Pinski <apinski@cavium.com>
11439 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
11440 * config/aarch64/aarch64-protos.h
11441 (aarch64_fusion_pairs_index): New enum.
11442 (aarch64_fusion_pairs): Base the shifted value on the index instead
11443 Rewrite AARCH64_FUSE_ALL to be based on the end index.
11444 of the argument to AARCH64_FUSION_PAIR.
11445 * config/aarch64/aarch64.c: Remove the last argument to
11446 AARCH64_FUSION_PAIR.
11448 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
11450 * dominance.c (new_zero_array): Define.
11451 (dom_info): Redefine as class with proper encapsulation.
11452 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
11454 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
11455 allocations/deallocations. Pass function as parameter (instead of
11457 (dom_info::get_idom): Define accessor method.
11458 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
11459 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
11460 (calculate_dominance_info): Adjust to use dom_info class.
11461 (verify_dominators): Likewise.
11463 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
11465 * print-rtl.c (print_rtx): Check the correct range for
11466 flag_dump_unnumbered_links to behave as documented.
11468 PR rtl-optimization/67227
11469 PR rtl-optimization/64164
11470 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
11471 (nonoverlapping_memrefs_p): Test offsets and sizes when given
11472 identical gimple_reg exprs.
11474 2015-08-21 Nathan Sidwell <nathan@acm.org>
11476 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
11478 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
11479 crtl->stack_alignment_needed to determine alignment.
11480 (nvptx_get_drap_rtx): New.
11481 (TARGET_GET_DRAP_RTX): Override.
11482 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
11484 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11486 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
11488 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11490 * configure.ac: Remove uwin* cases.
11491 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
11492 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
11493 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
11494 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
11495 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
11496 i[34567]86-*-uwin*, powerpc-*-beos*.
11498 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
11500 * gencodes.c (gencodes): Print the comma for the preceding
11501 enum value rather than the current one. Use aliased enum values
11502 rather than #defines for compiled-out patterns.
11503 (main): Update accordingly. Replace LAST_INSN_CODE with
11505 * lra.c (insn_code_data): Update accordingly.
11506 (finish_insn_code_data_once, get_static_insn_data): Likewise.
11507 * recog.h (target_recog): Likewise.
11508 (preprocess_insn_constraints): Change parameter to unsigned int.
11509 * recog.c (preprocess_insn_constraints): Likewise.
11510 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
11511 * tree-vect-stmts.c (vectorizable_operation): Simplify.
11513 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
11515 PR rtl-optimization/61657
11516 * loop-iv.c (iv_number_of_iterations): Declare up and down as
11517 unsigned. Remove superflous uint64_t cast.
11519 2014-08-21 Felix Yang <felix.yang@huawei.com>
11520 Jiji Jiang <jiangjiji@huawei.com>
11522 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
11523 argument and get builtin function code directly from CALL.
11524 (gimple_stringop_fixed_value): Modified accordingly.
11525 (gimple_stringops_transform, gimple_stringops_values_to_profile):
11526 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
11528 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
11530 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
11532 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11534 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
11536 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
11537 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
11538 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
11539 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
11540 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
11541 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
11542 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
11543 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
11544 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
11545 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
11547 * match.pd (SIN ) : New Operator.
11548 (TAN) : New Operator.
11549 (mult (SQRT@1 @0) @1) : New simplifier.
11550 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
11551 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11552 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
11553 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
11554 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
11555 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
11556 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
11557 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
11558 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
11559 (rdiv @0 (POW:s @1 @2)) : New simplifier.
11561 2015-08-21 Bin Cheng <bin.cheng@arm.com>
11563 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
11564 loop if EXPR is simplified to const value.
11566 2015-08-21 Yury Gribov <y.gribov@samsung.com>
11568 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
11569 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
11571 2015-08-21 Richard Biener <rguenther@suse.de>
11573 PR middle-end/67285
11574 * gimple-fold.c (replace_stmt_with_simplification): Assert
11575 seq is empty when replacing a call with itself but different
11577 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
11578 a call require that it is const.
11580 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11582 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
11583 * builtins.c (get_object_alignment_2): Adjust.
11584 * varasm.c (align_variable): Likewise.
11585 (get_variable_align): Likewise.
11586 (build_constant_desc): Likewise.
11587 (force_const_mem): Likewise.
11588 * doc/tm.texi.in: Likewise.
11589 * doc/tm.texi: Regenerate.
11591 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11593 * genconfig.c (main): Always define HAVE_cc0.
11594 * recog.c (rest_of_handle_peephole2): Adjust.
11596 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11598 * reorg.c (relax_delay_slots): Don't use #if to check value of
11601 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11603 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
11604 * targhooks.c (default_have_conditional_execution): Adjust.
11606 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
11608 * rtl.h (rtvec_all_equal_p): Declare.
11609 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
11610 * rtl.c (rtvec_all_equal_p): New function.
11611 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
11612 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
11613 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
11614 * config/arm/arm.c (neon_vdup_constant): Likewise.
11615 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
11616 * config/tilegx/constraints.md (W, Y): Likewise.
11617 * config/tilepro/constraints.md (W, Y): Likewise.
11618 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
11619 (classify_immediate): Use unwrap_const_vec_duplicate.
11620 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
11621 (reg_or_v2s8bit_operand): Likewise.
11622 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
11623 (reg_or_v4s8bit_operand): Likewise.
11625 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
11627 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
11628 (vec_shasigma_be): New #define.
11629 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
11630 (VPMSUMH): Likewise.
11631 (VPMSUMW): Likewise.
11632 (VPMSUMD): Likewise.
11633 (VPMSUM): New BU_P8V_OVERLOAD_2.
11634 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
11635 entries for VEC_MADD and VEC_VPMSUM.
11637 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
11639 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
11640 Multiply argument avr_n_flash by 64 to match unit of "KiB".
11641 (avr_pgm_check_var_decl): Same.
11643 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
11645 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
11646 initialization of HFmode scalar type (float16_t) to...
11647 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
11650 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
11652 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
11653 having an -mfp16-format.
11655 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
11657 * config/i386/predicates.md (vector_all_ones_operand): Use
11658 CONSTM1_RTX to simplify definition.
11660 2015-08-20 Richard Biener <rguenther@suse.de>
11662 * toplev.c (compile_file): Remove loop calling late_global_decl
11664 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
11665 on decls we assembled.
11667 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
11669 * common/config/aarch64/aarch64-common.c
11670 (AARCH64_CPU_NAME_LENGTH): Delete.
11671 (aarch64_option_extension): New.
11672 (all_extensions): Likewise.
11673 (processor_name_to_arch): Likewise.
11674 (arch_to_arch_name): Likewise.
11676 (all_architectures): Likewise.
11677 (aarch64_get_extension_string_for_isa_flags): Likewise.
11678 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
11679 architecture names.
11680 * config/aarch64/aarch64-protos.h
11681 (aarch64_get_extension_string_for_isa_flags): New.
11682 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
11683 (aarch64_option_print): Get the string to print from
11684 aarch64_get_extension_string_for_isa_flags.
11685 (aarch64_declare_function_name): Likewise.
11686 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
11687 (MCPU_TO_MARCH_SPEC): This.
11688 (ASM_CPU_SPEC): Use it.
11689 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
11690 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
11691 (EXTRA_SPEC_FUNCTIONS): Use it.
11693 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
11695 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
11696 expansion when !ISA_HAS_LWL_LWR.
11697 (mips_block_move_straight): Update the size of elements copied to
11698 account for alignment when !ISA_HAS_LWL_LWR.
11699 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
11701 2015-08-19 Jiong Wang <jiong.wang@arm.com>
11703 * expr.c (expand_expr_real_2): Check gimple statement during
11704 LSHIFT_EXPR expand.
11706 2015-08-19 Magnus Granberg <zorry@gentoo.org>
11708 * common.opt (fstack-protector): Initialize to -1.
11709 (fstack-protector-all): Likewise.
11710 (fstack-protector-strong): Likewise.
11711 (fstack-protector-explicit): Likewise.
11712 * configure.ac: Add --enable-default-ssp.
11713 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
11714 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
11716 * doc/install.texi: Document --enable-default-ssp.
11717 * config.in: Regenerated.
11718 * configure: Likewise.
11720 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
11722 PR rtl-optimization/64164
11723 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
11724 (parm_in_stack_slot_p): ... this. Disregard mode, what
11725 matters is whether the parm will live in a pseudo or a stack
11727 (expand_one_ssa_partition): Deal with params without a default
11728 def. Disregard mode.
11729 * cfgexpand.h: Renamed function declaration.
11730 * tree-ssa-coalesce.c: Adjust.
11731 * function.c (split_complex_args): Allocate stack slot for
11732 unassigned parms before splitting.
11733 (parm_in_unassigned_mem_p): New. Use it instead of
11734 parm_maybe_byref_p throughout this file.
11735 (assign_parm_setup_block): Use it. Accept pseudos in the
11736 expand-assigned rtl.
11737 (assign_parm_setup_reg): Drop BLKmode requirement.
11738 (assign_parm_setup_stack): Allocate and fill in the address of
11739 unassigned MEM parms.
11741 2015-08-19 David Sherwood <david.sherwood@arm.com>
11743 * genmodes.c (emit_mode_unit_size_inline): New function.
11744 (emit_mode_unit_precision_inline): New function.
11745 (emit_insn_modes_h): Emit new #define. Emit new functions.
11746 (emit_mode_unit_size): New function.
11747 (emit_mode_unit_precision): New function.
11748 (emit_mode_adjustments): Add mode_unit_size adjustments.
11749 (emit_insn_modes_c): Emit new arrays.
11750 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
11751 use new inline methods.
11753 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11755 * config/aarch64/aarch64.c (bit_count): Delete prototype
11757 (aarch64_print_operand): Use popcount_hwi instead of the above.
11759 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11761 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
11764 2015-08-19 Marek Polacek <polacek@redhat.com>
11766 PR middle-end/67133
11767 * gimple-ssa-isolate-paths.c
11768 (insert_trap_and_remove_trailing_statements): Rename to ...
11769 (insert_trap): ... this. Don't remove trailing statements; split
11771 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
11773 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
11776 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
11777 conditionalize the whole on __GNUC__. Add fallback code
11778 depending neither on undefined nor implementation-defined behaviour.
11780 2015-08-19 Jiong Wang <jiong.wang@arm.com>
11782 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
11783 whitespaces with tab.
11785 2015-08-19 Florian Weimer <fweimer@redhat.com>
11787 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
11788 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
11789 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
11790 Move Name_Ids instantiation to the Prj.Proc package, to avoid
11793 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11795 * config/arm/arm.c (bounds_check): Use %wd print format
11796 for HOST_WIDE_INT arguments.
11798 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
11800 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
11801 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
11802 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
11803 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
11804 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
11805 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
11806 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
11807 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
11808 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
11811 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
11813 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
11814 function.c, graphite-scop-detection.c, haifa-sched.c,
11815 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
11816 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
11817 varasm.c: Remove typedefs of structs.
11819 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
11821 * config/rs6000/altivec.h (vec_adde): New define.
11822 (vec_addec): Likewise.
11823 (vec_double): Likewise.
11824 (vec_bperm): Likewise.
11825 (vec_gb): Likewise.
11826 * config/rs6000/rs6000-builtin.def (ADDE): New
11827 BU_ALTIVEC_OVERLOAD_3.
11829 (DOUBLE): New BU_VSX_OVERLOAD_1.
11830 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
11831 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
11832 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
11833 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
11834 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
11835 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
11836 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
11837 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
11838 and P8V_BUILTIN_VEC_VBPERMQ.
11840 2015-08-18 Jason Merrill <jason@redhat.com>
11842 * print-tree.c (print_node): Handle TREE_BINFO.
11844 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
11846 PR middle-end/36757
11847 * builtins.c (expand_builtin_signbit): Add asserts to make sure
11848 we can expand BUILT_IN_SIGNBIT inline.
11849 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
11850 * doc/extend.texi: Document the type-generic __builtin_signbit.
11852 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
11854 PR rtl-optimization/67218
11855 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
11856 (simplify_unary_operation_1): Use it.
11858 2015-08-18 Marek Polacek <polacek@redhat.com>
11860 PR middle-end/67222
11861 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
11862 if the call isn't valid.
11863 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
11864 gimple_call_builtin_p.
11865 (call_may_clobber_ref_p_1): Likewise.
11866 (stmt_kills_ref_p): Likewise.
11868 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
11870 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
11871 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
11872 (mips_hard_regno_scratch_ok): Likewise.
11873 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
11874 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
11876 2015-08-18 Bin Cheng <bin.cheng@arm.com>
11878 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
11879 (determine_value_range): Call refine_value_range_using_guard for
11880 each loop initial condition to improve value range.
11882 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
11884 * config/i386/i386.c: Remove include of fibheap.h.
11886 2015-08-17 Richard Biener <rguenther@suse.de>
11888 PR tree-optimization/67221
11889 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
11890 (sccvn_dom_walker::before_dom_children): Mark backedges of
11891 non-executable blocks as not executable.
11893 2015-08-17 David Sherwood <david.sherwood@arm.com>
11895 * config/arm/arm.c (neon_element_bits): Replace call to
11896 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
11897 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
11898 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
11899 (neon_vdup_lane<mode>): Likewise.
11900 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
11901 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
11902 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
11903 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
11904 * config/spu/spu.c (arith_immediate_p): Likewise.
11905 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
11906 * expr.c (expand_expr_real_2): Likewise.
11907 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
11908 * simplify-rtx.c (simplify_immed_subreg): Likewise.
11909 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
11910 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
11912 * fold-const.c (fold_binary_loc): Replace call to
11913 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
11914 GET_MODE_UNIT_PRECISION (m).
11916 2015-08-17 Mike Stump <mikestump@comcast.net>
11918 * config/arm/arm.c (arm_block_move_unaligned_straight):
11919 Emit normal move instead of unaligned load when source or destination
11920 are appropriately aligned.
11922 2015-08-17 Richard Biener <rguenther@suse.de>
11923 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11925 PR middle-end/16107
11926 * match.pd (div (coss (op @0) : New simplifier.
11928 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
11930 PR rtl-optimization/64164
11932 PR middle-end/66983
11933 PR rtl-optimization/67000
11934 PR middle-end/67034
11935 PR middle-end/67035
11936 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
11937 * tree-ssa-copyrename.c: Removed.
11938 * opts.c (default_options_table): Drop -ftree-copyrename. Add
11939 -ftree-coalesce-vars.
11940 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
11941 * common.opt (ftree-copyrename): Ignore.
11942 (ftree-coalesce-inlined-vars): Likewise.
11943 * doc/invoke.texi: Remove the ignored options above.
11944 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
11945 * tree-ssa-coalesce.h: ... here.
11946 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
11947 headers required by it.
11948 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
11949 across variables when flag_tree_coalesce_vars. Check register
11950 use and promoted modes to allow coalescing. Do not coalesce
11951 maybe-byref parms with SSA_NAMEs of other variables, or
11952 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
11953 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
11954 with its member functions to tree-ssa-coalesce.c.
11955 (var_map_base_init): Likewise. Renamed to
11956 compute_samebase_partition_bases.
11957 (partition_view_normal): Drop want_bases parameter.
11958 (partition_view_bitmap): Likewise.
11959 * tree-ssa-live.h: Adjust declarations.
11960 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
11961 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
11962 default defs at the entry point.
11963 (dump_part_var_map): New.
11964 (compute_optimized_partition_bases): New, called by...
11965 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
11966 of compute_samebase_partition_bases. Adjust.
11967 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
11968 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
11969 (ssa_default_def_partition): New.
11970 (get_rtl_for_parm_ssa_default_def): New.
11971 (align_local_variable, add_stack_var): Support anonymous SSA
11973 (defer_stack_allocation): Likewise. Declare earlier.
11974 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
11975 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
11976 Do no record deferred-allocation marker in
11977 SA.partition_to_pseudo.
11978 (expand_stack_vars): Adjust check for the marker in it.
11979 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
11980 redundant MEM attr setting.
11981 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
11983 (expand_one_stack_var): ... this. New wrapper to check and
11984 skip already expanded SSA partitions.
11985 (record_alignment_for_reg_var): New, factored out of...
11986 (expand_one_var): ... this.
11987 (expand_one_ssa_partition): New.
11988 (adjust_one_expanded_partition_var): New.
11989 (expand_one_register_var): Check and skip already expanded SSA
11991 (expand_used_vars): Don't create DECLs for anonymous SSA
11992 names. Expand all SSA partitions, then adjust all SSA names.
11993 (pass::execute): Replace the loops that set
11994 SA.partition_to_pseudo from partition leaders and cleared
11995 DECL_RTL for multi-location variables, and that which used to
11996 rename vars and set attrs, with one that clears DECL_RTL and
11997 checks that PARMs and RESULTs default_defs match DECL_RTL.
11998 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
11999 * emit-rtl.c: Include stor-layout.h.
12000 (set_reg_attrs_for_parm): Handle NULL decl.
12001 (set_reg_attrs_for_decl_rtl): Take mode from expression if
12003 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
12004 rather than its possibly-NULL DECL.
12005 * explow.c (promote_ssa_mode): New.
12006 * explow.h (promote_ssa_mode): Declare.
12007 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
12008 (read_complex_part): Export.
12009 * expr.h (read_complex_part): Declare.
12010 * cfgexpand.h (parm_maybe_byref_p): Declare.
12011 * function.c: Include cfgexpand.h.
12012 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
12013 (use_register_for_parm_decl): Wrapper for the above to
12014 special-case the result_ptr.
12015 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
12016 (split_complex_args): Take assign_parm_data_all argument.
12017 Pass it to rtl_for_parm. Set up rtl and context for split
12018 args. Reset complex parm before fetching its default decl
12020 (assign_parms_unsplit_complex): Use the default-def complex
12021 parm rtl if it matches the components.
12022 (assign_parms_augmented_arg_list): Adjust.
12023 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
12024 multiple locations. Recognize split complex args.
12025 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
12026 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
12027 (assign_parm_setup_block): Prefer SSA-assigned location, and
12028 fill in its address if the memory location of a maybe-byref
12029 parm was not assigned by cfgexpand.
12030 (assign_parm_setup_reg): Likewise. Adjust its mode as
12031 needed. Use entry_parm for equiv if stack_parm is NULL. Make
12032 sure passed_pointer parms don't need conversion. Copy address
12033 or value as needed.
12034 (assign_parm_setup_stack): Prefer SSA-assigned location.
12035 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
12036 rtl before testing for pointer bounds. Special-case result_ptr.
12037 (expand_function_start): Maybe reset DECL_RTL of result.
12038 Prefer SSA-assigned location for result and static chain.
12039 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
12040 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
12041 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
12042 anonymous SSA names. Use promote_ssa_mode.
12043 (get_temp_reg): Likewise.
12044 (remove_ssa_form): Adjust.
12045 * stor-layout.c (layout_decl): Don't set mem attributes of
12047 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
12048 and get its reg_usage for reg invalidation.
12049 (compute_bb_dataflow): Pass it insn.
12050 (emit_notes_in_bb): Likewise.
12052 2015-08-14 Marek Polacek <polacek@redhat.com>
12054 * tree-core.h (tree_base): Fix typo.
12056 2015-08-14 Marek Polacek <polacek@redhat.com>
12058 PR middle-end/67133
12059 * gimple.c (infer_nonnull_range_by_attribute): Check that the
12060 nonnull argument position is not outside function arguments.
12062 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
12065 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
12066 'lconst_atomic' with 'const_atomic'.
12067 (atomic_fetch_<optab><mode>): Likewise.
12068 (atomic_<optab>_fetch<mode>): Likewise.
12069 * config/aarch64/iterators.md (lconst-atomic): Move below
12071 (const_atomic): New.
12073 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
12074 Bernd Schmidt <bernds@codesourcery.com>
12076 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
12078 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
12079 (DWARF2_DEBUGGING_INFO): Don't define.
12080 * debug.h (dwarf2_lineno_debug_hooks): Declare.
12081 * toplev.c (process_options): Add a case for it.
12082 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
12083 (dwarf2out_init): Skip most initializations if
12084 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
12086 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
12087 DWARF2_LINENO_DEBUGGING_INFO.
12088 * opts.c (set_debug_level): Likewise.
12090 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
12092 * config/arm/types.md (is_neon_type): Add missing types.
12094 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
12096 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
12098 * config/i386/i386.c (PTA_SKYLAKE): New macros.
12099 (processor_alias_table): Add skylake description.
12100 (enum processor_model): Add skylake processor.
12101 (arch_names_table): Add skylake record.
12102 * doc/invoke.texi: Add skylake item.
12104 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
12106 * ira-int.h: Include recog.h.
12107 * ira-build.c: Don't include recog.h.
12108 * ira-color.c: Likewise.
12109 * ira-conflicts.c: Likewise.
12110 * ira-costs.c: Likewise.
12111 * ira-emit.c: Likewise.
12112 * ira-lives.c: Likewise.
12114 * sched-deps.c: Likewise.
12115 * sel-sched.c: Likewise.
12116 * target-globals.c: Likewise.
12118 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
12121 * reload1.c (elimination_costs_in_insn): Make it obvious to the
12122 compiler that the n_dups and n_operands loop bounds are invariant.
12124 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12126 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
12127 expressions in A and B.
12129 2015-08-13 Richard Biener <rguenther@suse.de>
12131 * tree.c (nonnull_arg_p): Move from ...
12132 * tree-vrp.c (nonnull_arg_p): ... here.
12133 * tree.h (nonnull_arg_p): Declare.
12134 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
12135 here, register ptr != 0 for nonnull_arg_p pointer arguments.
12136 Properly initialize static chain and by-reference result pointer.
12137 (run_scc_vn): Adjust.
12139 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
12141 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
12144 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
12146 * config/aarch64/aarch64-protos.h
12147 (aarch64_gen_atomic_cas): Declare.
12148 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
12149 Choose appropriate instruction pattern for the target.
12150 (aarch64_gen_atomic_cas): New.
12151 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
12152 (atomic_compare_and_swap<mode>_1): Rename to
12153 aarch64_compare_and_swap<mode>. Fix some indentation.
12154 (aarch64_compare_and_swap<mode>_lse): New.
12155 (aarch64_atomic_cas<mode>): New.
12157 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
12159 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
12162 2015-08-13 Richard Biener <rguenther@suse.de>
12164 PR tree-optimization/67191
12165 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
12166 assert we value-numbered last stmts operand because it can validly
12167 trigger for unreachable code.
12169 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12171 PR rtl-optimization/67103
12172 * ifcvt.c (noce_try_store_flag_constants): Move
12173 x = (-(test != 0) & (b - a)) + a transformation to...
12174 (noce_try_cmove): ... Here. Try it if normal conditional
12177 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
12179 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
12181 * config/mips/mips.md (processor): Remove w32 and w64.
12183 2015-08-13 Richard Biener <rguenther@suse.de>
12185 PR tree-optimization/66502
12186 PR tree-optimization/67167
12187 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
12188 backedge arguments.
12189 (vn_phi_lookup): Adjust.
12190 (vn_phi_insert): Likewise.
12191 (visit_phi): Prefer to value-number to another PHI node
12192 over value-numbering to a PHI argument.
12193 (init_scc_vn): Mark DFS back edges.
12195 2015-08-13 Richard Biener <rguenther@suse.de>
12197 * gimple.h (gcall::code_): New constant static member.
12198 (gcond::code_): Likewise.
12199 * gimple.c (gcall::code_): Define.
12200 (gcond::code_): Likewise.
12201 (is_a_helper <const gcond *>): Add.
12202 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
12203 and forward to a new gcall overload with less checking and a
12204 cheaper way to access the operand.
12205 (gimple_call_lhs_ptr): Likewise.
12206 (gimple_call_set_lhs): Likewise.
12207 (gimple_call_internal_p): Likewise.
12208 (gimple_call_with_bounds_p): Likewise.
12209 (gimple_call_set_with_bounds): Likewise.
12210 (gimple_call_internal_fn): Likewise.
12211 (gimple_call_set_ctrl_altering): Likewise.
12212 (gimple_call_ctrl_altering_p): Likewise.
12213 (gimple_call_fntype): Likewise.
12214 (gimple_call_fn): Likewise.
12215 (gimple_call_fn_ptr): Likewise.
12216 (gimple_call_set_fndecl): Likewise.
12217 (gimple_call_fndecl): Likewise.
12218 (gimple_call_chain): Likewise.
12219 (gimple_call_num_args): Likewise.
12220 (gimple_call_arg): Likewise.
12221 (gimple_call_arg_ptr): Likewise.
12222 (gimple_call_set_arg): Likewise.
12223 (gimple_call_noreturn_p): Likewise.
12224 (gimple_cond_code): Likewise.
12225 (gimple_cond_lhs): Likewise.
12226 (gimple_cond_rhs): Likewise.
12227 (gimple_has_lhs): Reduce checking.
12229 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
12231 PR middle-end/25529
12232 * match.pd (div (mult @0 @1) @1) : New simplifier.
12234 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
12237 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
12238 predicate to allow construction of vector constants using the
12239 VSLDOI vector shift instruction.
12241 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
12244 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
12245 the number of bytes to be shifted left and filled in with either
12246 all zero or all one bits.
12247 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
12249 (output_vec_const_move): On power8, generate XXLORC to generate
12250 a vector constant with all 1's. Do a split if we need to use a
12251 VSLDOI instruction.
12253 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
12254 properly test for the MSB.
12256 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
12257 vector constants that can be created with VSLDOI.
12259 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
12262 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12263 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12264 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12265 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12266 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12267 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12268 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12269 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12270 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12272 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
12274 * config/xtensa/constraints.md (define_constraint "Y"): New
12276 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
12277 * config/xtensa/linux.h (ASM_SPEC): Likewise.
12278 * config/xtensa/predicates.md (move_operand): Match constants
12279 and symbols in the presence of TARGET_AUTO_LITPOOLS.
12280 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
12281 immediate references to TLS data.
12282 (xtensa_emit_move_sequence): Don't force constants to memory in
12283 the presence of TARGET_AUTO_LITPOOLS.
12284 (print_operand): Add 'y' format, same as default, but capable of
12285 printing SF mode constants as well.
12286 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
12287 (movsf_internal): Add movi pattern that loads literal.
12288 (movsf, movdf): Don't force constants to memory in the presence
12289 of TARGET_AUTO_LITPOOLS.
12290 (movdf_internal): Add 'Y' constraint.
12291 * config/xtensa/xtensa.opt (mauto-litpools): New option.
12292 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
12294 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
12296 * config/arm/arm-fpus.def: Replace booleans with feature flags.
12298 * config/arm/arm.c (ARM_FPU): Update macro.
12299 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
12300 (TARGET_FP16): Likewise.
12301 (TARGET_CRYPTO): Likewise.
12302 (TARGET_NEON): Likewise.
12303 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
12306 2015-08-12 Tom de Vries <tom@codesourcery.com>
12310 * doc/install.texi: Remove --with_host_libstdcxx item. Update
12311 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
12312 accordingly. Mention default for --with-stage1-ldflags.
12314 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
12316 * config/arm/arm.h (arm_fpu_feature_set): New.
12317 (ARM_FPU_FSET_HAS): New.
12318 (FPU_FL_NONE): New.
12319 (FPU_FL_NEON): New.
12320 (FPU_FL_FP16): New.
12321 (FPU_FL_CRYPTO): New.
12323 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12325 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
12326 after -mcmodel=large -fPIC sorry.
12328 2015-08-12 Richard Biener <rguenther@suse.de>
12330 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
12331 comparison operand order and commutative ternary op operand order.
12332 (sccvn_dom_walker::cond_stack): New state to track temporary
12334 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
12336 (sccvn_dom_walker::record_cond): Add a single temporary conditional
12338 (sccvn_dom_walker::record_conds): Add a temporary conditional
12339 expressions and all related expressions also true/false.
12340 (sccvn_dom_walker::before_dom_children): Record temporary
12341 expressions based on the controlling condition of a single
12342 predecessor. When trying to simplify a conditional statement
12343 lookup expressions we might have inserted earlier.
12345 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
12348 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
12349 to ARM core registers.
12351 2015-08-12 Nathan Sidwell <nathan@acm.org>
12353 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
12354 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
12356 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
12358 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
12359 line with comments.
12360 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
12362 2015-08-12 Richard Biener <rguenther@suse.de>
12364 * gimple.h (remove_pointer): New trait.
12365 (GIMPLE_CHECK2): New inline template function.
12366 (gassign::code_): New constant static member.
12367 (is_a_helper<const gassign *>): Add.
12368 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
12369 and forward to a new gassign overload with less checking and a
12370 cheaper way to access the operand.
12371 (gimple_assign_lhs_ptr): Likewise.
12372 (gimple_assign_set_lhs): Likewise.
12373 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
12375 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
12377 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
12379 (gimple_assign_rhs_code): Likewise.
12380 * gimple.c (gassign::code_): Define.
12382 2015-08-12 Richard Biener <rguenther@suse.de>
12384 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
12385 Eliminate edges marked as not executable by SCCVN.
12386 * tree-ssa-sccvn.c: Include gimple-iterator.h.
12387 (cond_dom_walker): Rename to sccvn_dom_walker.
12388 (sccvn_dom_walker::before_dom_children): Value-number defs
12390 (run_scc_vn): Remove loop value-numbering all SSA names.
12391 Drop not visited SSA names to varying.
12393 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
12395 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
12396 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
12397 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
12398 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
12399 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
12400 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
12401 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
12402 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
12403 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
12405 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
12408 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
12409 to enum feature_priority and feature_list.
12410 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
12411 and isa_names_table.
12413 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
12415 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
12416 vect_induction_def.
12418 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
12422 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
12423 account when deciding what was the command-line status.
12425 2015-08-11 Nathan Sidwell <nathan@acm.org>
12427 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
12429 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
12430 we're not the only contributor to target phi.
12432 2015-08-11 Jiong Wang <jiong.wang@arm.com>
12434 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
12437 2015-08-11 Tom de Vries <tom@codesourcery.com>
12439 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
12441 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
12443 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
12445 * config/i386/i386.md (cpu): Remove knl.
12447 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12450 PR middle-end/66332
12451 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
12452 open-coded sequence.
12453 * omp-low.c (oacc_process_reduction_data): Remove handline of
12454 GOMP_DEVICE_HOST_NONSHM.
12456 * lto-streamer-in.c (lto_input_mode_table): Adjust to
12457 GET_MODE_INNER changes.
12459 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
12460 Ilya Verbin <ilya.verbin@intel.com>
12462 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
12464 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
12466 * doc/options.texi (EnabledBy): Document that the argument must be
12468 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
12469 Not enabled by -Wall.
12470 * optc-gen.awk: Give nicer error messages. Detect if the argument
12471 of EnabledBy is not a Common option.
12472 * common.opt (Wnull-dereference): Not enabled by -Wall.
12473 * opt-functions.awk (lang_enabled_by): Nicer error messages.
12475 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
12477 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
12478 model == 0x4f as Broadwell.
12480 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
12482 PR rtl-optimization/67028
12483 * combine.c (simplify_comparison): Fix comment. Rearrange code.
12484 Add test to see if a const_int fits in the new mode.
12486 2015-08-07 DJ Delorie <dj@redhat.com>
12488 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
12490 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
12492 PR rtl-optimization/67029
12493 * ira-color.c: Include "recog.h" before including "ira-int.h".
12494 * target-globals.c: Likewise.
12495 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
12496 adds an alternative_mask argument and use it instead of
12497 preferred_alternatives.
12498 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
12499 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
12500 * sched-deps.c: Include "ira-int.h" after including "ira.h".
12501 (sched_analyze_insn): Update call to
12502 ira_implicitly_set_insn_hard_regs.
12503 * sel-sched.c: Include "ira-int.h" after including "ira.h".
12504 (implicit_clobber_conflict_p): Update call to
12505 ira_implicitly_set_insn_hard_regs.
12507 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
12509 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
12511 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
12514 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
12515 currently_expanding_to_rtl is set.
12517 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
12519 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
12520 * configure: Regenerate.
12522 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12523 Jiong Wang <jiong.wang@arm.com>
12525 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12526 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12527 (REG_CLASS_NAMES): Likewise.
12528 (REG_CLASS_CONTENTS): Likewise.
12529 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12530 (aarch64_register_move_cost): Likewise.
12531 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12533 * config/aarch64/constraints.md (Uc0): New constraint.
12535 2015-08-06 Jiong Wang <jiong.wang@arm.com>
12537 * config/aarch64/constraints.md (Usf): Add the test of
12538 aarch64_is_noplt_call_p.
12540 2015-08-06 Jiong Wang <jiong.wang@arm.com>
12542 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
12544 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
12545 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
12546 (call_symbol): Likewise.
12548 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
12550 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
12551 for vectorizing multiplication patterns.
12552 * tree-vectorizer.h: Adjust the number of patterns.
12554 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
12556 * config/i386/sse.md (*vec_concatv2df): Declare added
12557 alternatives as sselog type.
12559 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12561 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
12564 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12566 * config/s390/s390.c (s390_expand_tbegin): Expand either
12567 tbegin_1_z13 or tbegin_1 depending on VX flag.
12568 * config/s390/s390.md ("tbegin_1_z13"): New expander.
12570 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12572 * config/s390/s390.opt: Clarify description for -mzvector
12573 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
12576 2015-08-06 Richard Biener <rguenther@suse.de>
12578 * gimple.h (gimple_call_set_fn): Access op member directly.
12579 (gimple_call_chain_ptr): Likewise.
12580 (gimple_call_set_chain): Likewise.
12581 (gimple_cond_lhs_ptr): Likewise.
12582 (gimple_cond_set_lhs): Likewise.
12583 (gimple_cond_rhs_ptr): Likewise.
12584 (gimple_cond_set_rhs): Likewise.
12585 (gimple_cond_true_label): Likewise.
12586 (gimple_cond_set_true_label): Likewise.
12587 (gimple_cond_set_false_label): Likewise.
12588 (gimple_cond_false_label): Likewise.
12589 (gimple_label_label): Likewise.
12590 (gimple_label_set_label): Likewise.
12591 (gimple_goto_set_dest): Likewise.
12592 (gimple_asm_input_op): Likewise.
12593 (gimple_asm_input_op_ptr): Likewise.
12594 (gimple_asm_set_input_op): Likewise.
12595 (gimple_asm_output_op): Likewise.
12596 (gimple_asm_output_op_ptr): Likewise.
12597 (gimple_asm_set_output_op): Likewise.
12598 (gimple_asm_clobber_op): Likewise.
12599 (gimple_asm_set_clobber_op): Likewise.
12600 (gimple_asm_label_op): Likewise.
12601 (gimple_asm_set_label_op): Likewise.
12602 (gimple_switch_index): Likewise.
12603 (gimple_switch_index_ptr): Likewise.
12604 (gimple_return_retval_ptr): Likewise.
12605 (gimple_return_retval): Likewise.
12606 (gimple_return_set_retval): Likewise.
12607 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
12608 (gimple_switch_label): Likewise.
12609 (gimple_switch_set_label): Likewise.
12611 2015-08-06 Richard Biener <rguenther@suse.de>
12613 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
12614 bool comparison canonicalization and restrict to integers.
12616 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
12618 * coretypes.h (enum symbol_visibility): Relocate here.
12619 * flag-types.h (enum symbol_visibility): Remove.
12620 * tree-core.h (enum symbol_visibility): Remove.
12622 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
12625 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
12626 for no_split_stack function attribute along with
12628 (rs6000_expand_split_stack_prologue): Likewise.
12630 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
12631 Jeff Law <law@redhat.com>
12634 * doc/invoke.texi (Wnull-dereference): New.
12635 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
12636 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
12637 Warn for potential NULL dereferences.
12638 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
12639 * ubsan.c (instrument_nonnull_arg): Call
12640 infer_nonnull_range_by_attribute.
12641 (instrument_nonnull_return): Likewise.
12642 * common.opt (Wnull-dereference); New.
12643 * gimple.c (infer_nonnull_range): Remove bool arguments.
12644 (infer_nonnull_range_by_dereference): New.
12645 (infer_nonnull_range_by_attribute): New.
12646 * gimple.h: Update declarations.
12648 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12650 * gensupport.c (sequence_num): Replace with...
12651 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
12652 ...these new variables.
12653 (init_rtx_reader_args_cb): Update accordingly.
12654 (get_num_code_insns): Likewise.
12655 (read_md_rtx): Rework to use a while loop and get_c_test.
12656 Use the new counters. Remove redundant DEFINE_SUBST case.
12657 * genoutput.c (gen_split): Delete.
12658 (main): Don't call it.
12660 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12662 * gensupport.h (get_c_test): Declare.
12663 * gensupport.c (get_c_test): New function.
12664 * genconditions.c (main): Use it.
12665 * genrecog.c (validate_pattern): Likewise.
12666 (match_pattern_1): Likewise. Remove c_test argument.
12667 (match_pattern): Update accordingly and remove c_test argument.
12668 (main): Update accordingly.
12670 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12672 * gensupport.h (get_num_insn_codes): Declare.
12673 * gensupport.c (get_num_insn_codes): New function.
12674 * genattrtab.c (optimize_attrs): Rename max_insn_code to
12676 (main): Likewise. Use get_num_insn_codes.
12677 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
12679 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12681 PR middle-end/66311
12682 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
12683 is zero- rather than sign-extended.
12685 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
12687 * target-insns.def (can_extend): Delete.
12689 2015-08-05 Richard Biener <rguenther@suse.de>
12691 PR tree-optimization/67121
12692 * tree-if-conv.c (combine_blocks): Clear range-info produced
12693 by stmts no longer executed conditionally.
12695 2015-08-05 Nick Clifton <nickc@redhat.com>
12697 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
12698 to allow identical far pointers to remain.
12700 2015-08-05 Richard Biener <rguenther@suse.de>
12702 PR middle-end/67120
12703 * match.pd: Compare address bases with == if they are decls
12704 or SSA names, not operand_equal_p. Otherwise fail.
12706 2015-08-05 Richard Biener <rguenther@suse.de>
12708 PR tree-optimization/67055
12709 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
12712 * g++.dg/torture/pr67055.C: New testcase.
12714 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
12716 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
12718 (define_attr "enabled"): Handle avx521vl and noavx512vl.
12719 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
12720 AVX-512 alternative out of SSE.
12721 (define_insn "*vec_concatv2df"): Ditto.
12723 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
12725 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
12726 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
12727 CODE_FOR_avx_ptestv4di.
12728 * config/i386/sse.md (define_mode_iterator V_AVX): New.
12729 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
12730 (define_insn "avx_ptest256"): Merge this ...
12731 (define_insn "sse4_1_ptest"): And this ...
12732 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
12734 2015-08-05 Richard Biener <rguenther@suse.de>
12736 PR tree-optimization/67109
12737 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
12738 against too big groups. Print whether this is a load or store
12739 group. Rename from ...
12740 (vect_analyze_group_access): ... this which is now a wrapper
12741 dissolving an invalid group.
12742 (vect_analyze_data_ref_accesses): Print whether this is a load
12745 2015-08-05 Richard Biener <rguenther@suse.de>
12747 PR middle-end/67107
12748 * match.pd: Guard const_binop result checking against NULL_TREE
12751 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
12753 * cse.c (cse_insn): Restoring old behaviour for src_eqv
12754 when dest and value in the REG_EQUAL are same and dest
12755 is STRICT_LOW_PART.
12757 2015-08-04 Anatoly Sokolov <aesok@post.ru>
12759 * config/moxie/moxie.h (PRINT_OPERAND,
12760 PRINT_OPERAND_ADDRESS): Remove macros.
12761 * config/moxie/moxie-protos.h (moxie_print_operand,
12762 moxie_print_operand_address): Remove declaration.
12763 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
12764 TARGET_PRINT_OPERAND_ADDRESS): Define.
12765 (moxie_print_operand, moxie_print_operand_address): Make static.
12767 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
12770 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
12771 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
12773 2015-08-04 Richard Biener <rguenther@suse.de>
12775 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
12777 (dt_operand::gen_gimple_expr): Adjust.
12779 2015-08-04 Richard Biener <rguenther@suse.de>
12781 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
12782 bool compares on RHS.
12783 * match.pd: Add X ==/!= !X is false/true pattern.
12785 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
12787 * config/aarch64/aarch64.c: Change inner loop statement cost
12788 to be consistent with other targets.
12790 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
12792 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
12795 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
12797 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
12798 (machine_function): Remove pseudos field.
12800 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12802 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12803 Exit early and use target_option_current_node if processing current
12806 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12808 * doc/extend.texi (AArch64 Function Attributes): New node.
12809 (AArch64 Pragmas): Likewise.
12811 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12813 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
12814 Initialize simd builtins if TARGET_SIMD.
12815 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
12816 Make sure that the builtins are initialized only once no matter how
12817 many times the function is called.
12818 (aarch64_init_builtins): Unconditionally initialize crc builtins.
12819 (aarch64_relayout_simd_param): New function.
12820 (aarch64_simd_expand_args): Use above during argument expansion.
12821 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
12822 simd builtins if TARGET_SIMD.
12823 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
12825 (aarch64_relayout_simd_types): Likewise.
12827 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12829 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
12830 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
12831 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
12832 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12834 (aarch64_reset_previous_fndecl): New function.
12835 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
12837 * config/aarch64/aarch64-c.c: New file.
12838 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
12839 Push and pop options at beginning and end. Remove ifdef
12840 __ARM_FEATURE_CRC32.
12841 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
12842 Add pragma +nothing+simd and +nothing+crypto where appropriate.
12843 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
12844 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
12846 (aarch64_register_pragmas): Likewise.
12847 (aarch64_reset_previous_fndecl): Likewise.
12848 (aarch64_process_target_attr): Likewise.
12849 (aarch64_override_options_internal): Likewise.
12851 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12853 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
12855 (aarch64_can_inline_p): Likewise.
12856 (TARGET_CAN_INLINE_P): Define.
12858 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12860 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
12861 Remove static. Handle OPT_mgeneral_regs_only,
12862 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
12863 OPT_momit_leaf_frame_pointer.
12864 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
12865 (aarch64_attr_opt_type): New enum.
12866 (aarch64_attribute_info): New struct.
12867 (aarch64_handle_attr_arch): New function.
12868 (aarch64_handle_attr_cpu): Likewise.
12869 (aarch64_handle_attr_tune): Likewise.
12870 (aarch64_handle_attr_isa_flags): Likewise.
12871 (aarch64_attributes): New table.
12872 (aarch64_process_one_target_attr): New function.
12873 (num_occurences_in_str): Likewise.
12874 (aarch64_process_target_attr): Likewise.
12875 (aarch64_option_valid_attribute_p): Likewise.
12876 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
12877 * config/aarch64/aarch64-protos.h: Include input.h
12878 (aarch64_handle_option): Declare prototype.
12880 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12882 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
12883 * config/aarch64/aarch64.c: Include target-globals.h
12884 (aarch64_previous_fndecl): New variable.
12885 (aarch64_set_current_function): New function.
12886 (TARGET_SET_CURRENT_FUNCTION): Define.
12888 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12890 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
12891 (explicit_arch): Likewise.
12892 (x_aarch64_isa_flags): Likewise.
12893 (mgeneral-regs-only): Mark as Save.
12894 (mfix-cortex-a53-835769): Likewise.
12895 (mcmodel=): Likewise.
12896 (mstrict-align): Likewise.
12897 (momit-leaf-frame-pointer): Likewise.
12898 (mtls-dialect): Likewise.
12899 (master=): Likewise.
12900 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
12901 (aarch64_isa_flags): Remove extern declaration.
12902 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
12903 to indicate success or failure.
12904 (aarch64_validate_march): Likewise.
12905 (aarch64_validate_mtune): Likewise.
12906 (aarch64_isa_flags): Delete.
12907 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
12908 instead of aarch64_isa_flags.
12909 (aarch64_get_tune_cpu): New function.
12910 (aarch64_get_arch): Likewise.
12911 (aarch64_override_options): Use above and set up explicit_tune_core
12913 (aarch64_print_extension): Move earlier in file. Add isa_flags
12914 argument and use that instead of the global aarch64_isa_flags.
12915 (aarch64_option_save): New function.
12916 (aarch64_option_restore): Likewise.
12917 (aarch64_option_print): Likewise.
12918 (aarch64_declare_function_name): Likewise.
12919 (aarch64_start_file): Delete.
12920 (TARGET_ASM_FILE_START): Do not define.
12921 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
12922 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
12925 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12927 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
12928 flag_omit_leaf_frame_pointer to 2.
12930 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12932 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
12934 (TARGET_FIX_ERR_A53_835769): New macro.
12935 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
12936 handling of opts->x_aarch64_fix_a53_err835769.
12937 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
12938 than aarch64_fix_a53_err835769.
12939 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
12940 * config/aarch64/aarch64-linux.h: Likewise.
12942 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
12944 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
12945 ix86_expand_int_movcc as boolean.
12947 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12949 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
12950 (aarch64_cpu_string): Likewise.
12951 (aarch64_tune_string): Likewise.
12952 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
12953 (aarch64_parse_extension): Return aarch64_parse_opt_result.
12954 Add extra argument to put result into.
12955 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
12956 (aarch64_parse_cpu): Add arguments to put results into. Return
12957 aarch64_parse_opt_result.
12958 (aarch64_parse_tune): Likewise.
12959 (aarch64_override_options_after_change_1): New function.
12960 (aarch64_override_options_internal): New function.
12961 (aarch64_validate_mcpu): Likewise.
12962 (aarch64_validate_march): Likewise.
12963 (aarch64_validate_mtune): Likewise.
12964 (aarch64_override_options): Update to reflect above changes.
12965 Move some logic into aarch64_override_options_internal.
12966 Initialize target_option_default_node and target_option_current_node.
12967 (aarch64_override_options_after_change): Move logic into
12968 aarch64_override_options_after_change_1 and call it with global_options.
12969 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
12970 flag values from that.
12972 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12974 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
12975 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
12976 * config/aarch64/aarch64.c (struct processor): Add arch field.
12977 (all_architectures): Handle above, move above all_cores.
12978 (all_cores): Handle above.
12979 (aarch64_parse_arch): Handle above changes.
12980 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
12981 above. Update comments.
12982 (armv8.1-a): Likewise.
12983 * config/aarch64/aarch64-cores.def: Update according to above.
12984 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
12985 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
12986 aarch64_arch_driver_info.
12988 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12990 * config/aarch64/aarch64.c (struct processor): Add ident field.
12991 Rename core sched_core.
12992 (all_cores): Handle above changes.
12993 (all_architectures): Likewise.
12994 (aarch64_parse_arch): Likewise.
12995 (aarch64_override_options): Likewise.
12997 2015-08-04 Richard Biener <rguenther@suse.de>
12999 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
13000 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
13001 comparisons embedded in [VEC_]COND_EXPRs.
13003 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
13005 * tree-if-conv.c: Fix various typos in comments.
13006 * tree-vect-stmts.c: Likewise.
13008 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
13010 PR tree-optimization/67043
13011 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
13012 preheader after hoisting invariant in it.
13013 (find_defs): Force recomputation of all luids.
13015 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
13017 * config/rs6000/htm.md (tabort.): Restrict the source operand to
13018 using a base register.
13020 2015-08-03 David Malcolm <dmalcolm@redhat.com>
13022 * main.c (main): Pass in NULL for toplev's external_timer.
13023 * timevar.c: Include coretypes.h.
13024 (class timer::named_items): New.
13025 (timer::named_items::named_items): New.
13026 (timer::named_items::~named_items): New.
13027 (timer::named_items::push): New.
13028 (timer::named_items::pop): New.
13029 (timer::named_items::print): New.
13030 (timer::timer): Initialize field "m_jit_client_items".
13031 (timer::~timer): New.
13032 (timer::push): Move bulk of implementation to...
13033 (timer::push_internal): ...here. New function.
13034 (timer::pop): Move bulk of implementation to...
13035 (timer::pop_internal): ...here. New function.
13036 (timer::push_client_item): New.
13037 (timer::pop_client_item): New.
13038 (timer::print_row): New function, taken from timer::print.
13039 (timer::print): Print "GCC items" header if we also have client
13040 items. Move row-printing to timer::print_row. Print any client
13042 (timer::get_topmost_item_name): New method.
13043 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
13044 (TV_JIT_CLIENT_CODE): New.
13045 * timevar.h (timer::push_client_item): New declaration.
13046 (timer::pop_client_item): New declaration.
13047 (timer::get_topmost_item_name): New method.
13048 (timer::push_internal): New declaration.
13049 (timer::pop_internal): New declaration.
13050 (timer::print_row): New declaration.
13051 (timer::named_items): New declaration.
13052 (timer::m_jit_client_items): New field.
13053 (timer): Add friend class named_items.
13054 (auto_timevar::auto_timevar): Add timer param.
13055 (auto_timevar::~auto_timevar): Use field "m_timer".
13056 (auto_timevar::m_timer): New field.
13057 * toplev.c (initialize_rtl): Add g_timer as param when
13058 constructing auto_timevar instance.
13059 (toplev::toplev): Add "external_timer" param, and use it to
13060 initialize the "g_timer" global if non-NULL.
13061 (toplev::~toplev): If this created "g_timer", delete it.
13062 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
13063 with "external_timer" timer *.
13065 2015-08-03 Alexander Basov <coohpt@gmail.com>
13067 PR middle-end/64744
13068 PR middle-end/48470
13069 PR middle-end/43404
13070 * cfgexpand.c (expand_one_var): Add check if stack is going to
13071 be used in naked function.
13072 * expr.c (expand_expr_addr_expr_1): Remove excess checking
13073 whether expression should not reside in MEM.
13074 * function.c (use_register_for_decl): Do not use registers for
13075 non-register things (volatile, float, BLKMode) in naked functions.
13077 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
13080 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
13081 Adjust splits to match new pattern.
13083 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
13085 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
13088 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
13089 point in VSX registers.
13091 * config/rs6000/constraints.md (wb constraint): Document unused
13093 (we constraint): Likewise.
13094 (wo constraint): Likewise.
13095 (wp constraint): New constraint for IEEE 128-bit floating point in
13097 (wq constraint): Likewise.
13099 * config/rs6000/predicates.md (easy_fp_constant): Add support for
13100 IEEE 128-bit floating point in VSX registers.
13101 (easy_scalar_constant): Likewise.
13103 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
13104 constraints (wp, wq) for IEEE 128-bit floating point in VSX
13106 (rs6000_init_hard_regno_mode_ok): Likewise.
13108 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
13109 floating point in VSX registers.
13112 (VSX_M2): Likewise.
13118 (vsx_le_permute_<mode>): Add support to properly swap bytes for
13119 IEEE 128-bit floating point in VSX registers on little endian.
13120 (vsx_le_undo_permute_<mode>): Likewise.
13121 (vsx_le_perm_load_<mode>): Likewise.
13122 (vsx_le_perm_store_<mode>): Likewise.
13123 (splitters for IEEE 128-bit fp moves): Likewise.
13125 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
13128 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
13129 floating point in VSX registers.
13132 * doc/md.text (Machine Constraints): Document wp and wq
13133 constraints on PowerPC.
13135 2015-08-03 Jeff Law <law@redhat.com>
13137 PR middle-end/66314
13138 PR gcov-profile/66899
13139 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
13140 iterate over the jump threading paths when an element in the
13141 jump threading paths array is eliminated.
13143 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
13145 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
13147 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
13149 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
13150 is_use_properly_guarded the variable def_preds. Free its
13151 contents before returning.
13152 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
13153 (is_use_properly_guarded): Replace local variable def_preds with
13154 a parameter. Adjust accordingly. Only update *def_preds if it's
13157 2015-08-03 Richard Biener <rguenther@suse.de>
13159 * genmatch.c (simplify::for_subst_vec): New member.
13160 (binary_ok): New helper for for lowering.
13161 (lower_for): Delay substituting operators into result expressions
13162 if we can merge the results eventually again.
13163 (capture_info::walk_result): Adjust for user_id appearing as
13164 result expression operator.
13165 (expr::gen_transform): Likewise.
13166 (dt_simplify::gen_1): Likewise.
13167 (dt_simplify::gen): Pass not substituted operators to tail
13168 functions or initialize local variable with it.
13169 (decision_tree::gen): Adjust function signature.
13170 * match.pd: Fix tests against global code and add default
13171 cases to switch stmts.
13173 2015-08-03 Richard Biener <rguenther@suse.de>
13175 * genmatch.c (dt_simplify::gen): Create captures array
13176 with an initializer.
13178 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13180 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
13181 the host compiler is affected by placement new aliasing bug.
13182 * configure: Regenerate.
13183 * Makefile.in (ALIASING_FLAGS): New variable.
13184 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
13186 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
13189 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
13190 (negmulsf3_vfp): Likewise.
13191 (muldf3negdf_vfp): Disable for -frounding-math.
13192 (mulsf3negsf_vfp): Likewise.
13193 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
13194 fix MULT cost with -frounding-math.
13196 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13198 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
13199 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
13200 explicit. Prefer to add the flag whenever possible.
13201 (noce_process_if_block): Try noce_try_store_flag_constants before
13204 2015-08-03 Richard Biener <rguenther@suse.de>
13206 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
13207 New hash-map to record equivalent transforms.
13208 (dt_node::analyze): Populate the equivalent transforms hash-map.
13209 (dt_simplify::info): Add reference to hash-map entry.
13210 (dt_simplify::gen): If we have split out a function for the
13211 transform, generate a call to it.
13212 (sinfo_hashmap_traits::hash): New function.
13213 (compare_op): New helper function for ...
13214 (sinfo_hashmap_traits::equal_keys): ... this new function.
13215 (decision_tree::gen): Split out common equivalent transforms
13218 2015-08-03 Richard Biener <rguenther@suse.de>
13220 * gimple-fold.c (fold_gimple_assign): Remove folding of
13221 the comparison in COND_EXPRs.
13223 2015-08-03 Richard Biener <rguenther@suse.de>
13225 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
13226 on the rhs of assignments first simplify the embedded
13229 2015-08-03 Richard Biener <rguenther@suse.de>
13231 PR tree-optimization/66917
13232 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
13234 (DR_VECT_AUX): New macro.
13235 (set_dr_misalignment): Adjust.
13236 (dr_misalignment): Likewise.
13237 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
13238 Compute whether the base is at least element aligned.
13239 * tree-vect-stmts.c (ensure_base_align): Adjust.
13240 (vectorizable_store): If the base is not element aligned
13241 preserve alignment of the original access if misalignment is unknown.
13242 (vectorizable_load): Likewise.
13244 2015-08-02 Martin Sebor <msebor@redhat.com>
13246 * c-family/c.opt (-Wframe-address): New warning option.
13247 * doc/invoke.texi (Wframe-address): Document it.
13248 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
13249 Clarify possible effects of calling the functions with non-zero
13250 arguments and mention -Wframe-address.
13251 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
13253 2015-08-01 Michael Collison <michael.collison@linaro.org
13254 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
13256 * config/arm/arm.md (*arm_smin_cmp): New pattern.
13257 (*arm_umin_cmp): Likewise.
13259 2015-08-01 Caroline Tice <cmtice@google.com>
13262 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
13264 (vtbl_find_mangled_name): New function.
13265 (vtbl_register_mangled_name): New function.
13266 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
13267 mangled name in mangled name vectors.
13268 (find_or_create_vtbl_map_node): Ditto.
13269 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
13270 update recursion_depth on function entry; pass it to every recursive
13271 call; automatically exit if depth > 25 (give up looking at that point).
13272 (verify_bb_vtables): Initialize recursion_depth and pass it to
13273 var_is_used_for_virtual_call_p.
13274 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
13275 global variable decls.
13276 (vtbl_register_mangled_name): New extern function decl.
13278 2015-08-01 Tom de Vries <tom@codesourcery.com>
13280 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
13282 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
13284 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
13285 operation_no_trapping_overflow. Allow non-overflow operations.
13286 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
13289 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
13292 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
13294 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13296 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
13297 Enable for TARGET_32BIT.
13298 (*if_move_neg): Likewise.
13300 2015-07-31 Nick Clifton <nickc@redhat.com>
13302 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
13303 Returns true for __model__.
13304 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
13306 2015-07-31 Alan Modra <amodra@gmail.com>
13309 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
13310 (rs6000_emit_prologue): Set it.
13311 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
13313 2015-07-31 Richard Biener <rguenther@suse.de>
13315 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
13316 -> X == (C1 ^ C2) which is already implemented in match.pd.
13317 Remove redundant dispatching to fold_relational_const.
13318 Move unordered self and NaN compares ...
13319 * match.pd: ... as patterns here. Remove some stray captures
13322 2015-07-31 Petr Murzin <petr.murzin@intel.com>
13324 * config/i386/i386.c
13325 (bdesc_special_args): Convert mask type from signed to unsigned for
13327 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
13328 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
13329 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
13330 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
13331 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
13332 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
13333 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
13334 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
13335 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
13336 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
13337 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
13338 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
13339 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
13340 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
13341 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
13342 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
13343 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
13344 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
13345 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
13346 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
13347 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
13348 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
13349 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
13350 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
13351 * config/i386/i386-builtin-types.def
13352 (V16QI_FTYPE_V16SI): Remove.
13353 (V8DF_FTYPE_V8SI): Ditto.
13354 (V8HI_FTYPE_V8DI): Ditto.
13355 (V8SI_FTYPE_V8DI): Ditto.
13356 (V8SF_FTYPE_V8DF): Ditto.
13357 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
13358 (V16HI_FTYPE_V16SI): Ditto.
13359 (V16SF_FTYPE_V16HI): Ditto.
13360 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
13361 (V16SF_FTYPE_V16SI): Ditto.
13362 (V4DI_FTYPE_V4DI): Ditto.
13363 (V16SI_FTYPE_V16SF): Ditto.
13364 (V16SF_FTYPE_FLOAT): Ditto.
13365 (V8DF_FTYPE_DOUBLE): Ditto.
13366 (V8DI_FTYPE_INT64): Ditto.
13367 (V8DI_FTYPE_V4DI): Ditto.
13368 (V16QI_FTYPE_V8DI): Ditto.
13369 (UINT_FTYPE_V4SF): Ditto.
13370 (UINT64_FTYPE_V4SF): Ditto.
13371 (UINT_FTYPE_V2DF): Ditto.
13372 (UINT64_FTYPE_V2DF): Ditto.
13373 (V16SI_FTYPE_V16SI): Ditto.
13374 (V8DI_FTYPE_V8DI): Ditto.
13375 (V16SI_FTYPE_PV4SI): Ditto.
13376 (V16SF_FTYPE_PV4SF): Ditto.
13377 (V8DI_FTYPE_PV2DI): Ditto.
13378 (V8DF_FTYPE_PV2DF): Ditto.
13379 (V4DI_FTYPE_PV2DI): Ditto.
13380 (V4DF_FTYPE_PV2DF): Ditto.
13381 (V16SI_FTYPE_PV2SI): Ditto.
13382 (V16SF_FTYPE_PV2SF): Ditto.
13383 (V8DI_FTYPE_PV4DI): Ditto.
13384 (V8DF_FTYPE_PV4DF): Ditto.
13385 (V8SF_FTYPE_FLOAT): Ditto.
13386 (V4SF_FTYPE_FLOAT): Ditto.
13387 (V4DF_FTYPE_DOUBLE): Ditto.
13388 (V8SF_FTYPE_PV4SF): Ditto.
13389 (V8SI_FTYPE_PV4SI): Ditto.
13390 (V4SI_FTYPE_PV2SI): Ditto.
13391 (V8SF_FTYPE_PV2SF): Ditto.
13392 (V8SI_FTYPE_PV2SI): Ditto.
13393 (V16SF_FTYPE_PV8SF): Ditto.
13394 (V16SI_FTYPE_PV8SI): Ditto.
13395 (V8DI_FTYPE_V8SF): Ditto.
13396 (V4DI_FTYPE_V4SF): Ditto.
13397 (V2DI_FTYPE_V4SF): Ditto.
13398 (V64QI_FTYPE_QI): Ditto.
13399 (V32HI_FTYPE_HI): Ditto.
13400 (V8UHI_FTYPE_V8UHI): Ditto.
13401 (V16UHI_FTYPE_V16UHI): Ditto.
13402 (V32UHI_FTYPE_V32UHI): Ditto.
13403 (V2UDI_FTYPE_V2UDI): Ditto.
13404 (V4UDI_FTYPE_V4UDI): Ditto.
13405 (V8UDI_FTYPE_V8UDI): Ditto.
13406 (V4USI_FTYPE_V4USI): Ditto.
13407 (V8USI_FTYPE_V8USI): Ditto.
13408 (V16USI_FTYPE_V16USI): Ditto.
13409 (V2DF_FTYPE_V2DF_UINT64): Ditto.
13410 (V2DI_FTYPE_V2DF_V2DF): Ditto.
13411 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
13412 (V8DF_FTYPE_V8DF_V8DI): Ditto.
13413 (V4SF_FTYPE_V4SF_UINT64): Ditto.
13414 (V4SI_FTYPE_V4SF_V4SF): Ditto.
13415 (V16SF_FTYPE_V16SF_V16SI): Ditto.
13416 (V64QI_FTYPE_V32HI_V32HI): Ditto.
13417 (V32HI_FTYPE_V16SI_V16SI): Ditto.
13418 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
13419 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
13420 (V32HI_FTYPE_V64QI_V64QI): Ditto.
13421 (V32HI_FTYPE_V32HI_V32HI): Ditto.
13422 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
13423 (V16SI_FTYPE_V16SI_V4SI): Ditto.
13424 (V16SI_FTYPE_V16SI_V16SI): Ditto.
13425 (V16SI_FTYPE_V32HI_V32HI): Ditto.
13426 (V16SI_FTYPE_V16SI_SI): Ditto.
13427 (V8DI_FTYPE_V8DI_V8DI): Ditto.
13428 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
13429 (V8DI_FTYPE_V16SI_V16SI): Ditto.
13430 (V8DI_FTYPE_V8DI_V2DI): Ditto.
13431 (QI_FTYPE_QI): Ditto.
13432 (SI_FTYPE_SI): Ditto.
13433 (DI_FTYPE_DI): Ditto.
13434 (QI_FTYPE_QI_QI): Ditto.
13435 (QI_FTYPE_QI_INT): Ditto.
13436 (HI_FTYPE_HI_INT): Ditto.
13437 (SI_FTYPE_SI_INT): Ditto.
13438 (DI_FTYPE_DI_INT): Ditto.
13439 (HI_FTYPE_V16QI_V16QI): Ditto.
13440 (SI_FTYPE_V32QI_V32QI): Ditto.
13441 (DI_FTYPE_V64QI_V64QI): Ditto.
13442 (QI_FTYPE_V8HI_V8HI): Ditto.
13443 (HI_FTYPE_V16HI_V16HI): Ditto.
13444 (SI_FTYPE_V32HI_V32HI): Ditto.
13445 (QI_FTYPE_V4SI_V4SI): Ditto.
13446 (QI_FTYPE_V8SI_V8SI): Ditto.
13447 (QI_FTYPE_V2DI_V2DI): Ditto.
13448 (QI_FTYPE_V4DI_V4DI): Ditto.
13449 (QI_FTYPE_V8DI_V8DI): Ditto.
13450 (HI_FTYPE_V16SI_V16SI): Ditto.
13451 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
13452 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
13453 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
13454 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
13455 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
13456 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
13457 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
13458 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
13459 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
13460 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
13461 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
13462 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
13463 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
13464 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
13465 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
13466 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
13467 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
13468 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
13469 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
13470 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
13471 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
13472 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
13473 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
13474 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
13475 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
13476 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
13477 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
13478 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
13479 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
13480 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
13481 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
13482 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
13483 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
13484 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
13485 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
13486 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
13487 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
13488 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
13489 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
13490 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
13491 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
13492 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
13493 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
13494 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
13495 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
13496 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
13497 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
13498 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
13499 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
13500 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
13501 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
13502 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
13503 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
13504 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
13505 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
13506 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
13507 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
13508 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
13509 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
13510 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
13511 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
13512 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
13513 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
13514 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
13515 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
13516 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
13517 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
13518 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
13519 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
13520 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
13521 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
13522 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
13523 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
13524 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
13525 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
13526 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
13527 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
13528 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
13529 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
13530 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
13531 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
13532 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
13533 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
13534 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
13535 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
13536 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
13537 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
13538 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
13539 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
13540 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
13541 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
13542 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
13543 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
13544 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
13545 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
13546 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
13547 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
13548 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
13549 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
13550 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
13551 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
13552 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
13553 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
13554 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
13555 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
13556 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
13557 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
13558 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
13559 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
13560 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
13561 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
13562 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
13563 (HI_FTYPE_HI): Ditto.
13564 (HI_FTYPE_V16QI): Ditto.
13565 (SI_FTYPE_V32QI): Ditto.
13566 (DI_FTYPE_V64QI): Ditto.
13567 (QI_FTYPE_V8HI): Ditto.
13568 (HI_FTYPE_V16HI): Ditto.
13569 (SI_FTYPE_V32HI): Ditto.
13570 (QI_FTYPE_V4SI): Ditto.
13571 (QI_FTYPE_V8SI): Ditto.
13572 (HI_FTYPE_V16SI): Ditto.
13573 (QI_FTYPE_V2DI): Ditto.
13574 (QI_FTYPE_V4DI): Ditto.
13575 (QI_FTYPE_V8DI): Ditto.
13576 (V16QI_FTYPE_HI): Ditto.
13577 (V32QI_FTYPE_SI): Ditto.
13578 (V64QI_FTYPE_DI): Ditto.
13579 (V8HI_FTYPE_QI): Ditto.
13580 (V16HI_FTYPE_HI): Ditto.
13581 (V32HI_FTYPE_SI): Ditto.
13582 (V4SI_FTYPE_QI): Ditto.
13583 (V4SI_FTYPE_HI): Ditto.
13584 (V8SI_FTYPE_QI): Ditto.
13585 (V8SI_FTYPE_HI): Ditto.
13586 (V2DI_FTYPE_QI): Ditto.
13587 (V4DI_FTYPE_QI): Ditto.
13588 (HI_FTYPE_HI_HI): Ditto.
13589 (SI_FTYPE_SI_SI): Ditto.
13590 (DI_FTYPE_DI_DI): Ditto.
13591 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
13592 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
13593 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
13594 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
13595 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
13596 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
13597 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
13598 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
13599 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
13600 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
13601 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
13602 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
13603 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
13604 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
13605 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
13606 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
13607 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
13608 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
13609 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
13610 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
13611 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
13612 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
13613 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
13614 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
13615 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
13616 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
13617 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
13618 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
13619 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
13620 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
13621 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
13622 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
13623 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
13624 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
13625 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
13626 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
13627 (V16SI_FTYPE_HI): Ditto.
13628 (V8DI_FTYPE_QI): Ditto.
13629 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
13630 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
13631 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
13632 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
13633 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
13634 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
13635 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
13636 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
13637 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
13638 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
13639 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
13640 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
13641 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
13642 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
13643 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
13644 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
13645 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
13646 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
13647 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
13648 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
13649 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
13650 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
13651 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
13652 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
13653 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
13654 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
13655 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
13656 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
13657 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
13658 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
13659 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
13660 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
13661 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
13662 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
13663 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
13664 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
13665 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
13666 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
13667 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
13668 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
13669 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
13670 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
13671 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
13672 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
13673 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
13674 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
13675 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
13676 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
13677 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
13678 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
13679 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
13680 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
13681 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
13682 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
13683 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
13684 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
13685 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
13686 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
13687 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
13688 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
13689 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
13690 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
13691 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
13692 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
13693 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
13694 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
13695 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
13696 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
13697 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
13698 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
13699 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
13700 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
13701 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
13702 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
13703 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
13704 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
13705 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
13706 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
13707 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
13708 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
13709 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
13710 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
13711 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
13712 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
13713 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
13714 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
13715 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
13716 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
13717 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
13718 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
13719 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
13720 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
13721 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
13722 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
13723 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
13724 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
13725 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
13726 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
13727 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
13728 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
13729 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
13730 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
13731 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
13732 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
13733 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
13734 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
13735 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
13736 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
13737 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
13738 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
13739 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
13740 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
13741 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
13742 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
13743 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
13744 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
13745 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
13746 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
13747 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
13748 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
13749 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
13750 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
13751 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
13752 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
13753 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
13754 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
13755 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
13756 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
13757 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
13758 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
13759 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
13760 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
13761 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
13762 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
13763 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
13764 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
13765 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
13766 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
13767 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
13768 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
13769 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
13770 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
13771 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
13772 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
13773 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
13774 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
13775 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
13776 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
13777 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
13778 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
13779 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
13780 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
13781 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
13782 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
13783 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
13784 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
13785 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
13786 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
13787 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
13788 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
13789 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
13790 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
13791 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
13792 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
13793 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
13794 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
13795 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
13796 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
13797 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
13798 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
13799 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
13800 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
13801 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
13802 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
13803 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
13804 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
13805 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
13806 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
13807 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
13808 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
13809 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
13810 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
13811 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
13812 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
13813 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
13814 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
13815 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
13816 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
13817 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
13818 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
13819 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
13820 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
13821 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
13822 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
13823 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
13824 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
13825 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
13826 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
13827 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
13828 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
13829 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
13830 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
13831 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
13832 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
13833 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
13834 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
13835 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
13836 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
13837 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
13838 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
13839 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
13840 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
13841 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
13842 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
13843 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
13844 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
13845 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
13846 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
13847 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
13848 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
13849 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
13850 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
13851 (QI_FTYPE_V8DF_INT_QI): Ditto.
13852 (QI_FTYPE_V4DF_INT_QI): Ditto.
13853 (QI_FTYPE_V2DF_INT_QI): Ditto.
13854 (HI_FTYPE_V16SF_INT_HI): Ditto.
13855 (QI_FTYPE_V8SF_INT_QI): Ditto.
13856 (QI_FTYPE_V4SF_INT_QI): Ditto.
13857 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
13859 2015-07-31 Richard Biener <rguenther@suse.de>
13861 * gimple-fold.c (fold_gimple_assign): Remove folding of
13864 2015-07-31 Tom de Vries <tom@codesourcery.com>
13866 PR tree-optimization/66846
13867 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
13868 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
13869 (expand_omp_target) [ENABLE_CHECKING]: Same.
13870 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
13871 cfun if !LOOPS_NEED_FIXUP.
13872 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
13873 that omp_for already has its own loop struct.
13874 * tree-parloops.c (create_phi_for_local_result)
13875 (create_call_for_reduction): Handle simple latch bb.
13876 (create_parallel_loop): Add simple latch bb to preserve
13877 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
13878 (gen_parallel_loop): Remove call to cancel_loop_tree.
13879 (parallelize_loops): Skip loops that are inner loops of parallelized
13881 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
13882 verify_loop_structure.
13884 2015-07-30 Anatoly Sokolov <aesok@post.ru>
13886 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
13887 * config/v850/v850.md (RV_REGNUM): New constants.
13888 * config/v850/v850.c (v850_libcall_value): New functions.
13889 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
13890 (TARGET_LIBCALL_VALUE): Define.
13892 2015-07-30 Anatoly Sokolov <aesok@post.ru>
13894 * rtl.h (lowpart_subreg): Move in file.
13895 * loop-iv.c (lowpart_subreg): Move to...
13896 * simplify-rtx.c (lowpart_subreg): ...here.
13897 (simplify_binary_operation_1): Use lowpart_subreg instead of
13898 simplify_gen_subreg.
13899 * expr.c (expand_expr_real_2): Ditto.
13900 * emit-rtl.c (gen_lowpart_common): Ditto.
13901 * combine.c (gen_lowpart_for_combine): Ditto.
13902 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
13903 expand_debug_source_expr): Ditto.
13905 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
13907 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
13908 (expand_builtin_atomic_clear): Remove support for atomic_clear
13911 2015-07-30 Richard Biener <rguenther@suse.de>
13913 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
13914 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
13915 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
13916 redundant operand canonicalization.
13918 2015-07-30 David Sherwood <david.sherwood@arm.com>
13920 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
13921 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
13922 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
13923 * config/arm/arm.c (neon_valid_immediate): Likewise.
13924 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
13925 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
13926 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
13927 (expand_vec_perm_vpshufb2_vpermq): Likewise.
13928 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
13929 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
13930 * config/i386/sse.md
13931 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
13932 (*ssse3_palignr<mode>_perm): Likewise.
13933 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
13934 * config/spu/spu.c (arith_immediate_p): Likewise.
13935 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
13936 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
13938 2015-07-30 Richard Biener <rguenther@suse.de>
13940 * genmatch.c (decision_tree::gen_gimple): Merge with ...
13941 (decision_tree::gen_generic): ... this into ...
13942 (decision_tree::gen): ... this.
13943 (main): Adjust callers.
13945 2015-07-30 Richard Biener <rguenther@suse.de>
13947 * genmatch.c (verbose): New global.
13948 (warning_at): Add overload with source_location.
13949 (capture_info::capture_info): Add bool whether generating gimple
13950 or generic. Add gimple member.
13951 (capture_info::cinfo): Add capture member.
13952 (capture_info::walk_match): Record capture. Warn on
13953 non-captured leafs.
13954 (capture_info::walk_c_expr): Add more fragments captures cannot
13955 escape through. Warn on escaped captures.
13956 (dt_simplify::gen_1): Warn on operands we force to have no
13958 (main): Initialize verbose.
13959 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
13961 2015-07-30 Richard Biener <rguenther@suse.de>
13963 PR middle-end/67053
13964 * match.pd: Allow both operands to independently have conversion
13965 when simplifying compares of addresses.
13967 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
13971 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
13972 around those cases that need one.
13974 2015-07-29 Aditya Kumar <hiraditya@msn.com>
13976 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
13978 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
13980 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
13981 New. Copied from config/i386/gnu-user.h.
13982 (ASM_COMMENT_START): Likewise.
13983 (DBX_REGISTER_NUMBER): Likewise.
13985 2015-07-29 Richard Biener <rguenther@suse.de>
13987 * gimple-fold.c (fold_gimple_cond): Remove.
13988 (fold_stmt_1): Do not call it.
13990 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
13992 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
13993 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
13995 * config/aarch64/aarch64-modes.def: Add HFmode.
13997 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
13998 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
14000 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
14001 aarch64_promoted_type): New.
14003 (aarch64_float_const_representable_p): Disable HFmode.
14004 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
14005 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
14006 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
14008 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
14009 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
14011 * config/aarch64/iterators.md (GPF_F16): New.
14013 2015-07-29 Richard Biener <rguenther@suse.de>
14015 * match.pd: Merge address comparison patterns and make them
14016 handle some more cases.
14018 2015-07-29 Richard Biener <rguenther@suse.de>
14020 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
14021 (parser::parse_capture): Add bool argument on whether to reject
14023 (parser::parse_expr): Adjust.
14024 (parser::parse_op): Likewise.
14025 (parser::parse_pattern): Likewise.
14027 2015-07-29 Richard Biener <rguenther@suse.de>
14029 * gimple-fold.c (has_use_on_stmt): New function.
14030 (replace_stmt_with_simplification): Use it to allow
14031 abnormals originally referenced in the stmt.
14032 (fold_stmt_1): Canonicalize operand order.
14034 2015-07-28 David Sherwood <david.sherwood@arm.com>
14036 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
14037 GET_MODE_INNER unconditionally.
14038 * config/spu/spu.c (arith_immediate_p): Likewise.
14039 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
14040 * expmed.c (synth_mult): Remove check for VOIDmode result from
14042 (expand_mult_const): Likewise.
14043 * fold-const.c (fold_binary_loc): Replace call to element_precision
14044 with call to GET_MODE_PRECISION.
14045 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
14047 (emit_mode_inner): Likewise.
14048 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
14050 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
14051 (GET_MODE_UNIT_PRECISION): Likewise.
14052 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
14053 * simplify-rtx.c (simplify_immed_subreg): Likewise.
14054 * stor-layout.c (bitwise_type_for_mode): Update assert.
14055 (element_precision): Remove.
14057 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14059 * target-insns.def (reload_load_address): New targetm instruction
14061 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
14063 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14065 * target-insns.def (atomic_test_and_set): New targetm instruction
14067 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
14068 HAVE_*/gen_* interface.
14070 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14072 * target-insns.def (can_extend, ptr_extend): New targetm instruction
14074 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
14075 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
14076 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
14077 * rtlanal.c (nonzero_bits1): Likewise.
14078 (num_sign_bit_copies1): Likewise.
14080 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14082 * target-insns.def (eh_return): New targetm instruction pattern.
14083 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
14085 * function.c (thread_prologue_and_epilogue_insns): Remove
14086 preprocessor condition.
14088 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14090 * target-insns.def (indirect_jump): New targetm instruction pattern.
14091 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
14094 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
14096 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
14097 instead of nonimmediate_operand. Remove C condiition.
14099 2015-07-28 Richard Biener <rguenther@suse.de>
14101 * match.pd: Add more simplification of address comparisons.
14103 2015-07-28 Richard Biener <rguenther@suse.de>
14105 * match.pd: Re-order two cases in comparison with max/min
14106 value simplification to make it apply for bools.
14108 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14110 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
14111 Handle simple SIGN_EXTEND or ZERO_EXTEND.
14112 (aarch64_rtx_costs): Properly strip extend or extract before
14113 passing down to rtx costs again.
14115 2015-07-28 Nick Clifton <nickc@redhat.com>
14117 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
14118 Optimizes the case where -mes0 is active and a constant symbolic
14120 * config/rl78/rl78-protos.h: Prototype the new function.
14121 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
14123 2015-07-28 Tom de Vries <tom@codesourcery.com>
14125 * tree-parloops.c (reduc_stmt_res): New function.
14126 (initialize_reductions, add_field_for_reduction)
14127 (create_phi_for_local_result, create_loads_for_reductions)
14128 (create_stores_for_reduction, build_new_reduction): Handle case that
14129 reduc_stmt is a phi.
14130 (gather_scalar_reductions): Allow double_reduc reductions.
14132 2015-07-28 Richard Biener <rguenther@suse.de>
14134 * fold-const.c (fold_comparison): Remove equality folding
14135 of decl addresses ...
14136 * match.pd: ... here and merge with existing pattern.
14138 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
14140 PR tree-optimization/66828
14141 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
14142 from int64_t to uint64_t.
14144 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
14146 * opts-common.c (read_cmdline_option): List DriverOnly enum values
14147 as valid only in the error message of the driver, not in the
14148 messages of the language compilers.
14150 2015-07-27 Tom de Vries <tom@codesourcery.com>
14152 * tree-parloops.c (gather_scalar_reductions): Simplify function
14155 2015-07-27 Marek Polacek <polacek@redhat.com>
14157 * ipa-devirt.c (types_same_for_odr): Fix typo.
14159 2015-07-27 Jason Merrill <jason@redhat.com>
14162 * dwarf2out.c (gen_inlined_subroutine_die): Check
14163 cgraph_function_possibly_inlined_p.
14165 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
14167 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
14168 Place integer variant first.
14169 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14171 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
14174 * config/arm/arm-builtins.c (enum arm_builtins):
14175 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
14176 (ARM_BUILTIN_NEON_BASE): Rename macro to....
14177 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
14178 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
14179 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
14181 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
14184 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
14185 Add qualifier_lane_index.
14186 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
14187 (arm_getlane_qualifiers): Use qualifier_lane_index.
14188 (arm_lanemac_qualifiers): Rename to...
14189 (arm_mac_n_qualifiers): ...this.
14190 (LANEMAC_QUALIFIERS): Rename to...
14191 (MAC_N_QUALIFIERS): ...this.
14192 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
14193 (arm_setlane_qualifiers): Use qualifier_lane_index.
14194 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
14195 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
14196 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
14197 (arm_expand_neon_builtin): Handle qualifier_lane_index.
14199 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
14200 * config/arm/arm.c (bounds_check): Likewise, improve error message.
14201 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
14202 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
14203 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
14204 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
14205 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
14206 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
14207 qualifiers to TERNOP_IMM.
14208 (vdup_lane): Change qualifiers to GETLANE.
14209 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
14210 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
14211 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
14212 vqdmlsl_n): Change qualifiers to MAC_N.
14214 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
14215 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
14216 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
14217 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
14218 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
14219 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
14220 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
14221 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
14222 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
14223 Remove call to neon_lane_bounds.
14225 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
14227 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14228 Place integer variant first.
14230 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
14232 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
14233 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
14234 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
14235 for armv6kz targets.
14236 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
14237 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
14238 (FL_FOR_ARCH6ZK): Remove.
14239 (FL_FOR_ARCH6KZ): New.
14240 (arm_arch6zk): New declaration.
14241 * config/arm/arm-tables.opt: Regenerate.
14242 * config/arm/arm.c (arm_arch6kz): New.
14243 (arm_option_override): Set arm_arch6kz.
14244 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
14245 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
14246 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
14248 2015-07-27 Marek Polacek <polacek@redhat.com>
14252 * doc/invoke.texi: Document -Wtautological-compare.
14254 2015-07-27 Richard Biener <rguenther@suse.de>
14256 * genmatch.c (decision_tree::gen_gimple): Split out large
14257 subtrees into separate functions.
14258 (decision_tree::gen_generic): Likewise.
14260 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
14262 * config/alpha/alpha.c: Use SUBREG_P predicate.
14263 * config/alpha/predicates.md: Ditto.
14265 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
14267 * config.host (s390*-*-*): Include driver-native.c only when
14268 building with s390* as host *and* target.
14270 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
14273 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
14274 T bit register modified_between_p check.
14276 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14278 * config/i386/i386.c: Use SUBREG_P predicate.
14279 * config/i386/i386.md: Ditto.
14280 * config/i386/sse.md: Ditto.
14281 * config/i386/predicates.md: Ditto.
14283 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14286 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
14287 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
14289 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14291 * Makefile.in: Remove use of TREEBROWSER.
14292 * config.in: Regenerated.
14293 * configure: Regenerated.
14294 * configure.ac: Remove definition of TREEBROWSER.
14295 * tree-browser.c: Removed.
14296 * tree-browser.def: Removed.
14298 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14300 * graphite-scop-detection.c: Include gimple-pretty-print.h.
14301 (stmt_simple_for_scop_p): Print when a stmt is not handled in
14303 (scopdet_basic_block_info): Print when a loop or bb cannot be
14304 represented in Graphite.
14306 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14309 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
14310 execution guard when min_size is less than size_needed.
14312 2015-07-25 Sebastian Pop <s.pop@samsung.com>
14314 * doc/install.texi: Document supported versions of ISL.
14316 2015-07-25 Jeff Law <law@redhat.com>
14320 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14321 unable to find X NE 0 in the tables, return X as the simplified
14323 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14324 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14325 to VISISTED_BBS. */
14326 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14327 after removing the control flow statement and unnecessary edges.
14329 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
14332 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
14334 PR rtl-optimization/64164
14335 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14336 * tree-ssa-copyrename.c: Removed.
14337 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14338 -ftree-coalesce-vars.
14339 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14340 * common.opt (ftree-copyrename): Ignore.
14341 (ftree-coalesce-inlined-vars): Likewise.
14342 * doc/invoke.texi: Remove the ignored options above.
14343 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14344 * tree-ssa-coalesce.h: ... here.
14345 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14346 headers required by it.
14347 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14348 across variables when flag_tree_coalesce_vars. Check register
14349 use and promoted modes to allow coalescing. Moved to
14350 tree-ssa-coalesce.c.
14351 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14352 with its member functions to tree-ssa-coalesce.c.
14353 (var_map_base_init): Likewise. Renamed to
14354 compute_samebase_partition_bases.
14355 (partition_view_normal): Drop want_bases parameter.
14356 (partition_view_bitmap): Likewise.
14357 * tree-ssa-live.h: Adjust declarations.
14358 * tree-ssa-coalesce.c: Include explow.h.
14359 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14360 default defs at the entry point.
14361 (dump_part_var_map): New.
14362 (compute_optimized_partition_bases): New, called by...
14363 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14364 of compute_samebase_partition_bases. Adjust.
14365 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14366 * cfgexpand.c (leader_merge): New.
14367 (get_rtl_for_parm_ssa_default_def): New.
14368 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14369 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14370 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14371 redundant MEM attr setting.
14372 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14374 (expand_one_stack_var): ... this. New wrapper to check and
14375 skip already expanded SSA partitions.
14376 (record_alignment_for_reg_var): New, factored out of...
14377 (expand_one_var): ... this.
14378 (expand_one_ssa_partition): New.
14379 (adjust_one_expanded_partition_var): New.
14380 (expand_one_register_var): Check and skip already expanded SSA
14382 (expand_used_vars): Don't create DECLs for anonymous SSA
14383 names. Expand all SSA partitions, then adjust all SSA names.
14384 (pass::execute): Replace the loops that set
14385 SA.partition_to_pseudo from partition leaders and cleared
14386 DECL_RTL for multi-location variables, and that which used to
14387 rename vars and set attrs, with one that clears DECL_RTL and
14388 checks that PARMs and RESULTs default_defs match DECL_RTL.
14389 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14390 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14391 * explow.c (promote_ssa_mode): New.
14392 * explow.h (promote_ssa_mode): Declare.
14393 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14394 * function.c: Include cfgexpand.h.
14395 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14396 (use_register_for_parm_decl): Wrapper for the above to
14397 special-case the result_ptr.
14398 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14399 (split_complex_args): Take assign_parm_data_all argument.
14400 Pass it to rtl_for_parm. Set up rtl and context for split
14402 (assign_parms_augmented_arg_list): Adjust.
14403 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14404 multiple locations. Recognize split complex args.
14405 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14406 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14407 (assign_parm_setup_block): Prefer SSA-assigned location.
14408 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14409 if stack_parm is NULL.
14410 (assign_parm_setup_stack): Prefer SSA-assigned location.
14411 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14412 rtl before testing for pointer bounds. Special-case result_ptr.
14413 (expand_function_start): Maybe reset DECL_RTL of result.
14414 Prefer SSA-assigned location for result and static chain.
14415 Factor out DECL_RESULT and SET_DECL_RTL.
14416 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14417 anonymous SSA names. Use promote_ssa_mode.
14418 (get_temp_reg): Likewise.
14419 (remove_ssa_form): Adjust.
14420 * stor-layout.c (layout_decl): Don't set mem attributes of
14422 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14423 and get its reg_usage for reg invalidation.
14424 (compute_bb_dataflow): Pass it insn.
14425 (emit_notes_in_bb): Likewise.
14427 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
14429 * config/i386/i386.c (ix86_va_start): Remove
14430 unneeded !TARGET_64BIT check.
14431 (ix86_gimplify_va_arg): Ditto.
14433 2015-07-24 Tom de Vries <tom@codesourcery.com>
14435 * graphite-sese-to-poly.c (build_poly_scop): Always call
14436 rewrite_commutative_reductions_out_of_ssa.
14438 2015-07-24 Tom de Vries <tom@codesourcery.com>
14440 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
14441 flag_associative_math to FLOAT_TYPE_P. Honour
14442 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
14444 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
14447 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
14448 and "%qD" in warning_at instead of "%q+D" in warning.
14450 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
14452 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
14453 (ix86_function_abi): Cleanup.
14455 2015-07-24 Michael Darling <darlingm@gmail.com>
14458 * acinclude.m4: Reflects renaming of configure.in to configure.ac
14459 * configure: Likewise
14460 * configure.ac: Likewise
14461 * doc/install.texi: Likewise
14462 * doc/tm.texi: Likewise
14463 * doc/tm.texi.in: Likewise
14465 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14467 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
14468 manually swapping values.
14469 * cse.c (fold_rtx): Likewise.
14470 * lra-eliminations.c (form_sum): Likewise.
14472 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
14475 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
14476 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
14477 (*jcc_1, *jcc_2, jump, simple_return_internal)
14478 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
14479 Set length_nobnd attribute instead of length attribute.
14480 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
14481 (length_nobnd): Remove attribute.
14482 (length): Remove length_nobnd processing.
14484 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
14486 * gimplify.c (omp_default_clause): New function. Reorganize flow
14487 for clarity. Broken out of ...
14488 (omp_notice_variable): ... here.
14490 2015-07-24 Gary Funck <gary@intrepid.com>
14492 PR middle-end/66984
14493 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
14494 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
14496 2015-07-24 Tom de Vries <tom@codesourcery.com>
14498 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
14499 exit-first loop transform.
14501 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
14504 * tree-cfg.c (struct replace_decls_d): New struct.
14505 (replace_block_vars_by_duplicates_1): New function.
14506 (replace_block_vars_by_duplicates): Use it to replace the decls
14507 in the value exprs by duplicates.
14509 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
14511 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
14512 -shared, -symbolic, -rdynamic.
14514 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
14517 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
14518 -dynamic-linker within %{!static %{!shared, and -rdynamic within
14521 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
14524 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
14525 edge summary is available.
14527 2015-07-24 Richard Biener <rguenther@suse.de>
14529 * genmatch.c (struct dt_node): Add statistic fields.
14530 (dt_node::analyze): New method.
14531 (decision_tree::gen_gimple): Call analyze on the root node
14532 and print statistics to stderr.
14533 (decision_tree::gen_generic): Likewise.
14535 2015-07-24 Richard Biener <rguenther@suse.de>
14537 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
14538 against the highest or lowest possible integer ...
14539 * match.pd: ... as patterns here.
14541 2015-07-24 Richard Biener <rguenther@suse.de>
14543 * genmatch.c (struct capture_info): Add same_as field.
14544 (capture_info::capture_info): Initialize same_as.
14545 (capture_info::walk_match): Compute same_as.
14546 (capture_info::walk_result): Compute stuff for the leader.
14547 (capture_info::walk_c_expr): Likewise.
14548 (dt_simplify::gen_1): Only look at leaders when deciding
14549 to force no side-effects or emit side-effects of omitted operands.
14551 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14553 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
14554 reg note to the GPR -> FPR save instructions.
14556 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14558 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
14560 (s390_expand_insv): Don't generate risbg pattern for constant zero
14562 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
14563 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
14566 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14568 * config/s390/s390.c (s390_reorg): Clean up handling of processors
14571 (s390_issue_rate): Likewise.
14572 (s390_sched_reorder): Likewise.
14573 (s390_sched_variable_issue): Likewise.
14574 (s390_loop_unroll_adjust): Likewise.
14575 (s390_option_override): Likewise.
14577 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14579 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
14580 processor capabilities with -march=native.
14581 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
14582 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
14583 (S390_TARGET_BITS_STRING): Macro to simplify specs.
14585 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14587 * config/s390/s390.c (s390_issue_rate): Handle
14588 PROCESSOR_2094_Z9_EC.
14589 (s390_option_override): Likewise.
14590 (s390_adjust_priority): Likewise.
14592 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
14594 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
14595 when cross compiling.
14597 2015-07-24 Richard Biener <rguenther@suse.de>
14599 * fold-const.c (maybe_canonicalize_comparison_1): Move
14600 A code CST canonicalization ...
14601 * match.pd: ... to a pattern here.
14603 2015-07-24 Jiong Wang <jiong.wang@arm.com>
14606 2015-07-22 Jiong Wang <jiong.wang@arm.com>
14608 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14609 (HONOR_REG_ALLOC_ORDER): Define.
14611 2015-07-24 Richard Biener <rguenther@suse.de>
14613 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
14614 * fold-const.c (fold_comparison): Move parameter does not
14615 alias &local simplification ...
14616 * match.pd: ... as a pattern here.
14618 2015-07-24 Richard Biener <rguenther@suse.de>
14620 * gimple-fold.c (replace_stmt_with_simplification): Special-case
14621 valueizing call operands.
14622 * gimple-match-head.c (maybe_push_res_to_seq): Take
14623 number of call arguments from ops array.
14624 (do_valueize): New function.
14625 (gimple_simplify): Return true if valueization changed
14626 any operand even if the result didn't simplify further.
14628 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14630 PR middle-end/25530
14631 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
14633 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
14635 PR middle-end/25529
14636 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
14638 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14640 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
14643 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
14645 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
14648 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
14650 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
14651 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
14653 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
14654 ms_va_list_type_node initialization.
14656 2015-07-23 Jeff Law <law@redhat.com>
14659 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
14660 unable to find X NE 0 in the tables, return X as the simplified
14662 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
14663 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
14664 to VISISTED_BBS. */
14665 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
14666 after removing the control flow statement and unnecessary edges.
14668 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
14670 * tree-pass.h (get_current_pass_name): Removed.
14672 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
14674 PR rtl-optimization/64164
14675 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
14676 * tree-ssa-copyrename.c: Removed.
14677 * opts.c (default_options_table): Drop -ftree-copyrename. Add
14678 -ftree-coalesce-vars.
14679 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
14680 * common.opt (ftree-copyrename): Ignore.
14681 (ftree-coalesce-inlined-vars): Likewise.
14682 * doc/invoke.texi: Remove the ignored options above.
14683 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
14684 * tree-ssa-coalesce.h: ... here.
14685 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
14686 headers required by it.
14687 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
14688 across variables when flag_tree_coalesce_vars. Check register
14689 use and promoted modes to allow coalescing. Moved to
14690 tree-ssa-coalesce.c.
14691 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
14692 with its member functions to tree-ssa-coalesce.c.
14693 (var_map_base_init): Likewise. Renamed to
14694 compute_samebase_partition_bases.
14695 (partition_view_normal): Drop want_bases parameter.
14696 (partition_view_bitmap): Likewise.
14697 * tree-ssa-live.h: Adjust declarations.
14698 * tree-ssa-coalesce.c: Include explow.h.
14699 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
14700 default defs at the entry point.
14701 (dump_part_var_map): New.
14702 (compute_optimized_partition_bases): New, called by...
14703 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
14704 of compute_samebase_partition_bases. Adjust.
14705 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
14706 * cfgexpand.c (leader_merge): New.
14707 (get_rtl_for_parm_ssa_default_def): New.
14708 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
14709 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
14710 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
14711 redundant MEM attr setting.
14712 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
14714 (expand_one_stack_var): ... this. New wrapper to check and
14715 skip already expanded SSA partitions.
14716 (record_alignment_for_reg_var): New, factored out of...
14717 (expand_one_var): ... this.
14718 (expand_one_ssa_partition): New.
14719 (adjust_one_expanded_partition_var): New.
14720 (expand_one_register_var): Check and skip already expanded SSA
14722 (expand_used_vars): Don't create DECLs for anonymous SSA
14723 names. Expand all SSA partitions, then adjust all SSA names.
14724 (pass::execute): Replace the loops that set
14725 SA.partition_to_pseudo from partition leaders and cleared
14726 DECL_RTL for multi-location variables, and that which used to
14727 rename vars and set attrs, with one that clears DECL_RTL and
14728 checks that PARMs and RESULTs default_defs match DECL_RTL.
14729 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
14730 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
14731 * explow.c (promote_ssa_mode): New.
14732 * explow.h (promote_ssa_mode): Declare.
14733 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
14734 * function.c: Include cfgexpand.h.
14735 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
14736 (use_register_for_parm_decl): Wrapper for the above to
14737 special-case the result_ptr.
14738 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
14739 (split_complex_args): Take assign_parm_data_all argument.
14740 Pass it to rtl_for_parm. Set up rtl and context for split
14742 (assign_parms_augmented_arg_list): Adjust.
14743 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
14744 multiple locations. Recognize split complex args.
14745 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
14746 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
14747 (assign_parm_setup_block): Prefer SSA-assigned location.
14748 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
14749 if stack_parm is NULL.
14750 (assign_parm_setup_stack): Prefer SSA-assigned location.
14751 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
14752 rtl before testing for pointer bounds. Special-case result_ptr.
14753 (expand_function_start): Maybe reset DECL_RTL of result.
14754 Prefer SSA-assigned location for result and static chain.
14755 Factor out DECL_RESULT and SET_DECL_RTL.
14756 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
14757 anonymous SSA names. Use promote_ssa_mode.
14758 (get_temp_reg): Likewise.
14759 (remove_ssa_form): Adjust.
14760 * stor-layout.c (layout_decl): Don't set mem attributes of
14762 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
14763 and get its reg_usage for reg invalidation.
14764 (compute_bb_dataflow): Pass it insn.
14765 (emit_notes_in_bb): Likewise.
14767 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
14770 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
14772 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
14773 (rs6000_emit_2insn_and): Handle dot forms.
14774 * config/rs6000/rs6000.md (and<mode>3): Adjust.
14775 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
14776 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
14778 2015-07-23 Richard Biener <rguenther@suse.de>
14780 * generic-match-head.c: Include cgraph.h.
14781 * gimple-match-head.c: Likewise.
14782 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
14784 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
14785 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
14788 2015-07-23 Richard Biener <rguenther@suse.de>
14790 * gimple-fold.c (fold_gimple_cond): Do not require folding
14791 results to pass valid_gimple_rhs_p.
14792 * tree-cfg.h (fold_cond_expr_cond): Remove.
14793 * tree-cfg.c (fold_cond_expr_cond): Likewise.
14794 (make_edges): Do not call it.
14795 * tree-inline.c (tree_function_versioning): Likewise.
14797 2015-07-23 Tom de Vries <tom@codesourcery.com>
14799 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
14800 vect_force_simple_reduction.
14801 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
14802 (vect_is_simple_reduction_1): Add and handle
14803 need_wrapping_integral_overflow parameter.
14804 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
14805 need_wrapping_integral_overflow parameter.
14806 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
14807 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
14810 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
14812 PR tree-optimization/66926,66951
14813 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
14814 INNER_LOOP and fix up condition for renaming virtual operands.
14816 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14818 * combine.c (try_combine): Use std::swap instead of manually
14821 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
14823 * config/mips/i6400.md: New file.
14824 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
14825 (mips64r6): Likewise.
14827 * config/mips/mips-tables.opt: Regenerate.
14828 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
14829 (mips_issue_rate): Add support for i6400.
14830 (mips_multipass_dfa_lookahead): Likewise.
14831 * config/mips/mips.h (TUNE_I6400): Define.
14832 * config/mips/mips.md: Include i6400.md.
14833 (processor): Add i6400.
14834 * doc/invoke.texi (-march=@var{arch}): Add i6400.
14836 2015-07-23 Richard Biener <rguenther@suse.de>
14838 PR middle-end/66916
14839 * match.pd: Guard widen and sign-change comparison simplification
14842 2015-07-23 Richard Biener <rguenther@suse.de>
14844 PR tree-optimization/66945
14845 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
14846 ::before_dom_children): Force the propagators idea of
14847 non-executable edges to materialize, not what the folder
14850 2015-07-23 Richard Biener <rguenther@suse.de>
14852 * gimple.h (gimple_cond_make_false): Use 0 != 0.
14853 (gimple_cond_make_true): Use 1 != 0.
14855 2015-07-22 DJ Delorie <dj@redhat.com>
14857 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
14860 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
14861 (ashrhi3): Likewise.
14862 (lshrhi3): Likewise.
14863 (movhi): Take advantage of zero-extend to load small constants.
14864 (movpsi): Likewise.
14865 (and<mode>3): Likewise.
14866 (zero_extendqihi2): Likewise.
14867 (zero_extendqisi2): New.
14868 * config/msp430/constraints.md (N,O): New.
14869 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
14871 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
14874 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
14875 to enum feature_priority and feature_list.
14876 (fold_builtin_cpu): Add F_AES to enum processor_features
14877 and isa_names_table.
14879 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
14882 * config/i386/linux-common.h (MPX_SPEC): Use linker option
14883 for 64bit target only.
14885 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
14887 * config/nvptx/nvptx.c: Expand some comments.
14889 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
14891 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
14892 (cortex_a53_advsimd): ...This.
14894 2015-07-22 Richard Biener <rguenther@suse.de>
14896 * genmatch.c (expr::gen_transform): Clarify error message
14897 and display location.
14899 2015-07-22 Richard Biener <rguenther@suse.de>
14901 * genmatch.c (struct operand): Add location member.
14902 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
14904 (struct simplify): Remove match_location and result_location
14906 (elsehwere): Adjust.
14908 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
14910 * config/mips/m5100.md: New file.
14911 * config/mips/mips-cpus.def (m5100, m5101): Define.
14912 * config/mips/mips-tables.opt: Regenerate.
14913 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
14914 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
14915 -march=m5101 to -mips32r5.
14916 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
14917 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
14919 * config/mips/mips.md: Include m5100.md.
14920 (processor): Add m5100.
14921 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
14923 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
14925 * config/mips/mips-cpus.def (interaptiv): Define.
14926 * config/mips/mips-tables.opt: Regenerate.
14927 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
14929 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
14930 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
14932 2015-07-22 Jiong Wang <jiong.wang@arm.com>
14935 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
14936 (HONOR_REG_ALLOC_ORDER): Define.
14938 2015-07-22 Richard Biener <rguenther@suse.de>
14940 PR tree-optimization/66952
14941 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
14942 blocks we end up executing unconditionally reset all SSA
14943 info such as range and alignment.
14944 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
14945 * tree-ssanames.c (reset_flow_sensitive_info): New function.
14947 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
14949 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
14952 2015-07-22 Richard Biener <rguenther@suse.de>
14954 * genmatch.c (parser::parse_result): Properly handle
14955 match with result operands and conditions.
14957 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
14960 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
14961 Add qualifier_struct_load_store_lane_index.
14962 (aarch64_types_loadstruct_lane_qualifiers): Use
14963 qualifier_struct_load_store_lane_index for lane index argument for
14965 (aarch64_types_storestruct_lane_qualifiers): Ditto.
14966 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14967 (aarch64_simd_expand_args): Add new argument describing mode of
14968 builtin. Check lane bounds for arguments with
14969 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14970 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
14971 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
14972 (aarch64_simd_expand_builtin): Handle arguments with
14973 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
14974 aarch64_simd_expand_args.
14975 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
14976 vst[234]_lane with BUILTIN_VALLDIF.
14977 * config/aarch64/aarch64-simd.md:
14978 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
14979 endianness reversal on lane index.
14980 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
14981 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
14982 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
14983 (vec_store_lanesci_lane<mode>): Ditto.
14984 (vec_store_lanesxi_lane<mode>): Ditto.
14985 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
14986 reversal of lane index.
14987 (aarch64_ld3_lane<mode>): Ditto.
14988 (aarch64_ld4_lane<mode>): Ditto.
14989 (aarch64_st2_lane<mode>): Ditto.
14990 (aarch64_st3_lane<mode>): Ditto.
14991 (aarch64_st4_lane<mode>): Ditto.
14992 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
14993 to qmode. Add new mode parameter. Update uses.
14994 (__LD3_LANE_FUNC): Ditto.
14995 (__LD4_LANE_FUNC): Ditto.
14996 (__ST2_LANE_FUNC): Ditto.
14997 (__ST3_LANE_FUNC): Ditto.
14998 (__ST4_LANE_FUNC): Ditto.
15000 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
15002 * doc/invoke.texi (Language Independent Options): Rename node to
15003 Diagnostic Message Formatting Options.
15005 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
15008 * lra-remat.c (operand_to_remat): Prevent using insns with input
15009 subregs processed separately by IRA.
15011 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
15013 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
15015 (single_imm_use): Check for iterator node.
15016 (num_imm_uses): Likewise.
15017 * tree-ssa-operands.c (has_zero_uses_1): Delete.
15018 (single_imm_use_1): Check for iterator node.
15020 2015-07-21 Mike Frysinger <vapier@gentoo.org>
15021 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
15023 * configure.ac: Add check for new options in isl-0.15.
15024 * config.in, configure: Rebuilt.
15025 * graphite-blocking.c: Include <isl/constraint.h>
15026 * graphite-interchange.c, graphite-poly.c: Likewise.
15027 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
15028 * graphite.c: Likewise.
15029 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
15031 * graphite-dependences.c: Include <isl/constraint.h>.
15032 (max_number_of_out_dimensions): Returns isl_stat.
15033 (extend_schedule_1): Likewise
15034 (extend_schedule): Corresponding changes.
15035 * graphite-optimize-isl.c: Include <isl/constraint.h> and
15037 (getSingleMap): Change return type of isl_stat.
15038 (optimize_isl): Conditionally use
15039 isl_options_set_schedule_serialize_sccs.
15040 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
15041 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
15043 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
15046 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
15047 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
15049 2015-07-21 Richard Biener <rguenther@suse.de>
15051 PR tree-optimization/66948
15052 * genmatch.c (capture_info::walk_match): Also recurse to
15053 captures. Properly compute expr state from captures of
15055 * match.pd: Add single-use guards to
15056 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
15058 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
15060 * config/nvptx/mkoffload.c (process): Add static destructor call.
15062 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15064 PR middle-end/66915
15065 * match.pd (A - B -> A + (-B)): Don't allow folding
15066 when type if a fixed-point type.
15068 2015-07-20 DJ Delorie <dj@redhat.com>
15070 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
15071 (iorqi3_real): Likewise for set1.
15073 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
15075 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
15078 2015-07-20 Aditya Kumar <hiraditya@msn.com>
15080 * graphite-isl-ast-to-gimple.c:
15081 Refactor so that each function can access 'region'. This will help
15082 maintain a parameter rename_map within a region.
15084 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15086 * config/rs6000/rs6000.md (*lt0_disi): New.
15088 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
15091 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
15092 "available letters" comment.
15093 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
15094 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
15095 and_2rld_operand): Delete.
15096 (and_operand): Adjust.
15097 (rotate_mask_operator): New.
15098 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
15099 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
15100 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
15101 extract_ME): Delete.
15102 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15103 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
15104 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
15105 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15106 rs6000_emit_2insn_and): New.
15107 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
15108 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
15109 includes_rldic_lshift_p, includes_rldicr_lshift_p,
15110 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
15111 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
15112 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
15113 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
15114 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
15115 rs6000_emit_2insn_and): New.
15116 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
15117 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
15119 <NOT>: Don't fall through to next case.
15120 <AND>: Handle the various rotate-and-mask cases directly.
15121 <IOR>: Always cost as one insn.
15122 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
15123 (and<mode>3): Adjust expander for the new patterns.
15124 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
15125 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
15126 (*and<mode>3_imm_dot_shifted): New.
15127 (*and<mode>3_mask): Delete, rewrite as ...
15128 (and<mode>3_mask): ... New.
15129 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
15130 (andsi3_internal0_nomc): Delete.
15131 (*andsi3_internal6): Delete.
15132 (*and<mode>3_2insn): New.
15133 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
15134 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
15135 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
15136 *insvdi_internal3): Delete.
15137 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
15138 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
15139 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
15140 *ior<mode>_mask): New.
15141 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
15142 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
15143 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
15144 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
15146 (ashr<mode>3): Delete expander.
15147 (*ashr<mode>3): Rename to ...
15148 (ashr<mode>3): ... This.
15149 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
15150 (*rotldi3_internal4, *rotldi3_internal5 and split,
15151 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
15152 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
15153 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
15154 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
15155 (splitter for loading a mask): Adjust.
15156 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
15158 2015-07-20 Marek Polacek <polacek@redhat.com>
15160 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
15161 output_add_clobbers, output_added_clobbers_hard_reg_p,
15162 gen_rtx_scratch): Remove declarations.
15164 2015-07-20 Marek Polacek <polacek@redhat.com>
15167 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
15169 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15171 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
15172 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
15174 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15176 * combine.c (combine_simplify_rtx): Move simplification step
15177 before various transformations/substitutions.
15179 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
15181 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
15182 (struct int_traits): Likewise.
15184 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15186 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
15187 function to vmsdbgout_function_decl.
15189 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
15192 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
15193 from misaligned positions.
15194 (ix86_expand_pinsr): Reject insertions to misaligned positions.
15196 2015-07-18 Sebastian Pop <s.pop@samsung.com>
15198 PR middle-end/46851
15199 PR middle-end/60340
15200 * Makefile.in: Removed omega.o.
15201 * common.opt: Document flag fcheck-data-deps as deprecated.
15202 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
15203 its associated params: omega-max-vars, omega-max-geqs,
15204 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
15205 omega-max-keys, omega-eliminate-redundant-constraints.
15206 * doc/loop.texi: Remove all the section on Omega.
15207 * graphite-blocking.c: Include missing params.h: it used to be
15208 included through tree-data-ref.h and omega.h.
15209 * graphite-isl-ast-to-gimple.c: Same.
15210 * graphite-optimize-isl.c: Same.
15211 * graphite-sese-to-poly.c: Same.
15212 * graphite.c: Same.
15215 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
15216 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
15217 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
15218 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
15219 * passes.def: Remove pass_check_data_deps.
15220 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
15221 (dump_conflict_function): Same.
15222 (dump_subscript): Same.
15223 (print_direction_vector): Same.
15224 (print_dir_vectors): Same.
15225 (print_lambda_vector): Same.
15226 (print_dist_vectors): Same.
15227 (dump_data_dependence_relation): Same.
15228 (dump_data_dependence_relations): Same.
15229 (dump_dist_dir_vectors): Same.
15231 (init_omega_eq_with_af): Removed.
15232 (omega_extract_distance_vectors): Removed.
15233 (omega_setup_subscript): Removed.
15234 (init_omega_for_ddr_1): Removed.
15235 (init_omega_for_ddr): Removed.
15236 (ddr_consistent_p): Removed.
15237 (compute_affine_dependence): Do not use omega to check data
15239 (compute_data_dependences_for_bb): Removed.
15240 (analyze_all_data_dependences): Removed.
15241 (tree_check_data_deps): Removed.
15242 * tree-data-ref.h: Do not include omega.h.
15243 (compute_data_dependences_for_bb): Removed.
15244 (tree_check_data_deps): Removed.
15245 * tree-ssa-loop.c (pass_check_data_deps): Removed.
15246 (make_pass_check_data_deps): Removed.
15247 * tree-ssa-phiopt.c: Include params.h.
15248 * tree-vect-data-refs.c: Same.
15249 * tree-vect-slp.c: Same.
15251 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
15253 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
15254 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
15255 (mem->fpreg splitters): Ditto.
15256 (general_operand->nonimmediate_operand splitter): Use explicit modes.
15257 Disable DFmode for TARGET_64BIT.
15259 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
15262 * config/i386/i386.c (ix86_expand_prologue): Replicate static
15263 chain on the stack.
15265 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15267 * config/nvptx/mkoffload.c (process): Constify host data.
15268 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15269 Constify host data.
15270 (generate_host_descr_file): Likewise.
15272 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
15273 Sebastian Pop <s.pop@samsung.com>
15275 PR middle-end/61929
15276 * graphite-dependences.c (add_pdr_constraints): Renamed
15277 pdr->extent to pdr->subscript_sizes.
15278 * graphite-interchange.c (build_linearized_memory_access): Add
15279 back all gcc_assert's that the "isl_int to isl_val conversion"
15280 patch has removed. Refactored.
15281 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
15282 * graphite-poly.c (new_poly_dr): Same.
15283 (free_poly_dr): Same.
15284 * graphite-poly.h (struct poly_dr): Same.
15285 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
15286 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
15287 * graphite-scop-detection.h: Fix space.
15288 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
15289 back all gcc_assert's removed by a previous patch.
15290 (wrap): Remove the_isl_ctx global variable that the same patch has
15292 (build_loop_iteration_domains): Same.
15293 (add_param_constraints): Same.
15294 (pdr_add_data_dimensions): Same. Refactored.
15295 (build_poly_dr): Renamed extent to subscript_sizes.
15297 2015-07-17 Marek Polacek <polacek@redhat.com>
15299 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
15300 * match.pd: ... here.
15302 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
15304 * config/nvptx/mkoffload.c (process): Constify target data.
15305 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
15306 Constify target data.
15307 (generate_target_offloadend_file): Likewise.
15309 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
15311 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
15312 to allow renaming of PHI arguments on edges incoming from outer
15313 loop header, add corresponding check before start PHI iterator.
15314 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
15315 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
15316 with true force_vectorize. Set-up dominator for outer loop too.
15317 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
15318 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
15319 was marked with force_vectorize and has restricted cfg.
15320 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
15322 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
15323 do peeling for outer loops.
15325 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
15326 Matthias Klose <doko@ubuntu.com>
15328 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
15329 build-sysroot, sysroot from the `Miscenalleous configure options' to
15330 the `Directories' section and strip trailing `/' from with_sysroot.
15331 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
15332 * configure: Regenerated.
15334 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
15337 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
15338 (TARGET_HARD_DF_REGS): Ditto.
15339 (TARGET_HARD_XF_REGS): Ditto.
15340 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
15341 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
15342 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
15343 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
15344 (*movsf_internal): Add alternatives 16 and 17. Enable
15345 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
15347 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
15349 PR rtl-optimization/66891
15350 * calls.c (expand_call): Wrap precompute_register_parameters with
15351 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
15353 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
15355 * config/nvptx/mkoffload.c (process): Constify mapping variables.
15356 Define target data struct and initialize it.
15358 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
15360 PR rtl-optimization/66626
15361 * ira.h (emit-rtl.h): Include.
15362 (non_spilled_static_chain_regno_p): New.
15363 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
15364 unless it is non spilled static chain pseudo.
15365 (assign_hard_rego): Spill memory profitable allocno unless it is
15366 non spilled static chain pseudo.
15367 (allocno_spill_priority_compare): Put non spilled static chain
15368 pseudo at the end of sorted array.
15369 (improve_allocation): Do nothing if we have static chain and
15371 (allocno__priority_compare_func): Put non spilled static chain
15372 pseudo at the beginning of sorted array.
15373 (move_spill_restore): Ignore non spilled static chain pseudo.
15374 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
15375 to non spilled static chain pseudo.
15376 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
15377 pseudo at the beginning of sorted array.
15378 (spill_for): Spill non spilled static chain pseudo last.
15379 * lra-constraints.c (lra_constraints): Remove static chain pseudo
15380 check for equivalence.
15382 2015-07-16 Martin Liska <mliska@suse.cz>
15385 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
15386 dst_ctx if it does not exist.
15388 2015-07-16 Martin Liska <mliska@suse.cz>
15390 * hash-set.h (remove): New function.
15391 (iterator): New iteration class for hash_set.
15393 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15395 * genattrtab.c (make_canonical): Add a file_location parameter.
15396 Use fatal_at rather than fatal.
15397 (get_attr_value): Likewise. Update call to make_canonical.
15398 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
15399 (make_internal_attr): Update calls accordingly.
15401 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15403 * read-md.h (message_with_line, error_with_line): Delete.
15404 * read-md.c (message_with_line, error_with_line): Delete.
15405 * gensupport.h: Include read-md.h.
15406 (md_rtx_info): New structure.
15407 (read_md_rtx): Use it. Return a bool success value.
15408 * gensupport.c (read_md_rtx): Likewise.
15409 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
15410 (main): Update after interface changes.
15411 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
15412 (main): Update after interface changes.
15413 * genattrtab.c (insn_code_number): Delete.
15414 (optimize_attrs): Add a max_insn_code parameter and use it instead
15415 of insn_code_number.
15416 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
15417 Use *_at rather than *_with_line functions.
15418 (gen_insn): Likewise.
15419 (gen_delay): Likewise.
15420 (gen_insn_reserv): Likewise.
15421 (gen_bypass): Take an md_rtx_info rather than an rtx.
15422 (main): Update after interface changes. Use a local max_insn_code
15423 variable instead of insn_code_number.
15424 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
15425 an rtx. Use fatal_at rather than fatal.
15426 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
15427 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
15428 (gen_absence_set, gen_final_absence_set, gen_automaton)
15429 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
15430 (main): Update after interface changes.
15431 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
15433 (main): Update after interface changes.
15434 * genconditions.c (main): Use new read_md_rtx interface.
15435 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
15436 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
15437 (main): Update after interface changes.
15438 * genemit.c (insn_code_number, insn_index_number): Delete.
15439 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15440 Use fatal_at rather than fatal.
15441 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
15443 (gen_split): Likewise.
15444 (main): Update after interface changes.
15445 * genextract.c (line_no): Delete.
15446 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15447 Update call to walk_rtx.
15448 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
15449 rather than message_with_line.
15450 (walk_rtx): Add an md_rtx_info argument. Update call to
15451 VEC_safe_set_locstr.
15452 (main): Update after interface changes.
15453 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
15454 and lineno. Use error_at rather than separate message_with_line
15455 calls and have_error assignments.
15456 (main): Update after interface changes.
15457 * genmddump.c (main): Use new read_md_rtx interface.
15458 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
15459 (main): Update after interface changes.
15460 * genoutput.c (next_code_number): Delete.
15461 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
15462 (gen_peephole, gen_expand, gen_split): Likewise.
15463 (note_constraint): Likewise. Use *_at rather than *_with_line
15465 (main): Update after interface changes.
15466 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
15468 (main): Update after interface changes.
15469 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
15470 than an rtx and lineno.
15471 (process_define_constraint): Likewise.
15472 (process_define_register_constraint): Likewise.
15473 (main): Update after interface changes.
15474 * genrecog.c (next_insn_code, pattern_lineno): Delete.
15475 (validate_pattern): Replace top-level rtx with an md_rtx_info.
15476 Use *_at rather than *_with_line functions.
15477 (match_pattern_2): Likewise.
15478 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
15479 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
15480 Use *_at rather than *_with_line functions.
15481 * gentarget-def.c (add_insn): New function.
15482 (main): Use it. Use new read_md_rtx interface.
15484 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15486 * gensupport.h (compute_test_codes): Take a file_location rather
15487 than a line number.
15488 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
15489 rather than *_with_line functions.
15490 (process_define_predicate): Update call to compute_test_codes.
15491 * genpreds.c (validate_exp): Take a file_location rather than a
15492 line number. Use *_at functions rather than *_with_line functions.
15493 (process_define_predicate): Update call to validate_exp.
15494 (constraint_data): Replace lineno field with a file_location.
15495 (add_constraint): Take a file_location rather than a line number.
15496 Use *_at functions rather than *_with_line functions. Fix error
15497 message for address constraints. Update after changes to
15498 validate_exp, constraint_data and compute_test_codes.
15499 (process_define_constraint): Update accordingly.
15500 (process_define_register_constraint): Likewise.
15502 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15504 * genoutput.c (data): Use a file_location to record the source
15507 (idata, idata_end): Remove initialization.
15508 (constraint_data): Replace lineno with a file_location.
15509 (output_insn_data): Update after changes to data.
15510 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
15511 (scan_operands): Likewise, using *_at rather than *_with_line
15513 (process_template): Likewise.
15514 (validate_insn_alternatives): Likewise.
15515 (validate_insn_operands): Likewise.
15516 (validate_optab_operands): Likewise.
15517 (init_insn_for_nothing): Initialize idata and idata_end.
15518 (note_constraint): Update after changes to constraint_data,
15519 using at rather than with_line functions.
15520 (mdep_constraint_len): Take a file_location rather than a
15521 line number. Use at rather than with_line functions.
15523 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15525 * read-md.h (fatal_at): Declare.
15526 * read-md.c (fatal_at): New function.
15527 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
15528 to record the source position.
15529 (check_attr_test): Take a file_location instead of a line number.
15530 Use fatal_at instead of fatal.
15531 (check_attr_value): Update after above changes, using "at"
15532 rather than "with_line" reporting functions.
15533 (convert_set_attr_alternative): Likewise.
15534 (gen_attr): Likewise.
15535 (check_defs): Likewise. Don't assign to read_md_filename.
15536 (gen_insn): Update initialization after above changes.
15537 (gen_delay): Likewise.
15538 (write_insn_cases): Print the filename for a define_peephole.
15539 (gen_insn_reserv): Take a line number as argument and update
15540 the call to check_attr_test.
15541 (main): Pass a line number to gen_insn_reserv.
15543 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15545 * read-md.h (file_location): New structure.
15546 (directive_handler_t): Take a file_location rather than a line number.
15547 (message_at, error_at): Declare.
15548 (read_skip_construct): Delete.
15549 * read-md.c (message_with_line_1): Replace with...
15550 (message_at_1): ...this new function.
15551 (message_at, error_at): New functions.
15552 (message_with_line, error_with_line): Update to use message_at_1.
15553 (handle_enum): Take a file_location rather than a line number
15554 and use error_at for error reporting.
15555 (handle_include): Likewise.
15556 (read_skip_construct): Likewise. Make static.
15557 (handle_file): Update after above changes. Pass a file_location
15558 rather than a line number to handle_directive.
15559 * gensupport.c (queue_elem): Replace separate filename and lineno
15560 with a file_location.
15561 (queue_pattern): Replace filename and lineno arguments with a
15562 file_location. Update after change to queue_elem.
15563 (process_define_predicate): Replace lineno argument with a
15564 file_location and use error_at for error reporting. Update
15565 after above changes.
15566 (process_rtx): Likewise.
15567 (subst_pattern_match): Likewise.
15568 (get_alternatives_number): Likewise.
15569 (alter_predicate_for_insn): Likewise.
15570 (rtx_handle_directive): Likewise.
15571 (is_predicable): Update after above changes, using error_at rather
15572 than error_with_line.
15573 (has_subst_attribute): Likewise.
15574 (identify_predicable_attribute): Likewise.
15575 (alter_attrs_for_subst_insn): Likewise.
15576 (process_one_cond_exec): Likewise.
15577 (process_substs_on_one_elem): Likewise.
15578 (process_define_subst): Likewise.
15579 (check_define_attr_duplicates): Likewise.
15580 (read_md_rtx): Update after change to queue_elem.
15582 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15584 * genoutput.c (next_index_number): Delete.
15585 (data): Remove index_number.
15586 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
15587 (main): Remove manipulation of next_index_number.
15589 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
15591 * genattrtab.c (check_attr_value): Remove handling of null attrs.
15592 (make_canonical): Likewise.
15594 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
15596 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
15597 instead of adjust_address_nv.
15598 (restore_stack_nonlocal): Likewise.
15599 (nonlocal_goto): Likewise.
15601 2015-07-16 Tom de Vries <tom@codesourcery.com>
15603 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
15604 not have a corresponding loop header phi.
15606 2015-07-16 Tom de Vries <tom@codesourcery.com>
15608 * tree-parloops.c (create_loads_for_reductions): Handle case that
15609 reduction is unused.
15611 2015-07-16 Richard Biener <rguenther@suse.de>
15613 PR tree-optimization/66894
15614 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
15615 about deriving NE_EXPR from truncated values.
15617 2015-07-16 Martin Liska <mliska@suse.cz>
15620 (object_allocator): Add new class.
15621 (pool_allocator::initialize): Use the underlying class.
15622 (pool_allocator::allocate): Likewise.
15623 (pool_allocator::remove): Likewise.
15624 (operator new): A new generic allocator.
15625 * asan.c (struct asan_mem_ref): Remove unused members.
15626 (asan_mem_ref_new): Replace new operator with
15627 object_allocator::allocate.
15628 (free_mem_ref_resources): Change deallocation.
15629 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
15630 with object_allocator.
15631 * config/sh/sh.c (add_constant): Replace new operator with
15632 object_allocator::allocate.
15633 (sh_reorg): Change call to a release method.
15634 * cselib.c (struct elt_list): Remove unused members.
15635 (new_elt_list): Replace new operator with
15636 object_allocator::allocate.
15637 (new_elt_loc_list): Likewise.
15638 (new_cselib_val): Likewise.
15639 (unchain_one_elt_list): Change delete operator with remove method.
15640 (unchain_one_elt_loc_list): Likewise.
15641 (unchain_one_value): Likewise.
15642 (cselib_finish): Release newly added static allocators.
15643 * cselib.h (struct cselib_val): Remove unused members.
15644 (struct elt_loc_list): Likewise.
15645 * df-problems.c (df_chain_alloc): Replace pool_allocator with
15647 * df-scan.c (struct df_scan_problem_data): Likewise.
15648 (df_scan_alloc): Likewise.
15649 * df.h (struct dataflow): Likewise.
15650 * dse.c (struct read_info_type): Likewise.
15651 (struct insn_info_type): Likewise.
15652 (struct dse_bb_info_type): Likewise.
15653 (struct group_info): Likewise.
15654 (struct deferred_change): Likewise.
15655 (get_group_info): Likewise.
15656 (delete_dead_store_insn): Likewise.
15657 (free_read_records): Likewise.
15658 (replace_read): Likewise.
15659 (check_mem_read_rtx): Likewise.
15660 (scan_insn): Likewise.
15661 (dse_step1): Likewise.
15662 (dse_step7): Likewise.
15663 * et-forest.c (struct et_occ): Remove unused members.
15664 (et_new_occ): Use allocate instead of new operator.
15665 (et_new_tree): Likewise.
15666 (et_free_tree): Call release method explicitly.
15667 (et_free_tree_force): Likewise.
15668 (et_free_pools): Likewise.
15669 (et_split): Use remove instead of delete operator.
15670 * et-forest.h (struct et_node): Remove unused members.
15671 * ipa-cp.c: Change pool_allocator to object_allocator.
15672 * ipa-inline-analysis.c: Likewise.
15673 * ipa-profile.c: Likewise.
15674 * ipa-prop.c: Likewise.
15675 * ipa-prop.h: Likewise.
15676 * ira-build.c (initiate_cost_vectors): Cast return value.
15677 (ira_allocate_cost_vector): Likewise.
15678 * ira-color.c (struct update_cost_record): Remove unused members.
15679 * lra-int.h (struct lra_live_range): Likewise.
15680 (struct lra_copy): Likewise.
15681 (struct lra_insn_reg): Likewise.
15682 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
15683 * lra.c (new_insn_reg): Replace new operator with allocate method.
15684 (free_insn_regs): Same for operator delete.
15685 (finish_insn_regs): Release new static allocator.
15686 (finish_insn_recog_data): Likewise.
15687 (lra_free_copies): Replace delete operator with remove method.
15688 (lra_create_copy): Replace operator new with allocate method.
15689 (invalidate_insn_data_regno_info): Same for remove method.
15690 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
15691 (free_debug_insn_changes): Replace delete operator with remove method.
15692 (replace_oldest_value_reg): Replace operator new with allocate method.
15693 (pass_cprop_hardreg::execute): Release new static variable.
15694 * sched-deps.c (sched_deps_init): Change pool_allocator to
15696 * sel-sched-ir.c: Likewise.
15697 * sel-sched-ir.h: Likewise.
15698 * stmt.c (expand_case): Likewise.
15699 (expand_sjlj_dispatch_table): Likewise.
15700 * tree-sra.c (struct access): Remove unused members.
15701 (struct assign_link): Likewise.
15702 (sra_deinitialize): Release newly added static pools.
15703 (create_access_1):Replace operator new with allocate method.
15704 (build_accesses_from_assign): Likewise.
15705 (create_artificial_child_access): Likewise.
15706 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
15707 pool_allocator to object_allocator.
15708 * tree-ssa-pre.c: Likewise.
15709 * tree-ssa-reassoc.c: Likewise.
15710 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
15711 * tree-ssa-strlen.c: Likewise.
15712 * tree-ssa-structalias.c: Likewise.
15713 * var-tracking.c (onepart_pool_allocate): New function.
15714 (unshare_variable): Use the newly added function.
15715 (variable_merge_over_cur): Likewise.
15716 (variable_from_dropped): Likewise.
15717 (variable_was_changed): Likewise.
15718 (set_slot_part): Likewise.
15719 (emit_notes_for_differences_1): Likewise.
15720 (vt_finalize): Release newly added static pools.
15722 2015-07-16 Martin Jambor <mjambor@suse.cz>
15724 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
15725 all uses. Fix two typos in its general comment.
15726 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
15728 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
15730 * config/i386/linux-common.h (LINK_MPX): New.
15731 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
15732 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
15733 indicating '-z bndplt' support by linker.
15734 * configure: Regenerate.
15735 * config.in: Regenerate.
15737 2015-07-16 Richard Biener <rguenther@suse.de>
15739 * fold-const.c (fold_widened_comparison): Remove.
15740 (fold_sign_changed_comparison): Likewise.
15741 (fold_comparison): Move widened and sign-changed comparison
15743 * match.pd: ... to patterns here.
15744 * generic-match-head.c: Include target.h.
15745 * gimple-match-head.c: Likewise.
15747 2015-07-16 Richard Biener <rguenther@suse.de>
15749 * tree-ssa-dom.c (dom_valueize): New function.
15750 (record_temporary_equivalences): Also record equivalences
15751 for dominating stmts that have uses of equivalences we are
15754 2015-07-16 Bin Cheng <bin.cheng@arm.com>
15756 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
15757 add_autoinc_candidates.
15758 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
15759 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
15760 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
15761 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
15763 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
15764 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
15765 Remove parameter struct iv*. Call add_autoinc_candidates here.
15766 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
15767 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
15769 (find_iv_candidates): Call new functions.
15771 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
15773 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
15774 uninitialized-variable warning.
15776 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
15779 * config/sh/sh.md (movdi): Split simple reg move to two movsi
15780 when the destination is R0.
15782 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
15785 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
15786 * config/i386/i386.c (ix86_expand_pextr): New function.
15787 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
15788 for non-lowpart subregs.
15789 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
15790 (insv<mode>): Use SWI248 mode iterator.
15791 (insv<mode>_1): Ditto.
15793 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15794 Sebastian Pop <s.pop@samsung.com>
15796 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
15797 iterator to use_stmt.
15799 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15800 Sebastian Pop <s.pop@samsung.com>
15802 * graphite-scop-detection.c (build_scops_1): Discard scops for
15805 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15806 Sebastian Pop <s.pop@samsung.com>
15808 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
15809 case of a return statement in scop.
15811 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
15812 Sebastian Pop <s.pop@samsung.com>
15814 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
15815 INTEGER_TYPE parameters.
15816 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
15817 VECTOR_CST in scan_tree_for_params.
15818 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
15820 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
15822 * gimple-pretty-print.h: Don't include pretty-print.h.
15823 * tree-streamer.h: Don't include lto-streamer.h.
15824 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
15825 * gimple-streamer-in.c: Remove redundant includes.
15826 * gimple-streamer-out.c: Likewise.
15827 * ipa-devirt.c: Likewise.
15828 * ipa-icf.c: Likewise.
15829 * ipa-inline-analysis.c: Likewise.
15830 * ipa-polymorphic-call.c: Likewise.
15831 * ipa-profile.c: Likewise.
15832 * ipa-prop.c: Likewise.
15833 * ipa-pure-const.c: Likewise.
15834 * lto-cgraph.c: Likewise.
15835 * lto-streamer-in.c: Likewise.
15836 * lto-streamer-out.c: Likewise.
15837 * lto-streamer.c: Likewise.
15838 * tree-streamer-in.c: Likewise.
15839 * tree-streamer-out.c: Likewise.
15840 * tree-streamer.c: Likewise.
15842 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
15844 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
15846 * opts.c: Remove multiline #include comment.
15848 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
15850 * config/nvptx/mkoffload.c (process): Add C++ protection to
15853 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
15856 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
15857 null before IEEE 128-bit floating point support patch.
15859 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15861 * simplify-rtx.c (simplify_ternary_operation): Add simplification
15862 for (!c) != {0,...,0} ? a : b for vector modes.
15864 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
15865 Martin Jambor <mjambor@suse.cz>
15867 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
15868 struct func_body_info* instead of struct ipa_node_params*, expecting
15869 fbi->info to be filled in. Replace throughout. Adjust call to
15870 ipa_load_from_parm_agg.
15871 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
15872 instead of struct ipa_node_params*. Adjust calls to other functions
15873 so that they pass either fbi or fbi->info.
15874 (set_switch_stmt_execution_predicate): Likewise.
15875 (will_be_nonconstant_predicate): Likewise.
15876 (compute_bb_predicates): Likewise.
15877 (estimate_function_body_sizes): Move asserts earlier. Fill in
15878 struct func_body_info, replace parms_info with fbi.info. Adjust
15879 calls to functions that now accept struct func_body_info.
15880 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
15881 (struct func_body_info): Likewise.
15882 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
15883 remove static. Adjust callers.
15884 (ipa_load_from_parm_agg): Remove.
15885 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
15886 (func_body_info): Likewise.
15887 (ipa_load_from_parm_agg): Adjust prototype.
15889 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15891 * gensupport.c (rtx_handle_directive): Adjust.
15892 * read-rtl.c (apply_iterators): Take vector to add rtxs to
15893 instead of expr list rtx.
15894 (add_define_attr_for_define_subst): Likewise.
15895 (add_define_subst_attr): Likewise.
15896 (read_subst_mapping): Likewise.
15897 (read_rtx): Likewise.
15898 * rtl.h (read_rtx): Adjust.
15900 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15902 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
15904 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
15907 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
15908 (*tls_local_dynamic_base_64_<mode>): Ditto.
15909 (*tls_local_dynamic_base_64_largepic): Ditto.
15910 (tls_global_dynamic_64_<mode>): Update expander pattern.
15911 (tls_local_dynamic_base_64_<mode>): Ditto.
15913 2015-07-15 Richard Biener <rguenther@suse.de>
15915 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
15916 and bool_var == 1 -> bool_var simplifications ...
15917 * match.pd: ... to patterns here. Factor out negate_expr_p
15918 cases from the A - B -> A + (-B) patterns as negate_expr_p
15919 predicate and add a -(A + B) -> (-B) - A pattern.
15921 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
15923 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
15925 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
15926 Robert Suchanek <robert.suchanek@imgtec.com>
15928 * config/mips/mips.c (mips_int_mask): New enum.
15929 (mips_shadow_set): Likewise.
15930 (int_mask): New variable.
15931 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
15932 (machine_function): Add int_mask and use_shadow_register_set.
15933 (mips_attribute_table): Add attribute handlers for interrupt and
15934 use_shadow_register_set.
15935 (mips_interrupt_mask): New static function.
15936 (mips_handle_interrupt_attr): Likewise.
15937 (mips_handle_use_shadow_register_set_attr): Likewise.
15938 (mips_use_shadow_register_set): Change return type to enum
15939 mips_shadow_set. Add argument handling for use_shadow_register_set
15941 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
15942 compare with mips_shadow_set enum.
15943 (mips_compute_frame_info): Add interrupt mask and
15944 use_shadow_register_set to per-function information structure.
15945 Add a stack slot for EPC unconditionally.
15946 (mips_expand_prologue): Compare use_shadow_register_set value
15947 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
15948 masked interrupt register but in EIC mode use K0 and save Cause in K0.
15949 EPC saved and restored unconditionally. Use PMODE_INSN macro when
15950 copying the stack pointer from the shadow register set.
15951 * config/mips/mips.h (SR_IM0): New define.
15952 * config/mips/mips.md (mips_rdpgpr): Rename to...
15953 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
15954 * doc/extend.texi (Declaring Attributes of Functions): Document
15955 optional arguments for interrupt and use_shadow_register_set
15958 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
15960 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
15961 interrupt attribute.
15962 (mips_expand_prologue): Disable the floating point unit in an ISR.
15963 * config/mips/mips.h (SR_COP1): New define.
15965 2015-07-15 Richard Biener <rguenther@suse.de>
15967 * genmatch.c (parser::peek, parser::peek_ident): Add argument
15968 to tell how many tokens to peek ahead (default 1).
15969 (parser::eat_token, parser::eat_ident): Return token consumed.
15970 (parser::parse_result): Parse new switch statement.
15971 * match.pd: Use case statements where appropriate.
15973 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
15975 PR rtl-optimization/58066
15976 * calls.c (expand_call): Precompute register parameters before stack
15977 alignment is performed.
15979 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
15981 PR rtl-optimization/66838
15982 * postreload.c (reload_cse_move2add): Also process
15983 CALL_INSN_FUNCTION_USAGE when resetting information of
15984 call-clobbered registers.
15986 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
15987 Cesar Philippidis <cesar@codesourcery.com>
15988 Chung-Lin Tang <cltang@codesourcery.com>
15990 * config/nios2/constraints.md (U, v): New constraints.
15991 * config/nios2/predicates.md (rdprs_dcache_operand): New.
15992 (ldstex_memory_operand): New.
15993 * config/nios2/sync.md: New file.
15994 * config/nios2/nios2.md (unspecv): Add new builtin function
15996 (rdprs, flushd, flushda, wrpie, eni): New patterns.
15997 (top-level): Include sync.md.
15998 * config/nios2/nios2.c (N2_FTYPES): Add function types for
16000 (N2_BUILTINS): Add arch field setting, add new builtins.
16001 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
16003 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
16004 Also handle ldex/stex/ldsex/stsex builtins.
16005 (nios2_expand_rdprs_builtin): New function.
16006 (nios2_expand_cache_builtin): New function.
16007 (nios2_expand_wrpie_builtin): New function.
16008 (nios2_expand_eni_builtin): New function.
16009 (nios2_expand_builtin): Add arch field handling and new builtin
16011 * doc/extend.texi (Altera Nios II Built-in Functions): Document
16013 * doc/md.texi (Machine Constraints): Document U and v constraints.
16015 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16016 Cesar Philippidis <cesar@codesourcery.com>
16017 Chung-Lin Tang <cltang@codesourcery.com>
16019 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
16020 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
16021 callee_save_reg_size and uses_anonymous_args fields.
16022 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
16023 (nios2_create_cfa_notes): New function.
16024 (nios2_adjust_stack): New function for adjusting stack.
16025 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
16026 Use nios2_adjust_stack.
16027 (nios2_expand_epilogue): Likewise.
16028 (nios2_expand_return): New function.
16029 (nios2_can_use_return_insn): Update for CDX pop.n usage.
16030 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
16031 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
16032 * config/nios2/nios2.md (return): Use nios2_expand_return.
16034 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16035 Cesar Philippidis <cesar@codesourcery.com>
16036 Chung-Lin Tang <cltang@codesourcery.com>
16038 * config/nios2/predicates.md (pop_operation): New.
16039 (ldwm_operation, stwm_operation): New.
16040 (nios2_hard_register_operand): New.
16041 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
16042 (ldstwm_operation_p): Declare.
16043 (gen_ldstwm_peep): Declare.
16044 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
16045 (base_reg_adjustment_p): New.
16046 (pop_operation_p): New.
16047 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
16048 (nios2_ldstwm_regset_p): New.
16049 (ldstwm_operation_p): New.
16051 (nios2_ldst_parallel): New.
16052 (struct ldswm_operand): Declare.
16053 (compare_ldstwm_operands): New.
16054 (can_use_cdx_ldstw): New.
16055 (gen_ldstwm_peep): New.
16056 * config/nios2/nios2-ldstwm.sml: New.
16057 * config/nios2/nios2.md: Include ldstwm.md.
16058 * config/nios2/ldstwm.md: Generated.
16060 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16061 Cesar Philippidis <cesar@codesourcery.com>
16062 Chung-Lin Tang <cltang@codesourcery.com>
16064 * config/nios2/nios2.h (LABEL_ALIGN): Define.
16065 (REG_ALLOC_ORDER): Define.
16066 (ADJUST_REG_ALLOC_ORDER): Define.
16067 (HONOR_REG_ALLOC_ORDER): Define.
16068 (CDX_REG_P): Define.
16069 (ANDCLEAR_INT): Define.
16070 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
16071 (nios2_label_align): Declare.
16072 (nios2_cdx_narrow_form_p): Declare.
16073 (nios2_adjust_reg_alloc_order): Declare.
16074 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
16076 (nios2_large_unspec_reloc_p): New function, split from...
16077 (nios2_legitimate_pic_operand_p): ...here.
16078 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
16079 (nios2_print_operand_punct_valid_p): New.
16080 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
16081 (split_mem_address): New.
16082 (split_alu_insn): New.
16084 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
16085 (enum nios2_add_insn_kind): New.
16086 (nios2_add_insn_names, nios2_add_insn_narrow): New.
16087 (nios2_add_insn_classify): New.
16088 (nios2_add_insn_asm): New.
16089 (nios2_cdx_narrow_form_p): New.
16090 (label_align, min_labelno, max_labelno): New.
16091 (nios2_reorg): New.
16092 (nios2_label_align): New.
16093 (nios2_adjust_reg_alloc_order): New.
16094 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
16095 (TARGET_MACHINE_DEPENDENT_REORG): Define.
16096 * config/nios2/constraints.md (P): New constraint.
16097 * config/nios2/predicates.md (const_and_operand): New.
16098 (and_operand): New.
16099 (stack_memory_operand): New.
16100 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
16101 (length): Update to use nios2_cdx_narrow_form_p().
16102 (type): Add new insn type values.
16103 (control, alu, st, ld, shift): Update insn reservations with
16104 new insn type values.
16105 (*high, *lo_sum): Define new insn patterns for constant generation.
16106 (movqi_internal, movhi_internal, movsi_internal): Reduce
16107 alternatives, update asm template to handle CDX variants, update
16109 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
16110 template, update type attributes.
16111 (extendhisi2, extendqi<mode>2): Likewise.
16112 (addsi3): Change to use function for asm string.
16113 (subsi3): Add CDX notation to asm template, update type attributes.
16114 (negsi3, one_cmplsi3): Likewise.
16115 (andsi3): New pattern, specialized from logical patterns.
16116 (<code>si3): Remove and case, combine alternatives, update asm
16118 (<shift_op>si3): Add CDX notation, update type attributes.
16119 (rotrsi3): Update type attribute.
16120 (*merge, extzv, insv): New insn patterns.
16121 (return): Change to define_expand.
16122 (simple_return): Add CDX notation, update type attributes.
16123 (indirect_jump): Add CDX notation.
16124 (jump): Update asm cases, update length attribute expression.
16125 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
16126 (nios2_cbranch): Update asm cases and length attribute expression
16127 to handle CDX variants.
16128 (nios2_cmp<code>): Update asm template.
16129 (nop): Add CDX notation, update type attributes.
16130 (trap): Add CDX notation.
16131 (ctrapsi4): Update asm cases and length attribute expression to
16132 handle CDX variant.
16133 * doc/md.texi (Machine Constraints): Document P constraint.
16135 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16136 Cesar Philippidis <cesar@codesourcery.com>
16137 Chung-Lin Tang <cltang@codesourcery.com>
16139 * config/nios2/nios2.h (SMALL_INT12): New macro.
16140 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
16141 (nios2_valid_addr_expr_p): Use it.
16142 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
16143 with implicit "io" instructions on R2.
16144 * config/nios2/constraints.md (w): New constraint.
16145 * config/nios2/predicates.md (ldstio_memory_operand): New.
16146 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
16147 operand predicate and constraint.
16148 (ld<bh>io_signed, st<bhw>io>): Likewise.
16149 * doc/md.texi (Machine Constraints): Document w constraint.
16151 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16152 Cesar Philippidis <cesar@codesourcery.com>
16153 Chung-Lin Tang <cltang@codesourcery.com>
16155 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
16156 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
16157 Nios II architecture level.
16158 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
16159 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
16160 (OPTION_DEFAULT_SPECS): Define.
16161 (ASM_SPEC): Add -march= spec strings.
16162 * config/nios2/nios2.c (nios2_option_override): Check for
16163 conflicts involving new options.
16164 * config.gcc (nios2*-*-*): Support --with-arch=.
16165 * doc/invoke.texi (Option Summary, Nios II Options): Document
16166 -march=, -mbmx, and -mcdx.
16168 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
16170 PR rtl-optimization/66626
16171 * lra-constraints.c (lra_constraints): Prevent equivalence
16172 substitution for static chain pseudo in functions with nonlocal
16175 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
16177 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
16178 (nios2_emit_stack_limit_check): Add size parameter. Handle
16179 -fstack-limit-symbol as well as -fstack-limit-register.
16180 (nios2_expand_prologue): Emit only a single stack limit check,
16181 even if multiple stack adjustments are required.
16182 (nios2_option_override): Diagnose unsupported combination of -fpic
16183 and -stack-limit-symbol.
16185 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
16187 * Makefile.in (top_srcdir): New.
16188 * configure.ac: Use AM_ZLIB.
16189 * configure: Regeneated.
16191 2015-07-14 Matthias Klose <doko@ubuntu.com>
16194 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
16196 2015-07-14 Richard Biener <rguenther@suse.de>
16198 PR tree-optimization/66863
16199 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
16200 what we record for conversion use stmt lhs inequalities.
16202 2015-07-14 Richard Biener <rguenther@suse.de>
16204 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
16205 (decision_tree::gen_gimple): Likewise.
16207 2015-07-14 Tom de Vries <tom@codesourcery.com>
16209 * gcc.c (greater_than_spec_func): Declare forward.
16210 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
16211 -ftree-parallelize-loops={0,1}.
16212 (static_spec_functions): Add greater_than_spec_func function with name
16214 (greater_than_spec_func): New function.
16216 2015-07-14 Richard Biener <rguenther@suse.de>
16218 * tree-ssa-dom.c (record_temporary_equivalences): Merge
16219 wideing type conversion case from record_equivalences_from_incoming_edge
16220 and use record_equality to record equivalences.
16221 (record_equivalences_from_incoming_edge): Call
16222 record_temporary_equivalences.
16224 2015-07-14 Richard Biener <rguenther@suse.de>
16226 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
16227 (struct if_expr): New.
16228 (struct with_expr): Likewise.
16229 (is_a_helper): Add helpers for if_expr and with_expr.
16230 (struct simplify): Add simplify_kind enum and member. Remove
16232 (simplify::simplify): Adjust.
16233 (lower_commutative): Adjust.
16234 (lower_opt_convert): Likewise.
16235 (lower_cond): Likewise.
16236 (replace_id): Handle with_expr and if_expr.
16237 (lower_for): Adjust.
16238 (dt_simplify::gen_1): New recursive worker, split out from ...
16239 (dt_simplify::gen): ... here. Deal with if and with expansion
16241 (capture_info::capture_info): Take context argument
16242 (capture_info::walk_result): Only analyze specific result.
16243 (parser::parse_result): New function.
16244 (parser::parse_simplify): Adjust to parse ifs with then end
16246 (parser::parse_if): Simplify.
16247 (parser::parse_pattern): Pass down simplify kind.
16248 * match.pd: Convert if structure to new syntax.
16250 2015-07-13 Marek Polacek <polacek@redhat.com>
16252 * rtl.c (rtx_equal_p_cb): Fix typo.
16254 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
16256 * omega.h: Don't include config.h, don't include params.h again if
16257 omega.h has already been included.
16258 * graphite-poly.h: Include sese.h.
16259 * graphite.c: Don't include sese.h, remove needless includes and
16260 minimize includes outside #ifdef HAVE_isl block.
16261 * graphite-blocking.c: Don't include sese.h, remove needless includes,
16262 and wrap entire file in #ifdef HAVE_isl
16263 * graphite-dependences.c: Likewise.
16264 * graphite-interchange.c: Likewise.
16265 * graphite-isl-ast-to-gimple.c: Likewise.
16266 * graphite-optimize-isl.c: Likewise.
16267 * graphite-poly.c: Likewise.
16268 * graphite-scop-detection.c: Likewise.
16269 * graphite-sese-to-poly.c: Likewise.
16271 2015-07-13 Tom de Vries <tom@codesourcery.com>
16273 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
16275 2015-07-13 Renlin Li <renlin.li@arm.com>
16278 * simplify-rtx.c (simplify_const_relational_operation): Add
16279 side_effects_p checks.
16281 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
16283 * bitmap.h: Fix double word typos.
16284 * builtins.c: Same.
16286 * cfgloopmanip.c: Same.
16289 * cgraphclones.c: Same.
16291 * config/aarch64/aarch64-protos.h: Same.
16292 * config/aarch64/aarch64.c: Same.
16293 * config/aarch64/aarch64.md: Same.
16294 * config/arm/arm.md: Same.
16295 * config/arm/arm1020e.md: Same.
16296 * config/arm/arm1026ejs.md: Same.
16297 * config/arm/arm926ejs.md: Same.
16298 * config/arm/fa526.md: Same.
16299 * config/arm/fa606te.md: Same.
16300 * config/arm/fa626te.md: Same.
16301 * config/arm/fa726te.md: Same.
16302 * config/arm/fmp626.md: Same.
16303 * config/darwin.c: Same.
16304 * config/epiphany/epiphany.c: Same.
16305 * config/frv/frv.c: Same.
16306 * config/ft32/ft32.c: Same.
16307 * config/gnu-user.h: Same.
16308 * config/h8300/constraints.md: Same.
16309 * config/i386/i386.c: Same.
16310 * config/i386/i386.md: Same.
16311 * config/iq2000/iq2000.md: Same.
16312 * config/mips/mips.c: Same.
16313 * config/mmix/mmix.md: Same.
16314 * config/moxie/moxie.c: Same.
16315 * config/nds32/nds32.md: Same.
16316 * config/pa/pa.h: Same.
16317 * config/rs6000/aix.h: Same.
16318 * config/rs6000/rs6000.h: Same.
16319 * config/sh/sh.c: Same.
16320 * config/tilegx/tilegx.md: Same.
16321 * config/tilepro/gen-mul-tables.cc: Same.
16324 * doc/invoke.texi: Same.
16326 * dwarf2out.c: Same.
16329 * genmatch.c: Same.
16330 * gimplify.c: Same.
16331 * hash-table.h: Same.
16332 * internal-fn.c: Same.
16334 * ipa-devirt.c: Same.
16337 * ipa-profile.c: Same.
16338 * ipa-prop.c: Same.
16339 * ipa-prop.h: Same.
16342 * reg-stack.c: Same.
16343 * regcprop.c: Same.
16348 * tree-inline.c: Same.
16349 * tree-sra.c: Same.
16350 * tree-ssa-dom.c: Same.
16351 * tree-ssa-loop-ivopts.c: Same.
16352 * tree-ssa-structalias.c: Same.
16353 * tree-ssa-tail-merge.c: Same.
16354 * tree-ssa-ter.c: Same.
16355 * tree-ssa-threadupdate.c: Same.
16356 * tree-ssa-uninit.c: Same.
16357 * tree-ssanames.c: Same.
16358 * tree-vect-loop-manip.c: Same.
16359 * tree-vrp.c: Same.
16361 * valtrack.c: Same.
16364 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
16366 PR middle-end/66726
16367 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
16368 tree_ssa_phiopt_worker): Call it.
16370 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
16372 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
16373 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
16376 2015-07-11 Marek Polacek <polacek@redhat.com>
16378 PR middle-end/66353
16379 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
16380 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
16381 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
16382 rather than bb_has_abnormal_call_pred.
16383 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
16384 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
16385 rather than bb_has_abnormal_call_pred.
16387 2015-07-10 Anatoly Sokolov <aesok@post.ru>
16389 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
16390 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
16391 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
16392 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
16393 v850_legitimate_address_p): New functions.
16394 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
16396 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
16399 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
16400 indirect sibcall with register arguments if register available
16401 for argument passing.
16402 (init_cumulative_args): Set cfun->machine->arg_reg_available
16403 to (cum->nregs > 0) or to true if function has a variable
16405 (function_arg_advance_32): Set cfun->machine->arg_reg_available
16406 to false if cum->nregs <= 0.
16407 * config/i386/i386.h (machine_function): Add arg_reg_available.
16409 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
16411 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
16412 and gen_higpart instead of gen_rtx_SUBREG.
16413 * config/i386/i386.md
16414 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
16415 (read-modify peephole2): Use gen_lowpart instead of
16416 gen_rtx_SUBREG for operand 5.
16418 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
16420 * config/tilepro/gen-mul-tables.cc (main): Change include list for
16422 * config/tilepro/mul-tables.c: Regenerate.
16423 * config/tilegx/mul-tables.c: Regenerate.
16425 2015-07-10 Richard Biener <rguenther@suse.de>
16427 * fold-const.c (distribute_bit_expr): Remove.
16428 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
16429 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
16430 to A & (B | C) and simplifying A << C1 << C2 to ...
16431 * match.pd: ... patterns here.
16433 2015-07-10 Jiong Wang <jiong.wang@arm.com>
16435 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16436 Mark mem as READONLY and NOTRAP for PIC symbol.
16438 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
16440 * gimple-predict.h: New file.
16441 (gimple_predict_predictor, gimple_predict_set_predictor,
16442 gimple_predict_outcome, gimple_predict_set_outcome,
16443 gimple_build_predict): Relocate here.
16444 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
16445 gimple_predict_outcome, gimple_predict_set_outcome): Move to
16447 * gimple.c (gimple_build_predict): Move to gimple-predict.h
16448 * basic-block.h: Don't include cfghooks.h.
16449 * backend.h: Don't include predict.h.
16450 * cfghooks.h: Include predict.h.
16451 * gimple-pretty-print.c: Include gimple-predict.h.
16452 * gimplify.c: Likwise.
16453 * predict.c: Adjust includes.
16454 * tree-inline.c: Likewise.
16455 * asan.c: Likewise.
16456 * auto-inc-dec.c: Likewise.
16457 * auto-profile.c: Likewise.
16458 * bb-reorder.c: Likewise.
16459 * builtins.c: Likewise.
16460 * caller-save.c: Likewise.
16461 * calls.c: Likewise.
16462 * cfganal.c: Likewise.
16463 * cfgbuild.c: Likewise.
16465 * cfgcleanup.c: Likewise.
16466 * cfgexpand.c: Likewise.
16467 * cfghooks.c: Likewise.
16468 * cfgloopanal.c: Likewise.
16469 * cfgloop.c: Likewise.
16470 * cfgloopmanip.c: Likewise.
16471 * cfgrtl.c: Likewise.
16472 * cgraph.c: Likewise.
16473 * cgraphunit.c: Likewise.
16474 * combine.c: Likewise.
16475 * cprop.c: Likewise.
16478 * dojump.c: Likewise.
16480 * except.c: Likewise.
16481 * expmed.c: Likewise.
16482 * expr.c: Likewise.
16483 * final.c: Likewise.
16484 * fold-const.c: Likewise.
16485 * function.c: Likewise.
16486 * fwprop.c: Likewise.
16487 * gcc-plugin.h: Likewise.
16488 * gcse.c: Likewise.
16489 * genattrtab.c: Likewise.
16490 * genemit.c: Likewise.
16491 * gengtype.c: Likewise.
16492 * genopinit.c: Likewise.
16493 * genoutput.c: Likewise.
16494 * genpreds.c: Likewise.
16495 * genrecog.c: Likewise.
16496 * gimple-fold.c: Likewise.
16497 * gimple-iterator.c: Likewise.
16498 * gimple-ssa-isolate-paths.c: Likewise.
16499 * gimple-ssa-strength-reduction.c: Likewise.
16500 * graph.c: Likewise.
16501 * graphite-blocking.c: Likewise.
16502 * graphite.c: Likewise.
16503 * graphite-dependences.c: Likewise.
16504 * graphite-interchange.c: Likewise.
16505 * graphite-isl-ast-to-gimple.c: Likewise.
16506 * graphite-optimize-isl.c: Likewise.
16507 * graphite-poly.c: Likewise.
16508 * graphite-scop-detection.c: Likewise.
16509 * graphite-sese-to-poly.c: Likewise.
16510 * haifa-sched.c: Likewise.
16511 * ifcvt.c: Likewise.
16512 * internal-fn.c: Likewise.
16513 * ipa-cp.c: Likewise.
16514 * ipa-profile.c: Likewise.
16515 * ipa-split.c: Likewise.
16516 * ipa-utils.c: Likewise.
16517 * ira-build.c: Likewise.
16518 * ira-color.c: Likewise.
16519 * ira-conflicts.c: Likewise.
16520 * ira-costs.c: Likewise.
16521 * ira-emit.c: Likewise.
16522 * ira-lives.c: Likewise.
16523 * jump.c: Likewise.
16524 * loop-doloop.c: Likewise.
16525 * loop-init.c: Likewise.
16526 * loop-invariant.c: Likewise.
16527 * loop-unroll.c: Likewise.
16528 * lower-subreg.c: Likewise.
16529 * lra-assigns.c: Likewise.
16531 * lra-coalesce.c: Likewise.
16532 * lra-constraints.c: Likewise.
16533 * lra-lives.c: Likewise.
16534 * lto-cgraph.c: Likewise.
16535 * lto-streamer-in.c: Likewise.
16536 * mode-switching.c: Likewise.
16537 * modulo-sched.c: Likewise.
16538 * omp-low.c: Likewise.
16539 * optabs.c: Likewise.
16540 * passes.c: Likewise.
16541 * postreload.c: Likewise.
16542 * postreload-gcse.c: Likewise.
16543 * profile.c: Likewise.
16544 * recog.c: Likewise.
16545 * regstat.c: Likewise.
16546 * reload1.c: Likewise.
16547 * reorg.c: Likewise.
16548 * rtlanal.c: Likewise.
16549 * sched-ebb.c: Likewise.
16550 * sel-sched-ir.c: Likewise.
16551 * sese.c: Likewise.
16552 * shrink-wrap.c: Likewise.
16553 * simplify-rtx.c: Likewise.
16554 * stmt.c: Likewise.
16555 * store-motion.c: Likewise.
16556 * tracer.c: Likewise.
16557 * trans-mem.c: Likewise.
16558 * tree-call-cdce.c: Likewise.
16559 * tree-cfg.c: Likewise.
16560 * tree-cfgcleanup.c: Likewise.
16561 * tree-chkp.c: Likewise.
16562 * tree-complex.c: Likewise.
16563 * tree-eh.c: Likewise.
16564 * tree-if-conv.c: Likewise.
16565 * tree-loop-distribution.c: Likewise.
16566 * tree-outof-ssa.c: Likewise.
16567 * tree-parloops.c: Likewise.
16568 * tree-predcom.c: Likewise.
16569 * tree-pretty-print.c: Likewise.
16570 * tree-profile.c: Likewise.
16571 * tree-sra.c: Likewise.
16572 * tree-ssa.c: Likewise.
16573 * tree-ssa-coalesce.c: Likewise.
16574 * tree-ssa-dce.c: Likewise.
16575 * tree-ssa-dom.c: Likewise.
16576 * tree-ssa-forwprop.c: Likewise.
16577 * tree-ssa-ifcombine.c: Likewise.
16578 * tree-ssa-loop-ch.c: Likewise.
16579 * tree-ssa-loop-im.c: Likewise.
16580 * tree-ssa-loop-ivcanon.c: Likewise.
16581 * tree-ssa-loop-ivopts.c: Likewise.
16582 * tree-ssa-loop-manip.c: Likewise.
16583 * tree-ssa-loop-prefetch.c: Likewise.
16584 * tree-ssa-loop-unswitch.c: Likewise.
16585 * tree-ssa-math-opts.c: Likewise.
16586 * tree-ssa-phiopt.c: Likewise.
16587 * tree-ssa-pre.c: Likewise.
16588 * tree-ssa-reassoc.c: Likewise.
16589 * tree-ssa-sink.c: Likewise.
16590 * tree-ssa-tail-merge.c: Likewise.
16591 * tree-ssa-threadedge.c: Likewise.
16592 * tree-ssa-threadupdate.c: Likewise.
16593 * tree-switch-conversion.c: Likewise.
16594 * tree-tailcall.c: Likewise.
16595 * tree-vect-data-refs.c: Likewise.
16596 * tree-vect-loop.c: Likewise.
16597 * tree-vect-loop-manip.c: Likewise.
16598 * tree-vectorizer.c: Likewise.
16599 * tree-vrp.c: Likewise.
16600 * ubsan.c: Likewise.
16601 * value-prof.c: Likewise.
16602 * varasm.c: Likewise.
16603 * var-tracking.c: Likewise.
16604 * config/aarch64/aarch64-builtins.c: Likewise.
16605 * config/aarch64/aarch64.c: Likewise.
16606 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
16607 * config/alpha/alpha.c: Likewise.
16608 * config/arc/arc.c: Likewise.
16609 * config/arm/arm.c: Likewise.
16610 * config/avr/avr.c: Likewise.
16611 * config/bfin/bfin.c: Likewise.
16612 * config/c6x/c6x.c: Likewise.
16613 * config/cr16/cr16.c: Likewise.
16614 * config/cris/cris.c: Likewise.
16615 * config/darwin.c: Likewise.
16616 * config/darwin-c.c: Likewise.
16617 * config/epiphany/epiphany.c: Likewise.
16618 * config/epiphany/mode-switch-use.c: Likewise.
16619 * config/epiphany/resolve-sw-modes.c: Likewise.
16620 * config/fr30/fr30.c: Likewise.
16621 * config/frv/frv.c: Likewise.
16622 * config/ft32/ft32.c: Likewise.
16623 * config/h8300/h8300.c: Likewise.
16624 * config/i386/i386.c: Likewise.
16625 * config/i386/winnt.c: Likewise.
16626 * config/ia64/ia64.c: Likewise.
16627 * config/iq2000/iq2000.c: Likewise.
16628 * config/lm32/lm32.c: Likewise.
16629 * config/m32c/m32c.c: Likewise.
16630 * config/m32r/m32r.c: Likewise.
16631 * config/m68k/m68k.c: Likewise.
16632 * config/mcore/mcore.c: Likewise.
16633 * config/mep/mep.c: Likewise.
16634 * config/microblaze/microblaze.c: Likewise.
16635 * config/mips/mips.c: Likewise.
16636 * config/mmix/mmix.c: Likewise.
16637 * config/mn10300/mn10300.c: Likewise.
16638 * config/moxie/moxie.c: Likewise.
16639 * config/msp430/msp430.c: Likewise.
16640 * config/nds32/nds32.c: Likewise.
16641 * config/nds32/nds32-cost.c: Likewise.
16642 * config/nds32/nds32-fp-as-gp.c: Likewise.
16643 * config/nds32/nds32-intrinsic.c: Likewise.
16644 * config/nds32/nds32-isr.c: Likewise.
16645 * config/nds32/nds32-md-auxiliary.c: Likewise.
16646 * config/nds32/nds32-memory-manipulation.c: Likewise.
16647 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
16648 * config/nds32/nds32-predicates.c: Likewise.
16649 * config/nios2/nios2.c: Likewise.
16650 * config/nvptx/nvptx.c: Likewise.
16651 * config/pa/pa.c: Likewise.
16652 * config/pdp11/pdp11.c: Likewise.
16653 * config/rl78/rl78.c: Likewise.
16654 * config/rs6000/rs6000.c: Likewise.
16655 * config/rx/rx.c: Likewise.
16656 * config/s390/s390.c: Likewise.
16657 * config/sh/sh.c: Likewise.
16658 * config/sh/sh-mem.cc: Likewise.
16659 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
16660 * config/sh/sh_treg_combine.cc: Likewise.
16661 * config/sparc/sparc.c: Likewise.
16662 * config/spu/spu.c: Likewise.
16663 * config/stormy16/stormy16.c: Likewise.
16664 * config/tilegx/tilegx.c: Likewise.
16665 * config/tilepro/tilepro.c: Likewise.
16666 * config/v850/v850.c: Likewise.
16667 * config/vax/vax.c: Likewise.
16668 * config/visium/visium.c: Likewise.
16669 * config/xtensa/xtensa.c: Likewise.
16671 2015-07-10 Richard Biener <rguenther@suse.de>
16673 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
16674 (decision_tree::gen_gimple): Likewise.
16675 (decision_tree::gen_generic): Likewise.
16677 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
16680 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
16681 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
16683 2015-07-10 Jakub Jelinek <jakub@redhat.com>
16685 PR middle-end/66820
16686 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
16687 or ORT_TASK contexts.
16688 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
16691 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16693 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
16696 2015-07-10 Tom de Vries <tom@codesourcery.com>
16698 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
16699 insert nit + 1 bound.
16701 2015-07-10 Richard Biener <rguenther@suse.de>
16703 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
16704 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
16705 (if_convertible_loop_p_1): For this always compute bb predicates.
16706 (if_convertible_loop_p): And free them.
16708 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16710 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
16713 2015-07-10 Richard Biener <rguenther@suse.de>
16715 PR tree-optimization/66823
16716 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
16717 inverted predicate.
16719 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
16721 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
16722 to handle mips[32|64]r3 and mips[32|64]r5.
16724 2015-07-09 Jakub Jelinek <jakub@redhat.com>
16726 PR middle-end/66633
16727 * tree-nested.c (get_static_chain): Or in a flag into
16728 info->static_chain_added.
16729 (get_frame_field, get_nonlocal_debug_decl): Likewise.
16730 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
16731 2015-07-01 changes.
16732 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
16733 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
16736 PR tree-optimization/66718
16737 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
16739 (vect_simd_lane_linear): New function.
16740 (vectorizable_simd_clone_call): Support using linear arguments for
16741 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
16743 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16746 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
16748 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
16750 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
16751 Use machine mode, not enum machine_mode in the prototype.
16753 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
16754 classify 128-bit floating point support.
16755 (FLOAT128_IBM_P): Likewise.
16756 (FLOAT128_VECTOR_P): Likewise.
16757 (FLOAT128_2REG_P): Likewise.
16758 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
16759 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
16760 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
16761 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
16763 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
16764 tests against TFmode/TDmode, since those modes do not use VSX
16766 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
16768 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
16769 tests against TFmode, etc.
16770 (invalid_e500_subreg): Add tests against IFmode/KFmode.
16771 (reg_offset_addressing_ok_p): Likewise.
16772 (rs6000_legitimate_offset_address_p): Likewise.
16773 (rs6000_legitimize_address): Likewise.
16774 (rs6000_legitimize_reload_address): Likewise.
16775 (rs6000_legitimate_address_p): Clean up tests against TFmode and
16776 TDmode to use the new helper macros, which will include IFmode and
16778 (rs6000_emit_move): Likewise.
16779 (rs6000_darwin64_record_arg_recurse): Likewise.
16780 (print_operand): Likewise.
16781 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
16782 that uses a single vector register as a vector and not as a
16783 floating point register in terms of the calling sequence.
16784 (rs6000_discover_homogeneous_aggregate): Likewise.
16785 (rs6000_return_in_memory): Likewise.
16786 (init_cumulative_args): Likewise.
16787 (rs6000_function_arg_boundary): Likewise.
16788 (rs6000_function_arg_advance_1): Likewise.
16789 (rs6000_function_arg): Likewise.
16790 (rs6000_pass_by_reference): Likewise.
16791 (rs6000_gimplify_va_arg): Likewise.
16792 (rs6000_secondary_reload_memory): Use machine_mode not enum
16794 (rs6000_split_multireg_move): Use new helper macros.
16795 (spe_func_has_64bit_regs_p): Likewise.
16796 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
16797 (output_toc): Use new helper macros.
16798 (rs6000_register_move_cost): Likewise.
16799 (rs6000_function_value): Add IEEE 128-bit floating point calling
16801 (rs6000_libcall_value): Likewise.
16802 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
16803 floating point support.
16804 (rs6000_vector_mode_supported_p): Likewise.
16806 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
16808 PR rtl-optimization/66782
16809 * lra-int.h (struct lra_insn_recog_data): Add comment about
16810 clobbered hard regs for arg_hard_regs.
16811 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
16812 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
16813 Add condition for processing used hard regs.
16814 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
16815 Process clobbered hard regs.
16817 2015-07-09 Michael Matz <matz@suse.de>
16819 * genmatch.c (fprintf_indent): New function.
16820 (operand::gen_transform): Add indent parameter.
16821 (expr::gen_transform, c_expr::gen_transform,
16822 capture::gen_transform): Ditto and use fprintf_indent.
16823 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
16824 (dt_operand::gen, dt_operand::gen_predicate,
16825 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
16826 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
16827 (decision_tree::gen_gimple): Adjust calls and indent generated
16829 (decision_tree::gen_generic): Ditto.
16830 (write_predicate): Ditto.
16832 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
16835 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
16836 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
16837 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
16838 {GENERAL,SSE,MMX}_REG_P where appropriate.
16840 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
16842 * lto-streamer.h: Don't include target.h and alloc-pool.h.
16843 * builtins.c: Adjust includes.
16844 * gimple.c: Likewise.
16845 * ipa-icf.c: Likewise.
16846 * lto-opts.c: Likewise.
16847 * ipa-reference.c: Likewise.
16848 * lto-section-out.c: Likewise.
16849 * lto-streamer-in.c: Likewise.
16850 * lto-streamer-out.c: Likewise.
16851 * opts-global.c: Likewise.
16852 * symtab.c: Likewise.
16853 * tree-chkp.c: Likewise.
16854 * tree-ssa-live.c: Likewise.
16855 * tree-streamer-in.c: Likewise.
16856 * tree-streamer-out.c: Likewise.
16857 * config/darwin.c: Likewise.
16858 * config/i386/winnt.c: Likewise.
16860 2015-07-09 Richard Biener <rguenther@suse.de>
16862 * genmatch.c (struct expr): Add force_single_use flag.
16863 (expr::expr): Add copy constructor.
16864 (capture_info::walk_match): Gather force_single_use captures.
16865 (expr::gen_transform): Use possibly NULLified sequence.
16866 (dt_simplify::gen): Apply single-use restrictions by NULLifying
16867 seq if any constrained expr is not single-use.
16868 (parser::parse_expr): Refactor to allow multiple flags. Handle
16869 's' flag to force an expression have a single-use if the pattern
16870 simplifies to more than one statement.
16871 * match.pd: Convert most single_use conditionals to :s flags.
16873 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16875 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
16876 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
16877 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
16879 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
16881 * flags.h: Don't include flag-types.h or options.h.
16882 * opts-common.c: Adjust includes.
16883 * opts-global.c: Likewise.
16884 * common/config/epiphany/epiphany-common.c: Likewise.
16886 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16889 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
16892 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
16895 * config/i386/i386.c (ix86_return_in_memory): Return true
16896 if int_size_in_bytes returns negative for IA MCU.
16898 2015-07-09 Marek Polacek <polacek@redhat.com>
16900 PR tree-optimization/66718
16901 * Makefile.in (OBJS): Add gimple-laddress.o.
16902 * passes.def: Schedule pass_laddress.
16903 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
16904 * tree-pass.h (make_pass_laddress): Declare.
16905 * gimple-laddress.c: New file.
16907 2015-07-09 Richard Biener <rguenther@suse.de>
16909 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
16911 2015-07-09 Richard Biener <rguenther@suse.de>
16913 PR tree-optimization/66807
16914 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
16916 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
16918 * function.c (stack_protect_epilogue): Use if rather than switch for
16919 check targetm.have_stack_protect_test.
16921 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16923 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
16924 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
16925 * config/arc/arc.h: Likewise.
16926 * config/arm/arm.h: Likewise.
16927 * config/bfin/bfin.h: Likewise.
16928 * config/epiphany/epiphany.h: Likewise.
16929 * config/frv/frv.h: Likewise.
16930 * config/ia64/ia64.h: Likewise.
16931 * config/iq2000/iq2000.h: Likewise.
16932 * config/lm32/lm32.h: Likewise.
16933 * config/m32r/m32r.h: Likewise.
16934 * config/mcore/mcore.h: Likewise.
16935 * config/mep/mep.h: Likewise.
16936 * config/microblaze/microblaze.h: Likewise.
16937 * config/mips/mips.h: Likewise.
16938 * config/mmix/mmix.h: Likewise.
16939 * config/mn10300/mn10300.h: Likewise.
16940 * config/nds32/nds32.h: Likewise.
16941 * config/nios2/nios2.h: Likewise.
16942 * config/pa/pa.h: Likewise.
16943 * config/rl78/rl78.h: Likewise.
16944 * config/sh/sh.h: Likewise.
16945 * config/sparc/sparc.h: Likewise.
16946 * config/stormy16/stormy16.h: Likewise.
16947 * config/tilegx/tilegx.h: Likewise.
16948 * config/tilepro/tilepro.h: Likewise.
16949 * config/v850/v850.h: Likewise.
16950 * config/xtensa/xtensa.h: Likewise.
16951 * doc/tm.texi: Regenerate.
16952 * doc/tm.texi.in: Adjust.
16953 * combine.c (simplify_set): Likewise.
16954 (simplify_comparison): Likewise.
16955 * expr.c (store_constructor): Likewise.
16956 * internal-fn.c (expand_arith_overflow): Likewise.
16957 * reload.c (push_reload): Likewise.
16958 (find_reloads): Likewise.
16959 (find_reloads_subreg_address): Likewise.
16960 * reload1.c (eliminate_regs_1): Likewise.
16961 * rtlanal.c (nonzero_bits1): Likewise.
16962 (num_sign_bit_copies1): Likewise.
16963 * simplify-rtx.c (simplify_truncation): Likewise.
16965 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16967 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
16968 of AUTO_INC_DEC with the preprocessor.
16969 * combine.c (combine_instructions): Likewise.
16970 (can_combine_p): Likewise.
16971 (try_combine): Likewise.
16972 * emit-rtl.c (try_split): Likewise.
16973 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16974 * lower-subreg.c (resolve_simple_move): Likewise.
16975 * lra.c (update_inc_notes): Likewise.
16976 * recog.c (asm_operand_ok): Likewise.
16977 (constrain_operands): Likewise.
16978 * regrename.c (scan_rtx_address): Likewise.
16979 * reload.c (update_auto_inc_notes): Likewise.
16980 (reg_inc_found_and_valid_p): Likewise.
16981 * reload1.c (reload): Likewise.
16982 (emit_input_reload_insns): Likewise.
16983 (delete_output_reload): Likewise.
16984 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
16985 * valtrack.c (cleanup_auto_inc_dec): Likewise.
16987 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16989 * rtl.h: Always define AUTO_INC_DEC.
16990 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
16991 * combine.c (combine_instructions): Likewise.
16992 (can_combine_p): Likewise.
16993 (try_combine): Likewise.
16994 * emit-rtl.c (try_split): Likewise.
16995 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
16996 * lower-subreg.c (resolve_simple_move): Likewise.
16997 * lra.c (update_inc_notes): Likewise.
16998 * recog.c (asm_operand_ok): Likewise.
16999 (constrain_operands): Likewise.
17000 * regrename.c (scan_rtx_address): Likewise.
17001 * reload.c (update_auto_inc_notes): Likewise.
17002 (find_equiv_reg): Likewise.
17003 * reload1.c (reload): Likewise.
17004 (reload_as_needed): Likewise.
17005 (choose_reload_regs): Likewise.
17006 (emit_input_reload_insns): Likewise.
17007 (delete_output_reload): Likewise.
17008 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
17009 * valtrack.c (cleanup_auto_inc_dec): Likewise.
17011 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17013 * combine.c (can_combine_def_p): Don't check the value of
17014 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
17015 (combinable_i3pat): Likewise.
17016 (mark_used_regs_combine): Likewise.
17017 * regrename.c (rename_chains): Likewise.
17018 * reload.c (find_reloads_address): Likewise.
17019 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
17021 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17023 * combine.c (update_rsp_from_reg_equal): Don't check if
17024 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
17025 (reg_nonzero_bits_for_combine): Likewise.
17026 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
17028 * config/frv/frv.h: Likewise.
17029 * config/lm32/lm32.h: Likewise.
17030 * config/mep/mep.h: Likewise.
17031 * config/mips/mips.h: Likewise.
17032 * config/rs6000/rs6000.h: Likewise.
17033 * config/sh/sh.h: Likewise.
17034 * config/tilegx/tilegx.h (enum reg_class): Likewise.
17035 * config/tilepro/tilepro.h: Likewise.
17036 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
17037 * doc/tm.texi: Regenerate.
17038 * doc/tm.texi.in: Adjust.
17039 * rtlanal.c (nonzero_bits1): Likewise.
17041 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17043 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
17044 with the preprocessor.
17045 (combine_instructions): Likewise.
17046 (try_combine): Likewise.
17048 (distribute_notes): Likewise.
17050 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
17052 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
17054 (simplify_set): Likewise.
17055 * cse.c (cse_insn): Likewise.
17056 * fold-const.c (fold_single_bit_test): Likewise.
17057 (fold_unary_loc): Likewise.
17058 * postreload.c (reload_cse_simplify_set): Likewise.
17059 (reload_cse_simplify_operands): Likewise.
17061 2015-07-08 Jiong Wang <jiong.wang@arm.com>
17063 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
17064 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
17066 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
17069 * config/i386/x86intrin.h: Include <adxintrin.h> even if
17070 __iamcu__ is defined.
17072 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17074 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
17076 2015-07-08 Iain Sandoe <iain@codesourcery.com>
17079 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
17080 names from preservation.
17082 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
17085 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
17087 (function_arg_advance_32): Don't pass vectors in registers for
17089 (function_arg_32): Likewise.
17090 (ix86_return_in_memory): Don't return vectors in registers for
17093 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
17095 PR middle-end/66334
17096 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
17097 hard regno live at the start of BB with incoming abnormal edges.
17098 * lra-lives.c (process_bb_lives): Ditto.
17100 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
17103 * config/nvptx/mkoffload.c (main): Create an offload image only in
17104 64-bit configurations.
17106 2015-07-08 Martin Liska <mliska@suse.cz>
17109 * tree-sra.c (create_access_1): Call ctor without brackets.
17110 (create_artificial_child_access): Likewise.
17112 2015-07-08 Richard Biener <rguenther@suse.de>
17114 PR tree-optimization/66793
17115 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
17116 Properly split the block after stmts ending it.
17118 2015-07-08 Richard Biener <rguenther@suse.de>
17120 PR tree-optimization/66794
17121 * passes.c (execute_function_todo): Assert that post-dominators
17123 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
17124 Free post-dominators.
17126 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17128 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
17131 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
17133 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
17134 more than or equal 8 and less than 32 when optimizing for size.
17136 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17138 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
17139 COSTS_N_INSNS (1) and increment it appropriately throughout the
17142 2015-07-08 Richard Biener <rguenther@suse.de>
17144 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
17146 2015-07-08 Alan Modra <amodra@gmail.com>
17148 * target.def (rtx_costs): Remove "code" param, add "mode".
17149 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
17150 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
17151 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
17152 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
17153 call. Track mode when given in rtx.
17154 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
17155 (default_address_cost): Pass Pmode to rtx_cost.
17156 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
17157 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
17159 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
17160 (notreg_cost): Add mode param. Use it.
17161 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
17162 mode param and pass to set_src_cost. Update all calls.
17163 (hash_scan_set): Formatting.
17164 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
17165 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
17167 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
17168 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
17169 emit_store_flag): Update set_src_cost and rtx_cost calls.
17170 * auto-inc-dec.c (attempt_change): Likewise.
17171 * calls.c (precompute_register_parameters): Likewise.
17172 * combine.c (expand_compound_operation, make_extraction,
17173 force_to_mode, distribute_and_simplify_rtx): Likewise.
17174 * dojump.c (prefer_and_bit_test): Likewise.
17175 * dse.c (find_shift_sequence): Likewise.
17176 * expr.c (compress_float_constant): Likewise.
17177 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
17178 * ifcvt.c (noce_try_sign_mask): Likewise.
17179 * loop-doloop.c (doloop_optimize): Likewise.
17180 * loop-invariant.c (create_new_invariant): Likewise.
17181 * lower-subreg.c (shift_cost, compute_costs): Likewise.
17182 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
17183 lshift_cheap_p): Likewise.
17184 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
17185 try_replace_in_use, reload_cse_move2add): Likewise.
17186 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
17188 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
17189 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
17190 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
17191 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
17192 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
17193 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
17195 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
17196 * config/arc/arc.c (arc_rtx_costs): Likewise.
17197 * config/arm/arm.c (arm_rtx_costs): Likewise.
17198 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
17199 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
17200 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
17201 * config/cris/cris.c (cris_rtx_costs): Likewise.
17202 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
17203 * config/frv/frv.c (frv_rtx_costs): Likewise.
17204 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
17205 * config/i386/i386.c (ix86_rtx_costs): Likewise.
17206 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
17207 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
17208 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
17209 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
17210 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
17211 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
17212 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
17213 * config/mep/mep.c (mep_rtx_cost): Likewise.
17214 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
17215 * config/mips/mips.c (mips_rtx_costs): Likewise.
17216 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
17217 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
17218 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
17219 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
17220 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
17221 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
17222 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
17223 * config/pa/pa.c (hppa_rtx_costs): Likewise.
17224 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
17225 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
17226 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
17227 * config/s390/s390.c (s390_rtx_costs): Likewise.
17228 * config/sh/sh.c (sh_rtx_costs): Likewise.
17229 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
17230 * config/spu/spu.c (spu_rtx_costs): Likewise.
17231 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
17232 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
17233 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
17234 * config/v850/v850.c (v850_rtx_costs): Likewise.
17235 * config/vax/vax.c (vax_rtx_costs): Likewise.
17236 * config/visium/visium.c (visium_rtx_costs): Likewise.
17237 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
17238 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
17239 "code" param, and pass as outer_code to first rtx_cost call. Pass
17240 mode to rtx_cost calls.
17241 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
17243 (aarch64_rtx_costs_wrapper): Update.
17244 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
17245 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
17247 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
17248 and rtx_cost calls.
17249 (avr_operand_rtx_cost): Similarly.
17250 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
17251 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
17252 * config/mips/mips.c (mips_stack_address_p): Comment typo.
17253 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
17254 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
17255 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
17257 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
17258 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
17259 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
17260 * doc/tm.texi: Regenerate.
17262 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
17264 * tree-core.h: Include symtab.h.
17265 * rtl.h: Include hard-reg-set.h but not flags.h.
17266 (HARD_CONST): Remove condition compilation involving HARD_CONST since
17267 hard-reg-set.h is always included.
17268 * regs.h: Don't include hard-reg-set.h or rtl.h.
17269 * cfg.h: Include dominance.h.
17270 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
17271 * backend.h: New. Aggregate commonly used backend header files.
17272 * gimple-ssa.h: Don't include tree-hasher.h.
17273 * ssa.h: New. Aggregate commonly used SSA header files.
17274 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
17275 * sel-sched-ir.h: Flatten includes.
17276 * lra-int.h: Flatten completely.
17277 * sel-sched-dump.h: Flatten includes.
17278 * ira-int.h: Flatten includes.
17279 * gimple-streamer.h: Remove all includes.
17280 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
17281 * resource.h: Flatten hard-reg-set.h and df.h.
17282 * sched-int.h: Flatten insn-arrt.h and df.h.
17283 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
17284 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
17285 * genattrtab.c (write_header): Adjust generated includes.
17286 * genautomata.c (main): Likewise.
17287 * genconditions.c (write-header): Likewise.
17288 * genemit.c (main): Likewise.
17289 * gengtype.c (open_base_files): Likewise.
17290 * genopinit.c (main): Likewise.
17291 * genoutput.c (output_prologue): Likewise.
17292 * genpeep.c (main): Likewise.
17293 * genpreds.c (write_insn_preds_c): Likewise.
17294 * genrecog.c (write_header): Likewise.
17295 * alias.c: Adjust includes.
17296 * asan.c: Likewise.
17297 * attribs.c: Likewise.
17298 * auto-inc-dec.c: Likewise.
17299 * auto-profile.c: Likewise.
17300 * bb-reorder.c: Likewise.
17301 * bt-load.c: Likewise.
17302 * builtins.c: Likewise.
17303 * caller-save.c: Likewise.
17304 * calls.c: Likewise.
17305 * ccmp.c: Likewise.
17307 * cfganal.c: Likewise.
17308 * cfgbuild.c: Likewise.
17309 * cfgcleanup.c: Likewise.
17310 * cfgexpand.c: Likewise.
17311 * cfghooks.c: Likewise.
17312 * cfgloop.c: Likewise.
17313 * cfgloopanal.c: Likewise.
17314 * cfgloopmanip.c: Likewise.
17315 * cfgrtl.c: Likewise.
17316 * cgraph.c: Likewise.
17317 * cgraphbuild.c: Likewise.
17318 * cgraphclones.c: Likewise.
17319 * cgraphunit.c: Likewise.
17320 * cilk-common.c: Likewise.
17321 * combine-stack-adj.c: Likewise.
17322 * combine.c: Likewise.
17323 * compare-elim.c: Likewise.
17324 * convert.c: Likewise.
17325 * coverage.c: Likewise.
17326 * cppbuiltin.c: Likewise.
17327 * cprop.c: Likewise.
17329 * cselib.c: Likewise.
17330 * data-streamer-in.c: Likewise.
17331 * data-streamer-out.c: Likewise.
17332 * data-streamer.c: Likewise.
17333 * dbxout.c: Likewise.
17336 * debug.c: Likewise.
17337 * df-core.c: Likewise.
17338 * df-problems.c: Likewise.
17339 * df-scan.c: Likewise.
17341 * dojump.c: Likewise.
17342 * dominance.c: Likewise.
17343 * domwalk.c: Likewise.
17344 * double-int.c: Likewise.
17346 * dumpfile.c: Likewise.
17347 * dwarf2asm.c: Likewise.
17348 * dwarf2cfi.c: Likewise.
17349 * dwarf2out.c: Likewise.
17350 * emit-rtl.c: Likewise.
17351 * et-forest.c: Likewise.
17352 * except.c: Likewise.
17353 * explow.c: Likewise.
17354 * expmed.c: Likewise.
17355 * expr.c: Likewise.
17356 * final.c: Likewise.
17357 * fixed-value.c: Likewise.
17358 * fold-const.c: Likewise.
17359 * function.c: Likewise.
17360 * fwprop.c: Likewise.
17361 * gcc-plugin.h: Likewise.
17362 * gcse-common.c: Likewise.
17363 * gcse.c: Likewise.
17364 * generic-match-head.c: Likewise.
17365 * ggc-page.c: Likewise.
17366 * gimple-builder.c: Likewise.
17367 * gimple-expr.c: Likewise.
17368 * gimple-fold.c: Likewise.
17369 * gimple-iterator.c: Likewise.
17370 * gimple-low.c: Likewise.
17371 * gimple-match-head.c: Likewise.
17372 * gimple-pretty-print.c: Likewise.
17373 * gimple-ssa-isolate-paths.c: Likewise.
17374 * gimple-ssa-strength-reduction.c: Likewise.
17375 * gimple-streamer-in.c: Likewise.
17376 * gimple-streamer-out.c: Likewise.
17377 * gimple-walk.c: Likewise.
17378 * gimple.c: Likewise.
17379 * gimplify-me.c: Likewise.
17380 * gimplify.c: Likewise.
17381 * godump.c: Likewise.
17382 * graph.c: Likewise.
17383 * graphite-blocking.c: Likewise.
17384 * graphite-dependences.c: Likewise.
17385 * graphite-interchange.c: Likewise.
17386 * graphite-isl-ast-to-gimple.c: Likewise.
17387 * graphite-optimize-isl.c: Likewise.
17388 * graphite-poly.c: Likewise.
17389 * graphite-scop-detection.c: Likewise.
17390 * graphite-sese-to-poly.c: Likewise.
17391 * graphite.c: Likewise.
17392 * haifa-sched.c: Likewise.
17393 * hw-doloop.c: Likewise.
17394 * ifcvt.c: Likewise.
17395 * init-regs.c: Likewise.
17396 * internal-fn.c: Likewise.
17397 * ipa-chkp.c: Likewise.
17398 * ipa-comdats.c: Likewise.
17399 * ipa-cp.c: Likewise.
17400 * ipa-devirt.c: Likewise.
17401 * ipa-icf-gimple.c: Likewise.
17402 * ipa-icf.c: Likewise.
17403 * ipa-inline-analysis.c: Likewise.
17404 * ipa-inline-transform.c: Likewise.
17405 * ipa-inline.c: Likewise.
17406 * ipa-polymorphic-call.c: Likewise.
17407 * ipa-profile.c: Likewise.
17408 * ipa-prop.c: Likewise.
17409 * ipa-pure-const.c: Likewise.
17410 * ipa-ref.c: Likewise.
17411 * ipa-reference.c: Likewise.
17412 * ipa-split.c: Likewise.
17413 * ipa-utils.c: Likewise.
17414 * ipa-visibility.c: Likewise.
17416 * ira-build.c: Likewise.
17417 * ira-color.c: Likewise.
17418 * ira-conflicts.c: Likewise.
17419 * ira-costs.c: Likewise.
17420 * ira-emit.c: Likewise.
17421 * ira-lives.c: Likewise.
17423 * jump.c: Likewise.
17424 * langhooks.c: Likewise.
17426 * loop-doloop.c: Likewise.
17427 * loop-init.c: Likewise.
17428 * loop-invariant.c: Likewise.
17429 * loop-iv.c: Likewise.
17430 * loop-unroll.c: Likewise.
17431 * lower-subreg.c: Likewise.
17432 * lra-assigns.c: Likewise.
17433 * lra-coalesce.c: Likewise.
17434 * lra-constraints.c: Likewise.
17435 * lra-eliminations.c: Likewise.
17436 * lra-lives.c: Likewise.
17437 * lra-remat.c: Likewise.
17438 * lra-spills.c: Likewise.
17440 * lto-cgraph.c: Likewise.
17441 * lto-compress.c: Likewise.
17442 * lto-opts.c: Likewise.
17443 * lto-section-in.c: Likewise.
17444 * lto-section-out.c: Likewise.
17445 * lto-streamer-in.c: Likewise.
17446 * lto-streamer-out.c: Likewise.
17447 * lto-streamer.c: Likewise.
17449 * mode-switching.c: Likewise.
17450 * modulo-sched.c: Likewise.
17451 * omega.c: Likewise.
17452 * omp-low.c: Likewise.
17453 * optabs.c: Likewise.
17454 * opts-global.c: Likewise.
17455 * passes.c: Likewise.
17456 * plugin.c: Likewise.
17457 * postreload-gcse.c: Likewise.
17458 * postreload.c: Likewise.
17459 * predict.c: Likewise.
17460 * print-rtl.c: Likewise.
17461 * print-tree.c: Likewise.
17462 * profile.c: Likewise.
17463 * real.c: Likewise.
17464 * realmpfr.c: Likewise.
17465 * recog.c: Likewise.
17467 * reg-stack.c: Likewise.
17468 * regcprop.c: Likewise.
17469 * reginfo.c: Likewise.
17470 * regrename.c: Likewise.
17471 * regstat.c: Likewise.
17472 * reload.c: Likewise.
17473 * reload1.c: Likewise.
17474 * reorg.c: Likewise.
17475 * resource.c: Likewise.
17476 * rtl-chkp.c: Likewise.
17477 * rtlanal.c: Likewise.
17478 * rtlhooks.c: Likewise.
17479 * sanopt.c: Likewise.
17480 * sched-deps.c: Likewise.
17481 * sched-ebb.c: Likewise.
17482 * sched-rgn.c: Likewise.
17483 * sched-vis.c: Likewise.
17484 * sdbout.c: Likewise.
17485 * sel-sched-dump.c: Likewise.
17486 * sel-sched-ir.c: Likewise.
17487 * sel-sched.c: Likewise.
17488 * sese.c: Likewise.
17489 * shrink-wrap.c: Likewise.
17490 * simplify-rtx.c: Likewise.
17491 * stack-ptr-mod.c: Likewise.
17492 * stmt.c: Likewise.
17493 * stor-layout.c: Likewise.
17494 * store-motion.c: Likewise.
17495 * stringpool.c: Likewise.
17496 * symtab.c: Likewise.
17497 * target-globals.c: Likewise.
17498 * targhooks.c: Likewise.
17499 * toplev.c: Likewise.
17500 * tracer.c: Likewise.
17501 * trans-mem.c: Likewise.
17502 * tree-affine.c: Likewise.
17503 * tree-browser.c: Likewise.
17504 * tree-call-cdce.c: Likewise.
17505 * tree-cfg.c: Likewise.
17506 * tree-cfgcleanup.c: Likewise.
17507 * tree-chkp-opt.c: Likewise.
17508 * tree-chkp.c: Likewise.
17509 * tree-chrec.c: Likewise.
17510 * tree-complex.c: Likewise.
17511 * tree-data-ref.c: Likewise.
17512 * tree-dfa.c: Likewise.
17513 * tree-diagnostic.c: Likewise.
17514 * tree-dump.c: Likewise.
17515 * tree-eh.c: Likewise.
17516 * tree-emutls.c: Likewise.
17517 * tree-if-conv.c: Likewise.
17518 * tree-inline.c: Likewise.
17519 * tree-into-ssa.c: Likewise.
17520 * tree-iterator.c: Likewise.
17521 * tree-loop-distribution.c: Likewise.
17522 * tree-nested.c: Likewise.
17523 * tree-nrv.c: Likewise.
17524 * tree-object-size.c: Likewise.
17525 * tree-outof-ssa.c: Likewise.
17526 * tree-parloops.c: Likewise.
17527 * tree-phinodes.c: Likewise.
17528 * tree-predcom.c: Likewise.
17529 * tree-pretty-print.c: Likewise.
17530 * tree-profile.c: Likewise.
17531 * tree-scalar-evolution.c: Likewise.
17532 * tree-sra.c: Likewise.
17533 * tree-ssa-address.c: Likewise.
17534 * tree-ssa-alias.c: Likewise.
17535 * tree-ssa-ccp.c: Likewise.
17536 * tree-ssa-coalesce.c: Likewise.
17537 * tree-ssa-copy.c: Likewise.
17538 * tree-ssa-copyrename.c: Likewise.
17539 * tree-ssa-dce.c: Likewise.
17540 * tree-ssa-dom.c: Likewise.
17541 * tree-ssa-dse.c: Likewise.
17542 * tree-ssa-forwprop.c: Likewise.
17543 * tree-ssa-ifcombine.c: Likewise.
17544 * tree-ssa-live.c: Likewise.
17545 * tree-ssa-loop-ch.c: Likewise.
17546 * tree-ssa-loop-im.c: Likewise.
17547 * tree-ssa-loop-ivcanon.c: Likewise.
17548 * tree-ssa-loop-ivopts.c: Likewise.
17549 * tree-ssa-loop-manip.c: Likewise.
17550 * tree-ssa-loop-niter.c: Likewise.
17551 * tree-ssa-loop-prefetch.c: Likewise.
17552 * tree-ssa-loop-unswitch.c: Likewise.
17553 * tree-ssa-loop.c: Likewise.
17554 * tree-ssa-math-opts.c: Likewise.
17555 * tree-ssa-operands.c: Likewise.
17556 * tree-ssa-phiopt.c: Likewise.
17557 * tree-ssa-phiprop.c: Likewise.
17558 * tree-ssa-pre.c: Likewise.
17559 * tree-ssa-propagate.c: Likewise.
17560 * tree-ssa-reassoc.c: Likewise.
17561 * tree-ssa-sccvn.c: Likewise.
17562 * tree-ssa-scopedtables.c: Likewise.
17563 * tree-ssa-sink.c: Likewise.
17564 * tree-ssa-strlen.c: Likewise.
17565 * tree-ssa-structalias.c: Likewise.
17566 * tree-ssa-tail-merge.c: Likewise.
17567 * tree-ssa-ter.c: Likewise.
17568 * tree-ssa-threadedge.c: Likewise.
17569 * tree-ssa-threadupdate.c: Likewise.
17570 * tree-ssa-uncprop.c: Likewise.
17571 * tree-ssa-uninit.c: Likewise.
17572 * tree-ssa.c: Likewise.
17573 * tree-ssanames.c: Likewise.
17574 * tree-stdarg.c: Likewise.
17575 * tree-streamer-in.c: Likewise.
17576 * tree-streamer-out.c: Likewise.
17577 * tree-streamer.c: Likewise.
17578 * tree-switch-conversion.c: Likewise.
17579 * tree-tailcall.c: Likewise.
17580 * tree-vect-data-refs.c: Likewise.
17581 * tree-vect-generic.c: Likewise.
17582 * tree-vect-loop-manip.c: Likewise.
17583 * tree-vect-loop.c: Likewise.
17584 * tree-vect-patterns.c: Likewise.
17585 * tree-vect-slp.c: Likewise.
17586 * tree-vect-stmts.c: Likewise.
17587 * tree-vectorizer.c: Likewise.
17588 * tree-vrp.c: Likewise.
17589 * tree.c: Likewise.
17590 * tsan.c: Likewise.
17591 * ubsan.c: Likewise.
17592 * valtrack.c: Likewise.
17593 * value-prof.c: Likewise.
17594 * var-tracking.c: Likewise.
17595 * varasm.c: Likewise.
17596 * varpool.c: Likewise.
17597 * vmsdbgout.c: Likewise.
17598 * vtable-verify.c: Likewise.
17600 * wide-int.cc: Likewise.
17601 * xcoffout.c: Likewise.
17602 * config/aarch64/aarch64-builtins.c: Likewise.
17603 * config/aarch64/aarch64.c: Likewise.
17604 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
17605 * config/alpha/alpha.c: Likewise.
17606 * config/arc/arc.c: Likewise.
17607 * config/arm/aarch-common.c: Likewise.
17608 * config/arm/arm-builtins.c: Likewise.
17609 * config/arm/arm-c.c: Likewise.
17610 * config/arm/arm.c: Likewise.
17611 * config/avr/avr-c.c: Likewise.
17612 * config/avr/avr-log.c: Likewise.
17613 * config/avr/avr.c: Likewise.
17614 * config/bfin/bfin.c: Likewise.
17615 * config/c6x/c6x.c: Likewise.
17616 * config/cr16/cr16.c: Likewise.
17617 * config/cris/cris.c: Likewise.
17618 * config/darwin-c.c: Likewise.
17619 * config/darwin.c: Likewise.
17620 * config/epiphany/epiphany.c: Likewise.
17621 * config/epiphany/mode-switch-use.c: Likewise.
17622 * config/epiphany/resolve-sw-modes.c: Likewise.
17623 * config/fr30/fr30.c: Likewise.
17624 * config/frv/frv.c: Likewise.
17625 * config/ft32/ft32.c: Likewise.
17626 * config/h8300/h8300.c: Likewise.
17627 * config/i386/i386-c.c: Likewise.
17628 * config/i386/i386.c: Likewise.
17629 * config/i386/msformat-c.c: Likewise.
17630 * config/i386/winnt-cxx.c: Likewise.
17631 * config/i386/winnt-stubs.c: Likewise.
17632 * config/i386/winnt.c: Likewise.
17633 * config/ia64/ia64-c.c: Likewise.
17634 * config/ia64/ia64.c: Likewise.
17635 * config/iq2000/iq2000.c: Likewise.
17636 * config/lm32/lm32.c: Likewise.
17637 * config/m32c/m32c-pragma.c: Likewise.
17638 * config/m32c/m32c.c: Likewise.
17639 * config/m32r/m32r.c: Likewise.
17640 * config/m68k/m68k.c: Likewise.
17641 * config/mcore/mcore.c: Likewise.
17642 * config/mep/mep-pragma.c: Likewise.
17643 * config/mep/mep.c: Likewise.
17644 * config/microblaze/microblaze-c.c: Likewise.
17645 * config/microblaze/microblaze.c: Likewise.
17646 * config/mips/mips.c: Likewise.
17647 * config/mmix/mmix.c: Likewise.
17648 * config/mn10300/mn10300.c: Likewise.
17649 * config/moxie/moxie.c: Likewise.
17650 * config/msp430/msp430-c.c: Likewise.
17651 * config/msp430/msp430.c: Likewise.
17652 * config/nds32/nds32-cost.c: Likewise.
17653 * config/nds32/nds32-fp-as-gp.c: Likewise.
17654 * config/nds32/nds32-intrinsic.c: Likewise.
17655 * config/nds32/nds32-isr.c: Likewise.
17656 * config/nds32/nds32-md-auxiliary.c: Likewise.
17657 * config/nds32/nds32-memory-manipulation.c: Likewise.
17658 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
17659 * config/nds32/nds32-predicates.c: Likewise.
17660 * config/nds32/nds32.c: Likewise.
17661 * config/nios2/nios2.c: Likewise.
17662 * config/nvptx/nvptx.c: Likewise.
17663 * config/pa/pa.c: Likewise.
17664 * config/pdp11/pdp11.c: Likewise.
17665 * config/rl78/rl78-c.c: Likewise.
17666 * config/rl78/rl78.c: Likewise.
17667 * config/rs6000/rs6000-c.c: Likewise.
17668 * config/rs6000/rs6000.c: Likewise.
17669 * config/rx/rx.c: Likewise.
17670 * config/s390/s390-c.c: Likewise.
17671 * config/s390/s390.c: Likewise.
17672 * config/sh/sh-c.c: Likewise.
17673 * config/sh/sh-mem.cc: Likewise.
17674 * config/sh/sh.c: Likewise.
17675 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
17676 * config/sh/sh_treg_combine.cc: Likewise.
17677 * config/sol2-c.c: Likewise.
17678 * config/sol2-cxx.c: Likewise.
17679 * config/sol2-stubs.c: Likewise.
17680 * config/sol2.c: Likewise.
17681 * config/sparc/sparc-c.c: Likewise.
17682 * config/sparc/sparc.c: Likewise.
17683 * config/spu/spu-c.c: Likewise.
17684 * config/spu/spu.c: Likewise.
17685 * config/stormy16/stormy16.c: Likewise.
17686 * config/tilegx/mul-tables.c: Likewise.
17687 * config/tilegx/tilegx-c.c: Likewise.
17688 * config/tilegx/tilegx.c: Likewise.
17689 * config/tilepro/mul-tables.c: Likewise.
17690 * config/tilepro/tilepro-c.c: Likewise.
17691 * config/tilepro/tilepro.c: Likewise.
17692 * config/v850/v850-c.c: Likewise.
17693 * config/v850/v850.c: Likewise.
17694 * config/vax/vax.c: Likewise.
17695 * config/visium/visium.c: Likewise.
17696 * config/vms/vms-c.c: Likewise.
17697 * config/vms/vms.c: Likewise.
17698 * config/vxworks.c: Likewise.
17699 * config/xtensa/xtensa.c: Likewise.
17701 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
17703 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
17704 Remove operand constraints. Change operand 2 predicate to
17705 nonmemory operand. Limit const_int values to mode bitsize. Only
17706 allow const_int values less than 32 when optimizing for size.
17707 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
17708 Remove operand constraints.
17709 (*bt<mode>): Use SImode for const_int values less than 32.
17710 (regmode): Remove mode attribute.
17712 2015-07-07 Anatoly Sokolov <aesok@post.ru>
17714 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
17715 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
17716 moxie_legitimate_address_p): New functions.
17717 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
17719 2015-07-07 Tom de Vries <tom@codesourcery.com>
17721 PR tree-optimization/66642
17722 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
17723 header comment. Rename split_edge variable to edge_at_split. Split
17724 exit edge to create new loop exit bb. Insert loop exit phis in new
17727 2015-07-07 Tom de Vries <tom@codesourcery.com>
17729 * tree-cfg.c (get_virtual_phi): New function.
17730 * tree-cfg.h (get_virtual_phi): Declare.
17731 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
17732 (rewrite_virtuals_into_loop_closed_ssa): New function.
17733 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
17735 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
17736 (transform_to_exit_first_loop_alt): Use
17737 rewrite_virtuals_into_loop_closed_ssa.
17739 2015-07-07 Richard Biener <rguenther@suse.de>
17741 * fold-const.c (fold_binary_loc): Move
17742 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
17743 * match.pd: ... here.
17744 Add (X * C1) % C2 -> 0 simplification pattern derived from
17747 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
17750 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
17751 change for target/65249.
17753 2015-07-07 Paulo Matos <pmatos@broadcom.com>
17755 * symtab.c (address_matters_1): Fix typo in comment above.
17756 (can_increase_alignment_p): Likewise.
17758 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
17760 * function.c (free_after_compilation): Clear PROP_cfg in
17761 f->curr_properties.
17763 2015-07-07 Richard Biener <rguenther@suse.de>
17765 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
17767 (add_control_edge): Remove excessive vertical space in dumping.
17768 (process_ssa_edge_worklist): Simulate at most one statement and
17769 return whether we did. Do not simulate PHIs if they are in a
17770 BB not yet simulated.
17771 (ssa_propagate): Adjust to always drain the BB worklist whenever
17772 a BB is available there, likewise the VARYING edges list before
17773 the interesting edge list.
17775 2015-07-07 Christian Bruel <christian.bruel@st.com>
17778 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
17780 2015-07-07 Richard Biener <rguenther@suse.de>
17782 PR middle-end/66739
17783 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
17786 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
17788 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
17789 modes for operands 0 and 3. Use SImode for operands 2 and 3.
17790 Copy operand 0 to a temporary if !ext_register_operand. Remove
17791 ancient extract_bit_field workaround.
17792 (insv<mode>_1): Rename from mov<mode>_insv_1.
17793 (*insvqi): Rename from *movqi_insv_2.
17794 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
17795 for renamed insvsi_1.
17796 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
17798 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
17800 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
17801 call to nvptx_reorg_subreg.
17803 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
17805 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
17806 * graphite-dependencies.c, graphite-interchange.c,
17807 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
17808 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
17811 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
17813 * match.pd: Remove element_mode inside HONOR_*.
17814 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
17815 (~X | X -> -1, ~X ^ X -> -1): Merge.
17816 * tree.c (build_each_one_cst): New function.
17817 * tree.h (build_each_one_cst): Likewise.
17819 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17821 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
17824 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
17826 * config.gcc <mips*-*-*>: Add fused-madd.opt.
17827 * config/mips/mips.opt (mfused-madd): Remove.
17828 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
17829 * config/mips/mips.h (TARGET_MIPS8000): New.
17830 (ISA_HAS_FP_MADD4_MSUB4): Remove.
17831 (ISA_HAS_FP_MADDF_MSUBF): Remove.
17832 (ISA_HAS_FP_MADD3_MSUB3): Remove.
17833 (ISA_HAS_NMADD4_NMSUB4): Remove.
17834 (ISA_HAS_NMADD3_NMSUB3): Remove.
17835 (ISA_HAS_FUSED_MADD4): New.
17836 (ISA_HAS_UNFUSED_MADD4): New.
17837 (ISA_HAS_FUSED_MADDF): New.
17838 (ISA_HAS_FUSED_MADD3): New.
17839 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
17840 (*fma<mode>4_madd3) New.
17841 (*fma<mode>4_madd4) New.
17842 (*fma<mode>4_maddf) New.
17844 (*fms<mode>4_msub3) New.
17845 (*fms<mode>4_msub4) New.
17847 (*fnma<mode>4_nmadd3) New.
17848 (*fnma<mode>4_nmadd4) New.
17850 (*fnms<mode>4_nmsub3) New.
17851 (*fnms<mode>4_nmsub4) New.
17852 (*madd4<mode>) Modify to be unfused only.
17853 (*msub4<mode>) Modify to be unfused only.
17854 (*nmadd4<mode>) Modify to be unfused only.
17855 (*nmsub4<mode>) Modify to be unfused only.
17856 (*madd3<mode>) Remove.
17857 (*msub3<mode>) Remove.
17858 (*nmadd3<mode>) Remove.
17859 (*nmsub3<mode>) Remove.
17860 (*nmadd3<mode>_fastmath) Remove.
17861 (*nmsub3<mode>_fastmath) Remove.
17862 (*nmadd4<mode>_fastmath) Update condition.
17863 (*nmsub4<mode>_fastmath) Update condition.
17865 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
17868 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
17869 alignment attribute, exploring one level down for records and arrays.
17871 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
17873 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
17874 modes for operands 0 and 1. Use SImode for operands 2 and 3.
17875 Copy operand 1 to a temporary if !ext_register_operand. Remove
17876 ancient extract_bit_field workaround.
17877 (*extv<mode>): Rename from *mov<mode>_extv_1.
17878 (*extvqi): Rename from *movqi_extv_1.
17879 (extzv<mode>): Rename from extzv. Use SWI248 modes for
17880 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
17881 to a temporary if !ext_register_operand. Remove ancient
17882 extract_bit_field workaround.
17883 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
17884 (*extzvqi): Rename from *movqi_extzv_2.
17885 (*testqi_ext_3): Remove modes from const_int_operand predicated
17886 operands. Add "n" constraint.
17887 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
17888 operand. Add "J" constraint.
17889 (*btsq, *btrq, *btcq peephole2s): Remove mode from
17890 const_0_to_63 predicated operand.
17891 (regmode): New insn attribute.
17892 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
17893 to nonmemory_operand. Use regmode insn attribute.
17894 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
17895 (*jcc_bt<mode>_mask): Remove mode from operand 3.
17896 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
17897 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
17898 operands. Use "N" constraint instead of "n".
17900 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
17902 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
17904 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17907 * config/i386/i386.c (iamcu_cost): New.
17908 (m_IAMCU): Likewise.
17909 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
17910 (processor_target_table): Add an entry for "iamcu".
17911 (processor_alias_table): Likewise.
17912 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
17913 (ix86_adjust_cost): Likewise.
17914 (ia32_multipass_dfa_lookahead): Likewise.
17915 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
17916 * config/i386/x86-tune.def: Updated for m_IAMCU.
17918 2015-07-06 Richard Biener <rguenther@suse.de>
17920 PR tree-optimization/66772
17921 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
17922 values are available in the PHI node BB when there are
17923 still unexecutable edges.
17925 2015-07-06 Richard Biener <rguenther@suse.de>
17927 PR tree-optimization/66767
17928 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
17929 Make sure to build the alignment test on a SSA name without
17930 final alignment info valid only if the alignment test
17933 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
17936 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
17937 loop start when inserting LSETUP.
17939 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
17942 * config/i386/i386.c (ix86_option_override_internal): Allow
17943 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
17945 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17947 * read-md.c (decimal_string): Rename to ...
17948 (md_decimal_string): ... this.
17949 (handle_enum): Reflect this.
17951 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
17954 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
17956 2015-07-06 Richard Biener <rguenther@suse.de>
17958 PR middle-end/66759
17959 * match.pd: Add missing constraint of y to REAL_CST in
17960 REAL_CST - x CMP y to y - CST CMP x simplification.
17962 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
17964 PR tree-optimization/66757
17965 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
17967 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
17968 Sandra Loosemore <sandra@codesourcery.com>
17970 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
17971 Delete extern declaration.
17972 (gprel_constant_p): Add extern declaration.
17973 * config/nios2/constraints.md ("S"): Use gprel_constant_p
17974 instead of nios2_symbol_ref_in_small_data_p.
17975 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
17976 (nios2_symbol_ref_in_small_data_p): Make static.
17977 (gprel_constant_p): Make non-static.
17979 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
17981 * doc/fragments.texi (Target Fragment): Convert debian.org
17983 * doc/install.texi (Configuration): Ditto.
17985 2015-07-05 Jakub Jelinek <jakub@redhat.com>
17987 PR tree-optimization/66718
17988 * tree-vect-stmts.c (vectorizable_call): Replace uses of
17989 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
17991 PR tree-optimization/66718
17992 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
17993 vectorizable_load, vectorizable_condition): Move vectype,
17994 nunits, ncopies computation after checking what kind of statement
17997 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
17999 * target-insns.def (extv, extzv, insv): New targetm instruction
18001 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
18003 * recog.c (simplify_while_replacing): Likewise.
18005 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18007 * target-insns.def (doloop_begin, doloop_end): New targetm
18008 instruction patterns.
18009 * loop-init.c: Include target.h.
18010 (pass_loop2::gate): Use the new targetm patterns instead of
18011 HAVE_*/gen_* interface.
18012 (pass_rtl_doloop::gate): Likewise.
18013 (pass_rtl_doloop::execute): Remove preprocessor condition.
18014 * hw-doloop.c: Build unconditionally.
18015 * loop-doloop.c: Likewise.
18016 (doloop_optimize): Use the new targetm patterns instead of
18017 HAVE_*/gen_* interface.
18018 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
18019 * modulo-sched.c (doloop_register_get): Likewise.
18021 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18023 * target-insns.def (clear_cache): New targetm instruction pattern.
18024 * builtins.c (expand_builtin___clear_cache): Use it instead of
18025 HAVE_*/gen_* interface.
18027 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18029 * target-insns.def (allocate_stack, check_stack, probe_stack)
18030 (probe_stack_address, split_stack_prologue, split_stack_space_check):
18031 New targetm instruction patterns.
18032 * explow.c (allocate_dynamic_stack_space): Use them instead of
18033 HAVE_*/gen_* interface.
18034 (emit_stack_probe): Likewise.
18035 (probe_stack_range): Likewise.
18036 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18038 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18040 * target-insns.def (stack_protect_set, stack_protect_test): New
18041 targetm instruction patterns.
18042 * cfgexpand.c (stack_protect_prologue): Use them instead of
18043 HAVE_*/gen_* interface.
18044 * function.c (stack_protect_epilogue): Likewise.
18046 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18048 * expr.h (gen_move_insn_uncast): Delete.
18049 * expr.c (gen_move_insn_uncast): Delete.
18051 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18053 * target-insns.def (restore_stack_block, restore_stack_function)
18054 (restore_stack_nonlocal, save_stack_block, save_stack_function)
18055 (save_stack_nonlocal): New targetm instruction patterns.
18056 * builtins.c (expand_builtin_apply): Use them instead of
18057 HAVE_*/gen_* interface.
18058 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
18060 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18062 * target-insns.def (trap): New targetm instruction pattern.
18063 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
18065 * explow.c (allocate_dynamic_stack_space): Likewise.
18066 * ifcvt.c (find_if_header): Likewise.
18068 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18070 * target-insns.def (prefetch): New targetm instruction pattern.
18071 * tree-ssa-loop-prefetch.c: Include targeth.
18072 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
18073 of HAVE_*/gen_* interface.
18074 * builtins.c (expand_builtin_prefetch): Likewise.
18075 * toplev.c (process_options): Likewise.
18077 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18079 * target-insns.def (untyped_call, untyped_return): New targetm
18080 instruction patterns.
18081 * builtins.c (expand_builtin_apply): Use them instead of
18082 HAVE_*/gen_* interface.
18083 (result_vector): Define unconditionally.
18085 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18087 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
18088 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
18089 (nonlocal_goto_receiver): New targetm instruction patterns.
18090 * builtins.c (expand_builtin_setjmp_setup): Use them instead
18091 of HAVE_*/gen_* interface.
18092 (expand_builtin_setjmp_receiver): Likewise.
18093 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
18094 * except.c (expand_dw2_landing_pad_for_region): Likewise.
18096 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
18098 * target.def: Add code_for_* hooks.
18099 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
18100 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
18101 * target-insns.def (casesi, tablejump): New targetm instruction
18103 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
18104 (do_tablejump): Likewise.
18105 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
18106 (expand_sjlj_dispatch_table): Likewise.
18107 * targhooks.c (default_case_values_threshold): Likewise.
18109 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
18111 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
18112 Use rtx_insn * instead of rtx.
18113 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
18114 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
18115 (nios2_call_tls_get_addr): Likewise.
18116 (nios2_emit_expensive_div): Likewise.
18117 (nios2_emit_move_sequence): Change return type to bool.
18118 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
18119 Change return type to bool.
18121 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
18124 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
18126 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
18129 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
18130 of register_operand. Remove constraint.
18132 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
18134 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
18135 the first argument.
18137 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
18139 * attribs.c (decl_attributes): Guard inform with the return value
18140 of the preceding warning.
18142 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
18144 * doc/invoke.texi (moverride): Move to correct section.
18146 2015-07-03 Richard Biener <rguenther@suse.de>
18148 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
18150 (dt_operand::gen_gimple_expr): After valueizing operands
18151 re-canonicalize operand order for commutative tree codes.
18153 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
18156 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
18158 (__crc32w): Likewise.
18159 (__crc32d): Likewise.
18160 (__rdpmc): Likewise.
18161 (__rdtscp): Likewise.
18162 (_rdpmc): Likewise.
18163 (_rdtscp): Likewise.
18164 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
18167 2015-07-03 Richard Biener <rguenther@suse.de>
18169 * fold-const.c (fold_mathfn_compare): Remove.
18170 (fold_inf_compare): Likewise.
18171 (fold_comparison): Move floating point comparison simplifications...
18172 * match.pd: ... to patterns here. Introduce simple_comparisons
18173 operator list and use it for patterns formerly in fold_comparison.
18175 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
18177 PR tree-optimization/66119
18178 * toplev.c (process_options): Don't set up default values for
18179 the sra_max_scalarization_size_{speed,size} parameters.
18180 * tree-sra (analyze_all_variable_accesses): If no values
18181 have been set for the sra_max_scalarization_size_{speed,size}
18182 parameters, call get_move_ratio to get target defaults.
18184 2015-07-03 Richard Biener <rguenther@suse.de>
18186 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
18187 * match.pd: ... here.
18189 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
18192 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
18193 is not actually the default on FreeBSD.
18195 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18197 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
18199 (CMPGE_8HI): Likewise.
18200 (CMPGE_4SI): Likewise.
18201 (CMPGE_2DI): Likewise.
18202 (CMPGE_U16QI): Likewise.
18203 (CMPGE_U8HI): Likewise.
18204 (CMPGE_U4SI): Likewise.
18205 (CMPGE_U2DI): Likewise.
18206 (CMPLE_16QI): Likewise.
18207 (CMPLE_8HI): Likewise.
18208 (CMPLE_4SI): Likewise.
18209 (CMPLE_2DI): Likewise.
18210 (CMPLE_U16QI): Likewise.
18211 (CMPLE_U8HI): Likewise.
18212 (CMPLE_U4SI): Likewise.
18213 (CMPLE_U2DI): Likewise.
18214 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
18215 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
18216 ALTIVEC_BUILTIN_VEC_CMPLE.
18217 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
18218 floating-point vector modes.
18219 (vector_nlt<mode>): New define_expand.
18220 (vector_nltu<mode>): Likewise.
18221 (vector_ngt<mode>): Likewise.
18222 (vector_ngtu<mode>): Likewise.
18224 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
18226 PR rtl-optimization/66706
18227 * combine.c (make_compound_operation): If an AND of SUBREG of
18228 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
18230 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
18232 * tree-pass.h (make_pass_ch_vect): New.
18233 * passes.def: Add pass_ch_vect just before pass_if_conversion.
18235 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
18236 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
18237 make_pass_ch_vect): New.
18238 (pass_ch): Extend ch_base.
18240 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
18241 (ch_base::copy_headers): ...here.
18243 2015-07-02 Richard Biener <rguenther@suse.de>
18245 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
18246 * fold-const.c (get_pointer_modulus_and_residue): Remove.
18247 (fold_binary_loc): Implement (T)ptr & CST in terms of
18248 get_pointer_alignment_1.
18249 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
18250 Make sure to build the alignment test on a SSA name without
18251 final alignment info valid only after the prologue.
18253 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
18255 * config/cris/cris.md ("epilogue"): Remove condition.
18256 ("prologue"): Ditto.
18258 2015-07-02 Richard Biener <rguenther@suse.de>
18260 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
18261 parameter to record a condition that is false.
18262 (record_conditions): When recording an extra NE_EXPR that is
18263 true also record a EQ_EXPR that is false.
18265 2015-07-02 Bin Cheng <bin.cheng@arm.com>
18267 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
18268 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
18269 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
18270 (set_iv, find_interesting_uses_address, add_candidate_1): New
18271 argument to alloc_iv.
18272 (find_interesting_uses_op, find_interesting_uses_cond): Don't
18273 duplicate struct iv.
18274 (free_loop_data): Don't free struct iv explicitly.
18275 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
18277 2015-07-01 DJ Delorie <dj@redhat.com>
18279 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
18281 (SUPPORTS_DISCRIMINATOR): Define.
18283 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
18286 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
18287 there are no CALLs in the same pattern.
18289 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
18291 PR rtl-optimization/61047
18292 * rtlanal.c (get_initial_register_offset): New function.
18293 (rtx_addr_can_trap_p_1): Check offsets of stack references.
18295 2015-07-01 Richard Biener <rguenther@suse.de>
18297 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
18298 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
18299 ~X CMP C -> X CMP' ~C to ...
18300 * match.pd: ... patterns here.
18302 2015-07-01 Nick Clifton <nickc@redhat.com>
18304 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
18305 a 16-bit value into a 20-bit memory slot.
18307 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18309 * doc/sourcebuild.texi (AArch64-specific attributes): Document
18310 "aarch64_tiny", "aarch64_small", "aarch64_large",
18311 "aarch64_little_endian", "aarch64_big_endian".
18313 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18315 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
18316 Document "aarch64_small_fpic".
18318 2015-07-01 Jiong Wang <jiong.wang@arm.com>
18320 * configure.ac: Add check for aarch64 assembler -fpic relocation
18322 * configure: Regenerate.
18323 * config.in: Regenerate.
18324 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
18325 to -fPIC if not support of -fpic relocation modifier in assembler.
18327 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
18330 * rtl.c (classify_insn): Handle returns in PARALLELs.
18332 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
18334 PR middle-end/66633
18335 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
18336 to true if the function is nested and if not optimizing.
18337 (convert_local_omp_clauses): Initialize need_frame to true if the
18338 function contains nested functions and if not optimizing.
18340 2015-07-01 Richard Biener <rguenther@suse.de>
18342 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
18343 (X & Y) ^ Y -> ~X & Y transforms to ...
18344 * match.pd: ... here.
18346 2015-07-01 Richard Biener <rguenther@suse.de>
18348 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
18349 of converts to avoid uninteresting noise from the conversion
18350 simplifying patterns.
18352 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
18354 * config/c6x/c6x.c (try_rename_operands): Do not depend on
18355 gcc_assert evaluating its argument for side-effect.
18357 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
18360 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
18363 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
18365 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
18366 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
18367 (hash_scc): Add this_ref_p and ref_p parameters and pass them
18368 to the inner DFS walk.
18370 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18372 * target-insns.def (jump): New targetm instruction pattern.
18373 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
18374 instead of gen_jump.
18375 (fix_up_crossing_landing_pad): Likewise.
18376 (add_labels_and_missing_jumps): Likewise.
18377 (fix_crossing_conditional_branches): Likewise.
18378 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
18379 (force_nonfallthru_and_redirect): Likewise.
18380 * cse.c (cse_insn): Likewise.
18381 * expmed.c (expand_divmod): Likewise.
18382 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
18383 * haifa-sched.c (init_before_recovery): Likewise.
18384 (sched_create_recovery_edges): Likewise.
18385 * ifcvt.c (find_cond_trap): Likewise.
18386 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
18387 (expand_float, expand_fix): Likewise.
18388 * stmt.c (emit_jump): Likewise.
18390 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18392 * defaults.h (HAVE_load_multiple, gen_load_multiple)
18393 (HAVE_store_multiple, gen_store_multiple): Delete.
18394 * target-insns.def (load_multiple, store_multiple): New targetm
18395 instruction patterns.
18396 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
18397 of HAVE_*/gen_* interface.
18399 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18401 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
18402 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
18403 (gen_mem_signal_fence): Delete.
18404 * target-insns.def (mem_signal_fence, mem_thread_fence)
18405 (memory_barrier): New targetm instruction patterns.
18406 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
18408 (expand_mem_signal_fence): Likewise.
18410 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
18412 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
18413 * target-insns.def (epilogue, prologue, sibcall_prologue): New
18414 targetm instruction patterns.
18415 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
18417 * calls.c (expand_call): Likewise.
18418 * cfgrtl.c (cfg_layout_finalize): Likewise.
18419 * df-scan.c (df_get_entry_block_def_set): Likewise.
18420 (df_get_exit_block_use_set): Likewise.
18421 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
18422 * final.c (final_start_function): Likewise.
18423 * function.c (thread_prologue_and_epilogue_insns): Likewise.
18424 (reposition_prologue_and_epilogue_notes): Likewise.
18425 * reorg.c (find_end_label): Likewise.
18426 * toplev.c (process_options): Likewise.
18428 2015-06-30 David Malcolm <dmalcolm@redhat.com>
18430 * typed-splay-tree.h: New file.
18432 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
18435 * lra-int.h (lra_substitute_pseudo): Add a parameter.
18436 (lra_substitute_pseudo_within_insn): Ditto.
18437 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
18439 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
18440 to lra_substitute_pseudo.
18441 * lra-lives.c (process_bb_lives): Add an argument to
18442 lra_substitute_pseudo_within_insn call.
18443 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
18444 argument to lra_substitute_pseudo and
18445 lra_substitute_pseudo_within_insn calls.
18446 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
18448 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
18450 * configure: Regenerated.
18452 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
18454 * config.gcc: Support i[34567]86-*-elfiamcu target.
18455 * config/i386/iamcu.h: New.
18456 * config/i386/i386.opt: Add -miamcu.
18457 * doc/invoke.texi: Document -miamcu.
18458 * common/config/i386/i386-common.c (ix86_handle_option): Turn
18459 off x87/MMX/SSE/AVX codegen for -miamcu.
18460 * config/i386/i386-c.c (ix86_target_macros_internal): Define
18461 __iamcu/__iamcu__ for -miamcu.
18462 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
18463 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
18464 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
18465 * config/i386/i386.c (ix86_option_override_internal): Ignore and
18466 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
18467 MCU by default. Default long double to 64-bit for Intel MCU.
18468 Turn on -freg-struct-return for Intel MCU. Issue an error when
18469 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
18471 (function_arg_advance_32): Pass value whose size is no larger
18472 than 8 bytes in registers for Intel MCU.
18473 (function_arg_32): Likewise.
18474 (ix86_return_in_memory): Return value whose size is no larger
18475 than 8 bytes in registers for Intel MCU.
18476 (iamcu_alignment): New function.
18477 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
18479 (ix86_local_alignment): Don't increase alignment for Intel MCU.
18480 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
18483 2015-06-30 Marek Polacek <polacek@redhat.com>
18485 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
18486 both operands of the resulting expression.
18488 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
18489 the final expression with the operand's type and then convert
18490 it to the type of the expression.
18492 2015-06-30 Richard Biener <rguenther@suse.de>
18494 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
18495 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
18496 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
18497 * match.pd: ... to patterns here.
18499 2015-06-30 Richard Biener <rguenther@suse.de>
18501 PR tree-optimization/66704
18502 * tree-vect-data-refs.c (vect_setup_realignment): Use
18503 make_ssa_name for non-SSA name source.
18505 2015-06-30 Jakub Jelinek <jakub@redhat.com>
18507 PR middle-end/66702
18508 * omp-low.c (simd_clone_adjust): Handle addressable linear
18509 or uniform parameters or non-gimple type uniform parameters.
18511 2015-06-30 Richard Biener <rguenther@suse.de>
18513 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
18514 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
18515 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
18516 * match.pd: ... here.
18517 Add a few cases of A - B -> A + (-B) when B "easily" negates.
18518 Move (x & y) | x -> x and friends before
18519 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
18521 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
18523 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
18524 -mfix-ut699 is not specified.
18525 (leon3_load): Rename into...
18526 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
18529 2015-06-30 Marek Polacek <polacek@redhat.com>
18531 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
18532 * match.pd: ... here.
18534 2015-06-30 Richard Biener <rguenther@suse.de>
18536 * target-insns.def (canonicalize_funcptr_for_compare): Add.
18537 * fold-const.c (build_range_check): Replace uses of
18538 HAVE_canonicalize_funcptr_for_compare.
18539 (fold_widened_comparison): Likewise.
18540 (fold_sign_changed_comparison): Likewise.
18541 * dojump.c: Include "target.h".
18542 (do_compare_and_jump): Replace uses of
18543 HAVE_canonicalize_funcptr_for_compare and
18544 gen_canonicalize_funcptr_for_compare.
18545 * expr.c (do_store_flag): Likewise.
18547 2015-06-30 Tom de Vries <tom@codesourcery.com>
18549 PR tree-optimization/66652
18550 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
18551 max_loop_iterations to determine if nit + 1 overflows.
18553 2015-06-30 Richard Biener <rguenther@suse.de>
18555 * tree-vrp.c (register_edge_assert_for_2): Also register
18556 asserts for dominating conversion results.
18558 2015-06-30 Bin Cheng <bin.cheng@arm.com>
18560 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
18561 field in struct iv.
18563 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
18566 * configure.ac: Fix filds and fildq test for 64-bit.
18567 * configure: Regenerated.
18569 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
18571 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
18572 (nvptx_reorg): Here. Keep the non-subreg pieces.
18574 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
18576 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
18577 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
18579 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
18581 * config/i386/i386.md (*jcc_1): Use %! in asm template.
18582 Set attribute "length_nobnd" instead of "length".
18585 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
18587 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
18589 * config/nios2/nios2.c (nios2_delegitimize_address): Make
18590 assert less restrictive.
18592 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
18595 * cgraphunit.c (cgraph_node::finalize_function): Do not call
18596 do_warn_unused_parameter.
18597 * function.c (do_warn_unused_parameter): Move from here.
18598 * function.h (do_warn_unused_parameter): Do not declare.
18600 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18603 * gcc.target/arm/armv-sync-comp-swap.c: New.
18604 * gcc.target/arm/armv-sync-op-acquire.c: New.
18605 * gcc.target/arm/armv-sync-op-full.c: New.
18606 * gcc.target/arm/armv-sync-op-release.c: New.
18608 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18611 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
18612 initial acquire barrier with final barrier.
18614 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18617 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
18618 initial acquire barrier with final barrier.
18620 2015-06-29 Richard Henderson <rth@redhat.com>
18622 * config/i386/constraints.md (Bf): New constraint.
18623 * config/i386/i386-c.c (ix86_target_macros): Define
18624 __GCC_ASM_FLAG_OUTPUTS__.
18625 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
18627 * doc/extend.texi (FlagOutputOperands): Document them.
18629 2015-06-29 Jiong Wang <jiong.wang@arm.com>
18631 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
18632 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
18634 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
18635 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
18636 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
18637 (aarch64_symbol_context): Ditto.
18638 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
18639 and use new pattern name.
18640 (aarch64_expand_mov_immediate): Ditto.
18641 (aarch64_print_operand): Ditto.
18642 (aarch64_classify_tls_symbol): Ditto.
18644 2015-06-29 Marek Polacek <polacek@redhat.com>
18645 Marc Glisse <marc.glisse@inria.fr>
18647 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
18648 * match.pd: ... pattern here.
18650 2015-06-29 Tom de Vries <tom@codesourcery.com>
18652 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
18653 function structure.
18655 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
18657 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
18658 feature description, split out the native option, add a link to
18659 the feature documentation, rearrange and slightly rewrite text.
18660 (Aarch64 options, -mcpu): Likewise.
18661 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
18662 +rdma implies Adv. SIMD.
18664 2015-06-29 Marek Polacek <polacek@redhat.com>
18667 * function.c (stack_protect_epilogue): Remove a cast to int.
18668 * doc/invoke.texi: Update -Wswitch-bool description.
18670 2015-06-29 Richard Biener <rguenther@suse.de>
18672 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
18673 * fold-const.c (fold_binary_loc): Move &A - &B simplification
18674 via ptr_difference_const ...
18675 * match.pd: ... here.
18676 When matching (X ^ Y) == Y also match with swapped operands.
18678 2015-06-29 Richard Biener <rguenther@suse.de>
18680 * lto-streamer.h (LTO_major_version): Bump to 5.
18682 2015-06-29 Richard Biener <rguenther@suse.de>
18684 PR tree-optimization/66677
18685 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
18686 STMT_VINFO_VEC_STMT clobbering less strict.
18688 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
18690 PR middle-end/64130
18691 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
18692 division, compute max and min when value ranges for dividend and
18693 divisor are available.
18695 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
18696 Sandra Loosemore <sandra@codesourcery.com>
18698 * regrename.h (regrename_do_replace): Change to return bool.
18699 * regrename.c (rename_chains): Check return value of
18700 regname_do_replace.
18701 (regrename_do_replace): Re-validate the modified insns and
18702 return bool status.
18703 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
18704 Update to match rename_chains changes.
18705 * config/c6x/c6x.c (try_rename_operands): Assert that
18706 regrename_do_replace returns true.
18708 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
18710 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
18711 operand 2 here. Use copy_addr_to_reg to copy non-index
18712 register operand 2 to a temporary.
18713 (<mode>_stx): Ditto for operand 1.
18714 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
18715 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
18716 (ix86_store_bounds): Ditto.
18718 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
18720 * print-tree.c (print_node) [TREE_VEC]: Print its length.
18722 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
18724 * gimple.c (gimple_call_set_fndecl): Remove.
18725 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
18726 build1_loc directly instead of build_fold_addr_expr_loc.
18728 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
18730 * hash-map.h (hash_map::traverse): Use the definition of the
18731 Key typedef rather than the typedef itself.
18733 2015-06-26 Martin Jambor <mjambor@suse.cz>
18736 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
18737 NULL instead of calling dump_enabled_p.
18739 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18741 * config/aarch64/aarch64.opt: (override): New.
18742 * doc/invoke.texi (override): Document.
18743 * config/aarch64/aarch64.c (aarch64_flag_desc): New
18744 (aarch64_fusible_pairs): Likewise.
18745 (aarch64_tuning_flags): Likewise.
18746 (aarch64_tuning_override_function): Likewise.
18747 (aarch64_tuning_override_functions): Likewise.
18748 (aarch64_parse_one_option_token): Likewise.
18749 (aarch64_parse_boolean_options): Likewise.
18750 (aarch64_parse_fuse_string): Likewise.
18751 (aarch64_parse_tune_string): Likewise.
18752 (aarch64_parse_one_override_token): Likewise.
18753 (aarch64_parse_override_string): Likewise.
18754 (aarch64_override_options): Parse the -override string if it
18757 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18759 * config/aarch64/aarch64-protos.h (tune_params): Remove
18760 const from members.
18761 (aarch64_tune_params): Remove const, change to no longer be
18763 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
18764 change to no longer be a pointer, initialize to generic_tunings.
18765 (aarch64_min_divisions_for_recip_mul): Change dereference of
18766 aarch64_tune_params to member access.
18767 (aarch64_reassociation_width): Likewise.
18768 (aarch64_rtx_mult_cost): Likewise.
18769 (aarch64_address_cost): Likewise.
18770 (aarch64_branch_cost): Likewise.
18771 (aarch64_rtx_costs): Likewise.
18772 (aarch64_register_move_cost): Likewise.
18773 (aarch64_memory_move_cost): Likewise.
18774 (aarch64_sched_issue_rate): Likewise.
18775 (aarch64_builtin_vectorization_cost): Likewise.
18776 (aarch64_override_options): Take a copy of the selected tuning
18777 struct in to aarch64_tune_params, rather than just setting
18778 a pointer, change dereferences of aarch64_tune_params to member
18780 (aarch64_override_options_after_change): Change dereferences of
18781 aarch64_tune_params to member access.
18782 (aarch64_macro_fusion_p): Likewise.
18783 (aarch_macro_fusion_pair_p): Likewise.
18784 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
18786 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18788 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
18789 (aarch64_tune_flags): Likewise.
18790 (AARCH64_TUNE_FMA_STEERING): Likewise.
18791 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
18792 to AARCH64_FL_USE_FMA_STEERING_PASS.
18793 (cortex-a57.cortex-a53): Likewise.
18794 (cortex-a72): Use cortexa72_tunings.
18795 (cortex-a72.cortex-a53): Likewise.
18796 (exynos-m1): Likewise.
18797 * config/aarch64/aarch64-protos.h (tune_params): Add
18798 a field: extra_tuning_flags.
18799 * config/aarch64/aarch64-tuning-flags.def: New.
18800 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
18801 (aarch64_extra_tuning_flags): Likewise.
18802 (aarch64_tune_params): Declare here.
18803 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
18804 (cortexa53_tunings): Likewise.
18805 (cortexa57_tunings): Likewise.
18806 (thunderx_tunings): Likewise.
18807 (xgene1_tunings): Likewise.
18808 (cortexa72_tunings): New.
18809 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
18810 (gate): Check against aarch64_tune_params.
18811 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
18814 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
18816 * config/aarch64/aarch64-fusion-pairs.def: New.
18817 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
18818 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
18819 aarch64_fusion_pairs.
18820 (AARCH64_FUSE_MOV_MOVK): Likewise.
18821 (AARCH64_FUSE_ADRP_ADD): Likewise.
18822 (AARCH64_FUSE_MOVK_MOVK): Likewise.
18823 (AARCH64_FUSE_ADRP_LDR): Likewise.
18824 (AARCH64_FUSE_CMP_BRANCH): Likewise.
18826 2015-06-26 Jiong Wang <jiong.wang@arm.com>
18828 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
18829 SYMBOL_SMALL_GOT_28K.
18830 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
18831 relocation modifiers.
18832 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
18833 (ldr_got_small_28k_<mode>): New.
18834 (ldr_got_small_28k_sidi): New.
18835 * config/aarch64/iterators.md (got_modifier): New mode iterator.
18836 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
18837 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
18838 SYMBOL_SMALL_GOT_28K.
18839 (aarch64_rtx_costs): Add costs for new instruction sequences.
18840 (initialize_aarch64_code_model): Initialize new model.
18841 (aarch64_classify_symbol): Recognize new model and new symbol classification.
18842 (aarch64_asm_preferred_eh_data_format): Support new model.
18843 (aarch64_load_symref_appropriately): Generate new instruction
18844 sequences for -fpic.
18845 (TARGET_USE_PSEUDO_PIC_REG): New definition.
18846 (aarch64_use_pseudo_pic_reg): New function.
18848 2015-06-26 Jiong Wang <jiong.wang@arm.com>
18850 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
18851 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
18852 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
18853 (aarch64_expand_mov_immediate): Ditto.
18854 (aarch64_print_operand): Ditto.
18855 (aarch64_classify_symbol): Ditto.
18857 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
18859 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
18861 2015-06-26 Bin Cheng <bin.cheng@arm.com>
18864 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
18865 assertion failed. Remove assertion itself.
18867 2015-06-26 Richard Biener <rguenther@suse.de>
18869 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
18870 and -A CMP CST -> A CMP -CST which is redundant with a pattern
18872 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
18873 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
18874 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
18875 * match.pd: ... patterns here.
18877 2015-06-26 Marek Polacek <polacek@redhat.com>
18879 * match.pd ((x | y) & ~(x & y) -> x ^ y,
18880 (x | y) & (~x ^ y) -> x & y): New patterns.
18882 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
18884 * rtl.h (emit): Add an optional boolean parameter to control
18885 whether barriers are emitted.
18886 * emit-rtl.c (emit): Likewise.
18887 * gensupport.c (get_emit_function): Return null rather than "emit".
18888 * genemit.c (gen_emit_seq): Handle the null return value.
18889 Don't emit barriers after the final instruction in the sequence.
18890 * gentarget-def.c (main): Don't emit barriers after the instruction.
18892 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18894 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
18895 TARGET_UNIFIED_ASM.
18897 2015-06-26 Richard Biener <rguenther@suse.de>
18899 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
18901 2015-06-26 Richard Biener <rguenther@suse.de>
18903 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
18904 irrespective on whether the inner operation has a single use
18905 of both off are constant.
18907 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
18908 Segher Boessenkool <segher@kernel.crashing.org>
18911 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
18912 before doing PUT_MODE or PUT_CODE on operands to avoid
18913 in-place RTX modification.
18915 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
18917 * gentarget-def.c (def_target_insn): Cast return of strtol to
18920 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18922 * gimple.h (gimple_call_set_fn): Move inline function.
18923 * gimple.c (gimple_call_set_fn): Relocate here.
18925 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
18929 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
18930 the replacement insn will work.
18932 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
18934 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
18937 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
18939 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
18940 * cgraph.h: Include ipa-ref.h and plugin-api.h.
18941 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
18942 (symtab_node::address_can_be_compared_p): Move function.
18943 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
18945 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
18946 * auto-profile.c: Likewise.
18947 * bb-reorder.c: Likewise.
18948 * builtins.c: Likewise.
18949 * calls.c: Likewise.
18950 * cfgexpand.c: Likewise.
18951 * cgraphbuild.c: Likewise.
18952 * cgraphclones.c: Likewise.
18953 * cgraphunit.c: Likewise.
18954 * combine.c: Likewise.
18955 * coverage.c: Likewise.
18956 * data-streamer-in.c: Likewise.
18957 * data-streamer-out.c: Likewise.
18958 * data-streamer.c: Likewise.
18959 * dbxout.c: Likewise.
18960 * dwarf2out.c: Likewise.
18961 * except.c: Likewise.
18962 * expr.c: Likewise.
18963 * final.c: Likewise.
18964 * fold-const.c: Likewise.
18965 * ggc-page.c: Likewise.
18966 * gimple-fold.c: Likewise.
18967 * gimple-iterator.c: Likewise.
18968 * gimple-pretty-print.c: Likewise.
18969 * gimple-streamer-in.c: Likewise.
18970 * gimple-streamer-out.c: Likewise.
18971 * gimple.c: Likewise.
18972 * gimplify.c: Likewise.
18973 * ipa-chkp.c: Likewise.
18974 * ipa-comdats.c: Likewise.
18975 * ipa-cp.c: Likewise.
18976 * ipa-devirt.c: Likewise.
18977 * ipa-icf-gimple.c: Likewise.
18978 * ipa-icf.c: Likewise.
18979 * ipa-inline-analysis.c: Likewise.
18980 * ipa-inline-transform.c: Likewise.
18981 * ipa-inline.c: Likewise.
18982 * ipa-polymorphic-call.c: Likewise.
18983 * ipa-profile.c: Likewise.
18984 * ipa-prop.c: Likewise.
18985 * ipa-pure-const.c: Likewise.
18986 * ipa-ref.c: Likewise.
18987 * ipa-reference.c: Likewise.
18988 * ipa-split.c: Likewise.
18989 * ipa-utils.c: Likewise.
18990 * ipa-visibility.c: Likewise.
18992 * langhooks.c: Likewise.
18993 * lto-cgraph.c: Likewise.
18994 * lto-compress.c: Likewise.
18995 * lto-opts.c: Likewise.
18996 * lto-section-in.c: Likewise.
18997 * lto-section-out.c: Likewise.
18998 * lto-streamer-in.c: Likewise.
18999 * lto-streamer-out.c: Likewise.
19000 * lto-streamer.c: Likewise.
19001 * omp-low.c: Likewise.
19002 * opts-global.c: Likewise.
19003 * passes.c: Likewise.
19004 * predict.c: Likewise.
19005 * print-tree.c: Likewise.
19006 * profile.c: Likewise.
19008 * sanopt.c: Likewise.
19009 * stor-layout.c: Likewise.
19010 * symtab.c: Likewise.
19011 * toplev.c: Likewise.
19012 * trans-mem.c: Likewise.
19013 * tree-cfg.c: Likewise.
19014 * tree-chkp.c: Likewise.
19015 * tree-eh.c: Likewise.
19016 * tree-emutls.c: Likewise.
19017 * tree-inline.c: Likewise.
19018 * tree-nested.c: Likewise.
19019 * tree-parloops.c: Likewise.
19020 * tree-pretty-print.c: Likewise.
19021 * tree-profile.c: Likewise.
19022 * tree-sra.c: Likewise.
19023 * tree-ssa-alias.c: Likewise.
19024 * tree-ssa-live.c: Likewise.
19025 * tree-ssa-loop-ivcanon.c: Likewise.
19026 * tree-ssa-loop-ivopts.c: Likewise.
19027 * tree-ssa-pre.c: Likewise.
19028 * tree-ssa-sccvn.c: Likewise.
19029 * tree-ssa-strlen.c: Likewise.
19030 * tree-ssa-structalias.c: Likewise.
19031 * tree-streamer-in.c: Likewise.
19032 * tree-streamer-out.c: Likewise.
19033 * tree-streamer.c: Likewise.
19034 * tree-switch-conversion.c: Likewise.
19035 * tree-tailcall.c: Likewise.
19036 * tree-vect-data-refs.c: Likewise.
19037 * tree-vect-stmts.c: Likewise.
19038 * tree-vectorizer.c: Likewise.
19039 * tree.c: Likewise.
19040 * tsan.c: Likewise.
19041 * ubsan.c: Likewise.
19042 * value-prof.c: Likewise.
19043 * varasm.c: Likewise.
19044 * varpool.c: Likewise.
19045 * config/arm/arm.c: Likewise.
19046 * config/bfin/bfin.c: Likewise.
19047 * config/c6x/c6x.c: Likewise.
19048 * config/cris/cris.c: Likewise.
19049 * config/darwin-c.c: Likewise.
19050 * config/darwin.c: Likewise.
19051 * config/i386/i386.c: Likewise.
19052 * config/i386/winnt.c: Likewise.
19053 * config/microblaze/microblaze.c: Likewise.
19054 * config/mips/mips.c: Likewise.
19055 * config/rs6000/rs6000.c: Likewise.
19056 * config/rx/rx.c: Likewise.
19057 * config/s390/s390.c: Likewise.
19058 * config/tilegx/mul-tables.c: Likewise.
19060 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19062 * config/aarch64/aarch64.c, config/alpha/alpha.c,
19063 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
19064 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
19065 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
19066 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19067 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19068 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19069 config/microblaze/microblaze.c, config/mips/mips.c,
19070 config/mmix/mmix.c, config/mn10300/mn10300.c,
19071 config/moxie/moxie.c, config/msp430/msp430.c,
19072 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19073 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19074 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19075 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19076 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19077 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19078 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
19079 target-def.h include.
19080 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
19082 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19084 * Makefile.in (TARGET_DEF): Add target-insns.def.
19085 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
19086 (build/gentarget-def.o): New rule.
19087 (genprogrtl): Add target-def.
19088 * target-insns.def, gentarget-def.c: New files.
19089 * target.def: Add targetm.have_* and targetm.gen_* hooks,
19090 based on the contents of target-insns.def.
19091 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
19092 (HAVE_return, gen_return): Delete.
19093 * target-def.h: Include insn-target-def.h.
19094 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
19095 instead of direct calls. Rely on them to do the appropriate assertions.
19096 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
19097 (convert_jumps_to_returns): Use targetm interface instead of
19099 (thread_prologue_and_epilogue_insns): Likewise.
19100 * reorg.c (find_end_label, dbr_schedule): Likewise.
19101 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
19102 * shrink-wrap.c (convert_to_simple_return): Likewise.
19103 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
19105 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19107 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
19108 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
19109 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
19110 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
19111 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
19112 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
19113 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
19114 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
19115 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
19116 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
19117 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
19118 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
19119 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
19120 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
19121 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
19122 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
19125 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19127 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
19128 (unbounded_int_hashmap_traits::key_type): Likewise.
19129 * hash-map.h (hash_map): Get the key type from the traits.
19130 * hash-traits.h (default_hash_traits): By default, inherit from the
19131 template parameter.
19132 * alias.c (alias_set_traits): Delete.
19133 (alias_set_entry_d::children): Use alias_set_hash as the first
19134 template parameter.
19135 (record_alias_subset): Update accordingly.
19136 * except.c (tree_hash_traits): Delete.
19137 (type_to_runtime_map): Use tree_hash as the first template parameter.
19138 (init_eh): Update accordingly.
19139 * genmatch.c (capture_id_map_hasher): Delete.
19140 (cid_map_t): Use nofree_string_hash as first template parameter.
19141 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
19142 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
19143 Use symbol_compare_hash as the first template parameter in
19144 subdivide_hash_map.
19145 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
19146 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
19147 template parameter.
19148 * passes.c (pass_registry_hasher): Delete.
19149 (name_to_pass_map): Use nofree_string_hash as the first template
19151 (register_pass_name): Update accordingly.
19152 * sanopt.c (sanopt_tree_map_traits): Delete.
19153 (sanopt_tree_triplet_map_traits): Delete.
19154 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
19155 template parameter.
19156 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
19157 the first template parameter.
19158 * sese.c (rename_map_hasher): Delete.
19159 (rename_map_type): Use tree_ssa_name_hash as the first template
19161 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
19162 (function_summary::m_map): Use map_hash as the first template
19164 (function_summary::release): Update accordingly.
19165 * tree-if-conv.c (phi_args_hash_traits): Delete.
19166 (predicate_scalar_phi): Use tree_operand_hash as the first template
19167 parameter to phi_arg_map.
19168 * tree-inline.h (dependence_hasher): Delete.
19169 (copy_body_data::dependence_map): Use dependence_hash as the first
19170 template parameter.
19171 * tree-inline.c (remap_dependence_clique): Update accordingly.
19172 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
19173 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
19175 (addr_stridxptr): Update accordingly.
19176 * value-prof.c (profile_id_traits): Delete.
19177 (cgraph_node_map): Use profile_id_hash as the first template
19179 (init_node_map): Update accordingly.
19180 * config/alpha/alpha.c (string_traits): Delete.
19181 (machine_function::links): Use nofree_string_hash as the first
19182 template parameter.
19183 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
19184 * config/m32c/m32c.c (pragma_traits): Delete.
19185 (pragma_htab): Use nofree_string_hash as the first template parameter.
19186 (m32c_note_pragma_address): Update accordingly.
19187 * config/mep/mep.c (pragma_traits): Delete.
19188 (pragma_htab): Use nofree_string_hash as the first template parameter.
19189 (mep_note_pragma_flag): Update accordingly.
19190 * config/mips/mips.c (mips16_flip_traits): Delete.
19191 (mflip_mips16_htab): Use nofree_string_hash as the first template
19193 (mflip_mips16_use_mips16_p): Update accordingly.
19194 (local_alias_traits): Delete.
19195 (mips16_local_aliases): Use nofree_string_hash as the first template
19197 (mips16_local_alias): Update accordingly.
19199 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19201 * hash-map-traits.h (default_hashmap_traits): Delete.
19203 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19205 * hash-map-traits.h (unbounded_hashmap_traits): New class.
19206 (unbounded_int_hashmap_traits): Likewise.
19207 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
19209 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19211 * ipa-icf.h (symbol_compare_hash): New class.
19212 (symbol_compare_hashmap_traits): Use it.
19213 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
19214 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
19215 (mem_alloc_description::reverse_mem_map_t): Remove redundant
19216 default_hashmap_traits.
19217 * sanopt.c (sanopt_tree_triplet_hash): New class.
19218 (sanopt_tree_triplet_map_traits): Use it.
19220 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19222 * gengtype-parse.c (require_template_declaration): Allow '+' in
19223 template parameters. Consolidate cases.
19224 * hash-traits.h (int_hash): New class.
19225 * alias.c (alias_set_hash): New structure.
19226 (alias_set_traits): Use it.
19227 * symbol-summary.h (function_summary::map_hash): New class.
19228 (function_summary::summary_hashmap_traits): Use it.
19229 * tree-inline.h (dependence_hash): New class.
19230 (dependence_hasher): Use it.
19231 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
19232 * value-prof.c (profile_id_hash): New class.
19233 (profile_id_traits): Use it.
19235 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19237 * config/mips/mips.c (mips16_flip_traits): Use it.
19238 (local_alias_traits, mips16_local_aliases): Convert from a map of
19239 rtxes to a map of symbol names.
19240 (mips16_local_alias): Update accordingly.
19242 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19244 * hash-traits.h (string_hash, nofree_string_hash): New classes.
19245 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
19246 * passes.c (pass_registry_hasher): Likewise.
19247 * config/alpha/alpha.c (string_traits): Likewise.
19248 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
19249 * config/m32c/m32c.c (pragma_traits): Likewise.
19250 * config/mep/mep.c (pragma_traits): Likewise.
19252 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19254 * tree-hash-traits.h (tree_hash): New class.
19255 * except.c: Include tree-hash-traits.h.
19256 (tree_hash_traits): Use tree_hash.
19258 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19260 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
19261 * sese.c: Include tree-hash-traits.h.
19262 (rename_map_hasher): Use tree_ssa_name_hasher.
19264 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19266 * tree-hash-traits.h (tree_decl_hash): New class.
19267 * tree-ssa-strlen.c: Include tree-hash-traits.h.
19268 (stridxlist_hash_traits): Use tree_decl_hash.
19270 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19272 * tree-hash-traits.h: New file.
19273 (tree_operand_hash): New class.
19274 * sanopt.c: Include tree-hash-traits.h.
19275 (sanopt_tree_map_traits): Use tree_operand_hash.
19276 * tree-if-conv.c: Include tree-hash-traits.h.
19277 (phi_args_hash_traits): Use tree_operand_hash.
19278 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
19279 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
19281 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19283 * hash-map-traits.h: Include hash-traits.h.
19284 (simple_hashmap_traits): New class.
19285 * mem-stats.h (hash_map): Change the default traits to
19286 simple_hashmap_traits<default_hash_traits<Key> >.
19288 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19290 * hash-table.h: Update comments.
19292 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19294 * hash-traits.h (default_hash_traits): New structure.
19295 * hash-set.h (default_hashset_traits): Delete.
19296 (hash_set): Use default_hash_traits<Key> instead of
19297 default_hashset_traits. Delete hash_entry type and use Key directly.
19298 * ipa-devirt.c (pair_traits): Delete.
19299 (default_hash_traits <type_pair>): Override.
19300 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
19301 (odr_types_equivalent_p, add_type_duplicate): Likewise.
19303 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19305 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
19307 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19309 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
19310 (has_is_empty, is_empty_helper): Delete.
19311 (has_mark_deleted, mark_deleted_helper): Delete.
19312 (has_mark_empty, mark_empty_helper): Delete.
19313 (hash_table::is_deleted): Call the Descriptor unconditionally.
19314 (hash_table::is_empty): Likewise.
19315 (hash_table::mark_deleted): Likewise.
19316 (hash_table::mark_empty): Likewise.
19318 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19320 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
19321 redundant typedefs and members.
19322 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
19323 redundant typedefs.
19324 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
19325 * ipa-devirt.c (odr_name_hasher): Likewise.
19326 (polymorphic_call_target_hasher): Likewise.
19327 * ira-costs.c (cost_classes_hasher): Likewise.
19328 * statistics.c (stats_counter_hasher): Likewise.
19329 * trans-mem.c (log_entry_hasher): Likewise.
19330 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
19331 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
19332 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
19333 * var-tracking.c (variable_hasher): Likewise.
19334 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
19335 Remove redundant typedefs and members.
19337 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19339 * hash-traits.h (ggc_cache_hasher): Rename to...
19340 (ggc_cache_remove): ...this and remove typedefs.
19341 (ggc_cache_ptr_hash): New class.
19342 * hash-table.h: Update commentary.
19343 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
19344 rather than ggc_cache_hasher.
19345 (const_wide_int_hasher, reg_attr_hasher): Likewise.
19346 (const_double_hasher, const_fixed_hasher): Likewise.
19347 * function.c (insn_cache_hasher): Likewise.
19348 * trans-mem.c (tm_wrapper_hasher): Likewise.
19349 * tree.h (tree_decl_map_cache_hasher): Likewise.
19350 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
19351 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
19352 * ubsan.c (tree_type_map_cache_hasher): Likewise.
19353 * varasm.c (tm_clone_hasher): Likewise.
19354 * config/i386/i386.c (dllimport_hasher): Likewise.
19355 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
19356 (tree_hasher): Likewise.
19358 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19360 * hash-traits.h (ggc_hasher): Rename to...
19361 (ggc_remover): ...this and remove typedefs.
19362 (ggc_cache_hasher): Update accordingly. Add typedefs.
19363 (ggc_ptr_hash): New class.
19364 * hash-table.h: Update comment.
19365 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
19367 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
19368 (tree_descriptor_hasher): Likewise.
19369 * cgraph.c (function_version_hasher): Likewise.
19370 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
19371 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
19372 (dw_loc_list_hasher, addr_hasher): Likewise.
19373 * function.h (used_type_hasher): Likewise.
19374 * function.c (temp_address_hasher): Likewise.
19375 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
19376 * libfuncs.h (libfunc_hasher): Likewise.
19377 * lto-streamer.h (decl_state_hasher): Likewise.
19378 * optabs.c (libfunc_decl_hasher): Likewise.
19379 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
19380 * varasm.c (section_hasher, object_block_hasher): Likewise.
19381 (const_rtx_desc_hasher): Likewise.
19382 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
19383 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
19385 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19387 * hash-traits.h (free_ptr_hash): New class.
19388 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
19389 rather than typed_free_remove. Remove redudant typedefs.
19390 (external_ref_hasher): Likewise.
19391 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
19392 (ehspec_hasher): Likewise.
19393 * ggc-common.c (saving_hasher): Likewise.
19394 * gimplify.c (gimplify_hasher): Likewise.
19395 * haifa-sched.c (delay_i2_hasher): Likewise.
19396 * loop-invariant.c (invariant_expr_hasher): Likewise.
19397 * loop-iv.c (biv_entry_hasher): Likewise.
19398 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
19399 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
19400 * tree-cfg.c (locus_discrim_hasher): Likewise.
19401 * tree-eh.c (finally_tree_hasher): Likewise.
19402 * tree-into-ssa.c (var_info_hasher): Likewise.
19403 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
19404 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
19405 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
19406 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
19407 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
19408 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
19409 (shared_bitmap_hasher): Likewise.
19410 * tree-ssa-threadupdate.c (redirection_data): Likewise.
19411 * tree-vectorizer.h (peel_info_hasher): Likewise.
19412 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
19413 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
19415 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19417 * hash-table.h: Update comments.
19418 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
19419 (nofree_ptr_hash): New class.
19420 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
19421 than typed_noop_remove. Remove redudant typedefs.
19422 * attribs.c (attribute_hasher): Likewise.
19423 * cfg.c (bb_copy_hasher): Likewise.
19424 * cselib.c (cselib_hasher): Likewise.
19425 * dse.c (invariant_group_base_hasher): Likewise.
19426 * dwarf2cfi.c (trace_info_hasher): Likewise.
19427 * dwarf2out.c (macinfo_entry_hasher): Likewise.
19428 (comdat_type_hasher, loc_list_hasher): Likewise.
19429 * gcse.c (pre_ldst_expr_hasher): Likewise.
19430 * genmatch.c (id_base): Likewise.
19431 * genrecog.c (test_pattern_hasher): Likewise.
19432 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
19433 * haifa-sched.c (delay_i1_hasher): Likewise.
19434 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
19435 * ipa-icf.h (congruence_class_group_hash): Likewise.
19436 * ipa-profile.c (histogram_hash): Likewise.
19437 * ira-color.c (allocno_hard_regs_hasher): Likewise.
19438 * lto-streamer.h (string_slot_hasher): Likewise.
19439 * lto-streamer.c (tree_entry_hasher): Likewise.
19440 * plugin.c (event_hasher): Likewise.
19441 * postreload-gcse.c (expr_hasher): Likewise.
19442 * store-motion.c (st_expr_hasher): Likewise.
19443 * tree-sra.c (uid_decl_hasher): Likewise.
19444 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
19445 (ssa_name_var_hash): Likewise.
19446 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
19447 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
19448 * tree-ssa-pre.c (pre_expr_d): Likewise.
19449 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
19450 * vtable-verify.h (registration_hasher): Likewise.
19451 * vtable-verify.c (vtbl_map_hasher): Likewise.
19452 * config/arm/arm.c (libcall_hasher): Likewise.
19453 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
19454 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
19455 * config/sol2.c (comdat_entry_hasher): Likewise.
19456 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
19457 (print_fold_checksum, fold_checksum_tree): Likewise.
19458 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
19459 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
19460 (fold_build_call_array_loc): Likewise.
19461 * tree-ssa-ccp.c (gimple_htab): Likewise.
19462 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
19463 rather than pointer_type.
19465 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19467 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
19468 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
19470 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19472 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
19473 (ggc_hasher::ggc_mx): Likewise.
19474 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
19475 that duplicate ggc_hasher ones.
19477 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19479 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
19480 (gt_cleare_cache): Check here for deleted and empty entries.
19481 Replace handle_cache_entry with a call to keep_cache_entry.
19482 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
19483 (ggc_cache_hasher::keep_cache_entry): New function.
19484 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
19485 (tm_wrapper_hasher::keep_cache_entry): New function.
19486 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
19487 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19488 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
19489 (type_cache_hasher::keep_cache_entry): New function.
19490 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
19491 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
19492 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
19493 (tree_type_map_cache_hasher::keep_cache_entry): New function.
19494 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
19495 (tm_clone_hasher::keep_cache_entry): New function.
19496 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
19497 (dllimport_hasher::keep_cache_entry): New function.
19499 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19501 * hash-table.h: Include hash-traits.h.
19502 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
19503 (ggc_cache_hasher): Move to...
19504 * hash-traits.h: ...this new file.
19506 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19508 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
19509 struct cl_optimization.
19510 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
19511 * tree.c (make_node_stat): Allocate cl_optimization struct.
19512 (copy_node_stat): Allocate and copy cl_optimization struct.
19514 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19516 * function.h (struct incoming_args): Move struct.
19517 (pass_by_reference, reference_callee_copied): Remove prototypes.
19518 * emit-rtl.h (struct incoming_args): Relocate struct here.
19519 * calls.h (pass_by_reference, reference_callee_copied): Relocate
19521 * function.c (pass_by_reference, reference_callee_copied): Move.
19522 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
19523 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
19524 * ipa-chkp.c: Include calls.h.
19526 2015-06-25 Andrew Macleod <amacleod@redhat.com>
19528 * alias.h (alias_set_type): Move typedef.
19529 * coretypes.h (alias_set_type): Relocate typedef here.
19530 * rtl.h: Don't include alias.h.
19532 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
19534 * cgraph.h (cgraph_rtl_info): Move to rtl.h
19535 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
19537 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
19538 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
19540 * calls.c: Include hard-reg-set.h before rtl.h.
19543 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19544 Vladimir Makarov <vmakarov@redhat.com>
19546 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
19549 2015-06-25 Richard Biener <rguenther@suse.de>
19551 * fold-const.c (fold_binary_loc): Move simplification of
19552 (X <<>> C1) & C2 ...
19553 * match.pd: ... here.
19555 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
19557 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
19559 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
19561 * match.pd: Add patterns for vec_conds between 1 and 0.
19563 2015-06-25 Richard Biener <rguenther@suse.de>
19565 * tree-vect-stmts.c (vectorizable_conversion): Do not set
19566 STMT_VINFO_VEC_STMT for SLP.
19567 (vectorizable_store): Likewise.
19568 (vectorizable_load): Likewise.
19569 (vect_transform_stmt): Catch SLP vectorization clobbering
19570 STMT_VINFO_VEC_STMT.
19572 2015-06-25 Richard Biener <rguenther@suse.de>
19574 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
19576 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
19577 cleanup resulting dead code and parameters.
19578 (vect_transform_slp_perm_load): Adjust.
19580 2015-06-25 Nick Clifton <nickc@redhat.com>
19582 * config/bfin/bfin.c (bfin_expand_prologue): Set
19583 current_function_static_stack_size if flag_stack_usage_info is set.
19584 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
19585 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
19586 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
19587 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
19589 2015-06-25 Tom de Vries <tom@codesourcery.com>
19591 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
19592 comment that the generated IV is unsigned.
19594 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19597 * config/arm/arm.c (arm_dbx_register_number): Return
19598 DWARF_FRAME_REGISTERS by default.
19600 2015-06-25 Tom de Vries <tom@codesourcery.com>
19602 * dominance.c (calculate_dominance_info): Fix verify_dominators call
19603 argument. Call verify_dominator when reusing dominator info.
19605 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
19608 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
19609 an additional element of the unspec vector. Modify indices
19611 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
19612 * config/sh/sh.c (prepare_move_operands): Pass incremented
19613 const_int to gen_GOTaddr2picreg.
19614 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
19616 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19618 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
19619 Condition on TARGET_FLOAT.
19621 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19623 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
19626 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
19628 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
19630 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
19631 aarch64_err_no_fpadvsimd.
19633 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
19634 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
19635 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
19636 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
19637 Turn error into assert, test TARGET_FLOAT.
19638 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
19641 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
19644 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
19646 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19648 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
19650 2015-06-24 Renlin Li <renlin.li@arm.com>
19652 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
19653 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
19655 2015-06-24 Richard Biener <rguenther@suse.de>
19657 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
19659 (lower_opt_convert): Support lowering of conditional view_convert.
19660 (parser::parse_operation): Likewise.
19661 (parser::parse_for): Likewise.
19663 2015-06-24 Renlin Li <renlin.li@arm.com>
19665 * varasm.c (emit_local): Use unsigned int for align variable.
19667 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19670 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
19671 for negative numbers.
19673 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19675 PR rtl-optimization/66306
19676 * reload.c (find_reloads): Swap the match_dup info for
19677 commutative operands.
19679 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19681 * config/s390/vx-builtins.md
19682 ("vec_scatter_element<mode>_<non_vec_int>")
19683 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
19684 attribute with bhfgq.
19686 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19688 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
19690 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19692 * config/s390/s390-builtin-types.def: Add flag to indicate the
19693 options under which the function type is needed.
19694 * config/s390/s390-builtins.def: Add flag to indicate the options
19695 under which the builtin is enabled.
19696 * config/s390/s390-builtins.h: Add flags parameter to macro
19698 (bflags_for_builtin): New function.
19699 (flags_for_builtin): Renamed to ...
19700 (opflags_for_builtin): ... this.
19701 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
19702 flags_for_builtin to bflags_for_builtin and
19703 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
19704 * config/s390/s390.c: Add initialization of bflags_builtin and
19705 opflags_builtin arrays.
19706 Remove code for flags_builtin.
19707 (s390_init_builtins): Only create builtin function types if one of
19708 their flags is active.
19709 Only create builtins if all of their flags are active.
19710 (s390_expand_builtin): Rename flags_for_builtin to
19711 opflags_for_builtin.
19713 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19715 * config/s390/vecintrin.h: Remove internal builtins.
19717 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19719 * config/s390/s390.c (s390_secondary_reload): Fix check for
19720 GENERAL_REGS register class.
19722 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19724 * config/s390/s390.c (s390_support_vector_misalignment): Call
19725 default implementation for !TARGET_VX.
19727 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19729 * config/s390/s390.c (s390_legitimate_constant_p): Add
19732 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19734 * config/s390/s390.c (s390_vector_abi): New variable definition.
19735 (s390_check_type_for_vector_abi): New function.
19736 (TARGET_ASM_FILE_END): New macro definition.
19737 (s390_asm_file_end): New function.
19738 (s390_function_arg): Call s390_check_type_for_vector_abi.
19739 (s390_gimplify_va_arg): Likewise.
19740 * configure: Regenerate.
19741 * configure.ac: Check for .gnu_attribute Binutils feature.
19743 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
19746 * config/bfin/bfin.c (hwloop_optimize): Initialize
19747 JUMP_LABEL for newly created jump.
19749 2015-06-23 Tristan Gingold <gingold@adacore.com>
19751 * collect-utils.c (collect_wait): Unlink the response file here
19753 (do_wait): ...here.
19754 (utils_cleanup): ...and here.
19756 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
19758 * df-scan.c: Don't include target-def.h.
19759 * targhooks.c: Likewise.
19760 * config/arm/arm-c.c: Likewise.
19761 * config/i386/i386-c.c: Likewise.
19762 * config/nds32/nds32-cost.c: Likewise.
19763 * config/nds32/nds32-fp-as-gp.c: Likewise.
19764 * config/nds32/nds32-intrinsic.c: Likewise.
19765 * config/nds32/nds32-isr.c: Likewise.
19766 * config/nds32/nds32-md-auxiliary.c: Likewise.
19767 * config/nds32/nds32-memory-manipulation.c: Likewise.
19768 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
19769 * config/nds32/nds32-predicates.c: Likewise.
19771 2015-06-23 Richard Biener <rguenther@suse.de>
19773 PR tree-optimization/66636
19774 * tree-vect-stmts.c (vectorizable_store): Properly compute the
19775 def type for further defs for strided stores.
19777 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
19779 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
19780 conditional selects.
19781 (setcc_int<mode>, setcc_float<mode>): Reformat.
19783 2015-06-23 Marek Polacek <polacek@redhat.com>
19785 * match.pd ((x + y) - (x | y) -> x & y,
19786 (x + y) - (x & y) -> x | y): New patterns.
19788 2015-06-23 Ludovic Courtès <ludo@gnu.org>
19791 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
19792 '-dynamic-linker' within %{!shared: ...}.
19794 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
19797 * config/i386/predicates.md (addsub_vm_operator): New predicate.
19798 (addsub_vs_operator): Ditto.
19799 (addsub_vs_parallel): Ditto.
19800 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
19801 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
19802 Put minus RTX before plus and adjust vec_merge selector.
19803 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
19804 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
19805 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
19806 (addsub vec_merge splitters): New combiner splitters.
19807 (addsub vec_select/vec_concat splitters): Ditto.
19809 2015-06-23 Bin Cheng <bin.cheng@arm.com>
19811 PR tree-optimization/66449
19812 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
19813 POINTER_PLUS_EXPR for pointers.
19815 2015-06-23 Alan Modra <amodra@gmail.com>
19817 * rtlanal.c (commutative_operand_precedence): Correct comments.
19818 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
19819 declaration. Return an int. Distinguish REG,REG return from
19821 (struct simplify_plus_minus_op_data): Make local to function.
19822 (simplify_plus_minus): Don't set canonicalized if merely sorting
19823 registers. Avoid packing ops if nothing changes. White space fixes.
19825 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
19827 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
19828 -fdump-ada-spec is passed but not if -fsyntax-only is.
19830 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
19833 * lra-lives.c (process_bb_lives): Check insn copying the same
19834 reload pseudo and don't create a copy for it.
19836 2015-06-22 Tom de Vries <tom@codesourcery.com>
19838 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
19841 2015-06-22 Tom de Vries <tom@codesourcery.com>
19843 * builtins.def (DEF_GOMP_BUILTIN): Test
19844 'flag_tree_parallelize_loops > 1' instead of
19845 'flag_tree_parallelize_loops'. Test flag_cilkplus.
19847 2015-06-22 Tom de Vries <tom@codesourcery.com>
19849 * dominance.c (calculate_dominance_info): Verify dominators if
19852 2015-06-22 Marek Polacek <polacek@redhat.com>
19854 * match.pd ((x ^ y) ^ (x | y) -> x & y,
19855 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
19856 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
19857 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
19859 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
19862 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
19863 cost of embedded comparison.
19865 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19868 * config/rs6000/predicates.md (altivec_register_operand): Permit
19869 virtual stack registers.
19870 (vsx_register_operand): Likewise.
19871 (vfloat_operand): Likewise.
19872 (vint_operand): Likewise.
19873 (vlogical_operand): Likewise.
19875 2015-06-22 Richard Biener <rguenther@suse.de>
19877 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
19878 and single_scalar_iteration_cost members.
19879 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
19880 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
19881 (vect_get_single_scalar_iteration_cost): Remove.
19882 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
19883 Use LOOP_VINFO_SCALAR_ITERATION_COST.
19884 * tree-vect-loop.c (destroy_loop_vec_info): Free
19886 (vect_get_single_scalar_iteration_cost): Compute result into
19887 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
19888 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
19889 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
19890 (vect_estimate_min_profitable_iters): Use them.
19892 2015-06-22 Christian Bruel <christian.bruel@st.com>
19895 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
19896 (TARGET_INSERT_ATTRIBUTES): Define.
19897 (thumb_flipper): New var.
19898 * config/arm/arm.opt (-mflip-thumb): New switch.
19900 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
19901 Martin Liska <mliska@suse.cz>
19904 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
19905 construction of arg_types.
19906 (sem_function::sem_function): Likewise.
19907 (sem_function::~sem_function): Remove destruction of arg_types.
19908 (sem_function::compatible_parm_types_p): New function.
19909 (sem_function::equals_wpa): Reorg matching of return values
19910 and parameter types.
19911 (sem_function::equals_private): Reorg mathcing of argument types.
19912 (sem_function::parse_tree_args): Remove.
19913 * ipa-icf.h (init_wpa): Do not call it.
19914 (parse_tree_args): Remove.
19915 (compatible_parm_types_p): Declare.
19916 (result_type): Remove.
19917 (arg_types): Remove.
19919 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
19922 * ipa-polymorphic-call.c
19923 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
19924 initializing alias oracle; fix formating; set base_alias_set if it
19927 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
19929 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
19930 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
19931 (find_inc): Likewise.
19932 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
19934 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
19935 * df-scan.c (df_swap_refs): Remove.
19936 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
19937 * dominance.c (link_roots): Use std::swap instead of manually swapping.
19938 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
19939 * fold-const.c (fold_relational_const): Likewise.
19940 * genattrtab.c (simplify_test_exp): Likewise.
19941 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
19942 gimple_simplify): Likewise.
19943 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
19944 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
19945 * ipa-devirt.c (add_type_duplicate): Likewise.
19946 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
19947 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
19948 * lra.c (lra_create_copy): Likewise.
19949 * lto-streamer-out.c (DFS::DFS): Likewise.
19950 * modulo-sched.c (get_sched_window): Likewise.
19951 * omega.c (omega_pretty_print_problem): Likewise.
19952 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
19953 * reload1.c (reloads_unique_chain_p): Likewise.
19954 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
19955 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
19957 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
19959 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
19960 predicate_mem_writes): Likewise.
19961 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
19962 * tree-predcom.c (combine_chains): Likewise.
19963 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
19964 refs_may_alias_p_1): Likewise.
19965 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
19966 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
19967 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
19968 number_of_iterations_cond): Likewise.
19969 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
19970 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
19971 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
19972 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
19973 * tree-vrp.c (extract_range_from_binary_expr_1,
19974 extract_range_from_unary_expr_1): Likewise.
19976 2015-06-20 Marek Polacek <polacek@redhat.com>
19978 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
19980 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
19983 * config/sh/sh.c (prepare_move_operands): Replace subreg
19984 index term with R0 for base and index addressing.
19986 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
19988 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
19990 (movsf_aarch64): Change condition from register_operand to
19991 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
19992 load1. Change type for alternative 7 to store1.
19993 (movdf_aarch64): Likewise.
19995 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
19997 * config/vax/vax.md: Adjust sign/zero extend patterns to
19998 handle SUBREGs in operands[1].
20000 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20002 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
20003 of manually swapping.
20004 (expand_vec_perm_interleave2): Likewise.
20006 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
20008 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
20009 reuse bounds created for abnormal ssa names.
20011 2015-06-19 Jakub Jelinek <jakub@redhat.com>
20013 * config/nvptx/nvptx.md (allocate_stack): Rename to...
20014 (allocate_stack_<mode>): ... this, and add :P on both
20015 match_operand and unspec.
20016 (allocate_stack): New expander.
20018 2015-06-19 Christian Bruel <christian.bruel@st.com>
20022 * config/arm/arm.c (arm_set_current_function): Handle
20023 explicit default options.
20025 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
20027 * config/i386/i386.md (*movsicc_noc_zext): New insn.
20028 (zero-extended cmove with mem peephole2): New pattern.
20029 (cmove with mem peephole2): Merge patterns.
20031 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
20033 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
20035 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
20037 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
20038 * config/mips/mips.md (*madd4<mode>): Ditto.
20039 (*nmadd3<mode>) Ditto.
20040 (*nmadd4<mode>_fastmath): Ditto.
20041 (*nmadd3<mode>_fastmath): Ditto.
20042 (*nmsub4<mode>): Ditto.
20043 (*nmsub3<mode>): Ditto.
20044 (*nmsub4<mode>_fastmath): Ditto.
20045 (*nmsub3<mode>_fastmath): Ditto.
20047 2015-06-18 Michael Matz <matz@suse.de>
20049 PR middle-end/66253
20050 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
20051 grouped strided stores.
20052 (vectorizable_load): Don't use the DR from first_stmt in
20053 the non-SLP grouped strided case.
20055 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20058 * function.c (assign_bounds): Add arguments assign_regs,
20059 assign_special, assign_bt.
20060 (assign_parms): For vararg functions handle bounds in BT
20061 and special slots after incoming vararg bounds.
20063 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20065 PR middle-end/66568
20066 * cfgexpand.c (expand_return): Handle missing bounds.
20067 (expand_gimple_stmt_1): Likewise.
20068 * tree-chkp.c (chkp_expand_zero_bounds): New.
20069 * tree-chkp.h (chkp_expand_zero_bounds): New.
20071 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
20073 PR middle-end/66567
20074 * ipa-chkp.c (chkp_maybe_create_clone): Require
20075 functions to be instrumentable.
20076 * tree-chkp.c (chkp_replace_function_pointer): Use
20077 chkp_instrumentable_p instead of attribute check.
20079 2015-06-18 Richard Biener <rguenther@suse.de>
20081 PR tree-optimization/66510
20082 * tree-vect-stmts.c (vectorizable_load): Properly compute the
20083 number of vector loads for SLP permuted loads.
20084 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
20085 check the stride for loop vectorization.
20086 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
20087 vectorization factor.
20088 (vect_analyze_group_access): If the group size is not a power
20089 of two require a epilogue loop.
20090 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
20091 compute and optimizing and alias test pruning after final
20092 vectorization factor computation.
20093 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
20095 (vect_transform_slp_perm_load): Properly compute the original
20096 number of vector load stmts.
20098 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
20100 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
20101 "unlikely character , in @var" warning.
20103 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
20105 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
20106 (ix86_function_arg_advance): Ditto.
20107 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
20109 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20111 * function.h (struct rtl_data): Remove struct and accessor macros.
20112 * emit-rtl.h (struct rtl_data): Relocate to here.
20113 * Makefile.in (GTFILES): Add emit-rtl.h.
20114 * df-core.c: Include emit-rtl.h.
20115 * genattrtab.c: Likewise.
20116 * genconditions.c: Likewise.
20117 * genpreds.c: Likewise.
20118 * genrecog.c: Likewise.
20119 * regcprop.c: Likewise.
20120 * resource.c: Likewise.
20121 * sched-rgn.c: Likewise.
20122 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
20123 * config/i386/winnt.c: Likewise.
20125 2015-06-17 Jakub Jelinek <jakub@redhat.com>
20127 PR middle-end/66429
20128 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
20129 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
20130 and has_force_vectorize_loops flags from cfun into
20132 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
20133 if simduid is non-NULL.
20134 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
20135 * passes.def (pass_simduid_cleanup): Add new pass after loop
20137 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
20138 indirection from htab argument's type.
20139 (shrink_simd_arrays): New function.
20140 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
20141 Don't call adjust_simduid_builtins if there are no loops.
20142 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
20143 (pass_simduid_cleanup::execute): New method.
20144 (make_pass_simduid_cleanup): New function.
20146 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
20148 * tree-core.h (tree_target_option): Make opts field a pointer to a
20149 cl_target_option instead of an instance of the struct.
20150 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
20152 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
20153 TARGET_OPTION_NODE.
20154 (copy_node_stat): Allocate and copy struct cl_target_option.
20156 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20158 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
20159 Remove conditional exposure of prototypes.
20160 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
20161 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
20162 definitions in tree.h with functions.
20163 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
20165 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
20167 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
20169 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
20170 (*cmp<mode>_signed): ... this.
20171 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
20172 (*cmp<mode>_unsigned): ... this. Remove %b.
20174 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
20176 * coretypes.h: Include input.h and as-a.h.
20177 * rtl.h: Include input.h and as-a.h for generator files.
20178 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
20179 * vec.c: Don't include diagnostic-core.h.
20180 * alias.c: Do not include input.h, line-map.h or is-a.h.
20181 * asan.c: Likewise.
20182 * attribs.c: Likewise.
20183 * auto-inc-dec.c: Likewise.
20184 * auto-profile.c: Likewise.
20185 * bb-reorder.c: Likewise.
20186 * bt-load.c: Likewise.
20187 * builtins.c: Likewise.
20188 * caller-save.c: Likewise.
20189 * calls.c: Likewise.
20190 * ccmp.c: Likewise.
20192 * cfganal.c: Likewise.
20193 * cfgbuild.c: Likewise.
20194 * cfgcleanup.c: Likewise.
20195 * cfgexpand.c: Likewise.
20196 * cfghooks.c: Likewise.
20197 * cfgloop.c: Likewise.
20198 * cfgloop.h: Likewise.
20199 * cfgloopanal.c: Likewise.
20200 * cfgloopmanip.c: Likewise.
20201 * cfgrtl.c: Likewise.
20202 * cgraph.c: Likewise.
20203 * cgraphbuild.c: Likewise.
20204 * cgraphclones.c: Likewise.
20205 * cgraphunit.c: Likewise.
20206 * cilk-common.c: Likewise.
20207 * combine-stack-adj.c: Likewise.
20208 * combine.c: Likewise.
20209 * compare-elim.c: Likewise.
20210 * convert.c: Likewise.
20211 * coverage.c: Likewise.
20212 * cppbuiltin.c: Likewise.
20213 * cprop.c: Likewise.
20215 * cselib.c: Likewise.
20216 * data-streamer-in.c: Likewise.
20217 * data-streamer-out.c: Likewise.
20218 * data-streamer.c: Likewise.
20219 * dbxout.c: Likewise.
20222 * debug.c: Likewise.
20223 * df-core.c: Likewise.
20224 * df-problems.c: Likewise.
20225 * df-scan.c: Likewise.
20228 * diagnostic-core.h: Likewise.
20229 * diagnostic.c: Likewise.
20230 * dojump.c: Likewise.
20231 * dominance.c: Likewise.
20232 * domwalk.c: Likewise.
20233 * double-int.c: Likewise.
20235 * dumpfile.c: Likewise.
20236 * dumpfile.h: Likewise.
20237 * dwarf2asm.c: Likewise.
20238 * dwarf2cfi.c: Likewise.
20239 * dwarf2out.c: Likewise.
20240 * emit-rtl.c: Likewise.
20241 * et-forest.c: Likewise.
20242 * except.c: Likewise.
20243 * explow.c: Likewise.
20244 * expmed.c: Likewise.
20245 * expr.c: Likewise.
20246 * final.c: Likewise.
20247 * fixed-value.c: Likewise.
20248 * fold-const.c: Likewise.
20249 * function.c: Likewise.
20250 * fwprop.c: Likewise.
20251 * gcc-plugin.h: Likewise.
20252 * gcse.c: Likewise.
20253 * generic-match-head.c: Likewise.
20254 * ggc-page.c: Likewise.
20255 * gimple-builder.c: Likewise.
20256 * gimple-expr.c: Likewise.
20257 * gimple-fold.c: Likewise.
20258 * gimple-iterator.c: Likewise.
20259 * gimple-low.c: Likewise.
20260 * gimple-match-head.c: Likewise.
20261 * gimple-pretty-print.c: Likewise.
20262 * gimple-ssa-isolate-paths.c: Likewise.
20263 * gimple-ssa-strength-reduction.c: Likewise.
20264 * gimple-streamer-in.c: Likewise.
20265 * gimple-streamer-out.c: Likewise.
20266 * gimple-streamer.h: Likewise.
20267 * gimple-walk.c: Likewise.
20268 * gimple.c: Likewise.
20269 * gimplify-me.c: Likewise.
20270 * gimplify.c: Likewise.
20271 * godump.c: Likewise.
20272 * graph.c: Likewise.
20273 * graphite-blocking.c: Likewise.
20274 * graphite-dependences.c: Likewise.
20275 * graphite-interchange.c: Likewise.
20276 * graphite-isl-ast-to-gimple.c: Likewise.
20277 * graphite-optimize-isl.c: Likewise.
20278 * graphite-poly.c: Likewise.
20279 * graphite-scop-detection.c: Likewise.
20280 * graphite-sese-to-poly.c: Likewise.
20281 * graphite.c: Likewise.
20282 * haifa-sched.c: Likewise.
20283 * hw-doloop.c: Likewise.
20284 * ifcvt.c: Likewise.
20285 * init-regs.c: Likewise.
20286 * input.c: Likewise.
20287 * internal-fn.c: Likewise.
20288 * ipa-chkp.c: Likewise.
20289 * ipa-comdats.c: Likewise.
20290 * ipa-cp.c: Likewise.
20291 * ipa-devirt.c: Likewise.
20292 * ipa-icf-gimple.c: Likewise.
20293 * ipa-icf.c: Likewise.
20294 * ipa-inline-analysis.c: Likewise.
20295 * ipa-inline-transform.c: Likewise.
20296 * ipa-inline.c: Likewise.
20297 * ipa-polymorphic-call.c: Likewise.
20298 * ipa-profile.c: Likewise.
20299 * ipa-prop.c: Likewise.
20300 * ipa-pure-const.c: Likewise.
20301 * ipa-ref.c: Likewise.
20302 * ipa-reference.c: Likewise.
20303 * ipa-split.c: Likewise.
20304 * ipa-utils.c: Likewise.
20305 * ipa-visibility.c: Likewise.
20307 * ira-build.c: Likewise.
20308 * ira-color.c: Likewise.
20309 * ira-conflicts.c: Likewise.
20310 * ira-costs.c: Likewise.
20311 * ira-emit.c: Likewise.
20312 * ira-lives.c: Likewise.
20314 * jump.c: Likewise.
20315 * langhooks.c: Likewise.
20317 * loop-doloop.c: Likewise.
20318 * loop-init.c: Likewise.
20319 * loop-invariant.c: Likewise.
20320 * loop-iv.c: Likewise.
20321 * loop-unroll.c: Likewise.
20322 * lower-subreg.c: Likewise.
20323 * lra-assigns.c: Likewise.
20324 * lra-coalesce.c: Likewise.
20325 * lra-constraints.c: Likewise.
20326 * lra-eliminations.c: Likewise.
20327 * lra-lives.c: Likewise.
20328 * lra-remat.c: Likewise.
20329 * lra-spills.c: Likewise.
20331 * lto-cgraph.c: Likewise.
20332 * lto-compress.c: Likewise.
20333 * lto-opts.c: Likewise.
20334 * lto-section-in.c: Likewise.
20335 * lto-section-out.c: Likewise.
20336 * lto-streamer-in.c: Likewise.
20337 * lto-streamer-out.c: Likewise.
20338 * lto-streamer.c: Likewise.
20340 * mode-switching.c: Likewise.
20341 * modulo-sched.c: Likewise.
20342 * omega.c: Likewise.
20343 * omp-low.c: Likewise.
20344 * optabs.c: Likewise.
20345 * opts-global.c: Likewise.
20346 * opts.h: Likewise.
20347 * passes.c: Likewise.
20348 * plugin.c: Likewise.
20349 * postreload-gcse.c: Likewise.
20350 * postreload.c: Likewise.
20351 * predict.c: Likewise.
20352 * pretty-print.h: Likewise.
20353 * print-rtl.c: Likewise.
20354 * print-tree.c: Likewise.
20355 * profile.c: Likewise.
20356 * real.c: Likewise.
20357 * realmpfr.c: Likewise.
20358 * recog.c: Likewise.
20360 * reg-stack.c: Likewise.
20361 * regcprop.c: Likewise.
20362 * reginfo.c: Likewise.
20363 * regrename.c: Likewise.
20364 * regstat.c: Likewise.
20365 * reload.c: Likewise.
20366 * reload1.c: Likewise.
20367 * reorg.c: Likewise.
20368 * resource.c: Likewise.
20369 * rtl-chkp.c: Likewise.
20370 * rtl-error.c: Likewise.
20371 * rtlanal.c: Likewise.
20372 * rtlhooks.c: Likewise.
20373 * sanopt.c: Likewise.
20374 * sched-deps.c: Likewise.
20375 * sched-ebb.c: Likewise.
20376 * sched-rgn.c: Likewise.
20377 * sched-vis.c: Likewise.
20378 * sdbout.c: Likewise.
20379 * sel-sched-dump.c: Likewise.
20380 * sel-sched-ir.c: Likewise.
20381 * sel-sched.c: Likewise.
20382 * sese.c: Likewise.
20383 * shrink-wrap.c: Likewise.
20384 * simplify-rtx.c: Likewise.
20385 * stack-ptr-mod.c: Likewise.
20386 * statistics.c: Likewise.
20387 * stmt.c: Likewise.
20388 * stor-layout.c: Likewise.
20389 * store-motion.c: Likewise.
20390 * streamer-hooks.c: Likewise.
20391 * stringpool.c: Likewise.
20392 * symtab.c: Likewise.
20393 * target-globals.c: Likewise.
20394 * targhooks.c: Likewise.
20395 * toplev.c: Likewise.
20396 * tracer.c: Likewise.
20397 * trans-mem.c: Likewise.
20398 * tree-affine.c: Likewise.
20399 * tree-browser.c: Likewise.
20400 * tree-call-cdce.c: Likewise.
20401 * tree-cfg.c: Likewise.
20402 * tree-cfgcleanup.c: Likewise.
20403 * tree-chkp-opt.c: Likewise.
20404 * tree-chkp.c: Likewise.
20405 * tree-chrec.c: Likewise.
20406 * tree-complex.c: Likewise.
20407 * tree-data-ref.c: Likewise.
20408 * tree-dfa.c: Likewise.
20409 * tree-diagnostic.c: Likewise.
20410 * tree-dump.c: Likewise.
20411 * tree-eh.c: Likewise.
20412 * tree-emutls.c: Likewise.
20413 * tree-if-conv.c: Likewise.
20414 * tree-inline.c: Likewise.
20415 * tree-into-ssa.c: Likewise.
20416 * tree-iterator.c: Likewise.
20417 * tree-loop-distribution.c: Likewise.
20418 * tree-nested.c: Likewise.
20419 * tree-nrv.c: Likewise.
20420 * tree-object-size.c: Likewise.
20421 * tree-outof-ssa.c: Likewise.
20422 * tree-parloops.c: Likewise.
20423 * tree-phinodes.c: Likewise.
20424 * tree-predcom.c: Likewise.
20425 * tree-pretty-print.c: Likewise.
20426 * tree-profile.c: Likewise.
20427 * tree-scalar-evolution.c: Likewise.
20428 * tree-sra.c: Likewise.
20429 * tree-ssa-address.c: Likewise.
20430 * tree-ssa-alias.c: Likewise.
20431 * tree-ssa-ccp.c: Likewise.
20432 * tree-ssa-coalesce.c: Likewise.
20433 * tree-ssa-copy.c: Likewise.
20434 * tree-ssa-copyrename.c: Likewise.
20435 * tree-ssa-dce.c: Likewise.
20436 * tree-ssa-dom.c: Likewise.
20437 * tree-ssa-dse.c: Likewise.
20438 * tree-ssa-forwprop.c: Likewise.
20439 * tree-ssa-ifcombine.c: Likewise.
20440 * tree-ssa-live.c: Likewise.
20441 * tree-ssa-loop-ch.c: Likewise.
20442 * tree-ssa-loop-im.c: Likewise.
20443 * tree-ssa-loop-ivcanon.c: Likewise.
20444 * tree-ssa-loop-ivopts.c: Likewise.
20445 * tree-ssa-loop-manip.c: Likewise.
20446 * tree-ssa-loop-niter.c: Likewise.
20447 * tree-ssa-loop-prefetch.c: Likewise.
20448 * tree-ssa-loop-unswitch.c: Likewise.
20449 * tree-ssa-loop.c: Likewise.
20450 * tree-ssa-math-opts.c: Likewise.
20451 * tree-ssa-operands.c: Likewise.
20452 * tree-ssa-phiopt.c: Likewise.
20453 * tree-ssa-phiprop.c: Likewise.
20454 * tree-ssa-pre.c: Likewise.
20455 * tree-ssa-propagate.c: Likewise.
20456 * tree-ssa-reassoc.c: Likewise.
20457 * tree-ssa-sccvn.c: Likewise.
20458 * tree-ssa-scopedtables.c: Likewise.
20459 * tree-ssa-sink.c: Likewise.
20460 * tree-ssa-strlen.c: Likewise.
20461 * tree-ssa-structalias.c: Likewise.
20462 * tree-ssa-tail-merge.c: Likewise.
20463 * tree-ssa-ter.c: Likewise.
20464 * tree-ssa-threadedge.c: Likewise.
20465 * tree-ssa-threadupdate.c: Likewise.
20466 * tree-ssa-uncprop.c: Likewise.
20467 * tree-ssa-uninit.c: Likewise.
20468 * tree-ssa.c: Likewise.
20469 * tree-ssanames.c: Likewise.
20470 * tree-stdarg.c: Likewise.
20471 * tree-streamer-in.c: Likewise.
20472 * tree-streamer-out.c: Likewise.
20473 * tree-streamer.c: Likewise.
20474 * tree-switch-conversion.c: Likewise.
20475 * tree-tailcall.c: Likewise.
20476 * tree-vect-data-refs.c: Likewise.
20477 * tree-vect-generic.c: Likewise.
20478 * tree-vect-loop-manip.c: Likewise.
20479 * tree-vect-loop.c: Likewise.
20480 * tree-vect-patterns.c: Likewise.
20481 * tree-vect-slp.c: Likewise.
20482 * tree-vect-stmts.c: Likewise.
20483 * tree-vectorizer.c: Likewise.
20484 * tree-vrp.c: Likewise.
20485 * tree.c: Likewise.
20486 * tsan.c: Likewise.
20487 * ubsan.c: Likewise.
20488 * valtrack.c: Likewise.
20489 * value-prof.c: Likewise.
20490 * var-tracking.c: Likewise.
20491 * varasm.c: Likewise.
20492 * varpool.c: Likewise.
20493 * vmsdbgout.c: Likewise.
20494 * vtable-verify.c: Likewise.
20496 * wide-int.cc: Likewise.
20497 * xcoffout.c: Likewise.
20498 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
20499 * common/common-targhooks.c: Likewise.
20500 * config/aarch64/aarch64-builtins.c: Likewise.
20501 * config/aarch64/aarch64.c: Likewise.
20502 * config/alpha/alpha.c: Likewise.
20503 * config/arc/arc.c: Likewise.
20504 * config/arm/aarch-common.c: Likewise.
20505 * config/arm/arm-builtins.c: Likewise.
20506 * config/arm/arm-c.c: Likewise.
20507 * config/arm/arm.c: Likewise.
20508 * config/avr/avr-c.c: Likewise.
20509 * config/avr/avr-log.c: Likewise.
20510 * config/avr/avr.c: Likewise.
20511 * config/bfin/bfin.c: Likewise.
20512 * config/c6x/c6x.c: Likewise.
20513 * config/cr16/cr16.c: Likewise.
20514 * config/cris/cris.c: Likewise.
20515 * config/darwin-c.c: Likewise.
20516 * config/darwin.c: Likewise.
20517 * config/default-c.c: Likewise.
20518 * config/epiphany/epiphany.c: Likewise.
20519 * config/epiphany/mode-switch-use.c: Likewise.
20520 * config/epiphany/resolve-sw-modes.c: Likewise.
20521 * config/fr30/fr30.c: Likewise.
20522 * config/frv/frv.c: Likewise.
20523 * config/ft32/ft32.c: Likewise.
20524 * config/glibc-c.c: Likewise.
20525 * config/h8300/h8300.c: Likewise.
20526 * config/i386/i386-c.c: Likewise.
20527 * config/i386/i386.c: Likewise.
20528 * config/i386/msformat-c.c: Likewise.
20529 * config/i386/winnt-cxx.c: Likewise.
20530 * config/i386/winnt-stubs.c: Likewise.
20531 * config/i386/winnt.c: Likewise.
20532 * config/ia64/ia64-c.c: Likewise.
20533 * config/ia64/ia64.c: Likewise.
20534 * config/iq2000/iq2000.c: Likewise.
20535 * config/lm32/lm32.c: Likewise.
20536 * config/m32c/m32c-pragma.c: Likewise.
20537 * config/m32c/m32c.c: Likewise.
20538 * config/m32r/m32r.c: Likewise.
20539 * config/m68k/m68k.c: Likewise.
20540 * config/mcore/mcore.c: Likewise.
20541 * config/mep/mep-pragma.c: Likewise.
20542 * config/mep/mep.c: Likewise.
20543 * config/microblaze/microblaze-c.c: Likewise.
20544 * config/microblaze/microblaze.c: Likewise.
20545 * config/mips/mips.c: Likewise.
20546 * config/mmix/mmix.c: Likewise.
20547 * config/mn10300/mn10300.c: Likewise.
20548 * config/moxie/moxie.c: Likewise.
20549 * config/msp430/msp430-c.c: Likewise.
20550 * config/msp430/msp430.c: Likewise.
20551 * config/nds32/nds32-cost.c: Likewise.
20552 * config/nds32/nds32-fp-as-gp.c: Likewise.
20553 * config/nds32/nds32-intrinsic.c: Likewise.
20554 * config/nds32/nds32-isr.c: Likewise.
20555 * config/nds32/nds32-md-auxiliary.c: Likewise.
20556 * config/nds32/nds32-memory-manipulation.c: Likewise.
20557 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
20558 * config/nds32/nds32-predicates.c: Likewise.
20559 * config/nds32/nds32.c: Likewise.
20560 * config/nios2/nios2.c: Likewise.
20561 * config/nvptx/nvptx.c: Likewise.
20562 * config/pa/pa.c: Likewise.
20563 * config/pdp11/pdp11.c: Likewise.
20564 * config/rl78/rl78-c.c: Likewise.
20565 * config/rl78/rl78.c: Likewise.
20566 * config/rs6000/rs6000-c.c: Likewise.
20567 * config/rs6000/rs6000.c: Likewise.
20568 * config/rx/rx.c: Likewise.
20569 * config/s390/s390-c.c: Likewise.
20570 * config/s390/s390.c: Likewise.
20571 * config/sh/sh-c.c: Likewise.
20572 * config/sh/sh-mem.cc: Likewise.
20573 * config/sh/sh.c: Likewise.
20574 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
20575 * config/sh/sh_treg_combine.cc: Likewise.
20576 * config/sol2-c.c: Likewise.
20577 * config/sol2-cxx.c: Likewise.
20578 * config/sol2-stubs.c: Likewise.
20579 * config/sol2.c: Likewise.
20580 * config/sparc/sparc-c.c: Likewise.
20581 * config/sparc/sparc.c: Likewise.
20582 * config/spu/spu-c.c: Likewise.
20583 * config/spu/spu.c: Likewise.
20584 * config/stormy16/stormy16.c: Likewise.
20585 * config/tilegx/mul-tables.c: Likewise.
20586 * config/tilegx/tilegx-c.c: Likewise.
20587 * config/tilegx/tilegx.c: Likewise.
20588 * config/tilepro/mul-tables.c: Likewise.
20589 * config/tilepro/tilepro-c.c: Likewise.
20590 * config/tilepro/tilepro.c: Likewise.
20591 * config/v850/v850-c.c: Likewise.
20592 * config/v850/v850.c: Likewise.
20593 * config/vax/vax.c: Likewise.
20594 * config/visium/visium.c: Likewise.
20595 * config/vms/vms-c.c: Likewise.
20596 * config/vms/vms.c: Likewise.
20597 * config/vxworks.c: Likewise.
20598 * config/winnt-c.c: Likewise.
20599 * config/xtensa/xtensa.c: Likewise.
20601 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
20603 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
20605 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
20607 2015-06-17 Richard Biener <rguenther@suse.de>
20609 PR tree-optimization/66251
20610 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
20611 stmts for SLP strided stores.
20614 2015-05-22 Richard Biener <rguenther@suse.de>
20616 PR tree-optimization/66251
20617 * tree-vect-stmts.c (vectorizable_conversion): Properly
20618 set STMT_VINFO_VEC_STMT even for the SLP case.
20620 2015-05-26 Michael Matz <matz@suse.de>
20622 PR middle-end/66251
20623 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
20624 STMT_VINFO_VEC_STMT, also with SLP.
20626 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
20629 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
20630 (*avx_addsubv4df3_1s): Ditto.
20631 (*sse3_addsubv2df3_1): Ditto.
20632 (*sse3_addsubv2df3_1s): Ditto.
20633 (*avx_addsubv8sf3_1): Ditto.
20634 (*avx_addsubv8sf3_1s): Ditto.
20635 (*sse3_addsubv4sf3_1): Ditto.
20636 (*sse3_addsubv4sf3_1s): Ditto.
20638 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
20640 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
20641 (SYSROOT_SUFFIX_SPEC): Update.
20642 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
20643 (STARTFILE_PREFIX_SPEC): Update.
20644 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
20645 (MULTILIB_REQUIRED): New.
20646 (MULTILIB_OSDIRNAMES): New.
20647 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
20648 (MULTILIB_REQUIRED): New.
20649 (MULTILIB_OSDIRNAMES): New.
20651 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
20653 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
20654 * config/aarch64/aarch64-options-extensions.def: Update "fP",
20655 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
20656 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
20657 (AARCH64_FL_PAN): New.
20658 (AARCH64_FL_LOR): New.
20659 (AARCH64_FL_RDMA): New.
20660 (AARCH64_FL_FOR_ARCH8_1): New.
20661 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
20662 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
20664 2015-06-16 Martin Liska <mliska@suse.cz>
20666 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
20667 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
20670 2015-06-16 Richard Biener <rguenther@suse.de>
20672 * tree-vect-stmts.c (vectorizable_store): Adjust.
20673 (vectorizable_load): Likewise.
20674 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
20676 (vect_create_data_ref_ptr): Likewise.
20677 (bump_vector_ptr): Adjust.
20679 2015-06-16 Richard Biener <rguenther@suse.de>
20681 * tree-vect-stmts.c (vectorizable_load): Properly start loads
20682 with the first element if this is grouped loads.
20684 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
20686 * config/arm/arm-protos.h (struct tune_params): Rename
20687 log_op_non_sc to log_op_non_short_circuit, and rename enum
20688 values to expand SC to SHORT_CIRCUIT.
20689 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
20690 to LOG_OP_NON_SHORT_CIRCUIT.
20691 (arm_fastmul_tune):Likewise
20692 (arm_strongarm_tune): Likewise.
20693 (arm_xscale_tune): Likewise.
20694 (arm_9e_tune): Likewise.
20695 (arm_marvell_pj4_tune): Likewise.
20696 (arm_v6t2_tune): Likewise.
20697 (arm_cortex_tune): Likewise.
20698 (arm_cortex_a8_tune): Likewise.
20699 (arm_cortex_a7_tune): Likewise.
20700 (arm_cortex_a15_tune): Likewise.
20701 (arm_cortex_a53_tune): Likewise.
20702 (arm_cortex_a57_tune): Likewise.
20703 (arm_xgene1_tune): Likewise.
20704 (arm_cortex_a5_tune): Likewise.
20705 (arm_cortex_a9_tune): Likewise.
20706 (arm_cortex_a12_tune): Likewise.
20707 (arm_v7m_tune): Likewise.
20708 (arm_cortex_m7_tune): Likewise.
20709 (arm_v6m_tune): Likewise.
20710 (arm_fa726te_tune): Likewise.
20712 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
20714 * altivec.md: Delete UNSPEC_VMLADDUHM.
20715 (mulv4si3_p8): New pattern.
20716 (mulv4si3): Use it for POWER8.
20717 (mulv8hi3): Use vmladduhm with zero addend.
20718 (altivec_vmladduhm): Descriptive RTL.
20720 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
20722 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
20723 to use neon_move instead of mov_imm.
20724 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
20725 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
20727 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
20728 aarch64_float_const_zero_rtx_p check before TFmode check.
20729 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
20731 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
20732 code and attributes to match. Change condition from register_operand
20733 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
20734 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
20737 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
20740 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
20741 there is no parent.
20743 2015-06-14 Shiva Chen <shiva0217@gmail.com>
20745 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
20746 HOST_WIDE_INT parameter.
20748 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
20751 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
20752 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
20754 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
20756 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
20758 * rtl.h (classify_insn): Declare.
20759 * emit-rtl.c (classify_insn): Move to...
20760 * rtl.c: ...here and add generator support.
20761 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
20762 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
20763 * genemit.c (gen_emit_seq): New function.
20764 (gen_expand, gen_split): Use it.
20766 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
20768 * tree.c (make_vector_stat): Fix comment to state that the
20769 function returns a VECTOR_CST.
20771 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
20773 * gensupport.h (add_implicit_parallel): Declare.
20774 * genrecog.c (add_implicit_parallel): Move to...
20775 * gensupport.c (add_implicit_parallel): ...here.
20776 (process_one_cond_exec): Use it.
20777 * genemit.c (gen_insn): Likewise.
20779 2015-06-13 Iain Sandoe <iain@codesourcery.com>
20782 * passes.c (rest_of_decl_compilation): Do not register globals for
20783 early debug if they are declared in built-ins.
20785 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
20787 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
20789 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20791 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
20793 (noce_try_cmove_arith): Likewise.
20794 (noce_get_alt_condition): Likewise.
20796 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
20798 * common/config/i386/i386-common.c
20799 (OPTION_MASK_ISA_MWAITX_SET): New.
20800 (ix86_handle_option): Handle mwaitx.
20801 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
20802 (x86_64-*-*): Likewise.
20803 * config/i386/mwaitxintrin.h: New header.
20804 * config/i386/cpuid.h (bit_MWAITX): Define.
20805 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
20807 * config/i386/i386.opt (mwaitx): New.
20808 * config/i386/i386-builtin-types.def
20809 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
20810 * config/i386/i386-c.c: Define __MWAITX__ if needed.
20811 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
20813 (ix86_option_override_internal): Handle new option.
20814 (processor_alias_table): Added PTA_MWAITX.
20815 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
20816 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
20817 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
20818 IX86_BUILTIN_MONITORX built-ins.
20819 * config/i386/i386.h (TARGET_MWAITX): New.
20820 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
20822 (mwaitx): New pattern.
20823 (monitorx_<mode>): New pattern.
20824 * config/i386/x86intrin.h: Include mwaitxintrin.h.
20825 * doc/extend.texi: Document monitorx and mwaitx builtins.
20826 * doc/invoke.texi: Document -mmwaitx option.
20828 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
20830 * emit-rtl.c (need_atomic_barrier_p): Mask model with
20831 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
20833 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
20835 * dbxout.c (xcoff_debug_hooks): Provide a function for
20836 register_main_translation_unit hook.
20838 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
20840 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
20841 variants cases from switch.
20842 (rs6000_post_atomic_barrier): Same.
20843 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
20844 (rs6000_expand_atomic_exchange): Same.
20845 (rs6000_expand_atomic_op): Same.
20846 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
20847 SYNC variants cases from switch.
20848 (atomic_load): Same.
20849 (atomic_store): Same.
20851 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
20853 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
20854 CONST_INT for goto.
20856 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
20859 * dwarf2out.c (check_die): Check for common duplicate attributes.
20860 (add_location_or_const_value_attribute): Do not add duplicate
20862 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
20864 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
20865 (gen_type_die_with_usage): Call check_die.
20866 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
20868 2015-06-11 Jason Merrill <jason@redhat.com>
20870 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
20873 2015-06-11 Marek Polacek <polacek@redhat.com>
20875 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
20877 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
20880 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
20881 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
20882 (*addx_extend_sp32): Fix pasto.
20883 (*subx_extend): Rename into...
20884 (*subx_extend_sp32): ...this.
20885 (*adddi3_extend_sp32): Add earlyclobber.
20886 (*subdi3_insn_sp32): Likewise.
20887 (*subdi3_extend_sp32): Likewise.
20888 (*and_not_di_sp32): Likewise.
20889 (*or_not_di_sp32): Likewise.
20890 (*xor_not_di_sp32): Likewise.
20891 (*negdi2_sp32): Likewise.
20892 (*one_cmpldi2_sp32): Likewise.
20894 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
20896 * debug.h (struct gcc_debug_hooks): Add a
20897 register_main_translation_unit hook.
20898 * debug.c (do_nothing_debug_hooks): Provide a function for this
20900 * dbxout.c (dbx_debug_hooks): Likewise.
20901 * sdbout.c (sdb_debug_hooks): Likewise.
20902 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
20903 * dwarf2out.c (main_translation_unit): New global variable.
20904 (dwarf2out_register_main_translation_unit): New function
20905 implementing the new hook.
20906 (dwarf2_debug_hooks): Assign
20907 dwarf2out_register_main_translation_unit to this new hook.
20908 (dwarf2out_init): Associate any main translation unit to
20911 2015-06-11 Marek Polacek <polacek@redhat.com>
20913 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
20915 2015-06-11 Marek Polacek <polacek@redhat.com>
20917 * match.pd: Use single_use throughout.
20919 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20921 * config/arm/arm.c (arm_option_params_internal): When optimising
20922 for speed set max_insns_skipped when arm_restrict_it.
20924 2015-06-11 Christian Bruel <christian.bruel@st.com>
20927 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
20929 (arm_cpu_builtins): New function.
20930 (arm_pragma_target_parse): Call arm_cpu_builtins.
20931 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
20932 (arm_register_target_pragmas): Likewise.
20933 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
20934 Call arm_register_target_pragmas.
20935 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
20936 (arm_pragma_target_parse): Likewise.
20938 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
20940 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
20941 of the second operand.
20943 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
20946 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
20947 to prepare mask operand for AVX512 modes.
20949 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
20952 * doc/md.texi (Machine Constraints): Document that on the PowerPC
20953 if you use a constraint that targets a VSX register, you must use
20954 %x<n> in the template.
20956 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
20958 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
20959 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
20960 (define_insn "trap"): New definition.
20962 2015-06-10 Richard Biener <rguenther@suse.de>
20964 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
20966 (vect_supported_load_permutation_p): ... here. Handle
20967 supportable permutations in reductions.
20968 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
20969 for vectorizing strided group loads.
20971 2015-06-10 Jakub Jelinek <jakub@redhat.com>
20974 * config/i386/i386.c (ix86_split_long_move): For collisions
20975 involving direct tls segment refs, move the UNSPEC_TP possibly
20976 wrapped in ZERO_EXTEND out of the address for lea, to each of
20979 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20981 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
20982 dmb sy. Adjust tabs.
20984 2015-06-10 Tom de Vries <tom@codesourcery.com>
20986 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
20988 2015-06-10 Martin Liska <mliska@suse.cz>
20991 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
20992 all enum values in mem_alloc_origin.
20993 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
20995 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
20996 * bitmap.c (bitmap_register): Likewise.
20997 (dump_bitmap_statistics): Likewise.
20998 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
20999 (ggc_record_overhead): Likewise.
21000 * hash-map.h: Likewise.
21001 * hash-set.h: Likewise.
21002 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
21003 * hash-table.h: Likewise.
21004 * vec.c (vec_prefix::register_overhead): Likewise.
21005 (vec_prefix::release_overhead): Likewise.
21006 (dump_vec_loc_statistics): Likewise.
21008 2015-06-09 Christian Bruel <christian.bruel@st.com>
21011 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
21012 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
21013 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
21014 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
21015 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
21016 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
21017 (arm_valid_target_attribute_p): Likewise.
21018 (arm_set_current_function, arm_can_inline_p): Likewise.
21019 (arm_valid_target_attribute_rec): Likewise.
21020 (arm_previous_fndecl): New variable.
21021 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
21022 (TARGET_CAN_INLINE_P): Define.
21023 (arm_asm_trampoline_template): Emit mode.
21024 (arm_file_start): Don't set unified syntax.
21025 (arm_declare_function_name): Set unified syntax and mode.
21026 (arm_option_override): Init target_option_default_node.
21027 and target_option_current_node.
21028 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
21029 (*call_symbol): Likewise.
21030 * doc/extend.texi: Document ARM/Thumb target attribute.
21031 * doc/invoke.texi: Likewise.
21033 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21036 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21037 PR rtl-optimization/64164
21038 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21039 * tree-ssa-copyrename.c: Removed.
21040 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21041 -ftree-coalesce-vars.
21042 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21043 * common.opt (ftree-copyrename): Ignore.
21044 (ftree-coalesce-inlined-vars): Likewise.
21045 * doc/invoke.texi: Remove the ignored options above.
21046 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21047 * tree-ssa-coalesce.h: ... here.
21048 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21049 headers required by it.
21050 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21051 across variables when flag_tree_coalesce_vars. Check register
21052 use and promoted modes to allow coalescing. Moved to
21053 tree-ssa-coalesce.c.
21054 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21055 with its member functions to tree-ssa-coalesce.c.
21056 (var_map_base_init): Likewise. Renamed to
21057 compute_samebase_partition_bases.
21058 (partition_view_normal): Drop want_bases parameter.
21059 (partition_view_bitmap): Likewise.
21060 * tree-ssa-live.h: Adjust declarations.
21061 * tree-ssa-coalesce.c: Include explow.h.
21062 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21063 default defs at the entry point.
21064 (dump_part_var_map): New.
21065 (compute_optimized_partition_bases): New, called by...
21066 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21067 of compute_samebase_partition_bases. Adjust.
21068 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21069 * cfgexpand.c (leader_merge): New.
21070 (get_rtl_for_parm_ssa_default_def): New.
21071 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21072 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21073 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21074 redundant MEM attr setting.
21075 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21077 (expand_one_stack_var): ... this. New wrapper to check and
21078 skip already expanded SSA partitions.
21079 (record_alignment_for_reg_var): New, factored out of...
21080 (expand_one_var): ... this.
21081 (expand_one_ssa_partition): New.
21082 (adjust_one_expanded_partition_var): New.
21083 (expand_one_register_var): Check and skip already expanded SSA
21085 (expand_used_vars): Don't create DECLs for anonymous SSA
21086 names. Expand all SSA partitions, then adjust all SSA names.
21087 (pass::execute): Replace the loops that set
21088 SA.partition_to_pseudo from partition leaders and cleared
21089 DECL_RTL for multi-location variables, and that which used to
21090 rename vars and set attrs, with one that clears DECL_RTL and
21091 checks that PARMs and RESULTs default_defs match DECL_RTL.
21092 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21093 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21094 * explow.c (promote_ssa_mode): New.
21095 * explow.h (promote_ssa_mode): Declare.
21096 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21097 * function.c: Include cfgexpand.h.
21098 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21099 (use_register_for_parm_decl): Wrapper for the above to
21100 special-case the result_ptr.
21101 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21102 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21103 multiple locations.
21104 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21105 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21106 (assign_parm_setup_block): Prefer SSA-assigned location.
21107 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21108 if stack_parm is NULL.
21109 (assign_parm_setup_stack): Prefer SSA-assigned location.
21110 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21111 rtl before testing for pointer bounds. Special-case result_ptr.
21112 (expand_function_start): Maybe reset DECL_RTL of result.
21113 Prefer SSA-assigned location for result and static chain.
21114 Factor out DECL_RESULT and SET_DECL_RTL.
21115 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21116 anonymous SSA names. Use promote_ssa_mode.
21117 (get_temp_reg): Likewise.
21118 (remove_ssa_form): Adjust.
21119 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21120 and get its reg_usage for reg invalidation.
21121 (compute_bb_dataflow): Pass it insn.
21122 (emit_notes_in_bb): Likewise.
21123 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21124 fail assert on conversion between unsigned types.
21126 2015-06-09 Tom de Vries <tom@codesourcery.com>
21128 PR tree-optimization/65460
21129 * omp-low.c (expand_omp_target): Set parallelized_function on
21130 cgraph_node for child_fn.
21132 2015-06-09 Tom de Vries <tom@codesourcery.com>
21134 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
21135 parallelized_function before add_new_function.
21137 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
21139 * gcc-plugin.h: Move decls to plugin.h and include it.
21140 * plugin.h: Relocate decls from gcc-plugin.h
21141 * ggc-page.c: Include required header files.
21142 * passes.c: Likewise.
21143 * cgraphunit.c: Likewise.
21145 2015-06-09 Tom de Vries <tom@codesourcery.com>
21147 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
21149 2015-06-09 Jason Merrill <jason@redhat.com>
21152 * toplev.c (check_global_declaration): Don't warn about a clone.
21154 2015-06-09 Marek Polacek <polacek@redhat.com>
21156 PR tree-optimization/66299
21157 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
21158 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
21161 2015-06-09 Richard Biener <rguenther@suse.de>
21163 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
21164 (vect_analyze_slp_instance): Instead do not falsely drop
21167 2015-06-09 Richard Biener <rguenther@suse.de>
21169 PR middle-end/66423
21170 * match.pd: Handle A % (unsigned)(1 << B).
21172 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
21174 * varasm.c (output_object_block_htab): Remove.
21175 (output_object_block_compare): New.
21176 (output_object_blocks): Sort named object_blocks before outputting
21179 2015-06-09 Richard Biener <rguenther@suse.de>
21181 PR tree-optimization/66419
21182 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
21183 consider GROUP_GAP when detecting a perfect subchain.
21185 2015-06-09 Nick Clifton <nickc@redhat.com>
21187 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
21188 place read only data in the .frodata section.
21190 2015-06-09 Shiva Chen <shiva0217@gmail.com>
21192 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
21193 (atomic_store<mode>): Likewise.
21195 2015-06-09 Richard Biener <rguenther@suse.de>
21197 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
21199 2015-06-09 Richard Biener <rguenther@suse.de>
21201 PR middle-end/66413
21202 * tree-inline.c (insert_init_debug_bind): Unshare value.
21204 2015-06-09 Richard Biener <rguenther@suse.de>
21206 PR tree-optimization/66396
21207 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
21208 Rename virtual operands.
21210 2015-06-09 Tom de Vries <tom@codesourcery.com>
21212 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
21213 always return false.
21215 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21217 PR rtl-optimization/64164
21218 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21219 * tree-ssa-copyrename.c: Removed.
21220 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21221 -ftree-coalesce-vars.
21222 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21223 * common.opt (ftree-copyrename): Ignore.
21224 (ftree-coalesce-inlined-vars): Likewise.
21225 * doc/invoke.texi: Remove the ignored options above.
21226 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21227 * tree-ssa-coalesce.h: ... here.
21228 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21229 headers required by it.
21230 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21231 across variables when flag_tree_coalesce_vars. Check register
21232 use and promoted modes to allow coalescing. Moved to
21233 tree-ssa-coalesce.c.
21234 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21235 with its member functions to tree-ssa-coalesce.c.
21236 (var_map_base_init): Likewise. Renamed to
21237 compute_samebase_partition_bases.
21238 (partition_view_normal): Drop want_bases parameter.
21239 (partition_view_bitmap): Likewise.
21240 * tree-ssa-live.h: Adjust declarations.
21241 * tree-ssa-coalesce.c: Include explow.h.
21242 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21243 default defs at the entry point.
21244 (dump_part_var_map): New.
21245 (compute_optimized_partition_bases): New, called by...
21246 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21247 of compute_samebase_partition_bases. Adjust.
21248 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21249 * cfgexpand.c (leader_merge): New.
21250 (get_rtl_for_parm_ssa_default_def): New.
21251 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21252 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21253 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21254 redundant MEM attr setting.
21255 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21257 (expand_one_stack_var): ... this. New wrapper to check and
21258 skip already expanded SSA partitions.
21259 (record_alignment_for_reg_var): New, factored out of...
21260 (expand_one_var): ... this.
21261 (expand_one_ssa_partition): New.
21262 (adjust_one_expanded_partition_var): New.
21263 (expand_one_register_var): Check and skip already expanded SSA
21265 (expand_used_vars): Don't create DECLs for anonymous SSA
21266 names. Expand all SSA partitions, then adjust all SSA names.
21267 (pass::execute): Replace the loops that set
21268 SA.partition_to_pseudo from partition leaders and cleared
21269 DECL_RTL for multi-location variables, and that which used to
21270 rename vars and set attrs, with one that clears DECL_RTL and
21271 checks that PARMs and RESULTs default_defs match DECL_RTL.
21272 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21273 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21274 * explow.c (promote_ssa_mode): New.
21275 * explow.h (promote_ssa_mode): Declare.
21276 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21277 * function.c: Include cfgexpand.h.
21278 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21279 (use_register_for_parm_decl): Wrapper for the above to
21280 special-case the result_ptr.
21281 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21282 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21283 multiple locations.
21284 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21285 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21286 (assign_parm_setup_block): Prefer SSA-assigned location.
21287 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21288 if stack_parm is NULL.
21289 (assign_parm_setup_stack): Prefer SSA-assigned location.
21290 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21291 rtl before testing for pointer bounds. Special-case result_ptr.
21292 (expand_function_start): Maybe reset DECL_RTL of result.
21293 Prefer SSA-assigned location for result and static chain.
21294 Factor out DECL_RESULT and SET_DECL_RTL.
21295 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21296 anonymous SSA names. Use promote_ssa_mode.
21297 (get_temp_reg): Likewise.
21298 (remove_ssa_form): Adjust.
21299 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21300 and get its reg_usage for reg invalidation.
21301 (compute_bb_dataflow): Pass it insn.
21302 (emit_notes_in_bb): Likewise.
21303 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
21304 fail assert on conversion between unsigned types.
21306 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
21309 * tree-inline.c (reset_debug_binding): New.
21310 (reset_debug_bindings): Likewise.
21311 (expand_call_inline): Call it.
21313 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21315 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
21318 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21320 * lto-streamer-out.c (lto_output_location): Stream
21321 reserved locations correctly.
21322 * lto-streamer-in.c (lto_output_location): Likewise.
21324 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
21326 * coretypes.h: Include hash-table.h and hash-set.h for host files.
21327 * ggc.h: Don't include statistics.h>
21328 * hash-map.h: Remove all includes.
21329 * hash-set.h: Likewise.
21330 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
21331 the include list. Remove <new>.
21332 * inchash.h: Remove all includes.
21333 * mem-stats.h: Likewise.
21334 * vec.h: No special processing for generators or ggc.
21335 * alias.c : Adjust include files.
21336 * alloc-pool.c : Likewise.
21337 * alloc-pool.h : Likewise.
21338 * asan.c : Likewise.
21339 * attribs.c : Likewise.
21340 * auto-inc-dec.c : Likewise.
21341 * auto-profile.c : Likewise.
21342 * bb-reorder.c : Likewise.
21343 * bitmap.c : Likewise.
21344 * bitmap.h : Likewise.
21345 * bt-load.c : Likewise.
21346 * builtins.c : Likewise.
21347 * caller-save.c : Likewise.
21348 * calls.c : Likewise.
21349 * ccmp.c : Likewise.
21350 * cfg.c : Likewise.
21351 * cfganal.c : Likewise.
21352 * cfgbuild.c : Likewise.
21353 * cfgcleanup.c : Likewise.
21354 * cfgexpand.c : Likewise.
21355 * cfghooks.c : Likewise.
21356 * cfgloop.c : Likewise.
21357 * cfgloop.h : Likewise.
21358 * cfgloopanal.c : Likewise.
21359 * cfgloopmanip.c : Likewise.
21360 * cfgrtl.c : Likewise.
21361 * cgraph.c : Likewise.
21362 * cgraphbuild.c : Likewise.
21363 * cgraphclones.c : Likewise.
21364 * cgraphunit.c : Likewise.
21365 * cilk-common.c : Likewise.
21366 * combine-stack-adj.c : Likewise.
21367 * combine.c : Likewise.
21368 * compare-elim.c : Likewise.
21369 * context.c : Likewise.
21370 * convert.c : Likewise.
21371 * coverage.c : Likewise.
21372 * cppbuiltin.c : Likewise.
21373 * cprop.c : Likewise.
21374 * cse.c : Likewise.
21375 * cselib.c : Likewise.
21376 * data-streamer-in.c : Likewise.
21377 * data-streamer-out.c : Likewise.
21378 * data-streamer.c : Likewise.
21379 * data-streamer.h : Likewise.
21380 * dbxout.c : Likewise.
21381 * dce.c : Likewise.
21382 * ddg.c : Likewise.
21383 * debug.c : Likewise.
21384 * df-core.c : Likewise.
21385 * df-problems.c : Likewise.
21386 * df-scan.c : Likewise.
21388 * dfp.c : Likewise.
21389 * dojump.c : Likewise.
21390 * dominance.c : Likewise.
21391 * domwalk.c : Likewise.
21392 * double-int.c : Likewise.
21393 * dse.c : Likewise.
21394 * dumpfile.c : Likewise.
21395 * dwarf2asm.c : Likewise.
21396 * dwarf2cfi.c : Likewise.
21397 * dwarf2out.c : Likewise.
21398 * emit-rtl.c : Likewise.
21399 * et-forest.c : Likewise.
21400 * except.c : Likewise.
21401 * except.h : Likewise.
21402 * explow.c : Likewise.
21403 * expmed.c : Likewise.
21404 * expr.c : Likewise.
21405 * final.c : Likewise.
21406 * fixed-value.c : Likewise.
21407 * fold-const.c : Likewise.
21408 * function.c : Likewise.
21409 * fwprop.c : Likewise.
21410 * gcc-plugin.h : Likewise.
21411 * gcc.c : Likewise.
21412 * gcse-common.c : Likewise.
21413 * gcse.c : Likewise.
21414 * genattrtab.c : Likewise.
21415 * genautomata.c : Likewise.
21416 * genconditions.c : Likewise.
21417 * genemit.c : Likewise.
21418 * generic-match-head.c : Likewise.
21419 * genextract.c : Likewise.
21420 * gengtype-state.c : Likewise.
21421 * gengtype.c : Likewise.
21422 * genhooks.c : Likewise.
21423 * genmatch.c : Likewise.
21424 * genmodes.c : Likewise.
21425 * genrecog.c : Likewise.
21426 * gensupport.c : Likewise.
21427 * ggc-common.c : Likewise.
21428 * ggc-internal.h : Likewise.
21429 * ggc-none.c : Likewise.
21430 * ggc-page.c : Likewise.
21431 * gimple-builder.c : Likewise.
21432 * gimple-expr.c : Likewise.
21433 * gimple-fold.c : Likewise.
21434 * gimple-iterator.c : Likewise.
21435 * gimple-low.c : Likewise.
21436 * gimple-match-head.c : Likewise.
21437 * gimple-pretty-print.c : Likewise.
21438 * gimple-ssa-isolate-paths.c : Likewise.
21439 * gimple-ssa-strength-reduction.c : Likewise.
21440 * gimple-ssa.h : Likewise.
21441 * gimple-streamer-in.c : Likewise.
21442 * gimple-streamer-out.c : Likewise.
21443 * gimple-streamer.h : Likewise.
21444 * gimple-walk.c : Likewise.
21445 * gimple.c : Likewise.
21446 * gimplify-me.c : Likewise.
21447 * gimplify.c : Likewise.
21448 * godump.c : Likewise.
21449 * graph.c : Likewise.
21450 * graphds.c : Likewise.
21451 * graphite-blocking.c : Likewise.
21452 * graphite-dependences.c : Likewise.
21453 * graphite-interchange.c : Likewise.
21454 * graphite-isl-ast-to-gimple.c : Likewise.
21455 * graphite-optimize-isl.c : Likewise.
21456 * graphite-poly.c : Likewise.
21457 * graphite-scop-detection.c : Likewise.
21458 * graphite-sese-to-poly.c : Likewise.
21459 * graphite.c : Likewise.
21460 * haifa-sched.c : Likewise.
21461 * hard-reg-set.h : Likewise.
21462 * hw-doloop.c : Likewise.
21463 * ifcvt.c : Likewise.
21464 * inchash.c : Likewise.
21465 * incpath.c : Likewise.
21466 * init-regs.c : Likewise.
21467 * input.c : Likewise.
21468 * internal-fn.c : Likewise.
21469 * ipa-chkp.c : Likewise.
21470 * ipa-comdats.c : Likewise.
21471 * ipa-cp.c : Likewise.
21472 * ipa-devirt.c : Likewise.
21473 * ipa-icf-gimple.c : Likewise.
21474 * ipa-icf.c : Likewise.
21475 * ipa-inline-analysis.c : Likewise.
21476 * ipa-inline-transform.c : Likewise.
21477 * ipa-inline.c : Likewise.
21478 * ipa-polymorphic-call.c : Likewise.
21479 * ipa-profile.c : Likewise.
21480 * ipa-prop.c : Likewise.
21481 * ipa-pure-const.c : Likewise.
21482 * ipa-ref.c : Likewise.
21483 * ipa-reference.c : Likewise.
21484 * ipa-split.c : Likewise.
21485 * ipa-utils.c : Likewise.
21486 * ipa-visibility.c : Likewise.
21487 * ipa.c : Likewise.
21488 * ira-build.c : Likewise.
21489 * ira-color.c : Likewise.
21490 * ira-conflicts.c : Likewise.
21491 * ira-costs.c : Likewise.
21492 * ira-emit.c : Likewise.
21493 * ira-lives.c : Likewise.
21494 * ira.c : Likewise.
21495 * jump.c : Likewise.
21496 * langhooks.c : Likewise.
21497 * lcm.c : Likewise.
21498 * libfuncs.h : Likewise.
21499 * lists.c : Likewise.
21500 * loop-doloop.c : Likewise.
21501 * loop-init.c : Likewise.
21502 * loop-invariant.c : Likewise.
21503 * loop-iv.c : Likewise.
21504 * loop-unroll.c : Likewise.
21505 * lower-subreg.c : Likewise.
21506 * lra-assigns.c : Likewise.
21507 * lra-coalesce.c : Likewise.
21508 * lra-constraints.c : Likewise.
21509 * lra-eliminations.c : Likewise.
21510 * lra-lives.c : Likewise.
21511 * lra-remat.c : Likewise.
21512 * lra-spills.c : Likewise.
21513 * lra.c : Likewise.
21514 * lto-cgraph.c : Likewise.
21515 * lto-compress.c : Likewise.
21516 * lto-opts.c : Likewise.
21517 * lto-section-in.c : Likewise.
21518 * lto-section-out.c : Likewise.
21519 * lto-streamer-in.c : Likewise.
21520 * lto-streamer-out.c : Likewise.
21521 * lto-streamer.c : Likewise.
21522 * lto-streamer.h : Likewise.
21523 * mcf.c : Likewise.
21524 * mode-switching.c : Likewise.
21525 * modulo-sched.c : Likewise.
21526 * omega.c : Likewise.
21527 * omp-low.c : Likewise.
21528 * optabs.c : Likewise.
21529 * opts-global.c : Likewise.
21530 * opts.h : Likewise.
21531 * passes.c : Likewise.
21532 * plugin.c : Likewise.
21533 * postreload-gcse.c : Likewise.
21534 * postreload.c : Likewise.
21535 * predict.c : Likewise.
21536 * print-rtl.c : Likewise.
21537 * print-tree.c : Likewise.
21538 * profile.c : Likewise.
21539 * read-md.c : Likewise.
21540 * read-md.h : Likewise.
21541 * read-rtl.c : Likewise.
21542 * real.c : Likewise.
21543 * realmpfr.c : Likewise.
21544 * recog.c : Likewise.
21545 * ree.c : Likewise.
21546 * reg-stack.c : Likewise.
21547 * regcprop.c : Likewise.
21548 * reginfo.c : Likewise.
21549 * regrename.c : Likewise.
21550 * regstat.c : Likewise.
21551 * reload.c : Likewise.
21552 * reload1.c : Likewise.
21553 * reorg.c : Likewise.
21554 * resource.c : Likewise.
21555 * rtl-chkp.c : Likewise.
21556 * rtl.c : Likewise.
21557 * rtl.h : Likewise.
21558 * rtlanal.c : Likewise.
21559 * rtlhash.c : Likewise.
21560 * rtlhash.h : Likewise.
21561 * rtlhooks.c : Likewise.
21562 * sanopt.c : Likewise.
21563 * sched-deps.c : Likewise.
21564 * sched-ebb.c : Likewise.
21565 * sched-rgn.c : Likewise.
21566 * sched-vis.c : Likewise.
21567 * sdbout.c : Likewise.
21568 * sel-sched-dump.c : Likewise.
21569 * sel-sched-ir.c : Likewise.
21570 * sel-sched-ir.h : Likewise.
21571 * sel-sched.c : Likewise.
21572 * sese.c : Likewise.
21573 * shrink-wrap.c : Likewise.
21574 * shrink-wrap.h : Likewise.
21575 * simplify-rtx.c : Likewise.
21576 * stack-ptr-mod.c : Likewise.
21577 * statistics.c : Likewise.
21578 * stmt.c : Likewise.
21579 * stor-layout.c : Likewise.
21580 * store-motion.c : Likewise.
21581 * stringpool.c : Likewise.
21582 * symtab.c : Likewise.
21583 * target-globals.c : Likewise.
21584 * targhooks.c : Likewise.
21585 * tlink.c : Likewise.
21586 * toplev.c : Likewise.
21587 * tracer.c : Likewise.
21588 * trans-mem.c : Likewise.
21589 * tree-affine.c : Likewise.
21590 * tree-affine.h : Likewise.
21591 * tree-browser.c : Likewise.
21592 * tree-call-cdce.c : Likewise.
21593 * tree-cfg.c : Likewise.
21594 * tree-cfgcleanup.c : Likewise.
21595 * tree-chkp-opt.c : Likewise.
21596 * tree-chkp.c : Likewise.
21597 * tree-chrec.c : Likewise.
21598 * tree-complex.c : Likewise.
21599 * tree-data-ref.c : Likewise.
21600 * tree-dfa.c : Likewise.
21601 * tree-diagnostic.c : Likewise.
21602 * tree-dump.c : Likewise.
21603 * tree-eh.c : Likewise.
21604 * tree-eh.h : Likewise.
21605 * tree-emutls.c : Likewise.
21606 * tree-hasher.h : Likewise.
21607 * tree-if-conv.c : Likewise.
21608 * tree-inline.c : Likewise.
21609 * tree-inline.h : Likewise.
21610 * tree-into-ssa.c : Likewise.
21611 * tree-iterator.c : Likewise.
21612 * tree-loop-distribution.c : Likewise.
21613 * tree-nested.c : Likewise.
21614 * tree-nrv.c : Likewise.
21615 * tree-object-size.c : Likewise.
21616 * tree-outof-ssa.c : Likewise.
21617 * tree-parloops.c : Likewise.
21618 * tree-phinodes.c : Likewise.
21619 * tree-predcom.c : Likewise.
21620 * tree-pretty-print.c : Likewise.
21621 * tree-profile.c : Likewise.
21622 * tree-scalar-evolution.c : Likewise.
21623 * tree-sra.c : Likewise.
21624 * tree-ssa-address.c : Likewise.
21625 * tree-ssa-alias.c : Likewise.
21626 * tree-ssa-ccp.c : Likewise.
21627 * tree-ssa-coalesce.c : Likewise.
21628 * tree-ssa-copy.c : Likewise.
21629 * tree-ssa-copyrename.c : Likewise.
21630 * tree-ssa-dce.c : Likewise.
21631 * tree-ssa-dom.c : Likewise.
21632 * tree-ssa-dse.c : Likewise.
21633 * tree-ssa-forwprop.c : Likewise.
21634 * tree-ssa-ifcombine.c : Likewise.
21635 * tree-ssa-live.c : Likewise.
21636 * tree-ssa-loop-ch.c : Likewise.
21637 * tree-ssa-loop-im.c : Likewise.
21638 * tree-ssa-loop-ivcanon.c : Likewise.
21639 * tree-ssa-loop-ivopts.c : Likewise.
21640 * tree-ssa-loop-manip.c : Likewise.
21641 * tree-ssa-loop-niter.c : Likewise.
21642 * tree-ssa-loop-prefetch.c : Likewise.
21643 * tree-ssa-loop-unswitch.c : Likewise.
21644 * tree-ssa-loop.c : Likewise.
21645 * tree-ssa-math-opts.c : Likewise.
21646 * tree-ssa-operands.c : Likewise.
21647 * tree-ssa-phiopt.c : Likewise.
21648 * tree-ssa-phiprop.c : Likewise.
21649 * tree-ssa-pre.c : Likewise.
21650 * tree-ssa-propagate.c : Likewise.
21651 * tree-ssa-reassoc.c : Likewise.
21652 * tree-ssa-sccvn.c : Likewise.
21653 * tree-ssa-scopedtables.c : Likewise.
21654 * tree-ssa-sink.c : Likewise.
21655 * tree-ssa-strlen.c : Likewise.
21656 * tree-ssa-structalias.c : Likewise.
21657 * tree-ssa-tail-merge.c : Likewise.
21658 * tree-ssa-ter.c : Likewise.
21659 * tree-ssa-threadedge.c : Likewise.
21660 * tree-ssa-threadupdate.c : Likewise.
21661 * tree-ssa-uncprop.c : Likewise.
21662 * tree-ssa-uninit.c : Likewise.
21663 * tree-ssa.c : Likewise.
21664 * tree-ssanames.c : Likewise.
21665 * tree-stdarg.c : Likewise.
21666 * tree-streamer-in.c : Likewise.
21667 * tree-streamer-out.c : Likewise.
21668 * tree-streamer.c : Likewise.
21669 * tree-streamer.h : Likewise.
21670 * tree-switch-conversion.c : Likewise.
21671 * tree-tailcall.c : Likewise.
21672 * tree-vect-data-refs.c : Likewise.
21673 * tree-vect-generic.c : Likewise.
21674 * tree-vect-loop-manip.c : Likewise.
21675 * tree-vect-loop.c : Likewise.
21676 * tree-vect-patterns.c : Likewise.
21677 * tree-vect-slp.c : Likewise.
21678 * tree-vect-stmts.c : Likewise.
21679 * tree-vectorizer.c : Likewise.
21680 * tree-vectorizer.h : Likewise.
21681 * tree-vrp.c : Likewise.
21682 * tree.c : Likewise.
21683 * tsan.c : Likewise.
21684 * ubsan.c : Likewise.
21685 * valtrack.c : Likewise.
21686 * valtrack.h : Likewise.
21687 * value-prof.c : Likewise.
21688 * var-tracking.c : Likewise.
21689 * varasm.c : Likewise.
21690 * varpool.c : Likewise.
21692 * vmsdbgout.c : Likewise.
21693 * vtable-verify.c : Likewise.
21694 * vtable-verify.h : Likewise.
21695 * web.c : Likewise.
21696 * wide-int.cc : Likewise.
21697 * xcoffout.c : Likewise.
21698 * config/aarch64/aarch64-builtins.c : Likewise.
21699 * config/aarch64/aarch64.c : Likewise.
21700 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
21701 * config/alpha/alpha.c : Likewise.
21702 * config/arc/arc.c : Likewise.
21703 * config/arm/aarch-common.c : Likewise.
21704 * config/arm/arm-builtins.c : Likewise.
21705 * config/arm/arm-c.c : Likewise.
21706 * config/arm/arm.c : Likewise.
21707 * config/avr/avr-c.c : Likewise.
21708 * config/avr/avr-log.c : Likewise.
21709 * config/avr/avr.c : Likewise.
21710 * config/bfin/bfin.c : Likewise.
21711 * config/c6x/c6x.c : Likewise.
21712 * config/cr16/cr16.c : Likewise.
21713 * config/cris/cris.c : Likewise.
21714 * config/darwin-c.c : Likewise.
21715 * config/darwin.c : Likewise.
21716 * config/default-c.c : Likewise.
21717 * config/epiphany/epiphany.c : Likewise.
21718 * config/epiphany/mode-switch-use.c : Likewise.
21719 * config/epiphany/resolve-sw-modes.c : Likewise.
21720 * config/fr30/fr30.c : Likewise.
21721 * config/frv/frv.c : Likewise.
21722 * config/ft32/ft32.c : Likewise.
21723 * config/glibc-c.c : Likewise.
21724 * config/h8300/h8300.c : Likewise.
21725 * config/i386/i386-c.c : Likewise.
21726 * config/i386/i386.c : Likewise.
21727 * config/i386/msformat-c.c : Likewise.
21728 * config/i386/winnt-cxx.c : Likewise.
21729 * config/i386/winnt-stubs.c : Likewise.
21730 * config/i386/winnt.c : Likewise.
21731 * config/ia64/ia64-c.c : Likewise.
21732 * config/ia64/ia64.c : Likewise.
21733 * config/iq2000/iq2000.c : Likewise.
21734 * config/lm32/lm32.c : Likewise.
21735 * config/m32c/m32c-pragma.c : Likewise.
21736 * config/m32c/m32c.c : Likewise.
21737 * config/m32r/m32r.c : Likewise.
21738 * config/m68k/m68k.c : Likewise.
21739 * config/mcore/mcore.c : Likewise.
21740 * config/mep/mep-pragma.c : Likewise.
21741 * config/mep/mep.c : Likewise.
21742 * config/microblaze/microblaze-c.c : Likewise.
21743 * config/microblaze/microblaze.c : Likewise.
21744 * config/mips/mips.c : Likewise.
21745 * config/mmix/mmix.c : Likewise.
21746 * config/mn10300/mn10300.c : Likewise.
21747 * config/moxie/moxie.c : Likewise.
21748 * config/msp430/msp430-c.c : Likewise.
21749 * config/msp430/msp430.c : Likewise.
21750 * config/nds32/nds32-cost.c : Likewise.
21751 * config/nds32/nds32-fp-as-gp.c : Likewise.
21752 * config/nds32/nds32-intrinsic.c : Likewise.
21753 * config/nds32/nds32-isr.c : Likewise.
21754 * config/nds32/nds32-md-auxiliary.c : Likewise.
21755 * config/nds32/nds32-memory-manipulation.c : Likewise.
21756 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
21757 * config/nds32/nds32-predicates.c : Likewise.
21758 * config/nds32/nds32.c : Likewise.
21759 * config/nios2/nios2.c : Likewise.
21760 * config/nvptx/nvptx.c : Likewise.
21761 * config/pa/pa.c : Likewise.
21762 * config/pdp11/pdp11.c : Likewise.
21763 * config/rl78/rl78-c.c : Likewise.
21764 * config/rl78/rl78.c : Likewise.
21765 * config/rs6000/rs6000-c.c : Likewise.
21766 * config/rs6000/rs6000.c : Likewise.
21767 * config/rx/rx.c : Likewise.
21768 * config/s390/s390-c.c : Likewise.
21769 * config/s390/s390.c : Likewise.
21770 * config/sh/sh-c.c : Likewise.
21771 * config/sh/sh-mem.cc : Likewise.
21772 * config/sh/sh.c : Likewise.
21773 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
21774 * config/sh/sh_treg_combine.cc : Likewise.
21775 * config/sol2-c.c : Likewise.
21776 * config/sol2-cxx.c : Likewise.
21777 * config/sol2-stubs.c : Likewise.
21778 * config/sol2.c : Likewise.
21779 * config/sparc/sparc-c.c : Likewise.
21780 * config/sparc/sparc.c : Likewise.
21781 * config/spu/spu-c.c : Likewise.
21782 * config/spu/spu.c : Likewise.
21783 * config/stormy16/stormy16.c : Likewise.
21784 * config/tilegx/mul-tables.c : Likewise.
21785 * config/tilegx/tilegx-c.c : Likewise.
21786 * config/tilegx/tilegx.c : Likewise.
21787 * config/tilepro/mul-tables.c : Likewise.
21788 * config/tilepro/tilepro-c.c : Likewise.
21789 * config/tilepro/tilepro.c : Likewise.
21790 * config/v850/v850-c.c : Likewise.
21791 * config/v850/v850.c : Likewise.
21792 * config/vax/vax.c : Likewise.
21793 * config/visium/visium.c : Likewise.
21794 * config/vms/vms-c.c : Likewise.
21795 * config/vms/vms.c : Likewise.
21796 * config/vxworks.c : Likewise.
21797 * config/winnt-c.c : Likewise.
21798 * config/xtensa/xtensa.c : Likewise.
21800 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
21803 * ipa-utils.h (warn_types_mismatch): Update prototype.
21804 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
21806 (type_mismatch_p): New function.
21807 (warn_types_mismatch): Reorg to work better on non-C++ types.
21808 (odr_types_equivalent_p): Add loc1/loc2 parameters.
21809 (add_type_duplicate): Update.
21811 2015-06-08 Tom de Vries <tom@codesourcery.com>
21813 PR rtl-optimization/66444
21814 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
21817 2015-06-08 Richard Biener <rguenther@suse.de>
21819 PR tree-optimization/66422
21820 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
21821 block after inserted gcc_unreachable.
21823 2015-06-08 Nick Clifton <nickc@redhat.com>
21825 * config/rx/rx.c (rx_function_value): Do not promote vector types.
21826 (rx_promote_function_mode): Likewise.
21827 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
21829 2015-06-08 Jakub Jelinek <jakub@redhat.com>
21831 * genattrtab.c (insn_alternatives): Change type from int *
21833 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
21834 (get_attr_value): Change type of num_alt to uint64_t.
21835 (compute_alternative_mask): Change return type from
21836 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
21837 (make_alternative_compare, mk_attr_alt): Change argument type
21838 from int to uint64_t.
21839 (simplify_test_exp): Change type of i from int to uint64_t.
21840 Shift ((uint64_t) 1) instead of 1 up.
21841 (main): Adjust oballocvec first argument from int to uint64_t.
21842 Shift ((uint64_t) 1) instead of 1 up.
21844 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
21847 * gdbhooks.py: Import sys.
21848 (intptr): New function. Replace int(...) by intptr(...).
21850 2015-06-08 Richard Biener <rguenther@suse.de>
21852 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
21853 adjustment for gaps at the end of a SLP load group properly.
21854 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
21855 all permutations we can generate.
21856 (vect_transform_slp_perm_load): Use the correct group-size.
21858 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
21860 * genmatch.c (expr::gen_transform): For conditions, guess the type
21861 from the second operand.
21863 2015-06-08 Tom de Vries <tom@codesourcery.com>
21865 PR tree-optimization/66442
21866 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
21867 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
21868 if the loop latch is not a singleton. Use
21869 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
21871 2015-06-08 Marek Polacek <polacek@redhat.com>
21874 * toplev.c (check_global_declaration): Don't warn about artificial
21877 2015-06-08 Tom de Vries <tom@codesourcery.com>
21879 PR tree-optimization/66436
21880 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
21882 * gimplify.c: Add tree-dump.h include.
21883 (gimplify_function_tree): Dump function to gimple dump file.
21884 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
21887 2015-06-08 Tom de Vries <tom@codesourcery.com>
21889 PR tree-optimization/66435
21890 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
21893 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
21895 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
21896 of ptr_type_node to not be ptr_to_node.
21897 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
21898 TREE_TYPE of pointers.
21899 * gimple-expr.c (useless_type_conversion): Reorder the check for
21900 function pointers and TYPE_CANONICAL.
21902 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
21905 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
21906 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
21907 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
21909 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
21910 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
21911 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
21912 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
21913 and non iso if unix2003.
21915 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
21917 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
21919 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
21921 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
21922 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
21923 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
21924 except.c, final.c, function.c, gcse-common.c, genemit.c,
21925 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
21926 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
21927 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
21928 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
21931 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
21933 * combine.c (combine_split_insns): Remove cast.
21934 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
21935 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
21936 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
21937 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
21938 * genemit.c (gen_split): Change return type of generated functions to
21940 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
21941 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
21942 gen_peephole2_* functions.
21943 (print_subroutine, main): Likewise.
21944 * recog.c (peephole2_optimize): Remove cast.
21945 (peep2_next_insn): Promote return type to rtx_insn.
21946 * recog.h (peep2_next_insn): Fix prototype.
21947 * rtl.h (try_split, split_insns): Likewise.
21949 2015-06-06 DJ Delorie <dj@redhat.com>
21951 * config/msp430/msp430.c (msp430_asm_integer): Support addition
21952 and subtraction too.
21954 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
21957 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
21958 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
21959 instead of Snd. Disparage Sid/z alternative with '^'.
21961 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
21963 * dwarf2out.c: Remove deferred_locations*.
21964 (dwarf2_debug_hooks): Add early_finish hook.
21965 Remove global_decl hook.
21966 Add early_global_decl and late_global_decl hook.
21967 New global early_dwarf.
21968 New structure set_early_dwarf.
21969 (output_die): Indicate whether a DIE was generated early
21970 when generating assembly with -dA.
21971 (struct limbo_die_struct): Document created_for field.
21972 Remove file_table_last_lookup.
21973 (remove_AT): Return TRUE if successful.
21974 (remove_child_TAG): Clear die_parent.
21975 (reparent_child): New function abstracted from...
21976 (splice_child_die): ...here.
21977 (new_die): ICE if a DIE ends up in limbo too late.
21979 (defer_location): Remove.
21980 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
21981 (fill_variable_array_bounds): New.
21982 (decl_start_label): Call fill_variable_array_bounds.
21983 (gen_formal_parameter_die): Rewrite to reuse previously generated
21985 (gen_subprogram_die): Same.
21986 (gen_variable_die): Same.
21987 (gen_const_die): Same.
21988 (gen_label_die): Same.
21989 (gen_lexical_block_die): Same.
21990 (decl_will_get_specification_p): New.
21991 (local_function_static): New.
21992 (gen_struct_or_union_type_die): Fill in variable-length fields.
21993 (gen_typedef_die): Fill in variable-length typedefs.
21994 (gen_tagged_type_die): Gracefully return on error_mark_node.
21995 Handle re-entrancy.
21996 (gen_type_die_with_usage): Handle variable-length types.
21997 Remove duplicate code for ARRAY_TYPE case.
21998 (process_scope_var): Only process imported modules during early
22000 (dwarf2out_early_global_decl): New.
22001 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
22002 (dwarf2out_type_decl): Set early_dwarf while calling
22004 (dwarf2out_decl): Verify that we did not recreate a previously
22006 Do not return on DECL_EXTERNALs in VAR_DECLs.
22007 Abstract some code to local_function_static.
22008 (lookup_filename): Remove use of file_table_last_lookup.
22009 Gracefully exit on missing file_name.
22010 (dwarf2out_finish): Verify limbo list.
22011 Remove deferred_locations_list use.
22012 Move deferred_asm_name and limbo flushing to...
22013 (dwarf2out_early_finish): ...here. New.
22014 (dwarf2out_c_finalize): Remove set of deferred_location_list,
22015 deferred_asm_name, and file_table_last_lookup.
22016 * cgraph.h (referred_to_p): Add default argument.
22017 * cgraphunit.c (referred_to_p): Add and handle include_self
22019 (analyze_functions): Add first_time argument.
22020 Call check_global_declaration for all symbols.
22021 Call late_global_decl for nodes for moribund nodes.
22022 (finalize_compilation_unit): Add new argument to
22024 Call early_global_decl for functions.
22025 Call early_finish debug hook.
22026 * dbxout.c (dbxout_early_global_decl): New.
22027 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
22028 (dbx_debug_hooks): Add new hooks.
22029 (xcoff_debug_hooks): Same.
22030 * debug.c (do_nothing_debug_hooks): Add early_finish field.
22031 Add early and late debug hooks.
22032 Remove global_decl hook.
22033 * debug.h (struct gcc_debug_hooks): Add early_finish,
22034 early_global_decl, and late_global_decl fields.
22035 Remove global_decl field.
22036 Document gcc_debug_hooks.
22037 * gengtype.c (output_typename): Remove.
22038 * godump.c (go_early_global_decl): New.
22039 (go_late_global_decl): New.
22040 (go_global_decl): Remove.
22041 (dump_go_spec_init): Remove global_decl. Add
22042 {early,late}_global_decl.
22043 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
22044 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
22045 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
22046 (write_global_declarations): Remove.
22047 (global_decl_processing): New.
22048 * langhooks.h (struct lang_hooks_for_decls): Remove
22049 final_write_globals field.
22050 Add post_compilation_parsing_cleanups field.
22051 * passes.c (rest_of_decl_compilation): Call early_global_decl.
22052 * sdbout.c: Add early and late_global_decl hooks. Remove
22053 sdbout_global_decl hook.
22054 Add early_finish field for sdb_debug_hooks.
22055 (sdbout_global_decl): Remove.
22056 (sdbout_early_global_decl): New.
22057 (sdbout_late_global_decl): New.
22058 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
22059 * toplev.c (check_global_declaration): Rename from
22060 check_global_declaration_1.
22061 Adapt to use symtab infrastructure.
22062 (check_global_declarations): Remove.
22063 (emit_debug_global_declarations): Remove.
22064 (compile_file): Remove call to final_write_globals langhook.
22065 Run the actual compilation process.
22066 Perform any post compilation parser cleanups.
22067 Generate late debug info.
22068 * toplev.h (check_global_declaration): New.
22069 (check_global_declaration_1): Remove.
22070 (check_global_declarations): Remove.
22071 (write_global_declarations): Remove.
22072 (emit_debug_global_declarations): Remove.
22073 (global_decl_processing): New.
22074 * tree-core.h (struct tree_block): Add DIE field.
22075 * tree.h (BLOCK_DIE): New.
22076 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
22078 (vmsdbgout_early_global_decl): New.
22079 (vmsdbgout_late_global_decl): New.
22080 Add early_finish debug hook field to vmsdbg_debug_hooks.
22081 Remove vmsdbgout_decl to vmsdbgout_function_decl.
22082 Add early and late_global_decl debug hooks.
22084 2015-06-05 Julian Brown <julian@codesourcery.com>
22085 Sandra Loosemore <sandra@codesourcery.com>
22087 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
22088 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
22089 to print-sysroot-suffix.sh script.
22091 2015-06-05 Tom de Vries <tom@codesourcery.com>
22093 merge from gomp4 branch:
22094 2015-05-28 Tom de Vries <tom@codesourcery.com>
22096 PR tree-optimization/65443
22097 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
22098 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
22099 (try_transform_to_exit_first_loop_alt): New function.
22100 (transform_to_exit_first_loop): Use
22101 try_transform_to_exit_first_loop_alt.
22103 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
22105 * builtins.c (expand_builtin_atomic_compare_exchange): Call
22106 emit_cmp_and_jump_insns with the mode of target.
22108 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
22110 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
22112 2015-06-04 DJ Delorie <dj@redhat.com>
22114 * config/msp430/msp430.md (movsi_s): New. Special case for
22115 storing a 20-bit symbol into a 32-bit register.
22116 * config/msp430/msp430.c (msp430_subreg): Add support for it.
22117 * config/msp430/predicates.md (msp430_symbol_operand): New.
22119 2015-06-04 Sriraman Tallam <tmsriram@google.com>
22121 * c-family/c-common.c (noplt): New attribute.
22122 (handle_noplt_attribute): New handler.
22123 * calls.c (prepare_call_address): Check for noplt
22125 * config/i386/i386.c (ix86_expand_call): Check
22126 for noplt attribute.
22127 (ix86_nopic_noplt_attribute_p): New function.
22128 (ix86_output_call_insn): Output indirect call for non-pic
22130 * doc/extend.texi (noplt): Document new attribute.
22131 * doc/invoke.texi: Document new attribute.
22133 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
22135 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
22136 real.h, and fixed-value.h when included in host source files.
22137 * double-int.h: Remove redundant #includes listed above.
22138 * fixed-value.h: Likewise.
22139 * real.h: Likewise.
22140 * wide-int.h: Likewise.
22141 * inchash.h: Likewise.
22142 * rtl.h: Add some include files When included from a generator file.
22143 * target.h: Remove wide-int.h and insn-modes.h from the include list.
22144 * internal-fn.h: Don't include coretypes.h.
22145 * alias.c: Adjust includes for restructured coretypes.h.
22146 * asan.c: Likewise.
22147 * attribs.c: Likewise.
22148 * auto-inc-dec.c: Likewise.
22149 * auto-profile.c: Likewise.
22150 * bb-reorder.c: Likewise.
22151 * bt-load.c: Likewise.
22152 * builtins.c: Likewise.
22153 * caller-save.c: Likewise.
22154 * calls.c: Likewise.
22155 * ccmp.c: Likewise.
22157 * cfganal.c: Likewise.
22158 * cfgbuild.c: Likewise.
22159 * cfgcleanup.c: Likewise.
22160 * cfgexpand.c: Likewise.
22161 * cfghooks.c: Likewise.
22162 * cfgloop.c: Likewise.
22163 * cfgloop.h: Likewise.
22164 * cfgloopanal.c: Likewise.
22165 * cfgloopmanip.c: Likewise.
22166 * cfgrtl.c: Likewise.
22167 * cgraph.c: Likewise.
22168 * cgraphbuild.c: Likewise.
22169 * cgraphclones.c: Likewise.
22170 * cgraphunit.c: Likewise.
22171 * cilk-common.c: Likewise.
22172 * combine-stack-adj.c: Likewise.
22173 * combine.c: Likewise.
22174 * compare-elim.c: Likewise.
22175 * convert.c: Likewise.
22176 * coverage.c: Likewise.
22177 * cppbuiltin.c: Likewise.
22178 * cprop.c: Likewise.
22180 * cselib.c: Likewise.
22181 * data-streamer-in.c: Likewise.
22182 * data-streamer-out.c: Likewise.
22183 * data-streamer.c: Likewise.
22184 * dbxout.c: Likewise.
22187 * debug.c: Likewise.
22188 * df-core.c: Likewise.
22189 * df-problems.c: Likewise.
22190 * df-scan.c: Likewise.
22193 * dojump.c: Likewise.
22194 * dominance.c: Likewise.
22195 * domwalk.c: Likewise.
22196 * double-int.c: Likewise.
22198 * dumpfile.c: Likewise.
22199 * dwarf2asm.c: Likewise.
22200 * dwarf2cfi.c: Likewise.
22201 * dwarf2out.c: Likewise.
22202 * dwarf2out.h: Likewise.
22203 * emit-rtl.c: Likewise.
22204 * et-forest.c: Likewise.
22205 * except.c: Likewise.
22206 * explow.c: Likewise.
22207 * expmed.c: Likewise.
22208 * expr.c: Likewise.
22209 * final.c: Likewise.
22210 * fixed-value.c: Likewise.
22211 * fold-const.c: Likewise.
22212 * function.c: Likewise.
22213 * fwprop.c: Likewise.
22214 * gcc-plugin.h: Likewise.
22215 * gcse.c: Likewise.
22216 * generic-match-head.c: Likewise.
22217 * ggc-page.c: Likewise.
22218 * gimple-builder.c: Likewise.
22219 * gimple-expr.c: Likewise.
22220 * gimple-fold.c: Likewise.
22221 * gimple-iterator.c: Likewise.
22222 * gimple-low.c: Likewise.
22223 * gimple-match-head.c: Likewise.
22224 * gimple-pretty-print.c: Likewise.
22225 * gimple-ssa-isolate-paths.c: Likewise.
22226 * gimple-ssa-strength-reduction.c: Likewise.
22227 * gimple-streamer-in.c: Likewise.
22228 * gimple-streamer-out.c: Likewise.
22229 * gimple-streamer.h: Likewise.
22230 * gimple-walk.c: Likewise.
22231 * gimple.c: Likewise.
22232 * gimplify-me.c: Likewise.
22233 * gimplify.c: Likewise.
22234 * godump.c: Likewise.
22235 * graph.c: Likewise.
22236 * graphite-blocking.c: Likewise.
22237 * graphite-dependences.c: Likewise.
22238 * graphite-interchange.c: Likewise.
22239 * graphite-isl-ast-to-gimple.c: Likewise.
22240 * graphite-optimize-isl.c: Likewise.
22241 * graphite-poly.c: Likewise.
22242 * graphite-scop-detection.c: Likewise.
22243 * graphite-sese-to-poly.c: Likewise.
22244 * graphite.c: Likewise.
22245 * haifa-sched.c: Likewise.
22246 * hooks.h: Likewise.
22247 * hw-doloop.c: Likewise.
22248 * ifcvt.c: Likewise.
22249 * incpath.c: Likewise.
22250 * init-regs.c: Likewise.
22251 * internal-fn.c: Likewise.
22252 * ipa-chkp.c: Likewise.
22253 * ipa-comdats.c: Likewise.
22254 * ipa-cp.c: Likewise.
22255 * ipa-devirt.c: Likewise.
22256 * ipa-icf-gimple.c: Likewise.
22257 * ipa-icf.c: Likewise.
22258 * ipa-inline-analysis.c: Likewise.
22259 * ipa-inline-transform.c: Likewise.
22260 * ipa-inline.c: Likewise.
22261 * ipa-polymorphic-call.c: Likewise.
22262 * ipa-profile.c: Likewise.
22263 * ipa-prop.c: Likewise.
22264 * ipa-pure-const.c: Likewise.
22265 * ipa-ref.c: Likewise.
22266 * ipa-reference.c: Likewise.
22267 * ipa-split.c: Likewise.
22268 * ipa-utils.c: Likewise.
22269 * ipa-visibility.c: Likewise.
22271 * ira-build.c: Likewise.
22272 * ira-color.c: Likewise.
22273 * ira-conflicts.c: Likewise.
22274 * ira-costs.c: Likewise.
22275 * ira-emit.c: Likewise.
22276 * ira-lives.c: Likewise.
22278 * jump.c: Likewise.
22279 * langhooks.c: Likewise.
22281 * loop-doloop.c: Likewise.
22282 * loop-init.c: Likewise.
22283 * loop-invariant.c: Likewise.
22284 * loop-iv.c: Likewise.
22285 * loop-unroll.c: Likewise.
22286 * lower-subreg.c: Likewise.
22287 * lra-assigns.c: Likewise.
22288 * lra-coalesce.c: Likewise.
22289 * lra-constraints.c: Likewise.
22290 * lra-eliminations.c: Likewise.
22291 * lra-lives.c: Likewise.
22292 * lra-remat.c: Likewise.
22293 * lra-spills.c: Likewise.
22295 * lto-cgraph.c: Likewise.
22296 * lto-compress.c: Likewise.
22297 * lto-opts.c: Likewise.
22298 * lto-section-in.c: Likewise.
22299 * lto-section-out.c: Likewise.
22300 * lto-streamer-in.c: Likewise.
22301 * lto-streamer-out.c: Likewise.
22302 * lto-streamer.c: Likewise.
22304 * mode-switching.c: Likewise.
22305 * modulo-sched.c: Likewise.
22306 * omega.c: Likewise.
22307 * omp-low.c: Likewise.
22308 * optabs.c: Likewise.
22309 * opts-global.c: Likewise.
22310 * passes.c: Likewise.
22311 * plugin.c: Likewise.
22312 * postreload-gcse.c: Likewise.
22313 * postreload.c: Likewise.
22314 * predict.c: Likewise.
22315 * print-rtl.c: Likewise.
22316 * print-tree.c: Likewise.
22317 * profile.c: Likewise.
22318 * real.c: Likewise.
22319 * realmpfr.c: Likewise.
22320 * realmpfr.h: Likewise.
22321 * recog.c: Likewise.
22323 * reg-stack.c: Likewise.
22324 * regcprop.c: Likewise.
22325 * reginfo.c: Likewise.
22326 * regrename.c: Likewise.
22327 * regs.h: Likewise.
22328 * regstat.c: Likewise.
22329 * reload.c: Likewise.
22330 * reload1.c: Likewise.
22331 * reorg.c: Likewise.
22332 * resource.c: Likewise.
22333 * rtl-chkp.c: Likewise.
22334 * rtlanal.c: Likewise.
22335 * rtlhooks.c: Likewise.
22336 * sanopt.c: Likewise.
22337 * sched-deps.c: Likewise.
22338 * sched-ebb.c: Likewise.
22339 * sched-rgn.c: Likewise.
22340 * sched-vis.c: Likewise.
22341 * sdbout.c: Likewise.
22342 * sel-sched-dump.c: Likewise.
22343 * sel-sched-ir.c: Likewise.
22344 * sel-sched.c: Likewise.
22345 * sese.c: Likewise.
22346 * shrink-wrap.c: Likewise.
22347 * shrink-wrap.h: Likewise.
22348 * simplify-rtx.c: Likewise.
22349 * stack-ptr-mod.c: Likewise.
22350 * statistics.c: Likewise.
22351 * stmt.c: Likewise.
22352 * stor-layout.c: Likewise.
22353 * store-motion.c: Likewise.
22354 * stringpool.c: Likewise.
22355 * symtab.c: Likewise.
22356 * target-globals.c: Likewise.
22357 * targhooks.c: Likewise.
22358 * toplev.c: Likewise.
22359 * tracer.c: Likewise.
22360 * trans-mem.c: Likewise.
22361 * tree-affine.c: Likewise.
22362 * tree-affine.h: Likewise.
22363 * tree-browser.c: Likewise.
22364 * tree-call-cdce.c: Likewise.
22365 * tree-cfg.c: Likewise.
22366 * tree-cfgcleanup.c: Likewise.
22367 * tree-chkp-opt.c: Likewise.
22368 * tree-chkp.c: Likewise.
22369 * tree-chrec.c: Likewise.
22370 * tree-complex.c: Likewise.
22371 * tree-data-ref.c: Likewise.
22372 * tree-dfa.c: Likewise.
22373 * tree-diagnostic.c: Likewise.
22374 * tree-dump.c: Likewise.
22375 * tree-eh.c: Likewise.
22376 * tree-emutls.c: Likewise.
22377 * tree-if-conv.c: Likewise.
22378 * tree-inline.c: Likewise.
22379 * tree-into-ssa.c: Likewise.
22380 * tree-iterator.c: Likewise.
22381 * tree-loop-distribution.c: Likewise.
22382 * tree-nested.c: Likewise.
22383 * tree-nrv.c: Likewise.
22384 * tree-object-size.c: Likewise.
22385 * tree-outof-ssa.c: Likewise.
22386 * tree-parloops.c: Likewise.
22387 * tree-phinodes.c: Likewise.
22388 * tree-predcom.c: Likewise.
22389 * tree-pretty-print.c: Likewise.
22390 * tree-pretty-print.h: Likewise.
22391 * tree-profile.c: Likewise.
22392 * tree-scalar-evolution.c: Likewise.
22393 * tree-sra.c: Likewise.
22394 * tree-ssa-address.c: Likewise.
22395 * tree-ssa-alias.c: Likewise.
22396 * tree-ssa-ccp.c: Likewise.
22397 * tree-ssa-coalesce.c: Likewise.
22398 * tree-ssa-copy.c: Likewise.
22399 * tree-ssa-copyrename.c: Likewise.
22400 * tree-ssa-dce.c: Likewise.
22401 * tree-ssa-dom.c: Likewise.
22402 * tree-ssa-dse.c: Likewise.
22403 * tree-ssa-forwprop.c: Likewise.
22404 * tree-ssa-ifcombine.c: Likewise.
22405 * tree-ssa-live.c: Likewise.
22406 * tree-ssa-loop-ch.c: Likewise.
22407 * tree-ssa-loop-im.c: Likewise.
22408 * tree-ssa-loop-ivcanon.c: Likewise.
22409 * tree-ssa-loop-ivopts.c: Likewise.
22410 * tree-ssa-loop-manip.c: Likewise.
22411 * tree-ssa-loop-niter.c: Likewise.
22412 * tree-ssa-loop-prefetch.c: Likewise.
22413 * tree-ssa-loop-unswitch.c: Likewise.
22414 * tree-ssa-loop.c: Likewise.
22415 * tree-ssa-loop.h: Likewise.
22416 * tree-ssa-math-opts.c: Likewise.
22417 * tree-ssa-operands.c: Likewise.
22418 * tree-ssa-phiopt.c: Likewise.
22419 * tree-ssa-phiprop.c: Likewise.
22420 * tree-ssa-pre.c: Likewise.
22421 * tree-ssa-propagate.c: Likewise.
22422 * tree-ssa-reassoc.c: Likewise.
22423 * tree-ssa-sccvn.c: Likewise.
22424 * tree-ssa-scopedtables.c: Likewise.
22425 * tree-ssa-sink.c: Likewise.
22426 * tree-ssa-strlen.c: Likewise.
22427 * tree-ssa-structalias.c: Likewise.
22428 * tree-ssa-tail-merge.c: Likewise.
22429 * tree-ssa-ter.c: Likewise.
22430 * tree-ssa-threadedge.c: Likewise.
22431 * tree-ssa-threadupdate.c: Likewise.
22432 * tree-ssa-uncprop.c: Likewise.
22433 * tree-ssa-uninit.c: Likewise.
22434 * tree-ssa.c: Likewise.
22435 * tree-ssanames.c: Likewise.
22436 * tree-stdarg.c: Likewise.
22437 * tree-streamer-in.c: Likewise.
22438 * tree-streamer-out.c: Likewise.
22439 * tree-streamer.c: Likewise.
22440 * tree-switch-conversion.c: Likewise.
22441 * tree-tailcall.c: Likewise.
22442 * tree-vect-data-refs.c: Likewise.
22443 * tree-vect-generic.c: Likewise.
22444 * tree-vect-loop-manip.c: Likewise.
22445 * tree-vect-loop.c: Likewise.
22446 * tree-vect-patterns.c: Likewise.
22447 * tree-vect-slp.c: Likewise.
22448 * tree-vect-stmts.c: Likewise.
22449 * tree-vectorizer.c: Likewise.
22450 * tree-vrp.c: Likewise.
22451 * tree.c: Likewise.
22452 * tsan.c: Likewise.
22453 * ubsan.c: Likewise.
22454 * valtrack.c: Likewise.
22455 * value-prof.c: Likewise.
22456 * var-tracking.c: Likewise.
22457 * varasm.c: Likewise.
22458 * varpool.c: Likewise.
22459 * vmsdbgout.c: Likewise.
22460 * vtable-verify.c: Likewise.
22462 * wide-int-print.cc: Likewise.
22463 * wide-int-print.h: Likewise.
22464 * wide-int.cc: Likewise.
22465 * xcoffout.c: Likewise.
22466 * config/aarch64/aarch64-builtins.c: Likewise.
22467 * config/aarch64/aarch64.c: Likewise.
22468 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22469 * config/alpha/alpha.c: Likewise.
22470 * config/arc/arc.c: Likewise.
22471 * config/arm/aarch-common.c: Likewise.
22472 * config/arm/arm-builtins.c: Likewise.
22473 * config/arm/arm-c.c: Likewise.
22474 * config/arm/arm.c: Likewise.
22475 * config/avr/avr-c.c: Likewise.
22476 * config/avr/avr-log.c: Likewise.
22477 * config/avr/avr.c: Likewise.
22478 * config/bfin/bfin.c: Likewise.
22479 * config/c6x/c6x.c: Likewise.
22480 * config/cr16/cr16.c: Likewise.
22481 * config/cris/cris.c: Likewise.
22482 * config/darwin-c.c: Likewise.
22483 * config/darwin.c: Likewise.
22484 * config/default-c.c: Likewise.
22485 * config/epiphany/epiphany.c: Likewise.
22486 * config/epiphany/mode-switch-use.c: Likewise.
22487 * config/epiphany/resolve-sw-modes.c: Likewise.
22488 * config/fr30/fr30.c: Likewise.
22489 * config/frv/frv.c: Likewise.
22490 * config/ft32/ft32.c: Likewise.
22491 * config/glibc-c.c: Likewise.
22492 * config/h8300/h8300.c: Likewise.
22493 * config/i386/i386-c.c: Likewise.
22494 * config/i386/i386.c: Likewise.
22495 * config/i386/msformat-c.c: Likewise.
22496 * config/i386/winnt-cxx.c: Likewise.
22497 * config/i386/winnt-stubs.c: Likewise.
22498 * config/i386/winnt.c: Likewise.
22499 * config/ia64/ia64-c.c: Likewise.
22500 * config/ia64/ia64.c: Likewise.
22501 * config/iq2000/iq2000.c: Likewise.
22502 * config/lm32/lm32.c: Likewise.
22503 * config/m32c/m32c-pragma.c: Likewise.
22504 * config/m32c/m32c.c: Likewise.
22505 * config/m32r/m32r.c: Likewise.
22506 * config/m68k/m68k.c: Likewise.
22507 * config/mcore/mcore.c: Likewise.
22508 * config/mep/mep-pragma.c: Likewise.
22509 * config/mep/mep.c: Likewise.
22510 * config/microblaze/microblaze-c.c: Likewise.
22511 * config/microblaze/microblaze.c: Likewise.
22512 * config/mips/mips.c: Likewise.
22513 * config/mmix/mmix.c: Likewise.
22514 * config/mn10300/mn10300.c: Likewise.
22515 * config/moxie/moxie.c: Likewise.
22516 * config/msp430/msp430-c.c: Likewise.
22517 * config/msp430/msp430.c: Likewise.
22518 * config/nds32/nds32-cost.c: Likewise.
22519 * config/nds32/nds32-fp-as-gp.c: Likewise.
22520 * config/nds32/nds32-intrinsic.c: Likewise.
22521 * config/nds32/nds32-isr.c: Likewise.
22522 * config/nds32/nds32-md-auxiliary.c: Likewise.
22523 * config/nds32/nds32-memory-manipulation.c: Likewise.
22524 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22525 * config/nds32/nds32-predicates.c: Likewise.
22526 * config/nds32/nds32.c: Likewise.
22527 * config/nios2/nios2.c: Likewise.
22528 * config/nvptx/nvptx.c: Likewise.
22529 * config/pa/pa.c: Likewise.
22530 * config/pdp11/pdp11.c: Likewise.
22531 * config/rl78/rl78-c.c: Likewise.
22532 * config/rl78/rl78.c: Likewise.
22533 * config/rs6000/rs6000-c.c: Likewise.
22534 * config/rs6000/rs6000.c: Likewise.
22535 * config/rx/rx.c: Likewise.
22536 * config/s390/s390-c.c: Likewise.
22537 * config/s390/s390.c: Likewise.
22538 * config/sh/sh-c.c: Likewise.
22539 * config/sh/sh-mem.cc: Likewise.
22540 * config/sh/sh.c: Likewise.
22541 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22542 * config/sh/sh_treg_combine.cc: Likewise.
22543 * config/sol2-c.c: Likewise.
22544 * config/sol2-cxx.c: Likewise.
22545 * config/sol2-stubs.c: Likewise.
22546 * config/sol2.c: Likewise.
22547 * config/sparc/sparc-c.c: Likewise.
22548 * config/sparc/sparc.c: Likewise.
22549 * config/spu/spu-c.c: Likewise.
22550 * config/spu/spu.c: Likewise.
22551 * config/stormy16/stormy16.c: Likewise.
22552 * config/tilegx/mul-tables.c: Likewise.
22553 * config/tilegx/tilegx-c.c: Likewise.
22554 * config/tilegx/tilegx.c: Likewise.
22555 * config/tilepro/mul-tables.c: Likewise.
22556 * config/tilepro/tilepro-c.c: Likewise.
22557 * config/tilepro/tilepro.c: Likewise.
22558 * config/v850/v850-c.c: Likewise.
22559 * config/v850/v850.c: Likewise.
22560 * config/vax/vax.c: Likewise.
22561 * config/visium/visium.c: Likewise.
22562 * config/vms/vms-c.c: Likewise.
22563 * config/vms/vms.c: Likewise.
22564 * config/vxworks.c: Likewise.
22565 * config/winnt-c.c: Likewise.
22566 * config/xtensa/xtensa.c: Likewise.
22567 * common/config/bfin/bfin-common.c: Likewise.
22569 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
22571 * tree.h (tree_code_for_canonical_type_merging): New function.
22572 * tree.c (gimple_canonical_types_compatible_p): Use
22573 tree_code_for_canonical_type_merging..
22575 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22579 * doc/tm.texi: Regenerate.
22580 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
22581 * target.def (TARGET_RELAXED_ORDERING): Likewise.
22582 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
22583 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
22584 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
22585 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
22586 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
22587 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
22588 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
22590 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22592 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
22593 register fma steering pass.
22594 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
22595 AARCH64_TUNE_FMA_STEERING.
22597 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
22599 * tree.c (verify_type_variant): Verify that type and variant is
22601 (gimple_canonical_types_compatible_p): Look for main variants.
22603 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
22605 * config.gcc (powerpc*-*-*): Add support for a new configure
22606 option --with-advance-toolchain=<xxx> which overrides using the
22607 default header files, libraries and dynamic linker.
22609 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
22610 specs to support the configure --with-advance-toolchain=<xxx>
22612 (INCLUDE_EXTRA_SPEC): Likewise.
22613 (LINK_OS_EXTRA_SPEC32): Likewise.
22614 (LINK_OK_EXTRA_SPEC64): Likewise.
22615 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
22616 (DYNAMIC_LINKER_PREFIX): Likewise.
22617 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
22619 (GLIBC_DYNAMIC_LINKER32): Likewise.
22620 (GLIBC_DYNAMIC_LINKER64): Likewise.
22621 (LINK_OS_LINUX_SPEC32): Likewise.
22622 (LINK_OS_LINUX_SPEC64): Likewise.
22624 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
22625 configuration option.
22627 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
22630 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
22631 to determine current function ABI.
22632 (ix86_function_value_regno_p): Ditto.
22634 2015-06-03 Martin Liska <mliska@suse.cz>
22636 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
22637 * bitmap.h (struct bitmap_usage): Likewise.
22638 * ggc-common.c (struct ggc_usage): Likewise.
22639 * mem-stats.h (struct mem_location): Likewise.
22640 (struct mem_usage): Likewise.
22641 * vec.c (struct vec_usage): Likewise.
22643 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
22645 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
22648 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
22650 * doc/plugins.texi (enum plugin_event): New event.
22651 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
22652 and PLUGIN_FINISH_FUNCTION.
22653 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
22654 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
22656 2015-06-03 Richard Biener <rguenther@suse.de>
22658 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
22659 compute GROUP_GAP for the first element.
22660 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
22663 2015-06-03 Nick Clifton <nickc@redhat.com>
22665 * config/rl78/rl78-real.md: Add peepholes to avoid a register
22666 copy when calling a function.
22667 * config/rl78/rl78.c (need_to_save): Do not push the frame
22668 pointer in an interrupt handler prologue if it is never used.
22670 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22672 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
22674 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
22676 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
22677 reference when cloning alias node.
22679 2015-06-03 Martin Liska <mliska@suse.cz>
22681 * alloc-pool.h (struct pool_usage): Correct space padding.
22682 * ggc-page.c (ggc_print_statistics): Align columns in a report.
22683 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
22684 * tree.c (dump_tree_statistics): Align columns in a report.
22686 2015-06-03 Martin Liska <mliska@suse.cz>
22688 * alloc-pool.c (allocate_pool_descriptor): Remove.
22689 (struct pool_output_info): Likewise.
22690 (print_alloc_pool_statistics): Likewise.
22691 (dump_alloc_pool_statistics): Likewise.
22692 * alloc-pool.h (struct pool_usage): New struct.
22693 (pool_allocator::initialize): Change usage of memory statistics
22694 to a new interface.
22695 (pool_allocator::release): Likewise.
22696 (pool_allocator::allocate): Likewise.
22697 (pool_allocator::remove): Likewise.
22698 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
22699 for a pool allocator.
22700 * mem-stats.h (struct mem_location): Add new ctor.
22701 (struct mem_usage): Add counter for number of
22703 (mem_alloc_description::register_descriptor): New overload of
22704 * mem-stats.h (mem_location::to_string): New function.
22705 * bitmap.h (struct bitmap_usage): Use this new function.
22706 * ggc-common.c (struct ggc_usage): Likewise.
22709 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
22711 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
22712 of GCC_INSN_FLAGS_H block.
22714 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
22716 * explow.c (plus_constant): Update check after force_const_mem call
22717 to see if the value returned is not a NULL_RTX.
22719 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
22721 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
22722 remove instumentation thunks calling reachable functions.
22723 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
22724 * lto/lto-partition.c (privatize_symbol_name_1): New.
22725 (privatize_symbol_name): Privatize both decl and orig_decl
22726 names for instrumented functions.
22727 * cgraph.c (cgraph_node::verify_node): Add transparent
22728 alias chain check for instrumented node.
22730 2015-06-03 Marek Polacek <polacek@redhat.com>
22734 * tree.c (attribute_value_equal): Handle attribute format.
22735 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
22737 2015-06-03 Richard Biener <rguenther@suse.de>
22739 PR tree-optimization/63916
22740 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
22741 Forward-propagate non-invariant addresses by splicing their
22742 reference ops if the result isn't going to be used by PRE.
22743 (vn_reference_lookup_3): Remove pointless assert.
22745 2015-06-03 Richard Biener <rguenther@suse.de>
22747 PR tree-optimization/66375
22748 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
22749 add to the evolution before following SSA edges.
22751 2015-06-03 Bin Cheng <bin.cheng@arm.com>
22753 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
22754 (dump_use, dump_cand, find_induction_variables): Pass new argument
22756 (record_use): Preserve the ssa name information in IV.
22758 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
22760 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
22762 (add_mode_tests): Don't add mode tests if the predicate only
22763 accepts scalar constant integers. Otherwise, allow the mode
22764 of "op" to be VOIDmode if the predicate does accept such integers.
22766 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
22769 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
22770 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
22771 (aarch64_secondary_reload): Likewise
22772 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
22774 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
22777 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
22778 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22781 * cprop.c (try_replace_reg): Check cost of constants before propagating.
22783 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
22785 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
22786 provide access to the IBM extended double floating point mode if
22787 long double is IEEE 128-bit floating point.
22788 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
22789 point if long double is the IBM extended double type.
22791 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
22792 enable adding IEEE 128-bit floating point support.
22793 (-mfloat128-software): Likewise.
22794 (-mfloat128-sw): Likewise.
22796 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
22797 128-bit floating point types to occupy any register if
22798 -mlong-double-64. Do not allow use of IFmode/KFmode unless
22799 -mfloat128-software is enabled.
22800 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
22802 (rs6000_option_override_internal): Add -mfloat128-* support.
22803 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
22805 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
22806 and float128 type nodes.
22807 (ieee128_float_type_node): Likewise.
22808 (ibm128_float_type_node): Likewise.
22810 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
22813 * config/aarch64/geniterators.sh: Rewrite in awk.
22815 2015-06-02 Martin Liska <mliska@suse.cz>
22817 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
22818 values to avoid -Wmaybe-uninitialized errors.
22820 2015-06-02 Richard Biener <rguenther@suse.de>
22823 * dwarf2out.c (lookup_context_die): New function.
22824 (resolve_addr): Avoid forcing a full DIE for the
22825 target of a DW_TAG_GNU_call_site during late compilation.
22826 Instead create a stub DIE without a type if we have a
22827 context DIE present.
22829 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
22831 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
22833 2015-06-02 Bin Cheng <bin.cheng@arm.com>
22835 PR tree-optimization/48052
22836 * cfgloop.h (struct control_iv): New.
22837 (struct loop): New field control_ivs.
22838 * tree-ssa-loop-niter.c : Include "stor-layout.h".
22839 (number_of_iterations_lt): Set no_overflow information.
22840 (number_of_iterations_exit): Init control iv in niter struct.
22841 (record_control_iv): New.
22842 (estimate_numbers_of_iterations_loop): Call record_control_iv.
22843 (loop_exits_before_overflow): New. Interface factored out of
22844 scev_probably_wraps_p.
22845 (scev_probably_wraps_p): Factor loop niter related code into
22846 loop_exits_before_overflow.
22847 (free_numbers_of_iterations_estimates_loop): Free control ivs.
22848 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
22850 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
22852 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
22853 the target doesn't belong to the current function.
22855 2015-06-02 Marek Polacek <polacek@redhat.com>
22857 PR middle-end/66345
22858 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
22859 get_maxval_strlen does not produce an INTEGER_CST.
22861 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
22863 * config/arc/constraints.md: Use lower-case names in match_code.
22864 * config/mmix/constraints.md: Likewise.
22866 2015-06-02 Richard Biener <rguenther@suse.de>
22868 PR tree-optimization/65961
22869 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
22870 check and clarify dump message.
22871 (vect_build_slp_tree): If all children are built up from scalars
22872 build up the parent from scalars instead.
22873 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
22875 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
22878 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
22879 instead of print ... .
22881 2015-06-02 Alan Modra <amodra@gmail.com>
22883 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
22886 2015-06-02 Bin Cheng <bin.cheng@arm.com>
22888 PR tree-optimization/52563
22889 PR tree-optimization/62173
22890 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
22891 (alloc_iv, set_iv): New parameter.
22892 (determine_biv_step): Delete.
22893 (find_bivs): Inline original determine_biv_step. Pass new
22894 argument to set_iv.
22895 (idx_find_step): Use no_overflow information for conversion.
22896 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
22897 resolve_mixers handle folded_casts.
22898 (instantiate_scev_name): Change bool parameter to bool pointer.
22899 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
22900 (instantiate_array_ref, instantiate_scev_not): Ditto.
22901 (instantiate_scev_3, instantiate_scev_2): Ditto.
22902 (instantiate_scev_1, instantiate_scev_r): Ditto.
22903 (instantiate_scev_convert, ): Change parameter. Pass argument
22904 to chrec_convert_aggressive.
22905 (instantiate_scev): Change argument.
22906 (resolve_mixers): New parameter and set it.
22907 (scev_const_prop): New argument.
22908 * tree-scalar-evolution.h (resolve_mixers): New parameter.
22909 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
22911 (chrec_convert): New parameter. Move definition below.
22912 (chrec_convert_aggressive): New parameter and set it. Call
22913 convert_affine_scev.
22914 * tree-chrec.h (chrec_convert): New parameter.
22915 (chrec_convert_aggressive): Ditto.
22917 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
22919 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
22920 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
22921 the LHS of a no-return call if its type has variable size.
22922 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
22923 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
22925 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
22927 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
22928 * config.in: Regenerate.
22930 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22932 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
22933 consecutive accesses within outer-loop with force_vectorize
22934 for references with zero step in inner-loop.
22936 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
22938 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
22939 rather than from gcc/build directory.
22941 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
22944 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
22945 for __sync memory models, emit initial loads and final barriers as
22948 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
22951 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
22952 (aarch64_split_atomic_op): Check for __sync memory models, emit
22953 appropriate initial loads and final barriers.
22955 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
22957 * Makefile.in: Fix gcov dependencies that should
22958 not point to a build folder.
22960 2015-06-01 Richard Biener <rguenther@suse.de>
22963 2015-05-29 Richard Biener <rguenther@suse.de>
22965 PR tree-optimization/66314
22966 * tree-ssa-threadupdate.c (create_block_for_threading): Add
22967 parameter that says which loop the new block belongs to.
22968 (ssa_create_duplicates): Blocks duplicated for the threaded
22969 path belong to the loop of the thread destination.
22971 2015-06-01 Martin Liska <mliska@suse.cz>
22973 * sched-deps.c: Include pool-alloc.h before
22974 cselib.h header file is included.
22976 2015-06-01 Richard Biener <rguenther@suse.de>
22978 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
22981 2015-06-01 Martin Liska <mliska@suse.cz>
22983 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
22984 a function local variable.
22986 2015-06-01 Martin Liska <mliska@suse.cz>
22988 * alloc-pool.c (create_alloc_pool): Remove.
22989 (empty_alloc_pool): Likewise.
22990 (free_alloc_pool): Likewise.
22991 (free_alloc_pool_if_empty): Likewise.
22992 (pool_alloc): Likewise.
22993 (pool_free): Likewise.
22994 * alloc-pool.h: Remove old declarations.
22996 2015-06-01 Martin Liska <mliska@suse.cz>
22998 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
22999 (ira_create_object): Likewise.
23000 (ira_create_allocno): Likewise.
23001 (ira_create_live_range): Likewise.
23002 (copy_live_range): Likewise.
23003 (ira_finish_live_range): Likewise.
23004 (ira_free_allocno_costs): Likewise.
23005 (finish_allocno): Likewise.
23006 (finish_allocnos): Likewise.
23007 (initiate_prefs): Likewise.
23008 (ira_create_pref): Likewise.
23009 (finish_pref): Likewise.
23010 (finish_prefs): Likewise.
23011 (initiate_copies): Likewise.
23012 (ira_create_copy): Likewise.
23013 (finish_copy): Likewise.
23014 (finish_copies): Likewise.
23015 (finish_prefs): Likewise.
23017 2015-06-01 Martin Liska <mliska@suse.cz>
23019 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
23020 (allocate_and_init_ipcp_value): Likewise.
23021 (ipcp_lattice::add_value): Likewise.
23022 (merge_agg_lats_step): Likewise.
23023 (ipcp_driver): Likewise.
23024 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
23025 (ipa_free_all_structures_after_iinln): Likewise.
23026 * ipa-prop.h: Likewise.
23028 2015-06-01 Martin Liska <mliska@suse.cz>
23030 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
23032 (set_hint_predicate): Likewise.
23033 (inline_summary_alloc): Likewise.
23034 (reset_inline_edge_summary): Likewise.
23035 (reset_inline_summary): Likewise.
23036 (set_cond_stmt_execution_predicate): Likewise.
23037 (set_switch_stmt_execution_predicate): Likewise.
23038 (compute_bb_predicates): Likewise.
23039 (estimate_function_body_sizes): Likewise.
23040 (inline_free_summary): Likewise.
23042 2015-06-01 Martin Liska <mliska@suse.cz>
23044 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
23045 (ipa_edge_duplication_hook): Likewise.
23046 (ipa_free_all_structures_after_ipa_cp): Likewise.
23047 (ipa_free_all_structures_after_iinln): Likewise.
23049 2015-06-01 Martin Liska <mliska@suse.cz>
23051 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
23052 (ipa_profile_generate_summary): Likewise.
23053 (ipa_profile_read_summary): Likewise.
23054 (ipa_profile): Likewise.
23056 2015-06-01 Martin Liska <mliska@suse.cz>
23058 * tree-ssa-structalias.c (new_var_info): Use new type-based
23060 (new_constraint): Likewise.
23061 (init_alias_vars): Likewise.
23062 (delete_points_to_sets): Likewise.
23064 2015-06-01 Martin Liska <mliska@suse.cz>
23066 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
23067 (free_strinfo): Likewise.
23068 (pass_strlen::execute): Likewise.
23070 2015-06-01 Martin Liska <mliska@suse.cz>
23072 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
23074 (vn_reference_insert_pieces): Likewise.
23075 (vn_phi_insert): Likewise.
23076 (visit_reference_op_call): Likewise.
23077 (copy_phi): Likewise.
23078 (copy_reference): Likewise.
23079 (process_scc): Likewise.
23080 (allocate_vn_table): Likewise.
23081 (free_vn_table): Likewise.
23083 2015-06-01 Martin Liska <mliska@suse.cz>
23085 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
23087 (add_repeat_to_ops_vec): Likewise.
23088 (get_ops): Likewise.
23089 (maybe_optimize_range_tests): Likewise.
23090 (init_reassoc): Likewise.
23091 (fini_reassoc): Likewise.
23093 2015-06-01 Martin Liska <mliska@suse.cz>
23095 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
23097 (bitmap_set_new): Likewise.
23098 (get_or_alloc_expr_for_constant): Likewise.
23099 (get_or_alloc_expr_for): Likewise.
23100 (phi_translate_1): Likewise.
23101 (compute_avail): Likewise.
23102 (init_pre): Likewise.
23103 (fini_pre): Likewise.
23105 2015-06-01 Martin Liska <mliska@suse.cz>
23107 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
23108 (delete_dep_node): Likewise.
23109 (create_deps_list): Likewise.
23110 (free_deps_list): Likewise.
23111 (sched_deps_init): Likewise.
23112 (sched_deps_finish): Likewise.
23114 2015-06-01 Martin Liska <mliska@suse.cz>
23116 * regcprop.c (free_debug_insn_changes): Use new type-based
23118 (replace_oldest_value_reg): Likewise.
23119 (pass_cprop_hardreg::execute): Likewise.
23121 2015-06-01 Martin Liska <mliska@suse.cz>
23123 * ira-build.c (initiate_cost_vectors): Use new type-based
23125 (ira_allocate_cost_vector): Likewise.
23126 (ira_free_cost_vector): Likewise.
23127 (finish_cost_vectors): Likewise.
23129 2015-06-01 Martin Liska <mliska@suse.cz>
23131 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
23133 (free_sched_pools): Likewise.
23134 * sel-sched-ir.h (_list_alloc): Likewise.
23135 (_list_remove): Likewise.
23137 2015-06-01 Martin Liska <mliska@suse.cz>
23139 * stmt.c (add_case_node): Use new type-based pool allocator.
23140 (expand_case): Likewise.
23141 (expand_sjlj_dispatch_table): Likewise.
23143 2015-06-01 Martin Liska <mliska@suse.cz>
23145 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
23146 (free_bb): Likewise.
23147 (pass_cse_reciprocals::execute): Likewise.
23149 2015-06-01 Martin Liska <mliska@suse.cz>
23151 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
23152 (sra_deinitialize) Likewise.
23153 (create_access_1) Likewise.
23154 (build_accesses_from_assign) Likewise.
23155 (create_artificial_child_access) Likewise.
23157 2015-06-01 Martin Liska <mliska@suse.cz>
23159 * dse.c (get_group_info):Use new type-based pool allocator.
23160 (dse_step0) Likewise.
23161 (free_store_info) Likewise.
23162 (delete_dead_store_insn) Likewise.
23163 (free_read_records) Likewise.
23164 (record_store) Likewise.
23165 (replace_read) Likewise.
23166 (check_mem_read_rtx) Likewise.
23167 (scan_insn) Likewise.
23168 (dse_step1) Likewise.
23169 (dse_step7) Likewise.
23171 2015-06-01 Martin Liska <mliska@suse.cz>
23173 * df-scan.c (struct df_scan_problem_data):Use new type-based
23175 (df_scan_free_internal) Likewise.
23176 (df_scan_alloc) Likewise.
23177 (df_grow_reg_info) Likewise.
23178 (df_free_ref) Likewise.
23179 (df_insn_create_insn_record) Likewise.
23180 (df_mw_hardreg_chain_delete) Likewise.
23181 (df_insn_info_delete) Likewise.
23182 (df_free_collection_rec) Likewise.
23183 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
23184 (df_sort_and_compress_mws) Likewise.
23185 (df_ref_create_structure) Likewise.
23186 (df_ref_record) Likewise.
23188 2015-06-01 Martin Liska <mliska@suse.cz>
23190 * df-problems.c (df_chain_create):Use new type-based pool allocator.
23191 (df_chain_unlink_1) Likewise.
23192 (df_chain_unlink) Likewise.
23193 (df_chain_remove_problem) Likewise.
23194 (df_chain_alloc) Likewise.
23195 (df_chain_free) Likewise.
23196 * df.h (struct dataflow) Likewise.
23198 2015-06-01 Martin Liska <mliska@suse.cz>
23200 * cselib.c (new_elt_list):Use new type-based pool allocator.
23201 (new_elt_loc_list) Likewise.
23202 (unchain_one_elt_list) Likewise.
23203 (unchain_one_elt_loc_list) Likewise.
23204 (unchain_one_value) Likewise.
23205 (new_cselib_val) Likewise.
23206 (cselib_init) Likewise.
23207 (cselib_finish) Likewise.
23209 2015-06-01 Martin Liska <mliska@suse.cz>
23211 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
23212 (sh_reorg) Likewise.
23214 2015-06-01 Martin Liska <mliska@suse.cz>
23216 * cfg.c (initialize_original_copy_tables):Use new type-based
23218 (free_original_copy_tables) Likewise.
23219 (copy_original_table_clear) Likewise.
23220 (copy_original_table_set) Likewise.
23222 2015-06-01 Martin Liska <mliska@suse.cz>
23224 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
23226 (asan_mem_ref_new) Likewise.
23227 (free_mem_ref_resources) Likewise.
23229 2015-06-01 Martin Liska <mliska@suse.cz>
23231 * var-tracking.c (variable_htab_free):Use new type-based
23233 (attrs_list_clear) Likewise.
23234 (attrs_list_insert) Likewise.
23235 (attrs_list_copy) Likewise.
23236 (shared_hash_unshare) Likewise.
23237 (shared_hash_destroy) Likewise.
23238 (unshare_variable) Likewise.
23239 (var_reg_delete_and_set) Likewise.
23240 (var_reg_delete) Likewise.
23241 (var_regno_delete) Likewise.
23242 (drop_overlapping_mem_locs) Likewise.
23243 (variable_union) Likewise.
23244 (insert_into_intersection) Likewise.
23245 (canonicalize_values_star) Likewise.
23246 (variable_merge_over_cur) Likewise.
23247 (dataflow_set_merge) Likewise.
23248 (remove_duplicate_values) Likewise.
23249 (variable_post_merge_new_vals) Likewise.
23250 (dataflow_set_preserve_mem_locs) Likewise.
23251 (dataflow_set_remove_mem_locs) Likewise.
23252 (variable_from_dropped) Likewise.
23253 (variable_was_changed) Likewise.
23254 (set_slot_part) Likewise.
23255 (clobber_slot_part) Likewise.
23256 (delete_slot_part) Likewise.
23257 (loc_exp_insert_dep) Likewise.
23258 (notify_dependents_of_changed_value) Likewise.
23259 (emit_notes_for_differences_1) Likewise.
23260 (vt_emit_notes) Likewise.
23261 (vt_initialize) Likewise.
23262 (vt_finalize) Likewise.
23264 2015-06-01 Martin Liska <mliska@suse.cz>
23266 * ira-color.c (init_update_cost_records):Use new type-based
23268 (get_update_cost_record) Likewise.
23269 (free_update_cost_record_list) Likewise.
23270 (finish_update_cost_records) Likewise.
23271 (initiate_cost_update) Likewise.
23273 2015-06-01 Martin Liska <mliska@suse.cz>
23275 * lra.c (init_insn_regs): Use new type-based pool allocator.
23276 (new_insn_reg) Likewise.
23277 (free_insn_reg) Likewise.
23278 (free_insn_regs) Likewise.
23279 (finish_insn_regs) Likewise.
23280 (init_insn_recog_data) Likewise.
23281 (init_reg_info) Likewise.
23282 (finish_reg_info) Likewise.
23283 (lra_free_copies) Likewise.
23284 (lra_create_copy) Likewise.
23285 (invalidate_insn_data_regno_info) Likewise.
23287 2015-06-01 Martin Liska <mliska@suse.cz>
23289 * lra-lives.c (free_live_range): Use new type-based pool allocator.
23290 (free_live_range_list) Likewise.
23291 (create_live_range) Likewise.
23292 (copy_live_range) Likewise.
23293 (lra_merge_live_ranges) Likewise.
23294 (remove_some_program_points_and_update_live_ranges) Likewise.
23295 (lra_live_ranges_init) Likewise.
23296 (lra_live_ranges_finish) Likewise.
23298 2015-06-01 Martin Liska <mliska@suse.cz>
23300 * et-forest.c (et_new_occ): Use new type-based pool allocator.
23301 (et_new_tree): Likewise.
23302 (et_free_tree): Likewise.
23303 (et_free_tree_force): Likewise.
23304 (et_free_pools): Likewise.
23305 (et_split): Likewise.
23307 2015-06-01 Martin Liska <mliska@suse.cz>
23309 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
23311 * alloc-pool.h (pool_allocator::pool_allocator): New function.
23312 (pool_allocator::release): Likewise.
23313 (inline pool_allocator::release_if_empty): Likewise.
23314 (inline pool_allocator::~pool_allocator): Likewise.
23315 (pool_allocator::allocate): Likewise.
23316 (pool_allocator::remove): Likewise.
23318 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23320 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
23323 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23325 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
23327 * config/arm/arm.c (arm_print_tune_info): Likewise.
23328 (arm_macro_fusion_p): Likewise.
23329 (arm_macro_fusion_pair_p): Likewise.
23331 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
23333 * config/aarch64/aarch64-protos.h (tune_params): Rename
23334 fuseable_ops to fusible_ops.
23335 * config/aarch64/aarch64.c (generic_tunings): Rename
23336 fuseable_ops to fusible_ops.
23337 (cortexa53_tunings): Likewise.
23338 (cortexa57_tunings): Likewise.
23339 (thunderx_tunings): Likewise.
23340 (xgene1_tunings): Likewise.
23341 (aarch64_macro_fusion_p): Likewise.
23342 (aarch64_macro_fusion_pair_p): Likewise.
23344 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
23346 * config/s390/driver-native.c: New file.
23347 * config/s390/x-native: New file.
23348 * config.host: Add new files for s390.
23349 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
23351 * config.gcc: Likewise.
23352 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
23353 * config/s390/s390-opts.h (enum processor_type): Ditto.
23354 * config/s390/s390.c (s390_option_override): Catch unhandled
23357 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
23360 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
23361 redirection for instrumented calls.
23362 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
23363 (append_compiler_options): Append -fcheck-pointer-bounds.
23364 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
23365 (chkp_redirect_edge): New.
23366 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
23367 (chkp_redirect_edge): New.
23369 2015-06-01 Richard Biener <rguenther@suse.de>
23371 PR tree-optimization/66280
23372 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
23375 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23377 * config/aarch64/aarch64.md
23378 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
23381 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
23383 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
23384 Remove obsolete kludge.
23386 2015-06-01 Richard Biener <rguenther@suse.de>
23388 * tree-ssa-reassoc.c (get_rank): Simplify.
23390 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
23392 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
23393 * configure: Regenerated.
23395 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
23397 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
23398 issue (add space between string literal and macro).
23399 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
23401 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
23403 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
23404 implict or explicit -fPIE or -fpie.
23406 2015-05-30 Mike Frysinger <vapier@gentoo.org>
23408 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
23410 2015-05-28 DJ Delorie <dj@redhat.com>
23412 * expmed.c (extract_bit_field_1): Avoid clobbering a
23413 yet-to-be-used base/index register.
23415 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
23417 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
23418 (alias_stats): Add num_universal.
23419 (alias_set_subset_of): Special case pointers; be ready for NULL
23421 (alias_sets_conflict_p): Special case pointers; be ready for NULL
23423 (init_alias_set_entry): Break out from ...
23424 (record_alias_subset): ... here; propagate new fields;
23425 allocate children only when really needed.
23426 (get_alias_set): Do less generous pointer globbing.
23427 (dump_alias_stats_in_alias_c): Update statistics.
23429 2015-05-30 Alan Modra <amodra@gmail.com>
23431 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
23432 correct block for use of r12.
23433 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
23435 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
23438 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
23441 2015-05-29 Jakub Jelinek <jakub@redhat.com>
23443 PR tree-optimization/66142
23444 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
23445 virtual phis that feed themselves.
23447 2015-05-29 Richard Biener <rguenther@suse.de>
23449 PR tree-optimization/66314
23450 * tree-ssa-threadupdate.c (create_block_for_threading): Add
23451 parameter that says which loop the new block belongs to.
23452 (ssa_create_duplicates): Blocks duplicated for the threaded
23453 path belong to the loop of the thread destination.
23455 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23457 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
23458 to cleanup-saved-temps.
23459 * doc/sourcebuild.texi (Clean up generated test files): Expand
23461 (dg-keep-saved-temps): Document new proc.
23462 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
23463 cleanup-saved-temps): Remove.
23465 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
23467 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
23468 gcc_AC_CHECK_DECLS.
23469 * configure: Regenerate.
23471 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23473 * config/nios2/linux.h (CPP_SPEC): Define.
23475 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23477 * config/microblaze/linux.h (CPP_SPEC): Define.
23479 2015-05-28 Mike Frysinger <vapier@gentoo.org>
23481 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
23482 -pthread is specified.
23484 2015-05-28 Richard Biener <rguenther@suse.de>
23486 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
23487 (vect_fixup_scalar_cycles_with_patterns): Likewise.
23488 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
23489 after pattern recog.
23490 (vect_create_epilog_for_reduction): Properly handle reductions
23492 (vectorizable_reduction): Likewise.
23493 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
23495 (vect_get_constant_vectors): Create the correct number of
23496 initial values for reductions.
23497 (vect_schedule_slp_instance): Handle reduction chains that are
23498 type changing properly.
23499 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
23501 2015-05-28 Richard Biener <rguenther@suse.de>
23503 PR tree-optimization/66142
23504 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
23505 values better in memcpy destination handling. Handle non-aliasing
23508 2015-05-28 Lawrence Velázquez <vq@larryv.me>
23511 * config/darwin-c.c (version_components): New global enum.
23512 (parse_version, version_as_legacy_macro)
23513 (version_as_modern_macro, macosx_version_as_macro): New functions.
23514 (version_as_macro): Remove.
23515 (darwin_cpp_builtins): Use new function.
23517 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
23519 * builtins.c (expand_builtin_acc_on_device): Mark parameters
23520 with ATTRIBUTE_UNUSED.
23522 2015-05-28 Julian Brown <julian@codesourcery.com>
23526 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
23527 sequence for !ACCEL_COMPILER.
23529 2015-05-28 Nick Clifton <nickc@redhat.com>
23531 * config/rx/rx.c (push_regs): New function. Extracts code from...
23532 (rx_expand_prologue): ... here. Use push_regs to push even small
23533 spans of registers.
23534 (pop_regs): New function.
23535 (rx_expand_epilogue): Use pop_regs to pop even small spans of
23538 2015-05-28 Richard Biener <rguenther@suse.de>
23540 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
23542 (SLP_INSTANCE_BODY_COST_VEC): Remove.
23543 (vect_update_slp_costs_according_to_vf): Likewise.
23544 (vect_slp_analyze_operations): Update prototype.
23545 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
23546 vect_update_slp_costs_according_to_vf, adjust.
23547 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
23548 (vect_analyze_slp_cost_1): Likewise.
23549 (vect_analyze_slp_cost): Likewise. Properly deal with
23550 widening reduction ops. Commit body costs.
23551 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
23552 cost for loops from here.
23553 (vect_slp_analyze_operations): But do it from here when
23554 the vectorization factor is known and stmts are analyzed.
23555 (vect_bb_vectorization_profitable_p): Simplify.
23556 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
23557 (vect_update_slp_costs_according_to_vf): Remove.
23559 2015-05-27 Magnus Granberg <zorry@gentoo.org>
23560 H.J. Lu <hongjiu.lu@intel.com>
23562 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
23563 (BUILD_CFLAGS): Likewise.
23564 (BUILD_CXXFLAGS): Likewise.
23565 (LINKER): Add @NO_PIE_FLAG@.
23566 (BUILD_LDFLAGS): Likewise.
23567 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
23568 --enable-default-pie.
23569 * common.opt (fPIE): Initialize to -1.
23571 (no-pie): New option.
23572 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
23573 * configure.ac: Add --enable-default-pie.
23574 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
23575 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
23576 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
23577 * gcc.c (NO_PIE_SPEC): New.
23578 (PIE_SPEC): Likewise.
23579 (NO_FPIE1_SPEC): Likewise.
23580 (FPIE1_SPEC): Likewise.
23581 (NO_FPIE2_SPEC): Likewise.
23582 (FPIE2_SPEC): Likewise.
23583 (NO_FPIE2_SPEC): Likewise.
23584 (FPIE_SPEC): Likewise.
23585 (NO_FPIE_SPEC): Likewise.
23586 (NO_FPIC1_SPEC): Likewise.
23587 (FPIC1_SPEC): Likewise.
23588 (NO_FPIC2_SPEC): Likewise.
23589 (FPIC2_SPEC): Likewise.
23590 (NO_FPIC2_SPEC): Likewise.
23591 (FPIC_SPEC): Likewise.
23592 (NO_FPIC_SPEC): Likewise.
23593 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
23594 (FPIE1_OR_FPIC1_SPEC): Likewise.
23595 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
23596 (FPIE2_OR_FPIC2_SPEC): Likewise.
23597 (NO_FPIE_AND_FPIC_SPEC): Likewise.
23598 (FPIE_OR_FPIC_SPEC): Likewise.
23599 (LD_PIE_SPEC): Likewise.
23600 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
23601 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
23602 * config/darwin.h (PIE_SPEC): Renamed to ...
23603 (DARWIN_PIE_SPEC): This.
23604 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
23605 * config/darwin9.h (PIE_SPEC): Renamed to ...
23606 (DARWIN_PIE_SPEC): This.
23607 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
23608 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23609 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
23610 FPIE2_OR_FPIC2_SPEC.
23611 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
23612 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
23613 * config/sol2.h (ASM_PIC_SPEC): Likewise.
23614 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23615 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23616 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
23617 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
23618 * config/m32r/m32r.h (ASM_SPEC): Likewise.
23619 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
23620 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
23621 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
23622 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
23623 * config/sparc/linux.h (ASM_SPEC): Likewise.
23624 * config/sparc/linux64.h (ASM_SPEC): Likewise.
23625 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
23626 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
23627 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
23628 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
23629 * config/sparc/sparc.h (ASM_SPEC): Likewise.
23630 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
23631 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
23632 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
23633 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
23634 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
23635 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
23636 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
23637 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
23638 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
23639 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
23640 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
23641 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
23642 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
23643 * config/vax/linux.h (ASM_SPEC): Likewise.
23644 * doc/install.texi: Document --enable-default-pie.
23645 * doc/invoke.texi: Document -no-pie.
23646 * config.in: Regenerated.
23647 * configure: Likewise.
23649 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
23651 PR rtl-optimization/66168
23652 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
23653 can_move_invariant_reg.
23655 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
23658 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
23659 REG_EQUAL note when doing insert.
23661 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
23662 instead of "%d" for 'o' operand.
23664 2015-05-27 Nathan Sidwell <nathan@acm.org>
23667 * tree.c (build_pointer_type_for_mode): Canonical type does not
23668 inherit can_alias_all.
23669 (build_reference_type_for_mode): Likewise.
23671 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
23673 * expr.h (array_at_struct_end_p): Move to...
23674 (array_ref_element_size): Likewise.
23675 (component_ref_field_offset): Likewise.
23676 * tree.h (array_ref_element_size): ...here.
23677 (array_at_struct_end_p): Likewise.
23678 (component_ref_field_offset): Likewise.
23679 * expr.c (array_ref_element_size): Move to...
23680 (array_ref_low_bound): Likewise.
23681 (array_at_struct_end_p): Likewise.
23682 (array_ref_up_bound): Likewise.
23683 (component_ref_field_offset): Likewise.
23684 * tree.c (array_ref_element_size): ...here.
23685 (array_ref_low_bound): Likewise.
23686 (array_ref_up_bound): Likewise.
23687 (array_at_struct_end_p): Likewise.
23688 (component_ref_field_offset): Likewise.
23690 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
23691 Szabolcs Nagy <szabolcs.nagy@arm.com>
23693 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
23695 2015-05-27 Jason Merrill <jason@redhat.com>
23698 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
23699 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
23700 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
23702 2015-05-22 Aditya Kumar <hiraditya@msn.com>
23704 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
23707 * statistics.c (statistics_fini_pass): Print pass name.
23709 2015-05-27 Richard Biener <rguenther@suse.de>
23711 PR tree-optimization/66272
23713 2014-08-15 Richard Biener <rguenther@suse.de>
23715 PR tree-optimization/62031
23716 * tree-data-ref.c (dr_analyze_indices): Do not set
23717 DR_UNCONSTRAINED_BASE.
23718 (dr_may_alias_p): All indirect accesses have to go the
23719 formerly DR_UNCONSTRAINED_BASE path.
23720 * tree-data-ref.h (struct indices): Remove
23721 unconstrained_base member.
23722 (DR_UNCONSTRAINED_BASE): Remove.
23724 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
23726 * dwarf2out.c: Remove block_map.
23727 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
23728 (gen_lexical_block_die): Same.
23729 (dwarf2out_function_decl): Remove block_map use.
23730 (dwarf2out_c_finalize): Same.
23731 * tree-core.h (struct tree_block): Add die field.
23732 * tree.h (BLOCK_DIE): New.
23734 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23737 * expr.c (memory_load_overlap): New function.
23738 (emit_push_insn): When pushing partial args to the stack would
23739 clobber the register part load the overlapping part into a pseudo
23740 and put it into the hard reg after pushing. Change return type
23741 to bool. Add bool argument.
23742 * expr.h (emit_push_insn): Change return type to bool.
23744 * calls.c (expand_call): Cancel sibcall optimization when encountering
23745 partial argument on targets with ARGS_GROW_DOWNWARD and
23746 !STACK_GROWS_DOWNWARD.
23747 (emit_library_call_value_1): Update callsite of emit_push_insn.
23748 (store_one_arg): Likewise.
23750 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
23752 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
23754 2015-05-27 Martin Liska <mliska@suse.cz>
23756 * Makefile.in: Add additional dependencies related to memory report
23758 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
23759 * bitmap.c (struct bitmap_descriptor_d): Remove.
23760 (struct loc): Likewise.
23761 (struct bitmap_desc_hasher): Likewise.
23762 (bitmap_desc_hasher::hash): Likewise.
23763 (bitmap_desc_hasher::equal): Likewise.
23764 (get_bitmap_descriptor): Likewise.
23765 (bitmap_register): User new memory descriptor API.
23766 (register_overhead): Likewise.
23767 (bitmap_find_bit): Register nsearches and search_iter statistics.
23768 (struct bitmap_output_info): Remove.
23769 (print_statistics): Likewise.
23770 (dump_bitmap_statistics): Use new memory descriptor.
23771 * bitmap.h (struct bitmap_usage): New class.
23772 * genmatch.c: Extend header file inclusion.
23773 * genpreds.c: Likewise.
23774 * ggc-common.c (struct ggc_usage): New class.
23775 (struct ggc_loc_desc_hasher): Remove.
23776 (ggc_loc_desc_hasher::hash): Likewise.
23777 (ggc_loc_desc_hasher::equal): Likewise.
23778 (struct ggc_ptr_hash_entry): Likewise.
23779 (struct ptr_hash_hasher): Likewise.
23780 (ptr_hash_hasher::hash): Likewise.
23781 (ptr_hash_hasher::equal): Likewise.
23782 (make_loc_descriptor): Likewise.
23783 (ggc_prune_ptr): Likewise.
23784 (dump_ggc_loc_statistics): Use new memory descriptor.
23785 (ggc_record_overhead): Likewise.
23786 (ggc_free_overhead): Likewise.
23787 (final_cmp_statistic): Remove.
23788 (cmp_statistic): Likewise.
23789 (ggc_add_statistics): Liekwise.
23790 (ggc_prune_overhead_list): Likewise.
23791 * hash-map-traits.h: New file.
23792 * hash-map.h (struct default_hashmap_traits): Move the traits to a
23793 separate header file.
23794 * hash-set.h: Pass memory statistics info to ctor.
23795 * hash-table.c (void dump_hash_table_loc_statistics): New function.
23796 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
23797 (hash_table::~hash_table): Register memory release operation.
23798 (hash_table::alloc_entries): Handle memory allocation operation.
23799 (hash_table::expand): Likewise.
23800 * inchash.c (iterative_hash_hashval_t): Move implementation to header
23802 (iterative_hash_host_wide_int): Likewise.
23803 * inchash.h (class hash): Likewise.
23804 * mem-stats-traits.h: New file.
23805 * mem-stats.h: New file.
23806 (mem_location): Add new class.
23807 (mem_usage): Likewise.
23808 (mem_alloc_description): Likewise.
23809 * sese.c: Add new header file inclusision.
23810 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
23812 * tree-sra.c: Add new header file inclusision.
23813 * vec.c (struct vec_descriptor): Remove.
23814 (hash_descriptor): Likewise.
23815 (struct vec_usage): Likewise.
23816 (struct ptr_hash_entry): Likewise.
23817 (hash_ptr): Likewise.
23818 (eq_ptr): Likewise.
23819 (vec_prefix::register_overhead): Use new memory descriptor API.
23820 (vec_prefix::release_overhead): Likewise.
23821 (add_statistics): Remove.
23822 (dump_vec_loc_statistics): Use new memory descriptor API.
23823 * vec.h (struct vec_prefix): Likewise.
23824 (va_heap::reserve): Likewise.
23825 (va_heap::release): Likewise.
23826 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
23828 2015-05-27 Richard Biener <rguenther@suse.de>
23830 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
23831 earlier and remove ??? comment.
23832 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
23833 and got called from loop analysis bail out. Always pass the SLP
23834 node to the vectorizable_* functions.
23835 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
23836 the premature SLP check here.
23837 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
23838 detected SLP stmts.
23839 (vect_detect_hybrid_slp_1): Likewise.
23841 2015-05-26 Jeff Law <law@redhat.com>
23843 * combine.c (find_split_point): Verify that the shift count is a
23844 constant when choosing (plus (ashift ...)) as a split point.
23846 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
23847 No functional changes.
23849 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
23851 * ipa-polymorphic-call.c
23852 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
23853 case when call target is already known.
23855 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
23858 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
23859 take into account the case that operands[1] and operands[2]
23860 are the same register.
23862 2015-05-26 Michael Matz <matz@suse.de>
23864 PR middle-end/66251
23866 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
23868 (vect_create_vectorized_demotion_stmts): Always set
23869 STMT_VINFO_VEC_STMT, also with SLP.
23870 (vectorizable_store): Handle strided group stores.
23872 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
23875 * config/aarch64/aarch64.md
23876 (*adds_shift_imm_<mode>): New pattern.
23877 (*subs_shift_imm_<mode>): Likewise.
23878 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
23879 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
23880 (*add_uxt<mode>_shift2): Likewise.
23881 (*add_uxtsi_shift2_uxtw): Likewise.
23882 (*sub_uxt<mode>_shift2): Likewise.
23883 (*sub_uxtsi_shift2_uxtw): Likewise.
23885 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
23887 * config/rs6000/constraints.md (Y, U): Use match_test.
23889 2015-05-26 Christian Bruel <christian.bruel@st.com>
23892 * config/arm/arm.c (arm_option_check_internal)
23893 (arm_option_params_internal): Check opts->target_flags to set macros.
23894 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
23895 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
23896 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
23897 (builtin_define): Replaced with def_or_undef_macro.
23898 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
23899 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
23900 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
23901 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
23902 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
23903 (TARGET_ARM_FEATURE_LDREX_P)
23904 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
23905 * config/arm/arm-c.c (def_or_undef_macro): New function.
23906 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
23908 2015-05-26 Christian Bruel <christian.bruel@st.com>
23910 * c-common.h (builtin_define_with_int_value)
23911 (builtin_define_type_sizeof): Declare.
23912 * c-cppbuiltin.c (builtin_define_with_int_value)
23913 (builtin_define_type_sizeof): Externalize.
23914 (builtin_define_std): Cleanup declaration.
23915 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
23916 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
23917 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
23918 (builtin_define, builtin_assert): New macros.
23920 2015-05-26 Richard Biener <rguenther@suse.de>
23922 PR tree-optimization/66142
23923 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
23924 MEM_REFs for the same base address.
23926 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23929 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
23931 2015-05-26 Jason Merrill <jason@redhat.com>
23933 * configure.ac: Set CXXFLAGS for ISL test.
23934 * configure: Regenerate.
23936 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
23937 strstr and basename.
23938 * configure: Regenerate.
23940 2015-05-26 Richard Biener <rguenther@suse.de>
23942 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
23943 X % C -> X & (C - 1) for C being a power-of two to ...
23944 * match.pd: ... patterns.
23946 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
23948 * match.pd (swapped_tcc_comparison): New operator list.
23949 (-A CMP -B): New simplification.
23950 * fold-const.c (fold_comparison): Remove corresponding code.
23952 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
23954 * caller-save.c (init_caller_save): Base temporary register numbers
23955 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
23956 * cfgloopanal.c (init_set_costs): Likewise.
23957 * dojump.c (prefer_and_bit_test): Likewise.
23958 * expr.c (init_expr_target): Likewise.
23959 * ira.c (setup_prohibited_mode_move_regs): Likewise.
23960 * lower-subreg.c (init_lower_subreg): Likewise.
23961 * postreload.c (reload_cse_regs_1): Likewise.
23963 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
23965 * gensupport.h (compute_test_codes): Declare.
23966 * gensupport.c (compute_predicate_codes): Rename to...
23967 (compute_test_codes): ...this. Generalize error message.
23968 (process_define_predicate): Update accordingly.
23969 * genpreds.c (compute_maybe_allows): Delete.
23970 (add_constraint): Use compute_test_codes to determine whether
23971 something can accept a SUBREG, REG or MEM.
23973 2015-05-26 Torvald Riegel <triegel@redhat.com>
23975 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
23976 'memory model' to align with C++11; fix description of memory orders;
23979 2015-05-26 Richard Biener <rguenther@suse.de>
23981 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
23982 (vect_analyze_loop_operations): ... here. Remove slp parameter,
23983 detect whether we apply SLP. Remove call to
23984 vect_update_slp_costs_according_to_vf.
23985 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
23986 vect_update_slp_costs_according_to_vf from here. Dispatch
23987 to vect_slp_analyze_operations to analyze SLP stmts.
23988 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
23989 unused bb_vec_info parameter, adjust assert.
23990 (vect_slp_analyze_operations): Pass in the slp instance tree
23991 instead of bb_vec_info.
23992 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
23993 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
23995 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
23997 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
23998 Q_REGS. Expand comment.
23999 (REG_CLASS_NAMES): Ditto.
24000 (REG_CLASS_CONTENTS): Ditto.
24002 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
24005 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
24006 when LEGACY_INT_REGNO_P is processed.
24008 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
24010 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
24012 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
24014 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
24015 register if not marked dead/unused, before return.
24017 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24020 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
24021 is set; check for assembler name at LTO time.
24022 (type_in_anonymous_namespace): Remove hacks, check that all
24023 anonymous types are called "<anon>"
24024 (odr_type_p): Simplify; add check for "<anon>"
24025 (odr_subtypes_equivalent): Add odr_type_p check.
24026 * tree.c (need_assembler_name_p): Even anonymous namespace needs
24029 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24031 * ipa-utils.h (method_class_type): Remove.
24032 * cgraphunit.c (walk_polymorphic_call_targets): Use
24033 TYPE_METHOD_BASETYPE.
24034 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
24035 on main variants only.
24036 (method_class_type): Remove.
24037 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
24038 (build_type_inheritance_graph): Likewise.
24039 * ipa-icf.c (sem_function::equals_wpa): Likewise.
24040 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
24041 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
24043 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
24045 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
24046 is_typedef_decl, typedef_variant_p): Constify.
24047 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
24048 is_typedef_decl, typedef_variant_p): Constify.
24050 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24052 * defaults.h (gen_tablejump): New function.
24053 (HAVE_tablejump): Add default value.
24055 * stmt.c: Likewise.
24057 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24059 * defaults.h (gen_store_multiple): New function.
24060 (HAVE_store_multiple): Add default value.
24061 * expr.c (move_block_from_reg): Adjust.
24063 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24065 * defaults.h (gen_load_multiple): New function.
24066 (HAVE_load_multiple): Add default value.
24067 * expr.c (move_block_to_reg): Adjust.
24069 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24071 * defaults.h (gen_mem_signal_fence): New function.
24072 (HAVE_mem_signal_fence): Add default value.
24073 * optabs.c: Adjust.
24075 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24077 * defaults.h (gen_memory_barrier): New function.
24078 (HAVE_memory_barrier): Add default value.
24079 * optabs.c: Adjust.
24081 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24083 * defaults.h (gen_mem_thread_fence): New function.
24084 (HAVE_mem_thread_fence): Add default definition.
24085 * optabs.c: Adjust.
24087 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24089 * combine.c (find_split_point): Check the value of HAVE_lo_sum
24090 instead of if it is defined.
24091 (combine_simplify_rtx): Likewise.
24092 * lra-constraints.c (process_address_1): Likewise.
24093 * config/darwin.c: Adjust.
24094 * genconfig.c (main): Always define HAVE_lo_sum.
24096 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24098 * genmatch.c (parser::parse_operation): Reject expanding
24099 operator-list inside 'for'.
24101 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24103 * genmatch.c (parser::parse_for): Reject iterator if used as
24106 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24108 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
24109 after end of id-list.
24111 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
24113 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
24114 we do not try to compute canonical type for type that does not need
24116 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
24118 * tree.h (type_with_alias_set_p): New.
24120 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
24122 * tree.c (gimple_canonical_types_compatible_p): Do not compare
24123 function attributes.
24124 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
24126 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
24128 * Makefile.in (check_gcc_parallelize): Delete.
24129 (lang_checks_parallelized): Update comment.
24131 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
24133 PR rtl-optimization/66237
24134 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
24135 location of an "as_a" cast.
24137 2015-05-22 Jeff Law <law@redhat.com>
24139 * config/pa/pa.md (non-canonical shift-add insns): Remove.
24140 (peepholes with non-canonical RTL sources): Remove.
24141 (peepholes for indexed stores of FP regs in integer modes): Match and
24142 generate canonical RTL.
24144 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24146 PR tree-optimization/63387
24147 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
24148 ((x ord x) & (y ord y) -> (x ord y),
24149 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
24150 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
24151 vectors like scalars.
24153 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24155 * convert.c (convert_to_integer, convert_to_vector): Include the
24156 types in the error message.
24158 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
24160 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
24163 2015-05-22 Jeff Law <law@redhat.com>
24165 * config/pa/pa.md (integer_indexed_store splitters): Use
24166 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
24167 insns -- adjusting the constant 2nd operand accordingly.
24169 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
24170 (plus (ashift X log2) Y) if it is a split point.
24172 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
24173 out of hppa_legitimize_address to handle both forms of a multiply
24175 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
24176 Always generate the ASHIFT variant as the result is not directly
24177 used in a MEM. Update comments and refactor slightly to improve
24180 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24183 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
24184 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
24185 (aarch64_composite_type_p): Return false if given type and mode are
24186 for a short vector.
24188 2015-05-22 Richard Biener <rguenther@suse.de>
24190 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
24192 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
24193 patterns when determining whether SLP is pure.
24194 (vect_is_slp_reduction): Remove check for pattern stmts.
24195 (vect_is_simple_reduction_1): Remove dead code.
24196 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
24197 (vect_get_and_check_slp_defs): Pass in the stmt number.
24198 Allow the first def in a reduction to be not a pattern stmt when
24199 the rest of the stmts def are patterns.
24200 (vect_build_slp_tree_1): Allow tcc_expression codes like
24201 SAD_EXPR and DOT_PROD_EXPR.
24202 (vect_build_slp_tree): Adjust.
24203 (vect_analyze_slp): Refactor and move BB vect error message ...
24204 (vect_slp_analyze_bb_1): ... here.
24206 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
24208 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
24209 for CSWTCH temporary.
24211 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24213 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
24214 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
24217 2015-05-22 Richard Biener <rguenther@suse.de>
24219 PR tree-optimization/66251
24220 * tree-vect-stmts.c (vectorizable_conversion): Properly
24221 set STMT_VINFO_VEC_STMT even for the SLP case.
24223 2015-05-22 Marek Polacek <polacek@redhat.com>
24225 * doc/extend.texi: Use @pxref instead of @xref.
24227 2015-05-22 hiraditya <hiraditya@msn.com>
24229 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
24232 2015-05-22 Richard Biener <rguenther@suse.de>
24234 PR tree-optimization/65701
24235 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
24236 Move peeling cost models into one place. Peel for alignment
24237 for single loads only if an aligned load is cheaper than
24240 2015-05-22 Marek Polacek <polacek@redhat.com>
24243 * doc/extend.texi (Enumerator Attributes): New section.
24244 Document syntax of enumerator attributes.
24246 2015-05-22 Richard Biener <rguenther@suse.de>
24248 * tree-vect-loop.c (get_reduction_op): New function.
24249 (vect_model_reduction_cost): Use it, add reduc_index parameter.
24250 Make ready for BB reductions.
24251 (vect_create_epilog_for_reduction): Use get_reduction_op.
24252 (vectorizable_reduction): Init reduc_index to a valid value.
24253 Adjust vect_model_reduction_cost call.
24254 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
24255 operand for reduction defaults. Add SAD_EXPR support.
24256 Assert we have a neutral op for SLP reductions.
24257 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
24258 walking pattern stmt ops only recurse to SSA names.
24260 2015-05-22 Richard Biener <rguenther@suse.de>
24262 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
24263 assert with guard, remove check on detected reduction.
24264 (vect_recog_sad_pattern): Likewise.
24265 (vect_recog_widen_sum_pattern): Likewise.
24267 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24269 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
24270 __always_inline__ attribute.
24271 (vaesdq_u8): Likewise.
24272 (vaesmcq_u8): Likewise.
24273 (vaesimcq_u8): Likewise.
24274 (vsha1cq_u32): Likewise.
24275 (vsha1mq_u32): Likewise.
24276 (vsha1pq_u32): Likewise.
24277 (vsha1h_u32): Likewise.
24278 (vsha1su0q_u32): Likewise.
24279 (vsha1su1q_u32): Likewise.
24280 (vsha256hq_u32): Likewise.
24281 (vsha256h2q_u32): Likewise.
24282 (vsha256su0q_u32): Likewise.
24283 (vsha256su1q_u32): Likewise.
24284 (vmull_p64): Likewise.
24285 (vmull_high_p64): Likewise.
24287 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24289 * final.c (final_scan_insn): Don't check HAVE_peephole with the
24291 * output.h: Likewise.
24292 * genconfig.c (main): Alwways define HAVE_peephole.
24293 * genpeep.c: Don't emit checks of HAVE_peephole.
24295 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24297 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
24298 check HAVE_conditional_move with the preprocessor.
24300 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24302 * genconfig.c (main): Always define HAVE_conditional_move.
24303 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
24304 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
24307 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24309 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
24310 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
24311 and FRAME_POINTER_REGNUM with the preprocessor.
24313 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24315 * defaults.h: Add default for STACK_PUSH_CODE.
24316 * expr.c: Don't redefine STACK_PUSH_CODE.
24317 * recog.c: Likewise.
24319 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24321 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
24322 sched-deps.c: Use if instead of preprocessor checks with
24323 STACK_GROWS_DOWNWARD.
24325 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24327 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
24329 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
24330 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
24331 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
24332 * doc/tm.texi: Regenerate.
24334 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
24337 * config/i386/constraints.md (Bg): New constraint for GOT memory
24339 * config/i386/i386.md (*call_got_x32): New pattern.
24340 (*call_value_got_x32): Likewise.
24341 * config/i386/predicates.md (GOT_memory_operand): New predicate.
24343 2015-05-21 Jakub Jelinek <jakub@redhat.com>
24345 PR tree-optimization/66233
24346 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
24349 2015-05-21 Jeff Law <law@redhat.com>
24351 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
24352 than MULT for shadd sequences.
24354 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
24356 * alias.c (alias_stats): New static var.
24357 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
24358 (dump_alias_stats_in_alias_c): New function.
24359 * alias.h (dump_alias_stats_in_alias_c): Declare.
24360 * tree-ssa-alias.c (dump_alias_stats): Call it.
24362 2015-05-08 Michael Matz <matz@suse.de>
24364 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
24366 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
24367 (STMT_VINFO_STRIDED_P): ... this.
24368 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
24369 (vect_verify_datarefs_alignment): Likewise.
24370 (vect_enhance_data_refs_alignment): Likewise.
24371 (vect_analyze_data_ref_access): Likewise.
24372 (vect_analyze_data_refs): Accept strided stores.
24373 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
24374 (vect_model_load_cost): Adjust for macro rename.
24375 (vectorizable_mask_load_store): Likewise.
24376 (vectorizable_load): Likewise.
24377 (vectorizable_store): Open code strided stores.
24379 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24381 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
24382 Document sqrt_insn.
24384 2015-05-21 Richard Biener <rguenther@suse.de>
24387 * match.pd: Guard pattern optimzing (int)(float)int
24388 conversions to apply only on GIMPLE.
24390 2015-05-21 Jeff Law <law@redhat.com>
24392 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
24393 multiply-accumulate/shift-add insn generation.
24395 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
24398 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
24399 operands[1] are the same.
24401 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
24403 PR middle-end/66221
24404 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
24405 build_distinct_type_copy to copy bounds.
24407 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
24409 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
24410 Change to unsigned int.
24412 2015-05-20 Jeff Law <law@redhat.com>
24414 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
24415 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
24416 (pa_shadd_constant_p): Allow constants for shadd insns rather
24417 than valid scaling constants for memory addresses.
24418 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
24419 * config/pa/predicates.md (mem_shadd_operand): New predicate.
24420 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
24421 (shift-add insns using ASHIFT): New patterns.
24423 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
24425 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
24427 (fix_up_fall_thru_edges): Likewise.
24428 (fix_crossing_conditional_branches): Likewise. Promote jump targets
24429 from to rtx_insn to rtx_code_label where feasible.
24430 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
24431 gen_move_insn (returned type changed to rtx_insn).
24432 * builtins.c (expand_errno_check): Fix arguments of
24433 do_compare_rtx_and_jump (now expects rtx_code_label).
24434 (expand_builtin_acc_on_device): Likewise.
24435 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
24436 invert_jump (now exprects rtx_jump_insn).
24437 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
24438 (construct_init_block): Use rtx_code_label.
24439 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
24440 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
24441 calling redirect_jump.
24442 (patch_jump_insn): Likewise.
24443 (redirect_branch_edge): Likewise.
24444 (force_nonfallthru_and_redirect): Likewise.
24445 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
24447 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
24448 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
24449 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
24450 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
24451 to store the value retured by gen_label_rtx.
24452 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
24454 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
24455 (split_branches): Fix calls of redirect_jump.
24456 * dojump.c (jumpifnot): Promote argument type from rtx to
24458 (jumpifnot_1): Likewise.
24459 (jumpif): Likewise.
24460 (jumpif_1): Likewise.
24461 (do_jump_1): Likewise.
24462 (do_jump): Likewise. Use rtx_code_label when feasible.
24463 (do_jump_by_parts_greater_rtx): Likewise.
24464 (do_jump_by_parts_zero_rtx): Likewise.
24465 (do_jump_by_parts_equality_rtx): Likewise.
24466 (do_compare_rtx_and_jump): Likewise.
24467 * dojump.h: Update function prototypes.
24468 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
24470 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
24472 (emit_label_before): Likewise.
24473 (emit_jump_insn_after_noloc): Likewise.
24474 (emit_jump_insn_after_setloc): Likewise.
24475 (emit_jump_insn_after): Likewise
24476 (emit_jump_insn_before_setloc): Likewise.
24477 (emit_jump_insn_before): Likewise.
24478 (emit_label_before): Promote return type to rtx_code_label.
24479 (emit_label): Likewise.
24480 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
24481 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
24483 (emit_stack_restore): Likewise.
24484 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
24485 (do_cmp_and_jump): Likewise.
24486 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
24487 from rtx to rtx_code_label.
24488 (gen_move_insn_uncast): New function.
24489 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
24490 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
24491 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
24492 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
24493 invert_jump_1 and redirect_jump_1.
24494 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
24495 do_compare_rtx_and_jump.
24496 (expand_addsub_overflow): Likewise.
24497 (expand_neg_overflow): Likewise.
24498 (expand_mul_overflow): Likewise.
24499 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
24500 return value of gen_move_insn.
24501 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
24502 * loop-doloop.c (add_test): Use rtx_code_label.
24503 (doloop_modify): Likewise.
24504 (doloop_optimize): Likewise.
24505 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
24506 * lra-constraints.c (emit_spill_move): Remove cast of value returned
24508 (inherit_reload_reg): Add cast when calling dump_insn_slim.
24509 (split_reg): Likewise.
24510 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
24512 * optabs.c (expand_binop_directly): Remove casts of values returned by
24514 (expand_unop_direct): Likewise.
24515 (expand_abs): Likewise.
24516 (maybe_emit_unop_insn): Likewise.
24517 (maybe_gen_insn): Promote return type to rtx_insn.
24518 * optabs.h: Update prototype of maybe_gen_insn.
24519 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
24521 * recog.c (struct peep2_insn_data): Promote type of insn field to
24523 (peep2_reinit_state): Use NULL instead of NULL_RTX.
24524 (peep2_attempt): Remove casts of insn in peep2_insn_data.
24525 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
24526 * recog.h (struct insn_gen_fn): Promote return types of function
24527 pointers and operator ().from rtx to rtx_insn.
24528 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
24529 (fill_eager_delay_slots): Likewise.
24530 (relax_delay_slots): Likewise.
24531 (make_return_insns): Likewise.
24532 (dbr_schedule): Likewise.
24533 (optimize_skips): Likewise.
24534 (reorg_redirect_jump): Likewise.
24535 (fill_slots_from_thread): Likewise.
24536 * reorg.h: Update prototypes.
24537 * resource.c (find_dead_or_set_registers): Use dyn_cast to
24538 rtx_jump_insn instead of check. Use it's jump_target method.
24539 * rtl.h (rtx_jump_insn::jump_label): Define new method.
24540 (rtx_jump_insn::jump_target): Define new method.
24541 (rtx_jump_insn::set_jump_target): Define new method.
24542 * rtlanal.c (tablejump_p): Promote type of one local variable.
24543 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
24544 (sched_analyze_insn): Likewise.
24545 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
24546 (print_insn): Likewise.
24547 * stmt.c (label_rtx): Promote return type to rtx_insn.
24548 (force_label_rtx): Likewise.
24549 (jump_target_rtx): Define new function.
24550 (expand_label): Use it, get rid of one cast.
24551 (expand_naked_return): Promote rtx to rtx_code_label.
24552 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
24553 (expand_case): Use rtx_code_label instread of rtx where feasible.
24554 (expand_sjlj_dispatch_table): Likewise.
24555 (emit_case_nodes): Likewise.
24556 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
24557 * store-motion.c (insert_store): Make use of new return type of
24558 gen_move_insn and remove a cast.
24559 (replace_store_insn): Likewise.
24561 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
24563 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
24564 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
24566 2015-05-20 Jeff Law <law@redhat.com>
24568 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
24569 dispose of the jump thread path when the jump threading
24570 opportunity is cancelled.
24572 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
24574 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
24575 when printing the caret character.
24577 2015-05-20 Marek Polacek <polacek@redhat.com>
24579 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
24581 2015-05-20 Marek Polacek <polacek@redhat.com>
24583 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
24584 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
24585 * gimple-fold.c (canonicalize_bool): Likewise.
24586 (same_bool_result_p): Likewise.
24587 * tree-if-conv.c (parse_predicate): Likewise.
24589 2015-05-20 Marek Polacek <polacek@redhat.com>
24591 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
24592 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
24594 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24596 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
24597 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
24600 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
24602 * config/mips/mips.h (micromips_globals): Declare.
24604 2015-05-20 David Malcolm <dmalcolm@redhat.com>
24606 * timevar.def (TV_INITIALIZE_RTL): New.
24607 * toplev.c (initialize_rtl): Use an auto_timevar to account this
24608 function's time to TV_INITIALIZE_RTL.
24610 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
24612 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
24613 gimple_build_nop calls.
24614 (chkp_find_bounds_for_elem): Likewise.
24615 (chkp_get_zero_bounds): Likewise.
24616 (chkp_get_none_bounds): Likewise.
24617 (chkp_get_bounds_by_definition): Likewise.
24618 (chkp_generate_extern_var_bounds): Likewise.
24619 (chkp_get_bounds_for_decl_addr): Likewise.
24620 (chkp_get_bounds_for_string_cst): Likewise.
24622 2015-05-20 Bin Cheng <bin.cheng@arm.com>
24624 PR tree-optimization/65447
24625 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
24626 (dump_use, dump_uses): Support to dump sub use.
24627 (record_use): New parameters to support sub use. Remove call to
24629 (record_sub_use, record_group_use): New functions.
24630 (compute_max_addr_offset, split_all_small_groups): New functions.
24631 (group_address_uses, rewrite_use_address): New functions.
24632 (strip_offset): New declaration.
24633 (find_interesting_uses_address): Call record_group_use.
24634 (add_candidate): New assertion.
24635 (infinite_cost_p): Move definition forward.
24636 (add_costs): Check INFTY cost and return immediately.
24637 (get_computation_cost_at): Clear setup cost and dependent bitmap
24639 (determine_use_iv_cost_address): Compute cost for sub uses.
24640 (rewrite_use_address_1): Rename from old rewrite_use_address.
24641 (free_loop_data): Free sub uses.
24642 (tree_ssa_iv_optimize_loop): Call group_address_uses.
24644 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24645 Jim Wilson <jim.wilson@linaro.org>
24647 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
24648 new fields loadv and storev.
24649 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
24650 Initialize loadv and storev.
24651 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
24652 (cortexa53_extra_costs): Likewise.
24653 (cortexa57_extra_costs): Likewise.
24654 (xgene1_extra_costs): Likewise.
24655 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
24658 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
24660 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
24662 (cortexa8_extra_costs): Likewise.
24663 (cortexa5_extra_costs): Likewise.
24664 (cortexa7_extra_costs): Likewise.
24665 (cortexa12_extra_costs): Likewise.
24666 (cortexa15_extra_costs): Likewise.
24667 (v7m_extra_costs): Likewise.
24669 2015-05-20 Jeff Law <law@redhat.com>
24671 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
24672 instead of open-coded version. Also delete the jump thread created
24673 within this function.
24675 2015-05-20 Alan Modra <amodra@gmail.com>
24677 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
24678 stack adjusting insn. Formatting.
24679 (rs6000_emit_prologue): Track stack adjusting insn, and use of
24680 r12. If possible, emit first -fsplit-stack arg pointer insn
24681 before stack adjust. Don't use r12 to save cr if split-stack.
24683 2015-05-20 Alan Modra <amodra@gmail.com>
24685 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
24687 (rs6000_supports_split_stack): New function.
24688 * config/rs6000/rs6000.c (machine_function): Add
24689 split_stack_arg_pointer.
24690 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
24691 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
24692 rather than virtual_incoming_args_rtx.
24693 (rs6000_va_start): Likewise.
24694 (split_stack_arg_pointer_used_p): New function.
24695 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
24696 (morestack_ref): New var.
24697 (gen_add3_const, rs6000_expand_split_stack_prologue,
24698 rs6000_internal_arg_pointer, rs6000_live_on_entry,
24699 rs6000_split_stack_space_check): New functions.
24700 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
24701 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
24702 (UNSPECV_SPLIT_STACK_RETURN): Define.
24703 (split_stack_prologue, load_split_stack_limit,
24704 load_split_stack_limit_di, load_split_stack_limit_si,
24705 split_stack_return, split_stack_space_check): New expands and insns.
24706 * config/rs6000/rs6000-protos.h
24707 (rs6000_expand_split_stack_prologue): Declare.
24708 (rs6000_split_stack_space_check): Declare.
24710 2015-05-20 Alan Modra <amodra@gmail.com>
24712 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
24713 (direct_return): Test vrsave_size rather than vrsave_mask.
24714 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
24715 (rs6000_emit_epilogue): Likewise.
24717 2015-05-20 Alan Modra <amodra@gmail.com>
24719 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
24720 when not saving registers.
24721 (debug_stack_info): Adjust to omit printing unused offsets,
24723 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
24726 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24729 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
24730 value_type to const char *.
24732 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
24734 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
24735 to build a biarch toolchain again.
24737 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
24739 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
24740 or implicit declarations.
24741 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
24743 (get_odr_type): Check type has linkage before adding bases.
24744 (register_odr_type): Check that type has linkage before adding it.
24745 (type_known_to_have_no_deriavations_p): Rename to ..
24746 (type_known_to_have_no_derivations_p): This one.
24747 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
24748 (type_known_to_have_no_derivations_p): This one.
24749 * ipa-polymorphic-call.c
24750 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
24753 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
24755 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
24756 (layout_type): Use RECORD_OR_UNION_TYPE_P.
24758 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24760 * config/s390/s390.c (s390_vector_bool_type_p): New function.
24761 (s390_invalid_binary_op): New function.
24762 (TARGET_INVALID_BINARY_OP): Define macro.
24764 2015-05-19 David Sherwood <david.sherwood@arm.com>
24766 * loop-invariant.c (create_new_invariant): Don't calculate address cost
24767 if mode is not a scalar integer.
24768 (get_inv_cost): Increase computational cost for unused invariants.
24770 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24772 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
24773 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
24774 * config/s390/s390-builtin-types.def: New file.
24775 * config/s390/s390-builtins.def: New file.
24776 * config/s390/s390-builtins.h: New file.
24777 * config/s390/s390-c.c: New file.
24778 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
24779 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
24780 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
24781 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
24783 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
24785 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
24786 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
24787 variable definitions.
24788 (s390_const_operand_ok): New function.
24789 (s390_expand_builtin): Rewrite.
24790 (s390_init_builtins): New function.
24791 (s390_handle_vectorbool_attribute): New function.
24792 (s390_attribute_table): Add s390_vector_bool attribute.
24793 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
24794 (s390_branch_condition_mask): Generate masks for new modes.
24795 (s390_expand_vec_compare_cc): New function.
24796 (s390_mangle_type): Add mangling for vector bool types.
24797 (enum s390_builtin): Remove.
24798 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
24800 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
24801 s390_cpu_cpp_builtins.
24802 (REGISTER_TARGET_PRAGMAS): New macro.
24803 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
24804 (insn_cmp mode attribute): Add new CC modes.
24805 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
24806 (lcbb): New pattern definition.
24807 * config/s390/s390intrin.h: Include vecintrin.h.
24808 * config/s390/t-s390: New file.
24809 * config/s390/vecintrin.h: New file.
24810 * config/s390/vector.md: Include vx-builtins.md.
24811 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
24814 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24816 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
24818 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
24819 (s390_select_ccmode): Likewise.
24820 (s390_canonicalize_comparison): Swap operands if necessary.
24821 (s390_expand_vec_compare_scalar): Expand DFmode compare using
24822 single element vector instructions.
24823 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
24824 (s390_branch_condition_mask): Generate CC masks for the new modes.
24825 * config/s390/s390.md (v0, vf, vd): New mode attributes.
24826 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
24827 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
24828 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
24829 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
24830 (*extend<DSF:mode><BFP:mode>2): New insn definition.
24831 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
24832 (extend<DSF:mode><BFP:mode>2): Turn into expander.
24833 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
24834 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
24835 (sqrt<mode>2): Add vector instruction.
24837 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24839 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
24841 * config/s390/predicates.md (const0_operand, constm1_operand)
24842 (constable_operand): Accept vector operands.
24843 * config/s390/s390-modes.def: Add supported vector modes.
24844 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
24845 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
24846 (s390_bytemask_vector_p, s390_expand_vec_strlen)
24847 (s390_expand_vec_compare, s390_expand_vcond)
24848 (s390_expand_vec_init): Add prototypes.
24849 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
24850 (s390_vector_mode_supported_p): New function.
24851 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
24852 (s390_contiguous_bitmask_vector_p): New function.
24853 (s390_bytemask_vector_p): New function.
24854 (s390_split_ok_p): Vector regs don't work either.
24855 (regclass_map): Add VEC_REGS.
24856 (s390_legitimate_constant_p): Handle vector constants.
24857 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
24858 (legitimate_reload_vector_constant_p): New function.
24859 (s390_preferred_reload_class): Handle CONST_VECTOR.
24860 (s390_reload_symref_address): Likewise.
24861 (s390_secondary_reload): Vector memory instructions only support
24862 short displacements. Rename reload*_nonoffmem* to reload*_la*.
24863 (s390_emit_ccraw_jump): New function.
24864 (s390_expand_vec_strlen): New function.
24865 (s390_expand_vec_compare): New function.
24866 (s390_expand_vcond): New function.
24867 (s390_expand_vec_init): New function.
24868 (s390_dwarf_frame_reg_mode): New function.
24869 (print_operand): Handle addresses with 'O' and 'R' constraints.
24870 (NR_C_MODES, constant_modes): Add vector modes.
24871 (s390_output_pool_entry): Handle vector constants.
24872 (s390_hard_regno_mode_ok): Handle vector registers.
24873 (s390_class_max_nregs): Likewise.
24874 (s390_cannot_change_mode_class): New function.
24875 (s390_invalid_arg_for_unprototyped_fn): New function.
24876 (s390_function_arg_vector): New function.
24877 (s390_function_arg_float): Remove size variable.
24878 (s390_pass_by_reference): Handle vector arguments.
24879 (s390_function_arg_advance): Likewise.
24880 (s390_function_arg): Likewise.
24881 (s390_return_in_memory): Vector values are returned in a VR if
24883 (s390_function_and_libcall_value): Handle vector arguments.
24884 (s390_gimplify_va_arg): Likewise.
24885 (s390_call_saved_register_used): Consider the arguments named.
24886 (s390_conditional_register_usage): Disable v16-v31 for non-vec
24888 (s390_preferred_simd_mode): New function.
24889 (s390_support_vector_misalignment): New function.
24890 (s390_vector_alignment): New function.
24891 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
24892 (TARGET_VECTOR_MODE_SUPPORTED_P)
24893 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
24894 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
24895 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
24896 (TARGET_VECTOR_ALIGNMENT): Define target macro.
24897 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
24898 (FIRST_PSEUDO_REGISTER): Increase value.
24899 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
24900 (VECTOR_REG_P): Define macros.
24901 (FIXED_REGISTERS, CALL_USED_REGISTERS)
24902 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
24903 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
24904 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
24905 Add vector registers.
24906 (CANNOT_CHANGE_MODE_CLASS): Call C function.
24907 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
24908 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
24910 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
24911 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
24912 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
24913 (VR*_REGNUM): New constants.
24914 (ALL): New mode iterator.
24915 (INTALL): Remove mode iterator.
24917 (movti): Implement TImode moves for VRs.
24918 Disable TImode splitter for VR targets.
24919 Implement splitting TImode GPR<->VR moves.
24920 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
24921 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
24922 reload<mode>_la_in, reload<mode>_la_out.
24923 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
24924 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
24925 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
24926 (mov<mode> SF SD): Prefer lder, lde for loading.
24927 Add lrl and strl instructions.
24928 Add vector instructions.
24929 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
24930 Call s390_expand_vec_strlen on z13.
24931 (*cc_to_int): Change predicate to nonimmediate_operand.
24932 (addti3): Rename to *addti3. New expander.
24933 (subti3): Rename to *subti3. New expander.
24934 * config/s390/vector.md: New file.
24936 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24938 * common/config/s390/s390-common.c (processor_flags_table): Add
24940 * config.gcc: Add z13.
24941 * config/s390/s390-opts.h (enum processor_type): Add
24942 PROCESSOR_2964_Z13.
24943 * config/s390/s390.c (s390_adjust_priority): Check for
24944 PROCESSOR_2964_Z13.
24945 (s390_reorg): Likewise.
24946 (s390_sched_reorder): Likewise.
24947 (s390_sched_variable_issue): Likewise.
24948 (s390_loop_unroll_adjust): Likewise.
24949 (s390_option_override): Likewise. Default to -mvx when available.
24950 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
24951 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
24952 (TARGET_VX_ABI): Define macros.
24954 (TARGET_DEFAULT): Add MASK_OPT_VX.
24955 * config/s390/s390.md ("cpu" attribute): Add z13.
24956 ("cpu_facility" attribute): Add vec.
24957 * config/s390/s390.opt (processor_type): Add z13.
24958 (mvx): New options.
24959 * doc/invoke.texi: Add z13 option for -march.
24961 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24963 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
24964 mode check to make sure that only scalar integer values are
24967 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
24969 * tree.c (verify_type_variant): Fix #undef.
24970 (gimple_canonical_types_compatible_p): Move here from lto.c
24971 (verify_type): Verify TYPE_CANONICAL compatibility.
24972 * tree.h (gimple_canonical_types_compatible_p): Declare.
24974 2015-05-19 Jakub Jelinek <jakub@redhat.com>
24976 PR middle-end/66199
24977 * tree.h (OMP_TEAMS_COMBINED): Define.
24978 * gimplify.c (enum gimplify_omp_var_data): Add
24979 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
24980 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
24981 (omp_notice_variable): Accept both ORT_TEAMS
24982 and ORT_COMBINED_TEAMS. Don't recurse if
24983 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
24984 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
24986 (omp_no_lastprivate): New function.
24987 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
24988 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
24989 notice_outer and set appropriate bits, otherwise make
24990 sure default(none) combined constructs won't complain.
24991 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
24992 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
24993 omp_no_lastprivate either remove the clause or turn it
24994 into OMP_CLAUSE_PRIVATE.
24995 (gimplify_omp_for): Fix up handling of implicit
24996 lastprivate or linear iterators.
24997 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
24998 ORT_COMBINED_TEAMS.
24999 * omp-low.c (lower_omp_for_lastprivate): For combined
25000 for simd use fd.loop.n2 from the for rather than simd.
25002 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25004 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
25005 instead of gen_rtx_raw_REG.
25006 (cris_expand_epilogue): Likewise.
25007 * config/microblaze/microblaze.c (microblaze_classify_address):
25009 * config/sparc/sparc.md: Likewise.
25011 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
25013 * config/alpha/alpha.c (alpha_legitimize_reload_address)
25014 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
25015 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
25016 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
25017 Use CASE_CONST_SCALAR_INT.
25018 (print_operand) <case 'M'>: Use mode_width_operand to check the
25019 value of the constant.
25020 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
25021 * config/alpha/predicates.md (input_operand): Use general_operand
25022 instead of match_code as operand check.
25023 (symbolic_operand): Use match_code with subexpression digits.
25024 * config/alpha/constraints.md (Q): Ditto.
25026 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25028 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
25030 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25032 * config/s390/s390.c (s390_secondary_reload): Fix check for
25033 load/store relative.
25035 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
25037 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
25038 alternative_mask to uint64_t.
25040 2015-05-19 Jakub Jelinek <jakub@redhat.com>
25042 PR tree-optimization/66187
25043 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
25044 Pass TYPE_SIGN to tree_int_cst_min_precision. If
25045 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
25047 2015-05-19 David Malcolm <dmalcolm@redhat.com>
25049 * diagnostic.c (diagnostic_report_current_module): Strengthen
25050 local "new_map" from const line_map * to
25051 const line_map_ordinary *.
25052 * genmatch.c (error_cb): Likewise for local "map".
25053 (output_line_directive): Likewise for local "map".
25054 * input.c (expand_location_1): Likewise for local "map".
25055 Pass NULL rather than &map to
25056 linemap_unwind_to_first_non_reserved_loc, since the value is never
25057 read from there, and the value written back not read from here.
25058 (is_location_from_builtin_token): Strengthen local "map" from
25059 const line_map * to const line_map_ordinary *.
25060 (dump_location_info): Strengthen locals "map" from
25061 line_map *, one to const line_map_ordinary *, the other
25062 to const line_map_macro *.
25063 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
25064 const line_map * to const line_map_macro *.
25065 (maybe_unwind_expanded_macro_loc): Add a call to
25066 linemap_check_macro when writing to the "map" field of the
25068 Introduce local const line_map_ordinary * "ord_map", using it in
25069 place of "map" in the part of the function where we know we have
25070 an ordinary map. Strengthen local "m" from const line_map * to
25071 const line_map_ordinary *.
25073 2015-05-19 Nick Clifton <nickc@redhat.com>
25076 * config/msp430/msp430.md (zero_extendhisi2): Add support for
25077 separate source and destination registers.
25079 2015-05-19 Richard Biener <rguenther@suse.de>
25081 PR tree-optimization/66165
25082 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
25083 for no load permutation.
25085 PR tree-optimization/66185
25086 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
25087 when building the SLP node from scalars.
25089 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
25090 Tristan Gingold <gingold@adacore.com>
25092 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
25093 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
25094 (expand_stack_restore): Call record_new_stack_level.
25095 (expand_stack_save): Do not call do_pending_stack_adjust.
25096 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
25097 * calls.c (expand_call): Call record_new_stack_level for alloca.
25098 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
25099 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
25100 (update_sjlj_context): New global function.
25101 * except.h (update_sjlj_context): Declare.
25102 * explow.c (record_new_stack_level): New global function.
25103 (allocate_dynamic_stack_space): Call record_new_stack_level.
25104 * explow.h (record_new_stack_level): Declare.
25105 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
25106 * cfgrtl.c (duplicate_insn_chain): Likewise.
25108 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25110 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
25111 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
25112 STACK_GROWS_DOWNWARD as normal if.
25113 (expand_call): Likewise.
25115 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
25118 * config/sh/sh.md (*round_int_even): New insn_and_split and
25119 accompanying new unnamed split.
25121 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25123 * bitmap.c (bitmap_set_range): Handle count==1 specially.
25124 (bitmap_clear_range): Likewise.
25125 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
25126 bitmap_set_range unconditionally.
25127 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25128 * df-scan.c (df_mark_reg): Likewise.
25129 * haifa-sched.c (setup_ref_regs): Likewise.
25130 * sched-rgn.c (update_live_1): Likewise.
25132 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25134 * regs.h (END_HARD_REGNO): Delete.
25135 (END_REGNO): Move to...
25137 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
25138 * caller-save.c (mark_set_regs): Likewise.
25139 * combine.c (move_deaths, distribute_notes): Likewise.
25140 * cse.c (invalidate, invalidate_for_call): Likewise.
25141 * df-scan.c (df_ref_record): Likewise.
25142 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
25143 (record_last_reg_set_info): Likewise.
25144 * reg-stack.c (convert_regs_exit): Likewise.
25145 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
25146 * resource.c (update_live_status): Likewise.
25147 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
25149 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25151 * rtl.h (reg_info): Add an nregs field.
25152 (REG_NREGS): Use it.
25153 (SET_REGNO_RAW): Delete.
25154 (set_regno_raw): New function.
25155 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
25156 (END_REGNO): Redefine in terms of REG_NREGS.
25157 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
25159 * emit-rtl.c (set_mode_and_regno): Likewise.
25160 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
25161 instead of SET_REGNO_RAW.
25163 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25165 * rtl.h (PUT_MODE_RAW): New macro.
25166 (PUT_REG_NOTE_KIND): Use it.
25167 (set_mode_and_regno): Declare.
25168 (gen_raw_REG): Change regno to "unsigned int".
25169 (gen_rtx_REG): Change "unsigned" to "unsigned int".
25170 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
25171 use set_mode_and_regno to change the mode of registers.
25172 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
25173 * emit-rtl.c (set_mode_and_regno): New function.
25174 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
25175 * caller-save.c (reg_save_code): Use set_mode_and_regno.
25176 * expr.c (init_expr_target): Likewise.
25177 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25178 * postreload.c (reload_cse_simplify_operands): Likewise.
25180 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25182 * caller-save.c (init_caller_save): Use word_mode and
25183 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
25184 * expr.c (init_expr_target): Likewise.
25185 * ira.c (setup_prohibited_mode_move_regs): Likewise.
25186 * postreload.c (reload_cse_regs_1): Likewise.
25188 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25190 * rtl.def (REG): Change format to "r".
25191 * rtl.h (rtunion): Remove rt_reg.
25192 (reg_info): New structure.
25193 (rtx_def): Add reg field to main union.
25194 (X0REGATTR): Delete.
25195 (REG_CHECK): New macro.
25196 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
25197 * rtl.c (rtx_format): Document "r".
25198 (rtx_code_size): Handle REG specially.
25199 * gengenrtl.c (special_format): Return true for formats
25201 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
25202 Deal with REG_ATTRS after the field loop.
25203 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
25204 * expmed.c (init_expmed): Call gen_raw_REG instead of
25206 * expr.c (init_expr_target): Likewise.
25207 * regcprop.c (maybe_mode_change): Likewise.
25208 * varasm.c (make_decl_rtl): Likewise.
25209 * final.c (leaf_renumber_regs_insn): Return early after
25211 * genemit.c (gen_exp): Handle 'r' fields.
25212 * genpeep.c (match_rtx): Likewise.
25213 * gensupport.c (subst_pattern_match): Likewise.
25214 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
25215 (alter_constraints, subst_dup): Likewise.
25216 * read-rtl.c (read_rtx_code): Likewise.
25217 * print-rtl.c (print_rtx): Likewise.
25218 * genrecog.c (find_operand, find_matching_operand): Likewise.
25219 (validate_pattern, match_pattern_2): Likewise.
25220 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
25221 (rtx_test::regno_field): New function.
25222 (operator ==, safe_to_hoist_p, transition_parameter_type)
25223 (parameter_type_string, print_parameter_value)
25224 (print_nonbool_test, print_test): Handle new enum values.
25225 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
25226 * lra-constraints.c (operands_match_p): Likewise.
25228 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25230 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
25231 Change type of new_regno to unsigned int.
25232 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
25233 new_regno to unsigned int.
25234 (df_ref_change_reg_with_loc): Remove old_regno parameter.
25235 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
25236 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
25237 (SET_REGNO_RAW): Add space after ",".
25239 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25241 * rtl.h (REG_NREGS): New macro
25242 * alias.c (record_set): Use it.
25243 * cfgcleanup.c (mark_effect): Likewise.
25244 * combine.c (likely_spilled_retval_1): Likewise.
25245 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
25246 (move_deaths, distribute_notes): Likewise.
25247 * cselib.c (cselib_record_set): Likewise.
25248 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
25249 * df-scan.c (df_mark_reg): Likewise.
25250 * dse.c (look_for_hardregs): Likewise.
25251 * dwarf2out.c (reg_loc_descriptor): Likewise.
25252 (multiple_reg_loc_descriptor): Likewise.
25253 * expr.c (write_complex_part, read_complex_part): Likewise.
25254 (emit_move_complex): Likewise.
25255 * haifa-sched.c (setup_ref_regs): Likewise.
25256 * ira-lives.c (mark_hard_reg_live): Likewise.
25257 * lra.c (lra_set_insn_recog_data): Likewise.
25258 * mode-switching.c (create_pre_exit): Likewise.
25259 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
25260 (reload_combine_recognize_pattern): Likewise.
25261 (reload_combine_note_use, move2add_record_mode): Likewise.
25262 (reload_cse_move2add): Likewise.
25263 * reg-stack.c (subst_stack_regs_pat): Likewise.
25264 * regcprop.c (kill_value, copy_value): Likewise.
25265 (copyprop_hardreg_forward_1): Likewise.
25266 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
25267 (build_def_use): Likewise.
25268 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
25269 (deps_analyze_insn): Likewise.
25270 * sched-rgn.c (check_live_1, update_live_1): Likewise.
25271 * sel-sched.c (count_occurrences_equiv): Likewise.
25272 * valtrack.c (dead_debug_insert_temp): Likewise.
25274 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
25276 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
25277 * dse.c (note_add_store): Likewise.
25278 * ira-lives.c (mark_hard_reg_dead): Likewise.
25279 * loop-invariant.c (mark_reg_store): Likewise.
25280 (mark_reg_death): Likewise.
25281 * postreload.c (reload_combine): Likewise.
25282 (reload_combine_note_store): Likewise.
25283 (reload_combine_note_use): Likewise.
25284 * recog.c (peep2_reg_dead_p): Likewise.
25286 2015-05-19 Alan Modra <amodra@gmail.com>
25288 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
25289 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
25290 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
25292 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
25293 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
25294 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
25295 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
25297 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
25299 * config/mips/mips.md (JOIN_MODE): New mode iterator.
25300 (join2_load_Store<JOIN_MODE:mode>): New pattern.
25301 (join2_loadhi): Likewise.
25302 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
25303 load-load and store-stores.
25304 * config/mips/mips.opt (mload-store-pairs): New option.
25305 (TARGET_LOAD_STORE_PAIRS): New macro.
25306 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
25307 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
25308 * config/mips/mips.c (mips_load_store_bonding_p): New function.
25310 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
25312 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
25314 * dojump.c (do_compare_rtx_and_jump): Likewise.
25315 * expmed.c (emit_store_flag_1): Likewise.
25316 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
25317 * final.c (sprint_ul): Use std::reverse for reversing a string.
25318 * fold-const.c (extract_muldiv_1): Use std::swap.
25319 * genmodes.c (emit_mode_int_n): Likewise.
25320 * ifcvt.c (dead_or_predicable): Likewise.
25321 * ira-build.c (ira_merge_live_ranges): Likewise.
25322 (swap_allocno_copy_ends_if_necessary): Likewise.
25323 * ira.c (ira_setup_alts): Likewise.
25324 * loop-iv.c (iv_analyze_expr): Likewise.
25325 (implies_p): Likewise.
25326 (canon_condition): Likewise.
25327 * lra-constraints.c (swap_operands): Likewise.
25328 * lra-lives.c (lra_merge_live_ranges): Likewise.
25329 * omega.c (swap): Remove.
25331 (omega_unprotect_1): Use std::swap.
25332 (omega_solve_geq): Likewise.
25333 * optabs.c (expand_binop_directly): Likewise.
25334 (expand_binop): Likewise.
25335 (emit_conditional_move): Likewise.
25336 (emit_conditional_add): Likewise.
25337 * postreload.c (reload_cse_simplify_operands): Likewise.
25338 * reg-stack.c (emit_swap_insn): Likewise.
25339 (swap_to_top): Likewise.
25340 (compare_for_stack_reg): Likewise.
25341 (subst_asm_stack_regs): Likewise.
25342 * reload.c (find_reloads): Likewise.
25343 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
25344 * sel-sched.c (invoke_reorder_hooks): Likewise.
25345 (create_block_for_bookkeeping): Likewise.
25346 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
25347 (lambda_matrix_right_hermite): Use std::swap.
25348 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
25349 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
25350 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
25351 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
25352 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
25353 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
25354 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
25355 * tree-vrp.c (compare_ranges): Likewise.
25356 * var-tracking.c (add_with_sets): Likewise.
25357 (vt_find_locations): Likewise.
25359 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
25361 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
25363 (FBSD_ENDFILE_SPEC): Likewise.
25364 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
25365 config/freebsd-spec.h.
25366 (ENDFILE_SPEC): Likewise.
25368 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
25369 Richard Henderson <rth@redhat.com>
25372 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
25373 Check for a memory location that is not a reference (using an AND)
25374 to an unaligned location here.
25375 * config/alpha/predicates.md (normal_memory_operand): Remove.
25377 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
25379 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
25380 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
25382 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
25384 * config/mips/mips.c (micromips_globals): New variable.
25385 (mips_set_compression_mode): Save and reinitialize target-dependent
25386 state for microMIPS.
25388 2015-05-18 Martin Liska <mliska@suse.cz>
25390 * dbgcnt.def: Add new counter.
25391 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
25393 2015-05-18 Martin Liska <mliska@suse.cz>
25395 * dbgcnt.def: Sort counters.
25396 * opts.c (common_handle_option): Do not compile if
25397 -fdbg-cnt-list is enabled.
25399 2015-05-18 Tom de Vries <tom@codesourcery.com>
25401 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
25402 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
25403 address operator to va_list operand.
25404 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
25406 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
25408 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
25409 * config/s390/s390.c (s390_gimplify_va_arg): Same.
25410 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
25412 2015-05-18 Tom de Vries <tom@codesourcery.com>
25414 * tree-ssa-tail-merge.c: Fix whitespace.
25416 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
25418 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
25419 cortex-a17, and cortex-a17.cortex-a7.
25421 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
25424 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
25426 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
25429 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
25430 QImode inner modes for TARGET_AVX512BW. Force mask operand
25431 to a register for AVX512F modes.
25433 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25435 * toplev.c (emit_debug_global_declarations): Do not output debug info
25436 when doing slim LTO objects.
25438 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25440 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
25441 odr_types_equivalent_p): Declare.
25442 (odr_type_p): Use gcc_checking_assert.
25443 (type_in_anonymous_namespace_p) Declare.
25444 (type_with_linkage_p): Declare.
25445 * common.opt (Wlto-type-mismatch): New warning.
25446 * ipa-devirt.c (compound_type_base): New function.
25447 (odr_or_derived_type_p): New function.
25448 (odr_types_equivalent_p): New function.
25449 (add_type_duplicate): Simplify.
25450 (type_with_linkage_p): Add hack to prevent false positives on C types
25451 (type_in_anonymous_namespace_p): Likewise.
25452 * tree.c (need_assembler_name_p): Use type_with_linkage.
25453 * tree.h (type_in_anonymous_namespace_p): Remove.
25454 * doc/invoke.texi (-Wlto-type-mismatch): Document
25456 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
25458 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
25459 (verify_type): Verify STRING_FLAG.
25461 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
25464 * tree-pretty-print.c (percent_K_format): Replace locus pointer
25465 with accessor function.
25466 * tree-diagnostic.c (diagnostic_report_current_function): Use
25467 diagnostic_location function.
25468 (maybe_unwind_expanded_macro_loc): Likewise.
25469 (virt_loc_aware_diagnostic_finalizer): Likewise.
25470 (default_tree_printer): Replace locus pointer with accessor function.
25471 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
25472 (diagnostic_set_info_translated): Initialize second location.
25473 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
25474 (diagnostic_show_locus): Handle two locations. Call
25475 diagnostic_print_caret_line.
25476 (diagnostic_print_caret_line): New.
25477 (default_diagnostic_starter): Use diagnostic_location function.
25478 (diagnostic_report_diagnostic): Use diagnostic_location function.
25479 (verbatim): Do not set text.locus.
25480 * diagnostic.h (struct diagnostic_info): Remove location field.
25481 (struct diagnostic_context): Make caret_chars an array of two.
25482 (diagnostic_location): New inline.
25483 (diagnostic_expand_location): Handle two locations.
25484 (diagnostic_same_line): New inline.
25485 (diagnostic_print_caret_line): Declare.
25486 (CARET_LINE_MARGIN): New constant.
25487 * pretty-print.c (pp_printf): Do not set text.locus.
25488 (pp_verbatim): Do not set text.locus.
25489 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
25490 (struct text_info): Replace locus pointer with locations
25491 array. Add accessor functions.
25493 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
25494 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25497 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
25498 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
25499 large constants in register instead of splitting them.
25501 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
25504 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
25505 replacements in memory addresses.
25506 (get_unaligned_address): Ditto.
25508 2015-05-16 James Bowman <james.bowman@ftdichip.com>
25510 * config/ft32/*: New files for FT32 port.
25511 * doc/install.texi: Add FT32 information.
25512 * doc/invoke.texi: Add FT32 information.
25513 * doc/md.texi: Add FT32 information.
25514 * doc/contrib.texi: Self added.
25516 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
25518 PR tree-optimization/64454
25519 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
25520 (-1 - A -> ~A): Remove unnecessary condition.
25522 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
25524 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
25525 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
25526 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
25528 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
25530 * ipa-chkp.h (chkp_wrap_function): New.
25531 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
25532 (chkp_wrap_function_name): New.
25533 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
25534 to get wrapper name.
25535 * lto-cgraph.c: Include ipa-chkp.h.
25536 (input_cgraph_1): Avoid alias chain for wrappers.
25538 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
25540 PR middle-end/66134
25541 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
25542 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
25544 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25546 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
25547 (AARCH64_FL_SLOWMUL): Delete.
25548 (AARCH64_FL_CRC): Redefine to 1<<3.
25549 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
25551 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25553 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
25556 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
25558 * config/alpha/alpha.md (extendqidi2): Use general_operand
25559 instead of some_operand for operand[1] predicate.
25560 (extendhidi2): Ditto.
25561 (cbranchdi4): Use general_operand instead of some_operand
25562 for operand[1] and operands[2] predicates.
25563 (cstoredi4): Ditto.
25564 * config/alpha/predicates.md (some_operand): Remove unused predicate.
25565 (some_ni_operand): Ditto.
25567 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
25569 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
25570 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
25571 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
25572 low part of the constant using alpha_emit_set_const_1.
25573 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
25575 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
25577 * varasm.c (output_constant_pool_1): Pass down alignment from
25578 constant pool entry's descriptor to output_constant_pool_2.
25579 (output_object_block): Add comment prior to call to
25580 output_constant_pool_1.
25582 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
25584 PR rtl-optimization/65862
25585 * target.def (ira_change_pseudo_allocno_class): New hook.
25586 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
25588 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
25589 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
25591 * ira-costs.c (find_costs_and_classes): Call the hook and change
25592 classes when it is necessary.
25593 * doc/tm.texi: Update.
25595 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
25597 * config/i386/i386.md (sibcall_memory): Check that register with
25598 callee address is not also used as one of the arguments, instead
25599 of checking that it is not live after the sibcall.
25600 (sibcall_pop_memory): Ditto.
25601 (sibcall_value_memory): Ditto.
25602 (sibcall_value_pop_memory): Ditto.
25604 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
25606 * generic-match-head.c (types_match): Handle non-types.
25607 * gimple-match-head.c (types_match): Likewise.
25608 * match.pd: Remove unnecessary TREE_TYPE for types_match.
25610 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
25612 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
25613 (csneg3<mode>_insn): Enable expansion of pattern.
25615 2015-05-14 Nick Clifton <nickc@redhat.com>
25617 * config/rl78/rl78.c (rl78_select_section): Select the correct
25618 default section based upon the category of the decl.
25620 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
25622 PR rtl-optimization/30967
25623 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
25624 destination mode for the cost of scc patterns.
25626 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
25628 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
25629 using SWIM248 mode iterator.
25630 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
25631 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
25632 for operand[2] constraint.
25633 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
25635 2015-05-13 Jakub Jelinek <jakub@redhat.com>
25637 PR middle-end/66133
25638 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
25639 make sure it is never noreturn, even when the task body does not
25641 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
25642 right before GIMPLE_OMP_RETURN.
25643 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
25644 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
25645 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
25647 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25649 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
25650 * tree-ssa-math-opts.c: Include params.h
25651 (pow_synth_sqrt_info): New struct.
25652 (representable_as_half_series_p): New function.
25653 (get_fn_chain): Likewise.
25654 (print_nested_fn): Likewise.
25655 (dump_fractional_sqrt_sequence): Likewise.
25656 (dump_integer_part): Likewise.
25657 (expand_pow_as_sqrts): Likewise.
25658 (gimple_expand_builtin_pow): Use above to attempt to expand
25659 pow as series of square roots. Removed now unused variables.
25661 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
25663 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
25664 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
25665 Remove *p0 and *p1 arguments. Rewrite function.
25666 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
25667 (alpha_split_const_mov): Update calls to alpha_extract_integer and
25668 alpha_emit_set_long_const.
25669 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
25670 (alpha_output_mi_thunk_osf): Ditto.
25671 * config/alpha/alpha.md (movti): Do not check operands[1]
25674 2015-05-13 Richard Biener <rguenther@suse.de>
25676 PR tree-optimization/66129
25677 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
25679 (vect_schedule_slp_instance): Fix typo.
25681 2015-05-13 David Malcolm <dmalcolm@redhat.com>
25683 * common.opt (fdump-internal-locations): New option.
25684 * input.c: Include diagnostic-core.h.
25685 (get_end_location): New function.
25686 (write_digit): New function.
25687 (write_digit_row): New function.
25688 (dump_location_range): New function.
25689 (dump_labelled_location_range): New function.
25690 (dump_location_info): New function.
25691 * input.h (dump_location_info): New prototype.
25692 * toplev.c (compile_file): Handle flag_dump_locations.
25694 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
25696 * gimple-expr.h (is_gimple_constant): Reorder.
25697 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
25699 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
25701 * combine.c (simplify_set): When generating a CC set, if the
25702 source already is in the correct mode, do not wrap it in a
25703 compare. Simplify the rest of that code.
25705 2015-05-13 Richard Biener <rguenther@suse.de>
25707 PR tree-optimization/66123
25708 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
25711 2015-05-13 Richard Biener <rguenther@suse.de>
25713 PR middle-end/66110
25714 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
25716 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
25718 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
25720 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
25721 * aclocal.m4: Regenerated with automake-1.11.6.
25723 2015-05-13 Tom de Vries <tom@codesourcery.com>
25725 PR tree-optimization/66010
25726 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
25727 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
25728 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
25729 and rval based on do_deref.
25731 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
25734 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
25735 link time constants into adress expressions and therefore set
25738 2015-05-13 Jakub Jelinek <jakub@redhat.com>
25741 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
25742 Use SWI248 iterator instead of SWI.
25743 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
25744 Use eq_attr "alternative" "0" instead of match_test in
25745 length_immediate attribute computation.
25746 (*mulvhi4, *mulvhi4_1): New define_insns.
25749 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
25750 SIGNED to get precision of non-negative value.
25752 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
25755 * function.c (diddle_return_value_1): Process bounds first.
25756 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
25759 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
25761 PR rtl-optimization/64616
25762 * loop-invariant.c (can_move_invariant_reg): New.
25763 (move_invariant_reg): Call above new function to decide whether
25764 instruction can just be moved, skipping creation of temporary
25767 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25769 PR target/pr66047.c
25770 * i386.c (ix86_function_sseregparm): Only return -1 if local function
25771 with implied regparm is called from -mno-sse function.
25772 (init_cumulative_args): Output error if ix86_function_sseregparm
25773 return -1 and SSE register would be needed.
25774 (function_arg_advance_32): Likewise.
25775 (function_arg_32): Likewise.
25776 * i386.h (ix86_args): Add decl field.
25778 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25781 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
25782 inlines across optimization boundary.
25784 2015-05-12 Jason Merrill <jason@redhat.com>
25786 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
25787 string literal and macro name.
25789 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
25791 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
25792 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
25793 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
25795 2015-05-12 David Malcolm <dmalcolm@redhat.com>
25797 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
25798 (-Wmisleading-indentation): New option.
25799 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
25801 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
25803 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
25804 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
25805 (alpha_extract_integer): Ditto.
25806 (alpha_legitimate_constant_p): Ditto.
25807 (alpha_split_tmode_pair): Ditto.
25808 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
25809 (alpha_expand_mov): Ditto.
25810 (print_operand): Remove handling of 'H' modifier.
25811 <case 'm'>: Remove CONST_DOUBLE handling.
25812 (summarize_insn): Handle CONST_WIDE_INT.
25813 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
25815 (movti): Handle CONST_WIDE_INT.
25816 * config/alpha/constraints.md ('H'): Remove constraint definition.
25817 ('G'): Do not match MODE_FLOAT class.
25818 * config/alpha/predicates.md (const0_operand): Also match
25820 (non_add_const_operand): Ditto.
25821 (non_zero_const_operand): Ditto.
25822 (some_operand): Ditto.
25823 (input_operand): Ditto. Handle CONST_WIDE_INT.
25824 (and_operand): Do not match const_double.
25825 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
25827 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
25830 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
25831 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
25832 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
25833 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
25834 is_mm_seq_cst, is_mm_sync): New accessor functions.
25835 * builtins.c (expand_builtin_sync_operation,
25836 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
25837 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
25838 (get_memmodel, expand_builtin_atomic_compare_exchange,
25839 expand_builtin_atomic_load, expand_builtin_atomic_store,
25840 expand_builtin_atomic_clear): Use new accessor routines.
25841 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
25842 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
25843 (maybe_emit_sync_lock_test_and_set): Use new accessors and
25844 MEMMODEL_SYNC_ACQUIRE.
25845 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
25846 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
25847 expand_atomic_store): Use new accessors.
25848 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
25849 * tsan.c (instrument_builtin_call): Update check for memory model beyond
25850 final enum to use MEMMODEL_LAST.
25851 * c-family/c-common.c: Use new accessor for memmodel_base.
25852 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
25854 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
25855 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
25856 mem_thread_fence, *dmb): Likewise.
25857 * config/alpha/alpha.c (alpha_split_compare_and_swap,
25858 alpha_split_compare_and_swap_12): Likewise.
25859 * config/arm/arm.c (arm_expand_compare_and_swap,
25860 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
25861 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
25862 atomic_loaddi): Likewise.
25863 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
25865 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
25866 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
25868 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
25869 atomic_store<mode>, atomic_compare_and_swap<mode>,
25870 atomic_exchange<mode>): Use new accessors.
25871 * config/mips/mips.c (mips_process_sync_loop): Likewise.
25872 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
25873 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
25874 rs6000_post_atomic_barrier): Add new cases.
25875 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
25876 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
25877 (atomic_load<mode>): Add new cases and use new accessors.
25878 (store_quadpti): Add new cases.
25879 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
25881 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
25882 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
25885 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
25887 * ipa-devirt.c (type_with_linkage_p): New function.
25888 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
25890 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
25891 (can_be_name_hashed_p): Simplify.
25892 (hash_odr_name): Check that type has linkage before checking if it is
25894 (types_same_for_odr): Likewise.
25895 (odr_name_hasher::equal): Likewise.
25896 (odr_subtypes_equivalent_p): Likewise.
25897 (warn_types_mismatch): Likewise.
25898 (get_odr_type): Likewise.
25899 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
25900 * ipa-utils.h (odr_type_p): Move offline.
25901 * tree.c (need_assembler_name_p): Fix handling of types
25903 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
25905 2015-05-12 David Malcolm <dmalcolm@redhat.com>
25907 * timevar.c (timevar_enable): Delete in favor of...
25908 (g_timer): New global.
25909 (struct timevar_def): Move to timevar.h inside class timer.
25910 (struct timevar_stack_def): Likewise.
25911 (timevars): Delete global in favor of field "m_timevars" within
25912 class timer in timevar.h
25913 (stack): Likewise, in favor of field "m_stack".
25914 (unused_stack_instances): Likewise, in favor of field
25915 "m_unused_stack_instances".
25916 (start_time): Likewise, in favor of field "m_start_time".
25917 (get_time): Eliminate check for timevar_enable.
25918 (timer::timer): New function, built from part of timevar_init.
25919 (timevar_init): Rewrite idempotency test from using
25920 "timevar_enable" bool to using dynamic allocation of "g_timer".
25921 Move rest of implementation into timer's constructor.
25922 (timevar_push_1): Rename to...
25923 (timer::push): ...this, adding "m_" prefixes to variables that
25924 are now fields of timer.
25925 (timevar_pop_1): Likewise, rename to...
25926 (timer::pop): ...this, and add "m_" prefixes.
25927 (timevar_start): Replace test for "timevar_enable" with one for
25928 "g_timer", and move bulk of implementation to...
25929 (timer::start): ...here, adding "m_" prefixes.
25930 (timevar_stop): Likewise, from here...
25931 (timer::stop): ...to here.
25932 (timevar_cond_start): Likewise, from here...
25933 (timer::cond_start): ...to here.
25934 (timevar_cond_stop): Likewise, from here...
25935 (timer::cond_stop): ...to here.
25936 (validate_phases): Rename to...
25937 (timer::validate_phases): ...this, and add "m_" prefixes. Make
25938 locals "total" and "tv" const.
25939 (timevar_print): Rename to...
25940 (timer::print): ...this, and add "m_" prefixes. Make locals
25941 "total" and "tv" const. Eliminate test for timevar_enable.
25942 * timevar.h (timevar_enable): Eliminate.
25943 (g_timer): New declaration.
25944 (timevar_push_1): Eliminate.
25945 (timevar_pop_1): Eliminate.
25946 (timevar_print): Eliminate.
25947 (class timer): New class.
25948 (timevar_push): Rewrite to use g_timer.
25949 (timevar_pop): Likewise.
25950 * toplev.c (toplev::~toplev): Likewise.
25952 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
25954 * arm-protos.h (arm_sched_autopref): Delete.
25955 (tune_params): Re-organize, use enums for flag values.
25956 (FUSE_OPS): New macro.
25957 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
25958 (ARM_PREFETCH_BENEFICIAL): Likewise.
25959 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
25960 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
25961 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
25962 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
25963 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
25964 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
25965 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
25966 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
25968 (arm_option_override, thumb2_reorg, arm_print_tune_info)
25969 (aarch_macro_fusion_pair_p): Update uses of current_tune.
25970 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
25972 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
25974 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
25977 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
25978 Sandra Loosemore <sandra@codesourcery.com>
25980 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
25982 (REG_CLASS_NAMES): Add "IJMP_REGS".
25983 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
25984 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
25985 use new "c" register constraint.
25986 * config/nios2/constraint.md (c): New register constraint
25987 corresponding to IJMP_REGS.
25989 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
25991 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
25992 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
25993 define_splits): Delete, revamp, transmogrify into ...
25994 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
25995 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
25996 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
25999 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26001 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
26002 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
26004 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26006 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
26007 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
26008 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
26009 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
26010 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
26011 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
26012 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
26013 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
26014 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
26015 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
26016 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
26017 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
26018 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
26019 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
26020 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
26021 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
26022 and 30 corresponding splitters): Delete.
26024 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26026 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
26029 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26031 * combine.c (recog_for_combine_1): New function, factored out
26032 from recog_for_combine.
26033 (change_zero_ext): New function.
26034 (recog_for_combine): If recog fails, try again with the pattern
26035 modified by change_zero_ext; if that still fails, restore the
26038 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
26040 * combine.c (get_undo_marker): New function.
26041 (undo_to_marker): New function, largely factored out from ...
26042 (undo_all): ... this. Adjust.
26044 2015-05-12 Richard Biener <rguenther@suse.de>
26046 PR tree-optimization/66101
26047 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
26048 fixup if we turn a loop exit edge to a fallthru edge.
26050 2015-05-12 Richard Biener <rguenther@suse.de>
26052 PR tree-optimization/37021
26053 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
26054 (SLP_TREE_TWO_OPERATORS): New define.
26055 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
26056 SLP_TREE_TWO_OPERATORS.
26057 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
26059 (vect_build_slp_tree): Adjust.
26060 (vect_analyze_slp_cost_1): Likewise.
26061 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
26062 emitting two vector stmts and mixing the results.
26064 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
26066 * call.c (print_z_candidates): Remove dead code.
26068 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26070 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
26071 and zEC12_simple_fp.
26072 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
26075 2015-05-12 Tom de Vries <tom@codesourcery.com>
26077 PR tree-optimization/66010
26078 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
26080 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
26081 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
26082 va_lists are passed, and remove corresponding handling.
26083 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
26084 do_deref argument to ifn_va_arg.
26085 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
26088 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26091 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
26092 REG before taking its REGNO.
26094 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26096 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
26097 rsp->sign_bit_copies and rsp->nonzero_bits into ...
26098 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
26099 present to get more accurate information about the number of sign bit
26100 copies and non zero bits.
26102 2015-05-12 Richard Biener <rguenther@suse.de>
26104 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
26105 do not allow unrolling.
26107 2015-05-11 Richard Henderson <rth@redhat.com>
26109 * config/i386/i386-modes.def (CCP): New.
26110 * config/i386/i386.c (put_condition_code): Handle it.
26111 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
26113 2015-05-11 Richard Henderson <rth@redhat.com>
26115 * target.def (md_asm_clobbers): Replace with...
26116 (md_asm_adjust): this.
26117 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
26118 (TARGET_MD_ASM_ADJUST): New.
26119 * tm.texi: Rebuild.
26120 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
26121 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
26122 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
26124 * cfgexpand.c (check_operand_nalternatives): Accept vector of
26125 constraints instead of lists of outputs and inputs.
26126 (expand_asm_stmt): Save and restore input_location around the
26127 body of the function. Move asm data into vectors instead of
26128 building tree lists. Generate cleanup sequences as needed,
26129 rather than waiting til the end. Use new md_asm_adjust hook.
26131 * config/vxworks.c: Include vec.h before target.h.
26132 * gimple.c: Likewise.
26133 * incpath.c: Likewise.
26134 * mode-switching.c: Likewise.
26136 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
26137 (cris_md_asm_adjust): this.
26138 (TARGET_MD_ASM_CLOBBERS): Remove.
26139 (TARGET_MD_ASM_ADJUST): New.
26140 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
26141 (ix86_md_asm_adjust): this.
26142 (TARGET_MD_ASM_CLOBBERS): Remove.
26143 (TARGET_MD_ASM_ADJUST): New.
26144 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
26145 (mn10300_md_asm_adjust): this.
26146 (TARGET_MD_ASM_CLOBBERS): Remove.
26147 (TARGET_MD_ASM_ADJUST): New.
26148 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
26149 (rs6000_md_asm_adjust): this.
26150 (TARGET_MD_ASM_CLOBBERS): Remove.
26151 (TARGET_MD_ASM_ADJUST): New.
26152 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
26153 (visium_md_asm_adjust): this.
26154 (TARGET_MD_ASM_CLOBBERS): Remove.
26155 (TARGET_MD_ASM_ADJUST): New.
26157 2015-05-11 Richard Henderson <rth@redhat.com>
26159 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
26160 if noutputs is zero.
26161 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
26163 * cfgexpand.c (expand_asm_operands): Merge into...
26164 (expand_asm_stmt): ... here.
26166 * cfgexpand.c (expand_asm_operands): Don't call
26167 resolve_asm_operand_names.
26168 * stmt.c (resolve_asm_operand_names): Clarify block comment.
26170 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
26172 * dwarf2out.c (gen_member_die): Sanity check that we access
26173 TYPE_MAIN_VARIANT for TYPE_METHODS.
26174 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
26175 checking TYPE_METHODS.
26176 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
26178 (build_distinct_type_copy): Clear TYPE_METHODS.
26179 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
26180 (verify_type): Allow TYPE_METHODS to be error_mark_node.
26181 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
26183 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
26185 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
26186 (emit_pattern_before_setloc): Likewise.
26188 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
26190 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
26191 for define_peephole2s.
26192 (get_peephole2_pattern): New function.
26193 (main): Use it. Call validate_pattern.
26195 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
26197 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
26198 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
26199 (Last callee saved reg is different for AVR_TINY architecture)
26201 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
26203 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
26204 when looking for memory references.
26206 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
26209 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
26210 via function pointers.
26212 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
26214 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
26215 indirect call by forcing address into a pseudo with -fno-plt.
26216 * common.opt (flag_plt): New option.
26217 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
26218 ([-fno-plt]): Document.
26220 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
26223 * config/rs6000/option-defaults.h: Add space between string literal
26226 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
26228 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
26229 accross ARM targets.
26231 2015-05-11 Christian Bruel <christian.bruel@st.com>
26233 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
26234 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
26236 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
26238 PR rtl-optimization/66076
26239 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
26240 Don't grow the heap array if it is already big enough from a
26241 previous iteration.
26243 2015-05-11 Christian Bruel <christian.bruel@st.com>
26245 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
26246 (is_called_in_ARM_mode): Remove.
26247 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
26248 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
26249 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
26250 arm_declare_function_name.
26252 2015-05-11 Christian Bruel <christian.bruel@st.com>
26254 * config/arm/arm.c (arm_option_override): Reoganized and split into :
26255 (arm_option_params_internal); New function.
26256 (arm_option_check_internal): New function.
26257 (arm_option_override_internal): New function.
26258 (thumb_code, thumb1_code): Remove.
26259 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
26260 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
26261 (thumb_code, thumb1_code): Remove.
26262 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
26264 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
26266 * config/alpha/alpha.c (alpha_emit_set_const_1)
26267 (alpha_emit_set_long_const, alpha_extract_integer)
26268 (alpha_legitimate_constant_p, alpha_split_const_mov)
26269 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
26270 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26271 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
26273 * config/alpha/predicates.md (mode_mask_operand): Do not match
26275 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26276 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
26277 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
26278 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
26279 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
26281 2015-05-11 Jakub Jelinek <jakub@redhat.com>
26284 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
26285 default_binds_local_p_2.
26286 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
26287 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
26289 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26291 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
26293 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26295 Patch by Richard Biener
26296 * coverage.c (coverage_obj_init): Delay building of type variant
26297 until the type is finished.
26299 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26301 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
26302 mismatch between C and C++ type; compoare correctly ARG_TYPES
26303 for non-prototypes and output correctly parameter index for METHOD_TYPE.
26304 (odr_types_equivalent_p): Fix wording of warning about attributes;
26305 it is OK to match prototype and non-prototype.
26307 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26309 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
26310 TYPE_ARG_TYPES list.
26311 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
26312 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
26314 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
26316 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
26317 * tree.h (is_lang_specific): Constify.
26319 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
26321 PR tree-optimization/64454
26322 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
26325 2015-05-08 Jason Merrill <jason@redhat.com>
26327 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
26328 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
26329 config/darwin.h, config/darwin9.h, config/elfos.h,
26330 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
26331 config/microblaze/microblaze.h, config/mips/mips.h,
26332 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
26333 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
26334 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
26335 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
26336 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
26337 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
26338 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
26339 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
26340 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
26341 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
26342 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
26343 between string literal and macro name.
26345 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26347 * jump.c: Change argument types to rtx_insn *.
26350 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26352 * lra-constraints.c: Change argument type to rtx_insn *.
26354 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26356 * df-problems.c: Change argument type to rtx_insn *.
26358 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26360 * combine.c: Change argument type to rtx_insn *.
26362 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26365 * rtlanal.c: Change argument type to rtx_insn *.
26367 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26369 * sched-deps.c: Change argument types to rtx_insn *.
26370 * sched-int.h: Adjust.
26372 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26374 * dwarf2cfi.c: Change argument type to rtx_insn *.
26376 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26378 * ira.c (decrease_live_ranges_number): Changetype of local
26379 variable to rtx_insn *.
26380 * recog.c: Change argument types to rtx_insn *.
26383 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26385 * reorg.c: Change argument types to rtx_insn *.
26387 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26389 * ira-color.c: Change argument types to rtx_insn *.
26390 * lra-eliminations.c: Likewise.
26393 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26395 * gcse.c: Change argument types to rtx_insn *.
26397 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26399 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
26401 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26403 * emit-rtl.c (emit_debug_insn_before): Change argument type to
26407 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26409 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
26412 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26414 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
26417 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26419 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
26422 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26424 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
26427 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26429 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
26433 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26435 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
26439 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26441 * except.c (can_nonlocal_goto): Change type of argument to
26445 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26447 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
26450 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26452 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
26453 * cfgrtl.c (can_delete_label_p): Adjust.
26456 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26458 * reorg.c (stop_search_p): Change argument to rtx_insn *.
26460 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26462 * except.c (make_reg_eh_region_note): Change argument to
26464 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
26465 * except.h: Adjust.
26467 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26469 * mode-switching.c (commit_mode_sets): Change type of local
26470 variable from rtx to rtx_insn *.
26472 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
26474 * doc/install.texi (--enable-languages): Add missing jit and lto info.
26475 Add ^ to grep command.
26476 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
26477 arg to last gimple_simplify declaration. Add missing gimple_build
26478 declaration for built-in function case with four tree args.
26480 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
26481 Szabolcs Nagy <szabolcs.nagy@arm.com>
26483 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
26484 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
26485 (GNU_USER_DYNAMIC_LINKERN32): Update.
26487 2015-05-08 Richard Biener <rguenther@suse.de>
26489 PR tree-optimization/66036
26490 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
26491 Handle strided group loads.
26492 (vect_verify_datarefs_alignment): Likewise.
26493 (vect_enhance_data_refs_alignment): Likewise.
26494 (vect_analyze_group_access): Likewise.
26495 (vect_analyze_data_ref_access): Likewise.
26496 (vect_analyze_data_ref_accesses): Likewise.
26497 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
26498 (vectorizable_load): Likewise.
26500 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
26502 * config/rs6000/rs6000.md: Require operand inequality in one
26505 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
26506 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
26508 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
26510 * config/rx/rx.md (movdi, movdf): Likewise.
26511 Likewise for define_peephole2s.
26513 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26515 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
26516 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
26517 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
26518 vtst_u64): Rewrite using gcc vector extensions.
26520 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26522 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
26523 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
26525 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
26527 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
26529 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
26531 * config/glibc-stdint.h (OPTION_MUSL): Define.
26532 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
26533 Change the definition based on OPTION_MUSL for 64 bit targets.
26534 * config/linux.h (OPTION_MUSL): Redefine.
26535 * config/alpha/linux.h (OPTION_MUSL): Redefine.
26536 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
26537 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
26539 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
26540 Szabolcs Nagy <szabolcs.nagy@arm.com>
26542 * config.gcc (LIBC_MUSL): New tm_defines macro.
26543 * config/linux.h (OPTION_MUSL): Define.
26544 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
26545 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
26546 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
26547 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
26548 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
26549 * config/linux.opt (mmusl): New option.
26550 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
26551 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
26552 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
26553 * configure: Regenerate.
26555 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
26556 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
26559 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
26560 * config/i386/knetbsd-gnu64.h: New file.
26562 2015-05-08 Marek Polacek <polacek@redhat.com>
26565 * doc/invoke.texi: Document -Woverride-init-side-effects.
26567 2015-05-07 Marek Polacek <polacek@redhat.com>
26570 * doc/invoke.texi: Document -Wshift-negative-value.
26572 2015-05-06 Aditya Kumar <hiraditya@msn.com>
26574 * gcov-tool.c (do_merge): Refactore to remove int ret.
26575 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
26576 !type == FUNC to type != FUNC.
26577 * reload.h (struct target_reload): Changee to type of
26578 x_spill_indirect_levels from bool to unsigned char.
26580 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
26582 * rtl.h (always_void_p): New function.
26583 * gengenrtl.c (always_void_p): Likewise.
26584 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
26585 with code foo are always VOIDmode.
26586 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
26587 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
26588 compare-elim.c, config/aarch64/aarch64.c,
26589 config/aarch64/aarch64.md, config/alpha/alpha.c,
26590 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
26591 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
26592 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
26593 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26594 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
26595 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
26596 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
26597 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
26598 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
26599 config/ia64/vect.md, config/iq2000/iq2000.c,
26600 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
26601 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
26602 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
26603 config/mep/mep.c, config/microblaze/microblaze.c,
26604 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
26605 config/mn10300/mn10300.c, config/msp430/msp430.c,
26606 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
26607 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
26608 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
26609 config/rs6000/altivec.md, config/rs6000/rs6000.c,
26610 config/rs6000/rs6000.md, config/rs6000/vector.md,
26611 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
26612 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
26613 config/sh/sh.md, config/sh/sh_treg_combine.cc,
26614 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
26615 config/spu/spu.md, config/stormy16/stormy16.c,
26616 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
26617 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
26618 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
26619 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
26620 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
26621 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
26622 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
26623 var-tracking.c: Update calls accordingly.
26625 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
26628 PR middle-end/54303
26629 * varasm.c (function_mergeable_rodata_prefix): New function.
26630 (mergeable_string_section): Use it.
26631 (mergeable_constant_section): Use it.
26633 2015-05-07 Jeff Law <law@redhat.com>
26636 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26637 simplifier to narrow arithmetic.
26638 * generic-match-head.c: (types_match, single_use): New functions.
26639 * gimple-match-head.c: (types_match, single_use): New functions.
26641 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
26643 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
26646 2015-05-07 Richard Biener <rguenther@suse.de>
26648 PR tree-optimization/66002
26649 * passes.def: Schedule another pass_merge_phi after ifcombine, right
26652 2015-05-07 Marek Polacek <polacek@redhat.com>
26653 Martin Uecker <uecker@eecs.berkeley.edu>
26655 * doc/invoke.texi: Document -fsanitize=bounds-strict.
26656 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
26657 into SANITIZE_NONDEFAULT.
26658 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
26660 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
26663 * config/alpha/alpha.c (alpha_override_options_after_change): New.
26664 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
26665 (alpha_override_options): Move align_loops, align_jumps and
26666 align_functions handling into alpha_override_options_after_change.
26668 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
26669 Chris Jones <chrisj@nvidia.com>
26670 Joshua Conner <jconner@nvidia.com>
26672 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
26673 linking of crtfastmath.o.
26674 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
26676 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
26678 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
26679 (cstore<mode>4_unsigned_imm): New expander.
26680 (cstore<mode>4): Remove empty constraint strings. Use the new
26683 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
26686 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
26689 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
26691 * config/aarch64/geniterators.sh: Use standard BRE in sed.
26693 2015-05-06 Alan Modra <amodra@gmail.com>
26696 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
26697 (UNSPEC_NOP): Define.
26698 (reload_vsx_from_gpr<mode>): Add missing DONE.
26699 (reload_gpr_from_vsx<mode>): Likewise.
26700 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
26701 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
26703 2015-05-06 Christian Bruel <christian.bruel@st.com>
26706 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
26707 align_jumps, align_functions into aarch64_override_options_after_change.
26709 2015-05-06 Richard Biener <rguenther@suse.de>
26711 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
26712 vect_transform_slp_perm_load to check if we support a permutation
26713 for basic-block vectorization.
26715 2015-05-06 Nick Clifton <nickc@redhat.com>
26717 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
26718 used, even if it is not being used as a frame pointer.
26720 2015-05-05 Jason Merrill <jason@redhat.com>
26722 * dwarf2out.c (gen_member_die): Don't emit anything for an
26723 anonymous class constructor.
26725 2015-05-05 David Malcolm <dmalcolm@redhat.com>
26727 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
26728 that it reflects the block structure.
26729 (afdo_propagate_edge): Likewise.
26730 (afdo_calculate_branch_prob): Likewise.
26731 (afdo_annotate_cfg): Likewise.
26732 * cfgcleanup.c (equal_different_set_p): Likewise.
26733 (try_crossjump_to_edge): Likewise.
26734 * cgraph.c (cgraph_node::verify_node): Likewise.
26735 * cgraphunit.c (expand_all_functions): Likewise.
26736 * config/i386/i386.c (ix86_expand_copysign): Likewise.
26737 (exact_dependency_1): Likewise.
26738 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
26739 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
26740 * gensupport.c (process_define_subst): Likewise.
26741 * lto-wrapper.c (merge_and_complain): Likewise.
26742 * tree-if-conv.c (if_convertible_bb_p): Likewise.
26743 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
26744 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
26745 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
26746 * tree-vect-loop.c (vectorizable_reduction): Likewise.
26747 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
26748 * tree-vect-stmts.c (vectorizable_shift): Likewise.
26749 * tree-vrp.c (vrp_finalize): Likewise.
26750 * tree.c (variably_modified_type_p): Likewise.
26752 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
26754 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
26755 on darwin12 and later.
26756 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
26757 file to pass -rdynamic on darwin12 and later.
26758 * config/darwin.opt (rdynamic): Add.
26760 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26762 * doc/extend.texi (C Extensions): Update menu for moved Variable
26763 Attributes and Type Attributes sections.
26765 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26768 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
26769 if rep_8byte stringop strategy was specified for 32-bit target.
26771 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
26774 * config/i386/i386.md (vector convert to float spltiter): Check for
26775 xmm16+, when splitting scalar float conversion.
26776 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
26778 2015-05-05 Nick Clifton <nickc@redhat.com>
26780 * config/msp430/msp430-opts.h (enum msp430_regions): New.
26781 * config/msp430/msp430.c (msp430_override_options): Complain if
26782 -mcode-region or -mdata-region is used on a non MSP430X.
26783 (msp430_section_attr): New function. Checks lower, upper and
26785 (msp430_attribute_table): Add lower, upper and either.
26786 (gen_prefix): New function. Generates a prefix for a section
26788 (msp430_select_section): New function - handles the choice of
26789 section for an object. Takes into account memory region
26790 attributes and options.
26791 (msp430_function_section): Use gen_prefix.
26792 (TARGET_SECTION_TYPE_FLAGS): Define.
26793 (msp430_section_type_flags): New function.
26794 (TARGET_ASM_UNIQUE_SECTION): Define.
26795 (msp430_unique_section): New function.
26796 (msp430_output_aligned_decl_common): New function.
26797 (msp430_do_not_relax_short_jumps): New function.
26798 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
26800 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
26801 * config/msp430/msp430-protos.h
26802 (msp430_do_not_relax_short_jumps): New prototype.
26803 (msp430_output_aligned_decl_common): New prototype.
26804 * config/msp430/msp430.md (length): New attribute.
26805 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
26806 then use a long code sequence for short jumps.
26807 * config/msp430/msp430.opt (mcode-region): New.
26808 (mdata-region): New.
26809 * doc/invoke.texi: Document new options.
26810 * doc/extend.texi: Document new attributes.
26812 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
26814 * config/aarch64-protos.h (struct cpu_branch_cost): New.
26815 (tune_params): Add field branch_costs.
26816 (aarch64_branch_cost): Declare.
26817 * config/aarch64.c (generic_branch_cost): New.
26818 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
26819 (cortexa53_tunings): Likewise.
26820 (cortexa57_tunings): Likewise.
26821 (thunderx_tunings): Likewise.
26822 (xgene1_tunings): Likewise.
26823 (aarch64_branch_cost): Define.
26824 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
26826 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26828 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
26829 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
26830 * config/i386/i386.md: Ditto.
26831 * config/i386/winnt.c: Ditto.
26833 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
26835 * doc/extend.texi (__atomic Builtins): Move implementation details
26836 to the end of the description, rewrite opening paragraphs, state
26837 difference with __sync builtins, state C11/C++11 assumptions,
26838 weaken itemized descriptions, add explanation of memory model
26839 behaviour, expand description of compare-exchange, simplify text.
26841 2015-05-05 Renlin Li <renlin.li@arm.com>
26843 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
26845 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
26847 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
26848 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
26849 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
26850 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
26851 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
26852 * configure: Regenerate.
26853 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
26854 * doc/install.texi (aarch64*-*-*): Document new
26855 --enable-fix-cortex-a53-843419 option.
26856 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
26857 and -mno-fix-cortex-a53-843419 options.
26859 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
26862 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
26864 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
26866 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
26867 fix overactive TYPE_MIN_VALUE check and add FIXME for type
26868 compatibility problems.
26870 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
26872 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
26874 (cbranchsi4_reg): New.
26875 * config/microblaze/microblaze.c
26876 (microblaze_expand_conditional_branch_reg): New.
26877 * config/microblaze/microblaze-protos.h
26878 (microblaze_expand_conditional_branch_reg): New prototype.
26880 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
26882 * config/microblaze/microblaze.md (peephole2): New.
26884 2015-05-04 Jeff Law <law@redhat.com>
26887 2015-05-04 Jeff Law <law@redhat.com>
26889 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26890 simplifier to narrow arithmetic.
26891 * generic-match-head.c: (types_match, single_use): New functions.
26892 * gimple-match-head.c: (types_match, single_use): New functions.
26894 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
26897 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
26898 (split_branches): Likewise.
26900 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
26902 * common.opt (fdelete-null-pointer-checks): Init to -1.
26903 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
26904 override flag_delete_null_pointer_checks default.
26905 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
26906 behavior re address zero. Better document target-specific behavior.
26907 (-fisolate-errneous-paths-dereference): Mention relationship to
26908 -fdelete-null-pointer-checks.
26910 2015-05-04 Jakub Jelinek <jakub@redhat.com>
26912 PR tree-optimization/65984
26913 * ubsan.c: Include tree-cfg.h.
26914 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
26915 stmt_could_throw_p test, rename can_throw variable to ends_bb.
26917 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
26919 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
26920 to CONST_DOUBLE_P predicate.
26921 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
26922 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
26923 allow only operands that satisfy standard_sse_constant_p predicate.
26924 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
26925 to CONST_DOUBLE_P predicate.
26927 2015-05-04 Jeff Law <law@redhat.com>
26929 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
26930 simplifier to narrow arithmetic.
26931 * generic-match-head.c: (types_match, single_use): New functions.
26932 * gimple-match-head.c: (types_match, single_use): New functions.
26934 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
26936 * config/arm/arm.c: Restore bootstrap.
26938 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
26940 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
26941 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
26942 as CONST_WIDE_INT, not CONST_DOUBLE.
26943 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
26944 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
26945 (ix86_find_base_term): Do not check for CONST_DOUBLE.
26946 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
26947 (ix86_build_signbit_mask): Rewrite using wide ints.
26948 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
26949 (ix86_rtx_costs): Handle CONST_WIDE_INT.
26950 (find_constant): Ditto.
26951 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
26952 using gen_int_mode.
26953 * config/i386/predicates.md (x86_64_immediate_operand)
26954 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
26955 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
26956 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
26957 (const0_operand): Also match const_wide_int.
26958 (constm1_operand): Ditto.
26959 (const1_operand): Ditto.
26961 2015-05-04 Richard Biener <rguenther@suse.de>
26963 PR tree-optimization/65965
26964 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
26965 store groups at gaps.
26967 2015-05-04 Richard Biener <rguenther@suse.de>
26969 PR tree-optimization/65935
26970 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
26971 then make sure to apply that swapping to the IL.
26973 2015-05-04 Jakub Jelinek <jakub@redhat.com>
26975 * Makefile.in (PATCHLEVEL_c): New variable.
26976 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
26977 expand the same way as if DEVPHASE_c was non-empty.
26979 2015-05-04 Kai Tietz <ktietz@redhat.com>
26982 * lto-wrapper.c (run_gcc): Open filename
26985 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
26987 * doc/extend.texi (Variable Attributes, Type Attributes): Move
26988 sections up in file, to immediately after the Function Attributes
26991 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
26993 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
26995 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
26997 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
26998 (insert_partition_copy_on_edge): Adjust.
26999 (insert_rtx_to_part_on_edge): Likewise.
27000 (insert_part_to_rtx_on_edge): Likewise.
27002 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27004 * function.c (set_return_jump_label): Change type of argument to
27006 * function.h (set_return_jump_label): Adjust.
27008 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27010 * reload.h (struct reg_equivs_t): Change type of init to
27012 * ira.c (fix_reg_equiv_init): Adjust.
27013 * reload1.c (eliminate_regs_1): Likewise.
27014 (init_eliminable_invariants): Likewise.
27016 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27018 * cselib.c (fp_setter_insn): Take a rtx_insn *.
27019 * cselib.h (fp_setter_insn): Adjust.
27021 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27023 * recog.c (struct validate_replace_src_data): Change type of
27024 insn field to rtx_insn *.
27025 (validate_replace_src_group): Change type of argument to rtx_insn *.
27026 * recog.h (validate_replace_src_group): Adjust.
27028 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27030 * haifa-sched.c: Change the type of some variables to rtx_insn *.
27031 * sched-deps.c: Likewise.
27032 * sched-int.h: Likewise.
27033 * sched-rgn.c: Likewise.
27034 * sel-sched.c: Likewise.
27036 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27039 * config/i386/i386.c: Change the type of some arguments to
27041 * config/arm/arm.c: Likewise.
27043 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27045 * lra-constraints.c: Change type of some arguments to rtx_insn *.
27047 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27049 * regcprop.c (kill_autoinc_value): Change type of argument to
27052 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27054 * genrecog.c (print_subroutine): Adjust.
27055 * recog.c (get_bool_attr_mask_uncached): Likewise.
27056 * recog.h (struct recog_data_d): Change the type of insn to
27059 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27061 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
27063 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27065 * df-problems.c (df_set_note): Change type of argument to
27068 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27070 * builtins.c (expand_builtin_trap): Change type of local
27071 variable to rtx_insn *.
27072 (add_sched_insns_for_speculation): Likewise.
27073 (ix86_emit_save_regs): Likewise.
27074 (get_scratch_register_on_entry): Likewise.
27075 (ix86_emit_restore_reg_using_pop): Likewise.
27076 (ix86_emit_leave): Likewise.
27077 (ix86_emit_restore_regs_using_mov): Likewise.
27078 (ix86_expand_epilogue): Likewise.
27080 (rl78_alloc_physical_registers_umul): Likewise.
27081 * cselib.c (discard_useless_locs): Likewise.
27082 (cselib_invalidate_regno): Likewise.
27083 (cselib_invalidate_mem): Likewise.
27084 * function.c (expand_function_start): Likewise.
27085 (emit_use_return_register_into_block): Likewise.
27086 * gcse.c: Likewise.
27087 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
27088 * ifcvt.c (noce_get_alt_condition): Likewise.
27089 * loop-doloop.c (doloop_condition_get): Likewise.
27090 * lra-constraints.c (inherit_in_ebb): Likewise.
27091 * modulo-sched.c (sms_schedule_by_order): Likewise.
27092 * recog.c (next_insn_tests_no_inequality): Likewise.
27093 * reorg.c (emit_delay_sequence): Likewise.
27094 (update_reg_dead_notes): Likewise.
27095 (fix_reg_dead_note): Likewise.
27096 (fill_slots_from_thread): Likewise.
27097 (delete_computation): Likewise.
27099 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
27101 * doc/extend.texi (Variable Attributes): Add menu and proper
27102 @nodes to subsections. Move Microsoft Windows attributes to
27103 their own subsection.
27104 (Type Attributes): Reorganize introduction to remove duplicate
27105 list of attributes. Add menu and proper @nodes to subsections.
27106 Alphabetize the main table of common attributes.
27108 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
27110 * match.pd: New simplification patterns.
27111 (x + (x & 1)) -> ((x + 1) & ~1)
27112 (x & ~(x & y)) -> ((x & ~y))
27113 (x | ~(x | y)) -> ((x | ~y))
27115 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27117 * target.def (attribute_table): Mention that struct attribute_spec
27118 is defined in tree-core.h rather than tree.h
27119 * doc/tm.texi: Regenerate.
27121 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
27123 * genrecog.c (test): Rename to rtx_test. Update rest of file
27126 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
27128 PR translation/65959
27129 * params.h (DEFPARAM): Rename msgid to nocmsgid.
27131 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27133 * config/aarch64/aarch64-protos.h (tune_params):
27134 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
27135 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
27136 Return value depending on target.
27137 (generic_tunings): Initialize new target settings.
27138 (cortexa53_tunings): Likewise.
27139 (cortexa57_tunings): Likewise.
27140 (thunderx_tunings): Likewise.
27141 (xgene1_tunings): Likewise.
27143 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27145 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
27146 Make Cortex-A53 shift costs more accurate.
27148 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27150 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
27153 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
27155 * config/aarch64/aarch64.c (aarch64_rtx_costs):
27156 Calculate cost of op0 and op1 in PLUS and MINUS cases.
27158 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27160 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
27161 Add cost of op0 in the compare-with-fpzero case.
27163 2015-04-30 David Malcolm <dmalcolm@redhat.com>
27165 * builtins.c (fold_builtin_1): Remove spurious second
27167 * cgraph.h (symtab_node::get_availability): Likewise.
27168 * opts.c (common_handle_option): Remove spurious second semicolon.
27169 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
27170 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
27172 2015-04-30 Caroline Tice <cmtice@google.com>
27174 PR gcov-profile/65929
27175 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
27176 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
27177 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
27178 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
27179 * doc/tm.texi: Regenerate.
27180 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
27181 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
27182 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
27183 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
27185 2015-04-30 Marek Polacek <polacek@redhat.com>
27187 * varasm.c (handle_cache_entry): Fix logic.
27189 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27191 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
27192 (*extrsi5_insn_uxtw_alt): Likewise.
27193 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
27194 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
27197 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27199 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
27202 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27204 * config/aarch64/aarch64.md
27205 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
27206 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
27207 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
27208 appropriately. Handle alternative EON form.
27210 2015-04-30 Renlin Li <renlin.li@arm.com>
27212 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
27213 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
27215 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
27218 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
27219 -fstrict-aliasing boundaries.
27221 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27223 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
27224 and [SU]MNEGL patterns.
27226 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27228 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
27229 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
27230 combined arithmetic-shift ops. Properly handle all shift and extend
27231 operations that can occur in combination with PLUS/MINUS.
27232 Rename maybe_fma to compound_p.
27233 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
27234 arithmetic and shift operations.
27236 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27238 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
27239 rather than arith_shift cost when costing ADD/MINUS of an
27242 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
27245 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
27248 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
27250 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
27251 are for the same position.
27253 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
27255 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
27257 (vectorize_loops): Use it.
27259 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27261 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
27262 for aggregate types.
27263 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
27264 type to be non_ODR.
27265 * tree.c (need_assembler_name_p): Compute mangled name for
27266 non-fundamental types and integer types.
27268 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
27270 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
27272 * expr.c (expand_expr_real_2): Likewise.
27274 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27276 * tree.c (build_common_builtin_nodes): Do not build
27277 __builtin_alloca_with_align as equivalent of library alloca.
27279 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
27281 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
27282 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
27284 * tree.c: Include print-tree.h and ipa-utils.h
27285 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
27286 (free_lang_data_in_cgraph): Call verify_type.
27287 (verify_type_variant): New function.
27288 (verify_type): New function.
27289 * tree.h (verify_type): Declare.
27291 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
27293 * config/mips/mips-cpus.def: (mips4): Change default processor
27294 from PROCESSOR_R8000 to PROCESSOR_R10000.
27296 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
27298 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
27299 la/jalr instead of jal.
27301 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
27304 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
27305 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
27306 (setcc+movzbl peephole2): Check also clobbered reg.
27307 (setcc+andl peephole2): Ditto.
27309 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
27312 * config/nvptx/mkoffload.c (target_ilp32): New variable.
27313 (main): Set it depending on "-foffload-abi=[...]".
27314 (compile_native, main): Use it to pass "-m32" or "-m64" to the
27317 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
27320 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
27321 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
27322 Flip lane index back at assembly time for bigendian.
27324 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
27326 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
27327 * gimplify.c (gimplify_omp_workshare): Use it.
27329 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27331 * Makefile.in (build/genrecog.o): Depend on inchash.h.
27332 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
27334 * genrecog.c: Rewrite most of the code except for the third page.
27336 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27338 * inchash.h, inchash.c: Include bconfig.h for build objects.
27339 * Makefile.in (build/inchash.o): New rule.
27341 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
27344 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
27345 number in type attribute expression.
27347 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
27349 * loop-iv.c (canon_condition): Generalize to all types of integer
27352 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
27354 * gimple-walk.c: Prune duplicate or unneeded includes.
27355 (walk_gimple_asm): Only call parse_input_constraint or
27356 parse_output_constraint if their findings are used.
27357 Honour parse_input_constraint and parse_output_constraint
27360 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
27362 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
27364 2015-04-29 Tom de Vries <tom@codesourcery.com>
27366 PR tree-optimization/65893
27367 * passes.def (pass_all_optimizations): Move pass_stdarg to after
27370 2015-04-29 Richard Biener <rguenther@suse.de>
27372 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27373 compute GROUP_SIZE for basic-block SLP.
27374 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
27375 take into account gaps.
27376 (vect_get_mask_element): Properly reject references to previous
27378 (vect_transform_slp_perm_load): Likewise.
27380 2015-04-29 Christian Bruel <christian.bruel@st.com>
27383 * config/i386/i386.c (ix86_default_align): New function.
27384 (ix86_override_options_after_change): Call ix86_default_align.
27385 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
27386 (ix86_override_options_after_change): New function.
27388 2015-04-28 Jeff Law <law@redhat.com>
27390 * tree-ssa-dom.c (record_equality); Fix comment typos.
27392 2015-04-28 Tom de Vries <tom@codesourcery.com>
27394 PR tree-optimization/65887
27395 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
27397 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
27399 * doc/extend.texi (Declaring Attributes of Functions): Split into
27400 subsections by target. Alphabetize the table of common attributes.
27401 Rewrite some of the introductory text to reflect the new structure.
27402 Update some cross-references to point to the new subsections.
27403 (Attribute Syntax): Put paragraph about "__" naming here. Remove
27404 duplicate copies in the discussion of function, label, and type
27407 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
27410 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
27412 2015-04-28 Jason Merrill <jason@redhat.com>
27415 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
27416 (finalize_type_size): Respect TYPE_USER_ALIGN.
27417 (layout_type) [ARRAY_TYPE]: Likewise.
27419 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
27421 * config/arm/arm.md (*arm_movt): Fix type attribute.
27422 (*cmpsi_shiftsi): Likewise.
27423 (*cmpsi_shiftsi_swp): Likewise.
27424 (*movsicc_insn): Likewise.
27425 (*cond_move): Likewise.
27426 (*if_plus_move): Likewise.
27427 (*if_move_plus): Likewise.
27428 (*if_arith_move): Likewise.
27429 (*if_move_arith): Likewise.
27430 (*if_shift_move): Likewise.
27431 (*if_move_shift): Likewise.
27432 (*arm_movtas_ze): Likewise.
27433 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
27434 redundancy and type attribute.
27435 (*thumb2_movsi_insn): Fix type attribute.
27436 (*thumb2_addsi_short): Likewise.
27437 (thumb2_addsi3_compare0): Likewise.
27438 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
27439 attributes accordingly.
27441 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
27444 * function.c (pad_to_arg_alignment): Add parentheses.
27446 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
27448 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
27449 libgcc/config/frv/elf-lib.h.
27451 2015-04-28 Tom de Vries <tom@codesourcery.com>
27453 * tree-call-cdce.c: Fix example in header comment.
27455 2015-04-28 Richard Biener <rguenther@suse.de>
27457 PR tree-optimization/62283
27458 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
27459 fails fatally and we are vectorizing a basic-block simply
27460 cause the child to be constructed piecewise.
27461 (vect_analyze_slp_cost_1): Adjust.
27462 (vect_detect_hybrid_slp_stmts): Likewise.
27463 (vect_bb_slp_scalar_cost): Likewise.
27464 (vect_get_constant_vectors): For piecewise constructed
27465 constants place them after the last def.
27466 (vect_get_slp_defs): Adjust.
27467 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
27468 externals for basic-block vectorization.
27470 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
27473 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
27475 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
27476 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
27477 (AARCH64_TUNE_FMA_STEERING): Likewise.
27478 * config/aarch64/aarch64-cores.def: Set
27479 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
27480 FMUL/FMADD instructions.
27481 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
27482 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
27483 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
27484 * config/aarch64/cortex-a57-fma-steering.h: New file.
27485 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27487 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
27489 * gensupport.c (std_preds): Add missing codes to address_operand entry.
27491 2015-04-28 Richard Biener <rguenther@suse.de>
27493 PR tree-optimization/65851
27494 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
27495 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
27496 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
27497 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
27498 (ccp_visit_phi_node): Adjust.
27499 (evaluate_stmt): For simplifications to SSA names return its
27500 lattice value if that isn't VARYING. Return immediately when
27501 simplified to a constant.
27502 (visit_assignment): Adjust.
27503 (ccp_visit_stmt): Likewise.
27505 2015-04-28 Tom de Vries <tom@codesourcery.com>
27507 PR tree-optimization/65818
27508 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
27511 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27513 * calls.c (save_fixed_argument_area): Don't check
27514 ARGS_GROW_DOWNWARD with the preprocessor.
27515 (restore_fixed_argument_area): Likewise.
27516 (mem_overlaps_already_clobbered_arg_p): Likewise.
27517 (check_sibcall_argument_overlap): Likewise.
27518 (expand_call): Likewise.
27519 (emit_library_call_value_1): Likewise.
27520 (store_one_arg): Likewise.
27521 * function.c (assign_parms): Likewise.
27522 (locate_and_pad_parm): Likewise.
27523 (pad_to_arg_alignment): Likewise.
27524 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27526 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27528 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
27529 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
27530 * calls.c (save_fixed_argument_area): Don't chekc if
27531 ARGS_GROW_DOWNWARD is defined.
27532 (restore_fixed_argument_area): Likewise.
27533 (mem_overlaps_already_clobbered_arg_p): Likewise.
27534 (check_sibcall_argument_overlap): Likewise.
27535 (expand_call): Likewise.
27536 (emit_library_call_value_1): Likewise.
27537 (store_one_arg): Likewise.
27538 * function.c (assign_parms): Likewise.
27539 (locate_and_pad_parm): Likewise.
27540 (pad_to_arg_alignment): Likewise.
27541 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
27543 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27545 * defaults.h (gen_epilogue): New function.
27546 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
27548 * cfgrtl.c (cfg_layout_finalize): Likewise.
27549 * df-scan.c: Likewise.
27550 * function.c (thread_prologue_and_epilogue_insns): Likewise.
27551 (reposition_prologue_and_epilogue_notes): Likewise.
27552 * reorg.c (find_end_label): Likewise.
27553 * toplev.c: Likewise.
27555 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27557 * bb-reorder.c (HAVE_return): Don't check if its undefined.
27558 * defaults.h (gen_simple_return): New function.
27559 (gen_simple_return): Likewise.
27560 (HAVE_return): Add default definition to false.
27561 (HAVE_simple_return): Likewise.
27562 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
27563 HAVE_return and HAVE_simple_return are defined.
27564 * function.c (gen_return_pattern): Likewise.
27565 (convert_jumps_to_returns): Likewise.
27566 (thread_prologue_and_epilogue_insns): Likewise.
27567 * reorg.c (find_end_label): Likewise.
27568 (dbr_schedule): Likewise.
27569 * shrink-wrap.c: Likewise.
27570 * shrink-wrap.h: Likewise.
27572 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27574 * defaults.h (EPILOGUE_USES): Add default definition of false.
27575 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
27576 * resource.c (init_resource_info): Likewise.
27578 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27580 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
27582 * dwarf2out.c (field_byte_offset): REmove check if
27583 PCC_BITFIELD_TYPE_MATTERS is defined.
27584 * stor-layout.c (layout_decl): Likewise.
27585 (update_alignment_for_field): Likewise.
27586 (place_field): Likewise.
27588 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27590 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
27592 * regrename.c (check_new_reg_p): Remove check if
27593 HARD_REGNO_RENAME_OK is defined.
27594 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
27596 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
27598 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
27599 * cse.c (fold_rtx): Likewise.
27600 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
27601 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
27602 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
27603 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
27604 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
27605 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
27606 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
27607 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
27608 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
27609 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
27611 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
27612 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
27613 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
27614 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
27615 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
27616 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
27617 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
27618 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
27619 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
27620 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
27621 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
27622 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
27623 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
27624 * doc/tm.texi: Regenerate.
27625 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
27626 either true or false.
27628 2015-04-27 Jeff Law <law@redhat.com>
27630 PR tree-optimization/65217
27631 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
27632 of them has a single use, make sure it is the LHS of the implied
27635 2015-04-28 Alan Modra <amodra@gmail.com>
27638 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
27639 (offsettable_ok_by_alignment): Use minimum of decl and toc
27640 pointer alignment. Replace dead code with assertion.
27641 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
27642 case if size exceeds toc pointer alignment.
27643 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
27644 (rs6000_emit_move): Likewise.
27645 * configure.ac: Add linker toc pointer alignment check.
27646 * configure: Regenerate.
27647 * config.in: Regenerate.
27649 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
27651 * config.gcc: Add h8300-*-linux.
27652 * config/h8300/linux.h: New.
27653 * config/h8300/t-linux: New.
27654 * config/h8300/h8300.c (h8300_option_override): Normal mode
27655 is not supported for h8300-*-linux.
27656 (h8300_file_start): Target priority change.
27657 (get_shift_alg): Likewise.
27658 (h8300_shift_need_scratch_p): Likewise.
27659 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
27660 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
27662 2015-04-27 Caroline Tice <cmtice@google.com>
27664 * final.c (final_scan_insn): Output cold_function_name as function
27666 * varasm.c (cold_function_name): Make global.
27667 (assemble_start_function): Re-set cold_function_name.
27668 (assemble_end_function): Output cold partition size.
27669 * varasm.h (cold_function_name): Declare global.
27671 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
27673 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
27674 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
27676 (*movxi_internal_avx512f): Ditto.
27677 (define_split): Check for xmm16+, when splitting scalar float_extend.
27678 (*extendsfdf2_mixed): Use "v" constraint.
27679 (define_split): Check for xmm16+, when splitting scalar float_truncate.
27680 (*truncdfsf_fast_sse): Use "v" constraint.
27681 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
27682 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
27683 (define_peephole2): Check for xmm16+, when converting scalar
27685 (define_peephole2): Check for xmm16+, when converting scalar
27687 (*fop_<mode>_comm_mixed): Use "v" constraint.
27688 (*fop_<mode>_comm_sse): Ditto.
27689 (*fop_<mode>_1_mixed): Ditto.
27690 (*sqrt<mode>2_sse): Ditto.
27691 (*ieee_s<ieee_maxmin><mode>3): Ditto.
27693 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27695 * combine.c (simplify_if_then_else): Use std::swap instead
27696 of manually swapping.
27697 (known_cond): Likewise.
27698 (simplify_comparison): Likewise.
27700 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
27703 * config/rs6000/htm.md: Remove all define_expands.
27704 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
27705 UNSPECV_HTM_TABORTWCI): Remove.
27706 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
27707 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
27708 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
27709 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
27710 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
27711 tabortwci_internal): Remove define_insns.
27712 (tabort<wd>c, tabort<wd>ci): New define_insns.
27713 (tabort): Use gpc_reg_operand.
27714 (tcheck): Remove operand.
27715 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
27716 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
27718 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
27719 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
27720 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
27721 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
27722 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
27723 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
27724 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
27725 (tcheck): Remove builtin argument.
27726 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
27728 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
27729 tabortdc and tabortdci builtins when not in 64-bit mode.
27730 Modify code to handle the loss of the HTM define_expands.
27731 Emit code to copy the CR register to TARGET.
27732 (htm_init_builtins): Modify code to handle the loss of the HTM
27734 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
27735 (RS6000_BTC_64BIT): Likewise.
27736 (RS6000_BTC_CR): New macro.
27737 * doc/extend.texi: Update documentation for htm builtins.
27739 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27741 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
27742 of manually swapping.
27743 (simplify_associative_operation): Likewise.
27744 (simplify_binary_operation): Likewise.
27745 (simplify_plus_minus): Likewise.
27746 (simplify_relational_operation): Likewise.
27747 (simplify_ternary_operation): Likewise.
27749 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
27751 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
27752 (xs_hi_nonmemory_operand): Remove error.
27753 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
27754 general_operand rather than xs_hi_general_operand.
27756 2015-04-27 Richard Biener <rguenther@suse.de>
27758 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
27759 (record_equivalences_from_stmt): Valueize rhs.
27760 (record_equality): Canonicalize x and y order via
27761 tree_swap_operands_p. Do not swap operands for same loop depth.
27763 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
27767 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
27768 Add hint how to use own spec file.
27770 2015-04-27 Jakub Jelinek <jakub@redhat.com>
27772 PR tree-optimization/65875
27773 * tree-vrp.c (update_value_range): If in is_new case setting
27774 old_vr to VR_VARYING, also set new_vr to it. Remove
27775 old_vr->type == VR_VARYING test.
27776 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
27777 SSA_PROP_INTERESTING if update_value_range returned true,
27778 but new range is VR_VARYING.
27780 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
27782 * combine.c (sign_extend_short_imm): New.
27783 (set_nonzero_bits_and_sign_copies): Use above new function for sign
27784 extension of src short immediate.
27785 (reg_nonzero_bits_for_combine): Likewise for tem.
27787 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
27789 * stor-layout.c (self_referential_component_ref_p): New predicate.
27790 (copy_self_referential_tree_r): Use it.
27791 (self_referential_size): Punt for simple operations directly involving
27792 self-referential component references.
27793 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
27795 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
27797 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
27799 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
27801 * vec.h (vec): Make splice arguments const. Update definitions
27804 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
27806 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
27809 2015-04-26 Tom de Vries <tom@codesourcery.com>
27811 PR tree-optimization/65826
27812 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
27814 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
27816 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
27817 (*madd3<mode>): Ditto.
27818 (*msub4<mode>): Ditto.
27819 (*msub3<mode>): Ditto.
27820 (*nmadd4<mode>): Ditto.
27821 (*nmadd3<mode>): Ditto.
27822 (*nmadd4<mode>_fastmath): Ditto.
27823 (*nmadd3<mode>_fastmath): Ditto.
27824 (*nmsub4<mode>): Ditto.
27825 (*nmsub3<mode>): Ditto.
27826 (*nmsub4<mode>_fastmath): Ditto.
27827 (*nmsub3<mode>_fastmath): Ditto.
27829 2015-04-24 Jason Merrill <jason@redhat.com>
27832 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
27833 down when building TYPE_CANONICAL.
27834 (build_pointer_type_for_mode): Likewise.
27836 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
27838 * genrecog.c (validate_pattern): Check matching constraint refers
27839 to a lower numbered operand.
27841 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
27844 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
27845 save to independent variables use the Save attribute. This will
27846 allow these options to be modified with the #pragma/attribute
27848 (-mallow-movmisalign): Likewise.
27849 (-mallow-df-permute): Likewise.
27850 (-msched-groups): Likewise.
27851 (-malways-hint): Likewise.
27852 (-malign-branch-targets): Likewise.
27853 (-mvectorize-builtins): Likewise.
27854 (-msave-toc-indirect): Likewise.
27856 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
27857 can be set via the #pragma/attribute target support.
27858 (rs6000_opt_vars): Likewise.
27859 (rs6000_inner_target_options): If VSX was set, also set
27860 -mno-avoid-indexed-addresses.
27862 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27864 * config/arm/iterators.md (shiftable_ops): Rename to...
27865 (SHIFTABLE_OPS): ... This. Update use in comments.
27866 (ior_xor): Rename to...
27867 (IOR_XOR): ... This.
27868 (vqh_ops): Rename to...
27869 (VQH_OPS): ... This.
27870 (vqhs_ops): Rename to...
27871 (VQHS_OPS): ... This.
27872 (rshifts): Rename to...
27873 (RSHIFTS): ... This.
27874 (returns): Rename to...
27875 (RETURNS): ... This.
27876 * config/arm/arm.md: Update uses of the above.
27877 * config/arm/neon.md: Likewise.
27879 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27881 * config.host (case ${host}): Add aarch64*-*-linux case.
27882 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
27883 fields to all the cores.
27884 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
27885 Add MCPU_MTUNE_NATIVE_SPECS.
27886 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
27887 field to all extensions.
27888 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
27889 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
27890 Adjust definition of AARCH64_OPT_EXTENSION.
27891 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
27892 (MCPU_MTUNE_NATIVE_SPECS): Define.
27893 * config/aarch64/driver-aarch64.c: New file.
27894 * config/aarch64/x-arch64: New file.
27895 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
27898 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
27899 Wei Mi <wmi@google.com>
27901 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
27902 * config/i386/i386.c (extract_base_offset_in_addr): New function.
27903 (ix86_operands_ok_for_move_multiple): Ditto.
27904 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
27905 (movlpd/movhpd to movupd peephole2): Ditto.
27907 2015-04-24 Marek Polacek <polacek@redhat.com>
27910 * input.h (from_macro_expansion_at): Define.
27913 * doc/invoke.texi: Update description of -Wlogical-op.
27915 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
27917 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
27918 ternary operator in fprintf and harmonize spacing.
27920 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
27922 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
27923 Mark operand1 commutative.
27925 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
27927 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
27928 input operands in memory.
27929 (*vec_concatv2si_sse4_1): Ditto.
27930 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
27931 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
27933 (vec_extract_hi_v32hi): Ditto.
27934 (vec_extract_hi_v64hi): Ditto.
27935 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
27937 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
27938 Steven Bosscher <steven@gcc.gnu.org>
27940 PR rtl-optimization/34503
27941 * cprop.c (cprop_reg_p): New.
27942 (hash_scan_set): Use above function to check if register can be
27944 (find_avail_set): Return up to two sets, one whose source is a
27945 register and one whose source is a constant. Sets are returned in an
27946 array passed as parameter rather than as a return value.
27947 (cprop_insn): Use a do while loop rather than a goto. Try each of the
27948 sets returned by find_avail_set, starting with the one whose source is
27949 a constant. Use cprop_reg_p to check if register can be propagated.
27950 (do_local_cprop): Use cprop_reg_p to check if register can be
27952 (implicit_set_cond_p): Likewise.
27954 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
27956 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
27957 (sem_function::equals): IGNORED_NODES parameter is now unused;
27958 update call of equals_private.
27959 (sem_function::equals_private): Do not call equals_wpa; skip
27960 gimple body matching if there is no body.
27961 (sem_function::init): Add logic to hash tthunk info.
27962 (sem_function::parse): Also parse thunks.
27963 * ipa-icf.h (equals_private): Update declaration.
27965 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27967 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
27968 asterisk from name so this can be generated directly.
27969 (*altivec_stvx_<mode>_internal): Likewise.
27970 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
27971 that this is never called during or after reload/lra.
27972 (rs6000_frame_related): Remove split_reg
27973 argument and logic that references it.
27974 (emit_frame_save): Remove last parameter from call to
27975 rs6000_frame_related.
27976 (rs6000_emit_prologue): Remove last parameter from eight calls to
27977 rs6000_frame_related. Force generation of stvx instruction for
27978 Altivec register saves. Remove split_reg handling, which is no
27980 (rs6000_emit_epilogue): Force generation of lvx instruction for
27981 Altivec register restores.
27983 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27985 * config/rs6000/rs6000.opt (mcrypto): Change option description to
27986 match category changes in ISA 2.07B.
27988 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27990 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
27992 (cmp_op, cmp_type): New code attributes.
27993 (NEON_VCMP, NEON_VACMP): New int iterators.
27994 (cmp_op_unsp): New int attribute.
27995 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
27996 (neon_vceq<mode>): Delete.
27997 (neon_vc<cmp_op><mode>_insn): New pattern.
27998 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
27999 (neon_vcgeu<mode>): Delete.
28000 (neon_vcle<mode>): Likewise.
28001 (neon_vclt<mode>: Likewise.
28002 (neon_vcage<mode>): Likewise.
28003 (neon_vcagt<mode>): Likewise.
28004 (neon_vca<cmp_op><mode>): New define_expand.
28005 (neon_vca<cmp_op><mode>_insn): New pattern.
28006 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
28008 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28010 * tree.h (attribute_value_equal): Declare.
28011 * tree.c (attribute_value_equal): Export.
28013 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28015 * ipa-icf.c (sem_item::compare_attributes): New function.
28016 (sem_item::compare_referenced_symbol_properties): Compare variable
28018 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
28019 (sem_function::param_used_p): New function.
28020 (sem_function::equals_wpa): Fix attribute comparsion; match
28021 parameter type codes; do not compare paremter flags when
28022 they are not used; compare edge flags; compare indirect calls.
28023 (sem_item::update_hash_by_addr_refs): Hash reference type.
28024 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
28025 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
28026 reference use type.
28027 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
28028 * ipa-icf.h (compare_attributes, param_used_p): Declare.
28030 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
28032 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
28034 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
28035 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
28036 (sem_item::compare_referenced_symbol_properties): New.
28037 (sem_item::hash_referenced_symbol_properties): New.
28038 (sem_item::compare_cgraph_references): Rename to ...
28039 (sem_item::compare_symbol_references): ... this one; use
28040 compare_referenced_symbol_properties.
28041 (sem_function::equals_wpa): Do not compare
28042 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
28043 DECL_IS_OPERATOR_NEW; compare pointer sizes.
28044 (sem_item::update_hash_by_addr_refs): Call
28045 hash_referenced_symbol_properties.
28046 (sem_item::update_hash_by_local_refs): Cleanup.
28047 (sem_function::merge): Do not mix up symbol properties.
28048 (sem_variable::equals_wpa): Use compare_symbol_references.
28049 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
28050 (sem_item::hash_referenced_symbol_properties): New.
28051 (sem_item::compare_symbol_references): New.
28052 (sem_item::compare_cgraph_references): Remove.
28054 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
28057 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
28058 Emit size of local.
28060 2015-04-23 Nick Clifton <nickc@redhat.com>
28062 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
28063 ATTRIBUTE_UNUSED to x parameter.
28064 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
28066 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28068 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
28069 TARGET_CRYPTO to TARGET_P8_VECTOR>
28070 (crypto_vpermxor_<mode>): Likewise.
28071 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
28072 (BU_CRYPTO_3A): Likewise.
28073 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
28074 (BU_CRYPTO_OVERLOAD_3A): New #define.
28075 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
28076 (VPMSUMH): Likewise.
28077 (VPMSUMW): Likewise.
28078 (VPMSUMD): Likewise.
28079 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
28080 (VPERMXOR_V4SI): Likewise.
28081 (VPERMXOR_V8HI): Likewise.
28082 (VPERMXOR_V16QI): Likewise.
28083 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
28084 BU_CRYPTO_OVERLOAD_2A.
28085 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
28086 BU_CRYPTO_OVERLOAD_3A.
28087 * config/rs6000/rs6000.opt (mcrypto): Change description of
28090 2015-04-23 Richard Biener <rguenther@suse.de>
28092 * passes.def: Remove copy propagation passes run directly after CCP.
28093 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
28095 (ccp_visit_phi_node): Rework to handle first executable edge
28098 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
28100 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28101 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28102 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
28103 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
28104 (thumb_legimitimize_reload_address): Remove.
28105 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
28107 (thumb_legimitimize_reload_address): Remove.
28109 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28111 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
28113 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28115 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
28117 (store_multiple): Likewise.
28119 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28121 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
28122 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
28123 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
28124 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
28125 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
28126 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
28127 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
28128 Specify issue_rate value.
28129 (arm_issue_rate): Look up issue rate from tuning structs. Remove
28130 large switch statement.
28131 (arm_marvell_pj4_tune): New struct.
28132 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
28135 2015-04-23 Richard Biener <rguenther@suse.de>
28137 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
28138 (vect_find_last_store_in_slp_instance): Rename to ...
28139 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
28140 (vect_analyze_slp_cost_1): Use vector_load for constant defs
28141 and vec_construct for external defs when estimating prologue cost.
28142 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
28143 Compute costs here only when vectorizing loops.
28144 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
28145 have been determined.
28146 (vect_schedule_slp_instance): Simplify vectorized code placement
28147 and prepare for in-BB external defs.
28148 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
28149 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
28150 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
28152 (vect_model_load_cost): Likewise.
28153 (vectorizable_store): Instead add it here.
28154 (vectorizable_load): Likewise.
28155 (vect_is_simple_use): Dump def type textually.
28157 2015-04-23 Richard Biener <rguenther@suse.de>
28159 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
28160 * cfgloop.c (verify_loop_structure): Verify the root loop node.
28161 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
28162 instead of get_eh_region_from_lp_number.
28163 * loop-init.c (fix_loop_structure): If we removed a loop, reset
28166 2015-04-23 Anton Blanchard <anton@samba.org>
28168 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
28169 need for -mprofile-kernel to save LR to stack.
28171 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28173 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
28175 (insn_is_swappable_p): Return 1 for a convert from double to
28176 single precision when all of its uses are splats of BE element
28179 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
28181 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
28183 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28186 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
28187 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
28188 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
28190 (rs6000_builtin_mask_for_load): Return 0 for targets with
28191 efficient unaligned VSX accesses so that the vectorizer will use
28192 direct unaligned loads.
28193 (rs6000_builtin_support_vector_misalignment): Always return true
28194 for targets with efficient unaligned VSX accesses.
28195 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
28196 stores on targets with efficient unaligned VSX accesses is almost
28197 always the same as the cost of an aligned load or store, so model
28199 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
28200 unaligned vectors if we have efficient unaligned VSX accesses.
28201 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
28202 undocumented option.
28204 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28207 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
28209 * config.gcc (LIBC_MUSL): New tm_defines macro.
28210 * config/linux.h (OPTION_MUSL): Define.
28211 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28212 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28213 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28215 * config/linux.opt (mmusl): New option.
28216 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28217 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28219 * configure: Regenerate.
28221 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
28223 * config.gcc (LIBC_MUSL): New tm_defines macro.
28224 * config/linux.h (OPTION_MUSL): Define.
28225 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
28226 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
28227 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
28229 * config/linux.opt (mmusl): New option.
28230 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
28231 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
28233 * configure: Regenerate.
28235 2015-04-22 Yury Gribov <y.gribov@samsung.com>
28237 * doc/invoke.texi (-fsanitize-sections): Update description.
28238 * asan.c (set_sanitized_sections): Parse incoming arg.
28239 (section_sanitized_p): Support wildcards.
28241 2015-04-22 Tom de Vries <tom@codesourcery.com>
28243 PR tree-optimization/65823
28244 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
28245 equality between ap_copy and ap.
28247 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28250 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
28252 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28255 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
28257 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28260 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
28261 remove already contained t-files.
28263 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28265 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
28266 Remove unneeded forward declarations.
28267 (suitable_for_tail_call_opt_p): Commentary typo fix.
28269 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28271 * varasm.c (emit_bss): Remove redundant guard.
28273 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28275 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
28277 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28279 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
28281 2015-04-22 Hale Wang <hale.wang@arm.com>
28282 Terry Guo <terry.guo@arm.com>
28284 PR rtl-optimization/64818
28285 * combine.c (can_combine_p): Don't combine user-specified
28286 register if it is in an asm input.
28288 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
28291 * passes.def (early_optimizations): Add pass_dse.
28293 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28295 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
28296 * reorg.c (redundant_insn): Remove ifdef
28297 INSN_REFERENCES_ARE_DELAYED.
28298 * resource.c (mark_referenced_resources): Likewise.
28300 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28302 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
28303 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
28304 * resource.c (mark_set_resources): Likewise.
28306 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28308 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
28309 * cfgcleanup.c (flow_find_cross_jump): Likewise.
28310 (flow_find_head_matching_sequence): Likewise.
28311 (try_head_merge_bb): Likewise.
28312 * combine.c (can_combine_p): Likewise.
28313 (try_combine): Likewise.
28314 (distribute_notes): Likewise.
28315 * df-problems.c (can_move_insns_across): Likewise.
28316 * final.c (final): Likewise.
28317 * gcse.c (insert_insn_end_basic_block): Likewise.
28318 * ira.c (find_moveable_pseudos): Likewise.
28319 * reorg.c (try_merge_delay_insns): Likewise.
28320 (fill_simple_delay_slots): Likewise.
28321 (fill_slots_from_thread): Likewise.
28322 * sched-deps.c (sched_analyze_2): Likewise.
28324 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28326 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
28327 PIC_OFFSET_TABLE_REGNUM.
28329 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28331 * alias.c (init_alias_target): Remove ifdef
28332 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
28333 * df-scan.c (df_insn_refs_collect): Likewise.
28334 (df_get_regular_block_artificial_uses): Likewise.
28335 (df_get_eh_block_artificial_uses): Likewise.
28336 (df_get_entry_block_def_set): Likewise.
28337 (df_get_exit_block_use_set): Likewise.
28338 * emit-rtl.c (gen_rtx_REG): Likewise.
28339 * ira.c (ira_setup_eliminable_regset): Likewise.
28340 * reginfo.c (init_reg_sets_1): Likewise.
28341 * regrename.c (rename_chains): Likewise.
28342 * reload1.c (reload): Likewise.
28343 (eliminate_regs_in_insn): Likewise.
28344 * resource.c (mark_referenced_resources): Likewise.
28345 (init_resource_info): Likewise.
28347 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28349 * defaults.h (MASK_RETURN_ADDR): New definition.
28350 * except.c (expand_builtin_extract_return_addr): Remove ifdef
28353 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28355 * defaults.h (RETURN_ADDR_OFFSET): New definition.
28356 * except.c (expand_builtin_extract_return_addr): Remove ifdef
28357 RETURN_ADDR_OFFSET.
28358 (expand_builtin_frob_return_addr): Likewise.
28360 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28362 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
28363 (try_redirect_by_replacing_jump): Likewise.
28364 (rtl_tidy_fallthru_edge): Likewise.
28365 * combine.c (insn_a_feeds_b): Likewise.
28366 (find_split_point): Likewise.
28367 (simplify_set): Likewise.
28368 * cprop.c (cprop_jump): Likewise.
28369 * cse.c (cse_extended_basic_block): Likewise.
28370 * df-problems.c (can_move_insns_across): Likewise.
28371 * function.c (emit_use_return_register_into_block): Likewise.
28372 * haifa-sched.c (sched_init): Likewise.
28373 * ira.c (find_moveable_pseudos): Likewise.
28374 * loop-invariant.c (find_invariant_insn): Likewise.
28375 * lra-constraints.c (curr_insn_transform): Likewise.
28376 * postreload.c (reload_combine_recognize_const_pattern):
28378 * reload.c (find_reloads): Likewise.
28379 * reorg.c (delete_scheduled_jump): Likewise.
28380 (steal_delay_list_from_target): Likewise.
28381 (steal_delay_list_from_fallthrough): Likewise.
28382 (redundant_insn): Likewise.
28383 (fill_simple_delay_slots): Likewise.
28384 (fill_slots_from_thread): Likewise.
28385 (delete_computation): Likewise.
28386 * sched-rgn.c (add_branch_dependences): Likewise.
28388 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28390 * genconfig.c (main): Always define HAVE_cc0.
28391 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
28393 * cfgcleanup.c (flow_find_cross_jump): Likewise.
28394 (flow_find_head_matching_sequence): Likewise.
28395 (try_head_merge_bb): Likewise.
28396 * cfgrtl.c (rtl_merge_blocks): Likewise.
28397 (try_redirect_by_replacing_jump): Likewise.
28398 (rtl_tidy_fallthru_edge): Likewise.
28399 * combine.c (do_SUBST_MODE): Likewise.
28400 (insn_a_feeds_b): Likewise.
28401 (combine_instructions): Likewise.
28402 (can_combine_p): Likewise.
28403 (try_combine): Likewise.
28404 (find_split_point): Likewise.
28406 (simplify_set): Likewise.
28407 (distribute_notes): Likewise.
28408 * cprop.c (cprop_jump): Likewise.
28409 * cse.c (cse_extended_basic_block): Likewise.
28410 * df-problems.c (can_move_insns_across): Likewise.
28411 * final.c (final): Likewise.
28412 (final_scan_insn): Likewise.
28413 * function.c (emit_use_return_register_into_block): Likewise.
28414 * gcse.c (insert_insn_end_basic_block): Likewise.
28415 * haifa-sched.c (sched_init): Likewise.
28416 * ira.c (find_moveable_pseudos): Likewise.
28417 * loop-invariant.c (find_invariant_insn): Likewise.
28418 * lra-constraints.c (curr_insn_transform): Likewise.
28419 * optabs.c (prepare_cmp_insn): Likewise.
28420 * postreload.c (reload_combine_recognize_const_pattern):
28422 * reload.c (find_reloads): Likewise.
28423 (find_reloads_address_1): Likewise.
28424 * reorg.c (delete_scheduled_jump): Likewise.
28425 (steal_delay_list_from_target): Likewise.
28426 (steal_delay_list_from_fallthrough): Likewise.
28427 (try_merge_delay_insns): Likewise.
28428 (redundant_insn): Likewise.
28429 (fill_simple_delay_slots): Likewise.
28430 (fill_slots_from_thread): Likewise.
28431 (delete_computation): Likewise.
28432 (relax_delay_slots): Likewise.
28433 * sched-deps.c (sched_analyze_2): Likewise.
28434 * sched-rgn.c (add_branch_dependences): Likewise.
28436 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28438 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
28439 that is trivially ded on non cc0 targets.
28440 (simplify_set): Likewise.
28441 (mark_used_regs_combine): Likewise.
28442 * cse.c (new_basic_block): Likewise.
28443 (fold_rtx): Likewise.
28444 (cse_insn): Likewise.
28445 (cse_extended_basic_block): Likewise.
28446 (set_live_p): Likewise.
28447 * rtlanal.c (canonicalize_condition): Likewise.
28448 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
28450 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28452 * conditions.h: Define macros even if HAVE_cc0 is undefined.
28453 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
28454 * final.c: Likewise.
28455 * jump.c: Likewise.
28456 * recog.c: Likewise.
28457 * recog.h: Declare functions even when HAVE_cc0 is undefined.
28458 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
28460 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28462 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
28463 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
28464 * builtins.c (expand_builtin): Remove check if
28465 EH_RETURN_DATA_REGNO is defined.
28466 * df-scan.c (df_bb_refs_collect): Likewise.
28467 (df_get_exit_block_use_set): Likewise.
28468 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
28469 * ira-lives.c (process_bb_node_lives): Likewise.
28470 * lra-lives.c (process_bb_lives): Likewise.
28472 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
28474 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
28475 FIRST_PSEUDO_REG): New.
28476 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
28477 (ARG_POINTER_REGNUM): Define to ARGP_REG.
28478 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
28479 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
28480 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
28481 (FIRST_INT_REG): New.
28482 (LAST_INT_REG): New.
28483 (FIRST_*_REG): Define using *_REG.
28484 (LAST_*_REG): Ditto.
28485 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
28486 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
28487 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
28489 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28491 * expmed.c: (synth_mult): Only assume overlapping
28492 shift with previous steps in alg_sub_t_m2 case.
28494 2015-04-21 Richard Biener <rguenther@suse.de>
28496 PR tree-optimization/65650
28497 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
28498 transitions involving copies.
28499 (set_lattice_value): Adjust for copy lattice state.
28500 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
28501 if that doesn't dominate the merge point.
28502 (bit_value_unop): Adjust what we treat as varying mask.
28503 (bit_value_binop): Likewise.
28504 (bit_value_assume_aligned): Likewise.
28505 (evaluate_stmt): When we simplified to a SSA name record a copy
28506 instead of dropping to varying.
28507 (visit_assignment): Simplify.
28509 * gimple-match.h (gimple_simplify): Add another callback.
28510 * gimple-fold.c (fold_stmt_1): Adjust caller.
28511 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
28512 for the 2nd callback.
28513 * gimple-match-head.c (gimple_simplify): Add a callback that is
28514 used to valueize the stmt operands and use it that way.
28516 2015-04-21 Richard Biener <rguenther@suse.de>
28518 PR tree-optimization/65788
28519 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
28521 2015-04-21 Richard Biener <rguenther@suse.de>
28523 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
28524 vec_construct cost by vec_stmt_cost.
28526 2015-04-21 Richard Biener <rguenther@suse.de>
28528 * cfghooks.h (create_basic_block): Replace with two overloads
28529 for RTL and GIMPLE.
28530 (split_block): Likewise.
28531 * cfghooks.c (split_block): Rename to ...
28532 (split_block_1): ... this.
28533 (split_block): Add two type-safe overloads for RTL and GIMPLE.
28534 (split_block_after_labels): Call split_block_1.
28535 (create_basic_block): Rename to ...
28536 (create_basic_block_1): ... this.
28537 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
28538 (create_empty_bb): Call create_basic_block_1.
28539 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
28540 split_block_after_labels.
28541 * omp-low.c (expand_parallel_call): Likewise.
28542 (expand_omp_target): Likewise.
28543 (simd_clone_adjust): Likewise.
28544 * tree-chkp.c (chkp_get_entry_block): Likewise.
28545 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
28546 create_basic_block overload.
28547 (cgraph_node::expand_thunk): Likewise.
28548 * tree-cfg.c (make_blocks): Likewise.
28549 (handle_abnormal_edges): Likewise.
28550 * tree-inline.c (copy_bb): Likewise.
28552 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28554 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
28556 (*xor_one_cmplsidi3_ze): Likewise.
28558 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
28560 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
28561 use df_remove_problem rather than manually removing problems, leaving
28562 holes in df->problems_in_order[].
28564 2015-04-21 Tom de Vries <tom@codesourcery.com>
28566 PR tree-optimization/65802
28567 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
28569 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28571 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
28573 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
28574 at '.'. Assert that there's enough space for everything.
28576 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
28578 PR tree-optimization/64950
28580 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
28583 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
28586 2015-04-20 Shiva Chen <shiva0217@gmail.com>
28588 PR rtl-optimization/64916
28589 * cfgcleanup.c (values_equal_p): New function.
28590 (can_replace_by): Use it.
28592 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
28595 * doc/invoke.texi ([-Wnarrowing]): Update.
28597 2015-04-20 Jeff Law <law@redhat.com>
28599 PR tree-optimization/65658
28600 * tree-ssa-threadupdate.c (redirection_block_p): Remove
28601 redundant test for GIMPLE_ASSIGN in last change.
28603 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
28605 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
28606 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
28607 (legitimize_tls_address): Ditto.
28608 (ix86_expand_move): Ditto.
28609 (ix86_expand_binary_operator): Remove reload_in_progress checks.
28610 (ix86_expand_unary_operator): Ditto.
28611 * config/i386/predicates.md (index_register_operand): Ditto.
28613 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
28615 * reorg.c (try_merge_delay_insns): Improve correctness checking
28616 for targets with multiple delay slots.
28618 2015-04-20 Jeff Law <law@redhat.com>
28620 PR tree-optimization/65658
28621 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
28624 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
28626 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
28627 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
28630 2015-04-20 Jakub Jelinek <jakub@redhat.com>
28633 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
28635 2015-04-20 Richard Biener <rguenther@suse.de>
28637 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
28638 * gimple-fold.c (gimple_build_valueize): New function.
28639 (gimple_build): Always use gimple_build_valueize as valueize hook.
28641 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
28644 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
28645 and overwrite variable parts if <= 1/2 the elements are variable.
28647 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
28649 PR rtl-optimization/65805
28650 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
28651 Don't use difference of offset and previous offset if
28652 update_sp_offset is non-zero.
28653 (eliminate_regs_in_insn): Ditto.
28654 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
28655 lra_eliminate_regs_1 call.
28656 * lra-constraints.c (get_equiv_with_elimination): Ditto.
28658 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
28660 * hash-table.h: Remove version of hash_table that stored value_type *.
28661 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
28662 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
28663 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
28664 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
28665 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
28666 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
28667 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
28668 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
28669 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
28670 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
28671 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
28672 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
28673 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
28674 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
28675 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
28676 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
28678 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28679 Jakub Jelinek <jakub@redhat.com>
28682 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
28683 subsequent SH_NONE operand does not overwrite an existing *special
28685 (adjust_extract): Handle case where a vec_extract operation is
28686 wrapped in a PARALLEL.
28688 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
28691 * config/i386/i386.c (ix86_binds_local_p): Define only if
28692 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
28694 2015-04-17 Jeff Law <law@redhat.com>
28696 PR tree-optimization/47679
28697 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
28698 * tree-ssa-scopedtables.c: New file.
28699 * tree-ssa-scopedtables.h: New file.
28700 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
28701 (const_and_copies): Change name/type.
28702 (record_const_or_copy): Move into tree-ssa-scopedtables.c
28703 (record_const_or_copy_1): Similarly.
28704 (restore_vars_to_original_value): Similarly.
28705 (pass_dominator::execute): Create and destroy const_and_copies table.
28706 (thread_across_edge): Update passing of const_and_copies.
28707 (record_temporary_equivalence): Use method calls rather than
28708 manipulating const_and_copies directly.
28709 (record_equality, cprop_into_successor_phis): Similarly.
28710 (dom_opt_dom_walker::before_dom_children): Similarly.
28711 (dom_opt_dom_walker::after_dom_children): Similarly.
28712 (eliminate_redundant_computations): Similarly.
28713 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
28714 (record_temporary_equivalence): Likewise.
28715 (invalidate_equivalences): Likewise.
28716 (record_temporary_equivalences_from_phis): Update due to type
28717 change of const_and_copies. Use method calls rather than
28718 manipulating the stack directly.
28719 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
28720 (thread_through_normal_block, thread_across_edge): Likewise.
28721 (thread_across_edge): Likewise.
28722 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
28723 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
28725 (identify_jump_threads): Update due to type change of equiv_stack.
28726 (finalize_jump_threads): Delete the equiv_stack when complete.
28728 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
28730 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
28731 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
28732 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
28734 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
28737 * config.gcc: Exit with a comment when we do not have a major version
28738 number for the FreeBSD target.
28740 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28743 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
28744 maybe_allows_mem bitfields.
28745 (maybe_allows_none_start, maybe_allows_none_end,
28746 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
28747 maybe_allows_mem_end): New variables.
28748 (compute_maybe_allows): New function.
28749 (add_constraint): Use it to initialize maybe_allows_reg and
28750 maybe_allows_mem fields.
28751 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
28752 is_address constraints such that those that allow neither mem nor
28753 reg come first, then those that only allow reg but not mem, then
28754 those that only allow mem but not reg, then the rest.
28755 (write_allows_reg_mem_function): New function.
28756 (write_tm_preds_h): Call it.
28757 * stmt.c (parse_output_constraint, parse_input_constraint): Use
28758 the generated insn_extra_constraint_allows_reg_mem function
28759 instead of always setting *allows_reg = true; *allows_mem = true;
28760 for unknown extra constraints.
28762 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
28765 * output.h (default_binds_local_p_3): New.
28766 * varasm.c (default_binds_local_p_3): Make it public. Take an
28767 argument to indicate if common symbol may be local. If common
28768 symbol may be local, treat non-external variable as defined
28770 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
28771 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
28772 * config/i386/i386.c (ix86_binds_local_p): New.
28773 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
28774 ix86_binds_local_p.
28776 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28779 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
28780 trying mem_loc_descriptor on XEXP (rtl, 0).
28782 2015-04-17 Martin Liska <mliska@suse.cz>
28784 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
28785 Release symbol_compare_collection.
28786 * ipa-reference.c: Add TODO that a vector should be released.
28788 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
28791 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
28792 to new AVR-LibC file layout (bug #44574).
28793 (*avrlibc_devicelib): Same.
28794 * config/avr/avr-mcus.def: Adjust comments.
28795 * config/avr/avr.opt (nodevicelib): Adjust help.
28797 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
28799 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
28801 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
28804 * gimplify.c (gimplify_init_constructor): Always emit a
28805 side-effecting constructor.
28807 2015-04-17 Tom de Vries <tom@codesourcery.com>
28809 PR tree-optimization/64950
28810 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
28811 in cfun->curr_properties.
28812 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
28813 if we generate an IFN_VA_ARG.
28814 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
28815 function if PROP_gimple_lva is not set in src function.
28817 2015-04-17 Tom de Vries <tom@codesourcery.com>
28818 Michael Matz <matz@suse.de>
28820 PR tree-optimization/64950
28821 * gimple-iterator.c (update_modified_stmts): Remove static.
28822 * gimple-iterator.h (update_modified_stmts): Declare.
28823 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
28824 (gimplify_va_arg_internal): New function.
28825 (gimplify_va_arg_expr): Use IFN_VA_ARG.
28826 * gimplify.h (gimplify_va_arg_internal): Declare.
28827 * internal-fn.c (expand_VA_ARG): New unreachable function.
28828 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
28829 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
28830 (expand_ifn_va_arg): New function.
28831 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
28832 (pass_stdarg::execute): Call expand_ifn_va_arg.
28833 (pass_data_lower_vaarg): New pass_data.
28834 (pass_lower_vaarg): New gimple_opt_pass.
28835 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
28836 (make_pass_lower_vaarg): New function.
28837 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
28838 properties_required field.
28839 * passes.def (all_passes): Add pass_lower_vaarg.
28840 * tree-pass.h (PROP_gimple_lva): Add define.
28841 (make_pass_lower_vaarg): Declare.
28843 2015-04-17 Tom de Vries <tom@codesourcery.com>
28845 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
28846 * calls.c (call_expr_flags): Same.
28848 2015-04-17 Tom de Vries <tom@codesourcery.com>
28850 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
28851 (pass_stdarg::execute): ... here.
28853 2015-04-17 Tom de Vries <tom@codesourcery.com>
28854 Michael Matz <matz@suse.de>
28856 * tree-cfg.c (make_blocks_1): Factor out of ...
28857 (make_blocks): ... here.
28858 (make_edges_bb): Factor out of ...
28859 (make_edges): ... here.
28860 (gimple_find_sub_bbs): New function.
28861 * tree-cfg.h (gimple_find_sub_bbs): Declare.
28863 2015-04-17 Tom de Vries <tom@codesourcery.com>
28865 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
28867 2015-04-17 Yury Gribov <y.gribov@samsung.com>
28869 * asan.c (set_sanitized_sections): New function.
28870 (section_sanitized_p): Ditto.
28871 (asan_protect_global): Optionally sanitize user-defined
28873 * asan.h (set_sanitized_sections): Declare new function.
28874 * common.opt (fsanitize-sections): New option.
28875 * doc/invoke.texi (-fsanitize-sections): Document new option.
28876 * opts-global.c (handle_common_deferred_options): Handle new
28879 2015-04-17 Jakub Jelinek <jakub@redhat.com>
28882 * dwarf2out.c (loc_list_from_tree): Return NULL
28883 for DEBUG_EXPR_DECL.
28885 2015-04-17 Christian Bruel <christian.bruel@st.com>
28887 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
28890 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
28892 * ira-color.c (setup_left_conflict_sizes_p): Do not process
28893 node itself when computing left conflict subnode size.
28895 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
28897 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
28898 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
28899 *fop_<mode>_1_sse using enabled attribute. Use
28900 register_mixssei387nonimm_operand operand 1 predicate. Change
28901 alternative 3 constraints from "x" to "v".
28903 2015-04-16 Richard Biener <rguenther@suse.de>
28905 PR tree-optimization/65774
28906 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
28907 bit-value tracking on.
28909 2015-04-16 Richard Biener <rguenther@suse.de>
28911 PR tree-optimization/64277
28912 * tree-vrp.c (check_array_ref): Fix anti-range handling,
28913 simplify upper bound handling.
28914 (search_for_addr_array): Simplify.
28915 (check_array_bounds): Handle ADDR_EXPRs here.
28916 (check_all_array_refs): Simplify.
28918 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
28920 * config/i386/i386.c (print_reg): Rewrite function.
28922 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28924 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
28925 Invert the condition.
28927 2015-04-16 Renlin Li <renlin.li@arm.com>
28929 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
28930 simplifications for UNSIGNED_FLOAT.
28932 2015-04-16 Nick Clifton <nickc@redhat.com>
28934 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
28936 (enum rl78_cpu_type): New.
28937 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
28938 (umulhi3_shift_virt): Remove m constraint from operand 1.
28939 (umulqihi3_virt): Likewise.
28940 * config/rl78/rl78.c (rl78_option_override): Add code to process
28941 -mcpu and -mmul options.
28942 (rl78_alloc_physical_registers): Add code to handle divhi and
28943 divsi valloc attributes.
28944 (set_origin): Likewise.
28945 * config/rl78/rl78.h (RL78_MUL_G14): Define.
28946 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
28947 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
28949 (ASM_SPEC): Pass -mcpu on to assembler.
28950 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
28951 (mulqi3_rl78): Likewise.
28952 (mulhi3_g13): Likewise.
28953 (mulhi3): Generate the G13 or G14 versions of the insn directly.
28954 (mulsi3): Likewise.
28955 (mulhi3_g14): Add clobbers of AX and BC.
28956 (mulsi3_g14): Likewise.
28957 (mulsi3_g13): Likewise.
28958 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
28959 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
28960 * config/rl78/rl78.opt (mmul): Initialise value to
28962 (mcpu): New option.
28963 (m13, m14, mrl78): New option aliases.
28964 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
28965 (MULTILIB_DIRNAMES): Add g13 and g14.
28966 * doc/invoke.texi: Document -mcpu and -mmul options.
28968 2015-04-16 Richard Biener <rguenther@suse.de>
28970 * tree-ssa-ccp.c (likely_value): See if we have operands that
28971 are marked as never simulate again and return CONSTANT in this
28973 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
28974 not have any operands that will be simulated again as
28975 not being simulated again.
28977 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
28979 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
28980 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
28981 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
28983 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
28985 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
28986 *float<SWI48:mode><MODEF:mode>2_sse.
28987 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
28989 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
28992 2015-04-15 Tom de Vries <tom@codesourcery.com>
28995 * function.c (push_dummy_function): New function.
28996 (init_dummy_function_start): Use push_dummy_function.
28997 (pop_dummy_function): New function. Factored out of ...
28998 (expand_dummy_function_end): ... here.
28999 * function.h (push_dummy_function, pop_dummy_function): Declare.
29000 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
29001 pop_dummy_function.
29002 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
29004 2015-04-15 Jeff Law <law@redhat.com>
29006 PR tree-optimization/47679
29007 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
29008 need for forward declaration in upcoming changes.
29009 (record_conditions, record_edge_info): Likewise.
29011 PR rtl-optimization/42522
29012 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
29013 SIGN_EXTRACT as a whole object rather than simplifying
29016 2015-04-15 Jakub Jelinek <jakub@redhat.com>
29019 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
29020 and GIMPLE_PREDICT use break instead of return true. For
29021 GIMPLE_EH_DISPATCH, compare dispatch region.
29023 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
29025 * doc/extend.texi (__sync Builtins): Simplify some text. Update
29026 details about the implementation. Make clear preference for
29027 __atomic builtins. Reduce possibility of future change.
29029 2015-04-15 Nick Clifton <nickc@redhat.com>
29031 * config/rx/rx.opt (mallow-string-insns): New option.
29032 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
29033 builtin if string instructions are denied.
29034 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
29035 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
29037 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
29038 * config/rx/rx.md (movstr): Enable pattern only if string
29039 instructions are allowed.
29040 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
29041 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
29042 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
29043 (MULTILIB_DIRNAMES): Add no-strings.
29044 * doc/invoke.texi: Document -mno-allow-string-insns.
29046 2015-04-15 Alan Modra <amodra@gmail.com>
29050 PR middle-end/36043
29051 * calls.c (load_register_parameters): Don't load past end of
29052 mem unless suitably aligned.
29054 2015-04-15 Nick Clifton <nickc@redhat.com>
29056 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
29057 decrement instruction as being frame related.
29058 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
29060 If zero extending a function address enclose the operation in
29062 (rl78_preferred_reload_class): New function.
29063 (TARGET_PREFERRED_RELOAD_CLASS): Define.
29064 * config/rl78/rl78.md: Remove useless constraints in expanders.
29065 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
29066 (mulhi3_rl78): Likewise.
29067 (mulhi3_g13): Likewise.
29068 (mulsi3_rl78): Likewise.
29069 (es_addr): Move to before the multiply patterns.
29071 2015-04-15 Alan Modra <amodra@gmail.com>
29073 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
29074 and sequence_stack. Add seq.
29075 (seq_stack): Delete.
29076 * function.c (prepare_function_start): Don't access x_last_insn.
29077 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
29078 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
29079 * emit_rtl.c (start_sequence, push_topmost_sequence,
29080 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
29081 sequence accessors.
29082 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
29083 remove_insn): Likewise. Simplify.
29084 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
29085 and pop_topmost_sequence.
29086 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
29088 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
29090 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
29093 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
29096 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
29098 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
29099 (LEGACY_INT_REGNO_P): Ditto.
29100 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
29101 (ANY_MASK_REG_P): Remove.
29102 (BND_REG_P): Rename from ANY_BND_REG_P.
29103 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
29104 legacy integer registers. Do not handle MMX_REG_P in a special way.
29105 Merge 64byte and 32byte SSE handling.
29107 2015-04-14 Nick Clifton <nickc@redhat.com>
29109 * expr.c (expand_assignment): Force an address offset computation
29110 into a register before changing its mode.
29111 (expand_expr_real_1): Likewise.
29113 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
29115 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
29116 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
29117 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
29118 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
29119 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
29120 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
29121 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
29122 and __aarch64_vget_lane_any.
29124 2015-04-14 Jakub Jelinek <jakub@redhat.com>
29126 PR rtl-optimization/65761
29127 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
29128 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
29130 2015-04-14 Richard Biener <rguenther@suse.de>
29132 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
29133 (graphite_can_represent_scev): Use POINTER_TYPE_P.
29135 2015-04-14 Richard Biener <rguenther@suse.de>
29137 PR tree-optimization/65758
29138 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
29140 (ccp_lattice_meet): Likewise.
29141 (bit_value_unop): Likewise.
29142 (bit_value_binop): Likewise.
29143 (bit_value_assume_aligned): Likewise.
29145 2015-04-14 Christian Bruel <christian.bruel@st.com>
29147 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
29150 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
29152 PR tree-optimization/63387
29153 * match.pd ((x unord x) | (y unord y) -> (x unord y),
29154 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
29156 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
29158 * config/i386/predicates.md (any_QIreg_operand): Rename from
29159 q_regs_operand. Do not process subregs.
29160 (QIreg_operand): Use QI_REGNO_P predicate.
29161 (ext_QIreg_operand): Ditto.
29162 (ext_register_operand): Ditto.
29163 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
29164 (AND splitters): Ditto.
29165 (AND with -65536 splitter): Add SWI48 mode for operand 0.
29166 (AND with -256 splitter): Use any_QIreg_operand predicate and
29167 SWI248 mode for operand 0.
29168 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
29169 mode for operand 0.
29170 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
29172 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
29174 * doc/plugins.texi: Rewrite first introductory paragraph.
29176 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29178 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
29179 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
29181 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29183 * ipa-profie.c (ipa_profile): Check number of parameters
29184 and possible polymorphic call targets before
29187 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
29189 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
29190 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
29192 2015-04-13 Richard Biener <rguenther@suse.de>
29194 PR tree-optimization/65204
29195 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
29196 takens for bit-CCP.
29198 2015-04-13 Richard Biener <rguenther@suse.de>
29201 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
29202 and cond_not_taken_branch_cost to 4 and 2.
29203 (bdver2_cost): Likewise.
29204 (bdver3_cost): Likewise.
29205 (bdver4_cost): Likewise.
29207 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29209 * hash-table.h (hash_table constructor): Add mem stats.
29210 (alloc_entries): Likewise.
29212 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29214 * ipa-cp.c (ipcp_driver): Relase prev_edge.
29215 * passes.c (execute_one_pass): Only add transform if pass has one.
29217 2015-04-12 Joseph Myers <joseph@codesourcery.com>
29219 * config/i386/i386.c (ix86_option_override_internal): Don't set
29220 -fprefetch-loop-arrays if optimizing for size.
29222 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
29223 Gerald Pfeifer <gerald@pfeifer.com>
29225 * doc/contrib.texi (Contributors): Add Martin Jambor and
29228 2015-04-12 Jakub Jelinek <jakub@redhat.com>
29230 * BASE-VER: Set to 6.0.0.
29232 PR tree-optimization/65747
29233 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
29234 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
29236 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
29238 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
29239 sentence. Improve grammar.
29241 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
29243 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
29245 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
29248 * ipa-inline-transform.c (speculation_removed): Remove static var.
29249 (check_speculations): New function.
29250 (clone_inlined_nodes): Do not check spculations.
29251 (inline_call): Call check_speculations.
29252 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
29253 consider non-invariants.
29255 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
29256 Martin Liska <mliska@suse.cz>
29259 * ipa-icf.c (sem_item::compare_cgraph_references): function and
29260 variable can not match.
29261 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
29262 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
29264 2015-04-11 Jakub Jelinek <jakub@redhat.com>
29266 PR tree-optimization/65735
29267 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
29268 Remove visited_phis argument, add visited_bbs, avoid recursing into the
29269 same bb rather than just into the same phi node.
29270 (thread_through_normal_block): Adjust caller.
29272 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
29274 * doc/contrib.texi (Contributors): Add Ira Rosen.
29276 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
29278 * gcov.c (find_source): Fix miswording in error message.
29279 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
29280 (ix86_expand_sse_comi_round): Fix typo in error message.
29282 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
29284 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
29286 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
29288 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
29290 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
29293 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
29294 Print bad_spills_num and insn_pseudos_num.
29296 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29299 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
29300 when creating +1 values for SImode.
29302 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
29305 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
29308 2015-04-10 Jakub Jelinek <jakub@redhat.com>
29309 Iain Sandoe <iain@codesourcery.com>
29312 * configure: Regenerate.
29314 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
29317 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
29319 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
29321 * doc/contrib.texi (Contributors): Add John Marino.
29323 2015-04-09 Jakub Jelinek <jakub@redhat.com>
29325 PR tree-optimization/65709
29326 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
29327 TREE_TYPE (TREE_TYPE (t)).
29329 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
29332 * lra-int.h (lra_bad_spill_regno_start): New.
29333 * lra.c (lra_bad_spill_regno_start): New.
29334 (lra): Set up lra_bad_spill_regno_start. Set up
29335 lra_constraint_new_regno_start unconditionally.
29336 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
29339 2015-04-09 Marek Polacek <polacek@redhat.com>
29340 Jakub Jelinek <jakub@redhat.com>
29342 PR middle-end/65554
29343 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
29344 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
29347 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
29349 PR rtl-optimization/65693
29350 * combine.c (is_parallel_of_n_reg_sets): Move outside of
29353 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
29356 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
29357 device specs file if "device-specs%s" didn't resolve to a path.
29359 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
29362 * config/i386/i386.c (fixup_modeless_constant): New.
29363 (ix86_expand_args_builtin): Fixup modeless constant operand.
29364 (ix86_expand_round_builtin): Ditto.
29365 (ix86_expand_special_args_builtin): Ditto.
29366 (ix86_expand_builtin): Ditto.
29368 2015-04-09 Jakub Jelinek <jakub@redhat.com>
29371 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
29372 any pow2 integer in between 2 and 0x80000000U inclusive.
29374 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
29376 PR rtl-optimization/65693
29377 * combine.c (is_parallel_of_n_reg_sets): Change first argument
29378 from an rtx_insn * to an rtx.
29379 (try_combine): Adjust both callers. Use it once more.
29381 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29383 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
29384 (chkp_make_static_const_bounds): Search existing
29385 symbol by assembler name. Use make_decl_one_only.
29386 (chkp_get_zero_bounds_var): Remove node search which
29387 is now performed in chkp_make_static_const_bounds.
29388 (chkp_get_none_bounds_var): Likewise.
29390 2015-04-08 Michael Witten <mfwitten@gmail.com>
29392 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
29395 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29397 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
29399 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
29401 * doc/extend.texi (__sync Builtins): Fix grammar.
29403 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29405 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
29407 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
29409 * varasm.c (emit_local): Move definition of align.
29411 2015-04-08 Julian Brown <julian@codesourcery.com>
29413 * config/nvptx/mkoffload.c (process): Support variable mapping.
29415 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
29417 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
29419 (alpha_write_one_linkage): Correct typo.
29421 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29423 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
29425 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
29427 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
29429 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
29431 * tree-chkp.h (chkp_insert_retbnd_call): New.
29432 * tree-chkp.c (chkp_insert_retbnd_call): New.
29433 * ipa-split.c (insert_bndret_call_after): Remove.
29434 (split_function): Use chkp_insert_retbnd_call.
29435 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
29436 bounds for instrumented functions.
29438 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
29441 * calls.c (initialize_argument_information): When producing tail
29442 call also turn SSA_NAMES passed by references to original PARM_DECLs
29444 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
29447 * lra-remat.c (do_remat): Process input and non-input insn
29448 registers separately.
29450 2015-04-07 Jakub Jelinek <jakub@redhat.com>
29453 * valtrack.c (debug_lowpart_subreg): New function.
29454 (dead_debug_insert_temp): Use it.
29456 PR middle-end/65680
29457 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
29458 into signed HOST_WIDE_INT the same as negative bit_offset.
29460 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
29462 * ipa-comdats.c (ipa_comdats): Visit all thunks
29463 to set proper comdat group.
29465 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29468 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
29469 on constants for NEON VSTRUCT modes.
29471 2015-04-07 Jakub Jelinek <jakub@redhat.com>
29472 Iain Sandoe <iain@codesourcery.com>
29475 * configure: Regenerate.
29477 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
29480 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
29481 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
29482 that LFD is used to load double constants instead of LFS. Add
29483 defaults for all costs structures. Add comments for missing
29484 initialization fields.
29485 (size32_cost): Likewise.
29486 (size64_cost): Likewise.
29487 (rs64a_cost): Likewise.
29488 (mpccore_cost): Likewise.
29489 (ppc403_cost): Likewise.
29490 (ppc405_cost): Likewise.
29491 (ppc440_cost): Likewise.
29492 (ppc476_cost): Likewise.
29493 (ppc601_cost): Likewise.
29494 (ppc603_cost): Likewise.
29495 (ppc604_cost): Likewise.
29496 (ppc604e_cost): Likewise.
29497 (ppc620_cost): Likewise.
29498 (ppc630_cost): Likewise.
29499 (ppccell_cost): Likewise.
29500 (ppc750_cost): Likewise.
29501 (ppc7450_cost): Likewise.
29502 (ppc8540_cost): Likewise.
29503 (ppce300c2c3_cost): Likewise.
29504 (ppce500mc_cost): Likewise.
29505 (ppce500mc64_cost): Likewise.
29506 (ppce5500_cost): Likewise.
29507 (ppce6500_cost): Likewise.
29508 (titan_cost): Likewise.
29509 (power4_cost): Likewise.
29510 (power6_cost): Likewise.
29511 (power7_cost): Likewise.
29512 (power8_cost): Likewise.
29513 (ppca2_cost): Likewise.
29514 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
29516 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
29517 instead of XXLOR to copy SFmode to clear out dirty bits created
29518 when SFmode denormals are generated.
29519 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
29520 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
29522 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
29524 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
29525 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
29526 * config/aarch64/aarch64-tune.md: Regenerate.
29528 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
29530 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
29531 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
29532 * config/arm/arm-cores.def (exynos-m1): New core.
29533 * config/arm/arm-tune.md: Regenerate.
29534 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
29535 * config/arm/bpabi.h: Likewise.
29537 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
29539 * ipa-cp (set_single_call_flag): Remove too
29540 restrictive assert.
29542 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
29544 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
29545 GOMP_offload_unregister from the destructor.
29547 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
29549 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
29550 flags for instrumentation thunk.
29551 (chkp_produce_thunks): Likewise.
29553 2015-04-05 Martin Liska <mliska@suse.cz>
29556 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
29557 has computed data structure.
29558 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29560 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
29562 * invoke.texi (inline-unit-growth): Increase growth to 20%
29563 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
29565 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
29568 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
29570 (lra_rematerialization_iter): New.
29571 * lra.c (lra): Initialize lra_rematerialization_iter.
29572 Stop updating lra_constraint_new_regno_start after switching of
29573 inheritance and rematerialization.
29574 * lra-remat.c (lra_rematerialization_iter): New.
29575 (lra_remat): Add printing pass iteration. Do rematerialization
29576 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
29578 2015-04-04 Richard Biener <rguenther@suse.de>
29580 PR tree-optimization/64909
29581 PR tree-optimization/65660
29582 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
29583 to take a cost vector for scalar iteration cost.
29584 (vect_get_single_scalar_iteration_cost): Likewise.
29585 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
29586 Compute the scalar iteration cost into a cost vector.
29587 (vect_get_known_peeling_cost): Use the scalar cost vector to
29588 account for the cost of the peeled iterations.
29589 (vect_estimate_min_profitable_iters): Likewise.
29590 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
29593 2015-04-04 Alan Modra <amodra@gmail.com>
29597 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
29598 0.0 constant unless TARGET_VSX.
29599 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
29602 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29605 * ipa-inline-transform.c (inline_call): Skip sanity check to work
29608 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29611 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
29612 speculative indirect edges to avoid ordering issue.
29614 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
29617 * ipa-inline.c (edge_badness): Add combined size to the denominator.
29619 2015-04-03 Jakub Jelinek <jakub@redhat.com>
29621 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
29622 TYPE_ARTIFICIAL on the .omp_data* types.
29624 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29626 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
29627 instrumentation thunks.
29629 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29631 * config/i386/i386.c (ix86_expand_call): Avoid nested
29632 PARALLEL in returned call value.
29634 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29636 * lto-cgraph.c (input_cgraph_1): Always link instrumented
29637 assembler name with original one.
29639 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29641 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
29643 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29645 Revert parts of r216820.
29646 * config/i386/i386.md (movqi_internal): Correct type calculation
29647 for alternatives 3 and 5.
29649 2015-04-02 Jakub Jelinek <jakub@redhat.com>
29651 PR preprocessor/61977
29652 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
29653 predefine __vector/__bool/__pixel macros nor context sensitive
29654 macros for CLK_ASM.
29655 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
29657 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
29659 * config/pa/pa.c (pa_output_move_double): Directly handle register
29660 indexed memory operand. Simplify handling of scaled register indexed
29663 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
29666 * config/i386/linux-common.h (MPX_SPEC): New.
29667 (CHKP_SPEC): Add MPX_SPEC.
29668 * doc/invoke.texi (-fcheck-pointer-boudns): Document
29669 possible issues with '-z bndplt' support in linker.
29671 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
29673 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
29674 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
29675 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
29676 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
29677 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
29679 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
29681 * config/i386/sync.md (UNSPEC_MOVA): Remove.
29682 (atomic_load<mode>): Change operand 0 predicate to
29683 nonimmediate_operand and fix up the destination when needed.
29685 (atomic_loaddi_fpu): Use UNSPEC_LDA.
29686 (atomic_store<mode>): Change operand 1 predicate to
29687 nonimmendate_operand and move the source to register when needed.
29689 (atomic_store<mode>_1): Use UNSPEC_STA.
29690 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
29691 Fix moves from memory operand. Use UNSPEC_STA.
29693 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
29695 * expmed.c (strict_volatile_bitfield_p): Check that the access will
29696 not cross a MODESIZE boundary.
29697 (store_bit_field, extract_bit_field): Added assertions in the
29698 strict volatile bitfields code path.
29700 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
29703 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
29704 Increase args array size by one to avoid buffer overflow.
29706 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
29708 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
29710 * ipa-inline.c (edge_badness): Add wrapper penalty.
29711 (sum_callers): Move up.
29712 (inline_small_functions): Set single_caller.
29713 * ipa-inline.h (inline_summary): Add single_caller.
29714 * ipa-split.c (split_function): Set split_part.
29715 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
29716 * cgraph.h (cgraph_node): Add split_part.
29718 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
29721 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
29722 Do not split operands 0 and operands 2 to halfmode.
29723 (atomic_compare_and_swap<mode>): Update for
29724 atomic_compare_and_swap<dwi>_doubleword changes.
29726 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
29728 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
29729 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
29730 no caching is done.
29732 2015-03-31 Martin Liska <mliska@suse.cz>
29735 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
29736 has already filled up function summary.
29737 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
29739 2015-03-31 Richard Biener <rguenther@suse.de>
29741 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
29744 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
29746 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
29748 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
29749 (s390_asm_output_function_label): Adapt to new signature of
29750 s390_function_num_hotpatch_hw
29751 Optimise the code generating assembler output.
29752 Add comments to assembler file.
29754 2015-03-31 Richard Biener <rguenther@suse.de>
29756 PR middle-end/65626
29757 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
29758 of the noreturn call so it is last and cleanup_control_flow_bb
29759 can do the CFG part.
29761 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
29764 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
29765 same_comdat_group for external symbols.
29766 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
29767 infinite same_comdat_group traversal loop.
29769 2015-03-31 Jakub Jelinek <jakub@redhat.com>
29772 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
29773 automatically to $headers.
29775 2015-03-30 Jakub Jelinek <jakub@redhat.com>
29778 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
29779 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
29781 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
29783 * ipa-prop.c (param_type_may_change_p): Likewise.
29784 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
29785 (remove_unused_scope_block_p): Add in_ctor_dtor_block
29786 argument. Before inlining, preserve
29787 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
29788 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
29790 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
29792 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29795 * ipa-inline.c (edge_badness): Base denominator on callee's
29798 2015-03-27 Martin Jambor <mjambor@suse.cz>
29801 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
29802 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
29803 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
29804 node_calling_single_call.
29805 * ipa-cp.c (count_callers): New function.
29806 (set_single_call_flag): Likewise.
29807 (initialize_node_lattices): Count callers and set single_flag_call if
29809 (incorporate_penalties): New function.
29810 (good_cloning_opportunity_p): Use it, dump new flags.
29811 (propagate_constants_topo): Set node_within_scc flag if appropriate.
29812 * doc/invoke.texi (ipa-cp-recursion-penalty,
29813 ipa-cp-single-call-pentalty): Document.
29815 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29818 * symtab.c (symtab_node::get_partitioning_class): Register vars
29820 * varpool.c (symbol_table::output_variables) Do not assemble unefined
29821 decls for non-symbols.
29823 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
29826 * output.h (default_binds_local_p_2): New.
29827 * varasm.c (default_binds_local_p_2): Renamed to ...
29828 (default_binds_local_p_3): This. Don't return true on protected
29829 data symbol if protected data may be external.
29830 (default_binds_local_p): Use default_binds_local_p_3.
29831 (default_binds_local_p_1): Likewise.
29832 (default_binds_local_p_2): New.
29833 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
29834 default_binds_local_p_2 if TARGET_MACHO is undefined.
29836 2015-03-27 Jakub Jelinek <jakub@redhat.com>
29839 * config/i386/i386.c (legitimize_pic_address): If base
29840 is SYMBOL_REF or LABEL_REF using %rip addressing, force
29841 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
29843 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29846 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
29849 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
29852 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
29853 of optimized out indirect call.
29854 (redirect_to_unreachable): Always build symbol table node for
29855 BUILT_IN_UNREACHABLE
29857 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
29860 * ira-costs.c (record_reg_classes): Process all constraint string
29863 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
29865 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
29869 * config/c6x/constraints.md (S3): New constraint.
29870 * config/c6x/c6x.md (real_jump): Use it.
29872 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29874 PR middle-end/65595
29875 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
29876 do redirection if the call is not optimized out.
29878 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
29881 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
29882 (fchkp-check-incomplete-type): Add LTO.
29883 (fchkp-zero-input-bounds-for-main): Likewise.
29884 (fchkp-first-field-has-own-bounds): Likewise.
29885 (fchkp-narrow-bounds): Likewise.
29886 (fchkp-narrow-to-innermost-array): Likewise.
29887 (fchkp-use-static-bounds): Likewise.
29888 (fchkp-use-static-const-bounds): Likewise.
29889 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
29891 2015-03-27 Marek Polacek <polacek@redhat.com>
29893 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
29895 2015-03-27 Marek Polacek <polacek@redhat.com>
29898 * ubsan.c (ubsan_create_edge): New function.
29899 (instrument_bool_enum_load): Call it.
29900 (instrument_nonnull_arg): Likewise.
29901 (instrument_nonnull_return): Likewise.
29902 (instrument_object_size): Likewise.
29904 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29906 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
29909 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29912 * lto-streamer.h (class lto_location_cache): New.
29913 (struct data_in): Add location_cache.
29914 (lto_input_location): Update prototype.
29915 (stream_input_location_now): New.
29916 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
29917 pointer to location.
29918 (stream_input_location): Update.
29919 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
29920 (warn_odr): Apply location cache before warning.
29921 (lto_input_location): Update prototype.
29922 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
29923 Use stream_input_location_now.
29924 * lto-streamer-in.c (lto_location_cache::current_cache): New static
29926 (lto_location_cache::cmp_loc): New function.
29927 (lto_location_cache::apply_location_cache): New function.
29928 (lto_location_cache::accept_location_cache): New function.
29929 (lto_location_cache::revert_location_cache): New function.
29930 (lto_location_cache::input_location): New function.
29931 (lto_input_location): Do location caching.
29932 (stream_input_location_now): New function.
29933 (input_eh_region, input_struct_function_base): Use
29934 stream_input_location_now.
29935 (lto_data_in_create): use new.
29936 (lto_data_in_delete): Use delete.
29937 * tree-streamer-in.c (unpack_ts_block_value_fields,
29938 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
29939 lto_input_ts_exp_tree_pointers): Update for cached location api.
29941 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29944 * passes.def: Add pass_nothrow.
29945 * ipa-pure-const.c: (pass_data_nothrow): New.
29946 (pass_nothrow): New.
29947 (pass_nothrow::execute): New.
29948 (make_pass_nothrow): New.
29949 * tree-pass.h (make_pass_nothrow): Declare.
29951 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29953 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
29954 edge to change by speculation resolution or redirection.
29955 (edge_set_predicate): Likewise.
29956 (inline_summary_t::duplicate): Likewise.
29957 (remap_edge_summaries): Likewise.
29959 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29961 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
29963 (can_inline_edge_p): Relax option matching for always inline functions.
29965 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
29968 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
29969 Check operand 4 and operand 0 for equality.
29970 (avx512f_vextract<shuffletype>32x4_1_maskm):
29971 Check operand 6 and operand 0 for equality.
29972 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
29974 (vec_extract_hi_<mode>_maskm): Ditto.
29976 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29978 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
29979 dead calls back to live.
29980 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
29982 (cgraph_node::verify_node): ... here; verify only callee edges,
29984 * cif-code.def (CILK_SPAWN): New code.
29986 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
29988 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
29989 (edge_set_predicate): Use it to mark unreachable edges.
29990 (inline_summary_t::duplicate): Remove unnecesary code.
29991 (remap_edge_summaries): Likewise.
29992 (dump_inline_summary): Report contains_cilk_spawn.
29993 (compute_inline_parameters): Compute contains_cilk_spawn.
29994 (inline_read_section, inline_write_summary): Stream
29995 contains_cilk_spawn.
29996 * ipa-inline.c (can_inline_edge_p): Do not touch
29997 DECL_STRUCT_FUNCTION that may not be available;
29998 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
29999 remove check for callee_fun->can_throw_non_call_exceptions and
30000 replace it by optimization attribute check; check for flag_exceptions.
30001 * ipa-inline-transform.c (inline_call): Maintain
30002 DECL_FUNCTION_PERSONALITY
30003 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
30005 2015-03-26 Jakub Jelinek <jakub@redhat.com>
30007 PR tree-optimization/65551
30008 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
30009 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
30011 2015-03-26 Richard Biener <rguenther@suse.de>
30013 PR middle-end/65555
30014 * tree-cfg.c (verify_gimple_call): Do not require a call to
30015 have no LHS if it wasn't recognized as control altering yet.
30017 2015-03-26 Jakub Jelinek <jakub@redhat.com>
30019 PR tree-optimization/64715
30020 * passes.def: Add another instance of pass_object_sizes before ccp1.
30021 * tree-object-size.c (pass_object_sizes::execute): In
30022 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
30023 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
30024 __bos result and the computed constant. Remove redundant
30025 checks, obsoleted by gimple_call_builtin_p test.
30027 * var-tracking.c (variable_tracking_main_1): Don't track
30028 variables for targetm.no_register_allocation targets.
30030 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
30032 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
30033 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
30035 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
30038 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
30039 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
30040 0.0 is correctly setup.
30041 (extenddftf2_internal): Likewise.
30043 2015-03-25 Sebastian Pop <s.pop@samsung.com>
30045 PR tree-optimization/65177
30046 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
30048 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
30049 edges not adjacent on the path to the original code.
30051 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
30054 * doc/install.texi (Building a native compiler): Document new
30055 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
30056 configuration assumes that the host supports the linker plugin.
30058 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
30061 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
30062 chain for generated call.
30064 2015-03-25 Richard Biener <rguenther@suse.de>
30066 * passes.c (pass_manager::execute_early_local_passes): Guard
30067 execution of pass_chkp_instrumentation_passes with
30068 flag_check_pointer_bounds.
30069 (pass_chkp_instrumentation_passes::gate): Likewise.
30071 2015-03-25 Martin Liska <mliska@suse.cz>
30073 PR tree-optimization/65538
30074 * symbol-summary.h (function_summary::~function_summary):
30075 Relese memory for allocated summaries.
30076 (function_summary::release): New function.
30078 2015-03-25 Jakub Jelinek <jakub@redhat.com>
30081 * lto-streamer-out.c (DFS::worklist): New struct.
30082 (DFS::worklist_vec): New data member.
30083 (DFS::next_dfs_num): Remove.
30084 (DFS::DFS): Rewritten using worklist instead of recursion,
30085 using most of code from DFS::DFS_write_tree.
30086 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
30087 pass it to DFS_write_tree calls.
30088 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
30089 quick initial checks push it into worklist_vec and return.
30091 2015-03-25 Richard Biener <rguenther@suse.de>
30093 PR middle-end/65519
30094 * genmatch.c (expr::gen_transform): Re-write to avoid
30095 using gimple_build.
30097 2015-03-25 Bin Cheng <bin.cheng@arm.com>
30099 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
30101 2015-03-25 Bin Cheng <bin.cheng@arm.com>
30103 * config/arm/arm.opt (print_tune_info): New option.
30104 * config/arm/arm.c (arm_print_tune_info): New function.
30105 (arm_file_start): Call arm_print_tune_info.
30106 * config/arm/arm-protos.h (struct tune_params): Add comment.
30107 * doc/invoke.texi (@item -mprint-tune-info): New item.
30108 (-mtune): mention it in ARM Option Summary.
30110 2015-03-25 DJ Delorie <dj@redhat.com>
30112 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
30115 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
30116 Martin Liska <mliska@suse.cz>
30118 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
30119 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
30120 (sem_item::add_type): New function.
30121 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
30122 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
30123 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
30124 (sem_function::equals_wpa): Fix typo.
30125 * ipa-icf.h (sem_item::add_type): New function.
30126 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
30129 2015-03-24 Jakub Jelinek <jakub@redhat.com>
30131 PR tree-optimization/65533
30132 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
30133 with swapped operands, call vect_free_slp_tree on
30134 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
30137 2015-03-24 Richard Biener <rguenther@suse.de>
30139 PR middle-end/65517
30140 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
30141 for fixup if necessary.
30143 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
30145 * doc/extend.texi (Function Attributes): Add @cindex entries
30146 for all attributes and regularize their format. Delete text
30147 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
30148 information about "eightbit_data", "tiny_data", and "model"
30149 variable attributes to the Variable Attributes section. Fix
30150 some obvious typos and copy-editing issues.
30151 (Variable Attributes, Type Attributes): Likewise add/fix
30152 @cindex entries for all attributes.
30154 2015-03-23 Jakub Jelinek <jakub@redhat.com>
30157 * tree-chkp.c (chkp_build_returned_bound): Ignore
30158 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
30160 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
30163 * config/sh/predicates.md (simple_mem_operand,
30164 displacement_mem_operand): Add test for reg.
30165 (short_displacement_mem_operand): Test for displacement_mem_operand
30166 before invoking sh_disp_addr_displacement.
30167 * config/sh/constraints.md (Sdd, Sra): Simplify.
30168 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
30169 Remove redundant displacement_mem_operand tests.
30171 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
30174 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
30175 the same -mmcu=MCU more than once.
30177 2015-03-23 Jakub Jelinek <jakub@redhat.com>
30180 * ipa-devirt.c: Remove duplicate demangle.h include.
30183 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
30185 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
30186 REG_POINTER on *destptr after adjusting it for prologue size.
30189 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
30190 ultimate_alias_target ()->order ints instead of
30191 ultimate_alias_target () pointers.
30193 2015-03-23 Richard Biener <rguenther@suse.de>
30195 PR tree-optimization/65518
30196 * tree-vect-stmts.c (vectorizable_load): Reject single-element
30197 interleaving cases we generate absymal code for.
30199 2015-03-23 Richard Biener <rguenther@suse.de>
30201 PR tree-optimization/65494
30202 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
30204 (vect_analyze_slp_instance): But do that here, always and once.
30206 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30208 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
30209 adding T or multiplying by T+1 and subracting T.
30211 2015-03-22 Jeff Law <law@redhat.com>
30213 PR rtl-optimization/64317
30214 * Makefile.in (OBJS): Add gcse-common.c
30215 * gcse.c: Include gcse-common.h
30216 (struct modify_pair_s): Move structure definition to gcse-common.h
30217 (compute_transp): Move function to gcse-common.c.
30218 (canon_list_insert): Similarly.
30219 (record_last_mem_set_info): Break out some code and put it into
30220 gcse-common.c. Call into the new common code.
30221 (compute_local_properties): Pass additional arguments to compute_transp.
30222 * postreload-gcse.c: Include gcse-common.h and df.h
30223 (modify_mem_list_set, blocks_with_calls): New variables.
30224 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
30225 (get_bb_avail_insn): Pass in the expression index too.
30226 (alloc_mem): Allocate memory for the new bitmaps and lists.
30227 (free_mem): Free memory for the new bitmaps and lists.
30228 (insert_expr_in_table): Record a bitmap index for each entry we
30230 (record_last_mem_set_info): Call into common code in gcse-common.c.
30231 (get_bb_avail_insn): If no available insn was found in the requested
30232 BB. If BB has a single predecessor, see if the expression is
30233 transparent in BB and available in that single predecessor.
30234 (compute_expr_transp): New wrapper for compute_transp.
30235 (eliminate_partially_redundant_load): Pass expression's bitmap_index
30236 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
30237 (gcse_after_reload_main): If there are elements in the hash table,
30238 then compute transparency for all the elements in the hash table.
30239 * gcse-common.h: New file.
30240 * gcse-common.c: New file.
30242 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
30244 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
30246 (System Headers): Likewise.
30248 (Traditional macros): Likewise.
30249 (Invocation): Likewise.
30250 (Option Index): Likewise.
30251 * doc/cppopts.texi (-M): Likewise.
30252 (-finput-charset): Likewise.
30253 (--help): Likewise.
30254 * doc.invoke.texi (AVR Options): Likewise.
30255 (V850 Options): Likewise.
30257 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
30260 * ipa-devirt.c: Include demangle.h
30261 (odr_type_d): Add field rtti_broken.
30262 (odr_subtypes_equivalent_p): Do not require name to match.
30263 (compare_virtual_tables): Fix typo; if type already has ODR violation,
30264 bypass the tests; be ready for function referneces in vtables that are
30265 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
30266 (warn_odr): Give up for nameless types.
30267 (warn_types_mismatch): Report mismatch in mangled names;
30268 report mismatch in anonymous namespaces; look into component types to
30269 give useful error; report when mismatch is dragged in from other ODR
30271 (odr_types_equivalent_p): Match types for being polymorphic; avoid
30272 duplicated diagnostics.
30273 (add_type_duplicate): Reorder checks so more informative ones come
30274 first; fix typo; do not output "the extra base is defined here" when
30276 (BINFO_N_BASE_BINFOS): Relax sanity check.
30278 2015-03-22 Martin Liska <mliska@suse.cz>
30279 Jakub Jelinek <jakub@redhat.com>
30281 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
30282 masks that can potentially include a builtin.
30283 (ix86_add_new_builtins): Introduce fast filter for isa values
30284 that cannot trigger builtin inclusion.
30286 2015-03-22 Martin Liska <mliska@suse.cz>
30288 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
30289 (sem_item::update_hash_by_local_refs): Likewise.
30290 (sem_variable::get_hash): Empty line is fixed.
30291 (sem_item_optimizer::execute): Include adding of hash references.
30292 (sem_item_optimizer::update_hash_by_addr_refs): New function.
30293 (sem_item_optimizer::build_hash_based_classes): Use local hash.
30294 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
30295 (sem_item::update_hash_by_local_refs): Likewise.
30297 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30300 * ipa-comdats.c (enqueue_references): Walk through thunks.
30301 (ipa_comdats): Likewise.
30302 (set_comdat_group_1): New function.
30304 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30307 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
30310 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
30311 Gerald Pfeifer <gerald@pfeifer.com>
30313 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
30315 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
30316 Sandra Loosemore <sandra@codesourcery.com>
30318 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
30319 function parameter declaration.
30320 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
30321 Update arguments to nios2_adjust_call_address().
30322 (sibcall_internal): Rename from *sibcall.
30323 (sibcall_value_internal): Rename from *sibcall_value.
30324 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
30325 (nios2_large_got_address): Add target temp reg parameter.
30326 (nios2_got_address): Adjust call to nios2_large_got_address, add
30327 force_reg around it.
30328 (nios2_load_pic_address): Add target temp reg parameter, replace call
30329 to nios2_got_address with corresponding code.
30330 (nios2_legitimize_constant_address): Update call to
30331 nios2_load_pic_address.
30332 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
30333 to use temp reg for PIC loading purposes.
30334 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
30335 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
30336 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
30338 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30340 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
30341 usage of "the @option{...}".
30342 (-Wopenmp-simd): Likewise.
30343 (-fsanitize-recover): Likewise.
30344 (-fsanitize-undefined-trap-on-error): Likewise.
30346 (tracer-dynamic-coverage-feedback): Likewise.
30347 (reorder-block-duplicate-feedback): Likewise.
30348 (loop-unroll-jam-size): Likewise.
30351 (-mabs=legacy): Likewise.
30352 (-mupper-regs-df): Likewise.
30353 (-mupper-regs-sf): Likewise.
30354 (-mpointers-to-nested-functions): Likewise.
30356 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30358 * doc/extend.texi (Cilk Plus Builtins): Add markup.
30360 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
30362 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
30363 additional index entries and cross-references.
30364 (-fchkp-check-incomplete-type): Likewise.
30365 (-fchkp-first-field-has-own-bounds): Likewise.
30366 (-fchkp-narrow-to-innermost-array): Likewise.
30367 (-fchkp-use-fast-string-functions): Likewise.
30368 (-fchkp-use-nochk-string-functions): Likewise.
30369 (-fchkp-use-static-const-bounds): Likewise.
30370 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
30371 (-fchkp-instrument-marked-only): Likewise.
30372 (-fchkp-use-wrappers): Likewise.
30373 (-static-libmpx): Likewise.
30374 (-static-libmpxwrappers): Likewise.
30375 * doc/extend.texi (bnd_legacy): Likewise.
30376 (bnd_instrument): Likewise.
30377 (bnd_variable_size): Likewise.
30378 (Pointer Bounds Checker builtins): Likewise.
30380 2015-03-21 Tom de Vries <tom@codesourcery.com>
30382 PR tree-optimization/65458
30383 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
30384 * cgraph.h (cgraph_node): Add parallelized_function field.
30385 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
30386 (input_overwrite_node): Read parallelized_function field.
30387 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
30388 parallelized_function on cgraph_node for child_fn.
30389 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
30390 Remove include of gt-tree-parloops.h.
30391 (parallelized_functions): Remove static variable.
30392 (parallelized_function_p): Rewrite using parallelized_function field of
30394 (create_loop_fn): Remove adding to parallelized_functions.
30395 * Makefile.in (GTFILES): Remove tree-parloops.c
30397 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
30399 PR rtl-optimization/64366
30400 * lra.c (lra_update_insn_regno_info): Consider regs in
30401 CALL_INSN_FUNCTION_USAGE memory.
30403 2015-03-20 Richard Biener <rguenther@suse.de>
30405 PR middle-end/64715
30406 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
30407 for type comparison and gcc_checking_assert.
30408 (chrec_fold_plus_poly_poly): Likewise.
30409 (chrec_fold_multiply_poly_poly): Likewise.
30410 (chrec_convert_1): Likewise.
30411 * gimplify.c (gimplify_expr): Remove premature folding of
30412 &X + CST to &MEM[&X, CST].
30414 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
30416 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
30418 (ipa_inline): Recompute inline_failed codes.
30419 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
30420 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
30423 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
30425 PR rtl-optimization/60851
30426 * recog.c (constrain_operands): Accept a pseudo register before reload
30427 for LRA enabled targets.
30429 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
30432 * config/rs6000/predicates.md (easy_fp_constant): Remove special
30433 -ffast-math handling that kept non-0 constants live in the RTL
30434 until reload. Remove logic testing the number of instructions it
30435 took to create a constant in a GPR that was never used, due to a
30436 test for soft-float earlier.
30437 (memory_fp_constant): Delete, no longer used.
30439 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
30440 alternatives for loading non-0 constants into GPRs for hard
30441 floating point that is no longer needed due to changes in
30442 easy_fp_constant. Add support for loading 0.0 into GPRs.
30443 (mov<mode>_hardfloat32): Likewise.
30444 (mov<mode>_hardfloat64): Likewise.
30445 (mov<mode>_64bit_dm): Likewise.
30446 (movtd_64bit_nodm): Likewise.
30447 (pre-reload move FP constant define_split): Delete define_split,
30448 since it is no longer used.
30449 (extenddftf2_internal): Remove GHF constraints that are not valid
30452 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
30454 PR rtl-optimization/63491
30455 * lra-constraints.c (check_and_process_move): Use src instead of
30456 sreg. Remove some dead code.
30458 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
30461 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
30462 (sem_variable::merge): Likewise.
30464 2015-03-19 Martin Liska <mliska@suse.cz>
30467 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
30468 all fields of cgraph_thunk_info.
30470 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
30472 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
30473 clone instrumented thunks.
30475 2015-03-19 Richard Biener <rguenther@suse.de>
30478 2015-03-10 Richard Biener <rguenther@suse.de>
30480 PR middle-end/63155
30481 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30482 * tree-ssa-coalesce.c: Include timevar.h.
30483 (attempt_coalesce): Handle graph being NULL.
30484 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30485 Split out abnormal coalescing to ...
30486 (perform_abnormal_coalescing): ... this function.
30487 (coalesce_ssa_name): Perform abnormal coalescing without computing
30489 (verify_ssa_coalescing_worker): New function.
30490 (verify_ssa_coalescing): Likewise.
30492 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
30493 Jakub Jelinek <jakub@redhat.com>
30496 * tsan.c (instrument_gimple): Clear tail call flag on
30499 2015-03-19 Jakub Jelinek <jakub@redhat.com>
30502 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
30503 call in the return bb.
30504 (find_split_points): Add RETURN_BB argument, don't call
30506 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
30507 if true append TSAN_FUNC_EXIT internal call after the call to
30508 the split off function.
30509 (execute_split_functions): Call find_return_bb here.
30510 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
30511 Adjust find_split_points and split_function calls.
30513 2015-03-18 DJ Delorie <dj@redhat.com>
30515 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
30516 (iorqi3_virt): Likewise.
30518 2015-03-18 Tom de Vries <tom@codesourcery.com>
30520 * tree-parloops.c (parallelize_loops): Make static.
30521 * tree-parloops.h (parallelize_loops): Remove extern declaration.
30523 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
30525 PR middle-end/64491
30527 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
30529 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
30530 condition would be removed due to undefined behaviour.
30532 2015-03-18 Martin Liska <mliska@suse.cz>
30535 * cgraph.c (cgraph_node::get_create): Remove unnecessary
30536 xstrdup_for_dump wrapper.
30537 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
30539 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
30540 with xstrdup_for_dump.
30541 (sem_variable::equals): Likewise.
30542 (sem_item_optimizer::read_section): Use symtab_node::name instead of
30544 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
30545 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
30546 symtab_node::asm_name with xstrdup_for_dump.
30547 (congruence_class::dump): Use symtab_node::name instead of
30549 * ipa-icf.h (symtab_node::name): Remove.
30550 (symtab_node::asm_name): Likewise.
30552 2015-03-18 Jakub Jelinek <jakub@redhat.com>
30554 PR tree-optimization/65450
30555 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
30557 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
30558 it instead of duplicate_ssa_name_ptr_info.
30561 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
30563 2015-03-18 Richard Biener <rguenther@suse.de>
30565 * tree-data-ref.h (struct access_matrix): Remove.
30566 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
30567 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
30568 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
30569 (am_vector_index_for_loop): Likewise.
30570 (struct data_reference): Remove access_matrix member.
30571 (DR_ACCESS_MATRIX): Remove.
30572 (lambda_vector_new): Add comment.
30573 (lambda_matrix_new): Use XOBNEWVEC.
30575 2015-03-18 Richard Biener <rguenther@suse.de>
30577 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
30578 (pass_ch::execute): Cleanup the CFG only if we did sth.
30579 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
30581 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30583 * expmed.c (synth_mult): Use std::swap instead of manually
30584 swapping algorithms.
30586 2015-03-18 Jakub Jelinek <jakub@redhat.com>
30589 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
30591 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
30594 * config/avr/avr.opt (-nodevicelib): New option.
30595 * doc/invoke.texi (AVR Options): Document it.
30596 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
30597 libgcc.a, libc.a, libm.a.
30598 * config/avr/specs.h: Same.
30599 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
30600 which don't (directly) depend on the device. Print more help.
30601 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
30602 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
30603 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
30605 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
30606 for specs file name.
30607 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
30608 * config/avr/avr-mcus.def: Adjust initializers and comments.
30610 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
30612 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
30613 DECL_ONE_ONLY to check if decl is one only.
30614 * ipa-split.c (consider_split): Limit splitt of one only functions.
30616 2015-03-16 Jakub Jelinek <jakub@redhat.com>
30618 PR tree-optimization/65427
30619 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
30621 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
30623 2015-03-16 Marek Polacek <polacek@redhat.com>
30625 * cgraph.h (add_new_static_var): Remove declaration.
30626 * varpool.c (add_new_static_var): Remove function.
30628 2015-03-16 Jakub Jelinek <jakub@redhat.com>
30630 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
30631 instead of vec<tree> * with vec_alloc and release for args.
30634 PR middle-end/65431
30635 * omp-low.c (delete_omp_context): Only splay_tree_delete
30636 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
30637 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
30639 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
30642 * cfgexpand.c (align_base): New function.
30643 (alloc_stack_frame_space): Call it.
30644 (expand_stack_vars): Align prev_frame to be sure
30645 data->asan_vec elements aligned properly.
30647 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
30649 PR middle-end/65409
30650 * expr.c (store_field): Do not do a direct block copy if the source is
30651 a PARALLEL with BLKmode.
30653 2015-03-16 Tom de Vries <tom@codesourcery.com>
30655 PR middle-end/65414
30657 2015-03-12 Tom de Vries <tom@codesourcery.com>
30659 PR rtl-optimization/64895
30660 * lra-lives.c (check_pseudos_live_through_calls): Use
30661 actual_call_used_reg_set instead of call_used_reg_set, if available.
30663 2015-03-16 Alan Modra <amodra@gmail.com>
30666 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
30667 Modify Z->r bswapdi splitter to use dest in place of scratch.
30668 In r->Z and Z->r bswapdi splitter rename word_high, word_low
30669 to word1, word2 and rearrange logic to suit.
30670 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
30671 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
30672 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
30673 Add one '?' on r->r. Modify Z->r splitter to avoid need for
30676 2015-03-14 Jakub Jelinek <jakub@redhat.com>
30678 PR tree-optimization/65369
30679 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
30680 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
30681 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
30683 PR tree-optimization/65418
30684 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
30685 are casts in the first PLUS_EXPR operand, ensure tbias and
30686 *totallowp are in the inner type.
30688 PR rtl-optimization/65401
30689 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
30690 argument. If true, adjust_address_nv of x with big-endian
30691 correction for the mode widening to GET_MODE (y).
30692 (make_field_assignment): Don't do MEM mode widening here.
30693 Use MEM_P instead of GET_CODE == MEM.
30695 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
30697 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
30698 the external decls.
30700 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30703 * config/arm/arm.c (arm_gen_constant, AND case): Use
30704 ARM_SIGN_EXTEND when constructing AND mask.
30706 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
30708 * graph.c (print_graph_cfg): Make function names visible and append
30709 parenthesis to it. Also make groups of basic blocks belonging to the
30710 same function visible.
30712 2015-03-12 Richard Biener <rguenther@suse.de>
30714 PR middle-end/44563
30715 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
30716 to avoid quadratic behavior with inline expansion splitting blocks.
30717 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
30718 with the successor if the predecessor will be merged with it.
30719 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
30720 entry block with its successor.
30722 2015-03-13 Richard Biener <rguenther@suse.de>
30724 PR middle-end/44563
30725 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
30726 (cleanup_tree_cfg_1): Do not call it.
30727 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
30728 (fixup_noreturn_call): Mark the stmt as control altering.
30729 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
30731 (pass_data_fixup_cfg): Produce a dump file.
30732 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
30733 (need_noreturn_fixup): New global.
30734 (pass_dominator::execute): Fixup queued noreturn calls.
30735 (optimize_stmt): Queue calls that became noreturn for fixup.
30736 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
30737 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
30738 (el_to_fixup): New global.
30739 (eliminate_dom_walker::before_dom_childre): Queue calls that
30740 became noreturn for fixup.
30741 (eliminate): Fixup queued noreturn calls.
30742 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
30743 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
30744 (substitute_and_fold_dom_walker::before_dom_children): Queue
30745 alls that became noreturn for fixup.
30746 (substitute_and_fold): Fixup queued noreturn calls.
30748 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
30750 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
30751 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
30752 are building; for methods check ODR type of class they belong to if
30753 they may lead to a polymorphic call.
30754 (sem_function::compare_polymorphic_p): Be bit smarter about testing
30755 when function may lead to a polymorphic call.
30756 (sem_function::compare_type_list): Remove.
30757 (sem_variable::equals): Update use of compatible_types_p.
30758 (sem_variable::parse_tree_refs): Remove.
30759 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
30761 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
30763 (func_checker::compatible_polymorphic_types_p): Break out from ...
30764 (unc_checker::compatible_types_p): ... here.
30765 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
30767 (unc_checker::compatible_types_p): Update.
30768 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
30771 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30773 PR rtl-optimization/65235
30774 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
30775 When first element of vec_concat is const_int, calculate its size
30776 using second element.
30778 2015-03-12 Richard Biener <rguenther@suse.de>
30780 PR middle-end/65270
30781 * fold-const.c (operand_equal_p): Fix ordering of resetting
30782 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
30784 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
30786 * config/s390/s390.c (s390_reorg): Move code to output nops after label
30788 (s390_asm_output_function_label): Likewise.
30789 * config/s390/s390.c (s390_asm_output_function_label):
30790 Fix function label alignment with -mhtopatch.
30791 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
30792 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
30793 ("nop_2_byte"): New define_insn.
30794 ("nop_4_byte"): Likewise.
30795 ("nop_6_byte"): Likewise.
30796 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
30797 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
30799 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
30802 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
30805 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
30808 * toplev.c (process_options): Restrict Pointer Bounds Checker
30809 usage with Address Sanitizer.
30811 2015-03-12 Richard Biener <rguenther@suse.de>
30813 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
30815 * omp-low.c (expand_omp_taskreg): Split block before removing
30817 (expand_omp_target): Likewise.
30818 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
30819 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
30820 stmt to split_block.
30822 2015-03-12 Tom de Vries <tom@codesourcery.com>
30824 PR rtl-optimization/64895
30825 * lra-lives.c (check_pseudos_live_through_calls): Use
30826 actual_call_used_reg_set instead of call_used_reg_set, if available.
30828 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
30830 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
30831 (cgraph_node::remove): Likewise.
30832 (cgraph_node::get_untransformed_body): Likewise.
30833 * varpool.c (varpool_node::remove): Likewise.
30834 (varpool_node::get_constructor): Add sanity check.
30836 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
30838 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
30840 (-fabi-compat-version): Likewise.
30841 (-ffriend-injection): Likewise.
30842 (-Wdeclaration-after-statement): Likewise.
30843 (-fomit-frame-pointer): Likewise.
30844 (-ftree-coalesce-inlined-vars): Likewise.
30845 (-fvisibility=): Likewise.
30846 * doc/extend.texi (Typeof): Likewise.
30847 (Zero Length): Likewise.
30848 (Escaped Newlines): Likewise.
30849 (Compound Literals): Likewise.
30850 (Function Attributes): Likewise.
30851 (Label Attributes): Likewise.
30852 (Type Attributes): Likewise.
30853 (Function Names): Likewise.
30854 (Other Builtins): Likewise.
30855 (Function Specific Option Pragmas): Likewise.
30856 (C++ Interface): Likewise.
30858 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
30860 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
30862 2015-03-11 Marek Polacek <polacek@redhat.com>
30864 PR tree-optimization/65388
30865 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
30867 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
30870 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
30871 * configure: Regenerate.
30872 * config.in: Regenerate.
30873 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
30874 [-mn-flash]: Document it.
30875 [__AVR_ARCH__]: Document avrtiny.
30877 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
30878 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
30879 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
30881 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
30883 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
30885 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
30888 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
30889 allow reloads of PLUS in floating point/VSX registers.
30891 2015-03-11 Junmo Park <junmoz.park@samsung.com>
30893 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
30894 crypto_sha256_fast.
30895 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
30897 2015-03-11 Richard Biener <rguenther@suse.de>
30899 PR tree-optimization/65310
30900 * tree-sra.c (build_ref_for_offset): Also preserve larger
30903 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
30905 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
30907 2015-03-10 Jakub Jelinek <jakub@redhat.com>
30910 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
30912 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
30914 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
30916 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
30917 (sem_function::equals_wpa): ... here.
30919 2015-03-10 Marek Polacek <polacek@redhat.com>
30920 Jakub Jelinek <jakub@redhat.com>
30923 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
30924 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
30927 2015-03-10 Jakub Jelinek <jakub@redhat.com>
30930 * config/rs6000/t-linux: For powerpc64* target set
30931 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
30933 2015-03-10 Richard Biener <rguenther@suse.de>
30935 PR middle-end/44563
30936 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
30937 for redirect_all_calls.
30939 2015-03-10 Marek Polacek <polacek@redhat.com>
30941 * gdbinit.in (pcfun): Define and document.
30943 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
30945 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
30946 of libgomp-plugin.h.
30947 (find_target_compiler): Support a case when the path to gcc is
30948 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
30949 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
30950 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
30952 (main): Use GCC_INSTALL_NAME as target_driver_name.
30953 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
30955 (mkoffload.o): Remove obsolete include path and defines.
30956 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
30958 2015-03-10 Richard Biener <rguenther@suse.de>
30960 PR middle-end/63155
30961 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
30962 * tree-ssa-coalesce.c: Include timevar.h.
30963 (attempt_coalesce): Handle graph being NULL.
30964 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
30965 Split out abnormal coalescing to ...
30966 (perform_abnormal_coalescing): ... this function.
30967 (coalesce_ssa_name): Perform abnormal coalescing without computing
30969 (verify_ssa_coalescing_worker): New function.
30970 (verify_ssa_coalescing): Likewise.
30972 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
30975 * config.gcc (extra_options) [avr]: Remove.
30976 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
30977 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
30978 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
30980 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
30981 (-mmcu=): Add Var and MissingArgError properties.
30983 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
30984 * config/avr/t-multilib: Regenerate.
30985 * config/avr/specs.h: New file.
30986 * config/avr/driver-avr.c: New file.
30987 * config/avr/genopt.sh: Remove file.
30988 * config/avr/avr-tables.opt: Remove file.
30989 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
30990 * config/avr/avr-c.c: Same.
30991 * avr-arch.h: Same.
30992 (avr_current_device): Remove proto.
30993 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
30994 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
30995 (EXTRA_SPEC_FUNCTIONS): Define.
30996 (avr_devicespecs_file): New specs function proto.
30997 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
30998 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
30999 (avr_current_device): Remove definition and usage.
31000 (avr_set_core_architecture): New static function.
31001 (avr_option_override): Use it.
31002 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
31003 (mcu_name): New static array.
31004 (comparator, avr_archs_str, avr_mcus_str): New static functions.
31005 (avr_inform_devices, avr_inform_core_architectures): New functions.
31006 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
31007 (avrlibc.h) [WITH_AVRLIBC]: Include.
31008 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
31009 (print_mcu): Rewrite from scratch.
31010 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
31011 Forward to avr-specific specs defined in device-specs file.
31012 * config/avr/t-avr (driver-avr.o): New rule.
31013 (avr-devices.o): Depend on avr-arch.h.
31014 (avr-mcus): No more depend on avr-tables.opt.
31015 (avr-tables.opt): Remove rule.
31016 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
31018 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31020 * c-family/c.opt (fchkp-use-wrappers): New.
31021 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
31022 (chkp_wrap_function): New.
31023 (chkp_build_instrumented_fndecl): Support wrapped
31025 * doc/invoke.texi (-fcheck-pointer-bounds): New.
31026 (-fchkp-check-incomplete-type): New.
31027 (-fchkp-first-field-has-own-bounds): New.
31028 (-fchkp-narrow-bounds): New.
31029 (-fchkp-narrow-to-innermost-array): New.
31030 (-fchkp-optimize): New.
31031 (-fchkp-use-fast-string-functions): New.
31032 (-fchkp-use-nochk-string-functions): New.
31033 (-fchkp-use-static-bounds): New.
31034 (-fchkp-use-static-const-bounds): New.
31035 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
31036 (-fchkp-check-read): New.
31037 (-fchkp-check-write): New.
31038 (-fchkp-store-bounds): New.
31039 (-fchkp-instrument-calls): New.
31040 (-fchkp-instrument-marked-only): New.
31041 (-fchkp-use-wrappers): New.
31042 (-static-libmpx): New.
31043 (-static-libmpxwrappers): New.
31045 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31047 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
31048 (CHKP_SPEC): Add wrappers library.
31049 * c-family/c.opt (static-libmpxwrappers): New.
31051 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
31053 * config/i386/linux-common.h (LIBMPX_LIBS): New.
31054 (LIBMPX_SPEC): New.
31056 * gcc.c (CHKP_SPEC): New.
31057 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
31058 * c-family/c.opt (static-libmpx): New.
31060 2015-03-10 Richard Biener <rguenther@suse.de>
31062 PR middle-end/44563
31063 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
31065 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
31066 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
31067 (cgraph_add_edge_to_call_site_hash): Likewise.
31068 (cgraph_node::get_edge): Likewise.
31069 (cgraph_edge::set_call_stmt): Likewise.
31070 (cgraph_edge::remove_caller): Likewise.
31072 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
31074 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
31075 (callee_saved_gpr_regs_size): ... this.
31076 (callee_saved_regs_first_regno): Rename to ...
31077 (callee_saved_first_gpr_regno): ... this.
31078 (callee_saved_regs_last_regno) Rename to ...
31079 (callee_saved_last_gpr_regno): ... this.
31080 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
31082 (nds32_initial_elimination_offset): Likewise.
31083 (nds32_expand_prologue): Likewise.
31084 (nds32_expand_epilogue): Likewise.
31085 (nds32_expand_prologue_v3push): Likewise.
31086 (nds32_expand_epilogue_v3pop): Likewise.
31087 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
31088 Adjust renamed variables.
31089 (nds32_output_stack_pop): Likewise.
31091 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
31093 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
31096 2015-03-10 Jakub Jelinek <jakub@redhat.com>
31098 PR rtl-optimization/65321
31099 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
31101 * var-tracking.c (use_narrower_mode): Likewise.
31103 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
31105 PR tree-optimization/65355
31106 * varasm.c (notice_global_symbol): Do not produce RTL.
31107 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
31109 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
31110 check for section anchors.
31112 2015-03-10 Alan Modra <amodra@gmail.com>
31115 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
31116 to be single-arch by default. Set cpu_is_64bit for powerpc64
31117 given --with-cpu=native.
31118 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
31119 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
31121 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
31122 rs6000_isa_flags rather than TARGET_64BIT.
31124 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
31125 Kaz Kojima <kkojima@gcc.gnu.org>
31127 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
31129 2015-03-09 Jakub Jelinek <jakub@redhat.com>
31132 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
31133 on a TREE_BINFO, instead use BINFO_TYPE.
31135 2015-03-09 Richard Biener <rguenther@suse.de>
31137 PR middle-end/65270
31138 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
31139 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
31140 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
31141 of that. When comparing dereferences compare alignment.
31142 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
31144 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
31146 * ipa-inline-analysis.c (check_callers): Check
31147 node->can_remove_if_no_direct_calls_and_refs_p.
31148 (growth_likely_positive): Reorganize to call
31149 can_remove_if_no_direct_calls_p later.
31150 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
31151 will_be_removed_from_program_if_no_direct_calls_p): Add
31152 will_inline parameter.
31153 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
31154 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31155 Handle inliner case correctly.
31157 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
31159 PR tree-optimization/63743
31160 * cfgexpand.c (reorder_operands): Also reorder if only second operand
31161 had its definition forwarded by TER.
31163 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
31166 * ipa-utils.h (types_odr_comparable): Add strict argument.
31167 * ipa-devirt.c: Fix whitespace;
31168 (odr_hasher): Remove.
31169 (odr_name_hasher, odr_vtable_hasher): New hashers.
31170 (can_be_name_hashed_p): New predicate.
31171 (hash_type_name): remove.
31172 (hash_odr_name): New.
31173 (odr_name_hasher::hash): new.
31174 (can_be_vtable_hashed_p): New.
31175 (hash_odr_vtable): New.
31176 (odr_vtable_hasher::hash): New.
31177 (types_same_for_odr): Add strict parameter.
31178 (types_odr_comparable): Likewise.
31179 (odr_name_hasher::equal): New.
31180 (odr_vtable_hasher::equal): New.
31181 (odr_name_hasher::remove): New.
31182 (odr_hash_type): Change to hash_table<odr_name_hasher>.
31183 (odr_vtable_hash_type): New.
31184 (odr_vtable_hash): New.
31185 (odr_subtypes_equivalent_p): Do strict comparsion.
31186 (add_type_duplicate): Merge type names; cleanup; avoid type
31188 (register_odr_type): Initialize vtable hash.
31189 (build_type_inheritance_graph): Likewise
31190 (get_odr_type): Reorg to use two hashes.
31191 (dump_possible_polymorphic_call_targets): Move sanity check after debug
31193 (ipa_devirt): Dump type_inheritance_graph.
31194 (types_same_for_odr): Add strict mode.
31196 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31199 * cgraph.h (symtab_node): Add definition_alignment,
31200 can_increase_alignment_p and increase_alignment.
31201 * symtab.c (symtab_node::can_increase_alignment_p,
31202 increase_alignment_1, symtab_node::increase_alignment,
31203 symtab_node::definition_alignment): New.
31204 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
31205 can_increase_alignment_p.
31206 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
31207 * tree-vect-stmts.c (ensure_base_align): Likewise.
31208 * varasm.c (function_section_1): Use definition_alignment.
31209 (assemble_start_function): Likewise.
31210 (emit_local): likewise.
31211 (build_constant_desc): Likewsie.
31212 (output_constant_def_contents): Likewise.
31213 (place_block_symbol): Likewise.
31214 (output_object_block): Likewise.
31216 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31219 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
31220 when outputting debug.
31222 2015-03-07 Marek Polacek <polacek@redhat.com>
31223 Martin Uecker <uecker@eecs.berkeley.edu>
31226 * doc/invoke.texi: Update description of -fsanitize=bounds.
31228 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
31230 * tree-ssa-phiopt.c (neg_replacement): Remove.
31231 (tree_ssa_phiopt_worker): Remove negate optimization.
31233 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31236 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
31238 2015-03-06 Richard Biener <rguenther@suse.de>
31240 PR middle-end/64928
31241 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
31242 and liveout_obstack members.
31243 (calculate_live_on_exit): Remove.
31244 (calculate_live_ranges): Change declaration.
31245 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
31246 (new_tree_live_info): Adjust.
31247 (calculate_live_ranges): Delete livein when not wanted.
31248 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
31249 Deal with partly deleted live info.
31250 (loe_visit_block): Remove temporary bitmap by using
31251 bitmap_ior_and_compl_into.
31252 (live_worklist): Adjust accordingly.
31253 (calculate_live_on_exit): Make static.
31254 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
31255 we do not need livein.
31257 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
31259 * real.c (real_from_string): Fix typo in assertion.
31261 2015-03-06 Alex Velenko <alex.velenko@arm.com>
31263 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
31266 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
31268 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
31270 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
31273 * lra-assigns.c (find_hard_regno_for): Rename to
31274 find_hard_regno_for_1. Add a new parameter.
31275 (find_hard_regno_for): New function using find_hard_regno_for_1.
31277 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
31279 PR rtl-optimization/65067
31280 * expmed.c (store_bit_field, extract_bit_field): Reworked the
31281 strict volatile bitfield handling.
31283 2015-03-05 Martin Liska <mliska@suse.cz>
31286 * ipa-icf.c (sem_variable::equals): Compare variables types.
31288 2015-03-05 Richard Henderson <rth@redhat.com>
31291 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
31292 correctly check weak symbol binding.
31294 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
31296 PR middle-end/65315
31297 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
31300 2015-03-05 Martin Liska <mliska@suse.cz>
31302 * ipa-inline.c (inline_small_functions): Set default value to
31303 prevent warning during bootstrap.
31304 * tree.h: Add pragma guard that ignores false positives during
31307 2015-03-05 Richard Biener <rguenther@suse.de>
31309 PR tree-optimization/65310
31310 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31311 Properly preserve alignment of the base of the access.
31313 2015-03-05 Richard Biener <rguenther@suse.de>
31316 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
31317 Compare dependence info.
31319 2015-03-05 Richard Biener <rguenther@suse.de>
31321 PR middle-end/65233
31322 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
31324 (walk_ssa_copies): Revert last chage. Instead do not walk
31325 SSA names registered for SSA update.
31327 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31330 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
31331 vtable references for their containing type.
31332 (sem_function::equals_wpa): Compare TYPE_RESTRICT
31333 and type attributes.
31335 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
31337 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
31338 before negating it.
31339 * stor-layout.c (finalize_record_size): Revert latest change.
31341 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
31343 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
31345 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31347 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
31348 for correct comdat handling.
31349 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
31351 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
31352 (used_from_object_file_p_worker): Remove.
31353 (cgraph_node::only_called_directly_or_alised): Add
31354 used_from_object_file_p.
31355 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
31356 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
31357 can_remove_if_no_direct_calls_and_refs_p.
31359 2015-03-04 Nick Clifton <nickc@redhat.com>
31361 * config/rl78/rl78.h (enum reg_class): Remove real registers from
31362 General register class.
31363 * config/rl78/rl78-real.md: Replace general register constraints
31364 with real+virtual register constraints.
31366 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31368 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
31369 from checking for -mhtm option.
31371 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
31373 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
31374 (struct ipa_sra_check_caller_data): Add has_thunk field.
31375 (ipa_sra_check_caller): Check for thunk.
31376 (ipa_sra_preliminary_function_checks): Give up on function with
31378 (ipa_early_sra): Use call_for_symbol_and_aliases.
31380 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
31383 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
31384 called for __stack_chk_guard symbol.
31386 2015-03-03 DJ Delorie <dj@redhat.com>
31388 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
31390 (*addhi3_real): Likewise.
31391 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
31392 pattern to match incrementing memory.
31393 * config/rl78/predicates.md (rl78_1_2_operand): New.
31394 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
31395 it's the same and only mem.
31396 (rl78_alloc_physical_registers_op2): If there's effectively only
31397 one MEM, transcode it into HL.
31398 (rl78_far_p): Reject addresses that aren't legitimate.
31400 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
31402 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
31405 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
31407 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
31409 Implement call0 ABI for xtensa
31410 * config/xtensa/constraints.md ("a" constraint): Include stack
31411 pointer in case of call0 ABI.
31412 ("q" constraint): Make empty in case of call0 ABI.
31413 ("D" constraint): Include stack pointer in case of call0 ABI.
31414 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
31415 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
31417 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
31419 (xtensa_regno_to_class): Make it a local variable in the
31420 function xtensa_regno_to_class.
31421 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
31422 macro, function prototype and implementation.
31423 (reg_nonleaf_alloc_order): Make it a local variable in the
31424 function order_regs_for_local_alloc.
31425 (xtensa_conditional_register_usage): New function.
31426 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
31427 (xtensa_valid_move): Allow direct moves to stack pointer
31428 register in call0 ABI.
31429 (xtensa_setup_frame_addresses): Only spill register windows in
31431 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
31432 call0 ABI respectively.
31433 (xtensa_function_arg_1): Only mark a7 register for copying in
31435 (xtensa_call_save_reg): New function.
31436 (compute_frame_size): Add space for callee saved register
31437 storage to the frame size in call0 ABI.
31438 (xtensa_expand_prologue): Generate code to set up stack frame
31439 and save callee-saved registers in call0 ABI.
31440 (xtensa_expand_epilogue): New function.
31441 (xtensa_set_return_address): New function.
31442 (xtensa_return_addr): Calculate return address in call0 ABI.
31443 (xtensa_builtin_saveregs): Only mark a7 register for copying and
31444 emit copying code in windowed ABI.
31445 (order_regs_for_local_alloc): Add preferred register allocation
31446 order for non-leaf function in call0 ABI.
31447 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
31448 (xtensa_asm_trampoline_template): Add trampoline generation for
31450 (xtensa_trampoline_init): Add trampoline initialization for
31452 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
31454 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
31455 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
31456 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
31457 ABI call-used registers.
31458 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
31459 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
31461 (REG_CLASS_CONTENTS): Include all registers into the preferred
31462 reload registers set, adjust the set in the
31463 xtensa_conditional_register_usage.
31464 (xtensa_regno_to_class): Drop variable declaration.
31465 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
31467 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
31469 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
31470 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
31471 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
31472 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
31473 location in call0 ABI.
31474 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
31475 stack adjustment size when handling exception.
31476 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
31477 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
31479 ("return" pattern): Generate ret.n/ret in call0 ABI.
31480 ("epilogue" pattern): Expand epilogue.
31481 ("nonlocal_goto" pattern): Use default in call0 ABI.
31482 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
31483 emit eh_set_a0_* depending on ABI.
31484 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
31485 ("eh_set_a0_call0", "blockage"): New patterns.
31487 2015-03-03 Martin Liska <mliska@suse.cz>
31490 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
31492 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
31495 * config/rs6000/rs6000-tables.opt: Regenerate table.
31497 2015-03-03 Renlin Li <renlin.li@arm.com>
31499 * doc/md.texi (@item ^): Change ? into ^.
31501 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
31503 * doc/tm.texi: Regenerated.
31505 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
31507 * builtins.c (expand_builtin_return_addr): Add
31508 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
31509 surrounding #ifdef.
31510 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
31512 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
31514 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
31516 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
31519 2015-03-03 Martin Jambor <mjambor@suse.cz>
31520 Eric Botcazou <ebotcazou@adacore.com>
31522 * tree-sra.c (ipa_sra_check_caller_data): New type.
31523 (has_caller_p): Removed.
31524 (ipa_sra_check_caller): New function.
31525 (ipa_sra_preliminary_function_checks): Use it.
31527 2015-03-03 Martin Liska <mliska@suse.cz>
31529 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
31530 instead of if branch.
31532 2015-03-03 Martin Liska <mliska@suse.cz>
31535 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
31537 2015-03-23 Jeff Law <law@redhat.com>
31539 PR tree-optimization/65241
31540 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
31541 hash table if INSERT is true.
31543 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31546 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
31548 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31551 * config/avr/avr.c (context.h, tree-pass.h): Include them.
31552 (avr_pass_data_recompute_notes): New static variable.
31553 (avr_pass_recompute_notes): New class.
31554 (avr_register_passes): New static function.
31555 (avr_option_override): Call it.
31557 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
31559 Fix various problems with specs file generation.
31562 * config.gcc (extra_gcc_objs) [avr]: Remove.
31563 * config/avr/driver-avr.c: Remove file.
31564 * config/avr/t-avr (driver-avr.o): Remove rule.
31565 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
31566 INCLUDES to build. Depend on TM_H.
31567 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
31568 build warnings. Fix non-matching types and non-existing %-codes.
31570 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
31571 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
31572 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
31573 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
31574 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
31575 (LIBGCC_SPEC): Remove definitions.
31577 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
31579 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
31580 to create a register in testing mode.
31582 2015-03-03 Martin Liska <mliska@suse.cz>
31583 Jan Hubicka <hubicka@ucw.cz>
31586 * cgraph.c (cgraph_node::has_thunk_p): New function.
31587 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
31588 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
31589 (sem_function::merge): Assert is changed.
31591 2015-03-03 Martin Liska <mliska@suse.cz>
31592 Martin Jambor <mjambor@suse.cz>
31595 * ipa-icf.c (sem_item_optimizer::execute): Change function
31596 return value to boolean.
31597 (sem_item_optimizer::merge_classes): Likewise.
31598 (ipa_icf_driver): Return TODO_remove_functions in case there's
31599 a merge operation processed.
31600 * ipa-icf.h: Change function return value to boolean.
31602 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
31605 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
31606 processor type for 64-bit little endian PowerPC.
31608 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
31609 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
31610 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
31611 printing built-in mask so it does not pass NULL pointers.
31613 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
31616 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
31619 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
31620 !ISA_HAS_FP_CONDMOVE.
31622 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
31624 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
31627 2015-03-02 Ulrich Drepper <drepper@gmail.com>
31629 * doc/invoke.texi (Options for Code Generation Conventions):
31630 Fix URL of DSO paper.
31632 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31635 * ipa-inline.c (check_callers): Looks for recursion.
31636 (inline_to_all_callers): Give up on uninlinable or recursive edges.
31637 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
31638 summary of inline clones.
31639 (do_estimate_growth_1): Fix recursion check.
31641 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31644 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
31647 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
31648 Aldy Hernandez <aldyh@redhat.com>
31651 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
31652 when checking TYPE_BINFO.
31654 2015-03-02 Richard Biener <rguenther@suse.de>
31657 * ipa-icf-gimple.c: Include builtins.h.
31658 (func_checker::compare_memory_operand): Compare base alignment.
31660 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
31663 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
31664 passed by reference.
31666 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
31669 * tree-chkp.c (chkp_check_lower): Don't check against
31670 zero bounds for already instrumented functions.
31671 (chkp_check_upper): Likewise.
31672 (chkp_fini): Clean pass local data to avoid wrong reusage.
31674 2015-02-28 Martin Liska <mliska@suse.cz>
31675 Jan Hubicka <hubicka@ucw.cz>
31677 * ipa-icf.c (sem_variable::equals): Improve debug output;
31678 get variable constructor.
31679 (sem_variable::parse): Do not filter out too early; give up on
31680 volatile and register vars.
31681 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
31683 * ipa-icf.h (sem_variable::init): Do not set ctor.
31684 (sem_variable::ctor): Remove.
31686 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
31688 PR middle-end/65233
31689 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
31691 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31693 * ipa-icf.c: Include stor-layout.h
31694 (sem_function::compare_cgraph_references): Rename to ...
31695 (sem_item::compare_cgraph_references): ... this one.
31696 (sem_variable::equals_wpa): New function
31697 (sem_variable::equals): Do not check stuff already verified by
31699 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
31700 * ipa-icf.h (sem_item): Add compare_cgraph_references.
31701 (sem_function): Remove compare_cgraph_references.
31702 (sem_variable): Turns equals_wpa into non-inline.
31704 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31706 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
31707 (sem_item::add_expr): New function.
31708 (sem_function::hash_stmt): Handle operands of most statements.
31709 (sem_variable::get_hash): Hash the actual constructor.
31710 * ipa-icf.h (sem_item): Add add_expr.
31711 (sem_function): Update prototype of hash_stmt
31713 2015-02-28 Martin Liska <mliska@suse.cz>
31714 Jan Hubicka <hubicka@ucw.cz>
31717 * ipa-icf-gimple.c (func_checker::compare_function_decl):
31719 (func_checker::compare_variable_decl): Skip symtab vars.
31720 (func_checker::compare_cst_or_decl): Update.
31721 * ipa-icf.c (sem_function::parse): Do not consider aliases.
31722 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
31723 use correct symtab predicates.
31724 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
31725 (sem_variable::parse): Update comment.
31726 (sem_item_optimizer::build_graph): Consider ultimate aliases
31729 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31731 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
31734 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31736 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
31737 (sem_variable::merge) Likewise.
31739 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31741 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
31742 target; also match flag_ipa_devirt.
31744 2015-03-01 Martin Liska <mliska@suse.cz>
31745 Jan Hubicka <hubicka@ucw.cz>
31747 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
31748 Validate variable alignment.
31749 * ipa-icf.c (sem_function::equals_private): Be more precise
31750 about non-common function attributes.
31751 (sem_variable::equals): Likewise.
31753 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31756 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
31757 across COMDAT group boundary.
31759 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31762 * ipa-icf.c (clear_decl_rtl): New function.
31763 (sem_function::merge): Clear RTL before forming alias.
31764 (sem_variable::merge): Clear RTL before forming alias.
31766 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
31769 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
31771 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
31773 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
31776 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31778 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
31779 a typo in the description.
31781 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31784 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31785 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
31786 * lra-constraints.c: Include "params.h".
31787 (EBB_PROBABILITY_CUTOFF): Use
31788 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
31789 (lra_inheritance): Use '<' instead of '<=' for
31790 EBB_PROBABILITY_CUTOFF.
31791 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
31794 2015-02-27 Martin Liska <mliska@suse.cz>
31796 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
31797 vector length condition.
31799 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
31801 * doc/extend.texi (x86 transactional memory intrinsics):
31802 Reorganize discussion of _xbegin. Clarify that the return
31803 value is a bit mask. Expand example and move to end of section.
31805 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31806 Aldy Hernandez <aldyh@redhat.com>
31808 PR rtl-optimization/65220
31809 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
31811 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
31814 * lra-remat.c (update_scratch_ops): New.
31815 (do_remat): Call it.
31816 * lra.c (lra_register_new_scratch_op): New. Take code from ...
31817 (remove_scratches): ... here.
31818 * lra-int.h (lra_register_new_scratch_op): New prototype.
31820 2015-02-27 Marek Polacek <polacek@redhat.com>
31823 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
31824 -Wformat-signedness anymore.
31826 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31828 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
31830 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
31832 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31834 * config/s390/s390.c (enum s390_builtin):
31835 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
31836 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
31837 (s390_init_builtins): Generate new builtin functions.
31838 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
31839 (s390_sfpc, s390_efpc): New pattern definitions.
31841 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
31843 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
31844 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
31845 (s390_builtin_decls): New array.
31846 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
31847 (s390_builtin_decl): New function.
31848 (TARGET_BUILTIN_DECL): Define macro.
31850 2015-02-27 Richard Biener <rguenther@suse.de>
31852 PR middle-end/63175
31853 * builtins.c (get_object_alignment_2): Make sure to re-apply
31854 the ANDed mask after recursing to its operand gets us a new
31855 misalignment bit position.
31857 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
31858 Martin Liska <mliska@suse.cz>
31861 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
31862 Use address_matters_p.
31863 (redirect_all_callers, set_addressable): New functions.
31864 (sem_function::merge): Reorganize and fix merging issues.
31865 (sem_variable::merge): Likewise.
31866 (sem_variable::compare_sections): Remove.
31867 * common.opt (fmerge-all-constants, fmerge-constants): Remove
31869 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
31871 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
31873 (address_matters_1): New function.
31874 (symtab_node::address_matters_p): New function.
31875 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
31876 check for merged flag.
31877 * cgraph.h (address_matters_p): Declare.
31878 (symtab_node::address_taken_from_non_vtable_p): Remove.
31879 (symtab_node::address_can_be_compared_p): New method.
31880 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
31881 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
31883 (comdat_can_be_unshared_p_1) Use address_matters_p.
31884 (update_vtable_references): Fix formating.
31885 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
31886 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
31887 * cgraphclones.c: Preserve merged and icf_merged flags.
31889 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
31891 * doc/extend.texi (Function Attributes): Fix spelling and typos.
31892 (Label Attributes): Likewise.
31893 (Cilk Plus Builtins): Likewise.
31894 (ARC SIMD Built-in Functions): Likewise.
31895 (ARM C Language Extensions (ACLE)): Likewise.
31896 (PowerPC Built-in Functions): Likewise.
31897 (PowerPC Hardware Transactional Memory Built-in Functions):
31900 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31902 PR tree-optimization/65216
31903 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
31904 new stmt and new SSA_NAME for lhs whenever the arguments have
31905 changed and weren't just swapped. Fix comment typo.
31907 PR tree-optimization/65215
31908 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
31909 for PDP endian targets.
31910 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
31911 Fix up formatting issues.
31912 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
31913 size is smaller than the original, adjust MEM_REF offset by the
31914 difference of sizes. Use is_gimple_mem_ref_addr instead of
31915 is_gimple_min_invariant test to avoid adding address temporaries.
31917 2015-02-26 Martin Liska <mliska@suse.cz>
31918 Jan Hubicka <hubicka@ucw.cz>
31921 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
31922 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
31923 (sem_item_optimizer::process_cong_reduction): Include division by
31924 sensitive references.
31925 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
31926 * ipa-ref.c (ipa_ref::address_matters_p): New function.
31927 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
31929 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
31932 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
31934 * config/avr/avr.c: Same.
31935 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
31936 Refuse any constant address not in 0..0xbf.
31937 * config/avr/avr.md (*mov<mode>, *movsf): Remove
31938 tiny_valid_direct_memory_access_range from insn conditions.
31939 (mov<mode>): Don't special-case expansion of avrtiny addresses.
31941 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
31944 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
31945 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
31946 * config/sh/predicates.md (const_logical_operand): New predicate.
31947 * config/sh/sh.md: Add new peephole2 patterns.
31949 2015-02-26 Marek Polacek <polacek@redhat.com>
31952 * ipa-inline.c (early_inliner): Recompute inline parameters.
31954 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
31957 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
31958 instructions with TImode operands are included in the analysis.
31960 2015-02-26 Sebastian Pop <s.pop@samsung.com>
31962 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
31963 of an EDGE_FSM_THREAD.
31965 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
31967 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
31969 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
31972 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
31974 2015-02-26 Sebastian Pop <s.pop@samsung.com>
31976 PR tree-optimization/65048
31977 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
31978 (thread_through_all_blocks): Call valid_jump_thread_path.
31979 Remove invalid FSM jump-thread paths.
31981 2015-02-26 Jakub Jelinek <jakub@redhat.com>
31983 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
31984 (ipa_write_optimization_summaries): Likewise.
31985 * tree-streamer.h: Include data-streamer.h.
31986 (streamer_mode_table): Declare extern variable.
31987 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
31988 * lto-streamer-out.c (lto_output_init_mode_table,
31989 lto_write_mode_table): New functions.
31990 (produce_asm_for_decls): Call lto_write_mode_table when streaming
31992 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
31993 (lto_create_simple_input_block): Add mode_table argument to the
31994 lto_input_block constructors.
31995 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
31997 * data-streamer-in.c (string_for_index): Likewise.
31998 * ipa-inline-analysis.c (inline_read_section): Likewise.
31999 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
32000 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
32001 * lto-streamer-in.c (lto_read_body_or_constructor,
32002 lto_input_toplevel_asms): Likewise.
32003 (lto_input_mode_table): New function.
32004 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
32005 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
32006 Use bp_pack_machine_mode.
32007 * real.h (struct real_format): Add name field.
32008 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
32009 (class lto_input_block): Add mode_table member.
32010 (lto_input_block::lto_input_block): Add mode_table_ argument,
32011 initialize mode_table.
32012 (struct lto_file_decl_data): Add mode_table field.
32013 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
32014 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
32015 unpack_ts_decl_common_value_fields,
32016 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
32017 * tree-streamer.c (streamer_mode_table): New variable.
32018 * real.c (ieee_single_format, mips_single_format,
32019 motorola_single_format, spu_single_format, ieee_double_format,
32020 mips_double_format, motorola_double_format,
32021 ieee_extended_motorola_format, ieee_extended_intel_96_format,
32022 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
32023 ibm_extended_format, mips_extended_format, ieee_quad_format,
32024 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
32025 decimal_single_format, decimal_double_format, decimal_quad_format,
32026 ieee_half_format, arm_half_format, real_internal_format): Add name
32028 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
32030 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
32033 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
32034 reordering for selective scheduling.
32036 2015-02-26 Terry Guo <terry.guo@arm.com>
32038 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
32039 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
32040 (arm_arch_no_volatile_ce): Declare new global variable.
32041 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
32042 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
32043 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
32044 (TARGET_NO_VOLATILE_CE): New macro.
32045 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
32046 volatile memory access in IT block
32048 2015-02-25 Kai Tietz <ktietz@redhat.com>
32050 PR tree-optimization/61917
32051 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
32052 that reduc_def_stmt is null.
32054 2015-02-25 Martin Liska <mliska@suse.cz>
32056 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
32057 hard register variables.
32059 2015-02-25 Kai Tietz <ktietz@redhat.com>
32062 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
32063 (symtab::noninterposable_alias): Likewise.
32065 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
32068 * config/i386/i386.c (ix86_function_arg_regno_p): Support
32070 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
32072 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
32075 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
32076 as split condition; force split via '#' in output pattern.
32078 2015-02-25 Richard Biener <rguenther@suse.de>
32079 Kai Tietz <ktietz@redhat.com>
32081 PR tree-optimization/61917
32082 * tree-vect-loop.c (vectorizable_reduction): Allow
32083 vect_internal_def without reduction to exit graceful.
32085 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
32088 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
32089 only with NONDEBUG_INSN_P.
32091 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
32093 Use variadic macros with avr-log.c.
32095 * config/avr/avr-protos.h (avr_vdump): New prototype.
32096 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
32097 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
32098 * config/avr/avr-log.c: Adjust comments.
32099 (avr_vdump): New function.
32100 (avr_vadump): Pass caller as 2nd argument instead of format string.
32101 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
32102 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
32104 2015-02-25 Jakub Jelinek <jakub@redhat.com>
32107 * target.def (target_option_stream_in): New target hook.
32108 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
32109 targetm.target_option.post_stream_in if non-NULL.
32110 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
32111 * doc/tm.texi: Updated.
32112 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
32114 (TARGET_OPTION_POST_STREAM_IN): Redefine.
32116 2015-02-24 Jeff Law <law@redhat.com>
32119 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
32120 of operand 0 and operand 2.
32121 (zero_cost_loop_end, loop_end): Similarly.
32123 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
32125 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
32128 2015-02-24 DJ Delorie <dj@redhat.com>
32130 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
32131 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
32132 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
32133 instead of hardcoding SImode.
32135 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
32137 * omp-low.c (create_omp_child_function): Tag entrypoint
32138 functions with a special attribute.
32140 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32143 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
32145 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
32147 PR rtl-optimization/65123
32148 * lra-remat.c (operand_to_remat): Check hard regs in insn
32151 2015-02-24 Nick Clifton <nickc@redhat.com>
32153 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
32156 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
32159 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
32160 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
32161 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
32162 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
32163 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
32164 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
32165 (BUILT_IN_GOACC_PARALLEL): Specify as
32166 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
32167 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
32168 * builtin-types.def
32169 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32170 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32171 Remove function types.
32172 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
32173 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
32174 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
32175 New function types.
32177 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
32179 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
32181 2015-02-24 Jakub Jelinek <jakub@redhat.com>
32183 PR tree-optimization/65170
32184 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
32185 if val[1] < 0, clear also val[2] and return 3.
32187 2015-02-24 Alan Modra <amodra@gmail.com>
32190 * config/rs6000/rs6000.c (get_memref_parts): Only return true
32191 when *base is a reg. Handle nested plus addresses. Simplify
32194 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
32196 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
32197 use natural alignment when optimizing for size.
32199 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
32202 * config/sh/sh.md (movsicc_true+3): Remove peephole.
32203 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
32204 * config/sh/sh.c (replace_n_hard_rtx): Remove.
32206 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
32209 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
32210 too big for a wide_int. Implement missing wrapping operation.
32212 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
32215 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
32216 instead of const_int 4294901760.
32218 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
32220 * config/avr/t-avr: Fix typo in comment.
32222 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
32224 * doc/rtl.texi (fma): Clarify documentation.
32226 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
32229 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
32230 over input_location.
32232 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32234 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
32235 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
32236 restrict alignments to absolute_biggest_alignment.
32237 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
32239 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
32240 * doc/tm.texi: Regenerate.
32241 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
32243 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
32246 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
32248 2015-02-20 Richard Biener <rguenther@suse.de>
32250 PR tree-optimization/65136
32251 * tree-ssa-propagate.c: Include cfgloop.h.
32252 (replace_phi_args_in): Avoid replacing loop latch edge PHI
32253 arguments with constants.
32255 2015-02-20 Jakub Jelinek <jakub@redhat.com>
32256 Martin Liska <mliska@suse.cz>
32259 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
32260 don't try to create_thunk if stdarg_p. If
32261 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
32262 redirect_callers if possible.
32263 (sem_item_optimizer::execute): Call unregister_hooks here...
32264 (ipa_icf_driver): ... instead of here.
32266 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32268 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
32269 Mark operand 0 as earlyclobber in 2nd alternative.
32270 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
32271 Write negated shift amount into QI lowpart operand 0 and use it
32273 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
32275 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32277 * cgraph.h (clone_function_name_1): Declare.
32278 * cgraphclones.c (clone_function_name_1): New function.
32279 (clone_function_name): Use it.
32280 * lto-partition.c: Include "stringpool.h".
32281 (must_not_rename, maybe_rewrite_identifier)
32282 (validize_symbol_for_target): New static functions.
32283 (privatize_symbol_name): Use must_not_rename.
32284 (promote_symbol): Call validize_symbol_for_target.
32285 (lto_promote_cross_file_statics): Likewise.
32286 (lto_promote_statics_nonwpa): Likewise.
32288 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
32291 * config/avr/avr.md (pushhi_insn): New insn.
32292 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
32294 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
32295 Jakub Jelinek <jakub@redhat.com>
32297 * tree-streamer.c (preload_common_nodes): Don't preload
32298 TI_VA_LIST* for offloading.
32299 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
32302 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
32304 * config/pa/pa.c (pa_emit_move_sequence): Always force
32305 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
32308 * config/pa/pa.c (pa_reloc_rw_mask): New function.
32309 (TARGET_ASM_RELOC_RW_MASK): Define.
32310 (pa_cannot_force_const_mem): Revert previous change.
32312 2015-02-19 Martin Jambor <mjmabor@suse.cz>
32313 Jan Hubicka <hubicka@ucw.cz>
32316 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
32317 across jump functions.
32319 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
32321 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
32323 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
32325 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
32327 2015-02-19 Richard Henderson <rth@redhat.com>
32329 PR middle-end/65074
32330 * varasm.c (default_binds_local_p_2): Don't test node->definition;
32331 test DECL_EXTERNAL independent of symtab_node.
32333 2015-02-19 Jakub Jelinek <jakub@redhat.com>
32336 * varpool.c (varpool_node::get_constructor): Return early
32337 if this->lto_file_data is NULL.
32339 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
32341 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
32342 (rank_for_schedule_debug): Update.
32343 (ready_sort): Make static. Move sorting logic to ...
32344 (ready_sort_debug, ready_sort_real): New static functions.
32345 (schedule_block): Sort both debug insns and real insns in preparation
32346 for ready list trimming. Improve debug output.
32347 * sched-int.h (ready_sort): Remove global declaration.
32349 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
32351 * ipa-icf.c (sem_function::equals_private): Adjust.
32352 (sem_function::bb_dict_test): Take a vec<int> * instead of
32354 * ipa-icf.h (bb_dict_test): Likewise.
32356 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32358 PR gcov-profile/64634
32359 * tree-eh.c (frob_into_branch_around): Fix up typos
32360 in function comment.
32361 (lower_catch): Put eh_seq resulting from EH lowering of
32362 the cleanup sequence after the cleanup rather than before it.
32364 2015-02-18 Tom de Vries <tom@codesourcery.com>
32366 * common.opt (fstdarg-opt): New option.
32367 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
32368 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
32369 (@item -fstdarg-opt): New item.
32371 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
32374 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
32375 for common symbols.
32377 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32379 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
32381 (ALL_HOST_OBJS): Add mkoffload.o.
32382 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
32384 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
32386 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
32387 (compare_virtual_tables): Be smarter about skipping typeinfos;
32388 do sane output on virtual table table mismatch.
32389 (warn_odr): Be ready for forward declarations of enums;
32390 output sane info on base mismatch and virtual table mismatch.
32391 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
32392 when only one type is polymorphic.
32393 (get_odr_type): Fix hashtable corruption.
32394 (dump_odr_type): Dump mangled names.
32396 2015-02-18 Richard Biener <rguenther@suse.de>
32398 PR tree-optimization/65063
32399 * tree-predcom.c (determine_unroll_factor): Return 1 if we
32400 have replaced looparound PHIs.
32402 2015-02-18 Martin Liska <mliska@suse.cz>
32404 * lto-streamer.c (lto_streamer_init): Encapsulate
32405 streamer_check_handled_ts_structures with checking macro.
32407 2015-02-18 Jakub Jelinek <jakub@redhat.com>
32410 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
32411 section if !implicit_section.
32412 (cgraph_node::create_version_clone_with_body): Likewise.
32413 * trans-mem.c (ipa_tm_create_version): Likewise.
32415 2015-02-18 Richard Biener <rguenther@suse.de>
32417 PR tree-optimization/62217
32418 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
32421 2015-02-18 Marek Polacek <polacek@redhat.com>
32424 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
32425 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
32426 is in range [-16K, -1]. Don't issue run-time error if
32427 (ptr > ptr + offset).
32429 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
32431 * doc/install.texi (nvptx-*-none): New section.
32432 * doc/invoke.texi (Nvidia PTX Options): Likewise.
32433 * config/nvptx/nvptx.opt: Update.
32435 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
32436 (access_check): New functions, copied from
32437 config/i386/intelmic-mkoffload.c.
32438 (main): For non-installed testing, look in all COMPILER_PATHs for
32441 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
32443 2015-02-18 Andrew Pinski <apinski@cavium.com>
32444 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
32446 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
32447 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
32449 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
32451 * ipa-visibility.c (function_and_variable_visibility): Only
32452 check locality if node is not already local.
32453 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32454 call_for_symbol_and_aliases instead of
32455 call_for_symbol_thunks_and_aliases.
32456 (ipa_inline): Likewise.
32457 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32458 first walk aliases.
32459 * ipa.c (symbol_table::remove_unreachable_nodes): Use
32460 call_for_symbol_and_aliases.
32461 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32462 (ipa_propagate_frequency_1): Use it; use opt_for_fn
32463 (ipa_propagate_frequency): Update.
32464 (ipa_profile): Add opt_for_fn gueards.
32466 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
32468 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
32469 * doc/invoke.texi (SH options): Document it.
32470 * config/sh/sh.c (sh_insn_length_adjustment): Check
32471 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
32473 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
32475 * common.opt (fipa-cp-alignment): New.
32476 * ipa-cp.c (ipcp_store_alignment_results): Check
32477 flag_ipa_cp_alignment.
32478 * opts.c (default_options_table): Enable -fipa-cp-alignment for
32480 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
32481 * doc/invoke.texi: Document -fipa-cp-alignment.
32483 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
32486 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
32487 to nil. Adjust comments.
32489 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
32491 * ipa-visibility.c (function_and_variable_visibility): Only
32492 check locality if node is not already local.
32493 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
32494 call_for_symbol_and_aliases instead of
32495 call_for_symbol_thunks_and_aliases.
32496 (ipa_inline): Likewise.
32497 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
32498 first walk aliases.
32499 * ipa.c (symbol_table::remove_unreachable_nodes): Use
32500 call_for_symbol_and_aliases.
32501 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
32502 (ipa_propagate_frequency_1): Use it; use opt_for_fn
32503 (ipa_propagate_frequency): Update.
32504 (ipa_profile): Add opt_for_fn guards.
32506 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
32508 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
32509 skipping of "strange" tokens.
32511 2015-02-17 Jeff Law <law@redhat.com>
32513 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
32516 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
32518 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
32519 as forcing a HARD_DEP between instructions, thereby
32520 disallowing rewriting to break dependencies.
32522 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
32524 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
32525 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
32526 variables in boundary that have no inlitalizer encoded and are
32528 * varasm.c (default_binds_local_p_2): External definitions do not
32529 count as definitions here.
32531 2015-02-16 Jeff Law <law@redhat.com>
32533 PR tree-optimization/64823
32534 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
32536 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32537 threading through blocks with PHIs, but no statements.
32538 (thread_through_normal_block): Distinguish between blocks where
32539 we did not process all the statements and blocks with no statements.
32541 2015-02-16 Jakub Jelinek <jakub@redhat.com>
32542 James Greenhalgh <james.greenhalgh@arm.com>
32545 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
32546 section if not linkonce. Fix up formatting.
32547 (cgraph_node::create_version_clone_with_body): Copy section.
32548 * trans-mem.c (ipa_tm_create_version): Likewise.
32550 2015-02-16 Richard Biener <rguenther@suse.de>
32552 PR tree-optimization/65077
32553 * tree-ssa-structalias.c (get_constraint_for_1): Handle
32554 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
32555 (find_func_aliases): Allow float values to carry pointers again.
32557 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
32559 * doc/install.texi (Specific): Reorder targets list to put
32560 aarch64 in alphabetical order. Add a link to aarch64*-*-*
32563 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32564 David Edelsohn <dje.gcc@gmail.com>
32567 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
32568 mapping class to external variable or function reference.
32569 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
32572 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
32575 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
32576 ASM_WEAKEN_DECL if defined.
32578 2015-02-16 Richard Biener <rguenther@suse.de>
32581 * varasm.c (default_file_start): For LTO produced units
32582 emit <artificial> as file directive.
32584 2015-02-16 Richard Biener <rguenther@suse.de>
32586 PR tree-optimization/63593
32587 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
32588 stmts and releasing SSA names until...
32589 (execute_pred_commoning): ... after processing all chains.
32591 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
32594 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
32595 external functions.
32597 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
32599 * doc/bugreport.texi: Adjust section titles throughout the file
32600 to use "Title Case".
32601 * doc/extend.texi: Likewise.
32602 * doc/gcov.texi: Likewise.
32603 * doc/implement-c.texi: Likewise.
32604 * doc/implement-cxx.texi: Likewise.
32605 * doc/invoke.texi: Likewise.
32606 * doc/objc.texi: Likewise.
32607 * doc/standards.texi: Likewise.
32608 * doc/trouble.texi: Likewise.
32610 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
32612 * cgraph.h (symtab_node::has_aliases_p): Simplify.
32613 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
32614 * tree.c (lookup_binfo_at_offset): Make static.
32615 (get_binfo_at_offset): Do not shadow offset; add explanatory
32618 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
32620 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
32621 for all floading point loads and stores except those using a register
32623 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
32626 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
32628 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
32629 (do_estimate_growth_1): Record if any uninlinable edge was seen.
32630 (estimate_growth): Handle uninlinable edges correctly.
32631 (check_callers): New.
32632 (growth_likely_positive): Handle aliases correctly.
32634 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
32636 * ipa-chkp.c: Use iterate_direct_aliases.
32637 * symtab.c (resolution_used_from_other_file_p): Move inline.
32638 (symtab_node::create_reference): Fix formating.
32639 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32640 (symtab_node::iterate_reference): Move inline.
32641 (symtab_node::iterate_referring): Move inline.
32642 (symtab_node::iterate_direct_aliases): Move inline.
32643 (symtab_node::used_from_object_file_p_worker): Inline into ...
32644 (symtab_node::used_from_object_file_p): ... this one; move inline.
32645 (symtab_node::call_for_symbol_and_aliases): Move inline;
32646 use iterate_direct_aliases.
32647 (symtab_node::call_for_symbol_and_aliases_1): New method.
32648 (cgraph_node::call_for_symbol_and_aliases): Move inline;
32649 use iterate_direct_aliases.
32650 (cgraph_node::call_for_symbol_and_aliases_1): New method.
32651 (varpool_node::call_for_node_and_aliases): Rename to ...
32652 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
32653 use iterate_direct_aliases.
32654 (varpool_node::call_for_symbol_and_aliases_1): New method.
32655 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
32656 (ipa_discover_readonly_nonaddressable_var): Update.
32657 * ipa-devirt.c: Fix formating.
32658 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
32660 (cgraph_node::call_for_symbol_and_aliases): Move inline.
32661 (cgraph_node::call_for_symbol_and_aliases_1): New function..
32662 * cgraph.h (used_from_object_file_p_worker): Remove.
32663 (resolution_used_from_other_file_p): Move inline.
32664 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
32665 (symtab_node::iterate_reference): Move inline.
32666 (symtab_node::iterate_referring): Move inline.
32667 (symtab_node::iterate_direct_aliases): Move inline.
32668 (symtab_node::used_from_object_file_p_worker): Inline into ...
32669 (symtab_node::used_from_object_file_p): Move inline.
32670 * tree-emutls.c (ipa_lower_emutls): Update.
32671 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
32672 (varpool_node::call_for_node_and_aliases): Remove.
32674 2015-02-14 Jakub Jelinek <jakub@redhat.com>
32676 PR tree-optimization/62209
32677 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
32678 op == range->exp, insert seq and gimplified code after labels
32679 instead of after the phi.
32681 2015-02-13 Jeff Law <law@redhat.com>
32684 Revert my change for tree-optimization/64823.
32686 2015-02-13 Jakub Jelinek <jakub@redhat.com>
32688 PR tree-optimization/65053
32689 * tree-ssa-phiopt.c (value_replacement): When moving assign before
32690 cond, either reset VR on lhs or set it to phi result VR.
32692 2015-02-13 Jeff Law <law@redhat.com>
32694 PR tree-optimization/64823
32695 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
32696 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
32697 threading through blocks with PHIs, but no statements.
32698 (thread_through_normal_block): Distinguish between blocks where
32699 we did not process all the statements and blocks with no statements.
32701 PR rtl-optimization/47477
32702 * match.pd (convert (plus/minus (convert @0) (convert @1): New
32703 simplifier to narrow arithmetic.
32705 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
32708 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
32709 polymorphic call info when type is not known to be preserved.
32711 2015-02-13 Maritn Jambor <mjambor@suse.cz>
32714 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
32715 (inline_call): Use it.
32717 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
32719 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
32720 GOMP_DEVICE_NVIDIA_PTX.
32722 2015-02-13 Jakub Jelinek <jakub@redhat.com>
32725 * stmt.c (emit_case_nodes): Use void_type_node instead of
32726 NULL_TREE as LABEL_DECL type.
32728 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
32730 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
32732 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
32733 symbolic references to data to be forced to constant memory on the
32736 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
32738 PR tree-optimization/65002
32739 * tree-cfg.c (pass_data_fixup_cfg): Don't update
32741 * tree-sra.c (some_callers_have_no_vuse_p): New.
32742 (ipa_early_sra): Reject functions whose callers
32743 assume function is read only.
32745 2015-02-13 Richard Biener <rguenther@suse.de>
32748 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
32749 for LTO produced CUs.
32751 2015-02-13 Bin Cheng <bin.cheng@arm.com>
32753 PR tree-optimization/64705
32754 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
32755 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
32756 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
32757 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
32758 expand_simple_operations.
32760 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
32761 Richard Henderson <rth@redhat.com>
32764 * cgraphunit.c (cgraph_node::finalize_function): Set definition
32765 before notice_global_symbol.
32766 (varpool_node::finalize_decl): Likewise.
32767 * varasm.c (default_binds_local_p_2): Rename from
32768 default_binds_local_p_1, add weak_dominate argument. Use direct
32769 returns instead of assigning to local variable. Unify varpool and
32770 cgraph paths via symtab_node. Reject undef weak variables before
32771 testing visibility. Reorder tests for simplicity.
32772 (default_binds_local_p): Use default_binds_local_p_2.
32773 (default_binds_local_p_1): Likewise.
32774 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
32776 (default_elf_asm_output_external): Emit visibility when specified.
32778 2015-02-13 Alan Modra <amodra@gmail.com>
32780 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
32781 code setting up r11 for out-of-line fp restore.
32783 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
32785 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
32786 (muser-mode): Likewise.
32788 2015-02-13 Alan Modra <amodra@gmail.com>
32790 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
32791 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
32793 2015-02-12 David Howells <dhowells@redhat.com>
32795 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
32797 * tree-ssa-uninit.c (dump_predicates): Likewise.
32798 * opts.c (print_filtered_help): Likewise.
32800 2015-02-12 Jakub Jelinek <jakub@redhat.com>
32802 * dwarf2out.c (output_die): Use "%s", name instead of name to
32803 avoid -Wformat-security warning.
32805 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
32806 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32807 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
32808 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
32810 2015-02-12 Jason Merrill <jason@redhat.com>
32812 * common.opt (-flifetime-dse): New.
32814 2015-02-12 Jakub Jelinek <jakub@redhat.com>
32817 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
32819 PR tree-optimization/65014
32820 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
32821 use original second operand of arg0 or arg1 instead of
32822 that adjusted by STRIP_NOPS.
32824 2015-02-11 Jeff Law <law@redhat.com>
32827 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
32828 that needs to be queued, just queue it for a single cycle.
32830 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
32832 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
32833 bodies of thunks; comment on why.
32834 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
32835 symbols are extern.
32837 2015-02-11 Richard Henderson <rth@redhat.com>
32840 * tree-eh.c (mark_reachable_handlers): Mark source and destination
32841 regions of __builtin_eh_copy_values.
32843 2015-02-11 Jakub Jelinek <jakub@redhat.com>
32845 PR middle-end/65003
32846 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
32847 ultimate alias is MEM with SYMBOL_REF satisfying
32848 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
32849 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
32851 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
32853 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
32854 "diagnostic-core.h".
32855 (main): Initialize progname, and call diagnostic_initialize.
32857 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
32858 instead of __OPENMP_TARGET__.
32860 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
32861 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
32862 hard-coding PTX_ID.
32864 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
32866 * doc/sourcebuild.texi (pie_enabled): Document.
32868 2015-02-11 Martin Liska <mliska@suse.cz>
32871 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
32872 a return value for call to a function that is noreturn.
32874 2015-02-11 Richard Biener <rguenther@suse.de>
32877 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
32880 2015-02-11 Andrew Pinski <apinski@cavium.com>
32883 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
32884 Change the first argument type to size_type_node and add another
32886 (aarch64_simd_expand_builtin): Handle the new argument to
32887 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
32888 print an out when the first two arguments are not
32889 nonzero integer constants.
32890 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
32891 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
32893 2015-02-11 Jakub Jelinek <jakub@redhat.com>
32896 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
32897 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
32898 (ix86_set_current_function): Rewritten.
32899 (ix86_add_new_builtins): Temporarily clear current_target_pragma
32900 when creating builtin fndecls.
32902 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
32905 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
32907 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
32908 have no comdat group.
32909 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
32910 (lto_output_varpool_node): Always output alias info.
32911 (output_refs): Output refs of boundary aliases, too.
32912 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
32913 (output_symtab): Output call eges in thunks in boundary.
32914 (get_alias_symbol): Remove.
32915 (input_node, input_varpool_node): Do not special case weakrefs.
32916 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
32917 alias and thunks targets in the boundary; do not take removed symbols
32918 from their comdat groups.
32919 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
32920 (cgraph_node::global_info): Remove.
32921 (cgraph_node::rtl_info): Look through aliases and thunks.
32922 * cgrpah.h (global_info): Remove.
32923 (non_local_p): Remove.
32925 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
32926 Sandra Loosemore <sandra@codesourcery.com>
32928 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
32929 to inline asm. List dialects in proper order.
32931 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
32932 Sandra Loosemore <sandra@codesourcery.com>
32934 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
32936 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
32938 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
32939 modified) reference to Solaris.
32941 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
32943 * doc/extend.texi (Extended Asm): Fix typos.
32945 2015-02-10 Jakub Jelinek <jakub@redhat.com>
32948 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
32950 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
32953 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
32954 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
32955 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
32956 * config/sh/constraints.md (Ara, Add): New constraints.
32957 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
32959 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
32960 atomic_mem_operand_0. Don't use force_reg on the memory address.
32961 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
32962 Sra constraint. Convert to insn_and_split. Add workaround for
32964 (atomic_compare_and_swap<mode>_hard): Copy to
32965 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
32966 Use atomic_mem_operand_0 predicate.
32967 (atomic_compare_and_swap<mode>_soft_gusa,
32968 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
32969 AraAdd constraints.
32970 (atomic_compare_and_swap<mode>_soft_tcb,
32971 atomic_compare_and_swap<mode>_soft_imask,
32972 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
32973 atomic_mem_operand_0 predicate and SraSdd constraints.
32974 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
32976 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
32977 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
32978 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
32979 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
32980 force_reg on the memory address.
32981 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
32982 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
32983 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
32984 atomic_mem_operand_1 predicate and Sra constraint.
32985 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
32986 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
32987 Use atomic_mem_operand_1 predicate.
32988 (atomic_<fetchop_name><mode>_hard): Copy to
32989 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
32990 Use atomic_mem_operand_1 predicate.
32991 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
32992 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
32993 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
32994 insn_and_split. Use atomic_mem_operand_1 predicate.
32995 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
32996 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
32997 Use atomic_mem_operand_1 predicate.
32998 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
32999 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
33000 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
33001 in generated insn with original mem operand before emitting the insn.
33002 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
33003 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
33004 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
33005 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
33006 Use atomic_mem_operand_1 predicate and AraAdd constraints.
33007 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
33008 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
33009 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
33010 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
33011 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
33012 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
33013 atomic_not_fetch<mode>_soft_tcb,
33014 atomic_<fetchop_name>_fetch<mode>_soft_imask,
33015 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
33016 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
33017 Use atomic_mem_operand_1 predicate and SraSdd constraints.
33019 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
33021 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
33022 and 3 earlyclobber operands.
33024 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33026 * common.opt (fstack-reuse): Mark as optimization.
33028 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
33031 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
33033 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
33035 PR tree-optimization/64326
33036 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
33038 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
33040 PR gcov-profile/61889
33041 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
33043 2015-02-10 Richard Biener <rguenther@suse.de>
33045 PR tree-optimization/64995
33046 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
33047 value we use is final.
33048 (visit_reference_op_store): Always valueize op.
33049 (visit_use): Properly valueize vuses.
33051 2015-02-10 Richard Biener <rguenther@suse.de>
33053 PR tree-optimization/64909
33054 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
33055 pass a scalar-stmt count estimate to the cost model.
33056 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
33058 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
33060 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
33061 enabled by default together with var-tracking.
33063 2015-02-10 Nick Clifton <nickc@redhat.com>
33065 * config/rl78/rl78.c: Remove DIV attribute code accidentally
33066 included in previous rl78 commit.
33068 2015-02-10 Richard Biener <rguenther@suse.de>
33070 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
33071 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
33072 return the bitpack.
33074 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
33076 PR gcov-profile/61889
33077 * config.in: regenerate.
33078 * configure.in: Likewise.
33079 * configure.ac: Check for ftw.h.
33080 * gcov-tool.c: Check for ftw.h before using nftw.
33082 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
33085 * ipa-visibility.c (update_visibility_by_resolution_info): Only
33086 assert when not in lto mode.
33088 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33090 * ira-color.c (setup_left_conflict_sizes_p): Simplify
33091 initialization/assignment of conflict_size.
33093 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
33096 * ipa-cp.c (gather_caller_stats): Skip thunks.
33097 (propagate_constants_topo): Skip aliases.
33099 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
33102 * config/sh/sh.c (sh_option_override): Don't change
33103 -freorder-blocks-and-partition to -freorder-blocks even when
33104 unwinding is enabled.
33105 (sh_can_follow_jump): Return false if the followee jump is
33106 a crossing jump when -freorder-blocks-and-partition is specified.
33107 * config/sh/sh.md (*jump_compact_crossing): New insn.
33109 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
33110 Kaz Kojima <kkojima@gcc.gnu.org>
33113 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
33114 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
33115 (sh_can_redirect_branch): Rename to ...
33116 (sh_can_follow_jump): ... this. Constify argument types.
33117 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
33118 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
33119 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
33120 * doc/tm.texi: Regenerate.
33122 2015-02-09 Jakub Jelinek <jakub@redhat.com>
33125 * builtins.c (expand_builtin): Call targetm.expand_builtin
33126 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
33128 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33131 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
33133 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33136 * ipa-icf.c (set_local): New function.
33137 (sem_function::merge): Use it.
33139 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33141 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
33142 (add_type_duplicate): Fix comparison of BINFOs.
33144 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33146 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
33147 on getting VOID pointer.
33149 2015-02-09 Jakub Jelinek <jakub@redhat.com>
33152 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
33155 2015-02-09 Richard Biener <rguenther@suse.de>
33157 * genmatch.c (replace_id): Copy expr_type.
33159 2015-02-09 Richard Biener <rguenther@suse.de>
33161 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
33162 (streamer_write_tree_bitfields): Declare.
33163 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
33164 properly unpack padding.
33165 (unpack_value_fields): Inline ...
33166 (streamer_read_tree_bitfields): ... here.
33167 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
33168 and properly add padding bits.
33169 (streamer_pack_tree_bitfields): Fold into ...
33170 (streamer_write_tree_bitfields): ... this new function,
33171 exposing the bitpack object.
33172 * lto-streamer-out.c (lto_write_tree_1): Call
33173 streamer_write_tree_bitfields.
33175 2015-02-09 Richard Biener <rguenther@suse.de>
33177 PR tree-optimization/54000
33178 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
33179 (struct ivopts_data): Add loop_loc member.
33180 (tree_ssa_iv_optimize_loop): Dump loop location.
33181 (create_new_ivs): Likewise, also dump number of IVs generated.
33183 2015-02-09 Martin Liska <mliska@suse.cz>
33185 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
33186 just if not yet registered.
33187 (ipa_icf_generate_summary): Register callgraph hooks.
33189 2015-02-08 Andrew Pinski <apinski@cavium.com>
33191 * config/aarch64/aarch64.c (gty_dummy): Delete.
33193 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33196 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
33197 (cgraph_node::local_p): Remove thunk related FIXME.
33199 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33202 * i386.c (ix86_function_regparm): Look through aliases to see if callee
33203 is local and optimized.
33204 (ix86_function_sseregparm): Likewise; also use target's SSE math
33205 settings; error out instead of silently generating wrong code
33207 (init_cumulative_args): Look through aliases.
33209 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33212 * ipa-split.c (execute_split_functions): Split if function has aliases.
33214 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
33217 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
33218 aliases before trying to expand it.
33219 (cgraph_node::expand_thunk): Fix formating.
33221 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
33223 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
33224 (Using Assembly Language with C): Expand introduction.
33225 (Basic Asm): Copy-edit. Add more information about uses of
33227 (Extended Asm): Copy-edit. Document new escape syntax and
33229 (Global Reg Vars): Copy-edit.
33230 (Local Reg Vars): Likewise.
33232 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
33236 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
33237 (DBX_CONTIN_CHAR): Define.
33239 2015-02-06 Sebastian Pop <s.pop@samsung.com>
33240 Brian Rzycki <b.rzycki@samsung.com>
33242 PR tree-optimization/64878
33243 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
33244 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
33245 Stop recursion at loop phi nodes after having visited a loop phi node.
33247 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33249 * toplev.c (process_options): Change flag_ipa_ra before creating
33250 optimization_{default,current}_node.
33253 * cgraphunit.c (cgraph_node::expand_thunk): If
33254 restype is not is_gimple_reg_type nor the thunk_fndecl
33255 returns aggregate_value_p, set restmp to a temporary variable
33256 instead of resdecl.
33258 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
33260 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
33262 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
33265 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
33266 add a general secondary reload handler for SDmode, unless we have
33267 both read/write support for SDmode.
33269 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33271 PR middle-end/64937
33272 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
33273 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
33274 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
33275 1 before, push it to abstract_vec.
33276 (dwarf2out_abstract_function): Adjust caller. Don't call
33277 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
33278 DECL_ABSTRACT_P flags for all abstract_vec elts.
33280 2015-02-06 Renlin Li <renlin.li@arm.com>
33282 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
33284 * tree-ssa.c (execute_update_addresses_taken): Likewise.
33286 2015-02-06 Jeff Law <law@redhat.com>
33289 * config/h8300/h8300.c (push): New argument "in_prologue".
33290 Pass "in_prologue" along to "F".
33291 (h8300_push_pop): Corresponding changes.
33292 (h8300_expand_prologue): Likewise.
33293 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
33295 2015-02-06 Jakub Jelinek <jakub@redhat.com>
33297 PR rtl-optimization/64957
33299 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
33300 IOR rather than for AND.
33302 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
33305 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
33306 of shift-add and (add + shift) operations. Rename local variable.
33308 2015-02-05 Jeff Law <law@redhat.com>
33311 * config/h8300/constraints.md (U): Correctly dectect
33312 "eightbit_data" memory addresses.
33313 * config/h8300/h8300.c (eightbit_constant_address_p): Also
33314 handle (const (plus (symbol_ref (x)))) where x is declared
33315 as an 8-bit data memory address.
33316 * config/h8300/h8300.md (call, call_value): Correctly detect
33317 "funcvec" functions.
33320 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
33321 24 to 28 bits for the H8/300.
33323 2015-02-06 Alan Modra <amodra@gmail.com>
33326 * config/rs6000/rs6000.c (chain_already_loaded): New function.
33327 (rs6000_call_aix): Use it.
33329 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
33331 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
33334 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
33336 * config/h8300/constraints.md ("U" constraint): Use strict
33337 variant of REG_OK_FOR_BASE_P after reload has started.
33339 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
33341 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
33342 define to zero if !TARGET_NEON.
33343 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
33345 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33346 Trevor Saunders <tsaunders@mozilla.com>
33349 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
33351 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33354 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
33355 when removing varpool nodes.
33357 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33360 * varpool.c (varpool_node::remove): Fix order of variables.
33362 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33365 * ipa-inline.c (inline_small_functions): Fix ordering issue between
33366 speculation resolution and key updates.
33368 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33370 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
33371 about not letting any speculative edges unupdated.
33373 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33376 * gcov-io.c (gcov_var): Export.
33378 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33380 PR middle-end/64922
33381 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
33382 edges that become speculative.
33384 2015-02-04 Jakub Jelinek <jakub@redhat.com>
33386 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
33387 or DW_LANG_Fortran08.
33388 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
33390 (gen_compile_unit_die): Handle "GNU Fortran2003" and
33391 "GNU Fortran2008" language strings.
33392 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
33393 * langhooks.h (lang_GNU_Fortran): New prototype.
33394 * langhooks.c (lang_GNU_Fortran): New function.
33395 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
33398 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
33400 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
33401 (RTX_OK_FOR_OLO10_P): Likewise.
33403 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
33405 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
33407 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
33409 PR middle-end/64922
33410 * gimple.c: Include gimple-ssa.h.
33411 (maybe_remove_unused_call_args): New function.
33412 * gimple.h (maybe_remove_unused_call_args): Declare.
33413 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
33414 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
33415 * gimple-fold.c (gimple_fold_call): Likewise.
33417 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
33419 PR rtl-optimization/64905
33420 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
33421 pointer alignment if it isn't needed.
33423 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
33425 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
33426 cortex-a72.cortex-a53.
33427 * config/aarch64/aarch64-tune.md: Regenerate.
33428 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
33430 2015-02-04 Nick Clifton <nickc@redhat.com>
33432 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
33435 2015-02-04 Jakub Jelinek <jakub@redhat.com>
33437 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
33438 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
33439 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
33441 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
33442 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
33443 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
33444 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
33445 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
33446 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
33447 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
33448 * tree-core.h (enum built_in_function): In between
33449 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
33450 for builtins that use DEF_BUILTIN_CHKP macro.
33452 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
33455 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
33456 operands for tcc_comparison exprs. Fix typos.
33459 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
33460 of two XORs that have an intervening AND or IOR.
33463 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
33464 simplification of XOR of AND to not allocate new rtx before
33465 committing to a simplification.
33467 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33469 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
33470 manual swaps in all peepholes.
33472 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33474 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
33475 of manual swapping implementation.
33476 (aarch64_expand_vec_perm_const_1): Likewise.
33478 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
33480 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
33481 (generic_addrcost_table): Remove NAMED_PARAM.
33482 (cortexa57_addrcost_table): Likewise.
33483 (xgene1_addrcost_table): Likewise.
33484 (generic_regmove_table): Likewise.
33485 (cortexa53_regmove_table): Likewise.
33486 (xgene1_regmove_table): Likewise.
33487 (generic_vector_table): Likewise.
33488 (cortexa57_vector_table): Likewise.
33489 (xgene1_vector_table): Likewise.
33490 (generic_tunings): Likewise.
33491 (cortexa53_tunings): Likewise.
33492 (cortexa57_tunings): Likewise.
33493 (xgene1_tunings): Likewise.
33495 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
33497 * config/arm/arm-cores.def: Add cortex-a72 and
33498 cortex-a72.cortex-a53.
33499 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
33500 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
33501 * config/arm/arm-tune.md: Regenerate.
33502 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
33503 "cortex-a72.cortex-a53".
33504 * doc/invoke.texi (ARM Options/-mtune): Likewise.
33506 2015-02-04 Nick Clifton <nickc@redhat.com>
33509 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
33511 (nonimmediate_di_operand): Likewise.
33513 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
33514 prefixes of known F5 using MSP430 MCUs.
33516 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33518 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
33519 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
33520 instead of __builtin_sqrt.
33522 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
33524 * varasm.c (do_assemble_alias): Follow transparent alias
33526 (default_assemble_visibility): Follow transparent alias
33527 chain for decl name.
33529 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
33531 PR middle-end/62103
33532 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
33533 to compute size of referenced value in the constant case.
33535 2015-02-03 Jakub Jelinek <jakub@redhat.com>
33537 PR rtl-optimization/64756
33538 * cse.c (invalidate_dest): New function.
33539 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
33540 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
33541 invalidate and do not record it.
33543 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
33546 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
33547 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
33548 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
33549 atomic_nand<mode>_soft_tcb): New insns.
33550 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
33551 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
33552 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
33553 Split into atomic_not_fetchsi_hard if operands[0] is unused.
33554 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
33555 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33556 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
33557 atomic_not<mode>_hard if operands[0] is unused.
33558 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
33559 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
33560 if operands[0] is unused.
33561 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
33562 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
33563 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
33564 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33566 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
33567 into atomic_not<mode>_soft_tcb if operands[0] is unused.
33568 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
33569 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
33570 if operands[0] is unused.
33571 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
33572 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
33573 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
33574 atomic_nand_fetchsi_hard if operands[0] is unused.
33575 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
33576 atomic_nand<mode>_hard if operands[0] is unused.
33577 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
33578 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
33579 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
33580 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33581 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
33582 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
33583 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
33584 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
33585 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
33586 atomic_not<mode>_hard if operands[0] is unused.
33587 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
33588 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
33590 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
33591 into atomic_not<mode>_soft_tcb if operands[0] is unused.
33592 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
33593 atomic_nand<mode>_hard if operands[0] is unused.
33594 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
33595 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
33597 2015-02-03 David Malcolm <dmalcolm@redhat.com>
33600 * Makefile.in (GCC_OBJS): Add gcc-main.o.
33601 * gcc-main.c: New file, containing "main" taken from gcc.c.
33602 * gcc.c (do_self_spec): Free decoded_options.
33603 (class driver): Move declaration to gcc.h.
33604 (main): Move declaration and implementation to new file
33606 (driver_get_configure_time_options): New function.
33607 * gcc.h (class driver): Move this declaration here, from
33609 (driver_get_configure_time_options): New declaration.
33611 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
33613 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
33614 cross-module inlining.
33615 * cgraph.h (cgraph_node): Add flag merged.
33616 * ipa-icf.c (sem_function::merge): Maintain it.
33618 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
33620 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
33621 instead of OBJECT_P.
33623 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
33626 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
33627 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
33628 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
33629 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
33631 2015-02-03 Jakub Jelinek <jakub@redhat.com>
33634 * combine.c (reg_n_sets_max): New variable.
33635 (can_change_dest_mode, reg_nonzero_bits_for_combine,
33636 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
33637 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
33638 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
33639 (rest_of_handle_combine): Initialize reg_n_sets_max.
33641 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
33643 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
33644 if some always_inline was inlined, apply changes before inlining
33647 2015-02-02 David Malcolm <dmalcolm@redhat.com>
33650 * config/arm/arm.c (arm_option_override): Set
33651 arm_selected_arch/cpu/tune to NULL on entry.
33653 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
33654 Andrew Pinski <pinskia@gcc.gnu.org>
33655 Jakub Jelinek <jakub@gcc.gnu.org>
33658 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
33659 integer typing for small model. Use IN_RANGE.
33661 2015-02-02 Richard Biener <rguenther@suse.de>
33663 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
33664 * tree-vrp.c (vrp_valueize_1): Likewise.
33666 2015-02-02 Alan Modra <amodra@gmail.com>
33668 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
33669 than mem for toc_restore.
33670 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
33671 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
33672 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
33674 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
33677 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
33678 explicit default options.
33680 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
33683 * ipa-utils.c (ipa_merge_profiles): Add release argument.
33684 * ipa-icf.c (sem_function::merge): Do not release body when merging.
33685 * ipa-utils.h (ipa_merge_profiles): Update prototype.
33687 2015-02-01 Jakub Jelinek <jakub@redhat.com>
33690 * cfgexpand.c (deep_ter_debug_map): New variable.
33691 (avoid_deep_ter_for_debug): New function.
33692 (expand_debug_expr): If TERed SSA_NAME is in
33693 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
33694 instead of trying to expand SSA_NAME's def stmt.
33695 (expand_debug_locations): When expanding debug bind
33696 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
33697 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
33699 (pass_expand::execute): Call avoid_deep_ter_for_debug on
33700 all debug bind stmts. Delete deep_ter_debug_map after
33701 expand_debug_location if non-NULL and clear it.
33703 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
33706 * config/sh/sync.md (atomic_fetch_notsi_hard,
33707 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
33708 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
33709 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
33710 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
33711 atomic_not_fetch<mode>_soft_imask): New insns.
33713 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
33715 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
33716 (rank_for_schedule_debug): Split from ...
33717 (rank_for_schedule): ... this.
33718 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
33719 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
33721 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
33723 * doc/md.texi (Machine Constraints): Alphabetize table by target.
33724 * doc/extend.texi (x86 Variable Attributes): Move section to
33725 correct alphabetization after renaming.
33726 (x86 Type Attributes): Likewise.
33727 (Target Builtins): Re-alphabetize menu.
33728 (x86 Built-in Functions): Move section to correct alphabetization
33730 (x86 transactional memory intrinsics): Likewise.
33731 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
33732 and x86 Windows Options in table and menu.
33733 (x86 Options): Move section to correct alphabetization after
33735 (x86 Windows Options): Likewise.
33737 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
33739 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
33740 preferred names of the architecture and its 32- and 64-bit
33742 * doc/invoke.texi: Likewise.
33743 * doc/md.texi: Likewise.
33745 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
33748 * config/i386/predicates.md (address_no_seg_operand): Reject
33749 non-CONST_INT_P operands in invalid mode.
33751 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
33753 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
33754 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
33755 * config/i386/predicates.md (address_no_seg_operand): Call
33756 address_operand with VOIDmode.
33757 (vsib_address_operand): Ditto.
33758 (address_mpx_no_base_operand): Ditto.
33759 (address_mpx_no_index_operand): Ditto.
33761 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
33764 * lra-constraints.c (original_subreg_reg_mode): New.
33765 (simplify_operand_subreg): Try to simplify subreg of const. Use
33766 original_subreg_reg_mode for it.
33767 (swap_operands): Update original_subreg_reg_mode.
33768 (curr_insn_transform): Set up original_subreg_reg_mode.
33770 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
33773 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
33775 (process_alt_operands): Use it.
33776 (curr_insn_transform): Check the optional reload pseudo class is
33779 2015-01-30 Joseph Myers <joseph@codesourcery.com>
33781 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
33782 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
33784 * toplev.h (init_asm_output): Update comment on use of
33785 UNKNOWN_LOCATION with fatal_error.
33786 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
33787 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
33788 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
33789 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
33790 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
33791 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
33792 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
33793 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
33794 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
33795 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
33796 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
33797 fatal_error changed to pass input_location as first argument.
33799 2015-01-30 Martin Liska <mliska@suse.cz>
33801 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
33802 in #pragma GCC diagnostic guards.
33804 2015-01-30 Richard Biener <rguenther@suse.de>
33806 PR tree-optimization/64829
33807 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
33808 not add a widening conversion pattern but hand off extra
33809 widenings to callers.
33810 (vect_recog_widen_mult_pattern): Handle extra widening produced
33811 by vect_handle_widen_op_by_const.
33812 (vect_recog_widen_shift_pattern): Likewise.
33813 (vect_pattern_recog_1): Remove excess vertical space in dumping.
33814 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
33815 (vect_init_vector_1): Likewise.
33816 (vect_get_vec_def_for_operand): Likewise.
33817 (vect_finish_stmt_generation): Likewise.
33818 (vectorizable_load): Likewise.
33819 (vect_analyze_stmt): Likewise.
33820 (vect_is_simple_use): Likewise.
33822 2015-01-29 Jeff Law <law@redhat.com>
33824 * combine.c (try_combine): Fix typo in comment.
33826 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
33829 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
33830 (rs6000_stack_info): Add assert.
33831 (rs6000_output_savres_externs): New function, split off from...
33832 (rs6000_output_function_prologue): ... here. Do not call it for
33835 2015-01-29 Jeff Law <law@redhat.com>
33838 * combine.c (try_combine): If I0 is a memory load and I3 a store
33839 to a related address, increase the "goodness" of doing a 4-insn
33840 combination with I0-I3.
33841 (make_field_assignment): Handle SUBREGs in the ior+and case.
33843 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
33845 PR tree-optimization/64746
33846 * tree-if-conv.c (mask_exists): New function.
33847 (predicate_mem_writes): Save created mask with given size for further
33849 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
33850 (ifcvt_repair_bool_pattern): Collect all statements that are root
33851 of bool pattern and use iterative algorithm to remove multiple uses
33852 of predicates, display number of required iterations.
33854 2015-01-29 Richard Biener <rguenther@suse.de>
33856 PR tree-optimization/64853
33857 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
33858 stmt will get simulated again.
33859 * tree-ssa-ccp.c (valueize_op_1): Likewise.
33861 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33863 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
33864 return_in_pc. Remove redundant assignments.
33865 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
33866 (arm_expand_epilogue): Don't compare boolean with true in if condition.
33868 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
33870 * config/i386/i386.c (ix86_mode_after): Make static.
33872 2015-01-29 Richard Biener <rguenther@suse.de>
33874 PR tree-optimization/64844
33875 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
33876 dump cost model analysis.
33877 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
33878 Do not register adjusted load/store costs here.
33880 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
33881 Uros Bizjak <ubizjak@gmail.com>
33883 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
33884 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
33885 using x86_use_pseudo_pic_reg.
33886 * config/i386/i386.c (ix86_conditional_register_usage): Remove
33887 support for fixed PIC register.
33888 (ix86_use_pseudo_pic_reg): Not static any more.
33890 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
33892 PR middle-end/64805
33893 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
33894 to avoid error in cgraph node verification.
33896 2015-01-29 Marek Polacek <polacek@redhat.com>
33898 * doc/standards.texi: Reflect that the default for C is gnu11.
33900 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
33903 * reorg.c (switch_text_sections_between_p): New function.
33904 (relax_delay_slots): Call it when testing if the jump insn
33905 is removable. Use targetm.can_follow_jump when testing if
33906 the conditional branch can follow an unconditional jump.
33908 2015-01-27 Caroline Tice <cmtice@google.com>
33910 Committing VTV Cywin/Ming patch for Patrick Wollgast
33911 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
33912 if -fvtable-verify=preinit/std is used.
33913 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
33914 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
33915 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
33916 if -fvtable-verify=preinit/std is used.
33917 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
33918 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
33919 if -fvtable-verify=preinit/std is used.
33920 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
33921 * config/i386/mingw32.h (LIB_SPEC): Likewise.
33922 * varasm.c (assemble_variable): Add code to properly set the comdat
33923 section and name for the .vtable_map_vars section in case the
33924 target is PE or COFF.
33926 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
33929 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
33930 make sane BB profile.
33931 (cgraph_node::expand_thunk): Make sane BB profile.
33932 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
33933 * cgraph.h (init_lowered_empty_function): Update prototype.
33934 * config/i386/i386.c (make_resolver_func): Update call.
33935 * predict.c (gate): Disable branch prediction pass if
33936 profile is already there.
33938 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
33940 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
33941 * opth-gen.awk: Likewise.
33942 * common.opt: Mark flag_fp_contract_mode as Optimization.
33944 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
33946 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
33947 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
33949 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
33952 * config/sh/predicates.md (atomic_arith_operand,
33953 atomic_logical_operand): Remove.
33954 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
33955 (atomic_arith_operand_0): New predicate.
33956 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
33957 Use atomic_arith_operand_0 for input values.
33958 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
33959 atomic_compare_and_swap<mode>_soft_gusa,
33960 atomic_compare_and_swap<mode>_soft_tcb,
33961 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
33962 arith_reg_operand instead of register_operand.
33963 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
33964 atomic_arith_operand_0 for newval input.
33965 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
33966 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
33967 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
33968 arith_reg_operand instead of register_operand.
33969 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
33970 fetchop_predicate_1, fetchop_constraint_1_llcs,
33971 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
33972 fetchop_constraint_1_imask): New code iterator attributes.
33973 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
33974 register_operand. Use fetchop_predicate_1.
33975 (atomic_fetch_<fetchop_name>si_hard,
33976 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
33977 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
33978 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
33979 and arith_reg_operand instead of register_operand. Use
33980 fetchop_predicate_1, fetchop_constraint_1_gusa.
33981 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
33982 and arith_reg_operand instead of register_operand. Use
33983 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
33985 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
33986 and arith_reg_operand instead of register_operand. Use
33987 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
33989 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
33990 register_operand. Use atomic_logical_operand_1.
33991 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
33992 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
33993 arith_reg_operand instead of register_operand.
33994 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
33995 Use arith_reg_dest and arith_reg_operand instead of register_operand.
33996 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
33997 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
33998 register_operand. Use fetchop_predicate_1.
33999 (atomic_<fetchop_name>_fetchsi_hard,
34000 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
34001 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34002 fetchop_constraint_1_llcs.
34003 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
34004 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34005 fetchop_constraint_1_gusa.
34006 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
34007 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34008 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
34009 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
34010 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
34011 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
34012 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
34013 register_operand. Use atomic_logical_operand_1.
34014 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
34015 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
34016 arith_reg_operand instead of register_operand.
34017 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
34018 arith_reg_operand instead of register_operand. Use logical_operand
34019 and K08. Adjust asm sequence to allow R0 usage.
34020 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
34021 arith_reg_operand instead of register_operand. Use logical_operand
34024 2015-01-28 Jakub Jelinek <jakub@redhat.com>
34027 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
34028 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
34029 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
34030 only get_full_len HOST_WIDE_INTs from get_val () array rather than
34031 all bits in *val_wide.
34033 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
34035 * varpool.c (tls_model_names): Fix names.
34036 (varpool_node::dump): Dump tls- prefix for tls models.
34038 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
34039 Bernd Schmidt <bernds@codesourcery.com>
34040 Nathan Sidwell <nathan@codesourcery.com>
34042 * config/nvptx/mkoffload.c: New file.
34043 * config/nvptx/t-nvptx: Add build rules for it.
34044 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
34045 (extra_programs): Add mkoffload.
34046 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
34048 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
34050 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
34052 PR middle-end/64809
34053 * cfgexpand.c (reorder_operands): Skip debug gimples.
34055 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
34057 PR tree-optimization/64277
34058 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
34059 range info when possible to refine estimation.
34061 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34063 PR tree-optimization/64718
34064 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
34065 be a 16bit unsigned integer when n->range is 16.
34066 (bswap_replace): Convert src to that type if necessary for all bswap
34067 sizes. Fix rotation right notation in nearby comment. Use bswap_type
34068 set in pass_optimize_bswap::execute ().
34070 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
34072 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
34073 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
34074 integer and floating point variants.
34075 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
34077 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
34079 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
34080 for all vector modes.
34082 2015-01-28 Jakub Jelinek <jakub@redhat.com>
34085 * doc/sourcebuild.texi (comdat_group): Document.
34087 2015-01-28 Terry Guo <terry.guo@arm.com>
34089 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
34091 2015-01-27 David Malcolm <dmalcolm@redhat.com>
34093 * toplev.c (print_version): Add param "show_global_state", and
34094 only print GGC and plugin information if it is true.
34095 (init_asm_output): Pass in "true" for the new param when calling
34097 (process_options): Likewise.
34098 (toplev::main): Likewise.
34099 * toplev.h (print_version): Add new param to decl.
34101 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
34105 * tree.c (lookup_binfo_at_offset): New function.
34106 (get_binfo_at_offset): Use it.
34108 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
34111 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
34112 on vtable being vtable.
34114 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
34116 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
34117 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
34118 -mhotpatch= option.
34119 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
34120 -mno-hotpatch options. Change syntax of -mhotpatch= option.
34121 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
34123 (s390_hotpatch_trampoline_halfwords_max): Renamed.
34124 (s390_hotpatch_hw_max): New name.
34125 (s390_hotpatch_trampoline_halfwords): Renamed.
34126 (s390_hotpatch_hw_before_label): New name.
34127 (get_hotpatch_attribute): Removed.
34128 (s390_hotpatch_hw_after_label): New name.
34129 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
34131 (s390_attribute_table): Ditto.
34132 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
34133 (s390_function_num_hotpatch_hw): New name.
34134 Remove special handling of inline functions and hotpatching.
34135 Return number of nops before and after the function label.
34136 (s390_can_inline_p): Removed.
34137 (s390_asm_output_function_label): Emit a configurable number of nops
34138 after the function label.
34139 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
34140 (TARGET_CAN_INLINE_P) Removed.
34141 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
34143 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34144 Jiong Wang <jiong.wang@arm.com>
34146 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
34148 (cb<optab><mode>1): Likewise.
34149 * config/aarch64/iterators.md (bcond): New define_code_attr.
34151 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34153 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
34156 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34158 * config/s390/s390.c (s390_register_move_cost): Increase costs for
34161 2015-01-27 Richard Biener <rguenther@suse.de>
34163 * tree-vrp.c (update_value_range): Intersect the range with
34164 old recorded SSA name range information.
34166 2015-01-27 Nick Clifton <nickc@redhat.com>
34168 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
34169 BC, DE and HL registers directly, not via AX.
34170 When decrementing the stack pointer by a large amount, transfer SP
34171 into AX and perform the subtraction there.
34172 (rl78_expand_epilogue): Perform the inverse of the above
34175 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34177 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
34179 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34180 Yury Gribov <y.gribov@samsung.com>
34183 * ubsan.c (ubsan_source_location): Refactor code.
34184 (ubsan_type_descriptor): Update type size. Refactor code.
34186 2015-01-27 Richard Biener <rguenther@suse.de>
34188 PR tree-optimization/56273
34189 PR tree-optimization/59124
34190 PR tree-optimization/64277
34191 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
34192 from the first VRP pass.
34194 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34197 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
34198 handle the first argument in the same loop as all the other arguments.
34200 PR rtl-optimization/61058
34201 * jump.c (cleanup_barriers): Update basic block boundaries
34202 if BLOCK_FOR_INSN is non-NULL on PREV.
34204 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
34206 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
34207 bounds narrowing, already instrumented calls and calls to
34208 not instrumentable functions.
34210 2015-01-27 Jakub Jelinek <jakub@redhat.com>
34212 PR tree-optimization/64807
34213 * wide-int.cc (wi::divmod_internal): Clear
34214 b_dividend[dividend_blocks_needed].
34216 2015-01-26 DJ Delorie <dj@redhat.com>
34218 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
34219 volatile memory references.
34221 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
34224 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
34226 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
34227 shifts if it already fits into K08.
34229 2015-01-26 Jakub Jelinek <jakub@redhat.com>
34232 * ipa-inline.c (inline_small_functions): Print "unknown" even
34233 if edge->call_stmt is non-NULL, but has builtins or unknown
34236 PR middle-end/64421
34237 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
34238 with asterisk, skip the first character.
34240 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
34243 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
34246 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
34249 * config/i386/i386.md (*movdi_internal): Also check operand 0
34250 to determine TYPE_LEA operand.
34251 (*movsi_internal): Ditto.
34253 2015-01-26 Jakub Jelinek <jakub@redhat.com>
34255 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
34256 OPTION_MASK_QUAD_MEMORY_ATOMIC.
34258 2015-01-26 Renlin Li <renlin.li@arm.com>
34260 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
34262 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
34265 2015-01-26 Richard Biener <rguenther@suse.de>
34267 PR middle-end/64764
34268 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
34269 combining two BIT_AND_EXPR predicates.
34271 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
34274 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
34276 2015-01-26 Terry Guo <terry.guo@arm.com>
34278 * config/arm/arm.c (arm_file_start): Update the assignment of
34279 Tag_ABI_HardFP_use.
34281 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
34283 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
34285 config/arm/arm.md: Include the new Cortex-A57 model.
34286 (generic_sched): Don't use generic_sched when tuning for
34289 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
34290 Uros Bizjak <ubizjak@gmail.com>
34292 * config/i386/i386.c (get_builtin_code_for_version): Add
34293 support for BMI and BMI2 multiversion functions.
34295 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34297 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
34298 (extract_bit_field): Likewise.
34299 (extract_low_bits): Likewise.
34300 (expand_mult): Likewise.
34301 (expand_mult_highpart_adjust): Likewise.
34303 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
34305 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
34306 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
34307 * config/i386/i386.c (processor_model): Add
34308 M_INTEL_COREI7_BROADWELL.
34309 (arch_names_table): Add "broadwell".
34311 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
34320 * config/sh/sh-protos.h
34321 (sh_extending_set_of_reg::can_use_as_unextended_reg,
34322 sh_extending_set_of_reg::use_as_unextended_reg,
34323 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
34324 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
34325 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
34326 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
34327 (sh_treg_insns): New class.
34328 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
34329 (scope_counter): New class.
34330 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
34331 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
34332 sh_extending_set_of_reg::can_use_as_unextended_reg,
34333 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
34334 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
34335 sh_split_treg_set_expr): New functions.
34336 (addsubcosts): Handle treg_set_expr.
34337 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
34338 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
34339 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
34340 (sh_insn_operands_modified_between_p): Make non-static.
34341 * config/sh/predicates.md (zero_extend_movu_operand): Allow
34342 simple_mem_operand in addition to displacement_mem_operand.
34343 (zero_extend_operand): Don't allow zero_extend_movu_operand.
34344 (treg_set_expr, treg_set_expr_not_const01,
34345 arith_reg_or_treg_set_expr): New predicates.
34346 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
34347 arith_or_int_operand instead of logical_operand. Convert to
34348 insn_and_split. Try to optimize constant operand in splitter.
34349 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
34350 (*tstqi_t_zero): Delete.
34351 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
34352 (tstsi_t_and_not): Delete.
34353 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
34354 Convert to insn_and_split.
34355 (unnamed split, tstsi_t_zero_extract_xor,
34356 tstsi_t_zero_extract_subreg_xor_little,
34357 tstsi_t_zero_extract_subreg_xor_big): Delete.
34358 (*tstsi_t_shift_mask): New insn_and_split.
34359 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
34360 to recombine with surrounding insns when splitting.
34361 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
34362 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
34363 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
34364 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
34365 (*cbranch_div0s: Delete.
34366 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
34367 Try to recombine with surrounding insns when splitting. Add operand
34369 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
34370 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
34371 *addc_r_r_msb, *addc_2r_msb): Delete.
34372 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
34374 (*addc_negreg_t): New insn_and_split.
34375 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
34376 Try to recombine with surrounding insns when splitting.
34377 Add operand order variants.
34378 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
34379 insn_and_split patterns.
34380 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
34381 surrounding insns when splitting.
34382 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
34383 (*rotcl): Likewise. Add zero_extract variant.
34384 (*ashrsi2_31): New insn_and_split.
34385 (*negc): Convert to insn_and_split. Use treg_set_expr.
34386 (*zero_extend<mode>si2_disp_mem): Update comment.
34387 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
34389 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
34390 with surrounding insns when splitting.
34391 (any_treg_expr_to_reg): New insn_and_split.
34392 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
34393 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
34394 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
34395 *zero_extract_2): New single bit zero extract patterns.
34396 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
34397 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
34398 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
34399 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
34401 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
34402 register_operand for set source.
34404 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
34406 * i386.opt (prefetch_sse): New targetsave.
34407 * i386.c (ix86_function_specific_save): Save prefetch_sse.
34408 (ix86_function_specific_restore): Restore prefetch_sse and initialize
34409 ix86_cost/ix86_tune_cost.
34411 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34413 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
34414 Support the JIT by using 0 as the language type.
34416 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
34419 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
34420 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
34421 (mark_regno_live, process_bb_lives): Pass new parameter value to
34422 make_hard_regno_born.
34424 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34426 PR rtl-optimization/63637
34427 PR rtl-optimization/60663
34428 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
34429 if elt->cost is MAX_COST for ASM_OPERANDS.
34430 (find_sets_in_insn): Fix up comment typo.
34431 (cse_insn): Don't set src_volatile for all non-volatile
34432 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
34433 or with "memory" clobber. Set elt->cost to MAX_COST
34434 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
34435 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
34437 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
34439 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
34442 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
34444 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
34445 libgcc/config/i386/elf-lib.h.
34447 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34450 * gcc.c (print_configuration): Don't print a blank line at the end
34452 (run_attempt): ... but here unstead.
34454 PR middle-end/64734
34455 * omp-low.c (scan_sharing_clauses): Don't ignore
34456 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
34457 on target data/update constructs.
34459 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
34462 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
34463 (DEBUG_RELOAD): Removed define.
34464 (m32c_limit_reload_class): Enable traces with if DEBUG0.
34465 (m32c_function_arg): Added a type cast.
34466 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
34467 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
34468 * config/m32c/bitops.md (andqi3_16): Likewise.
34469 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
34470 (push_a01_l): Likewise.
34472 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34475 * main.c (main): Construct toplev instances with init_signals=true.
34476 * toplev.c (general_init): Add param "init_signals", and use it to
34477 conditionalize the calls to signal and host_hooks.extra_signals.
34478 (toplev::toplev): Add param "init_signals".
34479 (toplev::main): When invoking general_init, pass m_init_signals
34480 to control whether signal-handlers are installed.
34481 * toplev.h (toplev::toplev): Add param "init_signals".
34482 (toplev::m_init_signals): New field.
34484 2015-01-23 David Malcolm <dmalcolm@redhat.com>
34487 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
34488 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
34489 latter may be affected by the former (e.g. on i686).
34491 2015-01-23 Martin Liska <mliska@suse.cz>
34493 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
34494 false positive during profiledbootstrap.
34496 2015-01-23 Tom de Vries <tom@codesourcery.com>
34499 * lto-opts.c (lto_write_options): Output non-explicit conservative
34501 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
34502 (append_compiler_options): Pass -fopenacc through.
34504 2015-01-23 Tom de Vries <tom@codesourcery.com>
34507 * lto-opts.c (lto_write_options): Output non-explicit conservative
34509 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
34510 (append_compiler_options): Pass -fopenmp through.
34512 2015-01-23 Jakub Jelinek <jakub@redhat.com>
34515 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
34518 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
34519 * diagnostic.def (DK_ICE_NOBT): New kind.
34520 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
34521 like DK_ICE, but never print backtrace.
34522 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
34523 (internal_error_no_backtrace): New function.
34524 * gcc.c (execute): Use internal_error_no_backtrace instead of
34527 2015-01-22 Jeff Law <law@redhat.com>
34530 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
34531 improve code density for small immediate to memory case.
34532 (insv): Better handle bitfield assignments when the field is
34533 being set to all ones.
34534 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
34537 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
34538 Jakub Jelinek <jakub@redhat.com>
34540 PR middle-end/64729
34541 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
34542 for !TARGET_LIBC_PROVIDES_SSP version and
34543 -fstack-protector-{all,strong,explicit} otherwise.
34544 * config/freebsd.h (LINK_SSP_SPEC): Handle
34545 -fstack-protector-{strong,explicit}.
34547 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
34548 H.J. Lu <hongjiu.lu@intel.com>
34551 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
34554 2015-01-22 Wei Mi <wmi@google.com>
34556 PR rtl-optimization/64557
34557 * dse.c (record_store): Call get_addr for mem_addr.
34558 (check_mem_read_rtx): Likewise.
34560 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
34562 * fold-const.c (const_binop): Add early return for non-tcc_binary.
34564 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
34566 * toplev.c (init_local_tick): Process the failure when read
34567 fails for random_seed.
34569 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
34570 'pretty_name' to avoid memory overflow.
34572 2015-01-22 Richard Biener <rguenther@suse.de>
34574 PR middle-end/64728
34575 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
34576 abnormal coalescing on undefined SSA names.
34578 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
34582 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
34584 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
34586 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
34588 PR middle-end/63325
34589 * fold-const.c (fold_checksum_tree): Don't include value of
34590 expr->decl_with_vis.symtab_node in the checksum.
34592 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
34594 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
34596 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
34599 * gcc.c (insert_comments): New function.
34600 (try_generate_repro): Call it.
34601 (append_text): Removed.
34603 2015-01-22 Richard Biener <rguenther@suse.de>
34605 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
34606 with IL incompatible options. Properly honor user optimize
34609 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
34611 PR rtl-optimization/64682
34612 * combine.c (distribute_notes): When moving a death note for
34613 a register that is set in the new I2, make sure to put it
34614 before that new I2.
34616 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
34618 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
34619 not TARGET_DEFAULT.
34621 2015-01-21 Jakub Jelinek <jakub@redhat.com>
34624 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
34625 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
34626 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
34629 * doc/invoke.texi (-fsanitize=vptr): Document.
34631 PR rtl-optimization/62078
34632 * dse.c: Include cfgcleanup.h.
34633 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
34634 anything call purge_all_dead_edges and cleanup_cfg at the end
34637 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
34639 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
34642 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
34644 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
34647 2015-01-21 David Sherwood <david.sherwood@arm.com>
34648 Tejas Belagod <Tejas.Belagod@arm.com>
34650 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
34651 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
34652 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
34655 2015-01-21 David Sherwood <david.sherwood@arm.com>
34656 Tejas Belagod <Tejas.Belagod@arm.com>
34658 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
34659 (aarch64_reverse_mask): New decls.
34660 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
34661 (insn_count): New mode_attr.
34662 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
34663 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
34664 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
34665 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
34666 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
34667 (aarch64_simd_st4): New patterns.
34668 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
34669 (aarch64_reverse_mask): New functions.
34671 2015-01-21 Alan Hayward <alan.hayward@arm.com>
34673 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
34675 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
34676 addressing modes for BE.
34677 (aarch64_print_operand): Add 'R' specifier.
34678 (aarch64_simd_disambiguate_copy): Delete.
34679 (aarch64_simd_emit_reg_reg_move): New function.
34680 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
34681 in define_splits for structural moves.
34682 (mov<mode>): Use less restrictive predicates.
34683 (*aarch64_mov<mode>): Simplify and only allow for LE.
34684 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
34686 2015-01-21 Alan Hayward <alan.hayward@arm.com>
34688 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
34690 2015-01-21 Richard Henderson <rth@redhat.com>
34693 * ccmp.c (used_in_cond_stmt_p): Remove.
34694 (expand_ccmp_expr): Don't use it.
34696 2015-01-21 Nick Clifton <nickc@redhat.com>
34698 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
34701 2015-01-21 Richard Biener <rguenther@suse.de>
34703 PR middle-end/64313
34704 * tree-core.h (builtin_info, builtin_info_type): Turn from
34705 an object with two arrays into an array of an object with
34706 decl and two flags, implicit_p and declared_p.
34707 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
34708 set_builtin_decl, set_builtin_decl_implicit_p,
34709 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
34710 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
34711 * builtins.c (builtin_info): Adjust.
34712 * gimplify.c (gimplify_addr_expr): References to builtins
34713 that have been declared by the user makes them eligible for
34714 use by the compiler. Call set_builtin_decl_implicit_p on them.
34716 2015-01-20 Jeff Law <law@redhat.com>
34719 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
34720 allow pc-relative addresses in operand predicates or constraints.
34722 2015-01-21 Bin Cheng <bin.cheng@arm.com>
34724 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
34725 neon on aarch32 processors for stringops.
34727 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34730 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
34732 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34735 * ipa-inline.c: Include lto-streamer.h
34736 (report_inline_failed_reason): Output source file differences and
34737 flags on optimization/target node mismatch.
34738 (can_inline_edge_p): Consider caller to be the outer inline function;
34739 be less restrictive about matching opimize and optimize_size attributes.
34740 (inline_account_function_p): Break out from ...
34741 (inline_small_functions): ... here.
34742 * ipa-inline-transform.c (clone_inlined_nodes): Use
34743 inline_account_function_p.
34744 (inline_call): Use optimize attribution; use inline_account_function_p.
34745 (inline_transform): Use opt_for_fn.
34746 * ipa-inline.h (inline_account_function_p): Declare.
34748 2015-01-20 Jakub Jelinek <jakub@redhat.com>
34751 * dwarf2out.c (decl_piece_node): Don't put bitsize into
34752 mode if bitsize <= 0.
34753 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
34754 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
34755 sizes and positions.
34757 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
34759 * config/nios2/nios2.c (nios2_asm_file_end): Implement
34760 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
34762 (TARGET_ASM_FILE_END): Define.
34764 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
34766 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
34767 (struct tune_params): Use the enum.
34768 * arm.c (arm_*_tune): Update.
34769 (arm_option_override): Update.
34771 2015-01-20 Richard Biener <rguenther@suse.de>
34774 * ipa-reference.c (add_static_var): Inline ...
34775 (analyze_function): ... here after splitting out from ...
34776 (is_proper_for_analysis): ... this.
34778 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
34781 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
34782 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
34783 replace the conditional with it's true branch.
34784 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
34785 (arm_lra_p): Remove.
34787 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
34789 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
34791 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
34793 * config/tilegx/mul-tables.c: Move symtab.h include after
34794 coretypes.h include.
34795 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
34796 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
34797 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
34798 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
34799 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
34801 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
34805 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
34807 PR rtl-optimization/64081
34808 * loop-iv.c (def_pred_latch_p): New function.
34809 (latch_dominating_def): Allow specific cases with non-single
34811 (iv_get_reaching_def): Likewise.
34812 (check_complex_exit_p): New function.
34813 (check_simple_exit): Use check_complex_exit_p to allow certain cases
34814 with exits not executing on any iteration.
34816 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34819 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
34820 to set branch cost.
34822 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34825 * i386.c (gate): Check flag_expensive_optimizations and
34827 (ix86_option_override_internal): Drop optimize_size condition
34828 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
34829 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
34830 MASK_PREFER_AVX128.
34831 (ix86_avx256_split_vector_move_misalign,
34832 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
34833 * sse.md (all uses of TARGET_PREFER_AVX128): Add
34834 optimize_insn_for_speed_p check.
34836 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
34838 * config/mips/mips.h (FP_ASM_SPEC): New define.
34839 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
34842 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
34845 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
34846 nullptr for insn when reaching the first insn.
34847 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
34848 (sh_insn_operands_modified_between_p): Add nullptr check.
34849 (sh_find_extending_set_of_reg): Fix log message. Don't accept
34850 sign extending mem load if the insn contains any UNSPEC or
34853 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34855 * params.def (inline-unit-growth): Drop to 15%.
34856 * invoke.texi (inline-unit-growth): Document change.
34858 2015-01-19 Martin Liska <mliska@suse.cz>
34861 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
34862 function for second argument of OBJ_TYPE_REF.
34864 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34867 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
34868 whether function is an alias.
34870 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
34872 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
34875 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
34877 PR rtl-optimization/64671
34878 * lra-remat.c (operand_to_remat): Don't consider jump and call
34881 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
34884 * config/rs6000/default64.h: Include rs6000-cpus.def.
34885 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
34886 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
34887 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
34889 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
34891 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
34892 pseudo-op to specify assembler dialect.
34894 2015-01-19 Martin Liska <mliska@suse.cz>
34897 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
34898 Handle safe potentially removed nodes during filtering.
34900 2015-01-19 Martin Liska <mliska@suse.cz>
34902 * doc/extend.texi (no_icf): Add new attribute description.
34903 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
34904 where the pass attempts to merge a function with no_icf attribute.
34906 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
34909 * doc/md.texi (ARM Options): Document register constraints.
34911 2015-01-19 Jiong Wang <jiong.wang@arm.com>
34912 Andrew Pinski <apinski@cavium.com>
34915 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
34916 (ashl<mode>3): Don't expand if operands[2] is not constant.
34918 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34921 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
34922 Match xor-and-xor RTL pattern.
34924 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
34926 PR rtl-optimization/64081
34927 * loop-iv.c (def_pred_latch_p): New function.
34928 (latch_dominating_def): Allow specific cases with non-single
34930 (iv_get_reaching_def): Likewise.
34931 (check_complex_exit_p): New function.
34932 (check_simple_exit): Use check_complex_exit_p to allow certain cases
34933 with exits not executing on any iteration.
34935 2015-01-19 Jakub Jelinek <jakub@redhat.com>
34937 * common.opt (fgraphite): Fix a typo.
34939 2015-01-19 Felix Yang <felix.yang@huawei.com>
34941 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
34943 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
34944 uminp, smax_nanp, smin_nanp): New builtins.
34945 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
34946 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
34947 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
34948 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
34949 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
34950 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
34951 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
34952 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
34953 vpminnms_f32): Rewrite using builtin functions.
34955 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
34958 * omp-low.c (offload_symbol_decl): Remove variable.
34959 (get_offload_symbol_decl): Remove function.
34960 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
34961 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
34962 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
34963 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
34964 BUILT_IN_GOACC_UPDATE don't pass it at all.
34966 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
34968 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
34971 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
34973 * ipa-chkp.c (chkp_produce_thunks): Add early param
34974 to split thunks production into two passes. Keep
34975 'always_inline' function bodies after the first pass.
34976 (pass_data_ipa_chkp_early_produce_thunks): New.
34977 (pass_ipa_chkp_early_produce_thunks): New.
34978 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
34979 chkp_produce_thunks signature.
34980 (make_pass_ipa_chkp_early_produce_thunks): New.
34981 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
34982 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
34983 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
34985 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
34987 * cgraph.c (cgraph_node::dump): Dump profile flags.
34989 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
34992 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
34993 reg appear first in the parallel.
34995 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
34997 * ipa-reference.c (set_reference_optimization_summary,
34998 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
35000 (ignore_module_statics): New static var.
35001 (propagate_bits): If ipa-reference is disabled, do not look into local
35003 (analyze_function): Disable analysis when ipa_reference is disabled.
35004 (generate_summary): Do not dump when reference is disabled;
35005 collect vars accessed from functions with ipa-reference disabled.
35006 (get_read_write_all_from_node): When ipa-reference is disabled, use the
35008 (gate): Enable for LTO.
35009 (ignore_edge_p): New function.
35010 (propagate): Skip functions w/o ipa-reference analysis.
35011 * optc-save-gen.awk: Handle optimize_debug correctly.
35012 * opth-gen.awk: Likewise.
35013 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
35014 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
35015 fira-share-save-slots, fira-share-spill-slots,
35016 fmodulo-sched-allow-regmoves, fpartial-inlining,
35017 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
35018 ftracer, ftree-parallelize-loops, fassociative-math,
35019 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
35021 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
35022 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
35024 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
35027 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
35030 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
35032 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
35034 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
35036 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
35037 Remove duplicate option listings.
35039 2015-01-18 Felix Yang <felix.yang@huawei.com>
35041 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
35042 (autofdo_source_profile::get_callsite_total_count,
35043 function_instance::get_function_instance_by_decl,
35044 string_table::get_index, string_table::get_index_by_decl,
35045 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
35046 Fix comment typos. Reformatting and minor code rearrangement.
35048 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35050 * config/rs6000/rs6000.md (probe_stack): Delete.
35051 (probe_stack_address): New.
35053 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35055 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
35056 to test for 32-bit ABIs, not !TARGET_POWERPC64.
35058 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
35060 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
35061 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
35062 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
35064 (rs6000_libcall_value): Use the new function.
35066 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
35068 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
35070 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
35072 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
35073 implement a more precise life analysis for it during backward scan.
35075 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
35077 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
35079 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
35081 PR rtl-optimization/52773
35082 * calls.c (emit_library_call_value): When pushing arguments use
35083 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
35084 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
35085 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
35087 2015-01-17 Jeff Law <law@redhat.com>
35089 PR rtl-optimization/32790
35090 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
35091 not ZERO_EXTEND in SET_DESTs.
35093 2015-01-17 Alan Modra <amodra@gmail.com>
35095 * cprop.c (do_local_cprop): Revert last change.
35097 2015-01-16 DJ Delorie <dj@redhat.com>
35098 Nick Clifton <nickc@redhat.com>
35100 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
35101 (addhi3_real): Likewise. Fix [HL+0] syntax.
35102 (subqi3_real): Likewise.
35103 (subhi3_real): Likewise.
35104 (cbranchqi4_real): Likewise. Allow saddr,#imm.
35105 (cbranchhi4_real): Likewise.
35106 (cbranchhi4_real_inverted): Likewise.
35107 (cbranchsi4_real_lt): Likewise.
35108 (cbranchsi4_real_ge): Likewise.
35109 (cbranchsi4_real_ge): Likewise.
35110 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
35111 (sub<mode>3_virt): Likewise.
35112 (cbranchqi4_virt): Likewise.
35113 (cbranchhi4_virt): Likewise.
35114 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
35115 always use '[reg+imm]' even when imm is zero.
35116 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
35117 (rl78_general_operand): New.
35118 (rl78_nonimmediate_operand): New.
35119 (rl78_nonfar_operand): Use them.
35120 (rl78_nonfar_nonimm_operand): Likewise.
35121 (rl78_stack_based_mem): Fix.
35122 * config/rl78/constraints.md (Ibqi): New.
35127 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
35128 (iorqi3): Likewise.
35129 (xorqi3): Likewise.
35130 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
35132 * config/rl78/constrains (Qs8): New constraint.
35133 * config/rl78/rl78.c (rl78_flags_already_set): New function.
35134 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
35135 * config/rl78/rl78-real.md (update_Z): New attribute.
35136 Update patterns to set it.
35137 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
35138 shorter compare and branch sequence can be used.
35139 (cbranchhi4_real): Likewise.
35140 (cbranchhi4_real_inverted): Likewise.
35142 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
35143 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
35145 * config/rl78/rl78.c (rl78_get_name_encoding): New.
35146 (rl78_option_override): Allow -mes0 only if C.
35147 (characterize_address): Support subregs of symbol_refs.
35148 (rl78_addr_space_address_mode): Move. Add __near.
35149 (rl78_far_p): Likewise.
35150 (rl78_addr_space_pointer_mode): Likewise.
35151 (rl78_as_legitimate_address): Likewise.
35152 (rl78_addr_space_subset_p): Likewise.
35153 (rl78_addr_space_convert): Likewise.
35154 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
35155 symbols with -mes0.
35156 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
35158 (rl78_alloc_physical_registers_op1): Change logic to prefer
35159 symbol[BC] addressing.
35160 (frodata_section): New.
35161 (rl78_asm_init_sections): Initialize it.
35162 (rl78_select_section): Put __far readonly symbols in .frodata.
35163 (rl78_make_type_far): New.
35164 (rl78_insert_attributes): Force all readonly symbols to be
35166 (rl78_asm_out_integer): New.
35167 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
35168 * config/rl78/rl78.opt (-mes0): New.
35170 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
35171 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
35172 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
35173 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
35174 (rl78_saddr_p): New.
35175 (rl78_output_aligned_common): New.
35176 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
35177 (rl78_handle_saddr_attribute): New.
35178 (rl78_handle_naked_attribute): New.
35179 (rl78_attribute_table): Add saddr.
35180 (rl78_print_operand_1): Don't print '!' on saddr operands.
35181 (rl78_print_operand_1): Strip encodings.
35183 (rl78_strip_name_encoding): New.
35184 (rl78_attrlist_to_encoding): New.
35185 (rl78_encode_section_info): New.
35186 (rl78_asm_init_sections): New.
35187 (rl78_select_section): New.
35188 (rl78_output_labelref): New.
35189 (rl78_output_aligned_common): New.
35190 (rl78_asm_out_integer): New.
35191 (rl78_asm_ctor_dtor): New.
35192 (rl78_asm_constructor): New.
35193 (rl78_asm_destructor): New.
35195 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
35196 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
35197 (transcode_memory_rtx): Update.
35198 (rl78_expand_epilogue): Use A_REG instead of 0.
35200 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35202 * config/arm/arm-protos.h (struct tune_params): New field
35203 sched_autopref_queue_depth.
35204 * config/arm/arm.c (sched-int.h): Include header.
35205 (arm_first_cycle_multipass_dfa_lookahead_guard,)
35206 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
35207 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
35208 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
35209 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
35210 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
35211 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
35212 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
35213 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
35214 * config/arm/t-arm (arm.o): Update.
35215 * haifa-sched.c (update_insn_after_change): Update.
35216 (rank_for_schedule): Use auto-prefetcher model, if requested.
35217 (autopref_multipass_init): New static function.
35218 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
35219 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
35220 variable for debug dumps.
35221 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
35222 (autopref_multipass_dfa_lookahead_guard): New global function that
35223 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
35224 (init_h_i_d): Update.
35225 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
35226 * sched-int.h (enum autopref_multipass_data_status): New const enum.
35227 (autopref_multipass_data_): Structure for auto-prefetcher data.
35228 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
35229 (struct _haifa_insn_data:autopref_multipass_data): New field.
35230 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
35231 (autopref_multipass_dfa_lookahead_guard): Declare.
35233 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35235 * rtlanal.c (get_base_term): Handle SCRATCH.
35237 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
35239 * config/aarch64/aarch64.c
35240 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
35241 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35243 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
35244 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
35246 2015-01-17 Alan Modra <amodra@gmail.com>
35248 * cprop.c (do_local_cprop): Disallow replacement of fixed
35251 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35254 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
35257 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
35259 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
35260 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
35262 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35264 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
35265 * config/arm/thumb1.md: ... Here.
35267 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35269 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
35270 TImode for TARGET_32BIT.
35272 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35274 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
35275 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
35277 (rs6000_abi_word_mode): New function.
35279 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35281 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
35282 instead of UNITS_PER_WORD to describe the size of stack slots.
35284 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35286 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
35287 as rs6000_promote_function_mode. Move comment to there.
35288 (rs6000_promote_function_mode): New function.
35290 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
35292 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
35293 -mpowerpc64 is active.
35295 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35297 PR middle-end/64353
35298 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
35301 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
35303 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
35304 introduced in revision 219724.
35306 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35307 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
35310 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
35311 destination is not a GP reg.
35312 (*movdi_aarch64): Likewise.
35314 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
35317 * config/rs6000/default64.h: Revert ISA change.
35319 2015-01-16 Richard Biener <rguenther@suse.de>
35321 PR middle-end/64614
35322 * tree-ssa-uninit.c: Include tree-cfg.h.
35323 (MAX_SWITCH_CASES): New define.
35324 (convert_control_dep_chain_into_preds): Handle switch statements.
35325 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
35326 (normalize_one_pred_1): Do not split bit-manipulations.
35329 2015-01-16 Richard Biener <rguenther@suse.de>
35331 PR tree-optimization/64568
35332 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
35333 complex load rewriting for TARGET_MEM_REFs.
35335 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
35337 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
35339 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
35342 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
35344 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
35345 (aarch64_lra_p): Remove.
35347 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
35350 * ipa-chkp.h (chkp_instrumentable_p): New.
35351 * ipa-chkp.c: Include tree-inline.h.
35352 (chkp_instrumentable_p): New.
35353 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
35354 Fix processing of not instrumentable functions.
35355 (chkp_versioning): Use chkp_instrumentable_p. Warn about
35356 not instrumentable functions.
35357 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
35358 chkp_instrumentable_p.
35359 * tree-inline.h (copy_forbidden): New.
35360 * tree-inline.c (copy_forbidden): Not static anymore.
35362 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
35364 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
35367 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
35369 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
35370 type OP_OUT to OP_INOUT.
35372 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
35374 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
35375 (high x) y) to y if x and y have the same base.
35377 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
35379 * config/arm/cortex-a57.md: New.
35380 * config/aarch64/aarch64.md: Include it.
35381 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
35382 * config/aarch64/aarch64-tune.md: Regenerate.
35384 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
35387 * ccmp.c (expand_ccmp_next): New function.
35388 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
35389 and compare insn sequence.
35390 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
35391 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
35392 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
35393 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
35394 (*ccmp_ior): Changed to ccmp_ior<mode>.
35395 (cmp<mode>): New pattern.
35396 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
35398 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
35400 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
35402 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
35403 _mm256_bsrli_epi128): New.
35404 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
35406 2015-01-15 Jiong Wang <jiong.wang@arm.com>
35408 * expmed.c (store_bit_field_using_insv): Improve warning message.
35409 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
35411 2015-01-15 Jiong Wang <jiong.wang@arm.com>
35413 PR rtl-optimization/64011
35414 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
35415 there is partial overflow.
35417 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35419 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
35421 (nds32_expand_epilogue_v3pop): Likewise.
35422 * config/nds32/nds32.md (sibcall): Define this for sibling call
35424 (sibcall_register): Likewise.
35425 (sibcall_immediate): Likewise.
35426 (sibcall_value): Likewise.
35427 (sibcall_value_register): Likewise.
35428 (sibcall_value_immediate): Likewise.
35429 (sibcall_epilogue): Likewise.
35430 (epilogue): Pass false to indicate this is not a sibcall epilogue.
35431 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
35432 (nds32_expand_epilogue_v3pop): Likewise.
35434 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35436 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
35437 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
35438 (return_internal): New.
35439 (return): Define this named pattern.
35440 (simple_return): Define this named pattern.
35441 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
35442 pattern instead of unspec_volatile_func_return.
35443 (nds32_expand_epilogue_v3pop): Likewise.
35444 (nds32_can_use_return_insn): New function.
35446 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35448 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
35449 * config/nds32/nds32.md (pop25return): New.
35450 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
35451 pop25return pattern.
35453 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35455 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
35456 -mforbid-fp-as-gp, and -mex9 options.
35458 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
35460 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
35461 remove -mgp-direct option.
35463 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35465 * doc/invoke.texi (--param early-inlining-insns): Update default value.
35466 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
35468 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35470 * ipa-inline.c (inline_small_functions): Work around hints
35473 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
35476 * doc/invoke.texi (Option Summary): Document new Nios II
35478 (Nios II Options): Likewise.
35479 * config/nios2/nios2.opt: Add -mgpopt= option support.
35480 Modify existing -mgpopt and -mno-gpopt options to be aliases.
35481 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
35482 * config/nios2/nios2.c (nios2_option_override): Adjust
35483 -mgpopt defaulting.
35484 (nios2_in_small_data_p): Return true for explicit small data
35485 sections even with -G0.
35486 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
35489 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35492 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
35494 (inline_call): Fix removal of aliases.
35496 2015-01-15 Jakub Jelinek <jakub@redhat.com>
35498 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
35499 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
35500 * opts.c (common_handle_option): Add -fsanitize=vptr.
35501 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
35502 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
35503 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
35504 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
35505 (ubsan_expand_vptr_ifn): New prototype.
35506 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
35507 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
35508 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
35509 expand_LOOP_VECTORIZED): Make argument nameless, remove
35511 (expand_UBSAN_VPTR): New function.
35512 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
35514 (UBSAN_VPTR): New internal function.
35515 * sanopt.c (tree_map_traits): Renamed to ...
35516 (sanopt_tree_map_traits): ... this.
35517 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
35518 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
35519 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
35520 (maybe_optimize_ubsan_vptr_ifn): New function.
35521 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
35522 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
35524 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
35525 internal calls like pure functions for aliasing, even when they
35526 have other side-effects that prevent making them ECF_PURE.
35527 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
35528 (ubsan_expand_vptr_ifn): New function.
35530 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
35532 PR rtl-optimization/64110
35533 * stmt.c (parse_output_constraint): Process '^' and '$'.
35534 (parse_input_constraint): Ditto.
35535 * lra-constraints.c (process_alt_operands): Process the new
35537 * ira-costs.c (record_reg_classes): Process the new constraint
35539 * genoutput.c (indep_constraints): Add '^' and '$'.
35540 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
35541 * doc/md.texi: Add description of the new constraints.
35543 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
35544 Bernd Schmidt <bernds@codesourcery.com>
35545 Cesar Philippidis <cesar@codesourcery.com>
35546 James Norris <jnorris@codesourcery.com>
35547 Tom de Vries <tom@codesourcery.com>
35548 Ilmir Usmanov <i.usmanov@samsung.com>
35549 Dmitry Bocharnikov <dmitry.b@samsung.com>
35550 Evgeny Gavrin <e.gavrin@samsung.com>
35551 Jakub Jelinek <jakub@redhat.com>
35553 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
35554 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
35555 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
35556 New function types.
35557 * builtins.c: Include "gomp-constants.h".
35558 (expand_builtin_acc_on_device): New function.
35559 (expand_builtin, is_inexpensive_builtin): Handle
35560 BUILT_IN_ACC_ON_DEVICE.
35561 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
35563 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
35565 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
35566 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
35567 i386/intelmic-offload.h.
35568 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
35569 to libgomp and its dependencies.
35570 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
35571 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
35572 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
35573 * config/ia64/hpux.h (LIB_SPEC): Likewise.
35574 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
35575 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
35576 * doc/generic.texi: Update for OpenACC changes.
35577 * doc/gimple.texi: Likewise.
35578 * doc/invoke.texi: Likewise.
35579 * doc/sourcebuild.texi: Likewise.
35580 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
35581 GF_OMP_FOR_KIND_OACC_LOOP.
35582 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
35583 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
35584 GF_OMP_TARGET_KIND_OACC_UPDATE,
35585 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35587 * gimple.c: Update comments for OpenACC changes.
35588 * gimple.def: Likewise.
35589 * gimple.h: Likewise.
35590 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
35591 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35592 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
35593 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
35594 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
35596 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
35597 * gimplify.c: Include "gomp-constants.h".
35598 Update comments for OpenACC changes.
35599 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
35600 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
35601 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35602 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
35603 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35604 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35605 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
35606 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35607 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
35609 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
35610 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
35611 OMP_CLAUSE_SET_MAP_KIND.
35612 (gimplify_oacc_cache): New function.
35613 (gimplify_omp_for): Handle OACC_LOOP.
35614 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
35616 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
35617 OACC_EXIT_DATA, OACC_UPDATE.
35618 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
35619 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
35620 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
35621 (gimplify_body): Consider flag_openacc next to flag_openmp.
35622 * lto-streamer-out.c: Include "gomp-constants.h".
35623 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
35624 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
35625 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
35626 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
35627 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
35628 (BUILT_IN_ACC_ON_DEVICE): New builtins.
35629 * omp-low.c: Include "gomp-constants.h".
35630 Update comments for OpenACC changes.
35631 (struct omp_context): Add reduction_map, gwv_below, gwv_this
35633 (extract_omp_for_data, use_pointer_for_field, install_var_field)
35634 (new_omp_context, delete_omp_context, scan_sharing_clauses)
35635 (create_omp_child_function, scan_omp_for, scan_omp_target)
35636 (check_omp_nesting_restrictions, lower_reduction_clauses)
35637 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
35638 Update for OpenACC changes.
35639 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
35640 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
35641 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
35642 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
35643 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
35644 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
35646 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
35647 Handle GF_OMP_FOR_KIND_OACC_LOOP.
35648 (expand_omp_target, lower_omp_target): Handle
35649 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
35650 GF_OMP_TARGET_KIND_OACC_UPDATE,
35651 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
35652 GF_OMP_TARGET_KIND_OACC_DATA.
35653 (pass_expand_omp::execute, execute_lower_omp)
35654 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
35656 (offload_symbol_decl): New variable.
35657 (oacc_get_reduction_array_id, oacc_max_threads)
35658 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
35659 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
35660 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
35661 (oacc_gimple_assign, oacc_initialize_reduction_data)
35662 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
35664 (is_targetreg_ctx): Remove function.
35665 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
35666 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
35667 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
35668 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
35669 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
35670 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
35671 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
35672 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
35673 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
35674 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
35675 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
35676 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
35677 * tree-core.h: Update comments for OpenACC changes.
35678 (enum omp_clause_map_kind): Remove.
35679 (struct tree_omp_clause): Change type of map_kind member from enum
35680 omp_clause_map_kind to unsigned char.
35681 * tree-inline.c: Update comments for OpenACC changes.
35682 * tree-nested.c: Likewise. Include "gomp-constants.h".
35683 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
35684 (convert_tramp_reference_stmt, convert_gimple_call): Update for
35685 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
35686 OMP_CLAUSE_SET_MAP_KIND.
35687 * tree-pretty-print.c: Include "gomp-constants.h".
35688 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
35689 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
35690 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
35691 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
35692 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
35693 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
35694 instead of OMP_CLAUSE_MAP_*.
35695 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
35696 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
35697 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
35698 * tree-streamer-in.c: Include "gomp-constants.h".
35699 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
35700 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
35701 * tree-streamer-out.c: Include "gomp-constants.h".
35702 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
35704 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
35705 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
35706 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
35707 * tree.c (omp_clause_num_ops): Update accordingly.
35708 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
35710 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
35711 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
35712 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
35713 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
35714 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
35715 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
35716 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
35717 (OMP_CLAUSE_SET_MAP_KIND): New macro.
35718 * varpool.c (varpool_node::get_create): Consider flag_openacc next
35720 * config/i386/intelmic-offload.h: New file.
35721 * config/nvptx/offload.h: Likewise.
35723 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35725 * explow.h: Remove duplicate contents.
35726 * dojump.h: Likewise.
35728 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
35730 * arm.c (arm_xgene_tune): Add default initializer for instruction
35733 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
35737 * ipa.c (symbol_table::remove_unreachable_nodes):
35738 Do not put abstract origins into boundary.
35740 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
35742 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
35743 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
35745 2015-01-15 Steve Ellcey <sellcey@mips.com>
35747 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
35748 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
35749 builtins.def, and chkp-builtins.def.
35751 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
35753 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
35756 2015-01-15 Richard Biener <rguenther@suse.de>
35758 PR tree-optimization/61743
35759 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
35760 information on PHIs for some simple cases.
35762 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35764 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
35766 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
35767 * config/arm/arm-cores.def (xgene1): New entry.
35768 * config/arm/arm-tables.opt: Regenerate.
35769 * config/arm/arm-tune.md: Regenerate.
35770 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
35772 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
35774 * tree-if-conv.c: Include hash-map.h.
35775 (aggressive_if_conv): New variable.
35776 (fold_build_cond_expr): Add simplification of non-zero condition.
35777 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
35778 destination block is not always executed.
35779 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
35780 than two predecessors if AGGRESSIVE_IF_CONV is true.
35781 (if_convertible_stmt_p): Fix commentary.
35782 (all_preds_critical_p): New function.
35783 (has_pred_critical_p): New function.
35784 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
35785 BB can have more than two predecessors and all incoming edges can be
35787 (predicate_bbs): Skip predication for loop exit block, use build2_loc
35788 to compute predicate for true edge.
35789 (find_phi_replacement_condition): Delete this function.
35790 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
35791 Allow interchange PHI arguments if EXTENDED is false.
35792 Change check that block containing reduction statement candidate
35793 is predecessor of phi-block since phi may have more than two arguments.
35794 (phi_args_hash_traits): New helper structure.
35795 (struct phi_args_hash_traits): New type.
35796 (phi_args_hash_traits::hash): New function.
35797 (phi_args_hash_traits::equal_keys): New function.
35798 (gen_phi_arg_condition): New function.
35799 (predicate_scalar_phi): Add handling of phi nodes with more than two
35800 arguments, delete COND and TRUE_BB arguments, insert body of
35801 find_phi_replacement_condition to predicate ordinary phi nodes.
35802 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
35803 delete call of find_phi_replacement_condition and invoke
35804 predicate_scalar_phi with two arguments.
35805 (insert_gimplified_predicates): Add assert that non-predicated block
35806 don't have statements to insert.
35807 (ifcvt_split_critical_edges): New function.
35808 (ifcvt_split_def_stmt): Likewise.
35809 (ifcvt_walk_pattern_tree): Likewise.
35810 (stmt_is_root_of_bool_pattern): Likewise.
35811 (ifcvt_repair_bool_pattern): Likewise.
35812 (ifcvt_local_dce): Likewise.
35813 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
35814 is copy of inner or outer loop force_vectorize field, invoke
35815 ifcvt_split_critical_edges, ifcvt_local_dce and
35816 ifcvt_repair_bool_pattern for aggressive if-conversion.
35818 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
35820 * config/aarch64/aarch64.md: Include xgene1.md.
35821 * config/aarch64/xgene1.md: New file.
35823 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
35825 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
35826 xgene1 (APM XGene-1) core definition.
35827 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
35828 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
35829 * doc/invoke.texi: Document -mcpu=xgene1.
35831 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
35833 * dojump.h: New header file.
35834 * explow.h: Likewise.
35835 * expr.h: Remove includes.
35836 Move expmed.c prototypes to expmed.h.
35837 Move dojump.c prototypes to dojump.h.
35838 Move alias.c prototypes to alias.h.
35839 Move explow.c prototypes to explow.h.
35840 Move calls.c prototypes to calls.h.
35841 Move emit-rtl.c prototypes to emit-rtl.h.
35842 Move varasm.c prototypes to varasm.h.
35843 Move stmt.c prototypes to stmt.h.
35844 (saved_pending_stack_adjust): Move to dojump.h.
35845 (adjust_address): Move to explow.h.
35846 (adjust_address_nv): Move to emit-rtl.h.
35847 (adjust_bitfield_address): Likewise.
35848 (adjust_bitfield_address_size): Likewise.
35849 (adjust_bitfield_address_nv): Likewise.
35850 (adjust_automodify_address_nv): Likewise.
35851 * explow.c (expr_size): Move to expr.c.
35852 (int_expr_size): Likewise.
35853 (tree_expr_size): Likewise.
35854 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35855 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
35856 * genemit.c (main): Generate includes statistics.h, real.h,
35857 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
35859 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
35860 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
35861 explow.h, emit-rtl.h, stmt.h.
35862 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
35863 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
35864 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
35865 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
35866 emit-rtl.h, varasm.h, stmt.h.
35867 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
35868 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
35869 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
35870 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
35871 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
35872 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
35873 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
35874 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
35875 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
35876 tm.h tree.h varasm.h vec.h wide-int.h.
35877 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35878 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
35879 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
35880 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
35881 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
35882 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
35883 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
35884 * loop-iv.c: Likewise.
35885 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
35886 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
35887 statistics.h stmt.h tree.h varasm.h wide-int.h.
35888 * lra-constraints.c: Likewise.
35889 * lra-eliminations.c: Likewise.
35890 * lra-lives.c: Likewise.
35891 * lra-remat.c: Likewise.
35892 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35893 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
35894 statistics.h stmt.h tree.h varasm.h wide-int.h.
35895 * hw-doloop.c: Likewise.
35896 * ira-color.c: Likewise.
35897 * ira-emit.c: Likewise.
35898 * loop-doloop.c: Likewise.
35899 * loop-invariant.c: Likewise.
35900 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35901 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
35902 statistics.h stmt.h tree.h varasm.h wide-int.h.
35903 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
35904 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
35905 statistics.h stmt.h tree.h varasm.h wide-int.h.
35906 * combine-stack-adj.c: Likewise.
35909 * ifcvt.c: Likewise.
35910 * ira-costs.c: Likewise.
35911 * jump.c: Likewise.
35912 * lra-coalesce.c: Likewise.
35913 * lra-spills.c: Likewise.
35914 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35915 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
35916 stmt.h varasm.h wide-int.h.
35917 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
35918 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
35920 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
35921 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
35922 statistics.h stmt.h varasm.h wide-int.h.
35923 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
35924 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
35925 varasm.h wide-int.h.
35926 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
35927 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
35928 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
35929 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
35930 statistics.h stmt.h.
35931 * config/tilepro/tilepro.c: Likewise.
35932 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
35933 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
35934 * config/pdp11/pdp11.c: Likewise.
35935 * config/xtensa/xtensa.c: Likewise.
35936 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
35937 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
35939 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35940 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
35941 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
35942 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35943 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
35944 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
35945 * rtl-chkp.c: Likewise.
35946 * tree-chkp-opt.c: Likewise.
35947 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
35948 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
35949 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
35950 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35951 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
35952 statistics.h stmt.h.
35953 * tree-vect-data-refs.c: Likewise.
35954 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
35955 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35956 rtl.h statistics.h stmt.h varasm.h.
35957 * internal-fn.c: Likewise.
35958 * ipa-icf-gimple.c: Likewise.
35959 * lto-section-out.c: Likewise.
35960 * tree-data-ref.c: Likewise.
35961 * tree-nested.c: Likewise.
35962 * tree-outof-ssa.c: Likewise.
35963 * tree-predcom.c: Likewise.
35964 * tree-pretty-print.c: Likewise.
35965 * tree-scalar-evolution.c: Likewise.
35966 * tree-ssa-strlen.c: Likewise.
35967 * tree-vect-loop.c: Likewise.
35968 * tree-vect-patterns.c: Likewise.
35969 * tree-vect-slp.c: Likewise.
35970 * tree-vect-stmts.c: Likewise.
35971 * tsan.c: Likewise.
35972 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35973 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
35975 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
35976 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
35977 statistics.h stmt.h varasm.h.
35978 * loop-unroll.c: Likewise.
35979 * ubsan.c: Likewise.
35980 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
35981 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
35983 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
35984 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
35985 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
35986 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
35987 statistics.h stmt.h.
35988 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
35989 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
35990 statistics.h stmt.h varasm.h.
35991 * gimple-match-head.c: Likewise.
35992 * lto-cgraph.c: Likewise.
35993 * lto-section-in.c: Likewise.
35994 * lto-streamer-in.c: Likewise.
35995 * lto-streamer-out.c: Likewise.
35996 * tree-affine.c: Likewise.
35997 * tree-cfg.c: Likewise.
35998 * tree-cfgcleanup.c: Likewise.
35999 * tree-if-conv.c: Likewise.
36000 * tree-into-ssa.c: Likewise.
36001 * tree-ssa-alias.c: Likewise.
36002 * tree-ssa-copyrename.c: Likewise.
36003 * tree-ssa-dse.c: Likewise.
36004 * tree-ssa-forwprop.c: Likewise.
36005 * tree-ssa-live.c: Likewise.
36006 * tree-ssa-math-opts.c: Likewise.
36007 * tree-ssa-pre.c: Likewise.
36008 * tree-ssa-sccvn.c: Likewise.
36009 * tree-tailcall.c: Likewise.
36010 * tree-vect-generic.c: Likewise.
36011 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36012 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
36013 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36014 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
36015 * varasm.c: Likewise.
36016 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36017 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
36019 * init-regs.c: Likewise.
36021 * omp-low.c: Likewise.
36022 * stack-ptr-mod.c: Likewise.
36023 * tree-ssa-reassoc.c: Likewise.
36024 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36025 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
36027 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36028 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
36029 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36030 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
36031 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36032 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
36033 * tree-ssa-phiopt.c: Likewise.
36034 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36035 fixed-value.h hashtab.h real.h statistics.h stmt.h.
36036 * config/fr30/fr30.c: Likewise.
36037 * config/frv/frv.c: Likewise.
36038 * expr.c: Likewise.
36039 * final.c: Likewise.
36040 * optabs.c: Likewise.
36041 * passes.c: Likewise.
36042 * simplify-rtx.c: Likewise.
36043 * stmt.c: Likewise.
36044 * toplev.c: Likewise.
36045 * var-tracking.c: Likewise.
36046 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36047 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36048 * lower-subreg.c: Likewise.
36049 * postreload-gcse.c: Likewise.
36051 * reginfo.c: Likewise.
36052 * store-motion.c: Likewise.
36053 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36054 fixed-value.h hashtab.h real.h stmt.h varasm.h.
36055 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36056 fixed-value.h hashtab.h statistics.h stmt.h.
36057 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36058 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
36059 * except.c: Likewise.
36060 * explow.c: Likewise.
36061 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36062 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
36064 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36065 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
36066 * tree-ssa-structalias.c: Likewise.
36067 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36068 fixed-value.h insn-config.h real.h statistics.h.
36069 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36070 fixed-value.h insn-config.h real.h statistics.h stmt.h.
36071 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36072 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36073 * cfgbuild.c: Likewise.
36074 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36075 fixed-value.h real.h rtl.h statistics.h stmt.h.
36076 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36077 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36078 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36079 fixed-value.h real.h statistics.h stmt.h.
36080 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
36081 fixed-value.h real.h statistics.h stmt.h varasm.h.
36082 * cprop.c: Likewise.
36083 * modulo-sched.c: Likewise.
36084 * postreload.c: Likewise.
36085 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36086 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
36087 statistics.h stmt.h varasm.h.
36088 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
36089 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36090 rtl.h statistics.h stmt.h varasm.h.
36091 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
36092 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
36094 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
36095 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
36097 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
36098 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
36100 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
36101 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36102 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36103 function.h real.h statistics.h stmt.h varasm.h.
36104 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36105 insn-config.h real.h statistics.h stmt.h.
36106 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
36107 statistics.h stmt.h.
36108 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
36109 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
36110 statistics.h stmt.h varasm.h.
36111 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
36112 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
36113 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36114 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
36115 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
36116 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
36117 statistics.h stmt.h varasm.h.
36118 * ipa-polymorphic-call.c: Likewise.
36119 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
36120 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36121 statistics.h stmt.h.
36122 * config/c6x/c6x.c: Likewise.
36123 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
36124 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
36125 statistics.h stmt.h varasm.h.
36126 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
36127 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
36129 * ipa-split.c: Likewise.
36130 * tree-eh.c: Likewise.
36131 * tree-ssa-dce.c: Likewise.
36132 * tree-ssa-loop-niter.c: Likewise.
36133 * tree-vrp.c: Likewise.
36134 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
36135 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
36137 * config/nds32/nds32-fp-as-gp.c: Likewise.
36138 * config/nds32/nds32-intrinsic.c: Likewise.
36139 * config/nds32/nds32-isr.c: Likewise.
36140 * config/nds32/nds32-md-auxiliary.c: Likewise.
36141 * config/nds32/nds32-memory-manipulation.c: Likewise.
36142 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
36143 * config/nds32/nds32-predicates.c: Likewise.
36144 * config/nds32/nds32.c: Likewise.
36145 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
36146 fixed-value.h hashtab.h real.h statistics.h.
36147 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
36148 fixed-value.h hashtab.h real.h statistics.h stmt.h.
36149 * config/arm/arm.c: Likewise.
36150 * config/avr/avr.c: Likewise.
36151 * config/bfin/bfin.c: Likewise.
36152 * config/h8300/h8300.c: Likewise.
36153 * config/i386/i386.c: Likewise.
36154 * config/ia64/ia64.c: Likewise.
36155 * config/iq2000/iq2000.c: Likewise.
36156 * config/m32c/m32c.c: Likewise.
36157 * config/m32r/m32r.c: Likewise.
36158 * config/m68k/m68k.c: Likewise.
36159 * config/mcore/mcore.c: Likewise.
36160 * config/mep/mep.c: Likewise.
36161 * config/mips/mips.c: Likewise.
36162 * config/mn10300/mn10300.c: Likewise.
36163 * config/moxie/moxie.c: Likewise.
36164 * config/pa/pa.c: Likewise.
36165 * config/rl78/rl78.c: Likewise.
36166 * config/rx/rx.c: Likewise.
36167 * config/s390/s390.c: Likewise.
36168 * config/sh/sh.c: Likewise.
36169 * config/sparc/sparc.c: Likewise.
36170 * config/spu/spu.c: Likewise.
36171 * config/stormy16/stormy16.c: Likewise.
36172 * config/v850/v850.c: Likewise.
36173 * config/vax/vax.c: Likewise.
36174 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
36175 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
36176 * config/msp430/msp430.c: Likewise.
36177 * predict.c: Likewise.
36178 * value-prof.c: Likewise.
36179 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
36180 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
36181 * config/microblaze/microblaze.c: Likewise.
36182 * config/nios2/nios2.c: Likewise.
36183 * config/rs6000/rs6000.c: Likewise.
36184 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36185 insn-config.h real.h rtl.h statistics.h stmt.h.
36186 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
36187 insn-config.h real.h statistics.h stmt.h.
36188 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
36189 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
36190 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
36191 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
36192 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
36193 fixed-value.h real.h statistics.h stmt.h.
36194 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
36195 fixed-value.h statistics.h stmt.h.
36196 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
36199 2015-01-15 Jakub Jelinek <jakub@redhat.com>
36201 * gengtype.c (create_user_defined_type): Workaround
36202 -Wmaybe-uninitialized false positives.
36203 * cse.c (fold_rtx): Likewise.
36204 * loop-invariant.c (gain_for_invariant): Likewise.
36206 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
36208 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
36209 set the memory attributes in all cases but clear MEM_EXPR if need be.
36211 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
36213 PR tree-optimization/64434
36214 * cfgexpand.c (reorder_operands): New function.
36215 (expand_gimple_basic_block): Insert call of reorder_operands if
36218 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
36220 * config/mips/micromips.md (*swp): Remove explicit parallel.
36221 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
36222 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
36223 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
36224 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
36225 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
36226 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
36227 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
36228 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
36229 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
36230 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
36231 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
36232 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
36233 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
36234 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
36235 (mips_wrdsp): Likewise.
36236 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
36238 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
36239 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
36240 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
36241 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
36242 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
36243 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
36244 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
36245 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
36246 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
36248 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36250 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
36251 (mips_print_operand): Support 'y' to print exact log2 in decimal
36253 * config/mips/mips.h (ISA_HAS_LSA): New define.
36254 (ISA_HAS_DLSA): Likewise.
36255 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
36256 * config/mips/predicates.md (const_immlsa_operand): New predicate.
36258 2015-01-15 Martin Liska <mliska@suse.cz>
36261 * optc-save-gen.awk: Add support for array types.
36263 2015-01-15 Richard Biener <rguenther@suse.de>
36265 PR middle-end/64365
36266 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
36267 for MEM_REF access functions with the same base can never partially
36270 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
36272 * common.opt: New option -fstack-protector-explicit.
36273 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
36274 (stack_protect_decl_phase): Handle stack_protect attribute for
36275 explicit stack protection requests.
36276 (expand_used_vars): Similarly.
36277 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
36278 * doc/extend.texi: Add documentation for "stack_protect" attribute.
36279 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
36281 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
36284 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
36286 (sh_extending_set_of_reg): New struct.
36287 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
36288 sh_remove_reg_dead_or_unused_notes): New Declarations.
36289 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
36290 sh_find_extending_set_of_reg, sh_split_tst_subregs,
36291 sh_extending_set_of_reg::use_as_extended_reg): New functions.
36292 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
36293 convert to insn_and_split and use new function sh_split_tst_subregs.
36295 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
36297 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
36299 (Optimization Options): Move -fuse-ld documentation to...
36300 (Link Options): ...here.
36302 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36304 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
36306 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
36307 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
36308 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
36309 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
36310 instead of ZR for the memory operand of LL/SC.
36311 (compare_and_swap_12, sync_add<mode>): Likewise.
36312 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
36313 (sync_new_<optab>_12, sync_nand_12): Likewise.
36314 (sync_old_nand_12, sync_new_nand_12): Likewise.
36315 (sync_sub<mode>, sync_old_add<mode>): Likewise.
36316 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
36317 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
36318 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
36319 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
36320 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
36321 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
36322 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
36323 * doc/md.texi (ZC): Update description.
36325 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
36327 * builtins.c (expand_builtin_atomic_exchange): Remove error when
36328 memory model is CONSUME.
36329 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
36330 expand_builtin_atomic_store): Change invalid memory model errors to
36332 (expand_builtin_atomic_clear): Change invalid model errors to warnings
36333 and issue warning for CONSUME.
36335 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
36337 * lto-cgraph: Update function comments for
36338 lto_symtab_encoder_encode_*.
36340 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
36342 * Makefile.in (site.exp): Do not set ENABLE_LTO.
36344 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
36346 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
36347 * lto-cgraph.c (select_what_to_stream): Remove argument, use
36348 lto_stream_offload_p instead.
36349 * lto-streamer.h (select_what_to_stream): Remove argument.
36350 * passes.c (ipa_write_summaries): Likewise.
36351 * tree-pass.h (ipa_write_summaries): Likewise.
36353 2015-01-14 Richard Biener <rguenther@suse.de>
36355 PR tree-optimization/59354
36356 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
36357 groups larger than the slp group size as having gaps.
36359 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
36361 PR middle-end/59448
36362 * builtins.c (get_memmodel): Promote consume to acquire always.
36364 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36367 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
36370 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36373 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
36375 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
36376 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
36377 AVX512VBMI, as it implies AVX512BW.
36379 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
36382 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
36383 (vec_unpacks_hi_v16sf): Ditto.
36385 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36387 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
36390 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36392 * doc/invoke.texi (mapcs): Mention deprecation.
36393 (mapcs-frame): Likewise.
36395 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
36398 * config/arm/arm.c (callee_saved_reg_p): Define.
36399 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
36400 register is callee saved instead of !call_used_regs[reg].
36401 (thumb1_compute_save_reg_mask): Likewise.
36403 2015-01-14 Hale Wang <hale.wang@arm.com>
36405 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
36408 2015-01-14 Richard Biener <rguenther@suse.de>
36411 * tree-inline.c (insert_debug_decl_map): Check destination
36412 function MAY_HAVE_DEBUG_STMTS.
36413 (insert_init_debug_bind): Likewise.
36414 (insert_init_stmt): Remove redundant check.
36415 (remap_gimple_stmt): Drop debug stmts if the destination
36416 function has var-tracking assignments disabled.
36418 2015-01-14 Martin Liska <mliska@suse.cz>
36420 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
36421 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
36423 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36426 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
36427 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
36429 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
36431 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
36432 level from an ARCH; do not inject the default.
36433 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
36434 MIPS_ISA_LEVEL_SPEC.
36435 (MIPS_ISA_NAN2008_SPEC): Update comment.
36436 (BASE_DRIVER_SELF_SPECS): Likewise.
36437 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
36438 MIPS_DEFAULT_ISA_LEVEL_SPEC.
36439 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
36440 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
36441 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
36443 2015-01-14 Richard Biener <rguenther@suse.de>
36445 PR tree-optimization/64493
36446 PR tree-optimization/64495
36447 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
36448 assign the proper vectorized PHI to the inner loop exit PHIs.
36450 2015-01-14 Joey Ye <joey.ye@arm.com>
36452 * config/arm/arm.c (arm_compute_save_reg_mask):
36453 Do not save lr in case of tail call.
36454 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
36456 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
36458 * tree-vrp.c (check_array_ref): Emit more warnings
36459 for warn_array_bounds >= 2.
36460 * common.opt: New option -Warray-bounds=.
36461 * doc/invoke.texi: Document -Warray-bounds=.
36463 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
36465 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
36466 (mforbid-fp-as-gp): Remove.
36468 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
36469 (nds32_symbol_load_store_p): Remove.
36470 (nds32_fp_as_gp_check_available): Clean up implementation.
36471 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
36473 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
36474 fp-as-gp and ex9 cases.
36476 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36478 * tree-profile.c (init_ic_make_global_vars): Drop workaround
36479 for bintuils bug 14342.
36480 (init_ic_make_global_vars): Likewise.
36481 (gimple_init_edge_profiler): Likewise.
36482 (gimple_gen_ic_func_profiler): Likewise.
36484 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
36486 * ipa-inline.c (inline_small_functions): Swap the operands in
36489 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36492 * ipa-inline-analysis.c (node_growth_cache): Remove.
36493 (initialize_growth_caches): Do not initialize it.
36494 (free_growth_caches): Do not free it.
36495 (do_estimate_growth): Rename to ...
36496 (estimate_growth): ... this one; drop growth cache code.
36497 (growth_likely_positive): Always go the heuristics way.
36498 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
36499 (reset_edge_caches): Do not reset node growth.
36500 (heap_edge_removal_hook): Do not maintain cache.
36501 (inline_small_functions): Likewise; strenghten sanity check.
36502 (ipa_inline): Do not maintain caches.
36503 * ipa-inline.h (node_growth_cache): Remove.
36504 (do_estimate_growth): Remove to ...
36505 (estimate_growth): this one; remove inline version.
36506 (reset_node_growth_cache): Remove.
36508 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
36511 * ipa-inline.c (inline_small_functions): Update callee keys after
36512 resolving speculation
36513 (inline_small_functions): Always check monotonicity of the queue.
36515 2015-01-13 Marek Polacek <polacek@redhat.com>
36517 PR middle-end/64391
36518 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
36520 2015-01-13 Jakub Jelinek <jakub@redhat.com>
36522 PR rtl-optimization/64286
36523 * ree.c (combine_reaching_defs): Move part of comment earlier,
36524 remove !SCALAR_INT_MODE_P check.
36525 (add_removable_extension): Don't add vector mode
36526 extensions if all uses of the source register aren't the same
36529 2015-01-13 Renlin Li <renlin.li@arm.com>
36531 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
36532 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
36534 2015-01-13 Martin Liska <mliska@suse.cz>
36536 * ipa-icf.c (sem_function::equals_private): Call new functions
36537 cl_target_option_print_diff and cl_optimization_print_diff.
36538 * optc-save-gen.awk (cl_target_option_print_diff): New function.
36539 (cl_optimization_print_diff): Likewise.
36540 * opth-gen.awk: Likewise.
36542 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
36544 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
36545 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
36546 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
36547 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
36548 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
36549 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
36551 2015-01-13 Andrew Pinski <apinski@cavium.com>
36553 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
36554 instead of src mode.
36556 2015-01-13 Richard Biener <rguenther@suse.de>
36559 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
36562 2015-01-13 Andrew Pinski <apinski@cavium.com>
36564 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
36566 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
36568 2015-01-13 Jakub Jelinek <jakub@redhat.com>
36570 PR middle-end/63974
36571 * cfgexpand.c (expand_computed_goto): Don't call
36572 convert_memory_address here.
36574 2015-01-13 Richard Biener <rguenther@suse.de>
36576 PR tree-optimization/64406
36577 * tree-loop-distibution.c (pass_loop_distribution::execute):
36578 Reset the SCEV hashtable if we distributed anything.
36580 2015-01-13 Richard Biener <rguenther@suse.de>
36582 PR tree-optimization/64404
36583 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
36584 SLP types for CSEd loads.
36586 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
36588 PR tree-optimization/64436
36589 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
36590 merge of two symbolic numbers for a bitwise OR to ...
36591 (perform_symbolic_merge): This. Also fix computation of the range and
36592 end of the symbolic number corresponding to the result of a bitwise OR.
36594 2015-01-13 Richard Biener <rguenther@suse.de>
36596 PR tree-optimization/64568
36597 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
36598 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
36600 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36602 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
36603 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
36605 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36607 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
36608 target-specific symbol_ref flag.
36609 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
36610 resides in rodata section.
36611 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
36612 (nds32_encode_section_info): New function.
36614 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36616 * config/nds32/nds32.md (call): Use pseudo instruction bal which
36617 clobbers TA_REGNUM if large code model is specified.
36618 (call_register): Likewise.
36619 (call_immediate): Likewise.
36620 (call_value): Likewise.
36621 (call_value_register): Likewise.
36622 (call_value_immediate): Likewise.
36624 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36626 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
36627 (TARGET_CMODEL_MEDIUM): New macro.
36628 (TARGET_CMODEL_LARGE): New macro.
36629 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
36630 code model setting in assembly code.
36632 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36634 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
36635 Remove MASK_GP_DIRECT flag.
36636 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
36637 one of the multilib default options.
36638 * config/nds32/nds32.opt (mgp-direct): Remove.
36639 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
36640 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
36642 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
36644 * config/nds32/nds32.opt (mcmodel): Add new option.
36645 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
36646 to describe code model.
36648 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
36651 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
36653 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
36655 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
36656 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
36657 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
36658 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
36659 __builtin_sh_set_fpscr.
36661 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
36663 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
36664 after a funtion name just to indicate it is a function.
36665 ([-fsanitize-undefined-trap-on-error]): Likewise.
36666 ([-fdbg-cnt=]): Likewise.
36667 ([-mmemcpy]): Likewise.
36668 ([-mflush-func]): Likewise.
36669 ([-msynci]): Likewise.
36671 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
36673 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
36676 2015-01-12 Jakub Jelinek <jakub@redhat.com>
36678 PR tree-optimization/64563
36679 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
36680 instead of != VR_VARYING.
36683 * config/i386/i386.c (ix86_expand_prologue): Add
36684 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
36686 PR tree-optimization/64454
36687 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
36688 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
36689 for signed or [0, op1 - 1] for unsigned modulo.
36690 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
36691 even if op1 does not satisfy integer_pow2p.
36694 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
36696 2015-01-12 Jeff Law <law@redhat.com>
36699 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
36700 (trunchiqi2, truncsihi2): Similarly.
36702 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
36703 rather than calling F.
36705 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
36707 * tsan.c (instrument_expr): Use force_gimple_operand.
36708 Use may_be_nonaddressable_p instead of is_gimple_addressable.
36710 2015-01-12 Richard Biener <rguenther@suse.de>
36712 PR tree-optimization/64530
36713 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
36716 2015-01-12 Richard Biener <rguenther@suse.de>
36718 PR middle-end/64357
36719 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
36722 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36724 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
36725 Cortex-A17 tuning parameters.
36726 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
36728 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36730 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
36731 * config/arm/arm.c (arm_macro_fusion_p): New function.
36732 (arm_macro_fusion_pair_p): Likewise.
36733 (TARGET_SCHED_MACRO_FUSION_P): Define.
36734 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
36735 (ARM_FUSE_NOTHING): Likewise.
36736 (ARM_FUSE_MOVW_MOVT): Likewise.
36737 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
36738 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
36739 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
36740 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
36741 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
36742 arm_cortex_a5_tune): Specify fuseable_ops value.
36744 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
36747 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
36748 test for PIE with copy reloc.
36749 * configure: Regenerated.
36751 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36753 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
36755 (arm_tls_descseq_addr): Likewise.
36756 (arm_gen_movmemqi): Likewise.
36757 (arm_expand_epilogue_apcs_frame): Likewise.
36758 (arm_expand_epilogue): Likewise.
36759 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
36762 2015-01-12 Martin Liska <mliska@suse.cz>
36765 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
36766 volatility for correct operands.
36768 2015-01-12 Martin Liska <mliska@suse.cz>
36770 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
36771 indication that a function is not leaf.
36772 (sem_function::compare_polymorphic_p): Likewise.
36774 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
36776 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
36777 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
36778 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
36779 fold-const.h, tree-check.h.
36781 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
36785 * ipa-inline.c (compute_uninlined_call_time,
36786 compute_inlined_call_time): Use counts for extra precision when
36788 (big_speedup_p): Fix formating.
36789 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
36790 (relative_time_benefit): Remove.
36791 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
36792 merge guessed and read profile paths.
36793 (inline_small_functions): Count only !optimize_size functions into
36794 initial size; be more lax about sanity check when profile is used;
36795 be sure to update inlined function profile when profile is read.
36797 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
36800 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
36801 cost when edge becomes direct.
36802 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
36803 is resolved or when introducing new speculation.
36805 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
36809 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
36810 '||' to fix typo issue.
36812 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
36813 accept and return NULL.
36815 2015-01-12 Martin Liska <mliska@suse.cz>
36817 * cgraph.c (cgraph_edge::remove_callee): Move function to header
36818 file for being inlined.
36819 (cgraph_set_edge_callee): Delete.
36820 (cgraph_edge::redirect_callee): Move function to header file
36822 (cgraph_edge::make_direct): Use new function.
36823 (cgraph_edge::dump_edge_flags): New function created from
36824 static dump_edge_flags function.
36825 (cgraph_node::dump): Use new function.
36826 (cgraph_edge::verify_count_and_frequency): New function created
36827 from verify_edge_count_and_frequency.
36828 (cgraph_edge::verify_corresponds_to_fndecl): New function created
36829 from verify_edge_corresponds_to_fndecl.
36830 (verify_edge_corresponds_to_fndecl): Delete.
36831 (cgraph_node::verify_node): Use new function.
36832 * cgraph.h (cgraph_edge::set_callee): New function.
36833 (cgraph_edge::dump_edge_flags): Likewise.
36834 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
36836 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
36838 * ipa-utils.c (estimate_function_body_sizes): Do not
36839 free node params when called late with early=true.
36841 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
36843 * doc/md.texi (Instruction Patterns): Rewrite text for
36845 (Example): Likewise.
36847 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
36849 * doc/invoke.texi (Option Summary): Break long lines.
36850 [(-fdiagnostics-color)]: Put long literal in @smallexample
36852 [(-fsanitize-recover)]: Likewise.
36853 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
36854 [(-ffast-math)]: Likewise.
36855 [(--param max-inline-insns-recursive)]: Likewise.
36856 [(--param max-inline-recursive-depth)]: Likewise.
36857 [(-mno-text-section-literals)]: Likewise.
36859 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
36861 * doc/install.texi: Update for libgomp being renamed from "GNU
36862 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
36864 * doc/sourcebuild.texi: Likewise.
36866 2015-01-10 Anthony Green <green@moxielogic.com>
36868 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
36869 mul.x availability for moxiebox configuration.
36871 2015-01-09 Anthony Green <green@moxielogic.com>
36873 * config/moxie/moxie.md: Tabify assembly output.
36875 2015-01-09 Anthony Green <green@moxielogic.com>
36877 * config/moxie/moxie.md (CC_REG): Correct register definition.
36879 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
36881 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
36882 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
36885 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
36887 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
36889 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
36890 Jakub Jelinek <jakub@redhat.com>
36892 PR middle-end/64412
36893 * lto-streamer.h (lto_stream_offload_p): New declaration.
36894 * lto-streamer.c (lto_stream_offload_p): New variable.
36895 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
36896 at the same time as section_name_prefix.
36897 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
36898 if lto_stream_offload_p.
36899 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
36900 stream TREE_TARGET_OPTION if lto_stream_offload_p.
36901 (write_ts_function_decl_tree_pointers): Don't
36902 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
36903 * tree-streamer-in.c (unpack_value_fields): Don't stream
36904 TREE_TARGET_OPTION in if ACCEL_COMPILER.
36905 (lto_input_ts_function_decl_tree_pointers): Don't stream
36906 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
36907 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
36908 instead of section_name_prefix string comparisons.
36910 2015-01-09 Jakub Jelinek <jakub@redhat.com>
36912 PR rtl-optimization/64536
36913 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
36916 2015-01-09 Michael Collison <michael.collison@linaro.org>
36918 PR tree-optimization/64322
36919 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
36920 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
36922 2015-01-09 Tom de Vries <tom@codesourcery.com>
36924 PR rtl-optimization/64539
36925 * regcprop.c (kill_clobbered_values): Factor out of ...
36926 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
36927 instead of note_stores with kill_clobbered_value.
36929 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
36931 * ginclude/unwind-arm-common.h: Revert previous commit.
36933 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
36935 * config.gcc (arm*-*-freebsd*): New configuration.
36936 * config/arm/freebsd.h: New file.
36937 * config.host: Add extra components for arm*-*-freebsd*.
36938 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
36939 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
36941 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36943 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
36945 * config/rs6000/t-rtems: Add e6500 multilibs.
36947 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36949 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
36952 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36954 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
36955 MULTILIB_EXCEPTIONS.
36957 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36959 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
36960 MULTILIB_EXCEPTIONS.
36962 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
36964 * config/arm/t-rtems-eabi: Rename to...
36965 * config/arm/t-rtems: ...this.
36966 * config/arm/rtems-eabi.h: Rename to...
36967 * config/arm/rtems.h: ...this.
36968 * config.gcc (arm*-*-rtems*): Reflect changes above.
36970 2015-01-09 Richard Biener <rguenther@suse.de>
36972 PR tree-optimization/64410
36973 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
36975 (execute_update_addresses_taken): Deal with that.
36976 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
36977 loads/stores for complex variables.
36979 2015-01-09 Martin Liska <mliska@suse.cz>
36981 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
36983 (func_checker::compare_memory_operand): New function.
36984 (func_checker::compare_operand): Split case to newly
36986 (func_checker::compare_cst_or_decl): New function.
36987 (func_checker::compare_gimple_call): Identify
36989 (func_checker::compare_gimple_assign): Likewise.
36990 * ipa-icf-gimple.h: New function.
36992 2015-01-09 Martin Liska <mliska@suse.cz>
36995 * sreal.c (sreal::dump): Change unsigned format to signed for
36997 (sreal::to_double): Replace exp2 with scalbln.
36999 2015-01-09 Martin Liska <mliska@suse.cz>
37001 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
37002 * ipa-icf.c (sem_function::equals_private): Add support for target and
37003 (sem_item_optimizer::merge_classes): Remove redundant function
37004 optimization flags comparison.
37005 * tree.h (target_opts_for_fn): New function.
37007 2015-01-09 Tom de Vries <tom@codesourcery.com>
37009 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
37011 2015-01-09 Kito Cheng <kito@0xlab.org>
37013 PR rtl-optimization/64348
37014 * lra-constraints.c (split_reg): Fix caller-save store/restore
37015 instruction generation.
37017 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
37019 PR gcov-profile/61790
37020 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
37021 long long. Fallback to int64_t if host doesn't have long long and
37022 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
37024 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37026 PR tree-optimization/63989
37027 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
37028 from 1000 to 10000.
37029 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
37030 (get_stridx): If we don't have a record for certain SSA_NAME,
37031 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
37032 constant offset, call get_stridx_plus_constant.
37033 (get_stridx_plus_constant): New function.
37034 (zero_length_string): Don't use get_stridx here.
37037 PR middle-end/64388
37038 * dse.c (struct insn_info): Mention frame_read set also
37039 before reload for tail calls on some targets.
37040 (scan_insn): Revert 2014-12-22 change. Set frame_read
37041 also before reload for tail calls if
37042 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
37043 instead of add_non_frame_wild_read for non-const/memset
37044 tail calls after reload.
37046 2015-01-08 Jason Merrill <jason@redhat.com>
37048 * ubsan.c (do_ubsan_in_current_function): New.
37049 (pass_ubsan::gate): Use it.
37050 * ubsan.h: Declare it.
37051 * convert.c (convert_to_integer): Use it.
37053 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37056 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
37057 compare_code when it is unconditionally overwritten afterwards.
37058 Use ix86_reverse_condition instead of reverse_condition. Don't
37059 change code if *reverse_condition* returned UNKNOWN and don't
37060 swap ct/cf and negate diff in that case.
37062 2015-01-08 Mike Stump <mikestump@comcast.net>
37064 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
37065 (pass_tsan_O0::gate): Likewise.
37066 * extend.texi (Function Attributes): Add no_sanitize_thread
37069 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
37071 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
37072 for registering builtins.
37073 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
37074 add -fopenmp to the argv_obstack used when invoking
37075 compile_for_target.
37077 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
37078 add "-m32" or "-m64" to argv_obstack.
37079 (generate_host_descr_file): Likewise, when invoking host_compiler.
37080 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
37083 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
37085 * config/sh/sh-mem.cc: Use constant as second operand when emitting
37088 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
37091 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
37092 constant load if constant operand fits into I08.
37094 2015-01-08 Jakub Jelinek <jakub@redhat.com>
37097 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
37098 and TREE_THIS_VOLATILE for MEM_REFs.
37099 (build5_stat): Fix up initialization of TREE_READONLY and
37100 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
37102 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
37105 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
37106 of r for the second alternative of the destination operand.
37108 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
37111 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
37113 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
37115 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
37117 ([-fivar-visibility], [-fvisibility]): Likewise.
37119 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
37121 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
37122 the file where @code, @command, etc is more appropriate.
37124 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
37126 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
37127 of -mrecip= documentation.
37129 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
37132 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
37133 correct reload handler if -m32 -mpowerpc64 is used.
37135 2015-01-06 Tom de Vries <tom@codesourcery.com>
37137 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
37139 2015-01-08 Christian Bruel <christian.bruel@st.com>
37142 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
37144 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
37146 PR tree-optimization/63259
37147 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
37148 if optab exists for 16bit byteswap.
37150 2015-01-06 Jakub Jelinek <jakub@redhat.com>
37152 * opts.c (common_handle_option): Add support for
37153 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
37154 * doc/invoke.texi: Document -fno-sanitize=all,
37155 -f{,no-}sanitize-recover=all. Document that
37156 -fsanitize=float-cast-overflow is not enabled
37157 by -fsanitize=undefined. Fix up documentation
37158 of -f{,no-}sanitize-recover.
37160 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
37162 * config.gcc: Add Visium support.
37163 * configure.ac: Likewise.
37164 * configure: Regenerate.
37165 * doc/extend.texi (interrupt attribute): Add Visium.
37166 * doc/invoke.texi: Document Visium options.
37167 * doc/install.texi: Document Visium target.
37168 * doc/md.texi: Document Visium constraints.
37169 * common/config/visium: New directory.
37170 * config/visium: Likewise.
37172 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
37174 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
37175 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
37177 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
37179 * combine.c (combine_validate_cost): Do not count the cost of a
37180 split I2 twice. Do not display it twice in the dump, either.
37182 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
37184 Revert parts of r219199.
37185 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
37187 ([-Wtraditional]): Restore markup on <limits.h>.
37189 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
37192 * doc/invoke.texi: Document -Wsuggest-override.
37194 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
37196 PR rtl-optimization/64287
37197 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
37198 (process_options): Disable flag_ipa_ra if profiling.
37200 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
37202 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
37204 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
37206 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
37207 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
37208 put under #if TARGET_LOOPS guard.
37210 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
37212 * config/i386/i386.c (output_387_binary_op): Use std::swap.
37214 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
37216 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
37217 * rtl.h (refers_to_regno_p): Add overload.
37219 * bt-load.c: Likewise.
37220 * combine.c: Likewise.
37221 * df-scan.c: Likewise.
37222 * sched-deps.c: Likewise.
37223 * config/s390/s390.c: Likewise.
37224 * config/m32r/m32r.c: Likewise.
37225 * config/rs6000/spe.md: Likewise.
37226 * config/rs6000/rs6000.c: Likewise.
37227 * config/pa/pa.c: Likewise.
37228 * config/stormy16/stormy16.c: Likewise.
37229 * config/cris/cris.c: Likewise.
37230 * config/arc/arc.md: Likewise.
37231 * config/arc/arc.c: Likewise.
37232 * config/sh/sh.md: Likewise.
37233 * config/sh/sh.c: Likewise.
37234 * config/frv/frv.c: Likewise.
37236 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37239 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
37240 call as cleanup of the whole body.
37241 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
37242 * tsan.c (replace_func_exit): New function.
37243 (instrument_func_exit): Moved earlier.
37244 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
37245 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
37247 (tsan_pass): Don't call instrument_func_exit.
37248 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
37249 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
37253 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
37254 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
37255 it to libubsan handler instead of EXPR. Fold comparisons earlier,
37256 if the result is integer_zerop, return NULL_TREE.
37257 * convert.c (convert_to_integer): Pass expr as ARG.
37259 PR tree-optimization/64465
37260 * tree-inline.c (redirect_all_calls): During inlining
37261 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
37262 changed the stmt to a non-throwing call.
37264 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
37266 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
37267 etc markup throughout the file.
37269 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
37271 Enable experimental TSAN support for Ada.
37272 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
37274 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37276 PR tree-optimization/64494
37277 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
37278 clear SSA_NAME_ANTI_RANGE_P flag.
37280 2015-01-05 Marek Polacek <polacek@redhat.com>
37282 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
37284 2015-01-05 Jakub Jelinek <jakub@redhat.com>
37286 Update copyright years.
37288 * gcc.c (process_command): Update copyright notice dates.
37289 * gcov-dump.c: Ditto.
37291 * doc/cpp.texi: Bump @copying's copyright year.
37292 * doc/cppinternals.texi: Ditto.
37293 * doc/gcc.texi: Ditto.
37294 * doc/gccint.texi: Ditto.
37295 * doc/gcov.texi: Ditto.
37296 * doc/install.texi: Ditto.
37297 * doc/invoke.texi: Ditto.
37299 * auto-profile.c, auto-profile.h: Fix up Copyright line.
37301 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
37303 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
37305 ([-fvtable-verify], [-fvtv-debug]): Likewise.
37306 ([-Wabi]): Likewise.
37307 ([-fmessage-length]): Likewise.
37308 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
37309 ([-Wno-discarded-qualifiers]): Likewise.
37310 ([-Wnodiscarded-array-qualifiers]): Likewise.
37311 ([-Wno-virtual-move-assign]): Likewise.
37312 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
37313 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
37314 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
37315 ([-fsanitize-undefined-trap-on-error]): Likewise.
37316 ([-floop-interchange]): Likewise.
37317 ([-ftree-coalesce-inlined-vars]): Likewise.
37318 ([-fvect-cost-model]): Likewise.
37319 ([-flto]): Likewise.
37320 ([--param]): Likewise.
37321 (Spec Files): Likewise.
37322 ([-mstrict-align]): Likewise.
37323 ([-mfix-cortex-a53-835769]): Likewise.
37324 ([-march], [-mtune]): Likewise.
37325 ([-mpic-register]): Likewise.
37326 ([-munaligned-access]): Likewise.
37327 ([-msp8]): Likewise.
37328 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
37329 (AVR Built-in Macros): Likewise.
37330 ([-mpreferred-stack-boundary]): Likewise.
37331 ([-mtune-crtl]): Likewise.
37332 ([-mashf]): Likewise.
37333 ([-mmcu=]): Likewise.
37334 ([-minrt]): Likewise.
37335 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
37336 ([-mupper-regs]): Likewise.
37337 ([-matomic-model]): Likewise.
37338 ([-mdiv]): Likewise.
37339 ([-mzdcbranch]): Likewise.
37340 ([-mdisable-callt]): Likewise.
37341 ([-msoft-float]): Likewise.
37342 ([-m8byte-align]): Likewise.
37343 ([-fstack-reuse]): Likewise.
37345 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37347 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
37348 Fix markup, light copy-editing.
37349 ([-fauto-profile]): Rewrite to fix formatting and content
37352 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37354 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
37355 Copy-edit description.
37356 ([-fisolate-erroneous-paths-attribute]): Likewise.
37357 * common.opt (fisolate-erroneous-paths-dereference):
37358 Copy-edit description.
37359 (fisolate-erroneous-paths-attribute): Likewise.
37361 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37363 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
37366 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
37368 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
37369 ([-fvtv-debug]): Likewise.
37370 ([-Wc++-compat]): Likewise.
37371 ([-Wc++11-compat]): Likewise.
37372 ([-Wc++14-compat]): Likewise.
37373 ([-Wno-sized-deallocation]): Likewise.
37374 ([-femit-class-debug-always]): Likewise.
37375 ([-femit-struct-debug-detailed]): Likewise.
37376 ([-fno-keep-inline-dllexport]): Likewise.
37377 ([-fira-algorithm]): Likewise.
37378 ([-fira-region]): Likewise.
37379 ([-flra-remat]): Likewise.
37380 ([-fipa-ra]): Likewise.
37381 ([-fhoist-adjacent-loads]): Likewise.
37382 ([-fisolate-erroneous-paths-dereference]): Likewise.
37383 ([-fisolate-erroneous-paths-attribute]): Likewise.
37384 ([-ftree-switch-conversion]): Likewise.
37385 ([-ftree-tail-merge]): Likewise.
37386 ([-ftree-loop-if-convert]): Likewise.
37387 ([-ftree-loop-if-convert-stores]): Likewise.
37388 ([-ftree-loop-distribution]): Likewise.
37389 ([-ftree-loop-distribute-patterns]): Likewise.
37390 ([-flto-compression-level]): Likewise.
37391 ([-flto-report]): Likewise.
37392 ([-flto-report-wpa]): Likewise.
37393 ([-fuse-linker-plugin]): Likewise.
37394 ([-mfix-cortex-a53-835769]): Likewise.
37395 ([-mno-fix-cortex-a53-835769]): Likewise.
37396 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
37397 explicit listing; add a note to the discussion indicating they
37398 exist. Reorder table to group similar options. Add missing
37399 @opindex entries. Add @need commands throughout the table to
37400 allow it to be split across multiple pages.
37401 ([-m8bit-idiv]): Fix @opindex.
37402 ([-mavx256-split-unaligned-load]): Likewise.
37403 ([-mavx256-split-unaligned-store]): Likewise.
37404 ([-mstack-protector-guard]): Likewise.
37405 ([-mcpu=]): Likewise.
37406 ([-mcpu]): Likewise.
37407 ([-mpointer-size=]): Likewise.
37409 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
37411 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
37412 instead of `m' constraint. Likewise for unnamed movb comparison
37413 patterns using reg_before_reload_operand predicate.
37414 * config/pa/predicates.md (reg_before_reload_operand): Tighten
37415 predicate to reject register index and LO_SUM DLT memory forms
37418 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
37420 * doc/invoke.texi (Option Summary): Fix spelling of
37421 -fdevirtualize-at-ltrans.
37422 ([-fdevirtualize]): Fix markup.
37423 ([-fdevirtualize-speculatively]): Fix typo.
37424 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
37425 implementor-speaky.
37426 * common.opt (fdevirtualize-at-ltrans): Likewise.
37427 * ipa-devirt.c: Fix typos in comments throughout the file.
37428 (ipa_devirt): Fix typos in format strings for dump output.
37430 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
37432 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
37433 discussion of defaults, light copy-editing.
37435 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
37437 * tsan.c (instrument_expr): corrected previous checkin.
37439 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
37441 Instrument bit field and unaligned accesses for TSAN.
37442 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
37443 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
37444 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
37445 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
37446 unaligned memory regions.
37448 2015-01-01 Anthony Green <green@moxielogic.com>
37450 * config/moxie/predicates.md (moxie_general_movsrc_operand):
37451 Restrict move source register offsets to 16 bits.
37453 Copyright (C) 2015 Free Software Foundation, Inc.
37455 Copying and distribution of this file, with or without modification,
37456 are permitted in any medium without royalty provided the copyright
37457 notice and this notice are preserved.