1 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
4 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
5 Force destination to 512 bits register.
7 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
10 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
11 (define_insn "kunpcksi"): Ditto.
12 (define_insn "kunpckdi"): Ditto.
14 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
16 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
18 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
20 * common/config/i386/i386-common.c
21 (OPTION_MASK_ISA_CLZERO_SET): New.
22 (ix86_handle_option): Handle clzero.
23 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
24 (x86_64-*-*): Likewise.
25 * config/i386/clzerointrin.h: New header.
26 * config/i386/cpuid.h (bit_CLZERO): Define.
27 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
29 * config/i386/i386.opt (clzero): New.
30 * config/i386/i386-c.c: Define __CLZERO__ if needed.
31 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
33 (ix86_option_override_internal): Handle new option.
34 (processor_alias_table): Added PTA_CLZERO.
35 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
36 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
37 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
38 IX86_BUILTIN_CLZERO built-ins.
39 * config/i386/i386.h (TARGET_CLZERO): New.
40 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
41 (clzero): New pattern.
42 (clzero_<mode>): New pattern.
43 * config/i386/x86intrin.h: Include clzerointrin.h.
44 * doc/extend.texi: Document clzero builtins.
45 * doc/invoke.texi: Document -mclzero option.
47 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
49 * ipa-icf.c (sem_function::merge): Check that local_original exists.
51 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
54 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
56 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
58 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
59 (sqrt<mode>2): Replace define_insn with define_expand that may call
62 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
63 Sebastian Pop <s.pop@samsung.com>
65 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
67 (get_rename_from_scev): Check that all the ops in an expression
68 have their uses dominated by corresponding defs.
70 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
71 Sebastian Pop <s.pop@samsung.com>
73 PR tree-optimization/68693
74 * graphite-scop-detection.c (dot_all_sese): New
75 (dot_all_scops_1): Renamed to dot_all_sese.
76 (dot_all_scops): Removed.
79 (scop_detection::get_nearest_dom_with_single_entry): Check that
80 preds are from different loop levels.
81 (scop_detection::get_nearest_pdom_with_single_exit): Check that
82 succs are from different loop levels.
83 (scop_detection::print_sese): Inlined.
84 (scop_detection::print_edge): New.
85 (scop_detection::merge_sese): Added dumps.
86 * graphite.h: Add declarations.
88 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
90 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
93 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
95 PR rtl-optimization/68349
96 * lra-eliminations.c (move_plus_up): New function.
97 (lra_eliminate_regs_1): Use the function.
99 2015-12-04 Nathan Sidwell <nathan@acm.org>
101 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New,
103 (init_output_initializer): ... this.
104 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
105 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
106 nvptx_assemble_decl_begin.
108 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
110 * sancov.c: New file.
111 * Makefile.in (OBJS): Add sancov.o.
112 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
113 * passes.def (sancov_pass): Add.
114 * tree-pass.h (sancov_pass): Add.
115 * common.opt (-fsanitize-coverage=trace-pc): Add.
116 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
117 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
118 flag_sanitize_coverage.
120 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
123 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
124 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
125 * config/arm/arm.md (probe_stack_range): Adjust.
126 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
127 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
128 (probe_stack_range_<PTR:mode>): Adjust.
130 2015-12-04 David Malcolm <dmalcolm@redhat.com>
132 * convert.c (convert_to_real_1): When converting from a
133 REAL_TYPE, preserve the location of EXPR in the result.
134 * tree.c (get_pure_location): Make non-static.
135 (set_source_range): Return the resulting location_t.
136 (make_location): New function.
137 * tree.h (get_pure_location): New decl.
138 (get_finish): New inline function.
139 (set_source_range): Convert return type from void to location_t.
140 (make_location): New decl.
142 2015-12-04 Jakub Jelinek <jakub@redhat.com>
145 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
146 input_location to inform.
147 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
148 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
149 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
151 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
153 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
154 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
155 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
156 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
157 comdat and non-comdat.
158 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
159 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
162 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
164 * (cstore<mode>4_unsigned): Use gpc_reg_operand instead of
165 register_operand. Remove empty constraints. Use std::swap.
166 (cstore_si_as_di, cstore<mode>4_signed_imm,
167 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
168 gpc_reg_operand instead of register_operand.
169 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
170 register_operand. Remove empty constraints.
172 2015-12-04 Nick Clifton <nickc@redhat.com>
174 * config.gcc (extra_gcc_objs): Define for MSP430.
175 * common/config/msp430/msp430-common.c (msp430_handle_option):
176 Pass both -mmcu and -mcpu on to the back end if they are both
178 * config/msp430/msp430.c (hwmult_name): New function.
179 (msp430_option_override): If an unrecognised MCU name is
180 detected only warn if the user has not provided suitable
181 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
182 warning messages. Generate warnings about conflicts between
183 -mmcu and -mcpu and -mhwmult options.
184 If neither -mcpu nor -mmcu have been specified but -mhwmult=
185 f5series has the select the 430X isa.
186 (msp430_no_hwmult): If -mmcu has not been specified and
187 msp430_hwmult_type is AUTO then return true.
188 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
189 (LIB_SPEC): Add hardware multiply library selection.
190 * config/msp430/t-msp430: Delete hardware multiply multilibs.
191 Add rule to build driver-msp430.o
192 * config/msp430/driver-msp430.c: New file.
193 * config/msp430/msp430.opt (warn-mcu): New option.
194 * doc/invoke.texi: Update description of -mhwmult=auto.
195 Document -mwarn-mcu option.
197 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
199 * (cstore<mode>4_signed): New expander.
200 (cstore<mode>4): Call it.
202 2015-12-04 Jakub Jelinek <jakub@redhat.com>
204 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
206 PR tree-optimization/68680
207 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
208 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
211 PR tree-optimization/68671
212 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
213 blocks starting with the successor of first bb we've modified
214 and ending with last_bb call reset_flow_sensitive_info_in_bb.
216 2015-12-04 Jeff Law <law@redhat.com>
218 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
219 indicating if a gimple conditional was optimized to true/false.
220 (reassociate_bb): Bubble up return value from
221 maybe_optimize_range_tests.
222 (do_reassoc): Similarly, but for reassociate_bb.
223 (execute_reassoc): Return TODO_cleanup_cfg as needed.
225 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
227 * config/aarch64/aarch64.c (aarch64_override_options_internal):
228 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
229 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
230 does not affect the assembler directives.
232 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
234 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
235 emit .machine and .machinemode to the top of the assembler file.
236 (TARGET_ASM_FILE_START): Provide target hook.
237 (s390_asm_output_machine_for_arch): Protect with
238 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
240 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
242 * config/s390/s390.opt (s390_arch_string): Remove.
243 (s390_tune_string): Likewise.
244 (s390_cost_pointer): Add Variable.
245 (s390_tune_flags): Add TargetVariable.
246 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
247 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
248 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
249 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
250 (mwarn-framesize=): Save option.
251 (mno-stack-guard, mno-stack-guard): New option.
252 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
253 (mwarn-framesize=): Convert to UInteger (negative values are rejected
255 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
256 macros changeable through the GCC target pragma into a separate
258 (s390_cpu_cpp_builtins): Likewise.
259 (s390_pragma_target_parse): New function, implement GCC target pragma
261 (s390_register_target_pragmas): Register s390_pragma_target_parse if
263 * common/config/s390/s390-common.c (s390_handle_option):
265 Move setting s390_arch_flags to s390.c.
266 Remove s390_tune_flags.
267 Allow 0 as argument to -mstack-size (switch to default value).
268 Allow 0 as argument to -mstack-guard (switch off).
269 Remove now unnecessary explicit parsing code for -mwarn-framesize.
270 * config/s390/s390-protos.h (s390_handle_option): Export.
271 (s390_valid_target_attribute_tree): Export.
272 (s390_reset_previous_fndecl): Export.
273 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
274 and end of HTM and VX builtins.
275 (s390_asm_output_function_prefix): Declare hook.
276 (s390_asm_declare_function_size): Likewise.
277 * config/s390/s390-builtins.h (B_GROUP): Use macro.
278 * config/s390/s390-opts.h: Add comment about processor_type usage.
279 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
280 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
281 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
282 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
283 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
284 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
285 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
286 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
287 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
288 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
289 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
290 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
291 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
292 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
294 (vec_all_nan): Rewrite as macro using statement expressions to avoid
295 that the vector keyword needs to be defined when including the file.
296 (vec_all_numeric): Likewise.
297 (vec_any_nan): Likewise.
298 (vec_any_numeric): Likewise.
299 * config/s390/s390.c (s390_previous_fndecl): New static variable.
300 (s390_set_current_function): New function.
301 (s390_cost): Wrapper macro to allow defining the cost table pointer in
303 (processor_table): Table for march= and mtune= parsing.
304 (s390_init_builtins): Enable all builtins and types unconditionally.
305 (s390_expand_builtin): Generate an error message if builtin is not
306 supported by current options.
307 Correct an error message.
308 (s390_function_specific_restore): New function to set s390_cost.
309 (s390_asm_output_machine_for_arch): New function for emitting .machine
310 and .machinmode directives to the assembler file.
311 (s390_asm_output_function_prefix): Likewise.
312 (s390_asm_declare_function_size): Likewise.
313 (s390_asm_output_function_label): Add mdebug output for feature testing.
314 (s390_option_override): Move implementation into internal function.
315 (s390_option_override_internal): Likewise.
316 Implement option overriding based on current options.
317 (s390_valid_target_attribute_inner_p): New function implementing target
319 (s390_valid_target_attribute_tree): Likewise.
320 (s390_valid_target_attribute_p): Likewise.
321 (s390_reset_previous_fndecl): Likewise.
322 (s390_set_current_function): Likewise.
323 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
324 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
325 (TARGET_OPTION_RESTORE): Likewise.
326 * doc/extend.texi: S390: Document target attribute and pragma.
327 * config.in: Regenerated.
328 * configure: Regenerated.
329 * configure.ac: S390: Check for .machinemode and .machine in gas.
330 S390: Check for architecture modifiers support in gas.
332 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
334 * doc/extend.texi ("simd"): Describe new flags.
336 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
338 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
339 operand checked for alignment.
341 2015-12-04 Nathan Sidwell <nathan@acm.org>
343 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
344 emission too. Change 'no_arg_types' to 'prototyped'.
345 (write_fn_proto): Use write_one_arg for stdarg, static chain &
347 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
349 2015-12-04 Richard Biener <rguenther@suse.de>
351 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
352 member and initialize it.
353 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
355 (sccvn_dom_walker::before_dom_children): If unreachable_dom
356 is set BB is not reachable either. Set unreachable_dom
357 if not set and BB is unreachable.
359 2015-12-04 Richard Biener <rguenther@suse.de>
361 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
362 query with GATHER_STATISTICS.
364 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
367 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
368 fields, add keep_stack and reorder them.
369 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
370 set it to false. Do not insert a stack save/restore pair if it has
371 been set to true by the gimplification of the statements.
372 Restore it to the saved value on exit if it is still false.
373 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
374 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
375 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
376 * doc/extend.texi (Variable Length): Document new behavior.
377 * doc/generic.texi (Blocks): Document new handling of VLAs.
379 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
380 Tristan Gingold <gingold@adacore.com>
383 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
385 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
386 UNSPEC_PROBE_STACK_RANGE.
387 (blockage): New instruction.
388 (probe_stack_range_<PTR:mode>): Likewise.
389 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
391 (aarch64_output_probe_stack_range): Likewise.
392 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
393 static builtin stack checking is enabled.
394 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
397 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
400 * config/arm/arm.md (*call_mem): Delete pattern.
401 (*call_value_mem): Likewise.
402 * config/arm/arm.c (output_call_mem): Delete.
403 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
405 2015-12-04 Bin Cheng <bin.cheng@arm.com>
407 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
408 aarch64_sync_memory_operand.
410 2015-12-04 Jakub Jelinek <jakub@redhat.com>
413 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
414 (expand_vec_perm_1): Use it and recurse if everything else
415 failed. Use nd.perm instead of perm2.
416 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
417 instead of gen_lowpart for the target.
418 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
419 and recurse if everything else failed.
421 2015-12-04 Richard Biener <rguenther@suse.de>
424 * builtins.c (get_pointer_alignment_1): Take care of byte to
425 bit alignment computation overflow.
427 2015-12-04 Richard Biener <rguenther@suse.de>
430 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
431 a constant with single_use.
433 2015-12-04 Bin Cheng <bin.cheng@arm.com>
434 Jiong Wang <jiong.wang@arm.com>
436 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
437 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
439 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
441 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
442 Add short circuit for !flag_strict_aliasing
443 (get_alias_set): Remove flag_strict_aliasing check.
444 (new_alias_set): Likewise.
446 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
448 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
449 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
450 (exynosm1_regmove_cost): Likewise.
451 (exynosm1_vector_cost): Likewise.
452 (exynosm1_tunings): Likewise.
453 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
454 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
456 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
457 Richard Biener <richard.guenther@gmail.com>
459 * cfgexpand.c (pass_expand::execute): Replace call to
460 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
461 * tree-ssa.c (delete_tree_ssa): Likewise.
462 * function.c (set_cfun): Call redirect_edge_var_map_empty.
463 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
464 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
465 (redirect_edge_var_map_empty): New.
466 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
467 (redirect_edge_var_map_empty): New.
469 2015-12-03 Jeff Law <law@redhat.com>
471 PR tree-optimization/68599
472 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
473 in call to loop_optimizer_init.
474 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
475 optimization to drop the assumptions/infinite notations if
476 the loop has a single exit.
478 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
480 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
481 the pattern cannot FAIL.
482 (vec_store_lanes@var{m}@var{n}): Likewise.
483 (maskload@var{m}@var{n}): Likewise.
484 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
485 in the name of the pattern.
486 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
487 floating-point mode and that all operands have that mode.
488 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
490 (sqrt@var{m}2): Document that mode m must be a scalar or vector
491 floating-point mode, that all operands have that mode, and that
492 the patterns cannot FAIL. Remove previous documentation referring
493 to @code{double} and @code{float}.
494 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
495 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
496 (copysign@var{m}3): Likewise.
497 (exp@var{m}2): Likewise. Explicitly state the base.
498 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
499 (btrunc@var{m}2, rint@var{m}2): Likewise.
500 (round@var{m}2): Likewise. Fix incorrect description of rounding
502 (ceil@var{m}2): As for round@var{m}2.
503 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
504 the instruction must not raise an inexact condition.
505 (scalb@var{m}3): Document previously-undocumented pattern
506 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
507 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
508 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
509 (significand@var{m}2): Likewise.
510 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
511 mode m and operand 0 is defined more freely. Document that @var{m}
512 can be a scalar or vector integer mode and that the pattern is not
514 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
515 (clrsb@var{m}2): Likewise, except that the description of the
516 mode was missing in this case.
518 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
520 * internal-fn.def (RSQRT): New function.
521 * optabs.def (rsqrt_optab): New optab.
522 * doc/md.texi (rsqrtM2): Document.
523 * target.def (builtin_reciprocal): Replace gcall argument with
524 a function decl. Restrict hook to machine functions.
525 * doc/tm.texi: Regenerate.
526 * targhooks.h (default_builtin_reciprocal): Update prototype.
527 * targhooks.c (default_builtin_reciprocal): Likewise.
528 * tree-ssa-math-opts.c: Include internal-fn.h.
529 (internal_fn_reciprocal): New function.
530 (pass_cse_reciprocals::execute): Call it, and build a call to an
531 internal function on success. Only call targetm.builtin_reciprocal
532 for machine functions.
533 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
535 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
536 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
537 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
539 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
540 (aarch64_builtin_reciprocal): Replace gcall argument with a
541 function decl. Use use_rsqrt_p. Remove optimize_size check.
542 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
543 (aarch64_optab_supported_p): New function.
544 (TARGET_OPTAB_SUPPORTED_P): Define.
545 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
546 (rsqrt<mode>2): ...this.
547 * config/i386/i386.c (use_rsqrt_p): New function.
548 (ix86_builtin_reciprocal): Replace gcall argument with a
549 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
550 check. Only handle machine functions.
551 (ix86_optab_supported_p): Handle rsqrt_optab.
552 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
553 (rs6000_builtin_reciprocal): Replace gcall argument with a
554 function decl. Remove optimize_insn_for_size_p check.
555 Only handle machine functions.
556 (rs6000_optab_supported_p): New function.
558 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
562 * config/i386/i386.c (ix86_mitigate_rop): Don't call
563 compute_bb_for_insn again. Call df_insn_rescan_all.
564 * config/i386/i386.md (set_got_rex64): Override modrm_class.
566 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
568 2015-12-03 Nathan Sidwell <nathan@acm.org>
570 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
571 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
572 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
573 (nvptx_option_override): Set data ares for worker vars.
574 (nvptx_addr_space_from_sym): Delete.
575 (nvptx_encode_section_info): New.
576 (section_for_sym, section_for_decl): New.
577 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol
579 (nvptx_section_from_addr_space): Delete.
580 (nvptx_section_for_decl): Delete.
581 (nvptx_output_aligned, nvptx_declare_object_name,
582 nvptx_assemble_undefined_decl): Use section_for_decl, remove
584 (nvptx_print_operand): Add 'D', adjust 'A'.
585 (nvptx_expand_worker_addr): Adjust unspec generation.
586 (TARGET_ENCODE_SECTION_INFO): Override.
587 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
588 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
589 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
590 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
591 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
592 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
593 (UNSPEC_TO_GENERIC): New.
594 (nvptx_register_or_symbolic_operand): Delete.
595 (cvt_code, cvt_name, cvt_str): Delete.
596 (convaddr_<cvt_name><mode> [P]): Delete.
597 (convaddr_<mode> [P]): New.
599 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
601 PR rtl-optimization/68624
602 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
603 blocks if they exist and simplify the logic choosing the order to emit
606 2015-12-03 Richard Biener <rguenther@suse.de>
608 PR tree-optimization/66051
609 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
610 on load group size. Do not pass in vectorization_factor.
611 (vect_transform_slp_perm_load): Do not require any permute support.
612 (vect_build_slp_tree): Do not pass in vectorization factor.
613 (vect_analyze_slp_instance): Do not compute vectorization
614 factor estimate. Use vector size instead of vectorization factor
615 estimate to split store groups for BB vectorization.
617 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
619 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
620 DECL as return value is allowed to have NULL bounds.
622 2015-12-03 Tom de Vries <tom@codesourcery.com>
624 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
625 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
626 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
628 2015-12-03 Richard Biener <rguenther@suse.de>
630 PR tree-optimization/67800
631 PR tree-optimization/68333
632 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
633 restriction to reduction contexts but allow SLP reductions as well.
634 (vect_recog_sad_pattern): Likewise.
635 (vect_recog_widen_sum_pattern): Likewise.
637 2015-12-03 Richard Biener <rguenther@suse.de>
639 PR tree-optimization/68639
640 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
641 belonging to different loops.
642 (vect_analyze_data_ref_accesses): Likewise.
644 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
646 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
647 Remove "prefix_extra".
648 (define_insn "vec_extract_hi_<mode>_mask"): New.
649 (define_insn "vec_extract_hi_<mode>"): Remove masking.
651 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
653 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
654 (propagate_pure_const): Use it; fix comments and optimize loops.
656 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
658 * ipa-pure-const.c (ignore_edge): Rename to ...
659 (ignore_edge_for_nothrow) ... this one; also ignore eges to
660 interposable functions or ones that can not throw.
661 (propagate_nothrow): Fix handling of availability.
663 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
666 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
668 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
669 Sebastian Pop <s.pop@samsung.com>
671 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle isl_ast_op_zdiv_r.
672 (gcc_expression_from_isl_expr_op): Same.
674 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
675 Sebastian Pop <s.pop@samsung.com>
677 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
678 that insertion point is still in the region.
680 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
681 Sebastian Pop <s.pop@samsung.com>
683 PR tree-optimization/68550
684 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
685 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
688 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
690 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
691 * configure: Regenerate.
692 * config.in: Regenerate.
693 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
695 (rs6000_output_function_prologue): Use it instead of checking
696 cfun->machine->r2_setup_needed. Use internal labels instead of
697 GNU as local label extension. Handle ELFv2 large code model.
698 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
699 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
701 2015-12-02 Jakub Jelinek <jakub@redhat.com>
704 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
706 (expand_unop): Use them.
708 2015-12-02 Marek Polacek <polacek@redhat.com>
711 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
713 2015-12-02 Nathan Sidwell <nathan@acm.org>
715 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
717 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
719 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
720 Sebastian Pop <s.pop@samsung.com>
722 * graphite-dependences.c (scop_get_reads): Add extra dumps.
723 (scop_get_must_writes): Same.
724 (scop_get_may_writes): Same.
725 (compute_deps): Same.
726 * graphite-sese-to-poly.c (bounds_are_valid): New.
727 (pdr_add_data_dimensions): Call bounds_are_valid.
729 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
730 Sebastian Pop <s.pop@samsung.com>
732 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
733 * graphite-poly.c (apply_poly_transforms): Same.
734 * graphite.c (gate_graphite_transforms): Same.
735 * toplev.c (process_options): Same.
737 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
739 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
740 (mips_output_probe_stack_range): Rotate the loop and simplify.
742 2015-12-02 David Sherwood <david.sherwood@arm.com>
744 * config/aarch64/aarch64.md: New pattern.
745 * config/aarch64/aarch64-simd.md: Likewise.
746 * config/aarch64/iterators.md: New unspecs, iterators.
748 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
750 * dwarf2out.c (dwar2out_var_location): In addition to notes,
751 process indirect calls whose target is compile-time known.
752 Enhance pattern matching to get the SYMBOL_REF they embed.
753 (gen_subprogram_die): Handle such calls.
754 * final.c (final_scan_insn): For call instructions, invoke the
755 var_location debug hook only after the call has been emitted.
757 2015-12-02 Tom de Vries <tom@codesourcery.com>
759 * gimplify.c (enum gimplify_omp_var_data): Add enum value
761 (oacc_default_clause): Fix default for scalars in oacc kernels.
762 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
764 2015-12-02 Tom de Vries <tom@codesourcery.com>
766 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
767 parameter base_pointers_restrict.
768 (omp_target_base_pointers_restrict_p): New function.
769 (scan_omp_target): Call scan_sharing_clauses with base_pointers_restrict
772 2015-12-02 Nathan Sidwell <nathan@acm.org>
774 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
775 (nvptx_underlying_object_mode): Delete.
776 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
778 (nvptx_declare_function_name): Use output_reg. Remove punning
780 (nvptx_output_mov_insn): New.
781 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
782 Use output_reg. Merge 't' and 'u' handling.
783 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
784 (struct machine_function): Remvoe punning_buffer_size.
785 (REGISTER_NAMES): Remove %punbuffer.
786 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
787 UNSPEC_CPLX_HIGHPART): Delete.
788 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
789 nvptx_output_mov_insn.
790 (*mov<mode>_insn [SDFM): Reorder constraints to match integer
791 moc. Use nvptx_output_mov_insn.
792 (highpartscsf2, set_highpartscsf2, lowpartscsf2,
793 set_lowpartscsf2): Delete.
794 (mov<mode> [SDCM]): Delete.
796 2015-12-02 Richard Biener <rguenther@suse.de>
798 * tree.h (tree_invariant_p): Declare.
799 * tree.c (tree_invariant_p): Export.
800 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
801 create SAVE_EXPRs but reject patterns if we would need to.
803 2015-12-02 Tom de Vries <tom@codesourcery.com>
805 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
806 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
808 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
810 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
811 (cstore<mode>4): Use it.
813 2015-12-02 Richard Biener <rguenther@suse.de>
815 PR tree-optimization/68625
816 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
817 cleanup_control_flow_bb.
818 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
819 on all BBs, then cleanup_tree_cfg_bb and finally iterate
820 over the worklist doing both.
822 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
824 PR tree-optimization/68432
825 * coretypes.h (optimization_type): New enum.
826 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
827 * doc/tm.texi: Regenerate.
828 * target.def (optab_supported_p): New hook.
829 * targhooks.h (default_optab_supported_p): Declare.
830 * targhooks.c (default_optab_supported_p): New function.
831 * predict.h (function_optimization_type): Declare.
832 (bb_optimization_type): Likewise.
833 * predict.c (function_optimization_type): New function.
834 (bb_optimization_type): Likewise.
835 * optabs-query.h (convert_optab_handler): Define an overload
836 that takes an optimization type.
837 (direct_optab_handler): Likewise.
838 * optabs-query.c (convert_optab_handler): Likewise.
839 (direct_optab_handler): Likewise.
840 * internal-fn.h (direct_internal_fn_supported_p): Take an
841 optimization_type argument.
842 * internal-fn.c (direct_optab_supported_p): Likewise.
843 (multi_vector_optab_supported_p): Likewise.
844 (direct_internal_fn_supported_p): Likewise.
845 * builtins.c (replacement_internal_fn): Update call to
846 direct_internal_fn_supported_p.
847 * gimple-match-head.c (build_call_internal): Likewise.
848 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
849 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
850 * tree.c (maybe_build_call_expr_loc): Likewise.
851 * config/i386/i386.c (ix86_optab_supported_p): New function.
852 (TARGET_OPTAB_SUPPORTED_P): Define.
853 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
854 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
855 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
856 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
857 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
858 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
860 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
862 * Makefile.in (GENSUPPORT_H): New macro.
863 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
864 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
865 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
866 (build/genconstants.o, build/genextract.o, build/genflags.o)
867 (build/gentarget-def.o): Use it.
868 (build/genemit.o): Likewise. Depend on internal-fn.def.
869 * genopinit.c: Move block comment to optabs.def.
870 (optab_tag, optab_def): Move to gensupport.h
871 (pattern): Likewise, renaming to optab_pattern.
872 (match_pattern): Move to gensupport.c
873 (gen_insn): Use find_optab.
874 (patterns, pattern_cmp): Replace pattern with optab_pattern.
875 (main): Likewise. Use num_optabs.
876 * optabs.def: Add comment that was previously in genopinit.c.
877 * gensupport.h (optab_tag): Moved from genopinit.c
878 (optab_def): Likewise, expanding commentary.
879 (optab_pattern): Likewise, after renaming from pattern.
880 (optabs, num_optabs, find_optab): Declare.
881 * gensupport.c (optabs): Moved from genopinit.c.
882 (num_optabs): New variable.
883 (match_pattern): Moved from genopinit.c.
884 (find_optab): New function, extracted from genopinit.c:gen_insn.
885 * genemit.c (nofail_optabs): New variable.
886 (emit_c_code): New function.
887 (gen_expand): Check whether the instruction is an optab that isn't
888 allowed to fail. Call emit_c_code.
889 (gen_split): Call emit_c_code here too.
890 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
892 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
894 * config/s390/predicates.md (const_mask_operand): New predicate.
895 * config/s390/s390-builtins.def: Set a smaller bitmask for a few builtins.
896 * config/s390/vector.md: Change predicate from immediate_operand
897 to either const_int_operand or const_mask_operand. Add special
898 insn conditions on patterns which have to exclude certain values.
899 * config/s390/vx-builtins.md: Likewise.
901 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
903 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
906 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
908 * config/s390/s390-builtin-types.def: New builtin types added.
909 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
910 * config/s390/s390.c (s390_expand_builtin): Always truncate
911 constants to the mode in the pattern.
912 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
913 respective builtin __builtin_s390_vec_splat_*.
915 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
917 * config/s390/s390-builtin-types.def: Sort builtin types.
919 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
921 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
922 condition for the RT flag.
924 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
926 * config/s390/constraints.md ("jKK"): New constraint.
927 * config/s390/s390.c (tm-constrs.h): Include for
928 satisfies_constraint_*.
929 (s390_legitimate_constant_p): Allow jKK constants. Use
930 satisfies_constraint_* also for the others.
931 (legitimate_reload_vector_constant_p): Likewise.
932 (print_operand): Allow h output modifier on vectors.
933 * config/s390/vector.md ("mov<mode>"): Add vrepi.
935 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
937 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
940 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
942 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and
944 ("bswaphi2"): New pattern.
945 New splitter for HI reg-reg bswap.
947 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
950 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
951 if it is the first parameter.
953 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
955 PR tree-optimization/68577
956 * tree-vect-stmts.c (simple_integer_narrowing): New function.
957 (vectorizable_call): Restrict internal function handling
958 to NONE and NARROW cases, using simple_integer_narrowing
959 to test for the latter. Add cost of narrowing operation
960 and insert it where necessary.
962 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
964 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
965 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
966 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
968 2015-12-01 Nathan Sidwell <nathan@acm.org>
970 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
971 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
972 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
973 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
974 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
975 (init_output_initializer): Call write_var_marker.
976 (nvptx_output_aligned_decl): New.
977 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
979 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
981 * c-common.c (parse_optimize_options): Do not silently ignore
982 -fstrict-aliasing changes.
984 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
986 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
987 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
988 stream TYPE_ALIAS_SET.
989 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
990 stream TYPE_ALIAS_SET.
992 2015-12-01 Nathan Sidwell <nathan@acm.org>
994 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
997 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
999 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
1000 indirection for large and small code models.
1001 (adjust_vperm): Likewise.
1003 2015-12-01 Julian Brown <julian@codesourcery.com>
1004 Cesar Philippidis <cesar@codesourcery.com>
1005 James Norris <James_Norris@mentor.com>
1007 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data
1009 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
1010 (is_gimple_omp_oacc): Add support for above.
1011 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
1012 (omp_notice_variable): Diagnose undefined implicit uses of
1013 use_device variables in offloaded regions.
1014 (gimplify_scan_omp_clauses): Add host_data, use_device
1015 support. Diagnose undefined mapping of use_device variables in
1017 (gimplify_omp_workshare): Add host_data support.
1018 (gimplify_expr): Likewise.
1019 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
1020 * omp-low.c (lookup_decl_in_outer_ctx)
1021 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
1023 (scan_sharing_clauses): Support use_device.
1024 (check_omp_nesting_restrictions): Support host_data.
1025 (expand_omp_target): Support host_data.
1026 (lower_omp_target): Skip over outer host_data regions when looking
1027 up decls. Support use_device.
1028 (make_gimple_omp_edges): Support host_data.
1029 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device
1032 2015-12-01 Marek Polacek <polacek@redhat.com>
1035 * cgraphunit.c (check_global_declaration): Only depend on TREE_THIS_VOLATILE
1038 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1040 PR tree-optimization/68474
1041 * tree-call-cdce.c (use_internal_fn): Protect call to
1042 gen_shrink_wrap_conditions.
1044 2015-12-01 Christian Bruel <christian.bruel@st.com>
1047 * config/arm/arm.opt (unaligned_access): Save.
1048 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
1049 * config/arm/arm.c (arm_option_override): Move unaligned_access setting
1050 (arm_option_override_internal): ... here.
1051 * config/arm/arm.h (TARGET_32BIT_P): New macro.
1053 2015-12-01 Richard Biener <rguenther@suse.de>
1055 PR tree-optimization/68379
1056 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
1057 always base loads on the first used DR of a group.
1058 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
1059 Compute alignment of the first scalar element unconditionally.
1061 2015-12-01 Richard Biener <rguenther@suse.de>
1064 * genmatch.c (struct capture_info): Add match_use_count.
1065 (capture_info::walk_match): Increment match_use_count.
1066 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
1067 replacements in a save_expr if they occur more often than
1068 in the original expression.
1070 2015-12-01 Richard Biener <rguenther@suse.de>
1073 * ipa-split.c (split_function): Handle main part not returning.
1075 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
1078 * tree-vect-stmts.c (vect_init_vector): Cast boolean
1079 scalars to a proper value before building a vector.
1081 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
1083 * genattrtab.c (check_attr_test): Take an attr_desc instead of
1084 an is_const flag. Put the file_location argument first.
1085 Update recursive calls. Improve error messages.
1086 (check_attr_value): Take a file location and use it instead
1087 of attr->loc. Improve error messages. Update calls to
1089 (check_defs): Update call to check_attr_value.
1090 (make_canonical): Likewise.
1091 (gen_attr): Likewise.
1093 (gen_insn_reserv): Update call to check_attr_test.
1095 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1097 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
1099 2015-12-01 Richard Biener <rguenther@suse.de>
1102 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
1104 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
1106 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
1107 odr_type_p): Move to ...
1108 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
1109 odr_type_p): here; miscro-optimize.
1111 2015-12-01 Bin Cheng <bin.cheng@arm.com>
1113 PR tree-optimization/68529
1114 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
1115 Compute no-overflow information for control iv.
1116 (number_of_iterations_lt, number_of_iterations_le): Add new param.
1117 (number_of_iterations_cond): Pass new argument to above functions.
1119 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
1121 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
1122 inlining -fno-strict-aliasing into -fstrict-aliasing body.
1124 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1125 Sebastian Pop <s.pop@samsung.com>
1127 PR tree-optimization/68565
1128 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
1129 codegen_error. Fail when rhs of division operations is integer_zerop.
1130 (ternary_op_to_tree): Early return on codegen_error.
1131 (unary_op_to_tree): Same.
1132 (nary_op_to_tree): Same.
1133 (gcc_expression_from_isl_expr_op): Same.
1134 (gcc_expression_from_isl_expression): Same.
1135 (graphite_create_new_loop): On codegen_error continue generating
1137 (graphite_create_new_loop_guard): Same.
1138 (build_iv_mapping): Same.
1139 (graphite_create_new_guard): Same.
1141 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
1142 Sebastian Pop <s.pop@samsung.com>
1144 * graphite-isl-ast-to-gimple.c: Fix dump messages.
1145 * graphite-scop-detection.c: Same.
1146 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
1148 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
1150 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
1151 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
1152 (convert_local_omp_clauses): Likewise.
1154 2015-11-30 Tom de Vries <tom@codesourcery.com>
1156 PR tree-optimization/46032
1157 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
1159 (find_func_aliases_for_call): ... here.
1160 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
1161 BUILT_IN_GOMP_PARALLEL.
1162 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
1165 2015-11-30 Jakub Jelinek <jakub@redhat.com>
1167 PR tree-optimization/68501
1168 * target.def (builtin_reciprocal): Replace the 3 arguments with
1169 a gcall * one, adjust description.
1170 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
1172 * targhooks.c (default_builtin_reciprocal): Likewise.
1173 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
1174 targetm.builtin_reciprocal even on internal functions, adjust
1175 the arguments and allow replacing an internal function with normal
1177 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
1178 with a gcall * one. Handle internal fns too.
1179 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
1180 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
1181 * doc/tm.texi (builtin_reciprocal): Document.
1183 2015-11-30 Richard Biener <rguenther@suse.de>
1185 PR tree-optimization/68592
1186 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
1187 on the pattern def sequence.
1189 2015-11-30 Nathan Sidwell <nathan@acm.org>
1191 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
1192 (write_one_arg): Reorder parms, add 'sep' param.
1193 (nvptx_write_function_decl): Rename to ...
1194 (write_fn_proto): ... here. Do name replacement. Emit linaer
1195 comment marker. Deal with both decls and defns. Simplify argument
1197 (write_function_decl_and_comment): Delete.
1198 (write_func_decl_from_insn): Rename to ...
1199 (write_fn_proto_from_insn): ... here. Don't do name replacement.
1200 (nvptx_record_fndecl): Call write_fn_proto.
1201 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
1202 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
1203 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
1205 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
1207 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
1208 (define_insn "*k<logic><mode>"): Use new iterator.
1210 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
1213 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
1214 (sparc_adjust_cost): Add missing space.
1216 2015-11-30 Richard Biener <rguenther@suse.de>
1219 * dwarf2out.c (gen_type_die_with_usage): Keep variant types
1222 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
1224 * tree-if-conv.c (struct ifc_dr): Add new tree
1225 base_predicate field.
1226 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
1227 base ref, DR pairs and store base_predicate for write type DRs.
1228 (ifcvt_memrefs_wont_trap): Guard checks with
1229 -ftree-loop-if-convert-stores flag.
1231 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1233 * cgraph.c (cgraph_node::make_local): No name is unique during
1234 incremental linking.
1235 * cgraph.h (can_be_discarded_p): Update comment; also common and
1236 WEAK in named sections can be discarded; when doing incremental
1237 link do not rely on resolution being the final one.
1238 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
1239 When symbol can be discarded, do not rely on resolution info.
1240 * symtab.c (symtab_node::nonzero_address): Take into account that
1241 symbol can be discarded.
1242 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
1243 definition correctly.
1244 (function_and_variable_visibility): Do not set unique_name when
1245 incrementally linking.
1247 2015-11-29 Nathan Sidwell <nathan@acm.org>
1249 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
1250 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
1251 (ctrap<mode>): Use const0_operand.
1253 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
1255 * ipa-devirt.c (add_type_duplicate): Remove redundant ODR violation
1258 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
1261 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
1262 recog_memoized test for insn and check recog_memoized for dep_insn.
1264 2015-11-28 Nathan Sidwell <nathan@acm.org>
1266 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
1267 (FRAME_POINTER_CFA_OFFSET): Define.
1268 (struct nvptx_args): Use 'tree' type.
1269 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
1271 2015-11-28 Tom de Vries <tom@codesourcery.com>
1273 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
1275 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
1277 * doc/invoke.texi (Option Summary): Use negative form of
1278 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
1279 sort alphabetically and re-justify.
1281 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
1283 PR rtl-optimization/68536
1284 * lra.c (lra_emit_add): Add code for null base.
1285 * lra-constraints.c (curr_insn_transform): Skip operators for
1288 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1291 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1293 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1295 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1296 are not modified by the final modified insns in the basic blocks.
1298 2015-11-27 Nathan Sidwell <nathan@acm.org>
1300 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
1302 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
1303 (nvptx_maybe_convert_symbolic_operand): Simplify.
1304 (nvptx_addr_space_from_address): Delete.
1305 (nvptx_print_operand): Adjust 'A' case.
1307 2015-11-27 Richard Biener <rguenther@suse.de>
1309 PR tree-optimization/68559
1310 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
1311 peeling for gap checks ...
1312 * tree-vect-stmts.c (vectorizable_load): ... here and relax
1314 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
1315 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
1317 2015-11-27 Nathan Sidwell <nathan@acm.org>
1319 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't
1321 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
1322 (nvptx_record_fndecl): Don't return value, remove force
1323 argument. Require fndecl.
1324 (nvptx_record_libfunc): New.
1325 (nvptx_record_needed_decl): Deteermine how to record decl here.
1326 (nvptx_maybe_record_fnsym): New.
1327 (nvptx_expand_call): Don't record libfuncs here,
1328 (nvptx_maybe_convert_symbolic_operand): Use
1329 nvptx_maye_record_fnsym.
1330 (nvptx_assemble_integer): Reimplement with single switch.
1331 (nvptx_output_call_insn): Register libfuncs here.
1332 (nvptx_file_end): Adjust nvptx_record_fndecl call.
1333 * config/nvptx/nvptx.md (expand_movdi): Don't call
1334 nvptx_record_needed_decl.
1336 2015-11-27 Richard Biener <rguenther@suse.de>
1338 PR tree-optimization/68553
1339 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
1340 generation for 1:1 permutations.
1341 (vect_transform_slp_perm_load): Detect 1:1 permutations.
1343 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
1345 * gimple.h (nonbarrier_call_p): Declare.
1346 * gimple.c (nonbarrier_call_p): New function.
1347 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
1348 Also increment call phase for ASMs with vdef and potential barrier
1351 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1353 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
1355 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
1356 are not modified by the final modified insns in the basic blocks.
1358 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1360 PR rtl-optimization/68506
1361 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
1362 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
1365 2015-11-27 Martin Liska <mliska@suse.cz>
1368 * vec.h (release_vec_vec): New function.
1370 2015-11-27 Jakub Jelinek <jakub@redhat.com>
1372 PR tree-optimization/68552
1373 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
1374 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
1375 or whether v0 == v1.
1377 2015-11-27 Martin Liska <mliska@suse.cz>
1379 * tree-ssa-uninit.c: Fix whitespaces in the source file.
1380 The change is just automatical.
1382 2015-11-27 Martin Liska <mliska@suse.cz>
1384 * tree-chkp.c (chkp_make_static_bounds): Release buffer
1387 2015-11-27 Martin Liska <mliska@suse.cz>
1389 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
1390 Do not release memory for comp_alias_ddrs.
1391 * tree-vect-loop.c (destroy_loop_vec_info): Release
1392 the memory for all loop_vec_info.
1394 2015-11-27 Martin Liska <mliska@suse.cz>
1396 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
1397 of a local-scope vec.
1398 (struct final_warning_record): Use auto_vec instead
1401 2015-11-27 Richard Biener <rguenther@suse.de>
1403 PR tree-optimization/68553
1404 * tree-vect-slp.c (vect_get_mask_element): Remove.
1405 (vect_transform_slp_perm_load): Implement in a simpler way.
1407 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
1409 PR rtl-optimization/67753
1410 PR rtl-optimization/64164
1411 * function.c (assign_parm_setup_block): Right-shift
1412 upward-padded big-endian args when bypassing the stack slot.
1414 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
1416 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
1417 `-mcompact-branches='.
1418 (MIPS Options): Likewise.
1420 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1422 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
1424 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
1426 * doc/install.texi (Prerequisites): Increase ISL requirement to
1429 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1431 * config/aarch64/arm_neon.h
1432 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
1433 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
1434 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1435 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
1436 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
1437 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
1438 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
1439 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
1440 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
1441 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
1442 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
1443 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
1445 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1447 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1448 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1449 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1450 (vqrdmlshq_s16, vqrdmlshq_s32): New.
1452 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1454 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
1457 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
1460 * tree-nested.c (finalize_nesting_tree_1): Append a field to
1461 hold the frame base address.
1462 * dwarf2out.c (gen_subprogram_die): Generate for
1463 DW_AT_static_link a location description that computes the value
1466 2015-11-26 Tom de Vries <tom@codesourcery.com>
1469 2015-11-25 Tom de Vries <tom@codesourcery.com>
1471 * cfgloop.c (find_single_latch): New function, factored out of ...
1472 (flow_loops_find): ... here.
1473 (verify_loop_structure): Improve verification of loop->latch.
1474 * cfgloop.h (find_single_latch): Declare.
1475 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1477 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1479 * config/aarch64/aarch64-simd-builtins.def:
1480 Add missing changes from r230962.
1482 2015-11-26 Nathan Sidwell <nathan@acm.org>
1484 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
1485 arg with name. Don't deal with split regs. Tweak formatting.
1486 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
1487 (nvptx_output_call_insn): Don't deal with split regs here.
1489 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1491 * config/aarch64/aarch64-simd-builtins.def
1492 (sqrdmlah, sqrdmlsh): New.
1493 (sqrdmlah_lane, sqrdmlsh_lane): New.
1494 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
1496 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1498 * config/aarch64/aarch64-simd.md
1499 (aarch64_sqmovun<mode>): Fix some white-space.
1500 (aarch64_<sur>qmovun<mode>): Likewise.
1501 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
1502 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
1503 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
1504 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
1505 (UNSPEC_SQRDMLSH): New.
1509 2015-11-26 Richard Biener <rguenther@suse.de>
1511 PR tree-optimization/66721
1512 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
1513 iteration cost earlier. Re-do analysis without SLP when
1514 vectorization using SLP fails and without has a chance to succeed.
1516 2015-11-26 Richard Biener <rguenther@suse.de>
1518 * genmatch.c (dt_simplify::gen_1): For generic wrap all
1519 multi-result-use captures in a SAVE_EXPR.
1521 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
1523 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
1524 (TARGET_SIMD_RDMA): New.
1526 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1528 * combine.c (subst): Do not return clobber of zero in widening mult
1529 case. Just return x unchanged if it is a no-op substitution.
1531 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
1534 * config/i386/i386.h (enum reg_class): Add
1535 bounds registers to ALL_REGS.
1537 2015-11-26 Jakub Jelinek <jakub@redhat.com>
1539 PR tree-optimization/68128
1540 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
1541 * gimplify.c: Include gimple-walk.h.
1542 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
1543 (omp_notice_variable): Set flags to n->value if n already
1544 exists in target region, but we need to jump to do_outer.
1545 (omp_shared_to_firstprivate_optimizable_decl_p,
1546 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
1548 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
1549 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1550 not modified in the body. Call omp_mark_stores for outer
1551 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1552 in the body or on OMP_CLAUSE_LASTPRIVATE.
1553 (gimplify_adjust_omp_clauses): Add body argument, call
1554 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
1555 Set OMP_CLAUSE_SHARED_READONLY
1556 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
1557 not modified in the body. Call omp_mark_stores for outer
1558 contexts on OMP_CLAUSE_SHARED clauses if they could be written
1559 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
1560 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
1561 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
1562 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
1563 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
1564 * tree-nested.c (convert_nonlocal_omp_clauses,
1565 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
1566 non-local vars or local vars referenced from nested routines.
1567 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
1568 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
1569 TREE_READONLY, don't call use_pointer_for_field with non-NULL
1570 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
1572 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
1574 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
1575 about signed left shift stronger and clarify the cases when they're
1578 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1579 Bernd Schmidt <bschmidt@redhat.com>
1581 PR rtl-optimization/67226
1582 * calls.c (store_one_arg): Take into account
1583 crtl->args.pretend_args_size when checking for overlap between
1584 arg->value and argblock + arg->locate.offset during sibcall
1587 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
1589 * config/aarch64/aarch64.md (cbranch<mode>4): Use
1590 aarch64_fp_compare_operand.
1591 (store_pairsf): Use aarch64_reg_or_fp_zero.
1592 (store_pairdf): Likewise.
1593 (cstore<mode>4): Use aarch64_fp_compare_operand.
1594 (cmov<mode>6): Likewise.
1595 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
1597 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
1598 Sebastian Pop <s.pop@samsung.com>
1600 PR tree-optimization/68453
1601 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
1602 not redirect edges already pointing to their destination.
1603 (translate_isl_ast_node_for): Split edges after loops to create
1604 basic blocks for close phi nodes. Save merge points at the end of
1606 (translate_isl_ast_node_if): Save merge points at the end of the
1608 (add_close_phis_to_outer_loops): New.
1609 (add_close_phis_to_merge_points): New.
1610 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
1611 (copy_bb_and_scalar_dependences): Do not split basic blocks on
1612 loop close phi locations.
1614 2015-11-25 Jan Hubicka <jh@suse.cz>
1616 * ipa-visibility.c (cgraph_externally_visible_p,
1617 varpool_node::externally_visible_p): When doing incremental linking,
1618 hidden symbols may be still used later.
1619 (update_visibility_by_resolution_info): Do not drop weak during
1621 (function_and_variable_visibility): Fix formating.
1622 * flag-types.h (lto_linker_output): Declare.
1623 * common.opt 9flag_incremental_link): New flag.
1625 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
1627 * config/rs6000/constraints.md (wb constraint): New constraint for
1628 ISA 3.0 d-form scalar addressing.
1630 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
1631 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
1632 Altivec registers. Add wb constraint for Altivec registers with
1633 D-form addressing. If we have ISA 3.0 d-form support, undo
1634 secondary reload support for using FPR registers if we want to do
1636 (rs6000_debug_reg_global): Likewise.
1637 (rs6000_setup_reg_addr_masks): Likewise.
1638 (rs6000_init_hard_regno_mode_ok): Likewise.
1639 (rs6000_secondary_reload): Likewise.
1640 (rs6000_preferred_reload_class): Likewise.
1641 (rs6000_secondary_reload_class): Likewise.
1643 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
1646 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
1647 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
1648 (f32_lm2): Likewise.
1649 (f32_li2): Likewise.
1650 (f32_sr2): Likewise.
1651 (f32_sm2): Likewise.
1652 (f32_si2): Likewise.
1654 (extendsfdf2_fpr): Likewise.
1655 (mov<mode>_hardfloat): Likewise.
1656 (mov<mode>_hardfloat32): Likewise.
1657 (mov<mode>_hardfloat64): Likewise.
1659 * doc/md.texi (RS/6000 constraints): Document wb constraint.
1660 Fixup we constraint documentation.
1662 2015-11-25 Tom de Vries <tom@codesourcery.com>
1664 * omp-low.c (pass_expand_omp_ssa::clone): New function.
1665 * passes.def: Add pass_oacc_kernels pass group.
1666 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
1668 2015-11-25 Tom de Vries <tom@codesourcery.com>
1670 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
1672 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
1673 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
1674 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
1675 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
1677 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1679 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
1680 TV_IPA_LTO_OUTPUT): New.
1681 * lto-compress.c: Include timevar.h
1682 (lto_end_compression, lto_end_uncompression): Add timers.
1683 * langhooks.c: Include timevar.h
1684 (lhd_append_data): Add timer.
1686 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
1688 * varasm.c (default_elf_asm_output_limited_string,
1689 default_elf_asm_output_ascii): Replace fprintf by putc.
1691 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
1693 PR rtl-optimization/67954
1694 * lra-constraints.c (curr_insn_transform): Add check on scratch
1695 pseudo when change class to NO_REGS. Add an assert.
1697 2015-11-25 Nathan Sidwell <nathan@acm.org>
1699 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
1701 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg
1703 (nvptx_write_function_decl): Number args from 0.
1704 (nvptx_declare_function_name): Likewise.
1705 (nvptx_function_incoming_arg): Likewise.
1706 (nvptx_output_call_insn): Correct formatting.
1708 2015-11-25 David Sherwood <david.sherwood@arm.com>
1710 * optabs.def: Add new optabs fmax_optab/fmin_optab.
1711 * internal-fn.def: Add new fmax/fmin internal functions.
1712 * doc/md.texi: Add fmin and fmax patterns.
1714 2015-11-25 Jason Merrill <jason@redhat.com>
1717 * tree.c (integer_zerop, integer_onep, integer_each_onep)
1718 (integer_all_onesp, integer_minus_onep, integer_pow2p)
1719 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
1720 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
1722 2015-11-25 Richard Biener <rguenther@suse.de>
1725 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
1726 on stripped operands.
1728 2015-11-25 Nathan Sidwell <nathan@acm.org>
1730 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
1731 (nvptx_declare_function_name): Move assignments next to register
1732 declarations, and process params here.
1734 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
1736 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
1737 both the symbol and the "dot" symbol for function descriptors. Fix
1738 inversion for rename of symbols with dollar sign.
1740 2015-11-25 Tom de Vries <tom@codesourcery.com>
1742 * cfgloop.c (find_single_latch): New function, factored out of ...
1743 (flow_loops_find): ... here.
1744 (verify_loop_structure): Improve verification of loop->latch.
1745 * cfgloop.h (find_single_latch): Declare.
1746 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
1748 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1750 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
1751 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
1752 (STARTFILE_SPEC): Use %(startfile_vtv).
1753 (ENDFILE_SPEC): Use %(endfile_vtv).
1754 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
1757 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
1759 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
1761 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
1762 noce_can_store_speculate): Delete.
1763 (noce_process_if_block): Don't try to handle single MEM stores.
1764 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
1765 * alias.c (memory_must_be_modified_in_insn_p): Delete.
1767 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1769 PR rtl-optimization/68435
1770 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
1771 for conflicts between a, b and the set destinations.
1773 2015-11-25 Richard Biener <rguenther@suse.de>
1775 PR tree-optimization/68517
1776 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
1777 Properly handle zero-sized types.
1779 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1781 * ipa-inline-analysis.c: Include gimplify.h
1782 (set_cond_stmt_execution_predicate,
1783 set_switch_stmt_execution_predicate): Be sure to not leak locations
1786 2015-11-25 Jakub Jelinek <jakub@redhat.com>
1789 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
1790 match_uaddsub_overflow): New functions.
1791 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
1793 2015-11-25 Richard Biener <rguenther@suse.de>
1795 PR tree-optimization/68492
1796 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
1797 op from scalars after operand swapping.
1799 2015-11-25 Richard Biener <rguenther@suse.de>
1801 PR tree-optimization/68502
1802 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
1803 check that the step is a multiple of the type size.
1805 2015-11-24 Michael Collison <michael.collison@linaro.org>
1807 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
1808 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
1809 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
1811 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
1813 * frame-header-opt.c (gate): Check for optimize > 0.
1814 (has_inlined_assembly): New function.
1815 (needs_frame_header_p): Remove is_leaf_function check,
1816 add argument type check.
1817 (callees_functions_use_frame_header): Add is_leaf_function
1818 and has_inlined_assembly calls..
1819 (set_callers_may_not_allocate_frame): New function.
1820 (frame_header_opt): Add is_leaf_function call, add
1821 set_callers_may_not_allocate_frame call.
1822 * config/mips/mips.c (mips_compute_frame_info): Add check
1823 to see if callee saved regs can be put in frame header.
1824 (mips_expand_prologue): Add check to see if step1 is zero,
1825 fix cfa restores when using frame header to store regs.
1826 (mips_can_use_return_insn): Check to see if registers are
1827 stored in frame header.
1828 * config/mips/mips.h (machine_function): Add
1829 callers_may_not_allocate_frame and
1830 use_frame_header_for_callee_saved_regs fields.
1832 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1834 PR rtl-optimization/68520
1835 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
1836 its bit was already set in BB_WITH.
1838 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1840 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
1841 double check that type is main variant.
1842 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
1844 (verify_type_variant): Verify that variants have no
1845 TYPE_ALIAS_SET_KNOWN_P set
1846 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
1847 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
1848 only for main variants; stream TYPE_ALIAS_SET as a bit.
1849 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
1852 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1854 * tree.c (make_vector_type): Properly compute canonical type of the
1856 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
1859 2015-11-24 Nathan Sidwell <nathan@acm.org>
1861 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
1862 VOIDmode, don't alter incoming mode.
1863 (nvptx_split_reg_p): Delete.
1864 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
1865 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
1866 maybe_split_mode calls.
1867 (nvptx_print_operand): Use maybe_split_mode.
1869 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1871 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
1872 only for types where LTO sets them.
1873 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
1874 (make_vector_type): Likewise.
1875 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
1876 * tree.h (canonical_type_used_p): New inline.
1877 * alias.c (get_alias_set): Handle structural equality for all
1878 types that pass canonical_type_used_p.
1879 (record_component_aliases): Look through all types with
1880 record_component_aliases for possible pointers; sanity check that
1881 the alias sets match.
1883 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
1885 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
1887 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
1889 * tree.c (free_node): New function.
1890 (type_hash_canon): Use it.
1891 * tree.h (free_node): Declare.
1893 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
1894 Michael Meissner <meissner@linux.vnet.ibm.com>
1896 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
1897 (Fv2): New mode attribute to be used when ISA 2.07 instructions
1898 are used on SF values, and ISA 2.06 instructions on DF values.
1899 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
1900 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
1901 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
1902 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
1903 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
1904 (fre<Fs>): Use <Fv2> instead of <Fv>.
1905 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
1906 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
1907 (xsrdpi<mode>): Add support for the lround function.
1908 (lround<mode>di2): Likewise.
1909 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1910 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1911 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
1912 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
1914 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1915 Sebastian Pop <s.pop@samsung.com>
1917 PR tree-optimization/67984
1918 * graphite-isl-ast-to-gimple.c (is_constant): New.
1919 (get_rename): Call is_constant.
1920 (get_new_name): Same.
1922 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
1923 Sebastian Pop <s.pop@samsung.com>
1925 * graphite-dependences.c: Only include graphite.h.
1926 * graphite-isl-ast-to-gimple.c: Same.
1927 * graphite-optimize-isl.c: Same.
1928 * graphite-poly.c: Same.
1929 * graphite-scop-detection.c: Same.
1930 * graphite-sese-to-poly.c: Same.
1932 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
1933 * graphite-poly.h: Same.
1934 * graphite-scop-detection.h: Same.
1937 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
1939 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
1940 DW_TAG_namespace for IMPORTED_DECL declarations. Call
1941 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
1942 function already takes care of checking what it can emit.
1944 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
1946 * doc/invoke.texi (-fpic): Add the AArch64 limit.
1947 (-fPIC): Add AArch64.
1949 2015-11-24 Tom de Vries <tom@codesourcery.com>
1951 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
1952 (pass_lim::execute): Allow to run outside pass_tree_loop.
1954 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
1956 * config/aarch64/aarch64.md (add<mode>3):
1957 Block early expansion into 2 add instructions.
1958 (add<mode>3_pluslong): New pattern to combine complex
1959 immediates into 2 additions.
1961 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
1966 * config/rs6000/predicates.md (and_operand): Check that the operand
1967 is a const_int before calling rs6000_is_valid_and_mask.
1969 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1971 * config/aarch64/aarch64.md (*condjump): Rename to...
1972 (condjump): ... This.
1973 (*compare_condjump<mode>): New define_insn_and_split.
1974 (*compare_cstore<mode>_insn): Likewise.
1975 (*cstore<mode>_insn): Rename to...
1976 (cstore<mode>_insn): ... This.
1977 * config/aarch64/iterators.md (CMP): Handle ne code.
1978 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
1980 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
1983 * config/i386/i386.c (output_387_binary_op): Fix assertion for
1986 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1988 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
1989 (val_ssa_equiv_hash_traits::remove): Likewise.
1990 (pass_uncprop::execute): Adjust.
1992 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1994 * hash-map-traits.h (simple_hashmap_traits ::remove): call
1995 destructors on values that are being removed.
1996 * mem-stats.h (hash_map): Pass type of values to
1997 simple_hashmap_traits.
1998 * tree-sra.c (sra_deinitialize): Remove work around for hash
1999 maps not destructing values.
2000 * genmatch.c (sinfo_hashmap_traits): Adjust.
2001 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
2003 2015-11-24 Richard Biener <rguenther@suse.de>
2004 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2007 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
2010 2015-11-24 Jakub Jelinek <jakub@redhat.com>
2013 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
2014 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
2016 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
2017 whenever first is nelt or above. Don't mask expected with
2020 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2023 * gimple-fold.c: Include ipa-chkp.h.
2024 (gimple_fold_builtin_memory_op): Don't fold call if we
2025 are going to instrument it and it may copy pointers.
2027 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
2028 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2030 PR rtl-optimization/68194
2031 PR rtl-optimization/68328
2032 PR rtl-optimization/68185
2033 * ree.c (combine_reaching_defs): Reject copy_needed case if
2034 copies_list is not empty.
2036 2015-11-24 Richard Biener <rguenther@suse.de>
2039 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
2042 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
2044 PR rtl-optimization/68381
2045 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
2048 2015-11-23 Nick Clifton <nickc@redhat.com>
2049 Jeff Law <law@redhat.com>
2051 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
2052 the source/dest of the target extension require a different number of
2054 (combine_set_extension): Remove #if 0 code.
2056 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2057 Sebastian Pop <s.pop@samsung.com>
2059 PR tree-optimization/68314
2060 * graphite-optimize-isl.c (optimize_isl): Do not call isl_union_map_is_equal.
2061 * graphite-poly.c (new_scop): Remove original_schedule.
2063 * graphite-poly.h (struct scop): Same.
2064 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons): Remove.
2065 (build_pbb_scattering_polyhedrons): Add back.
2066 (build_scop_minimal_scattering): Remove.
2067 (build_scop_scattering): Add back.
2068 (build_scop_original_schedule): Remove.
2069 (build_poly_scop): Revert to only call build_scop_scattering.
2071 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2072 Sebastian Pop <s.pop@samsung.com>
2074 PR tree-optimization/68493
2075 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
2076 missing early return when codegen_error is set.
2078 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2079 Sebastian Pop <s.pop@samsung.com>
2081 PR tree-optimization/68279
2082 * graphite-poly.c (new_scop): Remove poly_scop_p.
2083 * graphite-poly.h (struct scop): Same.
2084 (build_poly_scop): Declare.
2085 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
2086 (cleanup_loop_iter_dom): New.
2087 (build_loop_iteration_domains): Early return when scev analysis fails.
2088 (create_pw_aff_from_tree): Same.
2089 (add_condition_to_pbb): Same.
2090 (add_conditions_to_domain): Same.
2091 (add_conditions_to_constraints): Same.
2092 (build_scop_iteration_domain): Same.
2093 (build_poly_scop): Same. Do not initialize poly_scop_p.
2094 * graphite-sese-to-poly.h: Remove.
2095 * graphite.c: Do not include graphite-sese-to-poly.h.
2096 (graphite_transform_loops): Stop before code generation when
2097 build_poly_scop fails.
2098 * sese.c (scalar_evolution_in_region): Add fixme note about scev
2101 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
2102 Sebastian Pop <s.pop@samsung.com>
2104 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2105 Remove call to update_ssa.
2106 * sese.c (sese_insert_phis_for_liveouts): Same.
2108 2015-11-23 Marek Polacek <polacek@redhat.com>
2110 PR tree-optimization/68455
2111 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
2112 extract_range_from_multiplicative_op_1 on symbolic ranges.
2114 2015-11-23 Richard Henderson <rth@redhat.com>
2116 * optabs.def (uaddv4_optab, usubv4_optab): New.
2117 * internal-fn.c (expand_addsub_overflow): Use them.
2118 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
2120 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
2121 to reversed operands.
2122 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
2123 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
2124 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
2125 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
2126 (*add<SWI>3_cconly_overflow_2): New.
2127 (*add<SWI>3_cc_overflow_2): New.
2128 (*addsi3_zext_cc_overflow_2): New.
2130 2015-11-23 Richard Biener <rguenther@suse.de>
2132 PR tree-optimization/68465
2133 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
2134 Also record equalities from multiple predecessor blocks if
2135 only one non-backedge exists.
2137 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2140 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
2141 that are not INSN_P.
2143 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
2145 * config/aarch64/aarch64-builtins.c
2146 (aarch64_gimple_fold_builtin): Fold FMULX.
2148 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
2150 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
2151 * graphite-dependences.c: Define USES_ISL. Include ISL header files
2152 after GCC header files and before graphite header files.
2153 * graphite-dependences.c: Same.
2154 * graphite-isl-ast-to-gimple.c: Same.
2155 * graphite-optimize-isl.c: Same.
2156 * graphite-poly.c: Same.
2157 * graphite-scop-detection.c: Same.
2158 * graphite-sese-to-poly.c: Same.
2161 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
2162 Jiong Wang <jiong.wang@arm.com>
2164 PR tree-optimization/68317
2165 PR tree-optimization/68326
2166 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
2167 final min and max are not infinity.
2169 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
2170 Richard Biener <rguenther@suse.de>
2172 PR tree-optimization/68327
2173 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
2174 compute vectype for non-relevant mask producers.
2175 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
2178 2015-11-23 Tom de Vries <tom@codesourcery.com>
2180 PR tree-optimization/68460
2181 * tree-parloops.c (gather_scalar_reductions): Also call
2182 free_stmt_vec_info_vec if simple_loop_info == NULL.
2184 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
2186 * opts.c (finish_options): Allow -fsanitize-recover=address for
2187 userspace sanitization.
2188 * asan.c (asan_expand_check_ifn): Redefine recover_p.
2189 * doc/invoke.texi (fsanitize-recover): Update documentation.
2191 2015-11-23 Tom de Vries <tom@codesourcery.com>
2193 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
2195 2015-11-23 Richard Biener <rguenther@suse.de>
2197 PR tree-optimization/68445
2198 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
2199 two different strides.
2201 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
2203 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
2204 * config/s390/s390.c (s390_check_symref_alignment): Use new
2205 symref flags, early abort on wrong alignment
2206 (s390_secondary_reload): Use new symref flags.
2207 (s390_encode_section_info): Likewise.
2208 * config/s390/predicates.md: Likewise.
2210 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2213 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
2214 for indirect function call.
2216 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
2218 * config/aarch64/aarch64-simd.md
2219 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
2220 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
2221 (*aarch64_mulx_elt_to_64v2df): Likewise.
2222 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
2223 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
2224 (vmulx_lane_f64): Likewise.
2225 (vmulxq_lane_f32): Refactored & moved.
2226 (vmulxq_lane_f64): Likewise.
2227 (vmulx_laneq_f32): New.
2228 (vmulx_laneq_f64): Likewise.
2229 (vmulxq_laneq_f32): Likewise.
2230 (vmulxq_laneq_f64): Likewise.
2231 (vmulxs_lane_f32): Likewise.
2232 (vmulxs_laneq_f32): Likewise.
2233 (vmulxd_lane_f64): Likewise.
2234 (vmulxd_laneq_f64): Likewise.
2236 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
2238 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
2239 In LTO we do not compute TYPE_CANONICAL of pointers.
2240 (gimple_canonical_types_compatible_p): Improve coments; sanity check
2241 that pointers do not have canonical type that would make us believe
2243 * alias.c (get_alias_set): Do structural type equality on pointers;
2244 enable pointer path for LTO; also glob pointer to vector with pointer
2245 to vector element; glob pointers and references for LTO; do more strict
2246 sanity checking about build_pointer_type returning the canonical type
2247 which is also the main variant.
2248 (record_component_aliases): When component type is pointer and we
2249 do LTO; record void_type_node alias set.
2251 2015-11-21 Nathan Sidwell <nathan@acm.org>
2253 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
2255 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
2257 (write_func_decl_from_insn): Likewise.
2258 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
2259 (nvptx_file_end): Likewise.
2260 (nvptx_function_end): Undent output.
2261 (nvptx_expand_call): Fix formatting.
2262 (nvptx_output_call_insn): Indent output.
2263 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
2264 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
2266 2015-11-21 Jakub Jelinek <jakub@redhat.com>
2269 * tree-inline.c (copy_debug_stmt): If
2270 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
2271 in decl_debug_args, don't call remap_gimple_op_r on it.
2273 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
2275 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
2276 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
2277 Check that all record types are complete.
2278 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
2279 compare alias sets for types w/o alias sets.
2281 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2283 * config/sparc/sparc.md (umulxhi_vis): Move around.
2284 (*umulxhi_sp64): Likewise.
2285 (umulxhi_v8plus): Likewise.
2286 (xmulx_vis): Likewise.
2287 (*xmulx_sp64): Likewise.
2288 (xmulx_v8plus): Likewise.
2289 (xmulxhi_vis): Likewise.
2290 (*xmulxhi_sp64): Likewise.
2291 (xmulxhi_v8plus): Likewise.
2293 2015-11-20 David Malcolm <dmalcolm@redhat.com>
2296 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
2297 (class layout): Update comment
2298 (layout::print_any_fixits): New method.
2299 (layout::move_to_column): New method.
2300 (diagnostic_show_locus): Add call to layout.print_any_fixits.
2302 2015-11-20 Jakub Jelinek <jakub@redhat.com>
2305 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
2306 has non-zero bias, subtract it in integer type instead of
2307 pointer plus of negated bias.
2310 * omp-low.c (expand_simd_clones): Call node->get_body () before
2311 allocating stuff in GC.
2313 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
2315 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
2317 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
2319 * config/aarch64/aarch64.md (predicated): Copy attribute from
2321 * config/arm/arm.md (predicated): Added description.
2323 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2325 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
2326 for unaligned_access.
2327 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
2328 from matching condition.
2329 (unaligned_loadhis): Likewise.
2330 (unaligned_loadhiu): Likewise.
2331 (unaligned_storesi): Likewise.
2332 (unaligned_storehi): Likewise.
2334 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2337 * config/arm/arm.md (unaligned_loaddi): Delete.
2338 (unaligned_storedi): Likewise.
2339 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
2340 unaligned DImode memory ops. Instead perform two back-to-back
2341 unaligned SImode ops.
2343 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
2344 James Norris <jnorris@codesourcery.com>
2346 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
2347 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
2349 2015-11-20 Alan Hayward <alan.hayward@arm.com>
2351 PR tree-optimization/68413
2352 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
2354 (vectorizable_reduction): Use cached base
2356 2015-11-20 Tom de Vries <tom@codesourcery.com>
2358 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
2360 (try_create_reduction_list): Same. Fix typo in dump-file string.
2362 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
2364 * doc/md.texi (Standard Names): Move entry for addptr3 around,
2365 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
2366 glitch in entries for cbranch4 and jump.
2368 2015-11-20 Tom de Vries <tom@codesourcery.com>
2370 PR tree-optimization/68373
2371 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
2373 (scev_const_prop): ... here.
2374 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
2375 * tree-parloops.c (try_create_reduction_list): Call
2376 final_value_replacement_loop.
2378 2015-11-20 Bin Cheng <bin.cheng@arm.com>
2380 PR tree-optimization/52272
2381 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
2382 (struct iv_common_cand_hasher): New struct.
2383 (iv_common_cand_hasher::hash): New function.
2384 (iv_common_cand_hasher::equal): New function.
2385 (struct ivopts_data): New fields, iv_common_cand_tab and
2387 (tree_ssa_iv_optimize_init): Initialize above fields.
2388 (record_common_cand, common_cand_cmp): New functions.
2389 (add_iv_candidate_derived_from_uses): New function.
2390 (add_iv_candidate_for_use): Record iv_common_cands derived from
2391 iv use in hash table, instead of adding candidates directly.
2392 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
2393 (record_important_candidates): Add important candidates to iv uses'
2394 related_cands. Always keep related_cands for future use.
2395 (try_add_cand_for): Use iv uses' related_cands.
2396 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
2397 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
2399 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2401 * config/s390/s390.md ("bswaphi2"): New pattern.
2403 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
2405 * config/s390/s390.md (GPR1_REGNUM): New constant.
2406 ("*trunc<BFP:mode><DFP_ALL:mode>2")
2407 ("*trunc<DFP_ALL:mode><BFP:mode>2")
2408 ("trunc<BFP:mode><DFP_ALL:mode>2")
2409 ("trunc<DFP_ALL:mode><BFP:mode>2")
2410 ("*extend<BFP:mode><DFP_ALL:mode>2")
2411 ("*extend<DFP_ALL:mode><BFP:mode>2")
2412 ("extend<BFP:mode><DFP_ALL:mode>2")
2413 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
2415 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2416 Sebastian Pop <s.pop@samsung.com>
2418 PR tree-optimization/68428
2419 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
2420 over basic blocks outside the scop.
2422 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2423 Sebastian Pop <s.pop@samsung.com>
2425 PR tree-optimization/68341
2426 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
2427 gcc_unreachable and safely fail codegen.
2428 (copy_loop_close_phi_args): Do not insert merge phis in a basic
2429 block with loop phi nodes.
2430 (edge_for_new_close_phis): New.
2431 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
2433 2015-11-19 Nathan Sidwell <nathan@acm.org>
2435 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
2436 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
2437 (nvptx_declare_objec_name): Likewise.
2439 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
2441 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
2442 (get_false_edge_from_guard_bb): Move...
2443 * sese.c (get_false_edge_from_guard_bb)
2444 (get_true_edge_from_guard_bb): ... here.
2446 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
2449 2015-11-18 Alan Modra <amodra@gmail.com>
2451 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2452 type-limits warning.
2455 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
2457 * tree.h (desired_pro_or_demotion_p): New function.
2458 * tree-vrp.c (simplify_cond_using_ranges): Call it.
2460 2015-11-19 Michael Matz <matz@suse.de>
2462 * fwprop.c (update_uses): Use flag_checking instead of
2463 gcc_checking_assert.
2465 2015-11-19 David Malcolm <dmalcolm@redhat.com>
2467 * doc/gty.texi (Support for inheritance): Fix missing
2468 parentheses in example.
2470 2015-11-19 Marek Polacek <polacek@redhat.com>
2472 PR tree-optimization/68431
2473 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
2475 2015-11-19 Nathan Sidwell <nathan@acm.org>
2477 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
2478 atomic_exchange<mode>): Input values can be immediates.
2480 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2483 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
2485 * configure: Regenerate.
2487 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
2490 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
2491 (DTORS_SECTION_ASM_OP): Likewise.
2493 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2495 PR rtl-optimization/68376
2496 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
2497 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
2499 2015-11-19 Richard Biener <rguenther@suse.de>
2502 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
2503 redirect_edge_var_map_destroy.
2505 2015-11-19 Jakub Jelinek <jakub@redhat.com>
2508 * config/i386/i386.md (simple_return): Disable if
2509 ix86_static_chain_on_stack is true.
2511 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
2514 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
2517 2015-11-18 Jeff Law <law@redhat.com>
2519 PR tree-optimization/68198
2520 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
2521 between threading a multi-way branch and a thread path that contains
2522 a multi-way branch. Disallow the case where a path contains a
2523 multi-way branch and does not thread a multi-way branch.
2524 (thread_through_all_blocks): Update comment.
2526 2015-11-18 Joseph Myers <joseph@codesourcery.com>
2529 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
2530 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
2531 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
2532 functions before defining as macros.
2534 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2536 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
2537 (nvptx_record_offload_symbol): Remove code compensating for lack
2538 of default dimension handling.
2539 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
2541 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2543 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
2544 type to bool for early exit.
2545 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
2547 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
2548 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
2549 predecessor dominates the other.
2550 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
2551 element is not found it returns -1.
2552 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
2553 out early when codegen fails.
2554 (graphite_regenerate_ast_isl): Remove codegen region when pending
2555 phis could not be generated.
2557 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
2559 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
2561 (class translate_isl_ast_to_gimple): Indentation.
2562 (translate_pending_phi_nodes): Comment.
2563 (add_parameters_to_ivs_params): Moved from sese.c inside class
2564 translate_isl_ast_to_gimple.
2565 (get_max_schedule_dimensions): Same.
2566 (generate_isl_context): Same.
2567 (extend_schedule): Same.
2568 (generate_isl_schedule): Same.
2569 (set_options): Same.
2570 (scop_to_isl_ast): Same.
2571 (is_valid_rename): Same.
2573 (get_rename_from_scev): Same.
2574 (get_def_bb_for_const): Same.
2575 (get_new_name): Same.
2576 (collect_all_ssa_names): Same.
2577 (copy_loop_phi_args): Same.
2578 (copy_loop_phi_nodes): Same.
2579 (copy_loop_close_phi_args): Same.
2580 (copy_loop_close_phi_nodes): Same.
2581 (copy_cond_phi_args): Same.
2582 (copy_cond_phi_nodes): Same.
2583 (graphite_copy_stmts_from_block): Same.
2584 (copy_bb_and_scalar_dependences): Same.
2585 (add_phi_arg_for_new_expr): Same.
2586 (rename_uses): Same.
2588 (set_rename_for_each_def): Same.
2589 (gsi_insert_earliest): Same.
2590 (rename_all_uses): Same.
2591 (codegen_error_p): Same.
2592 (print_isl_ast_node): Same.
2593 (translate_isl_ast_for_loop): Call function codegen_error_p.
2594 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
2595 (translate_isl_ast_node_user): Make nb_loops const and release
2597 (get_true_edge_from_guard_bb): Move all free-functions early.
2598 (get_false_edge_from_guard_bb): Same.
2599 (bb_contains_loop_close_phi_nodes): Same.
2600 (bb_contains_loop_phi_nodes): Same.
2601 (is_loop_closed_ssa_use): Same.
2602 (number_of_phi_nodes): Same.
2603 (phi_uses_name): Same.
2604 (later_of_the_two): Same.
2605 (substitute_ssa_name):
2608 (get_loop_init_value): Same.
2609 (find_init_value): Same.
2610 (find_init_value_close_phi): Same.
2611 (ast_build_before_for): Same.
2612 (graphite_regenerate_ast_isl): Formatting changes.
2613 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
2614 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
2616 (gsi_insert_earliest): Same.
2617 (collect_all_ssa_names): Same.
2618 (rename_all_uses): Same.
2619 (rename_uses): Same.
2620 (get_def_bb_for_const): Same.
2621 (copy_loop_phi_nodes): Same.
2622 (copy_loop_close_phi_args): Same.
2623 (copy_loop_close_phi_nodes): Same.
2624 (copy_cond_phi_args): Same.
2625 (copy_cond_phi_nodes): Same.
2626 (set_rename_for_each_def): Same.
2627 (graphite_copy_stmts_from_block): Same.
2628 (copy_bb_and_scalar_dependences): Same.
2629 (if_region_set_false_region): Same.
2630 (scev_analyzable_p): Same.
2631 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
2633 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
2635 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
2636 commit from r125920 for FreeBSD.
2638 2015-11-18 Jason Merrill <jason@redhat.com>
2640 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
2642 (add_finalizer): Split out from ggc_internal_alloc.
2643 (ggc_handle_finalizers): Run finalizers for the current depth.
2644 (init_ggc, ggc_pch_read): Reserve space for finalizers.
2646 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
2649 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
2652 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
2654 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
2655 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
2657 * doc/avr-mmcu.texi: Regenerate.
2659 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2661 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
2662 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
2663 (struct bb_sese): New struct.
2664 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
2665 (BB_GET_SESE, BB_SET_SESE): Define.
2666 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
2667 (nvptx_find_sese): New.
2668 (nvptx_neuter_pars): Find SESE regions when optimizing.
2670 2015-11-18 Alan Modra <amodra@gmail.com>
2672 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
2673 type-limits warning.
2675 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
2678 * hash-set.h (hash_set::traverse): Expand Key typedef.
2680 2015-11-18 Martin Liska <mliska@suse.cz>
2682 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
2685 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
2687 * config/nvptx/nvptx.c (global_lock_var): New.
2688 (nvptx_global_lock_addr): New.
2689 (nvptx_lockless_update): Recomment and adjust for clarity.
2690 (nvptx_lockfull_update): New.
2691 (nvptx_reduction_update): New.
2692 (nvptx_goacc_reduction_fini): Call it.
2694 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
2696 * regrename.h (struct du_head): Add target_data_1 and target_data_2
2698 * regrename.c (create_new_chain): Clear entire struct after allocating.
2700 * config/i386/i386.opt (mmitigate-rop): New option.
2701 * doc/invoke.texi (mmitigate-rop): Document.
2702 * config/i386/i386.c: Include "regrename.h".
2703 (ix86_rop_should_change_byte_p, reg_encoded_number,
2704 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
2706 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
2707 * config/i386/i386.md (attr "modrm_class"): New.
2708 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
2709 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
2710 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
2712 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
2715 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
2717 2015-11-18 Jakub Jelinek <jakub@redhat.com>
2719 PR tree-optimization/68157
2720 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
2721 pow_stmt or mul_stmt from stmt's uid.
2722 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
2724 2015-11-18 Martin Liska <mliska@suse.cz>
2726 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
2728 2015-11-18 Martin Liska <mliska@suse.cz>
2730 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
2731 Fix GNU coding style.
2732 (find_def_preds): Use auto_vec.
2733 (destroy_predicate_vecs): Change signature of the function.
2734 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
2736 (simplify_preds_4): Use destroy_predicate_vecs instread of
2737 just releasing preds vector.
2738 (normalize_preds): Likewise.
2739 (is_use_properly_guarded): Use new signature of
2740 destroy_predicate_vecs.
2741 (find_uninit_use): Likewise.
2743 2015-11-18 Richard Biener <rguenther@suse.de>
2745 PR tree-optimization/67790
2746 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
2747 IL rewrite for MINUS_EXPR reductions, rename back to ...
2748 (vect_is_simple_reduction): ... this, removing the wrapper.
2749 (vect_force_simple_reduction): Adjust.
2750 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
2751 reductions and make use if reduc_index in all places. For
2752 the final reduction of MINUS_EXPR use PLUS_EXPR.
2754 2015-11-18 Alan Modra <amodra@gmail.com>
2756 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
2758 * configure: Regenerate.
2760 2015-11-17 Tom de Vries <tom@codesourcery.com>
2762 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
2764 2015-11-17 Tom de Vries <tom@codesourcery.com>
2766 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
2767 uses of ssa_name with constant.
2769 2015-11-17 Tom de Vries <tom@codesourcery.com>
2771 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
2774 2015-11-17 Tom de Vries <tom@codesourcery.com>
2776 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
2777 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
2778 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
2780 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
2782 * regrename.c (regrename_find_superclass): New function, code moved
2784 (rename_chains): ... here. Call it.
2785 * regrename.h (regrename_find_superclass): Declare.
2787 * regrename.c (record_out_operands): Terminate earlyclobbered
2791 * regrename.c (record_operand_use): Keep track of failed operands
2792 and stop appending if we see any.
2793 * regrename.h (struct operand_rr_info): Add a failed field and shrink
2796 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
2799 * doc/extend.texi (Common Function Attributes) [visibility]:
2800 Add cross-references to matching variable and type attributes.
2801 (Common Variable Attributes) [visibility]: Add missing entry.
2803 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2805 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
2806 entries that map directly to optabs.
2808 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2810 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
2811 entries that map directly to optabs.
2813 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2815 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
2816 * internal-fn.c (direct_internal_fn_array): Update accordingly.
2817 * tree-vectorizer.h (vectorizable_function): Delete.
2818 * tree-vect-stmts.c: Include internal-fn.h.
2819 (vectorizable_internal_function): New function.
2820 (vectorizable_function): Inline into...
2821 (vectorizable_call): ...here. Explicitly reject calls that read
2822 from or write to memory. Try using an internal function before
2823 falling back on the old vectorizable_function behavior.
2825 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2827 * target.def (builtin_vectorized_function): Take a combined_fn (in
2828 the form of an unsigned int) rather than a function decl.
2829 (builtin_md_vectorized_function): New.
2830 * targhooks.h (default_builtin_vectorized_function): Replace the
2831 fndecl argument with an unsigned int.
2832 (default_builtin_md_vectorized_function): Declare.
2833 * targhooks.c (default_builtin_vectorized_function): Replace the
2834 fndecl argument with an unsigned int.
2835 (default_builtin_md_vectorized_function): New function.
2836 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
2838 * doc/tm.texi: Regenerate.
2839 * tree-vect-stmts.c (vectorizable_function): Update call to
2840 builtin_vectorized_function, also passing internal functions.
2841 Call builtin_md_vectorized_function for target-specific builtins.
2842 * config/aarch64/aarch64-protos.h
2843 (aarch64_builtin_vectorized_function): Replace fndecl argument
2844 with an unsigned int.
2845 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
2846 (aarch64_builtin_vectorized_function): Update after above changes.
2848 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
2849 fndecl argument with an unsigned int.
2850 * config/arm/arm-builtins.c: Include case-cfn-macros.h
2851 (arm_builtin_vectorized_function): Update after above changes.
2853 * config/i386/i386.c: Include case-cfn-macros.h
2854 (ix86_veclib_handler): Take a combined_fn rather than a
2856 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
2857 mathfn_built_in rather than calling builtin_decl_implicit directly.
2858 (ix86_builtin_vectorized_function) Update after above changes.
2860 * config/rs6000/rs6000.c: Include case-cfn-macros.h
2861 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
2862 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
2863 than calling builtin_decl_implicit directly.
2864 (rs6000_builtin_vectorized_function): Update after above changes.
2865 Use CASE_CFN_*. Move BUILT_IN_MD to...
2866 (rs6000_builtin_md_vectorized_function): ...this new function.
2867 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
2869 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2871 * tree-vect-patterns.c: Include internal-fn.h.
2872 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
2874 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2876 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
2877 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
2879 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2881 * builtins.c (expand_errno_check, expand_builtin_mathfn)
2882 (expand_builtin_mathfn_2): Delete.
2883 (expand_builtin): Remove handling of functions with
2884 internal function equivalents.
2885 * internal-fn.def (SET_EDOM): New internal function.
2886 * internal-fn.h (set_edom_supported_p): Declare.
2887 * internal-fn.c (expand_SET_EDOM): New function.
2888 (set_edom_supported_p): Likewise.
2889 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
2890 Rewrite comment at head of file.
2891 (is_call_dce_candidate): Rename to...
2892 (can_test_argument_range): ...this. Don't check gimple_call_lhs
2893 or gimple_call_builtin_p here.
2894 (edom_only_function): New function.
2895 (shrink_wrap_one_built_in_call_with_conds): New function, split out
2897 (shrink_wrap_one_built_in_call): ...here.
2898 (can_use_internal_fn, use_internal_fn): New functions.
2899 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
2900 for calls that have an lhs.
2901 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
2902 (pass_call_cdce::execute): Skip blocks that are optimized for size.
2903 Check gimple_call_builtin_p here. Use can_use_internal_fn for
2905 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
2908 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2910 * builtins.h (called_as_built_in): Declare.
2911 * builtins.c (called_as_built_in): Make external.
2912 * internal-fn.h (expand_internal_call): Define a variant that
2913 specifies the internal function explicitly.
2914 * internal-fn.c (expand_load_lanes_optab_fn)
2915 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
2916 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
2917 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
2918 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
2919 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
2920 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
2921 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
2922 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
2923 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
2924 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
2925 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
2926 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
2927 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
2929 (internal_fn_expanders): Update prototype.
2930 (expand_internal_call): Define a variant that specifies the
2931 internal function explicitly. Use it to implement the previous
2933 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
2934 functions as calls to internal functions.
2936 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2938 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
2939 (generated_files): Likewise.
2940 (s-cfn-operators, cfn-operators.pd): New rules.
2941 (s-match): Depend on cfn-operators.pd.
2942 * gencfn-macros.c: Expand comment to describe -o behavior.
2943 (print_define_operator_list): New function.
2944 (main): Accept -o. Call print_define_operator_list.
2945 * genmatch.c (main): Add the current directory to the include path.
2946 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
2949 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2951 * doc/match-and-simplify.texi: Document the "null" identifier.
2952 * genmatch.c (id_base::NULL_ID): New kind.
2953 (null_id): New variable.
2954 (get_operator): Add a parameter that says whether null identifiers
2956 (contains_id): New function.
2957 (lower_for): Skip substitutions that would have a null_id in
2958 either the match or the result.
2959 (parser::parse_for): Allow the null identifier to be used.
2960 (parser::parse_operator_list): Likewise.
2961 (main): Initialize null_id.
2963 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
2965 * match.pd: Use HYPOT and COS rather than hypot and cos.
2966 Use CASE_CFN_* macros. Guard log/exp folds with
2967 SCALAR_FLOAT_TYPE_P.
2968 * genmatch.c (internal_fn): New enum.
2969 (fn_id::fn): Change to an unsigned int.
2970 (fn_id::fn_id): Accept internal_fn too.
2971 (add_builtin): Rename to...
2972 (add_function): ...this and turn into a template.
2973 (get_operator): Only try one variation if the original name fails.
2974 Only add _EXPR if the original name was all lower case.
2975 Try converting internal and built-in function names to their
2977 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
2978 (dt_simplify::gen_1): Likewise.
2979 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
2980 and get_call_combined_fn for generic.
2981 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
2982 (decision_tree::gen): Likewise.
2983 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
2984 Use add_function rather than add_builtin. Register internal
2986 * generic-match-head.c: Include case-cfn-macros.h.
2987 * gimple-fold.c (replace_stmt_with_simplification): Use
2988 gimple_call_combined_fn to test whether we can keep an
2990 * gimple-match.h (code_helper): Replace built_in_function
2992 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
2993 and case-fn-macros.h.
2994 (gimple_resimplify1): Use fold_const_call.
2995 (gimple_resimplify2, gimple_resimplify3): Likewise.
2996 (build_call_internal, build_call): New functions.
2997 (maybe_push_res_to_seq): Use them.
2998 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
2999 rather than a built-in function.
3000 * tree.h (build_call_expr_internal_loc): Declare.
3001 (maybe_build_call_expr_loc): Likewise.
3002 * tree.c (build_call_expr_internal_loc_array): New function.
3003 (maybe_build_call_expr_loc): Likewise.
3005 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3007 * builtins.h (mathfn_built_in): Add a variant that takes
3009 * builtins.c: Include case-cfn-macros.h.
3010 (CASE_MATHFN): Use CASE_CFN_*.
3011 (CASE_MATHFN_REENT): Use CFN_ codes.
3012 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
3013 argument with a combined_fn.
3014 (mathfn_built_in): Add a variant that takes a combined_fn.
3015 (expand_builtin_int_roundingfn_2): Update callers accordingly.
3016 (fold_builtin_sincos, fold_builtin_classify): Likewise.
3018 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3020 * tree-vect-patterns.c: Include case-cfn-macros.h.
3021 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
3023 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3025 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
3026 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
3027 (pass_cse_sincos::execute): Likewise.
3029 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3031 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
3032 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
3033 (decrement_power, acceptable_pow_call): Likewise.
3034 (attempt_builtin_copysign): Likewise.
3036 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3038 * tree-vrp.c: Include case-cfn-macros.h.
3039 (extract_range_basic): Switch on combined_fn rather than handling
3040 built-in functions and internal functions separately.
3042 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3044 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
3045 than a built_in_function.
3046 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3048 (integer_valued_real_call_p): Likewise.
3049 * fold-const.c: Include case-cfn-macros.h
3050 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
3051 (negate_expr_p): Update accordingly.
3052 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
3054 (integer_valued_real_call_p): Likewise.
3055 (tree_invalid_nonnegative_warnv_p): Update accordingly.
3056 (integer_valued_real_p): Likewise.
3057 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
3058 to tree_call_nonnegative_warnv_p.
3059 (gimple_call_integer_valued_real_p): Likewise
3060 integer_valued_real_call_p.
3061 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
3062 (backprop::process_builtin_call_use): Extend to combined_fn.
3063 (strip_sign_op_1): Likewise.
3064 (backprop::process_use): Don't check for built-in calls here.
3065 (backprop::execute): Likewise.
3066 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
3068 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3070 * fold-const-call.h (fold_const_call): Replace built_in_function
3071 arguments with combined_fn arguments.
3072 * fold-const-call.c: Include case-cfn-macros.h.
3073 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
3074 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
3075 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
3076 built_in_function arguments with combined_fn arguments.
3077 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
3078 (fold_builtin_3): Update calls to fold_const_call.
3080 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3082 * Makefile.in (HASH_TABLE_H): Add GGC_H.
3083 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
3084 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
3085 (build/gencfn-macros$(build_exeext): New rules.
3086 (genprogerr): Add cfn-macros.
3087 * hash-set.h (hash_set): Use the traits value_type as the key.
3088 * gencfn-macros.c: New file.
3090 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3092 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
3093 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
3094 * builtins.c (associated_internal_fn): Handle them.
3096 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3098 * builtins.h (associated_internal_fn): Declare.
3099 (replacement_internal_fn): Likewise.
3100 * builtins.c: Include internal-fn.h
3101 (associated_internal_fn, replacement_internal_fn): New functions.
3102 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
3103 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
3104 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
3105 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
3106 (LDEXP): New functions.
3107 * internal-fn.c: Include recog.h.
3108 (unary_direct, binary_direct): New macros.
3109 (expand_direct_optab_fn): New function.
3110 (expand_unary_optab_fn): New macro.
3111 (expand_binary_optab_fn): Likewise.
3112 (direct_unary_optab_supported_p): Likewise.
3113 (direct_binary_optab_supported_p): Likewise.
3115 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3117 * coretypes.h (tree_pair): New type.
3118 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
3119 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
3120 * internal-fn.h (direct_internal_fn_info): New structure.
3121 (direct_internal_fn_array): Declare.
3122 (direct_internal_fn_p, direct_internal_fn): New functions.
3123 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
3124 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
3125 (mask_store_direct, store_lanes_direct): New macros.
3126 (direct_internal_fn_array) New array.
3127 (get_multi_vector_move): Return the optab handler without asserting
3128 that it is available.
3129 (expand_LOAD_LANES): Rename to...
3130 (expand_load_lanes_optab_fn): ...this and add an optab argument.
3131 (expand_STORE_LANES): Rename to...
3132 (expand_store_lanes_optab_fn): ...this and add an optab argument.
3133 (expand_MASK_LOAD): Rename to...
3134 (expand_mask_load_optab_fn): ...this and add an optab argument.
3135 (expand_MASK_STORE): Rename to...
3136 (expand_mask_store_optab_fn): ...this and add an optab argument.
3137 (direct_internal_fn_types, direct_optab_supported_p)
3138 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
3139 (direct_internal_fn_supported_p): New functions.
3140 (direct_mask_load_optab_supported_p): New macro.
3141 (direct_load_lanes_optab_supported_p): Likewise.
3142 (direct_mask_store_optab_supported_p): Likewise.
3143 (direct_store_lanes_optab_supported_p): Likewise.
3145 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
3147 * tree-core.h (internal_fn): Move immediately after the definition
3148 of built_in_function.
3149 (combined_fn): New enum.
3150 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
3151 (internal_fn_p, as_internal_fn): New functions.
3152 (get_call_combined_fn, combined_fn_name): Declare.
3153 * tree.c (get_call_combined_fn): New function.
3154 (combined_fn_name): Likewise.
3155 * gimple.h (gimple_call_combined_fn): Declare.
3156 * gimple.c (gimple_call_combined_fn): New function.
3158 2015-11-17 Martin Sebor <msebor@redhat.com>
3161 * cp/init.c (build_new_1): Check for expression constness
3164 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
3167 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
3169 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
3170 discussion of the Microsoft structure layout details here from
3171 its former home in extend.texi.
3172 * doc/extend.texi (x86 Variable Attributes): Replace detailed
3173 discussion with pointer to its new location. Add cross-reference
3174 to corresponding type attributes.
3175 (x86 Type Attributes): Add cross-references to command-line options
3176 and variable attributes.
3178 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3181 * targhooks.c (default_get_mask_mode): Filter out
3182 scalar modes returned by mode_for_vector.
3184 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3187 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
3188 offset from dstbase and use it appropriately in
3189 adjust_automodify_address.
3190 (arm_block_set_aligned_vect): Likewise.
3192 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
3194 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
3195 (MULTILIB_DIRNAMES): Adjust accordingly.
3197 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
3199 * config/aarch64/aarch64-cores.def (cortex-a35): New.
3200 * config/aarch64/aarch64.c (cortexa35_tunings): New.
3201 * config/aarch64/aarch64-tune.md: Regenerate.
3202 * doc/invoke.texi (-mcpu): Add Cortex-A35
3204 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
3207 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
3209 * config/i386/sse.md (*mov<mode>_internal): Always enable
3210 AVX and SSE unaligned moves for IAMCU.
3212 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3214 * tree-if-conv.c: Include varasm.h
3215 (ref_DR_map): Define.
3216 (baseref_DR_map): Like wise
3217 (struct ifc_dr): Add new tree predicate field.
3218 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
3219 (memrefs_read_or_written_unconditionally): Remove.
3220 (write_memrefs_written_at_least_once): Remove.
3221 (ifcvt_memrefs_wont_trap): Use hash maps to query
3222 unconditional read/written information.
3223 (if_convertible_loop_p_1): Initialize hash maps and predicates
3224 before hashing data references and delete hashmaps at the end.
3226 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
3229 * doc/invoke.texi (Optimize Options): Move @end table to the right
3232 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
3235 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
3238 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
3240 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
3241 128-bit types, just types that fit in a single vector.
3242 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
3244 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
3246 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
3247 in the user documentation.
3248 (define_peephole2, define_split): Similarly.
3250 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
3252 * lto-streamer-out.c (write_global_references): Adjust integer type.
3253 (lto_output_decl_state_refs): Likewise.
3255 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3257 * config/arm/arm-cores.def (cortex-a35): New.
3258 * config/arm/arm.c (arm_cortex_a35_tune): New.
3259 * config/arm/arm-tables.opt: Regenerate.
3260 * config/arm/arm-tune.md: Regenerate.
3261 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
3262 * config/arm/t-aprofile: Likewise.
3263 * doc/invoke.texi (-mcpu): Likewise.
3265 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
3267 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
3268 and qdf24xx and xgene1 to match -march=armv8-a.
3270 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
3272 PR rtl-optimization/68330
3273 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
3274 of LSHIFTRT by a non-zero constant integer.
3276 2015-11-16 Richard Biener <rguenther@suse.de>
3278 PR tree-optimization/68306
3279 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
3280 bogus copying from verify_data_ref_alignment and use continue
3283 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
3284 Kaz Kojima <kkojima@gcc.gnu.org>
3287 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
3289 (*addsi3): Add another insn_and_split variant for reload.
3291 2015-11-16 Richard Biener <rguenther@suse.de>
3294 * cfgexpand.c (pass_expand::execute): Destroy the edge
3295 redirection var map before setting RTL CFG hooks.
3297 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
3299 * config/i386/sse.md (reduc_splus_v8df): Rename to...
3300 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
3302 (reduc_splus_v4df): Rename to...
3303 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
3305 (reduc_splus_v2df): Rename to...
3306 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
3308 (reduc_splus_v16sf): Rename to...
3309 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
3311 (reduc_splus_v8sf): Rename to...
3312 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
3314 (reduc_splus_v4sf): Rename to...
3315 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
3317 (reduc_<code>_<mode>, all 3 variants): Rename each to...
3318 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
3320 (reduc_umin_v8hf): Rename to...
3321 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
3323 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
3325 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
3326 without additional conditions.
3327 * doc/extend.texi (@item simd): New.
3329 2015-11-16 Tom de Vries <tom@codesourcery.com>
3331 * passes.c (first_pass_instance): Remove variable.
3332 (execute_todo): Remove setting of first_pass_instance.
3333 * tree-pass.h (first_pass_instance): Remove declaration.
3335 2015-11-16 Tom de Vries <tom@codesourcery.com>
3337 * passes.def: Add arg to pass_ccp pass instantiation.
3338 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
3339 instead of first_pass_instance.
3340 (do_ssa_ccp): Add and handle param nonzero_p.
3341 (pass_ccp::pass_ccp): Initialize nonzero_p.
3342 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
3343 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
3344 (pass_ccp::nonzero_p): New private member.
3346 2015-11-16 Tom de Vries <tom@codesourcery.com>
3348 * passes.def: Add arg to pass_object_sizes pass instantiation.
3349 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
3351 (pass_object_sizes::set_pass_param): New member function. Set
3353 (pass_object_sizes::insert_min_max_p): New private member.
3354 (pass_object_sizes::execute): Use insert_min_max_p instead of
3355 first_pass_instance.
3357 2015-11-16 Tom de Vries <tom@codesourcery.com>
3359 * passes.def: Add arg to pass_dominator pass instantiation.
3360 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
3362 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
3363 may_peel_loop_headers_p.
3364 (pass_dominator::set_pass_param): New member function. Set
3365 may_peel_loop_headers_p.
3366 (pass_dominator::may_peel_loop_headers_p): New private member.
3367 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
3368 first_pass_instance.
3370 2015-11-16 Tom de Vries <tom@codesourcery.com>
3372 * passes.def: Add arg to pass_reassoc pass instantiation.
3373 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
3374 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
3375 of first_pass_instance.
3376 (execute_reassoc): Add and handle insert_powi_p parameter.
3377 (pass_reassoc::insert_powi_p): New private member.
3378 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
3379 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
3380 (pass_reassoc::execute): Call execute_reassoc with extra arg.
3382 2015-11-16 Tom de Vries <tom@codesourcery.com>
3384 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
3385 * gen-pass-instances.awk (handle_line): Same.
3386 * pass_manager.h (class pass_manager): Define and undefine
3388 * passes.c (opt_pass::set_pass_param): New function.
3389 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
3390 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
3391 * tree-pass.h (gimple_opt::set_pass_param): Declare.
3392 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
3393 warn_array_bounds_p parameter.
3394 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
3395 (pass_vrp::set_pass_param): New function.
3396 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
3397 (pass_vrp::warn_array_bounds_p): New private member.
3399 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3401 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
3402 (output_probe_stack_range): Rotate the loop and simplify.
3404 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3406 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
3407 (output_probe_stack_range): Rotate the loop and simplify.
3409 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
3411 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
3412 an lea instruction when possible.
3413 (output_adjust_stack_and_probe): Rotate the loop and simplify.
3414 (ix86_emit_probe_stack_range): Adjust.
3415 (output_probe_stack_range): Rotate the loop and simplify.
3417 2015-11-16 Christian Bruel <christian.bruel@st.com>
3419 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
3420 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
3421 with appropriate pragma GCC target.
3423 2015-11-16 Christian Bruel <christian.bruel@st.com>
3426 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
3427 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
3429 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
3431 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
3432 (cortexa57_tunings): Use it.
3434 2015-11-16 Christian Bruel <christian.bruel@st.com>
3437 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
3438 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
3439 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
3441 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
3442 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
3443 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
3444 * doc/extend.texi (-mfpu=): Describe attribute.
3446 2015-11-16 Christian Bruel <christian.bruel@st.com>
3449 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
3450 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
3451 arm_init_neon_builtins.
3452 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
3453 (arm_init_neon_builtins_internal)
3454 (arm_init_crypto_builtins_internal):
3455 Test and set neon_set_p, neon_crypto_set_p.
3456 (neon_set_p, neon_crypto_set_p): New static booleans.
3458 2015-11-16 Christian Bruel <christian.bruel@st.com>
3461 * config/arm/arm.c (arm_fpu_desc): Remove.
3462 (all_fpus): Make global.
3463 (arm_option_override): Use FPU TARGET accessors.
3464 (arm_declare_function_name): Likewise.
3465 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
3466 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
3467 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
3468 (TARGET_NEON): Likewise.
3469 (all_fpus): Declare extern.
3470 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
3471 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
3473 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3476 * sdbout.c: Include emit-rtl.h and function.h.
3478 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
3480 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
3481 Remove support for FreeBSD 5 and earlier.
3483 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3485 * configure: Regenerate.
3486 * configure.ac: Always define ENABLE_OFFLOADING.
3487 * cgraph.c (cgraph_node::create): Adjust.
3488 * gcc.c (process_command): Likewise.
3489 * omp-low.c (create_omp_child_function): Likewise.
3490 (expand_omp_target): Likewise.
3491 * varpool.c (varpool_node::get_create): Likewise.
3493 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3495 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
3496 * df-scan.c (df_get_exit_block_use_set): Adjust.
3497 * except.c (expand_eh_return): Likewise.
3499 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3501 * config/i386/i386.h (TARGET_PECOFF): Remove define.
3502 * defaults.h (TARGET_PECOFF): New default definition.
3503 * varasm.c (handle_vtv_comdat_section): Adjust.
3505 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3507 * defaults.h: New definition of SDB_DEBUGGING_INFO.
3508 * doc/tm.texi: Regenerate.
3509 * doc/tm.texi.in: Adjust.
3510 * final.c (rest_of_clean_state): Remove check if
3511 SDB_DEBUGGING_INFO is defined.
3512 * function.c (number_blocks): Likewise.
3513 * output.h: Likewise.
3514 * sdbout.c: Likewise.
3515 * toplev.c (process_options): Likewise.
3517 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3519 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
3520 (enum sdb_masks): Likewise.
3521 * sdbout.c (plain_type_1): Likewise.
3522 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
3524 2015-11-14 Jakub Jelinek <jakub@redhat.com>
3526 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
3527 internal calls - 0 if ordered simd and 1 for ordered threads simd.
3528 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
3529 argument is 1, replace it with GOMP_ordered_* call instead of removing
3532 2015-11-13 Rich Felker <dalias@libc.org>
3534 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
3535 address loading hack for FDPIC targets.
3537 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
3538 Jeff Law <law@redhat.com>
3540 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
3541 * common.opt (-fsplit-paths): New flag controlling path splitting.
3542 * doc/invoke.texi (fsplit-paths): Document.
3543 * opts.c (default_options_table): Add -fsplit-paths to -O2.
3544 * passes.def: Add split_paths pass.
3545 * timevar.def (TV_SPLIT_PATHS): New timevar.
3546 * tracer.c: Include "tracer.h"
3547 (ignore_bb_p): No longer static.
3548 (transform_duplicate): New function, broken out of tail_duplicate.
3549 (tail_duplicate): Use transform_duplicate.
3550 * tracer.h (ignore_bb_p): Declare
3551 (transform_duplicate): Likewise.
3552 * tree-pass.h (make_pass_split_paths): Declare.
3553 * gimple-ssa-split-paths.c: New file.
3555 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
3556 Marek Polacek <polacek@redhat.com>
3557 Jason Merrill <jason@redhat.com>
3559 * convert.c (maybe_fold_build1_loc): New.
3560 (maybe_fold_build2_loc): New.
3561 (convert_to_pointer_1): Split out from convert_to_pointer.
3562 (convert_to_pointer_nofold): New.
3563 (convert_to_real_1): Split out from convert_to_real.
3564 (convert_to_real_nofold): New.
3565 (convert_to_integer_1): Split out from convert_to_integer.
3566 (convert_to_integer_nofold): New.
3567 (convert_to_complex_1): Split out from convert_to_complex.
3568 (convert_to_complex_nofold): New.
3569 * convert.h: Declare new functions.
3570 * tree-complex.c (create_one_component_var): Break up line to
3571 avoid sequence point issues.
3573 2015-11-13 Jason Merrill <jason@redhat.com>
3575 * fold-const.c (fold_convert_const): Fold changing cv-quals on
3578 * hash-map.h (hash_map::empty): New.
3580 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3582 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
3583 (oacc_loop_fixed_partitions): Correct return type to bool.
3584 (oacc_loop_auto_partitions): New.
3585 (oacc_loop_partition): Take mask argument, call
3586 oacc_loop_auto_partitions.
3587 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
3589 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
3591 * config/rs6000/constraints.md (we constraint): New constraint for
3592 64-bit power9 vector support.
3593 (wL constraint): New constraint for the element in a vector that
3594 can be addressed by the MFVSRLD instruction.
3596 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
3598 (convert_int_to_float128): Likewise.
3599 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
3600 hardware support for IEEE 128-bit floating point.
3601 (rs6000_expand_float128_convert): Likewise.
3602 (convert_float128_to_int): Likewise.
3603 (convert_int_to_float128): Likewise.
3605 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
3606 ISA 3.0 hardware IEEE 128-bit floating point.
3607 (UNSPEC_IEEE128_MOVE): Likewise.
3608 (UNSPEC_IEEE128_CONVERT): Likewise.
3609 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
3610 (Ff): Add support for DImode.
3612 (any_fix code iterator): New and updated iterators for IEEE
3613 128-bit floating point hardware support.
3614 (any_float code iterator): Likewise.
3615 (s code attribute): Likewise.
3616 (su code attribute): Likewise.
3617 (az code attribute): Likewise.
3618 (uns code attribute): Likewise.
3619 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
3620 floating point hardware support.
3621 (abs<mode>2, FLOAT128 iterator): Likewise.
3622 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
3623 floating point hardware.
3624 (sub<mode>3, IEEE128 iterator): Likewise.
3625 (mul<mode>3, IEEE128 iterator): Likewise.
3626 (div<mode>3, IEEE128 iterator): Likewise.
3627 (copysign<mode>3, IEEE128 iterator): Likewise.
3628 (sqrt<mode>2, IEEE128 iterator): Likewise.
3629 (neg<mode>2, IEEE128 iterator): Likewise.
3630 (abs<mode>2, IEEE128 iterator): Likewise.
3631 (nabs<mode>2, IEEE128 iterator): Likewise.
3632 (fma<mode>4_hw, IEEE128 iterator): Likewise.
3633 (fms<mode>4_hw, IEEE128 iterator): Likewise.
3634 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
3635 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
3636 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
3637 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
3638 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
3639 (fix_fixuns code attribute): Likewise.
3640 (float_floatuns code attribute): Likewise.
3641 (fix<uns>_<mode>si2_hw): Likewise.
3642 (fix<uns>_<mode>di2_hw): Likewise.
3643 (float<uns>_<mode>si2_hw): Likewise.
3644 (float<uns>_<mode>di2_hw): Likewise.
3645 (xscvqp<su>wz_<mode>): Likewise.
3646 (xscvqp<su>dz_<mode>): Likewise.
3647 (xscv<su>dqp_<mode): Likewise.
3648 (ieee128_mfvsrd): Likewise.
3649 (ieee128_mfvsrwz): Likewise.
3650 (ieee128_mtvsrw): Likewise.
3651 (ieee128_mtvsrd): Likewise.
3652 (trunc<mode>df2_odd): Likewise.
3653 (cmp<mode>_h): Likewise.
3654 (128-bit GPR splitters): Don't split a 128-bit move that is a
3655 direct move between GPR and vector registers using ISA 3.0 direct
3657 (maddld4): Add support for the ISA 3.0 integer multiply-add
3660 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
3662 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
3663 constraint. Disable the VSX<->GPR direct move helpers if we have
3664 the MFVSRLD and MTVSRDD instructions.
3665 (rs6000_secondary_reload_simple_move): Add support for doing
3666 vector direct moves directly without additional scratch registers
3667 if we have ISA 3.0 instructions.
3668 (rs6000_secondary_reload_direct_move): Update comments.
3669 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
3672 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
3673 direct move instructions.
3674 (vsx_movti_64bit): Likewise.
3675 (vsx_extract_<mode>): Likewise.
3677 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
3678 macros for ISA 3.0 direct move instructions.
3679 (TARGET_DIRECT_MOVE_128): Likewise.
3680 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
3683 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
3684 constraints. Update wa documentation to say not to use %x<n> on
3685 instructions that only take Altivec registers.
3687 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3689 * Makefile.in (OBJS): Add gcc-rich-location.o.
3690 * diagnostic.c (diagnostic_append_note): Pass line_table to
3692 (emit_diagnostic): Likewise.
3694 (inform_n): Likewise.
3695 (warning): Likewise.
3696 (warning_at): Likewise.
3697 (warning_n): Likewise.
3698 (pedwarn): Likewise.
3699 (permerror): Likewise.
3701 (error_n): Likewise.
3702 (error_at): Likewise.
3704 (fatal_error): Likewise.
3705 (internal_error): Likewise.
3706 (internal_error_no_backtrace): Likewise.
3707 (source_range::debug): Likewise.
3708 * gcc-rich-location.c: New file.
3709 * gcc-rich-location.h: New file.
3710 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
3711 (warning_at): Likewise.
3712 * gimple.h (gimple_set_block): Use set_block function.
3713 * input.c (dump_line_table_statistics): Dump stats on how many
3714 ranges were optimized vs how many needed ad-hoc table.
3715 (write_digit_row): Add "map" param; use its range_bits
3716 to calculate the per-character offset.
3717 (dump_location_info): Print the range and column bits for each
3718 ordinary map. Use the range bits to calculate the per-character
3719 offset. Pass the map as a new param to the various calls to
3720 write_digit_row. Eliminate uses of
3721 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
3722 * print-tree.c (print_node): Print any source range information.
3723 * rtl-error.c (diagnostic_for_asm): Likewise.
3724 * toplev.c (general_init): Initialize line_table's
3726 * tree-cfg.c (move_block_to_fn): Likewise.
3727 (move_block_to_fn): Likewise.
3728 * tree-inline.c (copy_phis_for_bb): Likewise.
3729 * tree.c (tree_set_block): Likewise.
3730 (get_pure_location): New function.
3731 (set_source_range): New functions.
3732 (set_block): New function.
3733 (set_source_range): New functions.
3734 * tree.h (CAN_HAVE_RANGE_P): New.
3735 (EXPR_LOCATION_RANGE): New.
3736 (EXPR_HAS_RANGE): New.
3737 (get_expr_source_range): New inline function.
3738 (DECL_LOCATION_RANGE): New.
3739 (set_source_range): New decls.
3740 (get_decl_source_range): New inline function.
3742 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
3744 PR tree-optimization/67682
3745 * tree-vect-slp.c (vect_split_slp_store_group): New.
3746 (vect_analyze_slp_instance): During basic block SLP, recurse on
3747 subgroups if vect_build_slp_tree fails after 1st vector.
3749 2015-11-13 Christian Bruel <christian.bruel@st.com>
3752 * config/arm/arm.c (arm_option_override): Move NEON check...
3753 (arm_option_check_internal): here
3754 (arm_file_start): Move .fpu print...
3755 (arm_declare_function_name): here
3756 (arm_option_print): Dump current fpu name.
3757 * config/arm/arm.opt (arm_fpu_index): Mark Save.
3759 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
3760 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3762 * combine.c (subst): Don't substitute or simplify when
3763 handling register-wise widening multiply.
3764 (force_to_mode): Likewise.
3766 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
3768 PR tree-optimization/68264
3769 * tree-call-cdce.c (gen_one_condition): Update commentary.
3770 (gen_conditions_for_pow_int_base): Invert the sense of the tests
3771 passed to gen_one_condition.
3772 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
3773 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
3774 using EDGE_FALSE_VALUE for edges to the call block and
3775 EDGE_TRUE_VALUE for the others.
3777 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3779 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
3782 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
3784 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
3786 2015-11-13 Tom de Vries <tom@codesourcery.com>
3788 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
3791 2015-11-13 Tom de Vries <tom@codesourcery.com>
3793 * gen-pass-instances.awk (handle_line): Add args_str variable.
3795 2015-11-13 Martin Liska <mliska@suse.cz>
3797 * graphite-poly.c (free_scop): Release scop->drs vector.
3798 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
3800 (try_generate_gimple_bb): Use vNULL as a default initialization
3803 2015-11-13 Martin Liska <mliska@suse.cz>
3806 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
3807 Replace array initialization (using a variable post-increment)
3808 that possible triggers multiple unsequenced modifications
3809 with a pair of pushes to a vector.
3811 2015-11-13 Richard Biener <rguenther@suse.de>
3813 PR tree-optimization/68306
3814 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
3815 loop related checks ...
3816 (vect_verify_datarefs_alignment): ... here.
3817 (vect_slp_analyze_and_verify_node_alignment): Compute and
3818 verify alignment of the single DR that it matters.
3819 * tree-vect-stmts.c (vectorizable_store): Add an assert.
3820 (vectorizable_load): Add a comment.
3821 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
3822 for determining load cost.
3824 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3826 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
3827 mix of boolean and integer vectors in a single statement.
3828 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
3829 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
3830 determine constant type.
3831 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
3832 for loop invariants.
3834 2015-11-13 Alan Hayward <alan.hayward@arm.com>
3836 PR tree-optimization/66558
3837 * tree-vect-loop.c (is_integer_induction):Add.
3838 (vectorizable_reduction): Add integer induction checks.
3840 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
3842 Revert [ARM] Remove neon-testgen.ml and generated tests.
3844 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3846 [ARM] Remove neon-testgen.ml and generated tests.
3848 * config/arm/neon-testgen.ml: Remove.
3850 2015-11-13 Richard Biener <rguenther@suse.de>
3852 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
3853 Signal fatal failure if early checks fail.
3854 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
3855 do not bother testing further vector sizes.
3857 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
3859 * config/i386/predicates.md (misaligned_operand): Return true if
3860 operand is aligned to less than its natural alignmnet.
3862 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3864 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
3865 (vec_cmpu@var{m}@var{n}): New item.
3866 (vcond@var{m}@var{n}): Specify comparison is signed.
3867 (vcondu@var{m}@var{n}): New item.
3868 (vcond_mask_@var{m}@var{n}): New item.
3869 (maskload@var{m}@var{n}): New item.
3870 (maskstore@var{m}@var{n}): New item.
3872 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
3874 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
3875 types of stored value and storage are compatible.
3877 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
3879 * gcc.c (POST_LINK_SPEC): Define if not already defined.
3880 (LINK_COMMAND_SPEC): Use post_link.
3881 (post_link_spec): New, initialize to POST_LINK_SPEC.
3882 (post_link): Initialize new static spec.
3883 * doc/tm.texi.in (POST_LINK_SPEC): Document.
3884 * doc/tm.texi: Regenerated.
3886 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3889 * Makefile.in (GCC_OBJS): Add spellcheck.o.
3890 (OBJS): Add spellcheck-tree.o.
3891 * gcc.c: Include "spellcheck.h".
3892 (suggest_option): New function.
3893 (driver::handle_unrecognized_options): Call suggest_option to
3894 provide a hint about misspelled options.
3895 * spellcheck.c: Update file comment.
3896 (levenshtein_distance): Convert 4-param implementation from static
3897 to extern scope. Remove note about unit tests from leading
3898 comment for const char * implementation. Move tree
3899 implementation to...
3900 * spellcheck-tree.c: New file.
3901 * spellcheck.h (levenshtein_distance): Add 4-param decl.
3903 2015-11-13 David Malcolm <dmalcolm@redhat.com>
3905 * Makefile.in (OBJS): Add spellcheck.o.
3906 * spellcheck.c: New file.
3907 * spellcheck.h: New file.
3909 2015-11-13 James Bowman <james.bowman@ftdichip.com>
3911 * config/ft32/ft32.md (*sne): New insn pattern.
3913 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
3915 * cprop.c (is_too_expensive): Remove.
3917 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
3919 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
3920 * gcse.c (is_too_expensive): Rename to ...
3921 (gcse_or_cprop_is_too_expensive): ... this.
3922 Expand warning to add required size of max-gcse-memory.
3923 (one_pre_gcse_pass): Use it.
3924 (one_code_hoisting_pass): Use it.
3925 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
3927 2015-11-12 James Norris <jnorris@codesourcery.com>
3928 Joseph Myers <joseph@codesourcery.com>
3930 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
3931 GF_OMP_TARGET_KIND_OACC_DECLARE.
3932 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
3933 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3934 * gimplify.c (oacc_declare_returns): New.
3935 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
3936 (device_resident_p): New function.
3937 (oacc_default_clause): Handle device_resident clause.
3938 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
3939 (gimplify_expr): Handle OACC_DECLARE.
3940 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
3941 * omp-low.c (expand_omp_target): Handle
3942 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
3943 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
3944 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
3945 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
3946 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
3947 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
3948 GOMP_MAP_DEVICE_RESIDENT.
3950 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
3952 [ARM] Remove neon-testgen.ml and generated tests.
3954 * config/arm/neon-testgen.ml: Remove.
3956 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
3958 * config/aarch64/aarch64-cores.def (qdf24xx): New.
3959 * config/aarch64/aarch64-tune.md: Regenerated.
3960 * config/arm/arm-cores.def (qdf24xx): New.
3961 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
3962 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
3963 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
3964 (ARM Options/-mtune): Likewise.
3966 2015-11-12 Martin Liska <mliska@suse.cz>
3968 * config/i386/i386.c (ix86_valid_target_attribute_p):
3969 Finalize options at the of the function.
3970 * gcc.c (driver_get_configure_time_options): Call newly
3971 introduced init_opts_obstack.
3972 * lto-wrapper.c (main): Likewise.
3973 * opts.c (init_opts_obstack): New function.
3974 (init_options_struct): Call newly introduced init_opts_obstack.
3975 * opts.h (init_options_struct): Declare.
3977 2015-11-12 Martin Liska <mliska@suse.cz>
3980 * ipa-icf.c (void sem_item::set_hash): New function.
3981 (sem_function::get_hash): Use renamed m_hash member variable.
3982 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
3983 (sem_item::update_hash_by_local_refs): Likewise.
3984 (sem_variable::get_hash): Use renamed m_hash member variable.
3985 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
3986 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
3987 (sem_item_optimizer::build_graph): As the hash value of an item
3988 is lazy initialized, force the calculation.
3989 * ipa-icf.h (set_hash): Declare new function and rename hash member
3992 2015-11-12 Richard Biener <rguenther@suse.de>
3994 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
3995 Rename to vect_slp_analyze_instance_dependence.
3996 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
3997 Remove WAR special-case.
3998 (vect_slp_analyze_node_dependences): Instead add more specific
3999 code here, not relying on other instances being vectorized.
4000 (vect_slp_analyze_instance_dependence): Adjust accordingly.
4001 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
4002 vertical space in dump files.
4003 (vect_print_slp_tree): Likewise.
4004 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
4005 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
4006 not vectorized stmts until after dependence analysis removed
4007 instances. Merge alignment and dependence checks.
4008 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
4011 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
4013 * config/aarch64/aarch64-protos.h (tune_params): Add new members
4014 "max_case_values" and "cache_line_size".
4015 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
4017 (aarch64_override_options_internal): Tune heuristics based on new
4018 members in "tune_params".
4019 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
4021 2015-11-12 Richard Biener <rguenther@suse.de>
4023 PR tree-optimization/68306
4024 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
4025 relevant and vectorizable checks here.
4026 (vect_verify_datarefs_alignment): Add relevant check here.
4028 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
4030 * gimplify.c (oacc_default_clause): New.
4031 (omp_notice_variable): Call it.
4033 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4035 PR tree-optimization/68305
4036 * tree-vect-slp.c (vect_get_constant_vectors): Support
4037 COND_EXPR with SSA_NAME as a condition.
4039 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4041 * config/visium/visium-protos.h (notice_update_cc): Delete.
4042 (print_operand): Likewise.
4043 (print_operand_address): Likewise.
4045 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4047 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
4048 FUNCTION_VALUE_REGNO_P): Remove.
4049 * config/alpha/alpha-protos.h (function_value): Remove.
4050 * config/alpha/alpha.c (function_value): Rename to...
4051 (alpha_function_value_1): ... this. Make static.
4052 (alpha_function_value, alpha_libcall_value,
4053 alpha_function_value_regno_p): New functions.
4054 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
4055 TARGET_FUNCTION_VALUE_REGNO_P): Define.
4057 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4059 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
4060 * config/alpha/alpha.c (alpha_memory_latency): Make static.
4061 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
4062 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
4064 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
4067 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
4068 assertion on the CFA register.
4070 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
4072 * expr.c (do_store_flag): Expand vector comparison as
4073 VEC_COND_EXPR if vector comparison is not supported by target.
4075 2015-11-12 Renlin Li <renlin.li@arm.com>
4077 * config/arm/arm.md (addsi3_compare_op2): Make the order of
4078 assembly pattern consistent with constraint order.
4080 2015-11-12 Tom de Vries <tom@codesourcery.com>
4082 * gen-pass-instances.awk (handle_line): Simplify match regexp.
4084 2015-11-12 Tom de Vries <tom@codesourcery.com>
4086 * gen-pass-instances.awk (handle_line): Simplify init of
4089 2015-11-12 Tom de Vries <tom@codesourcery.com>
4091 * gen-pass-instances.awk (handle_line): Rename var where to
4094 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
4096 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
4097 do not expand to rtl.
4099 2015-11-12 Richard Biener <rguenther@suse.de>
4101 PR tree-optimization/58497
4102 * tree-vect-generic.c: Include gimplify.h.
4103 (tree_vec_extract): Lookup constant/constructor DEFs.
4104 (do_cond): Unshare cond.
4106 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
4108 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
4109 combined insn if the alignment of vector mode memory operand
4110 is less than ssememalign.
4112 2015-11-12 Tom de Vries <tom@codesourcery.com>
4114 * gen-pass-instances.awk (handle_line): Print parentheses and
4115 pass_name explicitly.
4117 2015-11-12 Tom de Vries <tom@codesourcery.com>
4119 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
4122 2015-11-12 Tom de Vries <tom@codesourcery.com>
4124 * gen-pass-instances.awk (handle_line): Add comments.
4126 2015-11-12 Tom de Vries <tom@codesourcery.com>
4128 * gen-pass-instances.awk (handle_line): Rename len_of_end to
4131 2015-11-12 Tom de Vries <tom@codesourcery.com>
4133 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
4135 2015-11-12 Tom de Vries <tom@codesourcery.com>
4137 * gen-pass-instances.awk (handle_line): Restructure using early-out.
4139 2015-11-12 Tom de Vries <tom@codesourcery.com>
4141 * gen-pass-instances.awk (handle_line): Unify semicolon use.
4143 2015-11-12 Tom de Vries <tom@codesourcery.com>
4145 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
4147 2015-11-12 Tom de Vries <tom@codesourcery.com>
4149 * gen-pass-instances.awk: Add emacs indent setting.
4151 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
4153 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
4155 Move Convert A/(B/C) to (A/B)*C to match.pd.
4156 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
4157 Move Optimize (X & (-A)) / A where A is a power of 2, to
4158 X >> log2(A) to match.pd.
4160 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
4161 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
4162 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
4164 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
4166 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
4168 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
4170 (neon_vst2_lane<mode>): Likewise.
4171 (neon_vld3_lane<mode>): Likewise.
4172 (neon_vst3_lane<mode>): Likewise.
4173 (neon_vld4_lane<mode>): Likewise.
4174 (neon_vst4_lane<mode>): Likewise.
4176 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
4177 Sebastian Pop <s.pop@samsung.com>
4179 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
4180 New member codegen_error
4181 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
4183 (translate_isl_ast_node_user): Early return in case of error.
4184 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4185 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
4186 (add_parameters_to_ivs_params): Remove macro.
4187 (graphite_regenerate_ast_isl): Add if_region pointer to region.
4188 * graphite-poly.c (new_poly_dr): Remove macro.
4190 (new_gimple_poly_bb): Same.
4191 (free_gimple_poly_bb): Same.
4192 (print_scop_params): Same.
4193 * graphite-poly.h (struct poly_dr): Same.
4194 (struct poly_bb): Add new_bb.
4195 (gbb_from_bb): Remove dead code.
4196 (pbb_from_bb): Same.
4197 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
4198 (parameter_index_in_region): Same.
4199 (find_scop_parameters): Same.
4200 (build_cross_bb_scalars_def): New.
4201 (build_cross_bb_scalars_use): New.
4202 (graphite_find_cross_bb_scalar_vars): New
4203 (try_generate_gimple_bb): Reads and Writes.
4204 (build_alias_set): Move.
4205 (gather_bbs::before_dom_children): Gather bbs visited.
4206 (build_scops): call build_alias_set.
4207 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
4208 (remove_simple_copy_phi): Delete.
4209 (remove_invariant_phi): Delete.
4210 (simple_copy_phi_p): Delete.
4211 (reduction_phi_p): Delete.
4212 (isl_id_for_dr): Remove unused param.
4213 (parameter_index_in_region_1): Remove macro usage.
4214 (set_scop_parameter_dim): Same.
4215 (add_param_constraints): Same.
4216 (add_conditions_to_constraints): Same
4217 (build_scop_iteration_domain): Same.
4218 (pdr_add_alias_set): Comment.
4219 (add_scalar_version_numbers): New.
4220 (build_poly_dr): ISL id.
4221 (build_scop_drs): Move.
4222 (build_poly_sr_1): Same.
4223 (insert_stmts): Remove.
4224 (build_poly_sr): New.
4225 (new_pbb_from_pbb): Delete.
4226 (insert_out_of_ssa_copy_on_edge): Delete.
4227 (create_zero_dim_array): Delete.
4228 (scalar_close_phi_node_p): Delete.
4229 (propagate_expr_outside_region): Delete.
4230 (rewrite_close_phi_out_of_ssa): Delete.
4231 (rewrite_phi_out_of_ssa): Delete.
4232 (rewrite_degenerate_phi): Delete.
4233 (rewrite_reductions_out_of_ssa): Delete.
4234 (rewrite_cross_bb_scalar_dependence): Delete.
4235 (handle_scalar_deps_crossing_scop_limits):
4236 (rewrite_cross_bb_scalar_deps): Delete.
4237 (build_poly_scop): Remove calls to out-of-ssa functions.
4238 * graphite.c (graphite_transform_loops): Early return in case of
4240 * sese.c (debug_rename_map_1): Delete.
4241 (debug_rename_map): Delete.
4242 (sese_record_loop): Remove macro.
4243 (build_sese_loop_nests): Same.
4244 (new_sese_info): Same.
4245 (free_sese_info): Same.
4246 (sese_insert_phis_for_liveouts):
4247 (is_loop_closed_ssa_use): New.
4248 (number_of_phi_nodes): New.
4249 (bb_contains_loop_close_phi_nodes): New.
4250 (bb_contains_loop_phi_nodes): New.
4251 (phi_uses_name): New.
4253 (get_rename): Add old_bb and loop_phi for more precise matching of
4255 (set_rename): Pass region.
4256 (later_of_the_two): New.
4257 (gsi_insert_earliest): New.
4258 (collect_all_ssa_names): New.
4259 (substitute_ssa_name): New.
4260 (rename_all_uses): New.
4261 (get_rename_from_scev): New.
4262 (rename_uses): Pass old_bb for more precise matching of exprs.
4263 (get_def_bb_for_const): New.
4264 (get_new_name): New.
4267 (copy_loop_phi_args): New.
4268 (copy_loop_phi_nodes): New.
4269 (get_loop_init_value): New.
4270 (find_init_value): New.
4271 (find_init_value_close_phi): New.
4272 (copy_loop_close_phi_args): New.
4273 (copy_loop_close_phi_nodes): New.
4274 (add_phi_arg_for_new_expr): New.
4275 (copy_cond_phi_args): New.
4276 (copy_cond_phi_nodes): New.
4277 (copy_phi_nodes): New.
4278 (should_copy_to_new_region): New.
4279 (set_rename_for_each_def): New.
4280 (graphite_copy_stmts_from_block): Early return in case of error.
4281 (copy_bb_and_scalar_dependences): Same.
4282 * sese.h (vec_find): New.
4283 (SESE_PARAMS): Delete.
4284 (SESE_LOOPS): Delete.
4285 (SESE_LOOP_NEST): Delete.
4286 (sese_contains_loop): Remove macro usage.
4287 (sese_nb_params): Same.
4288 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
4290 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
4292 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
4293 isl_union_map_add_map on every pbb->schedule.
4295 2015-11-11 Tom de Vries <tom@codesourcery.com>
4297 * tree-parloops.c (create_parallel_loop): Return void.
4299 2015-11-11 Tom de Vries <tom@codesourcery.com>
4301 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
4302 block only when needed.
4304 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
4306 * config/alpha/alpha-protos.h (print_operand): Remove.
4307 (print_operand_address): Remove.
4308 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
4309 (PRINT_OPERAND_ADDRESS): Remove.
4310 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
4311 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
4312 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
4313 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
4314 (print_operand_address): Rename to...
4315 (alpha_print_operand_address): ...this and make static.
4316 (print_operand): Rename to...
4317 (alpha_print_operand): ...this and make static.
4318 (alpha_print_operand_punct_valid_p): New static function.
4320 2015-11-11 Richard Biener <rguenther@suse.de>
4322 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
4324 (vect_analyze_data_refs_alignment): Make loop vect specific.
4325 (vect_verify_datarefs_alignment): Likewise.
4326 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
4327 Add missing continue.
4328 (vect_compute_data_ref_alignment): Export.
4329 (vect_compute_data_refs_alignment): Merge into...
4330 (vect_analyze_data_refs_alignment): ... this.
4331 (verify_data_ref_alignment): Split out from ...
4332 (vect_verify_datarefs_alignment): ... here.
4333 (vect_slp_analyze_and_verify_node_alignment): New function.
4334 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
4335 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
4336 misplaced checks on alignment.
4337 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
4338 alignment analysis after SLP discovery and do it per instance.
4339 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
4340 bother to re-try using different vector sizes.
4342 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
4343 Cesar Philippidis <cesar@codesourcery.com>
4345 * gimplify.c (enum omp_region_type): Add ORT_ACC,
4346 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
4347 (gimple_add_tmp_var): Add ORT_ACC checks.
4348 (gimplify_var_or_parm_decl): Likewise.
4349 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
4350 (omp_add_variable): Look in outer contexts for openacc and allow
4351 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
4352 (omp_notice_variable, omp_is_private, omp_check_private): Add
4354 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
4355 Permit private openacc reductions.
4356 (gimplify_oacc_cache): Specify ORT_ACC.
4357 (gimplify_omp_workshare): Adjust OpenACC region types.
4358 (gimplify_omp_target_update): Likewise.
4359 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
4360 (lower-rec_input_clauses): Don't handle openacc firstprivate
4362 (lower_omp_target): Emit initializers for openacc firstprivate vars.
4364 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
4367 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
4368 frame pointer for stack checking if non-call exceptions aren't used.
4369 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
4371 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
4373 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
4376 2015-11-11 Martin Liska <mliska@suse.cz>
4377 Richard Biener <rguenther@suse.de>
4379 PR rtl-optimization/68287
4380 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
4383 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
4385 * config/mips/mips.c (mips_breakable_sequence_p): New function.
4386 (mips_break_sequence): New function.
4387 (mips_reorg_process_insns): Use them. Use compact branches in selected
4390 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
4392 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
4394 2015-11-11 Jiong Wang <jiong.wang@arm.com>
4395 Jim Wilson <wilson@gcc.gnu.org>
4398 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
4399 be true and eliminable registers mentioned.
4401 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
4403 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
4405 * config/arc/arc-opts.h: Add ARCv2 CPUs.
4406 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
4407 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
4408 situation, and store instructions with large offsets.
4409 (arc_secondary_reload_conv): New function.
4410 (arc_init): Add ARCv2 options.
4411 (arc_conditional_register_usage): Select the proper register usage
4412 for ARCv2 processors.
4413 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
4415 (arc_compute_function_type): Likewise.
4416 (arc_print_operand): Handle new ARCv2 punctuation characters.
4417 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
4418 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
4420 (arc_reorg, arc_hazard): Use it.
4421 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
4422 (ASM_SPEC): Add ARCv2 options.
4423 (TARGET_NORM): ARC HS has norm instructions by default.
4424 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
4425 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
4426 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
4427 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
4429 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
4430 (TARGET_LP_WR_INTERLOCK): Likewise.
4432 (commutative_binary_mult_comparison_result_used, movsicc_insn)
4433 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
4434 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
4435 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
4437 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
4438 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
4439 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
4440 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
4441 (extzvsi): New pattern.
4442 * config/arc/arc.opt: New ARCv2 options.
4443 * config/arc/arcEM.md: New file.
4444 * config/arc/arcHS.md: Likewise.
4445 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
4447 (Cm2): A signed 9-bit integer constant constraint.
4448 (C62): An unsigned 6-bit integer constant constraint.
4449 (C16): A signed 16-bit integer constant constraint.
4450 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
4451 (short_const_int_operand): New predicate.
4452 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
4453 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
4454 -mcode-density and -mdiv-rem.
4456 2015-11-11 Julia Koval <julia.koval@intel.com>
4458 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
4460 2015-11-11 Julia Koval <julia.koval@intel.com>
4462 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
4464 2015-11-11 Martin Liska <mliska@suse.cz>
4466 * gimple-ssa-strength-reduction.c (create_phi_basis):
4468 * passes.c (release_dump_file_name): New function.
4469 (pass_init_dump_file): Used from this function.
4470 (pass_fini_dump_file): Likewise.
4471 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
4472 * var-tracking.c (vt_initialize): Use pool_allocator.
4474 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
4475 Jiong Wang <jiong.wang@arm.com>
4477 PR tree-optimization/68234
4478 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
4479 node which estimiated to be VR_VARYING initially.
4481 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
4483 * regname.c (scan_rtx_reg): Check the matching number of consecutive
4484 registers when tying chains.
4485 (build_def_use): Move terminated_this_insn earlier in the function.
4487 2015-11-10 Mike Frysinger <vapier@gentoo.org>
4489 * configure.ac: Use = with test and not ==.
4490 * configure: Regenerated.
4492 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
4494 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
4495 machine asserts. Update defines for 64 bit.
4497 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4500 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
4502 (neon_vst1_lane<mode>): Likewise.
4503 (neon_vld2_lane<mode>): Likewise.
4504 (neon_vst2_lane<mode>): Likewise.
4505 (neon_vld3_lane<mode>): Likewise.
4506 (neon_vst3_lane<mode>): Likewise.
4507 (neon_vld4_lane<mode>): Likewise.
4508 (neon_vst4_lane<mode>): Likewise.
4510 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4513 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
4514 qualifier_struct_load_store_lane_index.
4515 (arm_storestruct_lane_qualifiers) Likewise.
4516 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
4518 (neon_vst1_lane<mode>) Likewise.
4519 (neon_vld2_lane<mode>) Likewise.
4520 (neon_vst2_lane<mode>) Likewise.
4521 (neon_vld3_lane<mode>) Likewise.
4522 (neon_vst3_lane<mode>) Likewise.
4523 (neon_vld4_lane<mode>) Likewise.
4524 (neon_vst4_lane<mode>) Likewise.
4526 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
4529 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
4530 qualifier_struct_load_store_lane_index.
4531 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
4532 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
4533 argument qualifiers.
4534 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
4535 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
4537 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
4539 * config/nvptx/nvptx.opt (moptimize): New flag.
4540 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
4542 (nvptx_optimize_inner): New.
4543 (nvptx_process_pars): Call it when optimizing.
4544 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
4546 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
4548 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
4549 Remove redundant code.
4551 2015-11-10 Jeff Law <law@redhat.com>
4553 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
4554 call to output_address.
4555 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
4556 Add unnamed machine_mode argument.
4558 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
4560 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
4563 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4565 * config/i386/i386.md (*movabs<mode>_1): Add explicit
4566 size directives for -masm=intel.
4567 (*movabs<mode>_2): Ditto.
4569 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4571 * config/i386/i386.c (ix86_print_operand): Remove dead code that
4572 tried to avoid (%rip) for call operands.
4574 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
4576 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
4577 argument. Do not use RIP relative addressing when no_rip is set.
4578 (ix86_print_operand): Update call to ix86_print_operand_address_as.
4579 (ix86_print_operand_address): Ditto.
4580 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
4581 absolute movabs operand 0. Add square braces for -masm=intel.
4582 (*movabs<mode>_2): Ditto for operand 1.
4584 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4586 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
4587 combine_vcvtf2i pattern.
4589 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4591 * config/arm/arm.c (neon_valid_immediate): Remove integer
4592 CONST_DOUBLE handling. It should never occur.
4594 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
4596 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
4597 (ATOMIC_LDOP): Likewise.
4598 (atomic_ldop): Likewise.
4599 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
4600 (ATOMIC_LDOP): Likewise.
4601 (atomic_ldop): Likewise.
4603 2015-11-10 Martin Liska <mliska@suse.cz>
4605 * alloc-pool.h (allocate_raw): New function.
4606 (operator new (size_t, object_allocator<T> &a)): Use the
4607 function instead of object_allocator::allocate).
4609 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4611 * config/i386/sse.md (HALFMASKMODE): New attribute.
4612 (DOUBLEMASKMODE): New attribute.
4613 (vec_pack_trunc_qi): New.
4614 (vec_pack_trunc_<mode>): New.
4615 (vec_unpacks_lo_hi): New.
4616 (vec_unpacks_lo_si): New.
4617 (vec_unpacks_lo_di): New.
4618 (vec_unpacks_hi_hi): New.
4619 (vec_unpacks_hi_<mode>): New.
4621 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4623 * optabs.c (expand_binop_directly): Allow scalar mode for
4624 vec_pack_trunc_optab.
4625 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
4626 boolean vector producers from pattern sequence when computing VF.
4627 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
4628 vect_recog_mask_conversion_pattern.
4629 (search_type_for_mask): Choose the smallest
4630 type if different size types are mixed.
4631 (build_mask_conversion): New.
4632 (vect_recog_mask_conversion_pattern): New.
4633 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
4634 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
4636 (vectorizable_conversion): Support boolean vectors.
4637 (free_stmt_vec_info): Allow patterns for statements with no lhs.
4638 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
4640 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4642 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
4643 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
4644 Cast mask to FP mode if required.
4645 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
4646 (vcond_mask_<mode><avx512fmaskmodelower>): New.
4647 (vcond_mask_<mode><sseintvecmodelower>): New.
4648 (vcond_mask_<mode><sseintvecmodelower>): New.
4649 (vcond_mask_v2div2di): New.
4650 (vcond_mask_<mode><sseintvecmodelower>): New.
4651 (vcond_mask_<mode><sseintvecmodelower>): New.
4653 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4655 * optabs-query.h (get_vcond_mask_icode): New.
4656 * optabs-tree.c (expand_vec_cond_expr_p): Use
4657 get_vcond_mask_icode for VEC_COND_EXPR with mask.
4658 * optabs.c (expand_vec_cond_mask_expr): New.
4659 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
4660 * optabs.def (vcond_mask_optab): New.
4661 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
4662 generate redundant comparison for COND_EXPR.
4663 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
4665 (vectorizable_condition): Likewise.
4666 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
4667 cond_exp with no embedded comparison.
4668 (vect_build_slp_tree_1): Likewise.
4670 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4672 * config/i386/sse.md (maskload<mode>): Rename to ...
4673 (maskload<mode><sseintvecmodelower>): ... this.
4674 (maskstore<mode>): Rename to ...
4675 (maskstore<mode><sseintvecmodelower>): ... this.
4676 (maskload<mode><avx512fmaskmodelower>): New.
4677 (maskstore<mode><avx512fmaskmodelower>): New.
4679 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4681 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
4682 (expand_MASK_STORE): Adjust to maskstore optab changes.
4683 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
4684 Adjust to maskload, maskstore optab changes.
4685 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
4686 * optabs.def (maskload_optab): Transform into convert optab.
4687 (maskstore_optab): Likewise.
4688 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
4689 can_vec_mask_load_store_p signature change.
4690 (predicate_mem_writes): Use boolean mask.
4691 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
4692 can_vec_mask_load_store_p signature change. Allow invariant masks.
4693 (vectorizable_operation): Ignore type precision for boolean vectors.
4695 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4697 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
4698 (const_vector_mask_from_tree): New.
4699 (const_vector_from_tree): Use const_vector_mask_from_tree
4700 for boolean vectors.
4701 * optabs-query.h (get_vec_cmp_icode): New.
4702 * optabs-tree.c (expand_vec_cmp_expr_p): New.
4703 * optabs-tree.h (expand_vec_cmp_expr_p): New.
4704 * optabs.c (vector_compare_rtx): Add OPNO arg.
4705 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
4706 (expand_vec_cmp_expr): New.
4707 * optabs.def (vec_cmp_optab): New.
4708 (vec_cmpu_optab): New.
4709 * optabs.h (expand_vec_cmp_expr): New.
4710 * tree-vect-generic.c (expand_vector_comparison): Add vector
4711 comparison optabs check.
4712 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
4713 operations for VF. Add mask type computation.
4714 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
4715 (vectorizable_comparison): New.
4716 (vect_analyze_stmt): Add vectorizable_comparison.
4717 (vect_transform_stmt): Likewise.
4718 (vect_init_vector): Support boolean vector invariants.
4719 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4720 (vectorizable_condition): Directly provide vectype for invariants
4722 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
4723 (enum vect_var_kind): Add vect_mask_var.
4724 (enum stmt_vec_info_type): Add comparison_vec_info_type.
4725 (vectorizable_comparison): New.
4726 (vect_get_vec_def_for_operand): Add VECTYPE arg.
4727 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
4728 (vect_create_destination_var): Likewise.
4729 * tree-vect-patterns.c (check_bool_pattern): Check fails
4730 if we can vectorize comparison directly.
4731 (search_type_for_mask): New.
4732 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
4733 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
4734 comparison statements.
4735 (vect_get_constant_vectors): Support boolean vector constants.
4736 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
4737 (ix86_expand_int_vec_cmp): New.
4738 (ix86_expand_fp_vec_cmp): New.
4739 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
4740 op_true and op_false.
4741 (ix86_int_cmp_code_to_pcmp_immediate): New.
4742 (ix86_fp_cmp_code_to_pcmp_immediate): New.
4743 (ix86_cmp_code_to_pcmp_immediate): New.
4744 (ix86_expand_mask_vec_cmp): New.
4745 (ix86_expand_fp_vec_cmp): New.
4746 (ix86_expand_int_sse_cmp): New.
4747 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
4748 (ix86_expand_int_vec_cmp): New.
4749 (ix86_get_mask_mode): New.
4750 (TARGET_VECTORIZE_GET_MASK_MODE): New.
4751 * config/i386/sse.md (avx512fmaskmodelower): New.
4752 (vec_cmp<mode><avx512fmaskmodelower>): New.
4753 (vec_cmp<mode><sseintvecmodelower>): New.
4754 (vec_cmpv2div2di): New.
4755 (vec_cmpu<mode><avx512fmaskmodelower>): New.
4756 (vec_cmpu<mode><sseintvecmodelower>): New.
4757 (vec_cmpuv2div2di): New.
4759 2015-11-10 Richard Biener <rguenther@suse.de>
4761 PR tree-optimization/68240
4762 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
4764 (visit_phi): For PHIs with just a single executable edge
4765 take its value directly.
4766 (expressions_equal_p): Handle VN_TOP properly.
4768 2015-11-10 Richard Biener <rguenther@suse.de>
4770 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
4771 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
4774 2015-11-10 Richard Biener <rguenther@suse.de>
4776 PR tree-optimization/56118
4777 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
4778 cost favor vectorized version.
4780 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4782 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
4783 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
4784 (neg_not_op): New code attribute.
4786 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4788 * ifcvt.c (noce_try_inverse_constants): New function.
4789 (noce_process_if_block): Call it.
4790 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
4791 * optabs.def (negcc_optab, notcc_optab): Declare.
4792 * optabs.c (emit_conditional_neg_or_complement): New function.
4793 * doc/tm.texi (Standard Names): Document negcc, notcc names.
4795 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4797 PR rtl-optimization/68236
4798 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
4799 if insn_queue doesn't exist.
4800 (haifa_sched_finish): Reset insn_queue to NULL.
4802 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
4804 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
4805 (build_def_use): Initialize terminated_this_insn.
4806 (find_best_rename_reg): Pick and check register from the tied chain.
4807 (regrename_do_replace): Mark head as renamed.
4808 (struct du_head *terminated_this_insn). New static variable.
4809 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
4810 * regrename.h (struct du_head): Add tied_chain, renamed members.
4812 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
4815 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
4818 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4821 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
4822 not promote the mode for aggregate types.
4824 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4826 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
4827 * omp-low.c (build_oacc_routine_dims): New.
4829 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4831 * config/rs6000/constraints.md (wF constraint): New constraints
4832 for power9/toc fusion.
4833 (wG constraint): Likewise.
4835 * config/rs6000/predicates.md (u6bit_cint_operand): New
4836 predicate, recognize 0..63.
4837 (upper16_cint_operand): New predicate for power9 and toc fusion.
4838 (fpr_reg_operand): Likewise.
4839 (toc_fusion_or_p9_reg_operand): Likewise.
4840 (toc_fusion_mem_raw): Likewise.
4841 (toc_fusion_mem_wrapped): Likewise.
4842 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
4844 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
4846 (fusion_addis_mem_combo_load): Add support for power9 fusion of
4847 floating point loads, floating point stores, and gpr stores.
4848 (fusion_addis_mem_combo_store): Likewise.
4849 (fusion_offsettable_mem_operand): Likewise.
4851 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
4852 (emit_fusion_load_store): Likewise.
4853 (fusion_p9_p): Likewise.
4854 (expand_fusion_p9_load): Likewise.
4855 (expand_fusion_p9_store): Likewise.
4856 (emit_fusion_p9_load): Likewise.
4857 (emit_fusion_p9_store): Likewise.
4858 (fusion_wrap_memory_address): Likewise.
4860 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
4861 elements for power9 fusion.
4862 (rs6000_debug_print_mode): Rework debug information to print more
4863 information about fusion.
4864 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
4865 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
4866 offsettable memory address.
4867 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
4868 (emit_fusion_gpr_load): Move most of the code from
4869 emit_fusion_gpr_load into emit_fusion-addis that handles both
4870 power8 and power9 fusion.
4871 (emit_fusion_addis): Likewise.
4872 (emit_fusion_load_store): Likewise.
4873 (fusion_wrap_memory_address): Add support for TOC fusion.
4874 (fusion_split_address): Likewise.
4875 (fusion_p9_p): Add support for power9 fusion.
4876 (expand_fusion_p9_load): Likewise.
4877 (expand_fusion_p9_store): Likewise.
4878 (emit_fusion_p9_load): Likewise.
4879 (emit_fusion_p9_store): Likewise.
4881 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
4882 new instructions in ISA 3.0.
4883 (TARGET_CTZ): Likewise.
4884 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
4885 (TARGET_TOC_FUSION_FP): Likewise.
4887 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
4889 (UNSPEC_FUSION_ADDIS): Likewise.
4890 (QHSI mode iterator): New iterator for power9 fusion.
4891 (GPR_FUSION): Likewise.
4892 (FPR_FUSION): Likewise.
4893 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
4894 (umod<mode>3): Likewise.
4895 (divmod peephole): Likewise.
4896 (udivmod peephole): Likewise.
4897 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
4899 (ctz<mode>2_h): Likewise.
4900 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
4901 (ashdi3_extswsli_dot): Likewise.
4902 (ashdi3_extswsli_dot2): Likewise.
4903 (power9 fusion splitter): New power9/toc fusion support.
4904 (toc_fusionload_<mode>): Likewise.
4905 (toc_fusionload_di): Likewise.
4906 (fusion_gpr_load_<mode>): Update predicate function.
4907 (power9 fusion peephole2s): New power9/toc fusion support.
4908 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4909 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
4910 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
4911 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
4912 (fusion_p9_<mode>_constant): Likewise.
4914 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
4916 * optabs.c (prepare_libcall_arg): New function.
4917 (expand_fixed_convert): Add call to prepare_libcall_arg.
4919 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
4921 * sched-int.h (dump_rgn_dependencies_dot): Declare
4922 * sched-rgn.c (dump_rgn_dependencies_dot): New function
4923 * print-rtl.h (print_insn): Add prototype
4925 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
4926 * common.opt (-fsched-verbose): Set default value to 1.
4927 * invoke.texi (-fsched-verbose): Update the option's description.
4929 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4931 * config/visium/visium.h (PRINT_OPERAND): Delete.
4932 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
4933 (PRINT_OPERAND_ADDRESS): Likewise.
4934 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
4936 (visium_print_operand_punct_valid_p): ...this. New function.
4937 (TARGET_PRINT_OPERAND): Define to...
4938 (print_operand): Rename to...
4939 (visium_print_operand): ...this.
4940 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
4941 (visium_output_address): Rename to...
4942 (visium_print_operand_address): ...this.
4943 (print_operand_address): Delete.
4945 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
4948 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
4949 Check that the type of the first operand is an aggregate type.
4951 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
4953 * omp-low.c: Fix some OpenACC comment typos.
4954 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
4955 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
4956 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
4958 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
4960 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
4962 2015-11-09 Jeff Law <law@redhat.com>
4964 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
4965 being in gimple/ssa form. Remove redundant check for SSA_NAME.
4968 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4969 Peter Bergner <bergner@vnet.ibm.com>
4971 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
4973 (-mpower9-vector): Likewise.
4974 (-mpower9-dform): Likewise.
4975 (-mpower9-minmax): Likewise.
4976 (-mtoc-fusion): Likewise.
4977 (-mmodulo): Likewise.
4978 (-mfloat128-hardware): Likewise.
4980 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
4981 mask for ISA 3.0 (power9).
4982 (POWERPC_MASKS): Add new ISA 3.0 switches.
4983 (power9 cpu): Add power9 cpu.
4985 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
4986 (ASM_CPU_SPEC): Likewise.
4987 (EXTRA_SPECS): Likewise.
4989 * config/rs6000/rs6000-opts.h (enum processor_type): Add
4992 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
4993 (rs6000_debug_reg_global): Add support for power9 fusion.
4994 (rs6000_setup_reg_addr_masks): Cache mode size.
4995 (rs6000_option_override_internal): Until real power9 tuning is
4996 added, use -mtune=power8 for -mcpu=power9.
4997 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
4998 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
4999 of Altivec registers.
5000 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
5001 (rs6000_loop_align): Add support for power9 cpu.
5002 (rs6000_file_start): Likewise.
5003 (rs6000_adjust_cost): Likewise.
5004 (rs6000_issue_rate): Likewise.
5005 (insn_must_be_first_in_group): Likewise.
5006 (insn_must_be_last_in_group): Likewise.
5007 (force_new_group): Likewise.
5008 (rs6000_register_move_cost): Likewise.
5009 (rs6000_opt_masks): Likewise.
5011 * config/rs6000/rs6000.md (cpu attribute): Add power9.
5012 * config/rs6000/rs6000-tables.opt: Regenerate.
5014 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
5015 _ARCH_PWR9 if power9 support is available.
5017 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
5018 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
5020 * configure.ac: Determine if the assembler supports the ISA 3.0
5022 * config.in (HAVE_AS_POWER9): Likewise.
5023 * configure: Regenerate.
5025 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
5028 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5030 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
5031 Remove integer CONST_DOUBLE handling. It should never occur.
5033 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5036 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
5037 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
5038 Delete VOIDmode case. Assert that mode is not VOIDmode.
5039 * config/aarch64/predicates.md (const0_operand): Remove const_double
5042 2015-11-09 Martin Liska <mliska@suse.cz>
5044 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
5045 body_info release function.
5046 * ipa-prop.c (ipa_release_body_info): New function.
5047 (ipa_analyze_node): Call the function.
5048 (ipa_node_params::~ipa_node_params): Release known_csts.
5049 * ipa-prop.h (ipa_release_body_info): Declare.
5051 2015-11-09 Martin Liska <mliska@suse.cz>
5053 * gcc.c (record_temp_file): Release name string.
5054 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
5055 * lra-lives.c (free_live_range_list): Utilize
5056 lra_live_range_pool for allocation and deallocation.
5057 (create_live_range): Likewise.
5058 (copy_live_range): Likewise.
5059 (lra_merge_live_ranges): Likewise.
5060 (remove_some_program_points_and_update_live_ranges): Likewise.
5061 (lra_create_live_ranges_1): Release point_freq_vec that can
5062 be not freed from previous iteration of the function.
5063 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
5064 * tree-sra.c (sra_deinitialize): Release all vectors in
5066 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
5067 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
5068 Release edge_info for a removed edge.
5069 (thread_through_all_blocks): Free region vector.
5070 * tree-ssa.h (free_dom_edge_info): Declare function extern.
5072 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
5074 * optabs.c (expand_vec_cond_expr): Always get sign from type.
5075 * tree.c (wide_int_to_tree): Support negative values for boolean.
5076 (build_nonstandard_boolean_type): Use signed type for booleans.
5078 2015-11-09 Richard Biener <rguenther@suse.de>
5080 PR tree-optimization/68248
5081 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
5083 2015-11-09 Richard Biener <rguenther@suse.de>
5085 PR tree-optimization/56118
5086 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
5087 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
5088 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
5090 (vect_slp_analyze_data_ref_dependences): Instead of computing
5091 all dependences of the region DRs just analyze the code motions
5092 SLP vectorization will perform. Remove SLP instances that
5093 cannot have their store/load motions applied.
5094 (vect_analyze_data_refs): Allow DRs without a vectype
5095 in BB vectorization.
5097 2015-11-09 Julian Brown <julian@codesourcery.com>
5099 * final.c (output_asm_insn): Pass VOIDmode to output_address.
5100 (output_address): Add MODE argument. Pass to print_operand_address
5102 * targhooks.c (default_print_operand_address): Add MODE argument.
5103 * targhooks.h (default_print_operand_address): Update prototype.
5104 * output.h (output_address): Update prototype.
5105 * target.def (print_operand_address): Add MODE argument.
5106 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
5108 (print_operand): Pass access mode to output_address.
5109 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
5111 (mcore_print_operand): Update calls to mcore_print_operand_address.
5112 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
5114 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
5116 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
5118 (tilegx_print_operand): Don't set above global. Update calls to
5120 (tilegx_print_operand_address): Add MODE argument. Use instead of
5121 output_memory_reference_mode global.
5122 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
5123 (frv_print_operand): Pass mode to frv_print_operand_address calls.
5124 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
5126 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
5127 (cris_print_operand): Pass mode to output_address calls.
5128 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
5129 * config/aarch64/aarch64.h (aarch64_print_operand)
5130 (aarch64_print_operand_address): Remove prototypes.
5131 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
5133 (aarch64_print_operand): Make static. Update calls to output_address.
5134 (aarch64_print_operand_address): Add MODE argument. Use instead of
5135 aarch64_memory_reference_mode global.
5136 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
5138 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
5139 Delete macro definitions.
5140 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
5141 * config/xtensa/xtensa.c (print_operand): Pass mode in
5142 output_address calls.
5143 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
5145 (h83000_print_operand): Update calls to h8300_print_operand_address
5147 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
5148 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
5150 (tilepro_print_operand): Pass mode to output_address.
5151 (tilepro_print_operand_address): Add MODE argument. Use instead of
5152 output_memory_reference_mode.
5153 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
5154 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
5155 to output_address calls.
5156 (nvptx_print_operand_address): Add MODE argument.
5157 * config/alpha/alpha.c (print_operand): Pass mode argument in
5158 output_address calls.
5159 * config/m68k/m68k.c (print_operand): Pass mode argument in
5160 output_address call.
5161 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
5162 (avr_print_operand): Update calls to avr_print_operand_address.
5163 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
5164 argument. Update calls to output_address.
5165 (sparc_print_operand): Pass mode to output_address.
5166 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
5168 (iq2000_print_operand): Pass mode in output_address calls.
5169 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
5171 (xstormy16_print_operand): Pass mode to
5172 xstormy16_print_operand_address calls.
5173 * config/mips/mips.c (mips_print_operand): Update calls to
5175 (mips_print_operand_address): Add MODE argument.
5176 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
5178 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
5179 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
5181 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
5182 (rx_print_operand): Update calls to output_address,
5183 rx_print_operand_address.
5184 * config/nds32/nds32.c (nds32_print_operand): Update calls to
5186 (nds32_print_operand_address): Add MODE argument.
5187 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
5188 output_address calls.
5189 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
5190 output_address call.
5191 (c6x_print_address_operand): Update calls to output_address.
5192 (c6x_print_operand_address): Pass mode to above.
5193 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
5194 (v850_print_operand): Pass mode to v850_print_operand_address,
5196 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
5197 (mmix_print_operand): Pass mode in output_address calls.
5198 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
5199 (sh_print_operand): Pass mem mode to output_address,
5200 sh_print_operand_address.
5201 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
5202 (cr16_print_operand): Pass mode to output_address,
5203 cr16_print_operand_address.
5204 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
5206 * config/microblaze/microblaze.c (print_operand): Pass mode to
5208 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
5210 (nios2_print_operand_address): Add MODE argument. Update call to
5211 nios2_print_operand_address.
5212 * config/s390/s390.c (print_operand): Pass mode to output_address.
5213 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
5214 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
5216 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
5217 Use instead of output_memory_reference_mode.
5218 (output_memory_reference_mode): Delete global.
5219 (arm_print_operand): Pass mem mode to output_address.
5220 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
5221 (m32r_print_operand): Pass mode to output_address.
5222 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
5224 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
5225 * config/i386/i386.c (ix86_print_operand): Pass mode to
5226 output_address calls.
5227 (ix86_print_operand_address): Add MODE argument.
5229 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5232 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
5233 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
5234 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
5235 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5237 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5239 PR rtl-optimization/67749
5240 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
5241 case before emitting the two blocks. Instead modify the register
5242 in the corresponding final insn of the basic block.
5244 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5246 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
5249 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
5251 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
5252 HAVE_INITFINI_ARRAY_SUPPORT.
5253 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
5255 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
5256 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
5257 Don't check HAVE_AS_SPARC_NOBITS.
5258 Heed SECTION_NOTYPE.
5260 * configure: Regenerate.
5261 * config.in: Regenerate.
5263 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
5266 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
5268 2015-11-09 Richard Henderson <rth@redhat.com>
5270 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
5271 __SEG_GS, __SEG_TLS.
5272 (ix86_register_pragmas): Register address spaces __seg_fs,
5273 __seg_gs, __seg_tls.
5274 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
5275 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
5276 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
5277 * config/i386/i386.c (ix86_decompose_address): Likewise.
5278 (ix86_legitimate_address_p): Likewise.
5279 (memory_address_length): Likewise. Check mem address space too.
5280 (ix86_print_operand): Use ix86_print_operand_address_as.
5281 (ix86_print_operand_address_as): Rename from
5282 ix86_print_operand_address, add new addr_space_t parameter.
5283 Validate that either the parameter or the ix86_address segment
5284 is default address space. Handle ADDR_SPACE_SEG_TLS.
5285 (ix86_print_operand_address): New.
5286 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
5287 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
5288 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
5289 (ix86_addr_space_zero_address_valid): New.
5290 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5291 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
5292 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
5293 * config/i386/predicates.md (address_no_seg_operand): Likewise.
5294 (vsib_address_operand): Likewise.
5295 (address_mpx_no_base_operand): Likewise.
5296 (address_mpx_no_index_operand): Likewise.
5297 * doc/extend.texi (x86 Named Address Spaces): New section.
5299 * config/i386/i386.c (ix86_check_no_addr_space): New.
5300 (decide_alg): Add have_as parameter.
5301 (alg_usable_p): Likewise; disable rep algorithms if set.
5302 (ix86_expand_set_or_movmem): Notice if either MEM has a
5303 non-default address space.
5304 (ix86_expand_strlen): Likewise.
5305 * config/i386/i386.md (strmov, strset): Likewise.
5306 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
5307 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
5308 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
5309 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
5310 *cmpstrnqi_1, *strlenqi_1): Likewise.
5312 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
5313 (*movabs<mode>_2): Likewise.
5315 * dwarf2out.c (modified_type_die): Pass the address space number
5316 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
5317 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
5318 * targhooks.c (default_addr_space_debug): New.
5319 * targhooks.h (default_addr_space_debug): Declare.
5320 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
5321 * doc/tm.texi: Rebuild.
5323 * gimple.c (check_loadstore): Return false when 0 is a valid address.
5324 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
5325 null when 0 is valid in the source address space.
5326 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
5327 * targhooks.c (default_addr_space_zero_address_valid): New.
5328 * targhooks.h (default_addr_space_zero_address_valid): Declare.
5329 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
5330 * doc/tm.texi: Rebuild.
5332 * cselib.c (add_mem_for_addr): Compare address spaces when
5334 (cselib_lookup_mem): Likewise.
5335 * fold-const.c (operand_equal_p): Check address spaces of
5336 pointer types before checking integer constants.
5339 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
5340 the correct type for the base.
5342 2015-11-09 Jeff Law <law@redhat.com>
5344 * tree-into-ssa.c (names_to_release): No longer static.
5345 * tree-into-ssa.h (names_to_release): Declare.
5346 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
5347 (release_free_names_and_compact_live_names): New function extracted
5348 from pass_release_ssa_names::execute.
5349 (pass_release_ssa_names::execute): Use it.
5351 2015-11-09 Alan Modra <amodra@gmail.com>
5353 * gensupport.c (add_mnemonic_string): Make len param a size_t.
5354 (gen_mnemonic_setattr): Make "size" var a size_t. Use
5355 obstack_blank_fast to shrink obstack. Cast obstack_next_free
5358 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
5360 PR rtl-optimization/68182
5361 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
5362 branch with only one successor just like unconditional branches.
5364 2015-11-08 Jeff Law <law@redhat.com>
5366 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
5367 non-FSM path has no edges marked with EDGE_DFS_BACK.
5368 (ssa_redirect_edges): No longer call mark_loop_for_removal.
5369 (thread_single_edge, def_split_header_continue_p): Remove.
5370 (bb_ends_with_multiway_branch): Likewise.
5371 (thread_through_loop_header): Remove cases of threading from
5372 latch through the header. Simplify knowing we won't thread
5374 (thread_through_all_blocks): Simplify knowing that only the FSM
5375 threader needs to handle backedges.
5377 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
5379 * doc/extend.texi (type attributes): Document scalar_storage_order.
5380 (Structure-Packing Pragmas): Rename into...
5381 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
5382 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
5383 (Warnings): Document -Wno-scalar-storage-order.
5384 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
5385 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
5386 extract_bit_field and store_bit_field.
5387 (initialize_argument_information): Adjust call to store_expr.
5388 (load_register_parameters): Adjust call to extract_bit_field.
5389 * expmed.c (check_reverse_storage_order_support): New function.
5390 (check_reverse_float_storage_order_support): Likewise.
5391 (flip_storage_order): Likewise.
5392 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
5393 of the value if it is true. Pass REVERSE to recursive call after
5394 adjusting the target offset.
5395 Do not use extraction or movstrict instruction if REVERSE is true.
5396 Pass REVERSE to store_fixed_bit_field.
5397 (store_bit_field): Add REVERSE parameter and pass to it to above.
5398 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
5399 store_split_bit_field and store_fixed_bit_field_1.
5400 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5401 order of the value if it is true and adjust the target offset.
5402 (store_split_bit_field): Add REVERSE parameter and pass it to
5403 store_fixed_bit_field. Adjust the target offset if it is true.
5404 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
5405 of the value if it is true. Pass REVERSE to recursive call after
5406 adjusting the target offset.
5407 Do not use extraction or subreg instruction if REVERSE is true.
5408 Pass REVERSE to extract_fixed_bit_field.
5409 (extract_bit_field): Add REVERSE parameter and pass to it to above.
5410 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
5411 extract_split_bit_field and extract_fixed_bit_field_1.
5412 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
5413 order of the value if it is true and adjust the target offset.
5414 (extract_split_bit_field): Add REVERSE parameter and pass it to
5415 extract_fixed_bit_field. Adjust the target offset if it is true.
5416 * expmed.h (flip_storage_order): Declare.
5417 (store_bit_field): Adjust prototype.
5418 (extract_bit_field): Likewise.
5419 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
5420 (emit_group_store): Adjust call to store_bit_field.
5421 (copy_blkmode_from_reg): Likewise.
5422 (copy_blkmode_to_reg): Likewise.
5423 (write_complex_part): Likewise.
5424 (read_complex_part): Likewise.
5425 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
5426 that it isn't true if the target is a register.
5427 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
5428 and flip the storage order of the value.
5429 <BIT_IOR_EXPR>: Flip the storage order of the value.
5430 (get_bit_range): Adjust call to get_inner_reference.
5431 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
5432 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
5433 with reverse storage order.
5434 (store_expr_with_bounds): Add REVERSE parameter and pass it to
5435 recursive calls and call to store_bit_field. Force the value into a
5436 register if it is true and then flip the storage order of the value.
5437 (store_expr): Add REVERSE parameter and pass it to above.
5438 (categorize_ctor_elements_1): Adjust call to
5439 initializer_constant_valid_p.
5440 (store_constructor_field): Add REVERSE parameter and pass it to
5441 recursive calls and call to store_field.
5442 (store_constructor): Add REVERSE parameter and pass it to calls to
5443 store_constructor_field and store_expr. Set it to true for an
5444 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
5445 (store_field): Add REVERSE parameter and pass it to recursive calls
5446 and calls to store_expr and store_bit_field. Temporarily flip the
5447 storage order of the value with record type and integral mode and
5448 adjust the shift if it is true.
5449 (get_inner_reference): Add PREVERSEP parameter and set it to true
5450 upon encoutering a reference with reverse storage order.
5451 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
5452 (expand_constructor): Adjust call to store_constructor.
5453 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
5454 of the union type to store_expr in the MEM case and assert that it
5455 isn't set in the REG case. Adjust call to store_field.
5456 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
5457 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
5458 get_inner_reference and extract_bit_field. Temporarily flip the
5459 storage order of the value with record type and integral mode and
5460 adjust the shift if it is true. Flip the storage order of the value
5461 at the end if it is true.
5462 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
5463 get_inner_reference. Do not fetch an inner reference if it is true.
5464 * expr.h (store_expr_with_bounds): Ajust prototype.
5465 (store_expr): Likewise.
5466 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
5467 REF_REVERSE_STORAGE_ORDER on the reference according to it.
5468 (optimize_bit_field_compare): Deal with reverse storage order.
5469 Adjust calls to get_inner_reference and make_bit_field_ref.
5470 (decode_field_reference): Add PREVERSEP parameter and adjust call to
5471 get_inner_reference.
5472 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
5473 to decode_field_reference and make_bit_field_ref.
5474 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
5475 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
5476 (fold_comparison): Adjust call to get_inner_reference.
5477 (split_address_to_core_and_offset): Adjust call to
5478 get_inner_reference.
5479 * gimple-expr.c (useless_type_conversion_p): Return false for array
5480 types with different TYPE_REVERSE_STORAGE_ORDER flag.
5481 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
5482 REF_REVERSE_STORAGE_ORDER flag.
5483 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
5484 * output.h (assemble_real): Adjust prototype.
5485 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
5486 * stor-layout.c (finish_record_layout): Propagate the
5487 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
5488 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
5489 (TYPE_SATURATING): Adjust.
5490 (REF_REVERSE_STORAGE_ORDER): Document.
5491 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
5492 set it to true upon encoutering a reference with reverse storage order.
5493 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
5494 * tree-inline.c (remap_gimple_op_r): Propagate the
5495 REF_REVERSE_STORAGE_ORDER flag.
5496 (copy_tree_body_r): Likewise.
5497 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
5499 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
5500 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
5501 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
5502 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
5503 REF_REVERSE_STORAGE_ORDER flag.
5504 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
5505 (gimple_canonical_types_compatible_p): Likewise.
5506 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
5507 (TYPE_SATURATING): Adjust.
5508 (REF_REVERSE_STORAGE_ORDER): New flag.
5509 (reverse_storage_order_for_component_p): New inline predicate.
5510 (storage_order_barrier_p): Likewise.
5511 (get_inner_reference): Adjust prototype.
5512 * varasm.c: Include expmed.h.
5513 (assemble_variable_contents): Adjust call to output_constant.
5514 (assemble_real): Add REVERSE parameter. Flip the storage
5515 order of the value if REVERSE is true.
5516 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
5517 (assemble_constant_contents): Adjust call to output_constant.
5518 (output_constant_pool_2): Adjust call to assemble_real.
5519 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
5520 TYPE_REVERSE_STORAGE_ORDER.
5521 (initializer_constant_valid_p): Add REVERSE parameter.
5522 (output_constant): Add REVERSE parameter.
5523 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
5524 <REAL_TYPE>: Adjust call to assemble_real.
5525 <COMPLEX_TYPE>: Pass it to recursive calls.
5526 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
5527 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
5528 (struct oc_local_state): Add REVERSE field.
5529 (output_constructor_array_range): Adjust calls to output_constant.
5530 (output_constructor_regular_field): Likewise.
5531 (output_constructor_bitfield): Adjust call to output_constructor.
5532 Flip the storage order of the value if REVERSE is true.
5533 (output_constructor): Add REVERSE parameter. Set it to true for an
5534 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
5535 output_constructor_bitfield.
5536 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
5537 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
5538 * builtins.c (get_object_alignment_2): Likewise.
5539 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
5540 and get_ref_base_and_extent.
5541 * dbxout.c (dbxout_expand_expr): Likewise.
5542 * dwarf2out.c (add_var_loc_to_decl): Likewise.
5543 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
5544 (loc_list_from_tree): Likewise.
5545 (fortran_common): Likewise.
5546 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
5547 get_ref_base_and_extent.
5548 (get_base_constructor): Likewise.
5549 (fold_const_aggregate_ref_1): Likewise.
5550 * gimple-laddress.c (pass_laddress::execute): Adjust call to
5551 get_inner_reference.
5552 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
5553 get_inner_reference and bail out on reverse storage order.
5554 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
5555 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
5556 build_ref_for_offset.
5557 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
5558 get_ref_base_and_extent.
5559 (ipa_polymorphic_call_context): Likewise.
5560 (extr_type_from_vtbl_ptr_store): Likewise.
5561 (check_stmt_for_type_change): Likewise.
5562 (get_dynamic_type): Likewise.
5563 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
5564 get_ref_base_and_extent.
5565 (compute_complex_assign_jump_func): Likewise.
5566 (get_ancestor_addr_info): Likewise.
5567 (compute_known_type_jump_func): Likewise.
5568 (determine_known_aggregate_parts): Likewise.
5569 (ipa_get_adjustment_candidate): Likewise.
5570 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
5571 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
5572 (build_ref_for_offset): Adjust prototype.
5573 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
5574 get_inner_reference.
5575 * tree-affine.c (tree_to_aff_combination): Adjust call to
5576 get_inner_reference.
5577 (get_inner_reference_aff): Likewise.
5578 * tree-data-ref.c (split_constant_offset_1): Likewise.
5579 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
5580 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
5581 get_inner_reference.
5582 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
5583 (dump_access): Print new fields.
5584 (create_access): Adjust call to get_ref_base_and_extent and set the
5585 REVERSE flag according to the result.
5586 (completely_scalarize_record): Set the REVERSE flag.
5587 (scalarize_elem): Add REVERSE parameter.
5588 (build_access_from_expr_1): Preserve storage order barriers.
5589 (build_accesses_from_assign): Likewise.
5590 (build_ref_for_offset): Add REVERSE parameter and set the
5591 REF_REVERSE_STORAGE_ORDER flag accordingly.
5592 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
5593 the REF_REVERSE_STORAGE_ORDER flag if there are components.
5594 (analyze_access_subtree): Likewise.
5595 (create_artificial_child_access): Set the REVERSE flag.
5596 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
5597 (turn_representatives_into_adjustments): Propagate REVERSE flag.
5598 (ipa_sra_check_caller): Adjust call to get_inner_reference.
5599 * tree-ssa-alias.c (ao_ref_base): Adjust call to
5600 get_ref_base_and_extent.
5601 (aliasing_component_refs_p): Likewise.
5602 (stmt_kills_ref_p_1): Likewise.
5603 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
5604 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
5605 Return true if reverse storage order.
5606 <BIT_FIELD_REF>: Likewise.
5607 <COMPONENT_REF>: Likewise.
5608 <ARRAY_REF>: Likewise.
5609 <ARRAY_RANGE_REF>: Likewise.
5610 (split_address_cost): Likewise. Bail out if reverse storage order.
5611 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
5612 get_inner_reference. Bail out if reverse storage order.
5613 (bswap_replace): Adjust call to get_inner_reference.
5614 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
5615 the REF_REVERSE_STORAGE_ORDER flag.
5616 <BIT_FIELD_REF>: Likewise.
5617 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
5619 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
5620 to the REF_REVERSE_STORAGE_ORDER flag.
5621 <BIT_FIELD_REF>: Likewise.
5622 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
5623 (contains_storage_order_barrier_p): New predicate.
5624 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
5625 Punt on storage order barriers if necessary.
5626 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
5627 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
5628 call to get_ref_base_and_extent.
5629 (do_structure_copy): Likewise.
5630 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
5631 get_inner_reference.
5632 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
5633 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
5634 * ubsan.c (instrument_bool_enum_load): Likewise.
5635 (instrument_object_size): Likewise.
5636 * var-tracking.c (track_expr_p): Adjust call to
5637 get_ref_base_and_extent.
5638 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
5639 get_inner_reference.
5640 * config/s390/s390.c (s390_expand_atomic): Adjust call to
5642 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
5644 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
5646 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
5648 * config/sparc/sparc.opt (mfix-at697f): Add final period.
5650 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
5652 PR rtl-optimization/67864
5653 * common/config/i386/i386-common.c (ix86_option_optimization_table)
5654 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
5657 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5659 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
5662 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5664 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
5665 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
5667 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5669 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
5670 * internal-fn.c: Don't undef it here.
5671 * tree-core.h: Likewise.
5673 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5675 * builtins.c (fold_builtin_nan): Delete.
5676 (fold_builtin_memcmp): Remove case where both arguments are constant.
5677 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
5678 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
5679 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
5680 * fold-const-call.c: Include fold-const.h.
5681 (host_size_t_cst_p): New function.
5682 (build_cmp_result, fold_const_builtin_nan): Likewise.
5683 (fold_const_call_1): New function, split out from...
5684 (fold_const_call): ...here (for all three interfaces). Handle
5685 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
5687 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5689 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
5690 (fold_builtin_1): Don't call them.
5691 * fold-const-call.c: Include tm.h.
5692 (fold_const_call_ss): New variant for integer-to-integer folds.
5693 (fold_const_call): Call it.
5695 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5697 * builtins.c (fold_builtin_classify): Move constant cases to...
5698 * fold-const-call.c (fold_const_call_ss): ...here.
5700 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5702 * builtins.h (c_getstr): Move to...
5703 * fold-const.h (c_getstr): ...here.
5704 * builtins.c (c_getstr): Move to...
5705 * fold-const.c (c_getstr): ...here.
5707 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5709 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
5710 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
5712 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
5714 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
5715 the dominance info; free it if we can't.
5716 (pass_call_cdce::execute): Don't free the dominance info here.
5718 2015-11-06 Jeff Law <law@redhat.com>
5720 * tree-ssa-threadedge.c (dummy_simplify): Remove.
5721 (thread_around_empty_blocks): Remove backedge_seen_p argument.
5722 If we thread to a backedge, then return false. Update recursive
5723 call to eliminate backedge_seen_p argument.
5724 (thread_through_normal_block): Remove backedge_seen_p argument.
5725 Remove backedge_seen_p argument from calls to
5726 thread_around_empty_blocks. Remove checks on backedge_seen_p.
5727 If we thread to a backedge, then return 0.
5728 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
5729 pass it to thread_through_normal_block or thread_through_empty_blocks.
5730 For joiner handling, if we see a backedge, do not try normal
5733 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5735 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
5736 * graphite-poly.c (new_scop): Initialize original_schedule.
5737 (free_scop): Free original_schedule.
5738 * graphite-poly.h (struct scop): Add field original_schedule.
5739 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
5740 (build_poly_scop): Call build_scop_original_schedule.
5742 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
5744 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
5745 (build_pbb_minimal_scattering_polyhedrons): New.
5746 (build_scop_scattering): Remove.
5747 (build_scop_minimal_scattering): New.
5748 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
5749 (build_poly_scop): Call build_scop_minimal_scattering.
5751 2015-11-06 Jeff Law <law@redhat.com>
5753 * cfg-flags.def (IGNORE): New edge flag.
5754 * tree-vrp.c (identify_jump_threads): Mark and clear edges
5755 scheduled for removal with EDGE_IGNORE around call into
5756 jump threader. Do no thread across edges with EDGE_IGNORE,
5757 but do allow threading across those with EDGE_DFS_BACK.
5759 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
5761 * doc/md.texi (multi-alternative constraints): Don't document
5762 alternatives inherently tied to reload for the user documentation.
5764 2015-11-06 Michael Collison <michael.collison@linaro.org>
5765 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5768 2015-08-01 Michael Collison <michael.collison@linaro.org
5769 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
5771 * config/arm/arm.md (*arm_smin_cmp): New pattern.
5772 (*arm_umin_cmp): Likewise.
5774 2015-11-06 Jakub Jelinek <jakub@redhat.com>
5776 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
5777 * omp-low.c (check_omp_nesting_restrictions): Update for the
5778 various new OpenMP 4.5 nesting restrictions, clarified
5779 nesting glossary, closely nested region relationship clarified
5780 to mean explicit or implicit parallel regions (target/teams),
5781 use %</%> or %qs where appropriate.
5783 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5784 Sebastian Pop <s.pop@samsung.com>
5786 * graphite-scop-detection.c (loop_is_valid_scop): Call
5787 optimize_loop_nest_for_speed_p.
5789 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5790 Sebastian Pop <s.pop@samsung.com>
5792 * graphite-optimize-isl.c (optimize_isl): Call
5793 isl_options_set_schedule_maximize_band_depth.
5795 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
5796 Sebastian Pop <s.pop@samsung.com>
5798 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
5799 and exit edges should not be a part of irreducible loop.
5800 (scop_detection::can_represent_loop_1): Loops should not be
5802 (scop_detection::harmful_stmt_in_region): All the basic block
5803 should belong to reducible loops.
5805 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
5807 * config/aarch64/aarch64-simd-builtins.def: Update builtins
5808 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
5809 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
5810 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
5811 (aarch64_tbx4v8qi): Rename to...
5812 aarch64_tbx4<mode>): ... this.
5813 (aarch64_qtbl3<mode>): New pattern.
5814 (aarch64_qtbx3<mode>): New pattern.
5815 (aarch64_qtbl4<mode>): New pattern.
5816 (aarch64_qtbx4<mode>): New pattern.
5817 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
5818 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
5819 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
5820 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
5821 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
5822 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
5823 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
5824 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
5827 2015-11-06 Mike Stump <mikestump@comcast.net>
5830 * dwarf2out.c (get_full_len): Return a value based upon the actual
5831 precision needed for the value.
5832 (add_const_value_attribute): Use a maximal wide-int for
5833 CONST_WIDE_INTs, not VOIDmode.
5834 (output_die): Don't ever output NULL with printf.
5836 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
5837 BLKmode nor VOIDmode values.
5839 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5841 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
5843 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
5844 * diagnostic-core.h (warning_at_rich_loc): New declaration.
5845 (error_at_rich_loc): New declaration.
5846 (permerror_at_rich_loc): New declaration.
5847 (inform_at_rich_loc): New declaration.
5848 * diagnostic-show-locus.c (adjust_line): Delete.
5849 (struct point_state): New struct.
5850 (class colorizer): New class.
5851 (class layout_point): New class.
5852 (class layout_range): New class.
5853 (struct line_bounds): New.
5854 (class layout): New class.
5855 (colorizer::colorizer): New ctor.
5856 (colorizer::~colorizer): New dtor.
5857 (layout::layout): New ctor.
5858 (layout::print_source_line): New method.
5859 (layout::print_annotation_line): New method.
5860 (layout::get_state_at_point): New method.
5861 (layout::get_x_bound_for_row): New method.
5862 (diagnostic_show_locus): Reimplement in terms of class layout.
5863 (diagnostic_print_caret_line): Delete.
5864 * diagnostic.c (diagnostic_initialize): Replace
5865 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
5866 (diagnostic_set_info_translated): Convert param from location_t
5867 to rich_location *. Eliminate calls to set_location on the
5868 message in favor of storing the rich_location ptr there.
5869 (diagnostic_set_info): Convert param from location_t to
5871 (diagnostic_build_prefix): Break out array into...
5872 (diagnostic_kind_color): New variable.
5873 (diagnostic_get_color_for_kind): New function.
5874 (diagnostic_report_diagnostic): Colorize the option_text
5875 using the color for the severity.
5876 (diagnostic_append_note): Update for change in signature of
5877 diagnostic_set_info.
5878 (diagnostic_append_note_at_rich_loc): New function.
5879 (emit_diagnostic): Update for change in signature of
5880 diagnostic_set_info.
5882 (inform_at_rich_loc): New function.
5883 (inform_n): Update for change in signature of diagnostic_set_info.
5884 (warning): Likewise.
5885 (warning_at): Likewise.
5886 (warning_at_rich_loc): New function.
5887 (warning_n): Update for change in signature of diagnostic_set_info.
5888 (pedwarn): Likewise.
5889 (permerror): Likewise.
5890 (permerror_at_rich_loc): New function.
5891 (error): Update for change in signature of diagnostic_set_info.
5892 (error_n): Likewise.
5893 (error_at): Likewise.
5894 (error_at_rich_loc): New function.
5895 (sorry): Update for change in signature of diagnostic_set_info.
5896 (fatal_error): Likewise.
5897 (internal_error): Likewise.
5898 (internal_error_no_backtrace): Likewise.
5899 (source_range::debug): New function.
5900 * diagnostic.h (struct diagnostic_info): Eliminate field
5901 "override_column". Add field "richloc".
5902 (struct diagnostic_context): Add field "colorize_source_p".
5903 (diagnostic_override_column): Delete.
5904 (diagnostic_set_info): Convert param from location_t to
5906 (diagnostic_set_info_translated): Likewise.
5907 (diagnostic_append_note_at_rich_loc): New function.
5908 (diagnostic_num_locations): New function.
5909 (diagnostic_expand_location): Get the location from the
5911 (diagnostic_print_caret_line): Delete.
5912 (diagnostic_get_color_for_kind): New declaration.
5913 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
5914 (error_cb): Update for change in signature of "error" callback.
5915 (fatal_at): Likewise.
5916 (warning_at): Likewise.
5917 * input.c (linemap_client_expand_location_to_spelling_point): New.
5918 * pretty-print.c (text_info::set_range): New method.
5919 (text_info::get_location): New method.
5920 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
5921 (struct text_info): Eliminate "locations" array in favor of
5922 "m_richloc", a rich_location *.
5923 (textinfo::set_location): Add a "caret_p" param, and reimplement
5924 in terms of a call to set_range.
5925 (textinfo::get_location): Eliminate inline implementation in favor of
5926 an out-of-line reimplementation.
5927 (textinfo::set_range): New method.
5928 * rtl-error.c (diagnostic_for_asm): Update for change in signature
5929 of diagnostic_set_info.
5930 * tree-diagnostic.c (default_tree_printer): Update for new
5931 "caret_p" param for textinfo::set_location.
5932 * tree-pretty-print.c (percent_K_format): Likewise.
5934 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5937 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5938 * config/aarch64/aarch64.c
5939 (aarch64_can_use_per_function_literal_pools_p): New.
5940 (aarch64_use_blocks_for_constant_p): Adjust declaration
5941 and use aarch64_can_use_function_literal_pools_p.
5942 (aarch64_select_rtx_section): Update.
5944 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5946 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
5947 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
5948 (arm_output_multireg_pop): Likewise.
5949 (output_move_double): Likewise.
5950 (output_move_quad): Likewise.
5951 (output_return_instruction): Likewise.
5952 (arm_print_operand): Remove support for %( and %. print modifiers.
5953 (arm_output_shift): Make unified asm.
5954 (arm_declare_function_name): Likewise.
5955 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
5956 (ASM_APP_OFF): Adjust.
5957 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
5958 (ASM_OUTPUT_REG_POP): Likewise.
5959 * config/arm/arm.md: Adjust uses of %., %(, %)
5960 * config/arm/sync.md: Likewise.
5961 * config/arm/thumb2.md: Likewise.
5962 * config/arm/ldmstm.md: Regenerate.
5963 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
5964 * doc/invoke.texi (masm-unified-syntax): Update documentation.
5966 2015-11-06 David Malcolm <dmalcolm@redhat.com>
5968 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
5970 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5972 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
5973 add OEP_MATCH_SIDE_EFFECTS.
5974 * fold-const.c (operand_equal_p): Update documentation; handle
5975 OEP_MATCH_SIDE_EFFECTS.
5976 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
5977 OEP_MATCH_SIDE_EFFECTS.
5979 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
5980 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
5982 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
5983 * config/aarch64/aarch64-protos.h: Declare.
5984 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
5986 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
5987 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
5988 code when applicable.
5989 * config/aarch64/aarch64.md: Added enum entries.
5990 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
5992 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
5996 * ipa-polymorphic-call.c
5997 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
5998 issue when offset is out of range.
5999 (contains_type_p): Fix out of range check, clear dynamic flag.
6001 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
6003 * config.gcc (e6500): Fix cpu_is_64bit typo.
6005 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
6007 * tree-sra.c (completely_scalarize): Properly handle negative array
6008 indices using offset_int.
6010 2015-11-06 Richard Biener <rguenther@suse.de>
6012 * alloc-pool.h (object_allocator::allocate): Default-initialize
6015 2015-11-06 Richard Biener <rguenther@suse.de>
6017 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
6018 * lra.c (init_reg_info): Truncate copy_vec instead of
6019 re-allocating a new one and leaking the old.
6020 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
6022 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
6023 * postreload-gcse.c (free_mem): Free modify_mem_list and
6024 canon_modify_mem_list.
6026 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
6028 PR tree-optimization/68145
6029 * tree-vect-stmts.c (vectorizable_operation): Fix
6030 determination for booleans.
6032 2015-11-06 Tom de Vries <tom@codesourcery.com>
6034 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
6035 cond_jump, instead of split after last nondebug insn before cond_jump.
6036 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
6039 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6042 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
6043 subregs from accumulator and make sure it's a register.
6045 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
6047 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
6049 (reduc_uplus_<mode>): Remove.
6050 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
6051 loongson_extract_lo_<mode>.
6052 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
6053 reduc_smax_<mode>, reduc_smax_<mode>, use vec
6054 loongson_extract_lo_<mode>.
6055 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
6057 2015-11-06 Richard Biener <rguenther@suse.de>
6059 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
6061 (vect_stmt_in_region_p): Declare.
6062 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
6063 (destroy_bb_vec_info): Likewise.
6064 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
6065 (vect_get_and_check_slp_defs): Likewise.
6066 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
6067 (vect_slp_bb): Likewise.
6068 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
6069 in terms of vect_stmt_in_region_p.
6070 (vect_pattern_recog): Iterate over the BB region.
6071 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
6072 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
6073 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
6074 * config/i386/i386.c: Include gimple-iterator.h.
6075 * config/aarch64/aarch64.c: Likewise.
6077 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
6079 PR rtl-optimization/67753
6080 PR rtl-optimization/64164
6081 * function.c (assign_parm_setup_block): Avoid allocating a
6082 stack slot if we don't have an ABI-reserved one. Emit the
6083 copy to target_reg in the conversion seq if the copy from
6084 entry_parm is in it too. Don't use the conversion seq to copy
6085 a PARALLEL to a REG or a CONCAT.
6087 2015-11-06 Richard Biener <rguenther@suse.de>
6089 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
6092 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
6093 Thomas Schwinge <thomas@codesourcery.com>
6094 James Norris <jnorris@codesourcery.com>
6097 * gimplify.c (gimplify_scan_omp_clauses): Add support for
6098 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
6099 (gimplify_adjust_omp_clauses): Likewise.
6100 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
6101 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
6102 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
6103 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
6104 (omp_clause_code_name): Likewise.
6105 (walk_tree_1): Handle OMP_CLAUSE_TILE.
6106 * tree.h (OMP_TILE_LIST): New macro.
6108 2015-11-05 Martin Sebor <msebor@redhat.com>
6111 * doc/invoke.texi (-Wplacement-new): Document new option.
6113 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
6115 PR tree-optimization/65963
6116 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
6117 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
6119 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
6121 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
6122 (noce_convert_multiple_sets): Likewise.
6123 (noce_process_if_block): Call them.
6125 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6127 * gimple-fold.c: Include omp-low.h.
6128 (fold_internal_goacc_dim): New.
6129 (gimple_fold_call): Call it.
6131 2015-11-05 Jakub Jelinek <jakub@redhat.com>
6132 Ilya Verbin <ilya.verbin@intel.com>
6135 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
6136 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
6137 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
6138 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
6139 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
6140 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
6141 (struct cgraph_simd_clone_arg): Adjust comment.
6142 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
6143 to GOMP_target_ext. Add num_teams and thread_limit arguments.
6144 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
6145 to GOMP_target_data_ext.
6146 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
6147 to GOMP_target_update_ext.
6148 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
6149 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
6150 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
6151 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
6152 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
6153 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
6154 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
6155 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
6156 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
6157 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
6158 * tree-core.h (enum omp_clause_schedule_kind): Add
6159 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
6160 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
6161 OMP_CLAUSE_SCHEDULE_LAST value.
6162 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
6163 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
6164 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
6165 OMP_FOR_CHECK. Remove comment.
6166 * tree-pretty-print.c (dump_omp_clause): Handle
6167 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
6168 Simplify. Print schedule clause modifiers.
6169 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
6170 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
6172 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
6173 (omp_default_clause): Tweak for
6174 private/firstprivate/is_device_ptr variables on target
6175 construct and use_device_ptr on target data.
6176 (omp_check_private): Likewise.
6177 (omp_notice_variable): For references check whether what it refers
6178 to has mappable type, rather than the reference itself.
6179 (omp_is_private): Diagnose linear iteration variables on non-simd
6181 (omp_no_lastprivate): Return true only for Fortran.
6182 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
6183 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
6184 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
6185 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
6186 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
6187 lastprivate and linear when combined with distribute. Gimplify
6188 variable low-bound for array reduction. Look through
6189 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
6191 (gimplify_adjust_omp_clauses_1): For implicit references to
6192 variables with reference type and when not ref to scalar or
6193 ref to pointer, map what they refer to using tofrom and
6194 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
6195 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
6196 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
6197 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
6198 Diagnose the same var on both firstprivate and lastprivate on
6199 distribute construct.
6200 (gimplify_omp_for): Fix up handling of predetermined
6201 lastprivate or linear iter vars when combined with distribute.
6202 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
6204 (gimplify_omp_workshare): Call optimize_target_teams.
6205 * omp-low.c (struct omp_region): Add sched_modifiers field.
6206 (struct omp_for_data): Likewise.
6207 (omp_any_child_fn_dumped): New variable.
6208 (extract_omp_for_data): Fill in sched_modifiers, and mask out
6209 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
6211 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
6212 bits of OMP_CLAUSE_SCHED_KIND.
6213 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
6214 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
6215 for array section reductions.
6216 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
6217 for distribute parallel for, if there are lastprivate clauses on the
6219 (lower_rec_input_clauses): Handle non-zero low-bound on array
6221 (lower_reduction_clauses): Likewise.
6222 (lower_send_clauses): Look through POINTER_PLUS_EXPR
6223 for array section reductions.
6224 (expand_parallel_call): Use nonmonotonic entrypoints for
6225 nonmonotonic: dynamic/guided.
6226 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
6227 child_fn if current_function_decl has assembler name set, but child_fn
6228 does not. Dump the header and IL of the child function when not in SSA
6230 (expand_omp_target): Likewise. Pass num_teams and thread_limit
6231 arguments to BUILT_IN_GOMP_TARGET.
6232 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
6233 Initialize the extra _looptemp_ clause to fd->loop.n2.
6234 (expand_omp_for): Use nonmonotonic entrypoints for
6235 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
6236 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
6237 again if we have dumped any child functions.
6238 (lower_omp_for_lastprivate): Determine the right count variable
6239 for distribute simd, or distribute parallel for{, simd}.
6240 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
6241 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
6243 (simd_clone_clauses_extract): Handle variable step
6244 for references and arguments passed by reference.
6245 (simd_clone_mangle): Mangle ref/uval/val variable steps.
6246 (simd_clone_adjust_argument_types): Handle
6247 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
6248 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
6249 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
6250 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
6251 (simd_clone_linear_addend): New function.
6252 (simd_clone_adjust): Handle variable step like similarly
6253 to constant step, use simd_clone_linear_addend to determine
6254 the actual step at runtime.
6256 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
6258 * target.def (goacc.dim_limit): New hook.
6259 * targhooks.h (default_goacc_dim_limit): Declare.
6260 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
6261 * doc/tm.texi: Rebuilt.
6262 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
6263 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
6264 (default_goacc_dim_limit): New.
6265 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6266 (nvptx_goacc_dim_limit) New.
6267 (TARGET_GOACC_DIM_LIMIT): Override.
6268 * tree-vrp.c: Include omp-low.h, target.h.
6269 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
6272 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6274 * tree-vect-generic.c (do_compare): Use -1 for true
6275 result instead of 1.
6277 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6279 * config/aarch64/aarch64.c
6280 (aarch64_can_use_per_function_literal_pools_p): New.
6281 (aarch64_use_blocks_for_constant_p): Adjust declaration
6282 and use aarch64_can_use_function_literal_pools_p.
6283 (aarch64_select_rtx_section): Update.
6285 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6287 * targhooks.c (default_get_mask_mode): Use BLKmode in
6288 case target doesn't support required vector mode.
6289 * stor-layout.c (layout_type); Check for BLKmode.
6291 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6292 Sebastian Pop <s.pop@samsung.com>
6294 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
6295 Remove use of parameter_rename_map.
6297 (copy_internal_parameters): Remove.
6298 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
6299 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
6300 (free_sese_info): Do not free parameter_rename_map.
6301 (set_rename): Do not use parameter_rename_map.
6302 (rename_uses): Update call to set_rename.
6303 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
6304 * sese.h (parameter_rename_map_t): Remove.
6305 (struct sese_info_t): Remove field parameter_rename_map.
6307 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
6308 Sebastian Pop <s.pop@samsung.com>
6310 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
6311 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
6312 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
6313 anonymous namespace.
6314 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
6315 (isl_id_for_pbb): Use a buffer of size 10.
6316 (isl_id_for_ssa_name): Same.
6317 * sese.c (set_rename): Add more dumps.
6319 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6321 * omp-low.c (struct omp_context): Remove reduction_map field.
6322 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
6323 (new_omp_context, delete_omp_context, scan_omp_target): Remove
6324 reduction_map handling.
6325 (lower_omp_target): Remove obsolete openacc reduction handling.
6327 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6329 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
6331 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6332 Cesar Philippidis <cesar@codesourcery.com>
6334 * config/nvptx/nvptx.c: Include gimple headers.
6335 (worker_red_size, worker_red_align, worker_red_name,
6336 worker_red_sym): New.
6337 (nvptx_option_override): Initialize worker reduction buffer.
6338 (nvptx_file_end): Write out worker reduction buffer var.
6339 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
6340 nvptx_expand_cmp_swap): New builtin expanders.
6341 (enum nvptx_builtins): New.
6342 (nvptx_builtin_decls): New.
6343 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
6344 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
6345 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
6346 nvptx_lockless_update): New helpers.
6347 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
6348 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
6349 (nvptx_goacc_reduction): New.
6350 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
6351 TARGET_BUILTIN_DECL): Override.
6352 (TARGET_GOACC_REDUCTION): Override.
6354 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
6355 Cesar Philippidis <cesar@codesourcery.com>
6357 * internal-fn.def (GOACC_REDUCTION): New.
6358 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
6359 * internal-fn.c (expand_GOACC_REDUCTION): New.
6360 * target.def (goacc.reduction): New OpenACC hook.
6361 * targhooks.h (default_goacc_reduction): Declare.
6362 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
6363 * doc/tm.texi: Rebuilt.
6364 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
6365 scan_sharing_clauses): Remove oacc reduction handling here.
6366 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
6367 (oacc_lower_reduction_var_helper): Delete.
6368 (lower_oacc_reductions): New.
6369 (lower_reduction_clauses): Don't handle OpenACC reductions here.
6370 (lower_oacc_head_tail): Call lower_oacc_reductions.
6371 (oacc_gimple_assign, oacc_init_reduction_array,
6372 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
6373 oacc_process_reduction_data): Delete.
6374 (lower_omp_target): Remove old OpenACC reduction handling. Insert
6375 dummy OpenACC gang reduction for reductions at outer level.
6376 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
6377 (default_goacc_reduction): New.
6378 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
6380 2015-11-04 Martin Liska <mliska@suse.cz>
6382 * cgraphunit.c (cgraph_node::expand_thunk): Call
6383 allocate_struct_function before init_function_start.
6384 (cgraph_node::expand): Use push_cfun and pop_cfun.
6385 * config/i386/i386.c (ix86_code_end): Call
6386 allocate_struct_function before init_function_start.
6387 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
6388 * function.c (init_function_start): Move preamble to all
6390 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
6391 (execute_one_pass): Handle newly added TODO_discard_function.
6392 (execute_pass_list_1): Terminate if cfun equals to NULL.
6393 (execute_pass_list): Do not push and pop cfun, expect that
6395 * tree-pass.h (TODO_discard_function): Define.
6397 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
6399 * cfganal.c (inverted_post_order_compute): Remove conditional
6400 compilation, use flag_checking.
6401 * config.in: Regenerate.
6402 * configure: Regenerate.
6403 * configure.ac: Remove ENABLE_CHECKING.
6404 * genconditions.c: Do not #undef ENABLE_CHECKING.
6405 * sese.h (bb_in_region): Comment out broken check.
6406 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
6407 conditional compilation, use flag_checking.
6409 2015-11-04 Tom de Vries <tom@codesourcery.com>
6411 PR tree-optimization/67742
6412 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
6414 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
6415 (create_variable_info_for_1): Add and handle handle_param parameter.
6416 Add restrict handling.
6417 (create_variable_info_for): Call create_variable_info_for_1 with extra
6419 (make_param_constraints): Drop restrict_name parameter. Ignore
6420 vi->only_restrict_pointers.
6421 (intra_create_variable_infos): Call create_variable_info_for_1 with
6422 extra arg. Remove restrict handling. Call make_param_constraints with
6425 2015-11-04 Tom de Vries <tom@codesourcery.com>
6427 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
6430 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6432 * config/arm/coff.h: Remove.
6434 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
6436 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
6437 check for aggregate types and beef up comment for mode check.
6439 2015-11-03 Richard Biener <rguenther@suse.de>
6441 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
6442 data references here.
6443 * tree-vect-loop.c: Include cgraph.h.
6444 (vect_analyze_loop_2): Collect data references here.
6445 * tree-vect-slp.c (find_bb_location): Inline ...
6446 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
6447 Factor in vect_slp_transform_bb.
6448 (vect_slp_transform_bb): Removed.
6449 (vect_slp_analyze_bb_1): Collect data references here.
6450 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
6452 * tree-vectorizer.h (vect_slp_bb): Declare.
6453 (vect_slp_analyze_bb): Remove.
6454 (vect_slp_transform_bb): Remove.
6455 (find_bb_location): Remove.
6456 (vect_analyze_data_refs): Remove stmt count reference parameter.
6458 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
6460 * multiple_target.c (create_dispatcher_calls): Add target check
6462 (create_target_clone): Change assembler name for versioned declarations.
6464 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
6465 Chung-Lin Tang <cltang@codesourcery.com>
6467 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
6468 * omp-low.c (check_omp_nesting_restrictions): Allow
6469 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
6472 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
6474 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
6475 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
6476 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
6478 (vmulxq_f32): Likewise.
6480 (vmulxq_f64): Rewrite to call fmulx builtin.
6481 (vmulxs_f32): Likewise.
6482 (vmulxd_f64): Likewise.
6483 (vmulx_lane_f32): Remove.
6484 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
6486 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
6488 * config/aarch64/aarch64.md (*movhf_aarch64): Use
6489 aarch64_reg_or_fp_zero for second operand.
6491 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
6493 * gimple-expr.c: Include hash-set.h and rtl.h.
6494 (mark_addressable_queue): New var.
6495 (mark_addressable): Factor actual marking into...
6496 (mark_addressable_1): ... this. Queue it up during expand.
6497 (mark_addressable_2): New.
6498 (flush_mark_addressable_queue): New.
6499 * gimple-expr.h (flush_mark_addressable_queue): Declare.
6500 * cfgexpand.c: Include gimple-expr.h.
6501 (pass_expand::execute): Flush mark_addressable queue.
6503 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
6505 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
6506 bb_no_side_effects_p tests...
6507 (tree_ssa_ifcombine_bb): ... here.
6509 PR tree-optimization/68083
6510 * tree-ssa-ifcombine.c: Include tree-ssa.h.
6511 (bb_no_side_effects_p): Test for undefined uses too.
6512 * tree-ssa.c (gimple_uses_undefined_value_p): New.
6513 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
6515 2015-11-02 Jeff Law <law@redhat.com>
6517 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
6518 cases where the loop latch edge is in the middle of an FSM path.
6520 2015-11-03 Tom de Vries <tom@codesourcery.com>
6522 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
6523 (make_param_constraints): ... this. Add and handle restrict_name
6524 parameter. Handle is_full_var case.
6525 (intra_create_variable_infos): Use make_param_constraints.
6527 2015-11-03 Tom de Vries <tom@codesourcery.com>
6529 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
6530 make_copy_constraint call with make_constraint_from call.
6532 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
6534 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
6537 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
6539 * builtins.h (fold_fma): Move to fold-const-call.h.
6540 * builtins.c: Include fold-const-call.h.
6541 (mathfn_built_in_2): New function, split out from...
6542 (mathfn_built_in_1): ...here.
6543 (do_real_to_int_conversion, fold_const_builtin_pow)
6544 (fold_const_builtin_logb, fold_const_builtin_significand)
6545 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
6546 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
6547 (fold_builtin_sincos): Use fold_const_call to handle constants.
6548 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
6549 checks for ERROR_MARK. Use fold_const_call to handle constant
6550 folds for math functions.
6551 (fold_fma): Move to fold-const-call.c.
6552 * fold-const.c: Include fold-const-call.h.
6553 * Makefile.in (OBJS): Add fold-const-call.o.
6554 (PLUGIN_HEADERS): Add fold-const-call.h.
6555 * realmpfr.h (real_from_mpfr): Allow the format to be specified
6557 * realmpfr.c (real_from_mpfr): Likewise.
6558 * fold-const-call.h, fold-const-call.c: New files.
6560 2015-11-02 Julian Brown <julian@codesourcery.com>
6562 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
6563 brackets and semicolon.
6565 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
6568 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
6570 PR tree-optimization/65963
6571 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
6572 LSHIFT_EXPRs as equivalent MULT_EXPRs.
6574 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
6577 * fold-const.c: Include "md5.h".
6579 2015-11-01 Jeff Law <law@redhat.com>
6581 * vmsdbgout.c: Revert unused header file reduction patch.
6583 * config/mcore/mcore.c: Include regs.h.
6585 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6587 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
6589 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
6591 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
6592 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
6593 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
6595 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
6597 * ggc-common.c: Restore needed header for checking=release.
6599 2015-10-31 Tom de Vries <tom@codesourcery.com>
6601 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
6603 2015-10-31 Tom de Vries <tom@codesourcery.com>
6605 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
6606 existing varinfo for arguments.
6608 2015-10-31 Tom de Vries <tom@codesourcery.com>
6610 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
6611 create_function_info_for. Dump constraints generated during
6612 create_function_info_for. Move intra_create_variable_infos call and
6613 function-return-values-escape bit to ...
6614 (create_function_info_for): ... here, and merge
6615 intra_create_variable_infos call with argument loop. Add and handle
6616 nonlocal_p parameter.
6618 2015-10-31 Tom de Vries <tom@codesourcery.com>
6620 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
6621 updating is alap, and seperated from preceding code. Make sure
6622 insert_vi_for_tree is seperated from surrounding code.
6624 2015-10-31 Tom de Vries <tom@codesourcery.com>
6626 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
6628 2015-10-30 Jeff Law <law@redhat.com>
6629 Nathan Sidwell <nathan@acm.org>
6631 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
6633 (MOVE_MAX): Set to 8.
6635 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
6637 * cgraph.c: Include context.h for offloading.
6638 * varpool.c: Include context.h and omp-low.h.
6640 2015-10-30 Anatoly Sokolov <aesok@post.ru>
6642 * rtl.h (contains_symbol_ref_p): Declare.
6643 (SYMBOL_REF_P): Define.
6644 * rtlanal.c (contains_symbol_ref_p: New function.
6645 * lra-constraints.c (contains_symbol_ref_p): Remove.
6646 * var-tracking.c (contains_symbol_ref): Remove.
6647 (track_expr_p): Use contains_symbol_ref_p instead of
6648 contains_symbol_ref.
6650 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
6652 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
6653 * fold-const.c (get_array_ctor_element_at_index): New.
6654 (fold): Remove binary-search through CONSTRUCTOR, call previous.
6656 * fold-const.h (get_array_ctor_element_at_index): New.
6658 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
6660 * Makefile.in (OBJS): Add multiple_target.o.
6661 * attrib.c (make_attribute): Moved from config/i386/i386.c
6662 * config/i386/i386.c (make_attribute): Deleted.
6663 * multiple_target.c (create_dispatcher_calls): New.
6664 (get_attr_len): Ditto.
6665 (get_attr_str): Ditto.
6666 (separate_attrs): Ditto.
6667 (is_valid_asm_symbol): Ditto.
6668 (create_new_asm_name): Ditto.
6669 (create_target_clone): Ditto.
6670 (expand_target_clones): Ditto.
6671 (ipa_target_clone): Ditto.
6672 (ipa_dispatcher_calls): Ditto.
6673 * passes.def (pass_target_clone): Two new ipa passes.
6674 * tree-pass.h (make_pass_target_clone): Ditto.
6675 * doc/extend.texi (target_clones): New attribute description.
6677 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
6679 PR rtl-optimization/68106
6680 * lra-remat.c (input_regno_present_p): Process hard regs
6681 explicitly present in machine description insns.
6682 (call_used_input_regno_present_p): Ditto.
6683 (calculate_gen_cands): Ditto.
6686 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
6688 * config/arm/neon-testgen.ml: Fix comment typo.
6690 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6692 * rtlanal.c (reg_set_p): Expand function comment.
6694 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
6696 * alias.c: Remove unused headers.
6698 * attribs.c: Likewise.
6699 * auto-inc-dec.c: Likewise.
6700 * auto-profile.c: Likewise.
6701 * bb-reorder.c: Likewise.
6702 * bitmap.c: Likewise.
6703 * bt-load.c: Likewise.
6704 * builtins.c: Likewise.
6705 * caller-save.c: Likewise.
6706 * calls.c: Likewise.
6709 * cfganal.c: Likewise.
6710 * cfgbuild.c: Likewise.
6711 * cfgcleanup.c: Likewise.
6712 * cfgexpand.c: Likewise.
6713 * cfghooks.c: Likewise.
6714 * cfgloop.c: Likewise.
6715 * cfgloopanal.c: Likewise.
6716 * cfgloopmanip.c: Likewise.
6717 * cfgrtl.c: Likewise.
6718 * cgraph.c: Likewise.
6719 * cgraphbuild.c: Likewise.
6720 * cgraphclones.c: Likewise.
6721 * cgraphunit.c: Likewise.
6722 * cilk-common.c: Likewise.
6723 * combine-stack-adj.c: Likewise.
6724 * combine.c: Likewise.
6725 * compare-elim.c: Likewise.
6726 * convert.c: Likewise.
6727 * coverage.c: Likewise.
6728 * cppbuiltin.c: Likewise.
6729 * cprop.c: Likewise.
6731 * cselib.c: Likewise.
6732 * data-streamer-in.c: Likewise.
6733 * data-streamer-out.c: Likewise.
6734 * data-streamer.c: Likewise.
6735 * dbxout.c: Likewise.
6738 * debug.c: Likewise.
6739 * df-core.c: Likewise.
6740 * df-problems.c: Likewise.
6741 * df-scan.c: Likewise.
6743 * dojump.c: Likewise.
6744 * dominance.c: Likewise.
6745 * domwalk.c: Likewise.
6746 * double-int.c: Likewise.
6748 * dumpfile.c: Likewise.
6749 * dwarf2asm.c: Likewise.
6750 * dwarf2cfi.c: Likewise.
6751 * dwarf2out.c: Likewise.
6752 * emit-rtl.c: Likewise.
6753 * except.c: Likewise.
6754 * explow.c: Likewise.
6755 * expmed.c: Likewise.
6757 * final.c: Likewise.
6758 * fixed-value.c: Likewise.
6759 * fold-const.c: Likewise.
6760 * function.c: Likewise.
6761 * fwprop.c: Likewise.
6763 * generic-match-head.c: Likewise.
6764 * ggc-common.c: Likewise.
6765 * gimple-builder.c: Likewise.
6766 * gimple-expr.c: Likewise.
6767 * gimple-fold.c: Likewise.
6768 * gimple-iterator.c: Likewise.
6769 * gimple-low.c: Likewise.
6770 * gimple-match-head.c: Likewise.
6771 * gimple-pretty-print.c: Likewise.
6772 * gimple-ssa-isolate-paths.c: Likewise.
6773 * gimple-ssa-strength-reduction.c: Likewise.
6774 * gimple-streamer-in.c: Likewise.
6775 * gimple-streamer-out.c: Likewise.
6776 * gimple-walk.c: Likewise.
6777 * gimple.c: Likewise.
6778 * gimplify-me.c: Likewise.
6779 * gimplify.c: Likewise.
6780 * godump.c: Likewise.
6781 * graph.c: Likewise.
6782 * graphds.c: Likewise.
6783 * haifa-sched.c: Likewise.
6784 * hw-doloop.c: Likewise.
6785 * ifcvt.c: Likewise.
6786 * init-regs.c: Likewise.
6787 * internal-fn.c: Likewise.
6788 * ipa-chkp.c: Likewise.
6789 * ipa-comdats.c: Likewise.
6790 * ipa-cp.c: Likewise.
6791 * ipa-devirt.c: Likewise.
6792 * ipa-icf-gimple.c: Likewise.
6793 * ipa-icf.c: Likewise.
6794 * ipa-inline-analysis.c: Likewise.
6795 * ipa-inline-transform.c: Likewise.
6796 * ipa-inline.c: Likewise.
6797 * ipa-polymorphic-call.c: Likewise.
6798 * ipa-profile.c: Likewise.
6799 * ipa-prop.c: Likewise.
6800 * ipa-pure-const.c: Likewise.
6801 * ipa-ref.c: Likewise.
6802 * ipa-reference.c: Likewise.
6803 * ipa-split.c: Likewise.
6804 * ipa-utils.c: Likewise.
6805 * ipa-visibility.c: Likewise.
6807 * ira-build.c: Likewise.
6808 * ira-color.c: Likewise.
6809 * ira-conflicts.c: Likewise.
6810 * ira-costs.c: Likewise.
6811 * ira-emit.c: Likewise.
6812 * ira-lives.c: Likewise.
6815 * langhooks.c: Likewise.
6817 * lists.c: Likewise.
6818 * loop-doloop.c: Likewise.
6819 * loop-init.c: Likewise.
6820 * loop-invariant.c: Likewise.
6821 * loop-iv.c: Likewise.
6822 * loop-unroll.c: Likewise.
6823 * lower-subreg.c: Likewise.
6824 * lra-assigns.c: Likewise.
6825 * lra-coalesce.c: Likewise.
6826 * lra-constraints.c: Likewise.
6827 * lra-eliminations.c: Likewise.
6828 * lra-lives.c: Likewise.
6829 * lra-remat.c: Likewise.
6830 * lra-spills.c: Likewise.
6832 * lto-cgraph.c: Likewise.
6833 * lto-compress.c: Likewise.
6834 * lto-opts.c: Likewise.
6835 * lto-section-in.c: Likewise.
6836 * lto-section-out.c: Likewise.
6837 * lto-streamer-in.c: Likewise.
6838 * lto-streamer-out.c: Likewise.
6839 * lto-streamer.c: Likewise.
6841 * mode-switching.c: Likewise.
6842 * modulo-sched.c: Likewise.
6843 * optabs.c: Likewise.
6844 * opts-global.c: Likewise.
6845 * passes.c: Likewise.
6846 * plugin.c: Likewise.
6847 * postreload-gcse.c: Likewise.
6848 * postreload.c: Likewise.
6849 * predict.c: Likewise.
6850 * print-tree.c: Likewise.
6851 * profile.c: Likewise.
6853 * realmpfr.c: Likewise.
6854 * recog.c: Likewise.
6856 * reg-stack.c: Likewise.
6857 * regcprop.c: Likewise.
6858 * reginfo.c: Likewise.
6859 * regrename.c: Likewise.
6860 * regstat.c: Likewise.
6861 * reload.c: Likewise.
6862 * reload1.c: Likewise.
6863 * reorg.c: Likewise.
6864 * resource.c: Likewise.
6865 * rtl-chkp.c: Likewise.
6866 * rtl-error.c: Likewise.
6867 * rtlanal.c: Likewise.
6868 * rtlhooks.c: Likewise.
6869 * sanopt.c: Likewise.
6870 * sched-deps.c: Likewise.
6871 * sched-ebb.c: Likewise.
6872 * sched-rgn.c: Likewise.
6873 * sdbout.c: Likewise.
6874 * sel-sched-dump.c: Likewise.
6875 * sel-sched-ir.c: Likewise.
6876 * sel-sched.c: Likewise.
6878 * shrink-wrap.c: Likewise.
6879 * simplify-rtx.c: Likewise.
6880 * stack-ptr-mod.c: Likewise.
6881 * statistics.c: Likewise.
6883 * stor-layout.c: Likewise.
6884 * store-motion.c: Likewise.
6885 * stringpool.c: Likewise.
6886 * symtab.c: Likewise.
6887 * target-globals.c: Likewise.
6888 * targhooks.c: Likewise.
6889 * toplev.c: Likewise.
6890 * tracer.c: Likewise.
6891 * trans-mem.c: Likewise.
6892 * tree-affine.c: Likewise.
6893 * tree-call-cdce.c: Likewise.
6894 * tree-cfg.c: Likewise.
6895 * tree-cfgcleanup.c: Likewise.
6896 * tree-chkp-opt.c: Likewise.
6897 * tree-chkp.c: Likewise.
6898 * tree-chrec.c: Likewise.
6899 * tree-complex.c: Likewise.
6900 * tree-data-ref.c: Likewise.
6901 * tree-dfa.c: Likewise.
6902 * tree-diagnostic.c: Likewise.
6903 * tree-dump.c: Likewise.
6904 * tree-eh.c: Likewise.
6905 * tree-emutls.c: Likewise.
6906 * tree-if-conv.c: Likewise.
6907 * tree-inline.c: Likewise.
6908 * tree-into-ssa.c: Likewise.
6909 * tree-iterator.c: Likewise.
6910 * tree-loop-distribution.c: Likewise.
6911 * tree-nested.c: Likewise.
6912 * tree-nrv.c: Likewise.
6913 * tree-object-size.c: Likewise.
6914 * tree-outof-ssa.c: Likewise.
6915 * tree-parloops.c: Likewise.
6916 * tree-phinodes.c: Likewise.
6917 * tree-predcom.c: Likewise.
6918 * tree-pretty-print.c: Likewise.
6919 * tree-profile.c: Likewise.
6920 * tree-scalar-evolution.c: Likewise.
6921 * tree-sra.c: Likewise.
6922 * tree-ssa-address.c: Likewise.
6923 * tree-ssa-alias.c: Likewise.
6924 * tree-ssa-ccp.c: Likewise.
6925 * tree-ssa-coalesce.c: Likewise.
6926 * tree-ssa-copy.c: Likewise.
6927 * tree-ssa-dce.c: Likewise.
6928 * tree-ssa-dse.c: Likewise.
6929 * tree-ssa-forwprop.c: Likewise.
6930 * tree-ssa-ifcombine.c: Likewise.
6931 * tree-ssa-live.c: Likewise.
6932 * tree-ssa-loop-ch.c: Likewise.
6933 * tree-ssa-loop-im.c: Likewise.
6934 * tree-ssa-loop-ivcanon.c: Likewise.
6935 * tree-ssa-loop-ivopts.c: Likewise.
6936 * tree-ssa-loop-manip.c: Likewise.
6937 * tree-ssa-loop-niter.c: Likewise.
6938 * tree-ssa-loop-prefetch.c: Likewise.
6939 * tree-ssa-loop-unswitch.c: Likewise.
6940 * tree-ssa-loop.c: Likewise.
6941 * tree-ssa-math-opts.c: Likewise.
6942 * tree-ssa-operands.c: Likewise.
6943 * tree-ssa-phiopt.c: Likewise.
6944 * tree-ssa-phiprop.c: Likewise.
6945 * tree-ssa-pre.c: Likewise.
6946 * tree-ssa-propagate.c: Likewise.
6947 * tree-ssa-reassoc.c: Likewise.
6948 * tree-ssa-scopedtables.c: Likewise.
6949 * tree-ssa-sink.c: Likewise.
6950 * tree-ssa-strlen.c: Likewise.
6951 * tree-ssa-structalias.c: Likewise.
6952 * tree-ssa-tail-merge.c: Likewise.
6953 * tree-ssa-ter.c: Likewise.
6954 * tree-ssa-threadupdate.c: Likewise.
6955 * tree-ssa-uncprop.c: Likewise.
6956 * tree-ssa-uninit.c: Likewise.
6957 * tree-ssa.c: Likewise.
6958 * tree-ssanames.c: Likewise.
6959 * tree-stdarg.c: Likewise.
6960 * tree-streamer-in.c: Likewise.
6961 * tree-streamer-out.c: Likewise.
6962 * tree-streamer.c: Likewise.
6963 * tree-switch-conversion.c: Likewise.
6964 * tree-tailcall.c: Likewise.
6965 * tree-vect-data-refs.c: Likewise.
6966 * tree-vect-generic.c: Likewise.
6967 * tree-vect-loop-manip.c: Likewise.
6968 * tree-vect-loop.c: Likewise.
6969 * tree-vect-patterns.c: Likewise.
6970 * tree-vect-slp.c: Likewise.
6971 * tree-vect-stmts.c: Likewise.
6972 * tree-vectorizer.c: Likewise.
6973 * tree-vrp.c: Likewise.
6976 * ubsan.c: Likewise.
6977 * value-prof.c: Likewise.
6978 * var-tracking.c: Likewise.
6979 * varasm.c: Likewise.
6980 * varpool.c: Likewise.
6981 * vmsdbgout.c: Likewise.
6982 * vtable-verify.c: Likewise.
6984 * wide-int-print.cc: Likewise.
6985 * wide-int.cc: Likewise.
6986 * xcoffout.c: Likewise.
6988 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
6990 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
6991 between pass numbering and execution order.
6993 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6995 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
6996 check for dependencies.
6998 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7000 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
7003 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7005 * real.h (format_helper): New.
7006 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
7007 (real_from_target, real_nan, real_2expN, real_value_truncate)
7008 (significand_size, real_from_string2, exact_real_inverse)
7009 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
7010 (real_round, real_isinteger, real_from_integer): Replace
7011 machine_mode arguments with format_helper arguments.
7012 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
7013 (real_from_integer, real_nan, real_2expN, real_convert)
7014 (real_value_truncate, exact_real_truncate, real_to_target)
7015 (real_from_target, significand_size, real_powi, real_trunc)
7016 (real_floor, real_ceil, real_round, real_isinteger): Replace
7017 machine_mode arguments with format_helper arguments.
7018 (real_to_target_fmt, real_from_target_fmt): Delete.
7019 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
7020 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
7021 argument with real_format.
7022 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
7024 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7026 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
7027 (fixed_to_decimal, fixed_convert_from_real)
7028 (real_convert_from_fixed): Fix mode arguments to real_2expN.
7030 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
7032 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
7033 SCALAR_FLOAT_MODE_P.
7035 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
7037 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
7038 (completely_scalarize): Comment zero-length arrays.
7039 (get_access_replacement): Correct comment re. precondition.
7041 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
7043 * config/i386/i386.c (get_builtin_code_for_version): Set priority
7044 for PROCESSOR_ZNVER1.
7045 (enum processor_model): Add M_AMDFAM17H_znver1.
7046 (struct arch_names_table): Likewise.
7047 * doc/extend.texi: ADD znver1.
7049 2015-10-30 Richard Biener <rguenther@suse.de>
7051 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
7052 fold () on single RHSs. Allow CONSTRUCTORS with trailing
7053 zeros to be folded to VECTOR_CSTs.
7054 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
7055 * fold-const.c (fold): Use build_vector_from_ctor.
7057 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
7059 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
7060 "mov %0.h[0], %1.h[0] to "neon_move".
7061 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
7062 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
7064 (*cmovsi_insn_uxtw): Likewise.
7066 2015-10-30 Tom de Vries <tom@codesourcery.com>
7068 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
7069 unsigned, and initialize, and use initial value instead of hardcoded
7070 constant. Add generic constraints dumping section. Don't dump global
7071 initializers constraints dumping section if empty. Don't update
7072 variable from if unused.
7074 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7076 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
7077 flag_checking and/or CHECKING_P to eliminate conditional compilation
7079 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
7080 * config/bfin/bfin.c (hwloop_optimize): Likewise.
7081 * config/i386/i386.c (ix86_print_operand_address): Likewise.
7082 (output_387_binary_op): Likewise.
7083 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
7084 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
7085 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
7087 * config/rs6000/rs6000.h: Likewise.
7088 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
7090 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
7092 * config/sh/sh.opt (mfdpic): Add missing period.
7094 2015-08-29 Anatoly Sokolov <aesok@post.ru>
7096 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
7097 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
7098 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
7099 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
7100 mcore_base_register_rtx_p, mcore_legitimate_index_p,
7101 mcore_legitimate_address_p): New functions.
7102 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
7104 2015-10-29 Jeff Law <law@redhat.com>
7106 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
7108 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
7109 * tree-ssa-threadedge.c
7110 (record_temporary_equivalences_from_stmts_at_dest): Remove
7111 backedge_seen argument and associated code which invalidated
7112 equivalences based on the value of that argument.
7113 (thread_through_normal_block): Corresponding changes.
7115 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7117 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
7118 function earlier in the file.
7119 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
7120 df_regs_ever_live_p.
7122 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
7124 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
7127 2015-10-29 Richard Henderson <rth@redhat.com>
7131 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
7132 sse check to the exact conditions of PR 67609.
7134 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7136 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
7137 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
7138 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
7139 of the traditional names that TFmode uses for handling IEEE
7140 extended double. If -mfloat128, add KFmode functions for all of
7141 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
7142 make TFmode use the same emulation functions as KFmode.
7143 (init_float128_ibm): Likewise.
7144 (init_float128_ieee): Likewise.
7145 (rs6000_generate_compare): For IEEE 128-bit floating point
7146 comparisons, call the unordered comparison function instead of the
7147 ordered comparison function.
7148 (rs6000_expand_float128_convert): Deal with operands that are
7149 memory operands. Restructure the code to use a switch statement on
7150 the mode. Add support for TFmode defaulting to either IBM extended
7151 double or IEEE 128-bit floating point. If the underlying types are
7152 the same, use a move instead of a conversion function.
7153 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
7154 use for IEEE 128-bit floating point constants with -mfloat128.
7155 (rs6000_c_mode_for_suffix): Likewise.
7156 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
7157 128-bit floating point with IBM extended double floating point.
7158 (rs6000_invalid_binary_op): Likewise.
7159 (rs6000_gen_le_vsx_permute): On little endian systems generate a
7160 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
7161 types that can go in vector registers.
7162 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
7163 point types that can go in vector registers on little endian
7165 (mark_swaps_for_removal): Likewise.
7166 (rs6000_analyze_swaps): Likewise.
7167 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
7169 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
7170 rework IEEE 128-bit floating point insns to deal with TFmode being
7171 either IBM extended double or IEEE 128-bit floating point.
7173 (IBM128): Update iterator to add condition that the mode is IBM
7175 (IEEE128): New iterator for IEEE 128-bit floating point.
7176 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
7177 (FLOAT128): Likewise.
7178 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
7180 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
7181 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
7182 instead of hard coding TFmode or KFmode.
7183 (negtf2_internal): Likewise.
7184 (neg<mode>2_internal): Likewise.
7185 (abs<mode>2): Likewise.
7186 (abstf2_internal): Likewise.
7187 (abs<mode>2_internal): Likewise.
7188 (ieee_128bit_neg<mode>2): Likewise.
7189 (ieee_128bit_neg<mode>2_internal): Likewise.
7190 (ieee_128bit_abs<mode>2): Likewise.
7191 (ieee_128bit_abs<mode>2_internal): Likewise.
7192 (ieee_128bit_nabs<mode>2): Likewise.
7193 (ieee_128bit_nabs<mode>2_internal): Likewise.
7194 (extendiftf2): Add explicit conversions between 128-bit floating
7195 point types. Drop the old conversions that had become unwieldy.
7196 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
7197 (extendifkf2): Likewise.
7198 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
7199 (extendtfkf2): Likewise.
7200 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
7201 (trunciftf2): Likewise.
7202 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
7203 (truncifkf2): Likewise.
7204 (float<SDI:mode><IFKF:mode>2): Likewise.
7205 (trunckftf2): Likewise.
7206 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
7207 (trunctfif2): Likewise.
7208 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
7209 (extenddftf2): Rework 128-bit floating point conversions to
7210 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
7211 KFmode expanders into one function.
7212 (extenddf<mode>2): Likewise.
7213 (extenddftf2_fprs): Likewise.
7214 (extenddf<mode>2_fprs): Likewise.
7215 (extenddftf2_vsx): Likewise.
7216 (extenddf<mode>2_vsx): Likewise.
7217 (extendsftf2): Likewise.
7218 (extendsf<mode>2): Likewise.
7219 (trunctfdf2): Likewise.
7220 (trunc<mode>df2): Likewise.
7221 (trunctfdf2_internal1): Likewise.
7222 (trunc<mode>df2_internal1): Likewise.
7223 (trunctfdf2_internal2): Likewise.
7224 (trunc<mode>df2_internal2): Likewise.
7225 (trunctfsf2): Likewise.
7226 (trunc<mode>sf2): Likewise.
7227 (trunctfsf2_fprs): Likewise.
7228 (trunc<mode>sf2_fprs): Likewise.
7229 (floatsit2f): Likewise.
7230 (floatsi<mode>2): Likewise.
7231 (fix_trunc_helper): Likewise.
7232 (fix_trunc_helper<mode>): Likewise.
7233 (fix_trunctfsi2): Likewise.
7234 (fix_trunc<mode>si2): Likewise.
7235 (fix_trunctfsi2_fprs): Likewise.
7236 (fix_trunc<mode>si2_fprs): Likewise.
7237 (fix_trunctfsi2_internal): Likewise.
7238 (fix_trunc<mode>si2_internal): Likewise.
7239 (fix_trunctfdi2): Likewise.
7240 (fix_trunc<mode>di2): Likewise.
7241 (fixuns_trunctf<mode>2): Likewise.
7242 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
7243 (floatditf2): Likewise.
7244 (floatdi<mode>2): Likewise.
7245 (floatuns<mode>tf2): Likewise.
7246 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
7247 (cmptf_internal1): Use a mode iterator to add support for both
7248 types (IFmode, TFmode) that support IBM extended double.
7249 (cmp<mode>_internal1): Likewise.
7250 (cmptf_internal2): Likewise.
7251 (cmp<mode>_internal2): Likewise.
7253 * doc/extend.texi (Floating Types): Document __ibm128 and
7254 __float128 on PowerPC.
7256 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
7257 -mfloat128 and -mno-float128.
7259 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7261 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
7262 floating point modes that can go in vector registers.
7263 (MODES_TIEABLE_P): Move tests for vector modes before tests for
7264 scalar floating point, so that IEEE 128-bit floating point that
7265 can go in vector registers bind with vectors and not FP.
7266 (struct rs6000_args): Add libcall field.
7268 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
7269 and -mfloat128-software switches. Replace them with a binary
7271 (-mfloat128): Likewise.
7273 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
7274 128-bit floating point types in GPRs, even if the appropriate
7275 option enabling the type was not used.
7276 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
7278 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
7279 pre-decrement on IEEE 128-bit floating point values.
7280 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
7281 is IEEE 128-bit floating point.
7282 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
7283 128-bit floating point types that can go in vector registers.
7284 (rs6000_option_override_internal): Change -mfloat128-none and
7285 -mfloat128-software to -mfloat128, and move code to be near other
7286 VSX option handling.
7287 (rs6000_option_override_internal): Disable -mfloat128 if we don't
7288 have the Altivec ABI.
7289 (rs6000_init_builtins): Don't make TFmode use either IFmode or
7290 KFmode floating point nodes. Instead, have three separate nodes.
7291 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
7292 eventually moving the long double default to IEEE 128-bit floating
7294 (rs6000_opt_masks): Add -mfloat128.
7295 (struct rs6000_opt_var): Fix typo in comment.
7296 (init_cumulative_args): Initialize libcall field in
7298 (rs6000_function_arg): Treat library functions as if they had
7299 prototypes to prevent IEEE 128-bit support functions from passing
7300 arguments in both GPRs and vector registers.
7301 (rs6000_arg_partial_bytes): Likewise.
7303 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
7304 an option that can be turned on via -mcpu=<xxx>.
7306 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
7309 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
7310 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
7311 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
7312 double is IBM extended double.
7314 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
7317 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
7319 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
7320 * genconditions.c: Define CHECKING_P in the generated code.
7321 * genextract.c: Use flag_checking in insn_extract.
7322 * gengtype.c (main): Remove conditional compilation.
7323 * gengtype.h: Likewise.
7325 2015-10-29 Jeff Law <law@redhat.com>
7327 PR tree-optimization/67892
7328 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
7330 (thread_through_normal_block): If we have seen a backedge, then
7331 do nothing. No longer call find_jump_threads_backwards here.
7332 (thread_across_edge): Use find_jump_threads_backwards to find
7333 jump threads if the old style threader was not successful.
7334 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
7335 gsi_last_nondebug_bb. Return NULL if the block does not end
7336 with a control statement.
7337 (find_jump_threads_backwards): Setup code moved here from
7338 tree-ssa-threadedge.c::thread_through_normal_block. Accept
7339 single edge argument instead of name & block.
7340 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
7343 2015-10-29 Tom de Vries <tom@codesourcery.com>
7345 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
7348 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
7350 * omp-low.c (lower_omp_target): Remove unreachable code & merge
7353 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
7355 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
7357 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7359 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7360 guard_bb0 and use guard_bb throughout.
7362 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
7364 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
7367 2015-10-29 Richard Biener <rguenther@suse.de>
7370 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
7373 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
7375 * alias.c: Reorder #include statements and remove duplicates.
7377 * attribs.c: Likewise.
7378 * auto-inc-dec.c: Likewise.
7379 * auto-profile.c: Likewise.
7380 * bb-reorder.c: Likewise.
7381 * bt-load.c: Likewise.
7382 * builtins.c: Likewise.
7383 * caller-save.c: Likewise.
7384 * calls.c: Likewise.
7387 * cfganal.c: Likewise.
7388 * cfgbuild.c: Likewise.
7389 * cfgcleanup.c: Likewise.
7390 * cfgexpand.c: Likewise.
7391 * cfghooks.c: Likewise.
7392 * cfgloop.c: Likewise.
7393 * cfgloopanal.c: Likewise.
7394 * cfgloopmanip.c: Likewise.
7395 * cfgrtl.c: Likewise.
7396 * cgraph.c: Likewise.
7397 * cgraphbuild.c: Likewise.
7398 * cgraphclones.c: Likewise.
7399 * cgraphunit.c: Likewise.
7400 * cilk-common.c: Likewise.
7401 * combine-stack-adj.c: Likewise.
7402 * combine.c: Likewise.
7403 * compare-elim.c: Likewise.
7404 * convert.c: Likewise.
7405 * coverage.c: Likewise.
7406 * cppbuiltin.c: Likewise.
7407 * cprop.c: Likewise.
7409 * cselib.c: Likewise.
7410 * data-streamer-in.c: Likewise.
7411 * data-streamer-out.c: Likewise.
7412 * data-streamer.c: Likewise.
7413 * dbxout.c: Likewise.
7416 * debug.c: Likewise.
7417 * df-core.c: Likewise.
7418 * df-problems.c: Likewise.
7419 * df-scan.c: Likewise.
7421 * dojump.c: Likewise.
7422 * dominance.c: Likewise.
7423 * double-int.c: Likewise.
7425 * dumpfile.c: Likewise.
7426 * dwarf2asm.c: Likewise.
7427 * dwarf2cfi.c: Likewise.
7428 * dwarf2out.c: Likewise.
7429 * emit-rtl.c: Likewise.
7430 * except.c: Likewise.
7431 * explow.c: Likewise.
7432 * expmed.c: Likewise.
7434 * final.c: Likewise.
7435 * fixed-value.c: Likewise.
7436 * fold-const.c: Likewise.
7437 * function.c: Likewise.
7438 * fwprop.c: Likewise.
7440 * generic-match-head.c: Likewise.
7441 * ggc-common.c: Likewise.
7442 * gimple-builder.c: Likewise.
7443 * gimple-expr.c: Likewise.
7444 * gimple-fold.c: Likewise.
7445 * gimple-iterator.c: Likewise.
7446 * gimple-low.c: Likewise.
7447 * gimple-match-head.c: Likewise.
7448 * gimple-pretty-print.c: Likewise.
7449 * gimple-ssa-isolate-paths.c: Likewise.
7450 * gimple-ssa-strength-reduction.c: Likewise.
7451 * gimple-streamer-in.c: Likewise.
7452 * gimple-streamer-out.c: Likewise.
7453 * gimple-walk.c: Likewise.
7454 * gimple.c: Likewise.
7455 * gimplify-me.c: Likewise.
7456 * gimplify.c: Likewise.
7457 * godump.c: Likewise.
7458 * graph.c: Likewise.
7459 * graphite-poly.c: Likewise.
7460 * haifa-sched.c: Likewise.
7461 * hw-doloop.c: Likewise.
7462 * ifcvt.c: Likewise.
7463 * incpath.c: Likewise.
7464 * init-regs.c: Likewise.
7465 * internal-fn.c: Likewise.
7466 * ipa-chkp.c: Likewise.
7467 * ipa-comdats.c: Likewise.
7468 * ipa-cp.c: Likewise.
7469 * ipa-devirt.c: Likewise.
7470 * ipa-icf-gimple.c: Likewise.
7471 * ipa-icf.c: Likewise.
7472 * ipa-inline-analysis.c: Likewise.
7473 * ipa-inline-transform.c: Likewise.
7474 * ipa-inline.c: Likewise.
7475 * ipa-polymorphic-call.c: Likewise.
7476 * ipa-profile.c: Likewise.
7477 * ipa-prop.c: Likewise.
7478 * ipa-pure-const.c: Likewise.
7479 * ipa-ref.c: Likewise.
7480 * ipa-reference.c: Likewise.
7481 * ipa-split.c: Likewise.
7482 * ipa-utils.c: Likewise.
7483 * ipa-visibility.c: Likewise.
7485 * ira-build.c: Likewise.
7486 * ira-color.c: Likewise.
7487 * ira-conflicts.c: Likewise.
7488 * ira-costs.c: Likewise.
7489 * ira-emit.c: Likewise.
7490 * ira-lives.c: Likewise.
7493 * langhooks.c: Likewise.
7495 * lists.c: Likewise.
7496 * loop-doloop.c: Likewise.
7497 * loop-init.c: Likewise.
7498 * loop-invariant.c: Likewise.
7499 * loop-iv.c: Likewise.
7500 * loop-unroll.c: Likewise.
7501 * lower-subreg.c: Likewise.
7502 * lra-assigns.c: Likewise.
7503 * lra-coalesce.c: Likewise.
7504 * lra-constraints.c: Likewise.
7505 * lra-eliminations.c: Likewise.
7506 * lra-lives.c: Likewise.
7507 * lra-remat.c: Likewise.
7508 * lra-spills.c: Likewise.
7510 * lto-cgraph.c: Likewise.
7511 * lto-compress.c: Likewise.
7512 * lto-opts.c: Likewise.
7513 * lto-section-in.c: Likewise.
7514 * lto-section-out.c: Likewise.
7515 * lto-streamer-in.c: Likewise.
7516 * lto-streamer-out.c: Likewise.
7517 * lto-streamer.c: Likewise.
7518 * mode-switching.c: Likewise.
7519 * modulo-sched.c: Likewise.
7520 * omp-low.c: Likewise.
7521 * optabs.c: Likewise.
7522 * opts-global.c: Likewise.
7523 * passes.c: Likewise.
7524 * plugin.c: Likewise.
7525 * postreload-gcse.c: Likewise.
7526 * postreload.c: Likewise.
7527 * predict.c: Likewise.
7528 * print-tree.c: Likewise.
7529 * profile.c: Likewise.
7531 * realmpfr.c: Likewise.
7532 * recog.c: Likewise.
7534 * reg-stack.c: Likewise.
7535 * regcprop.c: Likewise.
7536 * reginfo.c: Likewise.
7537 * regrename.c: Likewise.
7538 * regstat.c: Likewise.
7539 * reload.c: Likewise.
7540 * reload1.c: Likewise.
7541 * reorg.c: Likewise.
7542 * resource.c: Likewise.
7543 * rtl-chkp.c: Likewise.
7544 * rtl-error.c: Likewise.
7545 * rtlanal.c: Likewise.
7546 * rtlhooks.c: Likewise.
7547 * sanopt.c: Likewise.
7548 * sched-deps.c: Likewise.
7549 * sched-ebb.c: Likewise.
7550 * sched-rgn.c: Likewise.
7552 * shrink-wrap.c: Likewise.
7553 * simplify-rtx.c: Likewise.
7554 * stack-ptr-mod.c: Likewise.
7555 * statistics.c: Likewise.
7557 * stor-layout.c: Likewise.
7558 * store-motion.c: Likewise.
7559 * stringpool.c: Likewise.
7560 * symtab.c: Likewise.
7561 * target-globals.c: Likewise.
7562 * targhooks.c: Likewise.
7563 * toplev.c: Likewise.
7564 * tracer.c: Likewise.
7565 * trans-mem.c: Likewise.
7566 * tree-affine.c: Likewise.
7567 * tree-call-cdce.c: Likewise.
7568 * tree-cfg.c: Likewise.
7569 * tree-cfgcleanup.c: Likewise.
7570 * tree-chkp-opt.c: Likewise.
7571 * tree-chkp.c: Likewise.
7572 * tree-chrec.c: Likewise.
7573 * tree-complex.c: Likewise.
7574 * tree-data-ref.c: Likewise.
7575 * tree-dfa.c: Likewise.
7576 * tree-diagnostic.c: Likewise.
7577 * tree-dump.c: Likewise.
7578 * tree-eh.c: Likewise.
7579 * tree-emutls.c: Likewise.
7580 * tree-if-conv.c: Likewise.
7581 * tree-inline.c: Likewise.
7582 * tree-into-ssa.c: Likewise.
7583 * tree-iterator.c: Likewise.
7584 * tree-loop-distribution.c: Likewise.
7585 * tree-nested.c: Likewise.
7586 * tree-nrv.c: Likewise.
7587 * tree-object-size.c: Likewise.
7588 * tree-outof-ssa.c: Likewise.
7589 * tree-parloops.c: Likewise.
7590 * tree-phinodes.c: Likewise.
7591 * tree-predcom.c: Likewise.
7592 * tree-pretty-print.c: Likewise.
7593 * tree-profile.c: Likewise.
7594 * tree-scalar-evolution.c: Likewise.
7595 * tree-sra.c: Likewise.
7596 * tree-ssa-address.c: Likewise.
7597 * tree-ssa-alias.c: Likewise.
7598 * tree-ssa-ccp.c: Likewise.
7599 * tree-ssa-coalesce.c: Likewise.
7600 * tree-ssa-copy.c: Likewise.
7601 * tree-ssa-dce.c: Likewise.
7602 * tree-ssa-dom.c: Likewise.
7603 * tree-ssa-dse.c: Likewise.
7604 * tree-ssa-forwprop.c: Likewise.
7605 * tree-ssa-ifcombine.c: Likewise.
7606 * tree-ssa-live.c: Likewise.
7607 * tree-ssa-loop-ch.c: Likewise.
7608 * tree-ssa-loop-im.c: Likewise.
7609 * tree-ssa-loop-ivcanon.c: Likewise.
7610 * tree-ssa-loop-ivopts.c: Likewise.
7611 * tree-ssa-loop-manip.c: Likewise.
7612 * tree-ssa-loop-niter.c: Likewise.
7613 * tree-ssa-loop-prefetch.c: Likewise.
7614 * tree-ssa-loop-unswitch.c: Likewise.
7615 * tree-ssa-loop.c: Likewise.
7616 * tree-ssa-math-opts.c: Likewise.
7617 * tree-ssa-operands.c: Likewise.
7618 * tree-ssa-phiopt.c: Likewise.
7619 * tree-ssa-phiprop.c: Likewise.
7620 * tree-ssa-pre.c: Likewise.
7621 * tree-ssa-propagate.c: Likewise.
7622 * tree-ssa-reassoc.c: Likewise.
7623 * tree-ssa-sccvn.c: Likewise.
7624 * tree-ssa-scopedtables.c: Likewise.
7625 * tree-ssa-sink.c: Likewise.
7626 * tree-ssa-strlen.c: Likewise.
7627 * tree-ssa-structalias.c: Likewise.
7628 * tree-ssa-tail-merge.c: Likewise.
7629 * tree-ssa-ter.c: Likewise.
7630 * tree-ssa-threadedge.c: Likewise.
7631 * tree-ssa-threadupdate.c: Likewise.
7632 * tree-ssa-uncprop.c: Likewise.
7633 * tree-ssa-uninit.c: Likewise.
7634 * tree-ssa.c: Likewise.
7635 * tree-ssanames.c: Likewise.
7636 * tree-stdarg.c: Likewise.
7637 * tree-streamer-in.c: Likewise.
7638 * tree-streamer-out.c: Likewise.
7639 * tree-streamer.c: Likewise.
7640 * tree-switch-conversion.c: Likewise.
7641 * tree-tailcall.c: Likewise.
7642 * tree-vect-data-refs.c: Likewise.
7643 * tree-vect-generic.c: Likewise.
7644 * tree-vect-loop-manip.c: Likewise.
7645 * tree-vect-loop.c: Likewise.
7646 * tree-vect-patterns.c: Likewise.
7647 * tree-vect-slp.c: Likewise.
7648 * tree-vect-stmts.c: Likewise.
7649 * tree-vectorizer.c: Likewise.
7650 * tree-vrp.c: Likewise.
7653 * ubsan.c: Likewise.
7654 * value-prof.c: Likewise.
7655 * var-tracking.c: Likewise.
7656 * varasm.c: Likewise.
7657 * varpool.c: Likewise.
7658 * vtable-verify.c: Likewise.
7660 * wide-int-print.cc: Likewise.
7661 * wide-int.cc: Likewise.
7662 * xcoffout.c: Likewise.
7664 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
7666 * Makefile.in (NO_PIE_CFLAGS): New.
7667 (NO_PIE_FLAG): Likewise.
7668 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7669 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7670 (BUILD_NO_PIE_CFLAGS): Likewise.
7671 (BUILD_NO_PIE_FLAG): Likewise.
7672 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
7673 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
7674 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
7675 $(BUILD_NO_PIE_CFLAGS).
7676 (BUILD_CXXFLAGS): Likewise.
7677 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
7678 $(BUILD_NO_PIE_FLAG).
7679 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
7680 (BUILD_NO_PIE_FLAG): Likewise.
7681 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
7682 (NO_PIE_FLAG_FOR_BUILD): Likewise.
7683 * configure: Regenerated.
7685 2015-10-29 Richard Biener <rguenther@suse.de>
7688 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
7689 unsigned conditonal negation to ABS_EXPR.
7691 2015-10-29 Richard Biener <rguenther@suse.de>
7693 * gimple-match-head.c (gimple_simplify): Remove premature checking
7694 of builtin_decl_implicit of function calls we simplify.
7696 2015-10-29 Bin Cheng <bin.cheng@arm.com>
7698 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
7699 (get_computation_cost_at): Ditto.
7700 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
7703 2015-10-28 Tom de Vries <tom@codesourcery.com>
7705 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
7708 2015-10-28 Jason Merrill <jason@redhat.com>
7710 * Makefile.in (TAGS): Include libcpp and libiberty.
7712 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7714 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
7715 (extract_omp_for_data): Remove OpenACC special handling of
7718 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
7719 (struct parallel): Update comment.
7720 (nvptx_reorg): Likewise.
7721 (nvptx_neuter): Cleanup whitespace.
7723 2015-10-28 Richard Henderson <rth@redhat.com>
7725 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
7727 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
7730 * config/avr/predicates.md (low_io_address_operand): Don't
7731 consider MODE when computing upper bound.
7732 (io_address_operand): Likewise.
7734 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
7736 * fold-const.c (operand_equal_p): Do not verify that types are
7737 compatible for MEM_REFs.
7739 2015-10-28 Richard Biener <rguenther@suse.de>
7741 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
7742 in simplifying VEC_COND_EXPR conditions.
7744 2015-10-28 Tom de Vries <tom@codesourcery.com>
7746 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
7747 into vi_next of a full_var.
7749 2015-10-28 Tom de Vries <tom@codesourcery.com>
7751 * tree-ssa-structalias.c (new_var_info, make_heapvar)
7752 (make_constraint_from_restrict, make_constraint_from_global_restrict)
7753 (create_function_info_for, create_variable_info_for_1)
7754 (create_variable_info_for): Add and handle add_id parameter.
7755 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
7756 (init_base_vars): Add extra argument to calls to new_var_info.
7757 (get_vi_for_tree): Add extra argument to call to
7758 create_variable_info_for.
7759 (process_constraint, do_deref, process_all_all_constraints): Add extra
7760 argument to calls to new_scalar_tmp_constraint_exp.
7761 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
7762 argument to calls to make_heapvar.
7763 (make_restrict_var_constraints): Add extra argument to call to
7764 make_constraint_from_global_restrict.
7765 (intra_create_variable_infos): Add extra argument to call to
7766 create_variable_info_for_1.
7767 (ipa_pta_execute): Add extra argument to call to
7768 create_function_info_for.
7770 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7772 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
7773 (sibcall_value): Likewise.
7775 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
7777 * config/nvptx/nvptx.h (struct machine_function): Add
7779 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
7780 nvptx_expand_oacc_join): Declare.
7781 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
7782 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
7783 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
7784 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
7785 UNSPECV_JOINING, UNSPECV_JOIN): New.
7786 (BITS, BITD): New mode iterators.
7787 (br_true_uni, br_false_uni): New.
7788 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
7789 (oacc_dim_size, oacc_dim_pos): New.
7790 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
7791 (oacc_fork, oacc_join): New.
7792 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
7793 (worker_load<mode>, worker_store<mode>): New.
7794 (nvptx_barsync): New.
7795 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
7796 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
7797 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
7798 worker_bcast_sym): New.
7799 (nvptx_option_override): Initialize worker broadcast buffer.
7800 (nvptx_emit_forking, nvptx_emit_joining): New.
7801 (nvptx_init_axis_predicate): New.
7802 (nvptx_declare_function_name): Init axis predicates.
7803 (nvptx_expand_call): Add fork/join markers around routine call.
7804 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
7805 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
7806 (nvptx_gen_vcast): New.
7807 (struct wcast_data_t): New.
7808 (enum propagate_mask): New.
7809 (nvptx_gen_wcast): New.
7810 (nvptx_print_operand): Add 'S' case.
7811 (struct parallel): New.
7812 (parallel::parallel, parallel::~parallel): New.
7813 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
7814 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
7815 nvptx_find_par, nvptx_discover_pars): New.
7816 (nvptx_propagate): New.
7817 (vprop_gen, nvptx_vpropagate): New.
7818 (wprop_gen, nvptx_wpropagate): New.
7820 (nvptx_single, nvptx_skip_par): New.
7821 (nvptx_process_pars, nvptx_neuter_pars): New.
7822 (ntptx_reorg): Split blocks, generate parallel structure, apply
7824 (nvptx_cannot_copy_insn_p): New.
7825 (nvptx_file_end): Emit worker broadcast decl.
7826 (nvptx_goacc_fork_join): New.
7827 (TARGET_CANNOT_COPY_INSN_P): Override.
7828 (TARGET_GOACC_FORK_JOIN): Override.
7830 2015-10-28 Richard Biener <rguenther@suse.de>
7832 * fold-const.c (negate_expr_p): Adjust the division case to
7833 properly avoid introducing undefined overflow.
7834 (fold_negate_expr): Likewise.
7836 2015-10-28 Richard Biener <rguenther@suse.de>
7838 PR tree-optimization/65962
7839 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7840 Avoid creating loop carried dependences also for outer loops
7841 of the loop a use to replace is in.
7843 2015-10-28 Richard Biener <rguenther@suse.de>
7845 * common.opt (fchecking): New flag controlling flag_checking.
7846 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
7847 * timevar.c (timer::print): Adjust output.
7848 * doc/invoke.texi (fchecking): Document.
7850 2015-10-28 Richard Biener <rguenther@suse.de>
7853 * fold-const.c (negate_expr_p): We cannot negate plus or minus
7854 if overflow is not wrapping. Likewise multiplication unless
7855 one operand is constant and not power of two.
7856 (fold_negate_expr): Adjust accordingly.
7858 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
7860 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
7862 (is_oacc_parallel, is_oacc_kernels): New.
7863 (enclosing_target_ctx): May return NULL.
7864 (ctx_in_oacc_kernels_region): New.
7865 (check_oacc_kernel_gwv): New.
7866 (oacc_loop_or_target_p): Delete.
7867 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
7868 operands. Strip reductions fro kernels.
7869 (scan_omp_target): Don't calculate gwv mask.
7870 (lower_oacc_head_mark, lower_oacc_loop_marker,
7871 lower_oacc_head_tail): New.
7872 (struct oacc_collapse): New.
7873 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
7874 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
7875 Remove OpenACC handling.
7876 (expand_oacc_for): New.
7877 (expand_omp_for): Call expand_oacc_for.
7878 (lower_omp_for): Call lower_oacc_head_tail.
7880 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
7882 * attribs.c (check_attribute_tables): New function, broken out from...
7883 (init_attributes): Use it.
7884 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
7885 gcc_checking_assert and checking_* functions to eliminate
7886 ENABLE_CHECKING conditionals.
7887 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
7888 (pass_expand::execute): Likewise.
7889 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
7890 * cgraphunit.c (mark_functions_to_output): Likewise.
7891 (cgraph_node::expand_thunk): Likewise.
7892 (symbol_table::compile): Likewise.
7893 * ddg.c (add_cross_iteration_register_deps): Likewise.
7894 (create_ddg_all_sccs): Likewise.
7895 * df-core.c (df_finish_pass, df_analyze): Likewise.
7896 * diagnostic-core.h: Likewise.
7897 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
7898 * dominance.c (calculate_dominance_info): Likewise.
7899 * dwarf2out.c (add_AT_die_ref): Likewise.
7900 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
7901 (loc_list_from_tree, gen_lexical_block_die): Likewise.
7902 gen_type_die_with_usage, gen_type_die): Likewise.
7903 (dwarf2out_decl): Likewise.
7904 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
7905 * except.c (duplicate_eh_regions): Likewise.
7906 * fwprop.c (register_active_defs, update_df_init): Likewise.
7907 (fwprop_init, fwprop_done): Likewise.
7908 (update_uses): Likewise.
7909 * ggc-page.c (ggc_grow): Likewise.
7910 * gimplify.c (gimplify_body): Likewise.
7911 (gimplify_hasher::equal): Likewise.
7912 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
7913 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
7915 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
7916 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
7917 * hash-table.h (::find_empty_slot_for_expand): Likewise.
7918 * ifcvt.c (if_convert): Likewise.
7919 * ipa-cp.c (ipcp_propagate_stage): Likewise.
7920 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
7921 (odr_type_p, odr_types_equivalent_p): Likewise.
7922 (add_type_duplicate, get_odr_type): Likewise.
7923 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
7924 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
7925 (sem_item_optimizer::verify_classes): Likewise.
7926 (sem_item_optimizer::traverse_congruence_split): Likewise.
7927 (sem_item_optimizer::checking_verify_classes): New.
7928 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
7930 * cfgrtl.c (commit_edge_insertions): Likewise.
7931 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
7932 (rtl_flow_call_edges_add): Likewise.
7933 * cgraph.c (symbol_table::create_edge): Likewise.
7934 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
7935 * cgraph.h (symtab_node): Likewise.
7936 (symtab_node::checking_verify_symtab_nodes): Define.
7937 (cgraph_node::checking_verify_cgraph_nodes): Define.
7938 * cfghooks.h (checking_verify_flow_info): Define.
7939 * cfgloop.h (checking_verify_loop_structure): Define.
7940 * dominance.h (checking_verify_dominators): Define.
7941 * et-forest.c: Fix comment.
7942 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
7943 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7944 ENABLE_CHECKING conditionals.
7945 * ipa-inline-transform.c (save_inline_function_body): Likewise.
7946 * ipa-inline.c (inline_small_functions): Likewise.
7947 (early_inliner): Likewise.
7948 * ipa-inline.h (estimate_edge_growth): Likewise.
7949 * ipa-visibility.c (function_and_variable_visibility): Likewise.
7950 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
7951 (ipa_single_use): Likewise.
7952 * ira-int.h: Likewise.
7953 * ira.c (ira): Likewise.
7954 * loop-doloop.c (doloop_optimize_loops): Likewise.
7955 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
7956 * loop-invariant.c (move_loop_invariants): Likewise.
7957 * lra-assigns.c (lra_assign): Likewise.
7958 * lra-constraints.c (lra_constraints): Likewise.
7959 * lra-eliminations.c (lra_eliminate): Likewise.
7960 * lra-int.h (struct lra_reg): Likewise.
7961 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
7962 (lra_create_live_ranges_1): Likewise.
7963 * lra-remat.c (create_remat_bb_data): Likewise.
7964 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
7966 (check_rtl): Always define. Remove incorrect guard around
7967 extract_constrain_insn call.
7968 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
7969 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7970 ENABLE_CHECKING conditionals.
7971 * lto-streamer-out.c (DFS::DFS): Likewise.
7972 (lto_output): Likewise.
7973 * lto-streamer.c (lto_streamer_init): Likewise.
7974 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
7975 expand_omp_target, execute_expand_omp): Likewise.
7976 (lower_omp_target): Likewise.
7977 * passes.c (execute_function_todo): Likewise.
7978 (execute_todo, execute_one_pass): Likewise.
7979 (verify_curr_properties): Always define.
7980 * predict.c (tree_estimate_probability: Use flag_checking,
7981 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
7982 ENABLE_CHECKING conditionals.
7983 (propagate_freq): Likewise.
7984 * pretty-print.c (pp_format): Likewise.
7985 * real.c (real_to_decimal_for_mode): Likewise.
7986 * recog.c (split_all_insns): Likewise.
7987 * regcprop.c (kill_value_one_regno): Likewise.
7988 (copy_value): Likewise.
7989 (validate_value_data): Define unconditionally.
7990 * reload.c: Fix comment.
7991 * timevar.c: Include options.h
7992 * tree-ssa.h (checking_verify_ssa): Define.
7993 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
7994 * sched-deps.c (CHECK): Remove unused macro.
7995 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
7996 gcc_checking_assert and checking_* functions to eliminate
7997 ENABLE_CHECKING conditionals.
7998 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
7999 * sel-sched.c (struct moveop_static_params): Likewise.
8000 (find_best_reg_for_expr, move_cond_jump): Likewise.
8001 (move_op_orig_expr_not_found): Likewise.
8002 (code_motion_process_successors, move_op): Likewise.
8003 * ssa-iterators.h (first_readonly_imm_use): Likewise.
8004 (next_readonly_imm_use): Likewise.
8005 * store-motion.c (compute_store_table): Likewise.
8006 * symbol-summary.h (function_summary::function_summary): Likewise.
8007 * target.h (cumulative_args_t): Likewise.
8008 (get_cumulative_args, pack_cumulative_args): Likewise.
8009 * timevar.c: (timer::print): Likewise.
8010 * trans-mem.c (ipa_tm_execute): Likewise.
8011 * tree-cfg.c (move_stmt_op): Likewise.
8012 (move_sese_region_to_fn): Likewise.
8013 (gimple_flow_call_edges_add): Likewise.
8014 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
8016 * tree-eh.c (remove_unreachable_handlers): Likewise.
8017 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
8018 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
8019 * tree-into-ssa.c (update_ssa): Likewise.
8020 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
8021 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
8022 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
8023 * tree-predcom.c (suitable_component_p): Likewise.
8024 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
8025 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
8026 * tree-ssa-live.c (verify_live_on_entry): Likewise.
8027 * tree-ssa-live.h (register_ssa_partition): Likewise.
8028 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
8029 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
8030 (tree_transform_and_unroll_loop): Likewise.
8031 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8032 * tree-ssa-operands.c (get_expr_operands): Likewise.
8033 * tree-ssa-propagate.c (replace_exp_1): Likewise.
8034 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
8035 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
8036 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
8037 * tree-ssanames.c (release_ssa_name_fn): Likewise.
8038 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
8039 * tree-vect-loop-manip.c
8040 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
8041 (slpeel_checking_verify_cfg_after_peeling): Likewise.
8042 (vect_do_peeling_for_loop_bound): Likewise.
8043 (vect_do_peeling_for_alignment): Likewise.
8044 * tree-vrp.c (supports_overflow_infinity): Likewise.
8045 (set_value_range): Likewise.
8046 * tree.c (free_lang_data_in_cgraph): Likewise.
8047 * value-prof.c (gimple_remove_histogram_value): Likewise.
8048 (free_hist): Likewise.
8049 * var-tracking.c (canonicalize_values_star): Likewise.
8050 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
8052 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8054 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
8055 IFN_GOACC_LOOP): New.
8056 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
8057 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
8058 IFN_UNIQUE_OACC_TAIL_MARK.
8059 (enum ifn_goacc_loop_kind): New.
8060 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
8061 IFN_UNIQUE_OACC_JOIN cases.
8062 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
8063 (expand_GOACC_LOOP): New.
8064 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
8065 * omp-low.c: Include gimple-pretty-print.h.
8066 (struct oacc_loop): New.
8067 (enum oacc_loop_flags): New.
8068 (oacc_thread_numbers): New.
8069 (oacc_xform_loop): New.
8070 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
8071 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
8072 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
8073 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
8074 oacc_loop_discovery): New.
8075 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
8076 oacc_loop_process): New.
8077 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
8078 (execute_oacc_device_lower): Discover & process loops. Process
8080 * target.def (goacc.fork_join): Change sense of hook, clarify
8082 * doc/tm.texi: Regenerated.
8084 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8086 * target-insns.def (oacc_fork, oacc_join): Define.
8087 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
8088 (goacc.fork_join): New GOACC hook.
8089 * targhooks.h (default_goacc_fork_join): Declare.
8090 * omp-low.c (default_goacc_forkjoin): New.
8091 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
8092 * doc/tm.texi: Regenerate.
8094 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8096 * omp-low.c (oacc_init_rediction_array): New.
8097 (oacc_initialize_reduction_data): Initialize array.
8099 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8101 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
8103 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
8105 * internal-fn.c (expand_UNIQUE): New.
8106 * internal-fn.h (enum ifn_unique_kind): New.
8107 * internal-fn.def (IFN_UNIQUE): New.
8108 * target-insns.def (unique): Define.
8109 * gimple.h (gimple_call_internal_unique_p): New.
8110 * gimple.c (gimple_call_same_target_p): Check internal fn
8112 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
8113 * tree-ssa-threadedge.c
8114 (record_temporary_equivalences_from_stmts): Likewise.
8115 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
8117 2015-10-27 Richard Henderson <rth@redhat.com>
8120 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
8121 narrowing subregs on SSE and MMX registers.
8122 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
8123 appear to be sub-words of multi-register pseudos must be rejected.
8124 * doc/tm.texi: Regenerate.
8126 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8129 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
8130 operands[0] is a reg before taking its REGNO in split condition.
8131 (*movdi_aarch64): Likewise.
8133 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8135 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
8136 Handle floating point inner modes properly.
8138 2015-10-27 Alan Hayward <alan.hayward@arm.com>
8141 (vectorizable_live_operation): Change iterator.
8143 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8144 Aditya Kumar <aditya.k7@samsung.com>
8146 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
8147 function to schedule based on isl_schedule_node.
8148 (get_schedule_map_st): New schedule optimizer based on
8150 (scop_get_domains): New. Return the isl_union_set containing the
8151 domains of all the pbbs.
8152 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
8154 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
8157 * calls.c (prepare_call_address): Don't handle -fno-plt here.
8158 * config/i386/i386.c (ix86_expand_call): Generate indirect call
8159 via GOT for -fno-plt. Support indirect call via GOT for x32.
8160 * config/i386/predicates.md (sibcall_memory_operand): Allow
8163 2015-10-27 Richard Biener <rguenther@suse.de>
8165 PR tree-optimization/68104
8166 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
8167 strided access check ...
8168 (vect_compute_data_refs_alignment): ... here.
8170 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
8171 Joseph Myers <joseph@codesourcery.com>
8172 Mark Shinwell <shinwell@codesourcery.com>
8173 Andrew Stubbs <ams@codesourcery.com>
8174 Rich Felker <dalias@libc.org>
8176 * config.gcc: Handle --enable-fdpic.
8177 * config/sh/constraints.md (Ccl): New constraint.
8178 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
8179 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
8181 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
8183 * config/sh/sh-protos.h (function_symbol_result): New struct.
8184 (function_symbol): Return function_symbol_result.
8185 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
8187 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
8189 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
8190 (sh_option_override): Force -fPIC if FDPIC is in effect.
8191 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
8192 UNSPEC_GOTOFFFUNCDESC cases.
8193 (prepare_move_operands): Use FDPIC initial GOT register for
8194 TLS-related GOT access; inhibit cross-section address offset constants
8196 (sh_assemble_integer): New function.
8197 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
8198 PC-relative call sites.
8199 (expand_ashiftrt): Adapt invocation of function_symbol.
8200 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
8201 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
8202 UNSPEC_GOTOFFFUNCDESC.
8203 (legitimize_pic_address): Resolve function symbols to function
8204 descriptors for FDPIC. Do not use GOT-relative addressing for local
8205 data that may be read-only on FDPIC.
8206 (sh_emit_storesi, sh_emit_storehi): New functions.
8207 (sh_trampoline_init): Generate FDPIC trampolines.
8208 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
8209 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
8210 (sh_output_mi_thunk): Generate FDPIC call.
8211 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
8212 FDPIC, generate call site labels to use PC-relative addressing rather
8213 than GOT-relative addressing.
8214 (sh_conditional_register_usage): Make PIC register fixed and call used
8215 when FDPIC is in effect.
8216 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
8217 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
8218 sh_get_fdpic_reg_initial_val): New functions.
8219 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
8221 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
8222 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
8223 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
8224 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
8226 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
8227 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
8228 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
8229 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
8231 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
8232 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
8233 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
8234 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
8235 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
8236 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
8237 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
8238 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
8239 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
8240 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
8241 block_move_real, block_lump_real, block_move_real_i4,
8242 block_lump_real_i4): Add support for FDPIC calls.
8243 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
8244 call_value_pop): Adjust for new function_symbol signature.
8245 * config/sh/sh.opt (-mfdpic): New option.
8246 * doc/install.texi (Options specification): Document --enable-fdpic.
8247 * doc/invoke.texi (SH Options): Document -mfdpic.
8250 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8252 PR tree-optimization/65963
8253 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8254 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8256 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8259 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
8260 * config/arm/constraints.md (Dp): Update callsite.
8261 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
8263 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8265 * builtins.c (fold_builtin_load_exponent): Rename to...
8266 (fold_const_builtin_load_exponent): ...this and only handle
8268 (fold_builtin_2): Update accordingly.
8269 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
8271 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8273 * builtins.c (fold_builtin_logb): Rename to...
8274 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
8275 (fold_builtin_significand): Rename to...
8276 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
8277 (fold_builtin_1): Update accordingly.
8279 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8281 * builtins.c (fold_builtin_fmin_fmax): Delete.
8282 (fold_builtin_2): Handle constant fmin and fmax arguments here.
8283 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
8285 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
8287 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
8288 for register extension into sign and zero register extension.
8289 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
8290 for sign and zero register extension.
8291 (cortexa57_addrcost_table): Likewise.
8292 (xgene1_addrcost_table): Likewise.
8294 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8296 * fold-const.c (fold_minmax): Delete.
8297 (fold_binary_loc): Don't call it.
8298 * match.pd: Add rules previously handled by fold_minmax.
8300 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8302 * builtins.c (fold_builtin_fma): Remove constant handling.
8303 (fold_builtin_3): Handle constant fma arguments here.
8305 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8307 * builtins.c (fold_builtin_fabs): Remove constant handling.
8308 (fold_builtin_abs): Likewise.
8310 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8312 * builtins.c (fold_builtin_copysign): Delete.
8313 (fold_builtin_2): Handle constant copysign arguments here.
8314 * match.pd: Add rules previously handled by fold_builtin_copysign.
8316 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8318 * builtins.c (fold_builtin_signbit): Delete.
8319 (fold_builtin_2): Handle constant signbit arguments here.
8320 * match.pd: Add rules previously handled by fold_builtin_signbit.
8322 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8324 * match.pd: Handle sqrt(x) cmp 0 specially.
8326 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
8328 * tree-vect-generic.c (expand_vector_operations_1): Check
8329 optab type before using it.
8331 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8333 * config/aarch64/aarch64-protos.h
8334 (struct tune_params): Add autoprefetcher_model field.
8335 * config/aarch64/aarch64.c: Include params.h
8336 (generic_tunings): Specify autoprefetcher_model value.
8337 (cortexa53_tunings): Likewise.
8338 (cortexa57_tunings): Likewise.
8339 (cortexa72_tunings): Likewise.
8340 (thunderx_tunings): Likewise.
8341 (xgene1_tunings): Likewise.
8342 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
8343 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
8344 (aarch64_override_options_internal): Set
8345 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
8347 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8349 * builtins.c (fold_builtin_exponent): Delete.
8350 (fold_builtin_2): Handle constant expN arguments here.
8351 * match.pd: Fold expN(logN(x)) -> x.
8353 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8355 * builtins.c (fold_builtin_powi): Delete.
8356 (fold_builtin_2): Handle constant powi arguments here.
8357 * match.pd: Add rules previously handled by fold_builtin_powi.
8359 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8361 * builtins.c (fold_builtin_pow): Delete in favor of...
8362 (fold_const_builtin_pow): ...this new function. Only handle constant
8364 (fold_builtin_2): Update accordingly.
8365 * match.pd: Add rules previously handled by fold_builtin_pow.
8367 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8369 * builtins.c (fold_builtin_hypot): Delete.
8370 (fold_builtin_2): Handle constant hypot arguments here.
8371 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
8372 hypot(x, x) to fabs(x)*sqrt(2).
8374 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
8376 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
8377 instead of make_ssa_name if not yet in SSA form.
8379 2015-10-27 Richard Biener <rguenther@suse.de>
8381 * cfg.c (free_edge): Add function argument and use it instead of cfun.
8382 (clear_edges): Likewise.
8383 * cfg.h (clear_edges): Adjust prototype.
8384 * cfgexpand.c (pass_expand::execute): Adjust.
8385 * cfgloop.c (release_recorded_exits): Add function argument and use
8387 * cfgloop.h (release_recorded_exits): Adjust prototype.
8388 (loops_state_satisfies_p): Add overload with function argument.
8389 (loops_state_set): Likewise.
8390 (loops_state_clear): Likewise.
8391 (struct loop_iterator): Add function argument to constructor
8392 and iterator and use it instead of cfun.
8393 (FOR_EACH_LOOP_FN): New macro.
8394 (loop_optimizer_finalize): Add overload with function argument.
8395 * loop-init.c (loop_optimizer_init): Adjust.
8396 (fix_loop_structure): Likewise.
8397 (loop_optimizer_finaliz): Add function argument and use it
8399 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
8400 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
8401 * cgraph.c (release_function_body): Do not push/pop cfun.
8402 * final.c (rest_of_clean_state): Adjust.
8403 * graphite.c (graphite_finalize): Likewise.
8404 * tree-ssa-copy.c (fini_copy_prop): Likewise.
8405 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
8406 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
8407 (tree_unroll_loops_completely): Likewise.
8408 (pass_complete_unrolli::execute): Likewise.
8409 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
8410 Add function argument and use it instead of cfun.
8411 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
8413 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
8414 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
8416 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
8417 * tree-ssanames.c (fini_ssanames): Add function argument and use it
8419 * tree-ssanames.c (fini_ssanames): Adjust prototype.
8420 * tree-vrp.c (execute_vrp): Adjust.
8421 * value-prof.c (free_histograms): Add function argument and use it
8423 * value-prof.h (free_histograms): Adjust prototype.
8425 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
8427 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
8428 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
8429 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
8431 2015-10-27 Tom de Vries <tom@codesourcery.com>
8433 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
8436 2015-10-27 Bin Cheng <bin.cheng@arm.com>
8438 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
8439 (inv_can_prop_to_addr_use): New function.
8440 (record_use): Call can_prop_to_addr_uses, set the new field.
8441 (get_inv_cost): Count cost if inv can't be propagated into its
8444 2015-10-26 Doug Evans <dje@google.com>
8446 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
8448 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
8450 * match.pd (fold_widened_comparison): Apply simplifications to all
8453 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
8455 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
8456 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
8457 * doc/tm.texi: Regenerated.
8458 * reorg.c (dbr_schedule): Use new hook.
8459 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
8461 2015-10-26 Jeff Law <law@redhat.com>
8463 PR tree-optimization/68013
8464 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
8465 Make sure the first block in the path is in VISITED_BBs.
8467 2015-10-26 Richard Biener <rguenther@suse.de>
8468 Dominik Vogt <vogt@linux.vnet.ibm.com>
8471 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
8472 Properly prune ref->ref for accesses outside of ref.
8474 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8476 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
8477 new statements to be inserted if inplace. Allow calls to have
8480 2015-10-26 Richard Biener <rguenther@suse.de>
8482 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
8483 (do_valueize): New function.
8484 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
8486 * tree-ssa-threadedge.c: Remove builtins.h include, include
8488 (fold_assignment_stmt): Remove.
8489 (threadedge_valueize): New function.
8490 (record_temporary_equivalences_from_stmts): Use
8491 gimple_fold_stmt_to_constant_1, note additional cleanup
8494 2015-10-26 Richard Biener <rguenther@suse.de>
8496 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
8497 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
8499 2015-10-26 Alan Hayward <alan.hayward@arm.com>
8501 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
8502 VEC_COND_EXPR types.
8504 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8506 * auto-inc-dec.c (insert_move_insn_before): Delete.
8507 (attempt_change): Remember to cost the simple move in the
8508 FORM_PRE_ADD and FORM_POST_ADD cases.
8510 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
8513 * config/sh/sh.c (sh_vector_mode_supported_p): Use
8514 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
8516 2015-10-26 Tom de Vries <tom@codesourcery.com>
8518 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
8520 (intra_create_variable_infos): ... here.
8522 2015-10-26 Tom de Vries <tom@codesourcery.com>
8524 * tree-ssa-structalias.c (intra_create_variable_infos): Add
8525 restrict_pointer_p and recursive_restrict_p variables.
8527 2015-10-26 Tom de Vries <tom@codesourcery.com>
8529 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
8530 get_vi_for_tree call.
8532 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8535 * optabs.c (expand_atomic_compare_and_swap): Handle case when
8536 ptarget_oval or ptarget_bool are const0_rtx.
8538 2015-10-26 Christian Bruel <christian.bruel@st.com>
8540 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
8541 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
8542 * cp/method.c (implicitly_declare_fn): Likewise.
8543 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
8544 * java/class.c (add_method_1): Likewise.
8546 2015-10-26 Richard Biener <rguenther@suse.de>
8548 * alloc-pool.h (base_pool_allocator): Use placement new.
8549 (base_pool_allocator::remove): Likewise. Compute size outside of
8552 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8554 * builtins.c (do_real_to_int_conversion): New function.
8555 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
8556 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
8558 * match.pd: Add rules previously handled by fold_fixed_mathfn
8559 and fold_builtin_int_roundingfn.
8561 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
8563 * match.pd: Use macros to define built-in operator lists.
8565 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
8566 Richard Biener <rguenther@suse.de>
8568 * genmatch.c (dt_simplify::gen): Skip captures that are
8570 (parser::parse_expr): Allow captures in results too.
8571 * builtins.c (fold_builtin_cexp): Delete.
8572 (fold_builtin_1): Handle constant cexp arguments here.
8573 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
8575 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
8577 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
8578 conditional compilation.
8579 (base_pool_allocator::remove): Use flag_checking.
8581 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
8583 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
8586 * dojump.c (do_compare_and_jump): Canonicalize both function and
8589 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
8592 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
8595 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8598 * ipa-polymorphic-call.c
8599 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
8600 instance offset with offset of outer type.
8602 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8604 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
8606 2015-10-23 Caroline Tice <cmtice@google.com>
8608 (from Richard Biener
8609 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
8610 call to iterative_hash_host_wide_int.
8612 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8614 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
8617 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8619 * tree-vect-generic.c (expand_vector_operations_1): Check
8620 optab exists before use it.
8622 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8624 * tree-vect-generic.c (expand_vector_condition): Avoid
8625 uninitialized variable warning.
8627 2015-10-23 Jeff Law <law@redhat.com>
8629 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
8631 (execute_todo): Call it here.
8632 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
8634 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
8636 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8637 Szabolcs Nagy <szabolcs.nagy@arm.com>
8639 * config.gcc (enable_secureplt): Add *-linux*-musl*.
8641 2015-10-23 Jeff Law <law@redhat.com>
8643 PR tree-optimization/67830
8644 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
8645 Explicitly verify the mask has no bits outside the type of
8646 the innermost operands.
8648 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
8649 Szabolcs Nagy <szabolcs.nagy@arm.com>
8651 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
8652 (MUSL_DYNAMIC_LINKER64): Define.
8653 (GNU_USER_DYNAMIC_LINKER32): Update.
8654 (GNU_USER_DYNAMIC_LINKER64): Update.
8655 (CHOOSE_DYNAMIC_LINKER): Update.
8657 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
8658 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
8659 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
8660 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
8661 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
8662 (CHOOSE_DYNAMIC_LINKER): Update.
8663 (INCLUDE_DEFAULTS): Redefine.
8665 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
8667 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8669 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
8670 comparing addresses.
8672 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
8674 * fold-const.c (operand_equal_p): Handle matching of vector
8677 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
8679 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
8681 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
8682 Andrew Pinski <apinski@cavium.com>
8684 PR rtl-optimization/67736
8685 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
8688 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
8691 * tree.c (build_truth_vector_type): Support BLK mode
8692 returned for boolean vector.
8694 2015-10-23 Alan Hayward <alan.hayward@arm.com>
8696 PR tree-optimization/65947
8698 (vect_is_simple_reduction_1): Find condition reductions.
8699 (vect_model_reduction_cost): Add condition reduction costs.
8700 (get_initial_def_for_reduction): Add condition reduction initial var.
8701 (vect_create_epilog_for_reduction): Add condition reduction epilog.
8702 (vectorizable_reduction): Condition reduction support.
8703 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
8704 * doc/sourcebuild.texi (Vector-specific attributes): Document
8707 2015-10-23 Richard Biener <rguenther@suse.de>
8709 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
8712 2015-10-23 Richard Biener <rguenther@suse.de>
8713 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
8715 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
8716 into (A ^ B) - B to match.pd
8717 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
8719 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
8721 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
8723 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
8725 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
8727 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
8728 INTEGER_CST@1)): New simplifier.
8730 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
8732 * builtins.c (integer_valued_real_p): Move to fold-const.c.
8733 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
8734 (fold_builtin_ceil, fold_builtin_round): Delete.
8735 (fold_builtin_1): Handle constant trunc, floor, ceil and round
8737 * convert.c (convert_to_real): Remove narrowing of rounding
8739 * fold-const.h (integer_valued_real_unary_p)
8740 (integer_valued_real_binary_p, integer_valued_real_call_p)
8741 (integer_valued_real_single_p, integer_valued_real_p): Declare.
8742 * fold-const.c (tree_single_nonnegative_warnv_p): Move
8743 name_registered_for_update_p check to SSA_NAME case statement.
8744 Don't call tree_simple_nonnegative_warnv_p for SSA names.
8745 (integer_valued_real_unary_p, integer_valued_real_binary_p)
8746 (integer_valued_real_call_p, integer_valued_real_single_p)
8747 (integer_valued_real_invalid_p): New functions.
8748 (integer_valued_real_p): Move from fold-const.c and rework
8749 to call the functions above. Handle SSA names.
8750 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
8751 * gimple-fold.c (gimple_assign_integer_valued_real_p)
8752 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
8753 (gimple_stmt_integer_valued_real_p): New functions.
8754 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
8755 Fold f(x)->x for the same f if x is known to be integer-valued.
8756 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
8757 the result. Canonicalize floor(x) as trunc(x) if x is
8760 2015-10-23 Tom de Vries <tom@codesourcery.com>
8762 * tree-ssa-structalias.c (intra_create_variable_infos): Use
8763 make_constraint_from.
8765 2015-10-23 Tom de Vries <tom@codesourcery.com>
8767 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
8768 setting of is_full_var in case of a single field.
8770 2015-10-22 Martin Sebor <msebor@redhat.com>
8773 * config/i386/i386.opt: Add missing periods to the ends of sentences.
8774 * config/msp430/msp430.opt: Same.
8776 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
8778 * doc/extend.exp (Global Register Variables): Rewrite.
8780 2015-10-22 Jeff Law <law@redhat.com>
8782 * genattrtab.c (main): If we do not have any annul-true or annul-false
8783 slots, then write out a dummy eligible_for_annul_true or
8784 eligible_for_annul_false as needed.
8786 2015-10-22 Nick Clifton <nickc@redhat.com>
8788 * config/msp430/msp430.opt: Add -msilicon-errata and
8789 -msilicon-errata-warn.
8790 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
8792 * doc/invoke.texi: Document new options.
8794 2015-10-22 Richard Biener <rguenther@suse.de>
8796 PR tree-optimization/58497
8797 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
8798 (expand_vector_operations_1): Use it. Lower operations on
8799 all uniform vectors to scalar operations if the HW supports it.
8801 2015-10-22 Richard Biener <rguenther@suse.de>
8803 PR tree-optimization/19049
8804 PR tree-optimization/65962
8805 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
8806 to strided accesses if single-element interleaving doesn't work.
8808 2015-10-22 Richard Biener <rguenther@suse.de>
8812 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
8813 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
8814 (expand_unop): Likewise.
8816 2015-10-22 Richard Biener <rguenther@suse.de>
8818 * fold-const.c (fold_addr_of_array_ref_difference): Properly
8819 convert operands before folding a MINUS_EXPR.
8820 (fold_binary_loc): Move simplification of MINUS_EXPR on
8821 converted POINTER_PLUS_EXPRs ...
8822 * match.pd: ... here.
8824 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
8826 * builtins.c (fold_builtin_tan): Delete.
8827 (fold_builtin_1): Handle constant tan arguments here.
8828 * match.pd: Simplify (tan (atan x)) to x.
8830 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
8832 * builtins.c (fold_builtin_cproj): Delete.
8833 (fold_builtin_1): Handle constant arguments here.
8834 (build_complex_cproj): Move and rename to...
8835 * tree.c: (build_complex_inf): ...this.
8836 * tree.h (build_complex_inf): Declare.
8837 * match.pd: Fold cproj(x)->x if x has no infinity.
8838 Use build_complex_inf for existing cproj rules.
8840 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8843 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
8844 already have a comparison result.
8846 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8849 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
8850 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
8851 (aarch64_classify_address): Likewise.
8852 (aarch64_secondary_reload): Likewise.
8853 (aarch64_override_options_after_change_1): Adjust.
8854 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
8855 Use aarch64_nopcrelative_literal_loads.
8856 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
8857 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
8860 2015-10-21 Martin Sebor <msebor@redhat.com>
8863 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
8864 (print_filtered_help): Reference aliased option's name and encourage
8865 readers to use it in preference to the alias if the former is not
8866 documented. Mention when using an option is diagnosed.
8867 * gcc.c (display_help): End each sentence with a period.
8869 * common.opt: End each sentence that describes an option with
8871 * config/aarch64/aarch64.opt: Same.
8872 * config/alpha/alpha.opt: Same.
8873 * config/arc/arc.opt: Same.
8874 * config/arm/arm.opt: Same.
8875 * config/avr/avr.opt: Same.
8876 * config/bfin/bfin.opt: Same.
8877 * config/c6x/c6x.opt: Same.
8878 * config/cr16/cr16.opt: Same.
8879 * config/cris/cris.opt: Same.
8880 * config/cris/linux.opt: Same.
8881 * config/darwin.opt: Same.
8882 * config/epiphany/epiphany.opt: Same.
8883 * config/fr30/fr30.opt: Same.
8884 * config/frv/frv.opt: Same.
8885 * config/ft32/ft32.opt: Same.
8886 * config/g.opt: Same.
8887 * config/h8300/h8300.opt: Same.
8888 * config/i386/cygming.opt: Same.
8889 * config/i386/djgpp.opt: Same.
8890 * config/i386/i386.opt: Same.
8891 * config/i386/interix.opt: Same.
8892 * config/i386/mingw-w64.opt: Same.
8893 * config/i386/mingw.opt: Same.
8894 * config/ia64/ia64.opt: Same.
8895 * config/ia64/ilp32.opt: Same.
8896 * config/iq2000/iq2000.opt: Same.
8897 * config/linux.opt: Same.
8898 * config/lm32/lm32.opt: Same.
8899 * config/lynx.opt: Same.
8900 * config/m32c/m32c.opt: Same.
8901 * config/m32r/m32r.opt: Same.
8902 * config/m68k/ieee.opt: Same.
8903 * config/m68k/m68k.opt: Same.
8904 * config/mcore/mcore.opt: Same.
8905 * config/mep/mep.opt: Same.
8906 * config/microblaze/microblaze.opt: Same.
8907 * config/mips/mips.opt: Same.
8908 * config/mmix/mmix.opt: Same.
8909 * config/mn10300/mn10300.opt: Same.
8910 * config/moxie/moxie.opt: Same.
8911 * config/msp430/msp430.opt: Same.
8912 * config/nios2/elf.opt: Same.
8913 * config/nios2/nios2.opt: Same.
8914 * config/nvptx/nvptx.opt: Same.
8915 * config/pa/pa-hpux.opt: Same.
8916 * config/pa/pa-hpux1010.opt: Same.
8917 * config/pa/pa-hpux1111.opt: Same.
8918 * config/pa/pa-hpux1131.opt: Same.
8919 * config/pa/pa.opt: Same.
8920 * config/pa/pa64-hpux.opt: Same.
8921 * config/pdp11/pdp11.opt: Same.
8922 * config/rl78/rl78.opt: Same.
8923 * config/rs6000/476.opt: Same.
8924 * config/rs6000/aix64.opt: Same.
8925 * config/rs6000/darwin.opt: Same.
8926 * config/rs6000/linux64.opt: Same.
8927 * config/rs6000/rs6000.opt: Same.
8928 * config/rs6000/sysv4.opt: Same.
8929 * config/s390/s390.opt: Same.
8930 * config/s390/tpf.opt: Same.
8931 * config/sh/sh.opt: Same.
8932 * config/sol2.opt: Same.
8933 * config/sparc/long-double-switch.opt: Same.
8934 * config/sparc/sparc.opt: Same.
8935 * config/spu/spu.opt: Same.
8936 * config/stormy16/stormy16.opt: Same.
8937 * config/tilegx/tilegx.opt: Same.
8938 * config/tilepro/tilepro.opt: Same.
8939 * config/v850/v850.opt: Same.
8940 * config/vax/vax.opt: Same.
8941 * config/visium/visium.opt: Same.
8942 * config/vms/vms.opt: Same.
8943 * config/vxworks.opt: Same.
8944 * config/xtensa/xtensa.opt: Same.
8946 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8947 Sebastian Pop <s.pop@samsung.com>
8949 * graphite-scop-detection.c (parameter_index_in_region): Update call to
8950 invariant_in_sese_p_rec.
8951 * graphite-sese-to-poly.c (extract_affine): Same.
8952 * sese.c (invariant_in_sese_p_rec): Pass in an extra
8953 parameter has_vdefs.
8954 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
8955 variable depends on virtual definitions in the current region.
8956 * sese.h (invariant_in_sese_p_rec): Update declaration.
8958 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
8959 Sebastian Pop <s.pop@samsung.com>
8961 * graphite-scop-detection.c (build_scops): Do not handle scops
8962 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
8963 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
8965 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
8967 * config.in: Regenerate.
8968 * configure: Regenerate.
8969 * configure.ac (CHECKING_P): Define.
8970 * system.h: Use CHECKING_P.
8972 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8975 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
8976 is negative we don't know the type.
8977 (check_stmt_for_type_change): Skip constructors of non-polymorphic
8978 types as those won't help devirutalization.
8980 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
8982 * fold-const.c (operand_equal_p): Add code matching empty constructors.
8984 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
8986 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
8988 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
8989 Add comments on sign of the result.
8990 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
8991 Recurse on operand #1 instead of operand #0.
8992 <CEIL_MOD_EXPR>: Do not recurse.
8993 <ROUND_MOD_EXPR>: Likewise.
8995 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8997 * cfgrtl.c (pass_free_cfg::execute): Adjust.
8998 * final.c (dbr_sequence_length): Always define.
8999 (shorten_branches): Adjust.
9000 * genattr-common.c (main): Always define DELAY_SLOTS.
9001 * genattr.c (main): Unconditionally declare functions and define
9002 macros related to delay slots.
9003 * genattrtab.c (write_eligible_delay): Adjust.
9004 (main): Always write out delay slot functions.
9005 * opts.c (default_options_table): Adjust.
9006 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
9007 (redirect_with_delay_list_safe_p): Likewise.
9008 (fill_simple_delay_slots): Likewise.
9009 (fill_slots_from_thread): Likewise.
9010 (make_return_insns): Likewise.
9011 (dbr_schedule): Likewise.
9012 (rest_of_handle_delay_slots): Likewise.
9013 (pass_delay_slots::gate): Likewise.
9014 * toplev.c (process_options): Likewise.
9016 2015-10-21 Richard Henderson <rth@redhat.com>
9018 * targhooks.c (default_addr_space_pointer_mode): Remove check
9019 for generic address space.
9020 (default_addr_space_address_mode): Likewise.
9021 (default_addr_space_valid_pointer_mode): Likewise.
9022 (default_addr_space_legitimate_address_p): Likewise.
9023 (default_addr_space_legitimize_address): Likewise.
9024 * target.def (addr_space.pointer_mode): Update documentation
9025 of default behavior.
9026 (addr_space.address_mode): Likewise.
9029 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
9032 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9034 * builtins.c (fold_builtin_cabs): Delete.
9035 (fold_builtin_1): Update accordingly. Handle constant arguments here.
9036 * match.pd: Add rules previously handled by fold_builtin_cabs.
9038 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9040 * fold-const.h (fold_strip_sign_ops): Delete.
9041 * fold-const.c (fold_strip_sign_ops): Likewise.
9042 (fold_unary_loc, fold_binary_loc): Remove calls to it.
9043 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
9044 (fold_builtin_ccos): Delete.
9045 (fold_builtin_pow): Don't call fold_strip_sign_ops.
9046 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
9047 Remove fndecl argument.
9048 (fold_builtin_1): Update calls accordingly. Handle constant
9049 cos, cosh, ccos and ccosh here.
9051 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9053 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
9054 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
9055 * common.opt (fssa-backprop): New option.
9056 * fold-const.h (negate_mathfn_p): Declare.
9057 * fold-const.c (negate_mathfn_p): Make public.
9058 * timevar.def (TV_TREE_BACKPROP): New.
9059 * tree-pass.h (make_pass_backprop): Declare.
9060 * passes.def (pass_backprop): Add.
9061 * gimple-ssa-backprop.c: New file.
9063 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9064 Sebastian Pop <s.pop@samsung.com>
9066 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
9067 Do not call create_empty_if_region_on_edge when cond_expr is true.
9068 (translate_isl_ast_node_for): Check whether a guard has been generated.
9070 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9072 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
9073 (operator=): Removed.
9074 (dr_info): Make alias_set number the last argument with default
9075 value of invalid_alias_set.
9076 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
9078 (rewrite_reductions_out_of_ssa): Iterate only through the
9079 basic blocks which are inside region.
9080 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
9081 * sese.h (struct sese_l): Removed assignment operator.
9082 (split_region_for_bb): Removed dead code.
9084 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
9086 * graphite-poly.h (struct dr_info): Removed conversion constructor.
9087 (struct scop): Renamed scop::region to scop::scop_info
9088 (scop_set_region): Same.
9089 (SCOP_REGION): Removed
9090 (SCOP_CONTEXT): Removed.
9091 (POLY_SCOP_P): Removed.
9092 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
9093 Rename scop->region to scop->scop_info.
9094 (add_parameters_to_ivs_params): Same.
9095 (graphite_regenerate_ast_isl): Same.
9096 * graphite-poly.c (new_scop): Same.
9098 (print_scop_params): Same.
9099 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
9100 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
9101 (dot_all_scops_1): Rename scop->region to scop->scop_info.
9102 (scop_detection::nb_pbbs_in_loops): Same.
9103 (find_scop_parameters): Same.
9104 (try_generate_gimple_bb): Same.
9105 (gather_bbs::before_dom_children): Same.
9106 (gather_bbs::after_dom_children): Same.
9107 (build_scops): Same.
9108 * graphite-sese-to-poly.c (build_scop_scattering): Same.
9109 (extract_affine_chrec): Same.
9110 (extract_affine): Same.
9111 (set_scop_parameter_dim): Same.
9112 (build_loop_iteration_domains): Same.
9113 (create_pw_aff_from_tree): Same.
9114 (add_param_constraints): Same.
9115 (build_scop_iteration_domain): Same.
9116 (build_scop_drs): Same.
9117 (analyze_drs_in_stmts): Same.
9118 (insert_out_of_ssa_copy_on_edge): Same.
9119 (rewrite_close_phi_out_of_ssa):Same.
9120 (rewrite_reductions_out_of_ssa):Same.
9121 (handle_scalar_deps_crossing_scop_limits):Same.
9122 (rewrite_cross_bb_scalar_deps):Same.
9123 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
9124 (build_poly_scop):Same.
9125 (build_alias_set): Use pointer to dr_info.
9126 * graphite.c (print_graphite_scop_statistics):
9127 (graphite_transform_loops):
9128 * sese.h (struct sese_l): Remove conversion constructor.
9130 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9133 * tree.c (verify_type): Verify that TYPE_MODE match
9134 between TYPE_CANONICAL and type.
9135 * expr.c (store_expr_with_bounds): Revert my previous change.
9136 * expmed.c (store_bit_field_1): Revert prevoius change.
9137 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
9138 to match for all types.
9140 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
9142 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
9145 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9147 * doc/tm.texi: Regenerated.
9148 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
9149 * stor-layout.c (layout_type): Use mode to get vector mask size.
9150 * target.def (get_mask_mode): New.
9151 * targhooks.c (default_get_mask_mode): New.
9152 * targhooks.h (default_get_mask_mode): New.
9153 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
9155 * tree.c (MAX_BOOL_CACHED_PREC): New.
9156 (nonstandard_boolean_type_cache): New.
9157 (build_nonstandard_boolean_type): New.
9158 (make_vector_type): Vector mask has no canonical type.
9159 (build_truth_vector_type): New.
9160 (build_same_sized_truth_vector_type): New.
9161 (truth_type_for): Support vector masks.
9162 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
9163 (build_truth_vector_type): New.
9164 (build_same_sized_truth_vector_type): New.
9165 (build_nonstandard_boolean_type): New.
9166 * tree-cfg.c (verify_gimple_comparison) Require boolean
9167 vector type for vector comparison.
9168 (verify_gimple_assign_ternary): Likewise.
9169 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
9171 * tree-vect-stmts.c (vectorizable_condition): Use boolean
9172 vector type for vector comparison.
9173 * tree-vect-generic.c (elem_op_func): Add new operand to hold
9175 (do_unop): Adjust to modified function type.
9176 (do_binop): Likewise.
9177 (do_plus_minus): Likewise.
9178 (do_negate); Likewise.
9179 (expand_vector_piecewise): Likewise.
9180 (do_cond): Likewise.
9181 (do_compare): Use comparison instead of condition.
9182 (expand_vector_divmod): Use boolean vector type for comparison.
9183 (expand_vector_operations_1): Skip scalar mask operations.
9185 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
9187 * omp-low.c (simd_clone_create): Set in_other_partition
9190 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
9192 * doc/extend.exp (Local Register Variables): Rewrite.
9194 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
9196 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
9197 and x*x in cases where the operands are sign ops. Extend these
9198 rules to handle copysign as a sign op (including for cos, cosh
9199 and pow, which already treated negate and abs as sign ops).
9201 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
9204 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
9205 for 64-bit MS_ABI targets also when default incoming stack boundary
9208 2015-10-21 Richard Biener <rguenther@suse.de>
9210 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
9211 cond stmts, enhanced and split out from ...
9212 (vn_phi_eq): ... here.
9214 2015-10-21 Richard Biener <rguenther@suse.de>
9217 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
9218 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
9219 (tree_single_nonnegative_warnv_p): ... here. For SSA names
9220 make sure they are not registered for update.
9222 2015-10-21 Richard Biener <rguenther@suse.de>
9224 PR tree-optimization/68026
9225 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
9226 unsigned VARYING values.
9228 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
9230 * asan.c (asan_emit_stack_protection): Don't pass local stack to
9231 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
9232 NULL and use local stack than.
9233 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
9234 in addition to __asan_init.
9235 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
9236 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
9237 * asan.h (asan_intercepted_p): Handle new string builtins.
9238 * ubsan.c (ubsan_use_new_style_p): New function.
9239 (ubsan_instrument_float_cast): If location is unknown, assign
9240 input_location to loc. Propagate loc to ubsan_create_data if
9241 ubsan_use_new_style_p returned true.
9243 2015-10-21 Jeff Law <law@redhat.com>
9245 * Makefile.in (OBJS): Remove sched-vis.c
9246 * sched-vis.c: Removed. Code moved into...
9247 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
9248 * rtl.h: Remove prototypes for functions now living in print-rtl.c
9249 * print-rtl.h Add prototypes for new functions in print-rtl.c.
9250 * auto-inc-dec.c: Include print-rtl.h
9251 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
9252 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
9254 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
9257 2015-10-21 Richard Biener <rguenther@suse.de>
9258 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
9260 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
9262 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
9263 about signed left shift stronger and clarify the cases when they're
9265 Move (a * (1 << b)) is (a << b) to match.pd.
9266 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
9267 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
9268 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
9270 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
9272 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
9273 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
9274 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
9276 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
9278 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
9280 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
9281 Szabolcs Nagy <szabolcs.nagy@arm.com>
9282 Alan Modra <amodra@gmail.com>
9284 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
9285 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
9286 (LINK_SPEC): Add %(link_secure_plt).
9287 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
9288 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
9290 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
9291 Szabolcs Nagy <szabolcs.nagy@arm.com>
9293 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
9294 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
9296 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9298 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
9300 (fusion_load_store): Use it.
9301 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
9302 ldp and stp in VD modes.
9303 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
9304 (store_pair<mode>, VD): Likewise.
9306 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
9308 PR rtl-optimization/67609
9309 * lra-splill.c (lra_final_code_change): Don't remove all
9312 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9314 * simplify-rtx.c (simplify_binary_operation): If either operand was
9315 a constant pool reference use them if all other simplifications failed.
9317 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9319 * config/aarch64/aarch64.md
9320 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
9321 * config/aarch64/aarch64-simd.md
9322 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
9323 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
9324 (aarch64_fpconst_pow_of_2): New function.
9325 (aarch64_vec_fpconst_pow_of_2): Likewise.
9326 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
9328 (aarch64_vec_fpconst_pow_of_2): Likewise.
9329 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
9330 (aarch64_fp_vec_pow2): Likewise.
9332 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
9334 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
9335 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
9336 * config/alpha/alpha.c (alpha_function_arg_advance): Update
9337 ALPHA_ARG_SIZE usage.
9338 (alpha_arg_partial_bytes): Ditto.
9340 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9343 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
9344 error_mark_node decls.
9346 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
9350 * common/config/i386/i386-common.c (ix86_handle_option): Remove
9351 OPT_miamcu handling.
9352 * config/i386/i386.c (PTA_NO_80387): New macro.
9353 (processor_alias_table): Add PTA_NO_80387 to lakemont.
9354 (ix86_option_override_internal): Update MASK_80387 from
9355 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
9356 SSE math only if 80387 is supported. Don't change
9358 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
9360 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
9361 if TARGET_80387 is true and TARGET_IAMCU is false.
9362 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
9363 is true and TARGET_IAMCU_P is false.
9365 2015-10-20 Richard Biener <rguenther@suse.de>
9367 PR tree-optimization/68017
9368 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
9370 2015-10-20 Martin Liska <mliska@suse.cz>
9372 * cgraphclones.c (cgraph_node::create_virtual_clone):
9373 Verify cgraph_node.local.versionable instead of calling
9374 tree_versionable_function_p.
9375 * ipa-cp.c (determine_versionability): Save the information
9376 to ipa_node_params summary.
9377 (ipcp_versionable_function_p): Use it.
9378 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
9379 (ipcp_generate_summary): Do not compute cgraph_node
9381 * ipa-inline-analysis.c (inline_generate_summary): Compute
9382 versionability for all cgraph nodes.
9383 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
9384 ipa_node_params::versionability.
9385 * ipa-prop.h (struct ipa_node_params): Declare it.
9387 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9390 * varasm.c (assemble_variable): Move special vtv handling to..
9391 (handle_vtv_comdat_sections): .. here. New function.
9392 (output_object_block): Handle vtv sections.
9394 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
9397 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
9399 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
9401 * doc/extend.texi: Update documentation WRT inline functions.
9403 2015-10-20 Alan Modra <amodra@gmail.com>
9406 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
9407 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
9408 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
9410 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
9412 PR rtl-optimization/66790
9413 * df.h (DF_MIR): New macro.
9414 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
9415 (DF_MIR_INFO_BB): New macro.
9416 (DF_MIR_IN, DF_MIR_OUT): New macros.
9417 (struct df_mir_bb_info): New.
9418 (df_mir): New macro.
9419 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
9421 (df_mir_get_bb_info): New.
9422 * df-problems.c (struct df_mir_problem_data): New.
9423 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
9424 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
9425 df_mir_confluence_0, df_mir_confluence_n,
9426 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
9427 df_mir_bottom_dump, df_mir_verify_solution_start,
9428 df_mir_verify_solution_end): New.
9430 (df_mir_add_problem, df_mir_simulate_one_insn): New.
9431 * timevar.def (TV_DF_MIR): New.
9432 * ree.c: Include bitmap.h
9433 (add_removable_extension): Add an INIT_REGS parameter. Use it
9434 to skip zero-extensions that may get an uninitialized register.
9435 (find_removable_extensions): Compute must-initialized registers
9436 using the MIR dataflow problem. Update the call to
9437 add_removable_extension.
9438 (find_and_remove_re): Call df_mir_add_problem.
9440 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
9442 * common/config/mn10300/mn10300-common.c
9443 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
9444 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
9446 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
9448 * doc/extend.texi (Explicit Register Variables): Simplify and
9449 avoid unnecessary and confusion abbreviations. Update cross
9451 doc/implement-c.tex: Update cross reference.
9453 2015-10-19 Jeff Law <law@redhat.com>
9455 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
9456 that create irreducible loops unless the path elimiantes a multiway
9459 2015-10-19 Richard Biener <rguenther@suse.de>
9461 PR tree-optimization/67975
9462 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
9463 * tree-cfg.c (extract_true_false_controlled_edges): Split out
9464 core worker from ...
9465 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
9466 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
9467 instead of block number for PHIs with two or one args.
9468 (vn_phi_eq): Compare edge predicates of PHIs that are in different
9471 2015-10-19 Richard Biener <rguenther@suse.de>
9473 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
9474 (gimple_stmt_nonnegative_warnv_p): Use it.
9475 * match.pd (CPROJ): New operator list.
9476 (cproj (complex ...)): Move simplifications from ...
9477 * builtins.c (fold_builtin_cproj): ... here.
9479 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9481 * config/i386/i386.c (ix86_expand_vector_move): Use
9482 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
9485 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9487 * doc/invoke.texi: Replace @optindex with @opindex.
9489 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
9492 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
9493 arch= is set, clear all bits in x_ix86_isa_flags, except for
9494 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
9496 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
9499 * common.opt (fkeep-static-functions): New option.
9500 * doc/invoke.texi: Document it.
9501 * cgraphunit.c (cgraph_node::finalize_function): Use it.
9503 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9505 * sched-int.h (struct autopref_multipass_data_): Remove offset
9506 field. Add min_offset, max_offset, multi_mem_insn_p fields.
9507 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
9508 (autopref_multipass_init): Use it. Handle PARALLEL sets.
9509 (autopref_rank_data): New function.
9510 (autopref_rank_for_schedule): Use it.
9511 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
9513 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
9516 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
9518 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9520 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
9521 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
9522 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
9523 (STANDARD_STARTFILE_PREFIX_1): New.
9524 (STANDARD_STARTFILE_PREFIX_2): New.
9526 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9528 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
9529 (darwin_driver_init): Note a version-min when provided on the c/l.
9530 * config/darwin.h (%darwin_minversion): Remove.
9531 * config/i386/darwin.h: Likewise.
9532 * config/rs6000/darwin.h: Likewise.
9533 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
9534 rather than an arbitrary constant.
9536 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9538 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
9539 PPC, detect conflicts between -arch and multilib settings. Detect
9540 and warn about conflicts between multiple -arch definitions.
9542 2015-10-18 Iain Sandoe <iain@codesourcery.com>
9544 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
9546 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9548 * lra-constraints.c (add_next_usage_insn): Change argument type
9549 from rtx to rtx_insn *.
9551 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
9553 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
9556 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
9558 * config/tilepro/gen-mul-tables.cc: Adjust include files.
9559 * config/tilegx/mul-tables.c: Regenerate.
9560 * config/tilepro/mul-tables.c: Regenerate.
9562 * config/tilegx/tilegx-c.c: Adjust include files.
9563 * config/tilegx/tilegx.c: Likewise.
9564 * config/tilepro/tilepro-c.c: Likewise.
9565 * config/tilepro/tilepro.c: Likewise.
9566 * config/aarch64/aarch64-builtins.c: Likewise.
9567 * config/aarch64/aarch64.c: Likewise.
9568 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
9569 * config/alpha/alpha.c: Likewise.
9570 * config/arc/arc.c: Likewise.
9571 * config/arm/aarch-common.c: Likewise.
9572 * config/arm/arm-builtins.c: Likewise.
9573 * config/arm/arm-c.c: Likewise.
9574 * config/arm/arm.c: Likewise.
9575 * config/avr/avr-c.c: Likewise.
9576 * config/avr/avr-devices.c: Likewise.
9577 * config/avr/avr-log.c: Likewise.
9578 * config/avr/avr.c: Likewise.
9579 * config/bfin/bfin.c: Likewise.
9580 * config/c6x/c6x.c: Likewise.
9581 * config/cr16/cr16.c: Likewise.
9582 * config/cris/cris.c: Likewise.
9583 * config/darwin-c.c: Likewise.
9584 * config/darwin-driver.c: Likewise.
9585 * config/darwin.c: Likewise.
9586 * config/default-c.c: Likewise.
9587 * config/epiphany/epiphany.c: Likewise.
9588 * config/epiphany/mode-switch-use.c: Likewise.
9589 * config/epiphany/resolve-sw-modes.c: Likewise.
9590 * config/fr30/fr30.c: Likewise.
9591 * config/frv/frv.c: Likewise.
9592 * config/ft32/ft32.c: Likewise.
9593 * config/glibc-c.c: Likewise.
9594 * config/h8300/h8300.c: Likewise.
9595 * config/i386/host-cygwin.c: Likewise.
9596 * config/i386/host-mingw32.c: Likewise.
9597 * config/i386/i386-c.c: Likewise.
9598 * config/i386/i386.c: Likewise.
9599 * config/i386/msformat-c.c: Likewise.
9600 * config/i386/winnt-cxx.c: Likewise.
9601 * config/i386/winnt-stubs.c: Likewise.
9602 * config/i386/winnt.c: Likewise.
9603 * config/ia64/ia64-c.c: Likewise.
9604 * config/ia64/ia64.c: Likewise.
9605 * config/iq2000/iq2000.c: Likewise.
9606 * config/lm32/lm32.c: Likewise.
9607 * config/m32c/m32c-pragma.c: Likewise.
9608 * config/m32c/m32c.c: Likewise.
9609 * config/m32r/m32r.c: Likewise.
9610 * config/mcore/mcore.c: Likewise.
9611 * config/mep/mep-pragma.c: Likewise.
9612 * config/mep/mep.c: Likewise.
9613 * config/microblaze/microblaze-c.c: Likewise.
9614 * config/microblaze/microblaze.c: Likewise.
9615 * config/mips/mips-tables.opt
9616 * config/mips/mips.c: Likewise.
9617 * config/mmix/mmix.c: Likewise.
9618 * config/mn10300/mn10300.c: Likewise.
9619 * config/moxie/moxie.c: Likewise.
9620 * config/msp430/msp430-c.c: Likewise.
9621 * config/msp430/msp430.c: Likewise.
9622 * config/nds32/nds32-cost.c: Likewise.
9623 * config/nds32/nds32-fp-as-gp.c: Likewise.
9624 * config/nds32/nds32-intrinsic.c: Likewise.
9625 * config/nds32/nds32-isr.c: Likewise.
9626 * config/nds32/nds32-md-auxiliary.c: Likewise.
9627 * config/nds32/nds32-memory-manipulation.c: Likewise.
9628 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
9629 * config/nds32/nds32-predicates.c: Likewise.
9630 * config/nds32/nds32.c: Likewise.
9631 * config/nios2/nios2.c: Likewise.
9632 * config/nvptx/mkoffload.c: Likewise.
9633 * config/nvptx/nvptx.c: Likewise.
9634 * config/pa/pa.c: Likewise.
9635 * config/pdp11/pdp11.c: Likewise.
9636 * config/rl78/rl78-c.c: Likewise.
9637 * config/rl78/rl78.c: Likewise.
9638 * config/rs6000/host-darwin.c: Likewise.
9639 * config/rs6000/rs6000-c.c: Likewise.
9640 * config/rs6000/rs6000-linux.c: Likewise.
9641 * config/rs6000/rs6000.c: Likewise.
9642 * config/rx/rx.c: Likewise.
9643 * config/s390/s390-c.c: Likewise.
9644 * config/s390/s390.c: Likewise.
9645 * config/sh/sh-c.c: Likewise.
9646 * config/sh/sh-mem.cc: Likewise.
9647 * config/sh/sh.c: Likewise.
9648 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
9649 * config/sh/sh_treg_combine.cc: Likewise.
9650 * config/sol2-c.c: Likewise.
9651 * config/sol2-cxx.c: Likewise.
9652 * config/sol2-stubs.c: Likewise.
9653 * config/sol2.c: Likewise.
9654 * config/sparc/sparc-c.c: Likewise.
9655 * config/sparc/sparc.c: Likewise.
9656 * config/spu/spu-c.c: Likewise.
9657 * config/spu/spu.c: Likewise.
9658 * config/stormy16/stormy16.c: Likewise.
9659 * config/v850/v850-c.c: Likewise.
9660 * config/v850/v850.c: Likewise.
9661 * config/vax/vax.c: Likewise.
9662 * config/visium/visium.c: Likewise.
9663 * config/vms/vms-c.c: Likewise.
9664 * config/vms/vms.c: Likewise.
9665 * config/vxworks.c: Likewise.
9666 * config/winnt-c.c: Likewise.
9667 * config/xtensa/xtensa.c: Likewise.
9669 2015-10-16 Christian Bruel <christian.bruel@st.com>
9672 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
9673 (FUNCTION_BOUNDARY_P): New macro:
9674 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
9676 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
9677 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
9678 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
9679 * function.c (allocate_struct_function): Call
9680 relayout_function hook.
9681 * passes.c (rest_of_decl_compilation): Likewise.
9683 2015-10-16 Christian Bruel <christian.bruel@st.com>
9686 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
9687 * config/arm/arm.c (arm_option_override_internal): Call
9688 arm_override_options_after_change_1.
9689 (arm_override_options_after_change): New function.
9690 (arm_override_options_after_change_1): Likewise.
9691 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
9693 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9696 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9699 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
9701 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
9702 argument is an ADDR_EXPR.
9704 2015-10-16 Richard Biener <rguenther@suse.de>
9706 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
9707 and get rid of force_gimple_operand_gsi.
9708 (gimple_fold_builtin_memory_chk): Likewise.
9709 (gimple_fold_builtin_stxcpy_chk): Likewise.
9710 (rewrite_to_defined_overflow): Likewise.
9711 (gimple_convert_to_ptrofftype): New function.
9712 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
9714 2015-10-16 Richard Biener <rguenther@suse.de>
9716 * tree-nested.h (build_addr): Adjust prototype.
9717 * tree-nested.c (build_addr): Remove context argument and use
9719 (get_static_chain): Adjust calls to build_addr.
9720 (convert_nl_goto_reference): Likewise.
9721 (convert_tramp_reference_op): Likewise.
9722 (finalize_nesting_tree_1): Likewise.
9723 * value-prof.c (gimple_ic): Likewise.
9724 * gimple-low.c (lower_builtin_setjmp): Likewise.
9725 * tree-parloops.c (take_address_of): Likewise.
9726 (create_call_for_reduction_1): Likewise.
9727 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
9728 (gimple_gen_ic_func_profiler): Likewise.
9730 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
9732 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
9735 2015-10-16 Michael Collison <michael.collison@linaro.org>
9736 Andrew Pinski <andrew.pinski@caviumnetworks.com>
9738 * match.pd ((x < y) && (x < z) -> x < min (y,z),
9739 (x > y) and (x > z) -> x > max (y,z))
9741 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
9742 Szabolcs Nagy <szabolcs.nagy@arm.com>
9744 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
9745 (DYNAMIC_LINKER): Renamed to ...
9746 (GLIBC_DYNAMIC_LINKER): This.
9747 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
9749 2015-10-15 Marek Polacek <polacek@redhat.com>
9751 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
9752 gimple_call_builtin instead of is_gimple_call.
9754 2015-10-15 Richard Biener <rguenther@suse.de>
9756 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
9758 2015-10-15 Richard Biener <rguenther@suse.de>
9760 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
9761 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
9762 * tree-vect-loop.c (get_initial_def_for_induction): Drop
9763 use of force_gimple_operand in favor of gimple_build.
9764 Use vect_get_new_ssa_name.
9765 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
9766 (vectorizable_mask_load_store): Likewise.
9767 (vectorizable_call): Likewise.
9768 (vectorizable_store): Likewise.
9769 (vectorizable_load): Likewise.
9770 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
9772 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
9774 PR tree-optimization/67945
9775 * tree-pass.h (PROP_gimple_opt_math): New property flag.
9776 * generic-match-head.c (canonicalize_math_p): New function.
9777 * gimple-match-head.c: Include tree-pass.h.
9778 (canonicalize_math_p): New function.
9779 * match.pd: Group math built-in rules into simplifications
9780 and canonicalizations. Guard the latter with canonicalize_math_p.
9781 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
9782 PROP_gimple_opt_math property.
9784 2015-10-15 Marek Polacek <polacek@redhat.com>
9786 PR tree-optimization/67953
9787 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
9789 2015-10-15 Jiong Wang <jiong.wang@arm.com>
9791 * config.gcc: Recognize "." in architecture base name for AArch64.
9793 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9795 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
9797 * config/mips/mips.c (mips_setup_incoming_varargs): Use
9798 ROUND_DOWN to calculate off.
9799 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
9800 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
9803 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
9805 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
9807 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
9808 Torvald Riegel <triegel@redhat.com>
9811 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
9812 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9813 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
9814 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
9815 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
9816 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
9817 trechkpt, treclaim, tsr, ttest): New define_expands.
9818 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
9819 __TM_FENCE__ for htm.
9820 * doc/extend.texi: Update documentation for htm builtins.
9822 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
9825 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
9826 REG_CFA_EXPRESSION to aligned SSE stores.
9828 2015-10-14 Jeff Law <law@redhat.com>
9830 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
9831 num_threaded_edges for successful FSM threads too.
9833 2015-10-14 Richard Biener <rguenther@suse.de>
9835 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
9836 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
9837 (vect_get_vec_def_for_operand): Remove unused parameter.
9838 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
9839 (vect_create_epilog_for_reduction): Likewise.
9840 (vectorizable_reduction): Likewise.
9841 (vectorizable_live_operation): Likewise.
9842 * tree-vect-patterns.c (type_conversion_p): Likewise.
9843 (vect_recog_vector_vector_shift_pattern): Likewise.
9844 (check_bool_pattern): Likewise.
9845 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
9846 (vect_analyze_slp_cost_1): Likewise.
9847 * tree-vect-stmts.c (process_use): Likewise.
9848 (vect_get_vec_def_for_operand): Do not handle reductions.
9849 (vect_get_vec_defs): Adjust.
9850 (vectorizable_mask_load_store): Likewise.
9851 (vectorizable_call): Likewise.
9852 (vectorizable_simd_clone_call): Likewise.
9853 (vect_get_loop_based_defs): Likewise.
9854 (vectorizable_conversion): Likewise.
9855 (vectorizable_assignment): Likewise.
9856 (vectorizable_shift): Likewise.
9857 (vectorizable_operation): Likewise.
9858 (vectorizable_store): Likewise.
9859 (vectorizable_load): Likewise.
9860 (vect_is_simple_cond): Likewise.
9861 (vectorizable_condition): Likewise.
9862 (vect_is_simple_use): Remove unused parameters.
9863 (vect_is_simple_use_1): Adjust and rename.
9865 2015-10-14 Richard Biener <rguenther@suse.de>
9867 PR tree-optimization/67915
9868 * match.pd: Handle comparisons of addresses of STRING_CSTs.
9869 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
9870 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
9871 stmt folding in favor of GIMPLE one.
9873 2015-10-14 Marek Polacek <polacek@redhat.com>
9875 PR tree-optimization/67815
9876 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
9877 (reassociate_bb): Call it.
9879 2015-10-14 Richard Biener <rguenther@suse.de>
9881 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9882 Reset info at start.
9883 (vect_analyze_group_access_1): Add debug print.
9884 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
9885 (vect_compute_single_scalar_iteration_cost): ... to this.
9886 (vect_analyze_loop_2): Adjust.
9887 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
9888 * tree-vectorizer.h: ... here.
9889 (add_stmt_info_to_vec): Remove.
9890 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
9892 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
9894 * targhooks.c (default_target_option_pragma_parse): Do not warn if
9895 called on behalf of "#pragma GCC pop_options".
9897 2015-10-14 Tom de Vries <tom@codesourcery.com>
9899 * cfganal.c (verify_no_unreachable_blocks): New function.
9900 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
9901 verify_no_unreachable_blocks.
9902 cfganal.h (verify_no_unreachable_blocks): Declare.
9904 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
9906 * common.opt: Add flag_checking.
9907 * system.h (CHECKING_P): Define.
9909 2015-10-13 Jakub Jelinek <jakub@redhat.com>
9910 Aldy Hernandez <aldyh@redhat.com>
9911 Ilya Verbin <ilya.verbin@intel.com>
9913 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
9914 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
9915 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
9916 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
9917 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
9918 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
9919 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
9920 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
9921 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
9922 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
9923 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
9924 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
9925 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
9926 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
9927 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
9928 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
9929 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
9930 (struct cgraph_simd_clone_arg): Adjust comment.
9931 * coretypes.h (struct gomp_ordered): New forward decl.
9932 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
9933 set critical clauses to it.
9934 (gimple_build_omp_ordered): Return gomp_ordered * instead of
9935 gimple *. Add CLAUSES argument, set ordered clauses to it.
9936 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
9938 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
9939 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
9940 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
9941 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
9942 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
9943 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
9944 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
9945 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
9947 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
9948 (gomp_critical): Add clauses field.
9949 (gomp_ordered): New struct.
9950 (is_a_helper <gomp_ordered *>::test): New inline.
9951 (gimple_build_omp_critical): Add CLAUSES argument.
9952 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
9953 instead of gimple *.
9954 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
9955 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
9956 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
9957 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
9959 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
9960 (dump_gimple_omp_target): Handle enter data and exit data.
9961 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
9962 (dump_gimple_omp_critical): Print clauses.
9963 (dump_gimple_omp_ordered): New function.
9964 (dump_gimple_omp_task): Handle taskloop.
9965 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
9967 * gimple-walk.c (walk_gimple_op): Walk clauses on
9968 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
9969 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
9970 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
9971 (struct gimplify_omp_ctx): Add loop_iter_var,
9972 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
9973 and target_firstprivatize_array_bases fields.
9974 (delete_omp_context): Release loop_iter_var.
9975 (gimplify_bind_expr): Handle ORT_NONE.
9976 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
9977 ORT_COMBINED_TARGET.
9978 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
9979 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
9980 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
9981 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
9982 ctx->target_map_scalars_firstprivate.
9983 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
9984 data sharing clauses. For data sharing clause with VLA decl
9985 on omp target/target data don't add firstprivate for the pointer.
9986 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
9987 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
9988 the addition of ORT_COMBINED_TARGET.
9989 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
9990 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
9991 pointers as zero length array sections and
9992 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
9994 (omp_check_private): Handle omp_member_access_dummy_var vars.
9995 (find_decl_expr): New function.
9996 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
9997 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
9998 Handle OMP_CLAUSE_GANG separately. Handle
9999 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10000 clauses. Diagnose linear clause on combined
10001 distribute {, parallel for} simd construct, unless it is the loop
10002 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
10003 Handle map clauses with COMPONENT_REF. Initialize
10004 ctx->target_map_scalars_firstprivate,
10005 ctx->target_firstprivatize_array_bases and
10006 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
10007 linear clause even to target region if combined. Remove
10008 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
10009 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
10010 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
10011 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
10012 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
10013 For linear clause on worksharing loop combined with parallel add
10014 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
10015 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
10016 omp_member_access_dummy_var vars. Add lastprivate clause to outer
10017 taskloop if needed.
10018 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
10019 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
10020 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
10022 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
10023 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
10024 in target body. Handle removal of struct mapping if struct is not
10025 seen in target body. Remove GOMP_MAP_STRUCT map clause on
10026 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
10027 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
10028 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
10029 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
10030 clause appear together. Handle
10031 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
10032 clause if it has map-type-modifier always. Handle
10033 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
10035 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
10036 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
10038 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
10039 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
10040 iterators in doacross loops.
10041 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
10042 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
10043 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
10044 for the addition of ORT_COMBINED_TARGET.
10045 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
10046 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
10047 and OMP_TARGET_EXIT_DATA.
10048 (gimplify_omp_ordered): New function.
10049 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
10050 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
10051 Gimplify clauses on OMP_CRITICAL.
10052 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
10053 expand_GOMP_SIMD_ORDERED_END): New functions.
10054 * internal-fn.def (GOMP_SIMD_ORDERED_START,
10055 GOMP_SIMD_ORDERED_END): New internal functions.
10056 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
10057 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
10058 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
10059 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
10060 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
10061 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
10062 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
10063 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
10064 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
10065 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
10066 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
10067 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
10068 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
10069 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
10071 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
10072 GOMP_target_data_41, adjust type.
10073 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
10074 GOMP_target_update_41, adjust type.
10075 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
10077 (struct omp_for_data): Add ordered and simd_schedule fields.
10078 (omp_member_access_dummy_var, unshare_and_remap_1,
10079 unshare_and_remap, is_taskloop_ctx): New functions.
10080 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
10081 (extract_omp_for_data): Handle taskloops and doacross loops
10082 and simd schedule modifier.
10083 (omp_adjust_chunk_size): New function.
10084 (get_ws_args_for): Use it.
10085 (lookup_sfield): Change first argument to splay_tree_key,
10086 add overload with first argument tree.
10087 (maybe_lookup_field): Likewise.
10088 (use_pointer_for_field): Handle omp_member_access_dummy_var.
10089 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
10090 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
10091 (build_outer_var_ref): Add LASTPRIVATE argument, handle
10092 taskloops and omp_member_access_dummy_var vars.
10093 (build_sender_ref): Change first argument to splay_tree_key,
10094 add overload with first argument tree.
10095 (install_var_field): For mask & 8 use &DECL_UID as key instead
10096 of the tree itself.
10097 (fixup_child_record_type): Const qualify *.omp_data_i.
10098 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
10099 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
10100 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
10101 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
10102 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
10103 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
10104 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
10106 (add_taskreg_looptemp_clauses): New function.
10107 (scan_omp_parallel): Use it.
10108 (scan_omp_task): Likewise.
10109 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10110 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
10111 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10112 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
10113 sandwiched taskloop constructs. Type check
10114 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
10115 region. Diagnose depend(source) or depend(sink:...) on
10116 target constructs or task/taskloop.
10117 (handle_simd_reference): Use get_name.
10118 (lower_rec_input_clauses): Likewise. Ignore all
10119 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
10120 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
10121 before passing it to omp_clause_{default,copy}_ctor. Handle
10122 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
10123 lastprivate_firstprivate flag for linear that needs copyin and
10124 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
10125 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
10126 on taskloop lookup decl in outer context. Pass true to
10127 build_outer_var_ref lastprivate argument. Handle
10128 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
10129 outside of outer taskloop for.
10130 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
10132 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
10133 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
10134 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
10135 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
10136 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
10137 abstract origin. Handle omp_member_access_dummy_var vars.
10138 (expand_parallel_call): Use expand_omp_build_assign.
10139 (expand_task_call): Handle taskloop construct expansion. Add
10140 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
10141 integers. Add priority argument to GOMP_task* calls. Or in
10142 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
10144 (expand_omp_build_assign): Add prototype. Add AFTER
10145 argument, if true emit statements after *GSI_P and continue linking.
10146 (expand_omp_taskreg): Adjust expand_task_call caller.
10147 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
10148 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
10149 zero_iter2_bb and first_zero_iter2 arguments, handle computation
10150 of counts even for ordered loops.
10151 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
10152 (expand_omp_ordered_source, expand_omp_ordered_sink,
10153 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
10155 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
10156 clauses on worksharing loop. Handle DOACROSS loop expansion.
10157 (expand_omp_for_static_nochunk): Handle linear clauses on
10158 worksharing loop. Adjust expand_omp_for_init_counts
10160 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
10161 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
10162 expand_omp_for_init_counts callers.
10163 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
10165 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
10166 Handle doacross loops.
10167 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10168 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
10169 GOMP_target_{41,update_41,enter_exit_data} libcalls.
10170 (expand_omp): Don't expand ordered depend constructs here, record
10171 ord_stmt instead for later expand_omp_for_generic.
10172 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10173 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10174 clause as stand-alone directive.
10175 (lower_omp_ordered_clauses): New function.
10176 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
10177 don't lower anything.
10178 (lower_omp_for_lastprivate): Use last _looptemp_ clause
10179 on taskloop for comparison.
10180 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
10181 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
10182 expansion for linear adjustments.
10183 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
10184 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
10185 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
10186 to tree * pointing to the stmt's clauses.
10187 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
10188 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
10189 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
10190 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
10191 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
10192 clauses. Always use short kind and 8-bit align shift.
10193 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
10194 (struct lower_omp_regimplify_operands_data): New type.
10195 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
10197 (lower_omp_1): Use lower_omp_regimplify_operands instead of
10198 gimple_regimplify_operands.
10199 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
10200 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
10201 clause as stand-alone directive.
10202 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
10203 (simd_clone_mangle): Mangle the various linear kinds
10205 (simd_clone_adjust_argument_types): Handle
10206 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
10207 (simd_clone_init_simd_arrays): Don't do anything for uval.
10208 (simd_clone_adjust): Handle
10209 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
10210 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
10211 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
10212 * omp-low.h (omp_member_access_dummy_var): New prototype.
10213 * passes.def (pass_simduid_cleanup): Schedule another copy of the
10214 pass after all optimizations.
10215 * tree.c (omp_clause_code_name): Add entries for
10216 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10217 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10218 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
10219 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
10220 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
10221 OMP_CLAUSE_REDUCTION 5 arguments. Handle
10222 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10223 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
10225 * tree-core.h (enum omp_clause_linear_kind): New.
10226 (struct tree_omp_clause): Change type of map_kind
10227 from unsigned char to unsigned int. Add subcode.if_modifier
10228 and subcode.linear_kind fields.
10229 (enum omp_clause_code): Add
10230 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
10231 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
10232 (OMP_CLAUSE_REDUCTION): Document
10233 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10234 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
10235 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
10236 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
10238 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
10240 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
10242 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
10243 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
10245 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
10246 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
10247 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
10248 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
10249 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
10250 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
10251 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
10252 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
10253 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
10254 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
10255 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
10256 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
10257 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
10258 * tree-inline.c (remap_gimple_stmt): Handle clauses on
10259 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
10260 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
10261 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
10262 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10263 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10264 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
10265 (convert_local_omp_clauses): Likewise.
10266 * tree-pretty-print.c (dump_omp_clause): Handle
10267 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
10268 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
10269 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
10270 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
10271 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
10272 GOMP_MAP_FORCE_DEALLOC. Handle
10273 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
10274 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
10275 and clauses on OMP_ORDERED and OMP_CRITICAL.
10276 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
10277 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
10278 (vectorize_loops): Adjust comments.
10279 (pass_simduid_cleanup::execute): Likewise.
10280 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
10281 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
10282 * wide-int.h (wi::gcd): New.
10284 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10286 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
10287 (ix86_function_arg_advance): Ditto.
10288 (ix86_function_arg): Ditto.
10289 (ix86_gimplify_va_arg): Ditto.
10290 (ix86_class_max_nregs): Ditto.
10291 (inline_memory_move_cost): Ditto.
10292 (ix86_set_reg_reg_cost): Ditto.
10293 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
10295 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
10297 PR middle-end/67912
10298 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
10300 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
10302 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
10303 ROUND_UP macro and UNITS_PER_WORD * 2.
10304 * config/sparc/sparc.c (sparc_compute_frame_size):
10305 Use ROUND_UP and ROUND_DOWN macros where applicable.
10306 (function_arg_record_value, function_arg_record_value_1)
10307 (function_arg_record_value_1): Ditto.
10308 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
10309 alignment to double-word.
10310 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
10311 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
10314 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
10316 * rtl.h (print_insn): Fix prototype.
10318 2015-10-13 Tom de Vries <tom@codesourcery.com>
10320 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
10321 -1. Add assert that returned entry matches phi argument.
10322 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
10323 free_stmt_vec_info_vec ...
10324 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
10327 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
10329 PR tree-optimization/67909, 67947
10330 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
10331 really skip the inner loop.
10333 2015-10-13 Jeff Law <law@redhat.com>
10335 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10336 Allow single block jump threading paths.
10338 2015-10-13 Tom de Vries <tom@codesourcery.com>
10340 PR tree-optimization/67476
10341 * doc/invoke.texi (@item parloops-schedule): New item.
10342 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
10343 * tree-parloops.c: Include params-enum.h.
10344 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
10346 2015-10-13 Tom de Vries <tom@codesourcery.com>
10348 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
10349 * params-enum.h: New file.
10350 * opts.c (handle_param): Handle case that param arg is a string.
10351 * params-list.h: Handle DEFPARAMENUM5 in params.def.
10352 * params.c (find_param): New function, factored out of ...
10353 (set_param_value): ... here.
10354 (param_string_value_p): New function.
10355 * params.h (struct param_info): Add value_names field.
10356 (find_param, param_string_value_p): Declare.
10358 2015-10-13 Tom de Vries <tom@codesourcery.com>
10360 PR tree-optimization/67476
10361 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
10363 2015-10-13 Richard Biener <rguenther@suse.de>
10365 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
10366 the data dependence vector.
10367 (vect_peeling_hash_insert): Get the peeling hash table as argument.
10368 (vect_peeling_hash_get_lowest_cost): Likewise.
10369 (vect_enhance_data_refs_alignment): Adjust.
10370 (struct _vect_peel_info, struct _vect_peel_extended_info,
10371 struct peel_info_hasher): Move from ...
10372 * tree-vectorizer.h: ... here.
10373 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
10374 (LOOP_VINFO_PEELING_HTAB): Likewise.
10375 (struct _loop_vec_info): Remove min_profitable_iters and
10376 peeling_htab members.
10377 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
10379 (destroy_loop_vec_info): Adjust.
10380 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
10381 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
10382 to estimate alias versioning cost.
10383 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
10385 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
10387 * real.h (real_isinteger): Declare.
10388 * real.c (real_isinteger): New function.
10389 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
10390 if y is an even integer.
10392 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10395 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10396 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10397 counts when these are more informative.
10399 2015-10-12 Jeff Law <law@redhat.com>
10401 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
10402 (fsm_find_control_stmt_paths): Change name of first argument to
10403 more accurately relfect what it really is. Handle simplification
10404 of GIMPLE_COND after finding a thread path for NAME.
10405 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
10406 nontrivial conditions to be handled by FSM threader.
10407 (thread_through_normal_block): Extract the name to looup via
10408 FSM threader from COND_EXPR.
10410 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
10411 restriction that traced SSA_NAME is a user variable.
10413 2015-10-12 Tom de Vries <tom@codesourcery.com>
10415 PR tree-optimization/67476
10416 * omp-low.c (expand_omp_for_generic): Add missing phis.
10418 2015-10-12 Tom de Vries <tom@codesourcery.com>
10420 PR tree-optimization/67476
10421 * omp-low.c (expand_omp_for_generic): Handle simple latch.
10423 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
10425 * config/aarch64/aarch64-simd-builtins.def: Update builtins
10426 tables: add tbl3 and tbx4.
10427 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
10428 (aarch64_tbx4v8qi): New.
10429 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
10430 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
10431 Rewrite using builtin functions.
10432 * config/aarch64/iterators.md (UNSPEC_TBX): New.
10434 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10436 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
10438 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
10439 Use ROUND_UP and ROUND_DOWN macros where applicable.
10440 (rs6000_darwin64_record_arg_flush): Ditto.
10441 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
10442 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
10445 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
10447 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
10448 (AARCH64_ROUND_DOWN): Ditto.
10449 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
10451 2015-10-12 Richard Biener <rguenther@suse.de>
10454 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
10455 code that analyzes IVs on each stmt but in a cheaper way avoiding
10456 quadratic behavior.
10458 2015-10-12 Nick Clifton <nickc@redhat.com>
10460 * config/msp430/msp430.c (msp430_mcu_names): Rename to
10461 msp430_mcu_data, add fields for ISA and hardware multiply
10462 support. Import latest data from the devices.csv file.
10463 (msp430_override_option): Use the data from the new array.
10464 (msp430_use_f5_series_hwmult): Likewise.
10465 (use_32bit_hwmult): Likewise.
10466 (msp430_no_hwmult): Likewise.
10467 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
10469 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
10470 not recognised then no hardware multiply support is assumed and
10471 that only the MSP430 ISA is allowed.
10473 2015-10-12 Richard Biener <rguenther@suse.de>
10475 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
10477 (vect_analyze_loop_2): ... here.
10479 2015-10-11 Jason Merrill <jason@redhat.com>
10482 * expr.c (store_field): Call store_constructor directly when
10483 storing a CONSTRUCTOR into a target smaller than its type.
10484 Guard against unsafe bitwise copy.
10486 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10488 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
10489 counts when these are more informative.
10491 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10493 * tree-profile.c (tree_profiling): Do not clear
10494 pure/const when not instrumenting.
10495 (pass tree_profile): Add dump of symtab.
10497 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
10499 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
10501 (fold_addr_of_array_ref_difference): Likewise.
10503 2015-10-11 Jeff Law <law@redhat.com>
10505 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
10506 tree-ssa-threadbackward.c.
10507 (fsm_find_control_statement_thread_paths): Likewise.
10508 (thread_through_normal_block): Break out FSM bits and move them
10509 into a new function in tree-ssa-threadbackward.c. Call new function
10511 Minimize header file usage.
10512 * tree-ssa-threadbackward.h: New file.
10513 * tree-ssa-threadbackward.c: Likewise.
10514 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
10516 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
10518 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
10520 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
10522 PR rtl-optimization/67864
10523 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
10524 fallthrough edges for conditional jumps. Don't sort candidate
10525 edges if not optimizing for speed.
10527 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10529 * defaults.h (REVERSE_CONDITION): New default definition.
10530 * jump.c (reversed_comparison_code_parts): Adjust.
10532 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10534 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
10535 check HARD_FRAME_POINTER_IS_ARG_POINTER.
10537 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10539 * defaults.h (FRAME_ADDR_RTX): New default definition.
10540 * builtins.c (expand_builtin_return_addr): Adjust.
10542 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10544 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
10545 * builtins.c (expand_builtin_return_addr): Adjust.
10547 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10549 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
10550 * builtins.c (expand_builtin_return_addr): Adjust.
10551 * doc/tm.texi: Likewise.
10552 * doc/tm.texi.in: Likewise.
10553 * except.c (expand_builtin_unwind_init): Likewise.
10555 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10557 * builtins.c (expand_builtin_return_addr): Adjust.
10558 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
10560 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10562 * tree.c (type_with_interoperable_signedness): New.
10563 (gimple_canonical_types_compatible_p): Use it.
10564 * tree.h (type_with_interoperable_signedness): Declare
10566 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
10568 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
10569 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
10570 when OEP_ADDRESS_OF is se.
10572 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10573 Sebastian Pop <s.pop@samsung.com>
10575 * graphite-dependences.c (scop_get_dependences): Add dump of the
10576 data dependence graph.
10577 * graphite-poly.c (print_isl_union_map): New.
10578 (debug_isl_union_map): New.
10579 * graphite-poly.h (print_isl_union_map): Declare.
10580 (debug_isl_union_map): Declare.
10582 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
10583 Sebastian Pop <s.pop@samsung.com>
10585 * graphite-poly.c (print_iteration_domain): Remove verbosity.
10586 Remove OpenScop formatting.
10587 (print_iteration_domains): Same.
10588 (debug_iteration_domain): Same.
10589 (debug_iteration_domains): Same.
10592 (dump_gbb_cases): Same.
10593 (dump_gbb_conditions): Same.
10594 (print_pdrs): Same.
10595 (debug_pdrs): Same.
10596 (print_pbb_body): Same.
10598 (print_scop_params): Same.
10599 (print_scop_context): Same.
10600 (print_scop): Same.
10601 (debug_pbb_domain): Same.
10603 (debug_scop_context): Same.
10604 (debug_scop): Same.
10605 (debug_scop_params): Same.
10606 * graphite-poly.h: Same.
10607 * graphite.c (graphite_transform_loops): Same.
10609 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
10611 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
10612 call that isn't needed.
10614 2015-10-09 Jeff Law <law@redhat.com>
10616 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
10617 rather than moving each name to the freelist individually.
10619 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
10621 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
10622 * frame-header-opt.c: New file.
10623 * config/mips/mips-proto.h (mips_register_frame_header_opt):
10625 * config/mips/mips.c (mips_compute_frame_info): Check
10626 optimize_call_stack flag.
10627 (mips_option_override): Register new frame_header_opt pass.
10628 (mips_frame_info, mips_int_mask, mips_shadow_set,
10629 machine_function): Move these types to...
10630 * config/mips/mips.h: here.
10631 (machine_function): Add does_not_use_frame_header and
10632 optimize_call_stack fields.
10633 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
10634 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
10635 Document new flags.
10636 * config/mips/mips.opt (mframe-header-opt): Add new option.
10638 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
10640 * config/i386/i386.c
10641 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
10642 ROUND_DOWN where applicable.
10644 2015-10-09 Jeff Law <law@redhat.com>
10646 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
10649 2015-10-09 Renlin Li <renlin.li@arm.com>
10651 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
10652 operands[0] and operands[2].
10653 (neon_vtrn<mode>_insn): Likewise.
10654 (neon_vzip<mode>_insn): Likewise.
10656 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
10658 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
10659 ((X & C2) << C1): Expand to...
10660 (X {&,^,|} C2 << C1): ...This.
10661 ((X & C2) >> C1): Expand to...
10662 (X {&,^,|} C2 >> C1): ...This.
10664 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
10667 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
10668 Adjust embedded rounding/SAE specifier position.
10669 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
10670 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
10671 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
10672 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
10673 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
10675 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
10677 2015-10-09 Martin Jambor <mjambor@suse.cz>
10679 tree-optimization/67794
10680 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
10681 between types of state,ents but accept original definitions as a
10683 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
10684 iterate over definitions.
10686 2015-10-09 James Norris <jnorris@codesourcery.com>
10688 * config/rs6000/rs6000.c (rs6000_offload_options): New.
10689 (TARGET_OFFLOAD_OPTIONS): New.
10691 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
10693 PR middle-end/67891
10694 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
10696 PR middle-end/67766
10697 * function.c (expand_function_end): Move return value
10698 promotion past the handling of PARALLELs and CONCATs.
10700 PR rtl-optimization/67828
10701 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
10702 (tree_may_unswitch_on): Don't unswitch on expressions
10703 involving undefined values.
10705 2015-10-09 Richard Biener <rguenther@suse.de>
10707 * genmatch.c (print_operand): Fix formatting.
10708 (dt_node::append_simplify): Warn for multiple simplifiers
10709 that match the same pattern.
10710 * match.pd (log (exp @0)): Remove duplicates.
10712 2015-10-09 Richard Biener <rguenth@suse.de>
10715 * gimple-fold.c (optabs-query.h): Include
10716 (gimple_fold_builtin_memory_op): Allow unaligned stores
10717 when movmisalign_optabs are available.
10719 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10722 * config/arm/arm.md (movmisalign<mode>): New.
10723 * config/arm/iterators.md (HSI): New.
10725 2015-10-09 Richard Biener <rguenther@suse.de>
10727 PR tree-optimization/67891
10728 * gimple-match.h (gimple_simplified_result_is_gimple_val):
10730 (gimple_resimplify1): Declare.
10731 (gimple_resimplify2): Likewise.
10732 (gimple_resimplify3): Likewise.
10733 * gimple-match-head.c (gimple_resimplify1): Export.
10734 (gimple_resimplify2): Likewise.
10735 (gimple_resimplify3): Likewise.
10736 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
10737 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
10738 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
10739 to avoid creating stmts without VN info.
10741 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
10743 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
10746 2015-10-08 Jeff Law <law@redhat.com>
10748 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
10749 and release_ssa_name in two places.
10750 (gimple_stringop_fixed_value): Similarly.
10752 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
10755 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
10756 unlink_stmt_vdef and release_ssa_name_fn.
10758 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
10761 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
10763 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
10764 SSE register save area to 16 bytes only if the incoming stack
10765 boundary is no less than 16 bytes.
10767 2015-10-08 Jeff Law <law@redhat.com>
10769 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
10770 release_ssa_name. Fix typo in comment.
10772 2015-10-08 Nathan Sidwell <nathan@acm.org>
10774 * config/nvptx/nvptx.h (struct machine_function): Add comment.
10775 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
10776 may return pointer as well as in memory.
10777 (nvptx_output_return): Likewise.
10779 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10781 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
10782 (fold_builtin_1): Update accordingly. Handle constant arguments here.
10783 * match.pd: Add rules previously handled by fold_builtin_sqrt
10784 and fold_builtin_cbrt.
10786 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
10788 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
10789 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
10790 * fold-const.h (tree_unary_nonnegative_warnv_p)
10791 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10792 (tree_expr_nonnegative_warnv_p): Add depth parameters.
10793 * fold-const.c: Include gimple-fold.h and params.h.
10794 (tree_ssa_name_nonnegative_warnv_p): New function.
10795 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
10796 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
10797 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
10798 Add a depth parameter and increment it for recursive calls to
10799 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
10800 to handle SSA names.
10801 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
10802 (gimple_stmt_nonnegative_warnv_p): Declare.
10803 * tree-vrp.c (remove_range_assertions): Remove assert that condition
10804 cannot be proven false.
10805 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
10806 (gimple_stmt_nonnegative_warnv_p): Move to...
10807 * gimple-fold.c: ...here. Add depth parameters and pass them
10808 down to the tree routines. Accept statements that aren't
10809 assignments or calls but just return false for them.
10810 (gimple_val_nonnegative_real_p): Delete.
10811 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
10812 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
10813 Check HONOR_NANs first.
10815 2015-10-08 Martin Jambor <mjambor@suse.cz>
10817 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
10820 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10822 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
10823 in the tail of outer-loop.
10825 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
10827 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
10830 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
10832 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
10833 "cfghooks.h", add prototypes for introduced new functions.
10834 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
10835 checks on ability of loop unswitching to tree_unswitch_single_loop;
10836 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
10837 on innermost loop check.
10838 (tree_unswitch_single_loop): Add all required checks on ability of
10839 loop unswitching under zero recursive level guard.
10840 (tree_unswitch_outer_loop): New function.
10841 (find_loop_guard): Likewise.
10842 (empty_bb_without_guard_p): Likewise.
10843 (used_outside_loop_p): Likewise.
10844 (get_vop_from_header): Likewise.
10845 (hoist_guard): Likewise.
10846 (check_exit_phi): Likewise.
10848 2015-10-08 Marek Polacek <polacek@redhat.com>
10850 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
10853 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
10856 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
10857 create_tmp_var_raw instead of create_tmp_var.
10859 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
10861 * expr.c (store_expr_with_bounds): Handle aggregate moves from
10863 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
10864 to define gimple type system; compare aggregates only by size.
10866 2015-10-07 Jeff Law <law@redhat.com>
10868 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
10869 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
10870 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
10873 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10874 Sebastian Pop <s.pop@samsung.com>
10876 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
10877 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
10878 (generate_isl_schedule): Same.
10879 * graphite-optimize-isl.c (scop_get_domains): Same.
10880 (apply_schedule_map_to_scop): Same.
10881 * graphite-poly.c (print_iteration_domains): Same.
10882 (remove_gbbs_in_scop): Same.
10885 (print_scop): Same.
10886 * graphite-poly.h (struct scop): Rename bbs to pbbs.
10887 (SCOP_BBS): Remove.
10888 * graphite-scop-detection.c (compare_bb_depths): Remove.
10889 (graphite_sort_dominated_info): Remove.
10890 (try_generate_gimple_bb): Move out of scop_detection.
10891 (all_non_dominated_preds_marked_p): Remove.
10892 (build_scop_bbs_1): Remove.
10893 (build_scop_bbs): Remove.
10894 (nb_pbbs_in_loops): Do not use SCOP_BBS.
10895 (find_scop_parameters): Same.
10896 (sese_dom_walker): Rename gather_bbs.
10897 (before_dom_children): Call try_generate_gimple_bb and collect gbb
10899 (build_scops): Call gather_bbs.
10900 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
10901 (add_conditions_to_constraints): Same.
10902 (build_scop_iteration_domain): Same.
10903 (build_scop_drs): Same.
10904 (new_pbb_from_pbb): Same.
10905 * sese.c (new_sese_info): Create bbs.
10906 * sese.h (struct sese_info_t): Add bbs.
10908 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
10910 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
10911 encoding in 64-bit mode.
10913 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
10916 * config/i386/i386.c (ix86_option_override_internal): Always use
10917 8-byte minimum stack boundary in 64-bit mode.
10918 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
10919 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
10920 Add a REG_CFA_EXPRESSION note if needed.
10921 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
10922 (ix86_handle_force_align_arg_pointer_attribute): New.
10923 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
10924 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
10925 with ix86_handle_force_align_arg_pointer_attribute.
10926 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
10928 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10929 Sebastian Pop <s.pop@samsung.com>
10931 * graphite-scop-detection.c (parameter_index_in_region): Remove
10932 use of SESE_ADD_PARAMS.
10933 (find_scop_parameters): Same.
10934 * sese.c (new_sese_info): Same.
10935 * sese.h (struct sese_info_t): Remove add_params.
10936 (SESE_ADD_PARAMS): Remove.
10938 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
10939 Sebastian Pop <s.pop@samsung.com>
10941 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
10944 (copy_internal_parameters): Same.
10945 (translate_isl_ast_to_gimple): Use an sese_l.
10946 (build_iv_mapping): Same.
10947 * graphite-poly.c (new_sese): Rename new_sese_info.
10948 (free_sese): Rename free_sese_info.
10949 * graphite-poly.h (struct scop): Use an sese_info_p.
10950 (scop_set_region): Same.
10951 * graphite-scop-detection.c (struct sese_l): Moved...
10952 (get_entry_bb): Moved...
10953 (get_exit_bb): Moved...
10954 (parameter_index_in_region_1): Use an sese_info_p.
10955 (parameter_index_in_region): Same.
10956 (scan_tree_for_params): Same.
10957 (find_params_in_bb): Same.
10958 (sese_dom_walker): Use an sese_l.
10959 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
10960 (reduction_phi_p): Same.
10961 (parameter_index_in_region_1): Use an sese_info_p.
10962 (propagate_expr_outside_region): Use an sese_l.
10963 * graphite.c: Replace uses of SCOP_REGION.
10964 * sese.c (sese_record_loop): Use an sese_info_p.
10965 (build_sese_loop_nests): Same.
10966 (sese_build_liveouts_use): Same.
10967 (sese_build_liveouts_bb): Same.
10968 (sese_build_liveouts_bb): Same.
10969 (sese_bad_liveouts_use): Same.
10970 (sese_reset_debug_liveouts_bb): Same.
10971 (sese_build_liveouts): Same.
10972 (new_sese): Renamed new_sese_info.
10973 (free_sese): Renamed free_sese_info.
10974 (set_rename): Use an sese_info_p.
10975 (graphite_copy_stmts_from_block): Same.
10976 (copy_bb_and_scalar_dependences): Same.
10977 (outermost_loop_in_sese_1): Use an sese_l.
10978 (outermost_loop_in_sese): Same.
10979 (if_region_set_false_region): Use an sese_info_p.
10980 (move_sese_in_condition): Same.
10981 (scalar_evolution_in_region): Use an sese_l.
10982 * sese.h (struct sese_l): ... here.
10983 (SESE_ENTRY): Remove.
10984 (SESE_ENTRY_BB): Remove.
10985 (SESE_EXIT): Remove.
10986 (SESE_EXIT_BB): Remove.
10987 (sese_contains_loop): Use an sese_info_p.
10988 (sese_nb_params): Same.
10989 (bb_in_sese_p): Use an sese_l.
10990 (stmt_in_sese_p): Same.
10991 (defined_in_sese_p): Same.
10992 (loop_in_sese_p): Same.
10993 (sese_loop_depth): Same.
10994 (struct ifsese_s): Use an sese_info_p.
10995 (gbb_loop_at_index): Use an sese_l.
10996 (nb_common_loops): Same.
10997 (scev_analyzable_p): Same.
10999 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11001 * config/i386/i386.c (ix86_conditional_register_usage): Use
11002 CALL_USED_REGISTERS_MASK.
11003 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
11005 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11008 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
11009 * configure: Regenerated.
11011 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
11014 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
11015 (ix86_set_current_function): This.
11016 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
11018 2015-10-07 Richard Biener <rguenther@suse.de>
11020 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
11021 (vinfo_for_stmt): Adjust.
11022 (set_vinfo_for_stmt): Likewise.
11023 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
11024 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
11025 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
11027 (vect_analyze_loop_1): Remove.
11028 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
11029 inner loop when vectorizing an outer loop by splitting out from ...
11030 (vect_analyze_loop_form): ... here.
11032 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11035 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
11036 Use create_tmp_var_raw instead of create_tmp_var.
11038 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
11040 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
11041 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
11042 * real.c (CACHED_FRACTION): New helper macro.
11043 (dconst_third_ptr): Use it.
11044 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
11045 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
11047 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
11049 2015-10-06 Jeff Law <law@redhat.com>
11051 PR tree-optimization/67816
11052 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
11053 from remove_jump_threads_starting_at. Accept an edge rather than
11055 * tree-ssa-threadupdate.c (removed_edges): New hash table.
11056 (remove_jump_threads_including): Note edges that get removed from
11057 the CFG for later pruning of jump threading paths including them.
11058 (thread_through_all_blocks): Remove paths which include edges that
11060 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
11061 on each outgoing edges when optimizing away a control statement.
11063 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11065 * reorg.c (emit_delay_sequence): Store list of delay slot insns
11066 in a vector instead of rtx_insn_list.
11067 (add_to_delay_list): Likewise.
11068 (delete_from_delay_slot): Likewise.
11069 (optimize_skip): Likewise.
11070 (redirect_with_delay_list_safe_p): Likewise.
11071 (check_annul_list_true_false): Likewise.
11072 (steal_delay_list_from_target): Likewise.
11073 (steal_delay_list_from_fallthrough): Likewise.
11074 (redundant_insn): Likewise.
11075 (fill_simple_delay_slots): Likewise.
11076 (fill_slots_from_thread): Likewise.
11077 (fill_eager_delay_slots): Likewise.
11078 (relax_delay_slots): Likewise.
11080 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
11082 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
11083 For -mgpopt=local, also exclude unintialized common symbols.
11084 * doc/invoke.texi (Nios II Options): Document the change.
11086 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11088 * config/aarch64/iterators.md (vwcore): Add missing cases for
11091 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11092 Sebastian Pop <s.pop@samsung.com>
11094 * graphite-poly.c (new_scop): Initialize drs.
11095 * graphite-poly.h (struct dr_info): New.
11096 (struct scop): Add drs.
11097 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
11098 (pdr_add_memory_accesses): Same.
11099 (build_poly_dr): Same.
11100 (build_alias_set): Same.
11101 (build_scop_drs): Same.
11102 (build_pbb_drs): Remove.
11103 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
11104 * tree-data-ref.h (data_reference): Remove alias_set.
11106 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11107 Sebastian Pop <s.pop@samsung.com>
11109 * graphite-poly.c (free_data_refs_aux): Remove.
11110 (free_gimple_poly_bb): Do not call free_data_refs_aux.
11111 * graphite-poly.h (struct base_alias_pair): Remove.
11112 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
11113 base_alias_pair and dr->aux.
11114 (build_alias_set): Same.
11115 * tree-data-ref.c (create_data_ref): Initialize alias_set.
11116 * tree-data-ref.h (data_reference): Add alias_set.
11118 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
11119 Sebastian Pop <s.pop@samsung.com>
11121 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
11122 Do not set PDR_BASE_OBJECT_SET.
11123 * graphite-poly.h (poly_dr): Same.
11124 (PDR_BASE_OBJECT_SET): Remove.
11125 (new_poly_dr): Update decl.
11126 * graphite-sese-to-poly.c (build_poly_dr): Update call to
11128 (write_alias_graph_to_ascii_dimacs): Remove.
11129 (write_alias_graph_to_ascii_dot): Remove.
11130 (write_alias_graph_to_ascii_ecc): Remove.
11131 (dr_same_base_object_p): Remove.
11132 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
11134 (build_base_obj_set_for_drs): Remove.
11135 (dump_alias_graphs): Remove.
11136 (build_scop_drs): Remove dead code.
11138 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
11139 Peter Bergner <bergner@vnet.ibm.com>
11142 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
11143 allow registers, but provide insns for the combiner to create for
11144 loads from memory. Separate VSX code from non-VSX code. For
11145 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
11146 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
11147 so that registers come before memory operations. Drop support from
11148 converting DFmode to TFmode, if the DFmode value is in a GPR
11150 (extenddftf2_fprs): Likewise.
11151 (extenddftf2_internal): Likewise.
11152 (extenddftf2_vsx): Likewise.
11153 (extendsftf2): In the expander, only allow registers, but provide
11154 insns for the combiner to create for stores and loads.
11156 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11158 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
11159 from the decl parameter.
11161 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
11164 * gimple-fold.c (gimple_fold_builtin): Add break after
11165 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
11167 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
11169 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
11170 to scop->isl_context.
11172 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11174 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
11175 (output_probe_stack_range): Rotate the loop and simplify.
11176 (thumb1_expand_prologue): Tweak sorry message.
11177 * config/arm/arm.md (probe_stack): Use bare string.
11179 2015-10-06 Nick Clifton <nickc@redhat.com>
11181 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
11183 2015-10-06 Nick Clifton <nickc@redhat.com>
11185 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
11186 (ATTR_PERSIST): New constant.
11187 (msp430_data_attr): New function - verifies an attribute that only
11188 applies to variables.
11189 (msp430_attributes): Add noinit and persistent attributes.
11190 (noinit_section): New variable.
11191 (presis_section): New variable.
11192 (TARGET_ASM_INIT_SECTIONS): Define.
11193 (msp430_init_sections): New function - initialises the noinit and
11194 persist section variables.
11195 (msp430_select_section): Add support for noinit and persist
11197 (msp430_section_type_flags): Likewise.
11198 * doc/extend.texi: Document the reent, critical, wakeup, noinit
11199 and persistent attributes.
11201 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11202 Sebastian Pop <s.pop@samsung.com>
11204 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
11205 (no_violations): Remove.
11206 (subtract_commutative_associative_deps): Remove.
11207 (compute_deps): Do not call subtract_commutative_associative_deps.
11208 (transform_is_safe): Remove.
11209 (graphite_legal_transform): Remove.
11210 * graphite-poly.h (graphite_legal_transform): Remove.
11212 2015-10-05 Aditya Kumar <hiraditya@msn.com>
11214 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
11215 which are in this region are passed so gcc_assert and remove redundant
11217 * sese.c (sese_build_liveouts): Pass only those bbs which are not
11219 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
11220 gcc_assert on that and remove unnecessary computation.
11221 (sese_build_liveouts_use): Same.
11223 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11225 * graphite-dependences.c (scop_get_reads): Renamed scop->context
11226 to scop->param_context.
11227 (scop_get_must_writes): Same.
11228 (scop_get_may_writes): Same.
11229 (scop_get_original_schedule): Same.
11230 (scop_get_transformed_schedule): Same.
11231 (subtract_commutative_associative_deps): Same.
11232 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
11233 (generate_isl_context): Same.
11234 (generate_isl_schedule): Same.
11235 (scop_to_isl_ast): Same.
11236 (graphite_regenerate_ast_isl): Same.
11237 * graphite-optimize-isl.c (scop_get_domains): Same.
11238 (optimize_isl): Renamed scop->context to scop->param_context.
11239 * graphite-poly.c (new_poly_bb): Change the type of argument to
11241 (new_scop): Renamed scop->context to scop->param_context.
11243 (print_scop_context): Same.
11244 * graphite-poly.h (new_poly_dr): Change the type of argument from
11245 void* to data_reference_p.
11246 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
11247 (new_poly_bb): Change the type of argument from void* to
11249 (pbb_set_black_box): Same.
11250 (struct scop): Rename context to param_context, ctx to isl_context.
11251 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
11252 Move declarations closer to assignment.
11253 (find_params_in_bb): Same.
11254 (find_scop_parameters): Same.
11255 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
11256 Global to be used for statement IDs.
11257 (isl_id_for_pbb): Use ssa_name_version_typesize.
11258 (simple_copy_phi_p): Move declarations closer to assignment.
11259 (build_pbb_scattering_polyhedrons): Same.
11260 (build_scop_scattering): Same.
11261 (isl_id_for_ssa_name): Same.
11262 (extract_affine_name): Same.
11263 (extract_affine_int): Same.
11264 (extract_affine): Same.
11265 (set_scop_parameter_dim): Use renamed member.
11266 (build_loop_iteration_domains): Same.
11267 (add_param_constraints): Same.
11268 (build_scop_iteration_domain): Same.
11269 (pdr_add_data_dimensions): Same.
11270 (build_poly_dr): Same.
11271 (build_scop_drs): Move declarations closer to assignment.
11272 (analyze_drs_in_stmts): Same.
11273 (insert_out_of_ssa_copy): Same.
11274 (insert_out_of_ssa_copy_on_edge): Same.
11275 (propagate_expr_outside_region): Same.
11276 (rewrite_phi_out_of_ssa): Same.
11277 (rewrite_degenerate_phi): Same.
11278 (rewrite_reductions_out_of_ssa): Same.
11279 (rewrite_cross_bb_scalar_dependence): Same.
11280 (handle_scalar_deps_crossing_scop_limits): Same.
11281 (rewrite_cross_bb_scalar_deps): Same.
11282 * graphite.c (graphite_transform_loops): Use renamed member.
11284 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
11287 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
11288 create_tmp_var_raw instead of create_tmp_var.
11290 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11293 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
11294 Use create_tmp_var_raw instead of create_tmp_var.
11296 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
11299 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
11300 split for upper-bank registers when target does not support
11302 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
11303 split when target does not support AVX512VL.
11305 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
11308 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
11309 Adjust to use create_tmp_var_raw instead of create_tmp_var.
11311 2015-10-06 Nick Clifton <nickc@redhat.com>
11313 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
11316 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
11318 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
11319 (case ${target}): Add znver1.
11320 * config/i386/cpuid.h(bit_CLZERO): Define.
11321 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
11322 -march=native recognize znver1 processors.
11323 * config/i386/i386-c.c (ix86_target_macros_internal): Add
11324 znver1, clzero def_and_undef.
11325 * config/i386/i386.c (struct processor_costs znver1_cost): New.
11326 (m_znver1): New definition.
11327 (m_AMD_MULTIPLE): Includes m_znver1.
11328 (processor_target_table): Add znver1 entry.
11329 (ix86_target_string) : Add clzero entry.
11330 (static const char *const cpu_names): Add znver1 entry.
11331 (ix86_option_override_internal): Add znver1 instruction sets.
11332 (PTA_CLZERO) : New definition.
11333 (ix86_option_override_internal): Handle new clzerooption.
11334 (ix86_issue_rate): Add znver1.
11335 (ix86_adjust_cost): Add znver1.
11336 (ia32_multipass_dfa_lookahead): Add znver1.
11337 (has_dispatch): Add znver1.
11338 * config/i386/i386.h (TARGET_znver1): New definition.
11339 (TARGET_CLZERO): Define.
11340 (TARGET_CLZERO_P): Define.
11341 (struct ix86_size_cost): Add TARGET_ZNVER1.
11342 (enum processor_type): Add PROCESSOR_znver1.
11343 * config/i386/i386.md (define_attr "cpu"): Add znver1.
11344 (set_attr znver1_decode): New definitions for znver1.
11345 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
11347 * config/i386/mmx.md (set_attr znver1_decode): New definitions
11349 * config/i386/sse.md (set_attr znver1_decode): Likewise.
11350 * config/i386/x86-tune.def: Add znver1 tunings.
11351 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
11352 * doc/invoke.texi: Add details about znver1
11354 2015-10-06 Richard Biener <rguenther@suse.de>
11356 PR tree-optimization/67859
11357 * tree-ssa-pre.c (create_expression_by_pieces): Properly
11358 discard not inserted stmts.
11360 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
11362 * doc/extend.texi (Template Instantiation): Reorder options and
11363 de-emphasize -frepo.
11364 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
11365 example instead of -frepo.
11367 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
11370 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
11371 use create_tmp_var_raw rather than create_tmp_var.
11373 2015-10-06 Richard Biener <rguenther@suse.de>
11375 * tree-vectorizer.h (vec_info): New base class for...
11376 (_loop_vec_info): ... this and ...
11377 (_bb_vec_info): ... this.
11378 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
11379 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
11380 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
11381 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
11382 vect_destroy_datarefs): Adjust interface to take a vec_info *
11383 rather than both a loop_vec_info and a bb_vec_info argument.
11384 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
11385 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
11386 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
11387 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
11389 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
11390 (destroy_loop_vec_info, vect_analyze_loop_2,
11391 vect_is_simple_reduction_1, get_initial_def_for_induction,
11392 vect_create_epilog_for_reduction, vectorizable_reduction,
11393 vectorizable_live_operation, vect_transform_loop): Adjust.
11394 * tree-vect-patterns.c (type_conversion_p,
11395 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
11396 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
11397 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
11398 check_bool_pattern, vect_recog_bool_pattern,
11399 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
11400 * tree-vect-slp.c (vect_get_and_check_slp_defs,
11401 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
11402 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
11403 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
11404 (new_bb_vec_info): Initialize base classs.
11405 * tree-vect-stmts.c (record_stmt_cost, process_use,
11406 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
11407 vectorizable_mask_load_store, vectorizable_call,
11408 vectorizable_simd_clone_call, vectorizable_conversion,
11409 vectorizable_assignment, vectorizable_shift,
11410 vectorizable_operation, vectorizable_store,
11411 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
11412 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
11413 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
11415 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
11418 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
11419 create_tmp_var_raw rather than create_tmp_var.
11421 2015-10-05 Marek Polacek <polacek@redhat.com>
11423 * tree-ssa-loop-im.c
11424 (move_computations_dom_walker::before_dom_children): Don't set
11425 SSA_NAME_ANTI_RANGE_P.
11426 * tree-ssa-phiopt.c (value_replacement): Likewise.
11428 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11429 Sebastian Pop <s.pop@samsung.com>
11431 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
11433 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11434 Sebastian Pop <s.pop@samsung.com>
11436 * graphite-poly.c (new_gimple_poly_bb): ... here.
11437 (free_data_refs_aux): ... here.
11438 (free_gimple_poly_bb): ... here.
11439 (remove_gbbs_in_scop): ... here.
11440 (new_scop): Call new_sese.
11441 (free_scop): Call remove_gbbs_in_scop and free_sese.
11442 * graphite-poly.h (base_alias_pair): ... here.
11443 (new_gimple_poly_bb): Declare.
11444 (free_gimple_poly_bb): Declare.
11445 * graphite-scop-detection.c (parameter_index_in_region_1):
11446 (parameter_index_in_region): ... here.
11447 (scan_tree_for_params): ... here.
11448 (find_params_in_bb): ... here.
11449 (find_scop_parameters): ... here.
11450 (build_scops): Call find_scop_parameters.
11451 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
11452 (free_scops): Move...
11453 (single_pred_cond_non_loop_exit): Move...
11454 (sese_dom_walker::before_dom_children): Move...
11455 (sese_dom_walker::after_dom_children): Move...
11456 (build_poly_scop): Move...
11457 * graphite-sese-to-poly.h (base_alias_pair): Move...
11458 * graphite.c (free_scops): ... here.
11460 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
11461 Sebastian Pop <s.pop@samsung.com>
11463 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
11464 (trivially_empty_bb_p): Move...
11465 (same_close_phi_node): Move...
11466 (new_gimple_poly_bb): Move...
11467 (compare_bb_depths): Move...
11468 (graphite_sort_dominated_info): Move...
11469 (remove_duplicate_close_phi): Move...
11470 (make_close_phi_nodes_unique): Move...
11471 (canonicalize_loop_closed_ssa): Move...
11472 (canonicalize_loop_closed_ssa_form): Move...
11473 (loop_ivs_can_be_represented): Move...
11474 (single_pred_cond_non_loop_exit): Move...
11475 (graphite_can_represent_init): Move...
11476 (graphite_can_represent_scev): Move...
11477 (stmt_has_simple_data_refs_p): Move...
11478 (stmt_has_side_effects): Move...
11479 (graphite_can_represent_stmt): Move...
11480 (scop_detection): ... here.
11481 (sese_dom_walker): ... and here.
11482 (build_scops): Call all moved functions.
11483 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
11484 (all_non_dominated_preds_marked_p): Move...
11485 (build_scop_bbs_1): Move...
11486 (build_scop_bbs): Move...
11487 (set_scop_parameter_dim): Move...
11488 (nb_pbbs_in_loops): Move...
11489 (build_poly_scop): Do not call all the moved functions.
11491 2015-10-05 Martin Jambor <mjambor@suse.cz>
11492 Jan Hubicka <hubicka@ucw.cz>
11494 * ipa-cp.c (ipcp_alignment_lattice): New type.
11495 (ipcp_param_lattices): Use the above to represent alignment.
11496 (ipcp_alignment_lattice::print): New function.
11497 (print_all_lattices): Use it to print alignment information.
11498 (ipcp_alignment_lattice::top_p): New function.
11499 (ipcp_alignment_lattice::bottom_p): Likewise.
11500 (ipcp_alignment_lattice::set_to_bottom): Likewise.
11501 (ipcp_alignment_lattice::meet_with_1): Likewise.
11502 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
11503 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
11504 (initialize_node_lattices): Likewise.
11505 (propagate_alignment_accross_jump_function): Work with the new class
11506 for alignment lattices.
11507 (propagate_constants_accross_call): Pass only the alignment lattice to
11508 propagate_alignment_accross_jump_function.
11509 (ipcp_store_alignment_results): Work with the new class for alignment
11512 2015-10-05 Marek Polacek <polacek@redhat.com>
11514 PR tree-optimization/67821
11515 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
11517 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
11520 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
11522 (mkoffload_cleanup): ... this. Adjust all users.
11523 (maybe_unlink): Look at save_temps and verbose flags instead of
11525 (main): Parse "-save-temps" flag.
11526 (generate_target_descr_file, generate_target_offloadend_file)
11527 (generate_host_descr_file, prepare_target_image): Pass it on.
11528 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
11529 (mkoffload_cleanup): New function.
11530 (maybe_unlink): Look at save_temps and verbose flags instead of
11532 (main): Instead of calling utils_cleanup, register atexit handler
11533 for mkoffload_cleanup.
11534 (main): Parse "-save-temps" flag.
11535 (compile_native, main): Pass it on.
11536 * lto-wrapper.c (compile_offload_image): Likewise.
11538 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11540 * gimple.h (gimple_op_ptr): Require a non const gimple *.
11541 (gimple_assign_lhs_ptr): Likewise.
11542 (gimple_assign_rhs1_ptr): Likewise.
11543 (gimple_assign_rhs2_ptr): Likewise.
11544 (gimple_assign_rhs3_ptr): Likewise.
11545 (gimple_call_lhs_ptr): Likewise.
11546 (gimple_call_fn_ptr): Likewise.
11547 (gimple_call_chain_ptr): Likewise.
11548 (gimple_call_arg_ptr): Likewise.
11549 (gimple_cond_lhs_ptr): Likewise.
11550 (gimple_cond_rhs_ptr): Likewise.
11551 (gimple_switch_index_ptr): Likewise.
11552 (gimple_return_retval_ptr): Likewise.
11554 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11556 * gimple.h (gimple_asm_input_op_ptr): Remove.
11557 (gimple_asm_output_op_ptr): Likewise.
11559 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11561 * gimple.h (gimple_location_ptr): Remove.
11562 * tree-vrp.c (check_all_array_refs): Adjust.
11564 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11566 * tree-ssa-operands.c (build_uses): store tree * instead of
11568 (finalize_ssa_uses): Adjust.
11569 (append_use): Likewise.
11570 (verify_ssa_operands): Likewise.
11572 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11574 * real.h (build_real_truncate): Declare.
11575 * tree.c (build_real_truncate): New function.
11576 (strip_float_extensions): Use it.
11577 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
11578 (fold_builtin_hypot, fold_builtin_pow): Likewise.
11579 * match.pd: Likewise.
11581 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
11582 Jiong Wang <jiong.wang@arm.com>
11584 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
11586 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11588 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
11589 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
11590 (aarch64_print_operand, aarch64_float_const_representable_p)
11591 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
11592 instead of REAL_VALUE_FROM_CONST_DOUBLE.
11593 * config/arc/arc.c (arc_print_operand): Likewise.
11594 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
11595 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
11596 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
11598 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
11599 (consttable_16): Likewise.
11600 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
11601 * config/avr/avr.c (avr_print_operand): Likewise.
11602 * config/bfin/bfin.md: Likewise (in a define_split).
11603 * config/c6x/c6x.md: Likewise (in a define_split).
11604 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
11605 (cr16_print_operand): Likewise.
11606 * config/cris/cris.c (cris_print_operand): Likewise.
11607 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
11608 * config/fr30/fr30.c (fr30_print_operand): Likewise.
11609 (fr30_const_double_is_zero): Likewise.
11610 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
11611 * config/frv/frv.md: Likewise (in a define_split).
11612 * config/frv/predicates.md (int_2word_operand): Likewise.
11613 * config/h8300/h8300.c (h8300_print_operand): Likewise.
11614 * config/i386/i386.c (standard_80387_constant_p): Likewise.
11615 (ix86_print_operand, ix86_split_to_parts): Likewise.
11616 * config/i386/i386.md: Likewise (in a define_split).
11617 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
11618 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
11619 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
11620 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
11621 (print_operand): Likewise.
11622 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
11623 * config/mep/mep.md: Likewise (in define_split).
11624 * config/microblaze/microblaze.c (microblaze_const_double_ok)
11625 (print_operand): Likewise.
11626 * config/mips/mips.md (consttable_float): Likewise.
11627 * config/mmix/mmix.c (mmix_intval): Likewise.
11628 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
11629 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
11630 * config/pa/pa.c (pa_singlemove_string): Likewise.
11631 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
11632 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
11633 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
11634 (output_toc): Likewise.
11635 * config/rs6000/rs6000.md: Likewise (in define_splits).
11636 * config/rx/rx.c (rx_print_operand): Likewise.
11637 * config/s390/s390.c (s390_output_pool_entry): Likewise.
11638 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11639 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
11640 (and also in define_splits).
11641 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
11642 (fp_high_losum_p): Likewise.
11643 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
11644 (*movsf_high): Likewise.
11645 * config/spu/spu.c (const_double_to_hwint): Likewise.
11646 * config/v850/v850.c (const_double_split): Likewise.
11647 * config/vax/vax.c (vax_float_literal): Likewise.
11648 * config/visium/visium.c (visium_expand_copysign): Likewise.
11649 * config/visium/visium.md: Likewise (in define_split).
11650 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11651 * config/xtensa/xtensa.c (print_operand): Likewise.
11652 (xtensa_output_literal): Likewise.
11653 * cprop.c (implicit_set_cond_p): Likewise.
11654 * dwarf2out.c (insert_float): Likewise.
11655 * expmed.c (expand_mult, make_tree): Likewise.
11656 * expr.c (compress_float_constant): Likewise.
11657 * rtlanal.c (split_double): Likewise.
11658 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11659 (simplify_const_unary_operation, simplify_binary_operation_1)
11660 (simplify_const_binary_operation): Likewise.
11661 (simplify_const_relational_operation): Likewise.
11662 * varasm.c (output_constant_pool_2): Likewise.
11664 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11666 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
11667 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11668 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
11669 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
11670 instead of CONST_DOUBLE_FROM_REAL_VALUE.
11671 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
11672 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
11673 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
11674 (ix86_emit_swsqrtsf): Likewise.
11675 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
11676 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
11677 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
11678 * config/pa/pa.c (pa_expand_builtin): Likewise.
11679 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
11680 (rs6000_scale_v2df): Likewise.
11681 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
11682 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
11683 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
11684 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
11685 (vec_ctul): Likewise.
11686 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
11687 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
11688 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
11689 * cse.c (fold_rtx): Likewise.
11690 * emit-rtl.c (immed_double_const): Likewise (in comments).
11691 (init_emit_once): Likewise.
11692 * expr.c (compress_float_constant, expand_expr_real_1)
11693 (const_vector_from_tree): Likewise.
11694 * optabs.c (expand_float, expand_fix): Likewise.
11695 * reg-stack.c (reg_to_stack): Likewise.
11696 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
11697 (simplify_const_unary_operation, simplify_binary_operation_1)
11698 (simplify_const_binary_operation, simplify_relational_operation)
11699 (simplify_immed_subreg): Likewise.
11701 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11703 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
11704 * doc/tm.texi: Regenerate.
11705 * real.h (REAL_ARITHMETIC): Delete.
11706 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
11707 (ix86_expand_round_sse4): Use real_arithmetic instead of
11709 * config/i386/sse.md (round<mode>2): Likewise.
11710 * rtl.h (rtx_to_tree_code): Likewise (in comment).
11711 * explow.c (rtx_to_tree_code): Likewise (in comment).
11712 * match.pd: Likewise.
11713 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11714 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11715 (expand_pow_as_sqrts): Likewise.
11716 * tree-pretty-print.c (dump_generic_node): Remove code that
11717 was conditional on REAL_ARITHMETIC being undefined.
11719 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11721 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
11722 * doc/tm.texi: Regenerate.
11723 * real.h (real_less): Declare.
11724 (REAL_VALUES_LESS): Delete.
11725 * real.c (real_less): New function.
11726 (real_compare): Use it.
11727 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
11728 of REAL_VALUES_LESS.
11729 * config/microblaze/microblaze.c (microblaze_const_double_ok):
11731 * fold-const.c (fold_convert_const_int_from_real): Likewise.
11732 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
11733 (simplify_const_relational_operation): Likewise.
11734 * tree-call-cdce.c (check_pow): Likewise.
11735 (gen_conditions_for_pow_cst_base): Likewise.
11737 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11739 * real.h (REAL_VALUES_IDENTICAL): Delete.
11740 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
11741 instead of REAL_VALUES_IDENTICAL.
11742 * fold-const.c (operand_equal_p): Likewise.
11743 * ipa-icf.c (sem_variable::equals): Likewise.
11744 * tree-complex.c (some_nonzerop): Likewise.
11745 (expand_complex_multiplication): Likewise.
11746 * tree.c (simple_cst_equal): Likewise.
11747 * varasm.c (compare_constant): Likewise.
11749 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
11751 * real.h (real_equal): Declare.
11752 (REAL_VALUES_EQUAL): Delete.
11753 * real.c (real_equal): New function.
11754 (real_compare): Use it.
11755 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
11756 * doc/tm.texi: Regenerate.
11757 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
11758 real_equal instead of REAL_VALUES_EQUAL.
11759 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
11760 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
11761 (fp_const_from_val): Likewise.
11762 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
11763 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
11764 (floating_exact_log2): Likewise.
11765 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
11766 * config/vax/vax.c (vax_float_literal): Likewise.
11767 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
11768 * cprop.c (implicit_set_cond_p): Likewise.
11769 * expmed.c (expand_mult): Likewise.
11770 * fold-const.c (const_binop): Likewise.
11771 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
11772 (simplify_const_binary_operation): Likewise.
11773 (simplify_const_relational_operation): Likewise.
11774 * tree-call-cdce.c (check_pow): Likewise.
11775 (gen_conditions_for_pow_cst_base): Likewise.
11776 * tree-inline.c (estimate_num_insns): Likewise.
11777 * tree-ssa-dom.c (record_equality): Likewise.
11778 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
11779 (gimple_expand_builtin_pow): Likewise.
11780 (pass_optimize_widening_mul::execute): Likewise.
11781 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
11782 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
11783 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
11785 2015-10-05 Richard Biener <rguenther@suse.de>
11788 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
11789 consider loop header PHI defs as IVs.
11791 2015-10-05 Richard Biener <rguenther@suse.de>
11793 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
11795 (create_expression_by_pieces): ... here and build GIMPLE
11796 calls directly. Use gimple_build API and avoid force_gimple_operand.
11797 (insert_into_preds_of_block): Simplify.
11798 (do_regular_insertion): Add comment.
11800 2015-10-04 Jason Merrill <jason@redhat.com>
11802 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
11804 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
11806 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
11807 check for general register.
11808 (ix86_emit_save_regs): Ditto.
11809 (ix86_emit_save_regs_using_mov): Ditto.
11810 (ix86_emit_restore_regs_using_pop): Ditto.
11811 (ix86_emit_restore_regs_using_mov): Ditto.
11813 2015-10-03 Marek Polacek <polacek@redhat.com>
11815 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
11816 (insn-dfatab.o): Likewise.
11818 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
11820 * config.gcc (xtensa*-*-uclinux*): New configuration.
11821 * config/xtensa/uclinux.h: New file.
11822 * config/xtensa/uclinux.opt: New file.
11824 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
11826 * doc/cpp.texi (Standard Predefined Macros): Document value of
11827 __cplusplus for C++14.
11829 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
11831 * gcc.c (process_command): Use spec_machine rather than
11832 spec_host_machine to build tooldir_prefix2.
11834 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11835 Bernd Schmidt <bernds@codesourcery.com>
11837 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
11838 (Token, Stmt): Remove structs.
11839 (decls, vars, fns): Remove variables.
11840 (alloc_comment, append_stmt, is_keyword): Remove macros.
11841 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
11842 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
11843 (parse_init, parse_file): Remove functions.
11844 (read_file): Accept a pointer to a length and store into it.
11845 (process): Don't try to parse the input file, just write it out as
11846 a string, but looking for maps. Also write out the length.
11847 (main): Don't use "-S" to compile PTX code.
11849 2015-10-02 Jeff Law <law@redhat.com>
11851 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
11854 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
11857 * config/nvptx/mkoffload.c (main): Scan the argument vector for
11858 -fopenmp, and skip generating an offloading image if specified.
11860 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
11862 * system.h (ROUND_UP): New macro definition.
11863 (ROUND_DOWN): Ditto.
11864 * ggc-page.c (ROUND_UP): Remove local macro definition.
11865 (PAGE_ALIGN): Implement using ROUND_UP macro.
11867 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
11868 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
11870 (ix86_compute_frame_layout): Ditto.
11871 (ix86_expand_prologue): Ditto.
11872 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
11873 to round down values.
11874 (expand_set_or_movmem_via_rep): Ditto.
11876 2015-10-02 Marek Polacek <polacek@redhat.com>
11878 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
11880 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
11882 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
11883 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
11884 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
11885 (free_gimple_bb): Renamed free_gimple_poly_bb.
11886 (try_generate_gimple_bb): Hoist loop invariant code.
11887 (analyze_drs_in_stmts): Same.
11888 (build_scop_drs): Call renamed functions.
11889 (new_pbb_from_pbb): Same.
11890 (scop_ivs_can_be_represented): Delete as functionality now moved to
11891 graphite-scop-detection.c
11892 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
11894 2015-10-02 Aditya Kumar <hiraditya@msn.com>
11896 * graphite-scop-detection.c (stmt_has_side_effects): New function
11897 outlined from stmt_simple_for_scop_p.
11898 (graphite_can_represent_stmt): Same.
11899 (stmt_simple_for_scop_p): Moved code out of this function for better
11902 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11904 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
11906 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
11908 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11910 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
11912 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
11914 PR rtl-optimization/67756
11915 * lra-constraints.c (match_reload): Add a new parameter. Use it
11916 for creating a pseudo with the same value.
11917 (curr_insn_transform): Pass a new argument to match_reload.
11919 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11921 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
11922 (expand_vec_perm_even_odd_1): Handle V64QImode.
11923 (ix86_expand_vec_perm_const_1): Try expansion with
11924 expand_vec_perm_even_odd_trunc as well.
11925 * config/i386/sse.md (VI124_AVX512F): Rename to ...
11926 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
11928 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
11929 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
11930 to V32HI and V16SI.
11931 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
11932 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
11933 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
11934 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
11935 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
11936 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
11938 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
11940 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
11941 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
11943 2015-10-02 Jason Merrill <jason@redhat.com>
11946 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
11947 (diagnose_tm_1_op): Also diagnose volatile accesses in
11948 transaction_safe function.
11950 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
11952 * system.h (malloc.h): Don't include obsolete header.
11954 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11956 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
11957 (TLS_SECTION_ASM_FLAG): Delete.
11959 2015-10-02 Marek Polacek <polacek@redhat.com>
11962 * doc/invoke.texi: Document -Wduplicated-cond.
11963 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
11964 (insn-dfatab.o): Likewise.
11965 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
11968 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
11970 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
11973 2015-10-02 Renlin Li <renlin.li@arm.com>
11975 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
11977 2015-10-02 Renlin Li <renlin.li@arm.com>
11980 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
11982 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11984 PR rtl-optimization/67786
11985 PR rtl-optimization/67787
11986 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
11987 it modifies a reg used in the condition calculation.
11989 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
11991 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
11992 alternatives for reads from memory and moves from general-purpose
11994 (*aarch64_combinez_be<mode>): Likewise.
11996 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
11999 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
12000 selectany within this function without need to keep attribute.
12001 (i386_pe_encode_section_info): Remove selectany-code.
12003 2015-10-02 Richard Biener <rguenther@suse.de>
12005 * tree-ssa-sccvn.c (has_VN_INFO): New function.
12006 (free_scc_vn): Use it.
12007 (visit_use): Remove dead code and refactor to use gassign
12008 and use less indentation.
12010 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12014 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
12015 (rs6000_cannot_copy_insn_p): New function.
12016 * config/rs6000/rs6000.md (cannot_copy): New attribute.
12017 (load_toc_v4_PIC_1_normal): Set cannot_copy.
12018 (load_toc_v4_PIC_1_476): Ditto.
12020 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12022 * graphite-scop-detection.c (struct sese_l): New conversion constructor
12023 so that this type can be pushed into a vec.
12024 (class scop_builder): use sese_l to collect scops.
12025 (get_scops): New getter function.
12026 (remove_intersecting_scops): Use sese_l instead of scops_p.
12027 (intersects): Same.
12030 (remove_subscops): Same.
12031 (build_scops): Add scops to vec<scops_p> once all the scops have been
12034 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
12036 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
12037 Renamed type from gimple_bb_p to gimple_poly_bb_p.
12038 (translate_isl_ast_node_user): Same.
12039 * graphite-poly.c (new_poly_bb): Same.
12040 * graphite-poly.h (gbb_from_bb): Same.
12042 * graphite-sese-to-poly.c (new_gimple_bb):
12043 gimple_bb_p -> gimple_poly_bb_p
12044 (build_scop_scattering): Same.
12045 (find_params_in_bb): Same.
12046 (add_conditions_to_domain): Same.
12047 (sese_dom_walker::before_dom_children): Same.
12048 (analyze_drs_in_stmts): Same.
12049 (new_pbb_from_pbb): Same.
12050 (free_data_refs_aux): New pointer to type base_alias_pair.
12051 * graphite-sese-to-poly.h: Same.
12052 * sese.c (if_region_set_false_region): Fixed Indentation.
12053 (move_sese_in_condition): Same.
12055 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12056 Aditya Kumar <aditya.k7@samsung.com>
12058 PR tree-optimization/66980
12059 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
12060 when data reference analysis has failed.
12062 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12063 Aditya Kumar <aditya.k7@samsung.com>
12065 PR tree-optimization/67754
12066 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
12067 scev analysis on the same loop nest as analyze_drs_in_stmts.
12068 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
12070 (try_generate_gimple_bb): Call outermost_loop_in_sese.
12071 (analyze_drs_in_stmts): Same.
12072 * sese.c (outermost_loop_in_sese): ...here.
12074 2015-10-01 Sebastian Pop <s.pop@samsung.com>
12075 Aditya Kumar <aditya.k7@samsung.com>
12077 PR tree-optimization/67754
12078 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
12079 recursion on the inner loops.
12081 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12083 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
12084 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
12085 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
12086 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
12087 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
12089 2015-10-01 Marek Polacek <polacek@redhat.com>
12092 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
12093 create_tmp_var_raw rather than create_tmp_var.
12095 2015-10-01 Marek Polacek <polacek@redhat.com>
12097 PR tree-optimization/67769
12098 * tree-ssa-phiopt.c (conditional_replacement): Call
12099 reset_flow_sensitive_info_in_bb.
12100 (minmax_replacement): Likewise.
12101 (abs_replacement): Likewise.
12103 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
12105 * builtins.c: Don't include gomp-constants.h.
12106 (fold_builtin_1): Don't fold acc_on_device here.
12107 * gimple-fold.c: Include gomp-constants.h.
12108 (gimple_fold_builtin_acc_on_device): New.
12109 (gimple_fold_builtin): Call it.
12111 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
12113 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
12114 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
12116 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
12118 * config/arm/aarch-common-protos.h
12119 (aarch_accumulator_forwarding): New.
12120 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12121 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
12122 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
12123 * config/arm/cortex-a53.md: Rewrite.
12125 2015-10-01 Richard Biener <rguenther@suse.de>
12127 * gimple-match.h (mprts_hook): Declare.
12128 * gimple-match.head.c (mprts_hook): Define.
12129 (maybe_push_res_to_seq): Use new hook.
12130 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
12131 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
12132 (vn_ssa_aux::has_constants): Remove.
12133 * tree-ssa-sccvn.c: Include gimple-match.h.
12134 (VN_INFO_GET): Assert we don't re-use SSA names.
12135 (vn_get_expr_for): Remove.
12136 (expr_has_constants): Likewise.
12137 (stmt_has_constants): Likewise.
12138 (simplify_binary_expression): Likewise.
12139 (simplify_unary_expression): Likewise.
12140 (vn_lookup_simplify_result): New hook.
12141 (visit_copy): Adjust.
12142 (visit_reference_op_call): Likewise.
12143 (visit_phi): Likewise.
12144 (visit_use): Likewise.
12145 (process_scc): Likewise.
12146 (init_scc_vn): Likewise.
12147 (visit_reference_op_load): Likewise. Use match-and-simplify and
12148 a gimple seq for inserted expressions.
12149 (try_to_simplify): Remove GENERIC stmt combining code.
12150 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
12151 * tree-ssa-pre.c (eliminate_insert): Adjust.
12152 (eliminate_dom_walker::before_dom_children): Likewise.
12154 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12156 * doc/invoke.texi (Optimization Options): Add
12157 -freorder-blocks-algorithm=.
12158 (Optimize Options) <-O>: Add -freorder-blocks.
12159 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
12160 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
12161 <-freorder-blocks>: Also enabled at levels -O and -Os.
12162 <-freorder-blocks-algorithm=>: Document new option.
12164 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12166 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
12167 with flag_reorder_blocks_algorithm.
12168 * common.opt (freorder-blocks-algorithm=): New flag.
12169 (reorder_blocks_algorithm): New enum.
12170 * flag-types.h (reorder_blocks_algorithm): New enum.
12171 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
12172 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
12174 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12176 * bb-reorder.c: Add intro comment.
12177 (reorder_basic_blocks_software_trace_cache): Print a header to
12179 (edge_order): New function.
12180 (reorder_basic_blocks_simple): New function.
12181 (reorder_basic_blocks): Choose between the STC and the simple
12182 algorithms (always choose the former).
12184 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
12186 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
12187 function, factored out from ...
12188 (reorder_basic_blocks): ... here.
12190 2015-10-01 Tom de Vries <tom@codesourcery.com>
12192 * tree-cfg.c (dump_function_to_file): Dump function attributes using
12193 __attribute__(()) string. Move dumping of function attributes to before
12196 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
12199 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
12200 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
12201 based on gold linker version.
12202 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
12203 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
12204 * configure, config.in: Regenerate.
12206 2015-10-01 Alan Modra <amodra@gmail.com>
12208 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
12209 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
12210 (rs6000_output_mi_thunk): Likewise.
12212 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12214 * config/nvptx/mkoffload.c (process): Change offload data format.
12216 2015-09-30 Jeff Law <law@redhat.com>
12218 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
12219 with constant conditions.
12220 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
12221 (remove_ctrl_stmt_and_useless_edges): No longer static.
12222 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
12223 (remove_ctrl_stmt_and_useless_edges): Likewise.
12225 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
12226 Cesar Philippidis <cesar@codesourcery.com>
12228 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
12229 (TARGET_GOACC_VALIDATE_DIMS): Override.
12230 * target.def (TARGET_GOACC): New target hook prefix.
12231 (validate_dims): New hook.
12232 * targhooks.h (default_goacc_validate_dims): New.
12233 * omp-low.c (oacc_validate_dims): New.
12234 (execute_oacc_device_lower): New.
12235 (default_goacc_validate_dims): New.
12236 (pass_data_oacc_device_lower): New.
12237 (pass_oacc_device_lower): New pass.
12238 (make_pass_oacc_device_lower): New.
12239 * tree-pass.h (make_pass_oacc_device_lower): Declare.
12240 * passes.def (pass_oacc_device_lower): Add it.
12241 * doc/tm.texi: Rebuilt.
12242 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
12243 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
12245 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
12247 PR rtl-optimization/67037
12248 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
12250 2015-09-30 Bernd Schmidt <bernds@redhat.com>
12252 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
12253 * passes.c: Include tree-ssanames.h.
12254 (execute_function_todo): Flush the pending free SSA_NAMEs after
12255 eliminating unreachable basic blocks.
12256 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
12257 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
12258 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
12259 (flush_ssanames_freelist): New function.
12260 (release_ssaname_fn): Put released names on the queue.
12261 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
12262 * tree-ssanames.h (flush_ssanames_freelist): Declare.
12264 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12266 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
12267 (generate_target_descr_file, generate_target_offloadend_file)
12268 (generate_host_descr_file, prepare_target_image): Pass it on.
12269 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
12270 (compile_native, main): Pass it on.
12271 * lto-wrapper.c (compile_offload_image): Likewise.
12273 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12274 Ilya Verbin <ilya.verbin@intel.com>
12275 Andrey Turetskiy <andrey.turetskiy@intel.com>
12277 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
12278 (prepare_target_image, main): Refactor argv building to use
12281 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12283 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
12284 * config/spu/spu.c (spu_expand_atomic_op): New function.
12285 * config/spu/spu.md (AINT): New mode iterator.
12286 (ATOMIC): New code iterator.
12287 (atomic_name, atomic_pred): New code predicates.
12288 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
12289 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
12290 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
12291 "atomic_<atomic_name>_fetch<mode>"): Likewise.
12293 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
12295 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
12297 (scalar_chain::convert_reg): Likewise.
12299 2015-09-30 Richard Biener <rguenther@suse.de>
12301 * builtins.c: Add comment that no new simplifications should
12304 2015-09-30 Marek Polacek <polacek@redhat.com>
12306 PR tree-optimization/67690
12307 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
12308 reset_flow_sensitive_info_in_bb.
12309 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
12310 * tree-ssanames.c: Include "gimple-iterator.h".
12311 (reset_flow_sensitive_info_in_bb): New function.
12312 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
12314 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
12316 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
12317 variable, replacing it with...
12318 (offload_abi): ... this new variable. Adjust all users.
12319 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
12321 2015-09-30 Matthias Klose <doko@ubuntu.com>
12323 * configure.ac: Remove extraneous ;;.
12324 * configure: Regenerate.
12326 2015-09-29 James Bowman <james.bowman@ftdichip.com>
12328 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
12329 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
12330 predicate, disallow register for operand 2.
12332 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
12334 * graphite-dependences.c (scop_get_dependences): Moved in down
12335 in order to be visible to its caller.
12336 * graphite-poly.h: Removed compute_deps, and extend_schedule.
12338 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12339 Aditya Kumar <aditya.k7@samsung.com>
12341 PR tree-optimization/67754
12342 * graphite-optimize-isl.c (optimize_isl): Call
12343 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
12345 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
12347 * builtins.c (expand_builtin_acc_on_device): Delete.
12348 (expand_builtin): Don't call it.
12349 (fold_builtin_1): Fold acc_on_device.
12351 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
12353 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
12354 (ix86_nsaved_sseregs): Likewise.
12356 2015-09-29 Jeff Law <law@redhat.com>
12358 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
12359 computation of unused value.
12361 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
12362 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
12363 inline macro expansion.
12365 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
12367 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
12368 (gen_shl_sext): Likewise.
12369 * config/sh/sh.md (divsi3): Likewise.
12370 (imm->ext_dest_operand splitter): Likewise.
12372 2015-09-29 Sebastian Pop <s.pop@samsung.com>
12373 Aditya Kumar <aditya.k7@samsung.com>
12375 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
12376 (nb_data_writes_in_bb): Remove.
12377 (split_pbb): Remove.
12378 (split_reduction_stmt): Remove.
12379 (is_reduction_operation_p): Remove.
12380 (phi_contains_arg): Remove.
12381 (follow_ssa_with_commutative_ops): Remove.
12382 (detect_commutative_reduction_arg): Remove.
12383 (detect_commutative_reduction_assign): Remove.
12384 (follow_inital_value_to_phi): Remove.
12385 (edge_initial_value_for_loop_phi): Remove.
12386 (initial_value_for_loop_phi): Remove.
12387 (used_outside_reduction): Remove.
12388 (detect_commutative_reduction): Remove.
12389 (translate_scalar_reduction_to_array_for_stmt): Remove.
12390 (remove_phi): Remove.
12391 (dr_indices_valid_in_loop): Remove.
12392 (close_phi_written_to_memory): Remove.
12393 (translate_scalar_reduction_to_array): Remove.
12394 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
12395 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
12396 (rewrite_commutative_reductions_out_of_ssa): Remove.
12397 (build_poly_scop): Remove call to
12398 rewrite_commutative_reductions_out_of_ssa.
12400 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
12402 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
12403 Add new insn types for vector load and store pairs.
12404 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
12405 types "neon_ldp{,_q}".
12406 * config/arm/cortex-a57.md (neon_load_c): Add insn types
12408 (neon_store_complex): Add insn types "neon_stp{,_q}".
12409 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
12410 "neon_{ldp,stp}_q".
12412 2015-09-29 Jeff Law <law@redhat.com>
12414 * config/rx/constraints.md (Int08): Fix undefined left shift
12416 (Sint08, Sint16, Sint24): Likewise.
12417 * config/rx/rx.c (rx_get_stack_layout): Likewise.
12419 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
12422 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
12423 left shift behaviour.
12424 * config/msp430/constraints.md ('L' constraint): Similarly.
12425 ('Ys' constraint): Similarly.
12427 2015-09-29 Richard Biener <rguenther@suse.de>
12429 PR tree-optimization/67170
12430 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
12431 the translate function pointer parameter to get the
12432 bool whether to disambiguate only by reference.
12433 (walk_non_aliased_vuses): Likewise.
12434 * tree-ssa-alias.c (maybe_skip_until): Adjust.
12435 (get_continuation_for_phi_1): Likewise.
12436 (get_continuation_for_phi): Likewise.
12437 (walk_non_aliased_vuses): Likewise.
12438 * tree-ssa-sccvn.c (const_parms): New bitmap.
12439 (vn_reference_lookup_3): Adjust for interface change.
12440 Disambiguate parameters pointing to readonly memory.
12441 (free_scc_vn): Free const_parms.
12442 (run_scc_vn): Initialize const_parms from a fn spec attribute.
12444 2015-09-29 Richard Biener <rguenther@suse.de>
12446 PR tree-optimization/67741
12447 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
12448 builtin calls with correct signature.
12450 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
12453 * config/i386/i386.c: Include dbgcnt.h.
12454 (has_non_address_hard_reg): New.
12455 (convertible_comparison_p): New.
12456 (scalar_to_vector_candidate_p): New.
12457 (remove_non_convertible_regs): New.
12458 (scalar_chain): New.
12459 (scalar_chain::scalar_chain): New.
12460 (scalar_chain::~scalar_chain): New.
12461 (scalar_chain::add_to_queue): New.
12462 (scalar_chain::mark_dual_mode_def): New.
12463 (scalar_chain::analyze_register_chain): New.
12464 (scalar_chain::add_insn): New.
12465 (scalar_chain::build): New.
12466 (scalar_chain::compute_convert_gain): New.
12467 (scalar_chain::replace_with_subreg): New.
12468 (scalar_chain::replace_with_subreg_in_insn): New.
12469 (scalar_chain::emit_conversion_insns): New.
12470 (scalar_chain::make_vector_copies): New.
12471 (scalar_chain::convert_reg): New.
12472 (scalar_chain::convert_op): New.
12473 (scalar_chain::convert_insn): New.
12474 (scalar_chain::convert): New.
12475 (convert_scalars_to_vector): New.
12476 (pass_data_stv): New.
12478 (make_pass_stv): New.
12479 (ix86_option_override): Created and register stv pass.
12480 (flag_opts): Add -mstv.
12481 (ix86_option_override_internal): Likewise.
12482 * config/i386/i386.md (SWIM1248x): New.
12483 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
12484 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
12485 (*anddi3_doubleword): New.
12486 (*zext<mode>_doubleword): New.
12487 (*zextsi_doubleword): New.
12488 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
12489 (*<code>di3_doubleword): New.
12490 * config/i386/i386.opt (mstv): New.
12491 * dbgcnt.def (stv_conversion): New.
12493 2015-09-29 Tom de Vries <tom@codesourcery.com>
12495 * tree-cfg.c (dump_function_to_file): Dump function attributes.
12497 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
12500 * config/sh/sh.c (sh_override_options_after_change): New.
12501 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
12502 (sh_option_override): Move align_loops, align_jumps and
12503 align_functions handling into sh_override_options_after_change.
12505 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
12507 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
12508 (nvptx_record_offload_symbol): Record function execution geometry.
12509 * config/nvptx/mkoffload.c (process): Include launch geometry in
12511 * omp-low.c (oacc_launch_pack): New.
12512 (replace_oacc_fn_attrib): New.
12513 (set_oacc_fn_attrib): New.
12514 (get_oacc_fn_attrib): New.
12515 (expand_omp_target): Create keyed varargs for GOACC_parallel call
12517 * omp-low.h (get_oacc_fn_attrib): Declare.
12518 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
12519 (DEF_FUNCTION_TYPE_VAR_11): Delete.
12520 * tree.h (OMP_CLAUSE_EXPR): New.
12521 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
12523 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12524 Sebastian Pop <s.pop@samsung.com>
12526 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
12528 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12529 Sebastian Pop <s.pop@samsung.com>
12531 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
12532 * graphite-scop-detection.c (struct sese_l): New type.
12533 (get_entry_bb): API for getting entry bb of SESE.
12534 (get_exit_bb): API for getting exit bb of SESE.
12535 (class debug_printer): New type. Simple printer in debug mode.
12536 (trivially_empty_bb_p): New. Return true when BB is empty or
12537 contains only debug instructions.
12538 (graphite_can_represent_expr): Call scalar_evoution_in_region
12539 instead of analyze_scalar_evolution. Pass in scop instead of only
12541 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
12543 (stmt_simple_for_scop_p): Same.
12544 (harmful_stmt_in_bb): Same.
12545 (graphite_can_represent_loop): Deleted.
12546 (struct scopdet_info): Deleted.
12547 (scopdet_basic_block_info): Deleted.
12548 (build_scops_1): Deleted.
12549 (bb_in_sd_region): Deleted.
12550 (find_single_entry_edge): Deleted.
12551 (find_single_exit_edge): Deleted.
12552 (create_single_entry_edge): Deleted.
12553 (sd_region_without_exit): Deleted.
12554 (create_single_exit_edge): Deleted.
12555 (unmark_exit_edges): Deleted.
12556 (mark_exit_edges): Deleted.
12557 (create_sese_edges): Deleted.
12558 (build_graphite_scops): Deleted.
12559 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
12560 (build_scops): Use the new scop_builder to build scops.
12561 (dot_all_scops_1): Use the new pretty printer. Print loop father
12563 (loop_body_is_valid_scop): New. Return true if loop body is a
12565 (class scop_builder): New. Builds SCoPs for polyhedral
12567 (scop_builder): New constructor.
12568 (static sese_l invalid_sese): sese_l with invalid edges.
12569 (get_sese): Get an sese (from a loop) if possible, invalid_sese
12571 (get_nearest_dom_with_single_entry): Get nearest dominator of a
12572 basic_block with single entry. Return NULL if we get to the
12573 beginning of a function.
12574 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
12575 a basic_block with single exit. Return NULL if we get to the
12576 beginning of a function.
12577 (print_sese): Pretty-print SESE.
12578 (merge_sese): Merge two SESEs if possible and return the new SESE.
12579 (build_scop_depth): Start building the SCoP within a loop nest.
12580 (build_scop_breadth): Start building the SCoP at a single loop
12581 depth. Merge adjacent SESEs if valid.
12582 (can_represent_loop_1): Returns true if Graphite can represent
12583 loop inside SCoP. Helper for can_represent_loop.
12584 (can_represent_loop): Returns true if Graphite can represent LOOP
12585 and all its nested loops in SCoP.
12586 (loop_is_valid_scop): Returns true if LOOP and all its nests
12587 constitute a valid SCoP.
12588 (region_has_one_loop): Returns true of a region has only one loop.
12589 (add_scop): Add SCoP to the list of valid scops. Removes an
12590 already existing scop if it intersects with or subsumed by this one.
12591 (harmful_stmt_in_region): Returns true if SCoP has any statment
12592 which cannot be represented by Graphite.
12593 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
12594 (remove_subscops): Remove any SCoP from the list of already found
12595 SCoPs, if subsumed by S1.
12596 (intersects): Return true if region bounded by SCoPs S1 and S2
12598 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
12599 * graphite.c (print_graphite_scop_statistics):
12600 (print_graphite_statistics): Print SCoP info while debugging.
12601 (graphite_initialize): Early exit in case number of loops in a
12602 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
12603 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
12604 (graphite_finalize):
12605 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
12606 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
12607 (recompute_all_dominators): Recalculate POST_DOMINATORS.
12608 * tree-cfg.c (print_loops): Print the function name while printing
12611 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
12612 Sebastian Pop <s.pop@samsung.com>
12614 PR tree-optimization/67700
12615 * graphite-sese-to-poly.c (parameter_index_in_region): Call
12616 invariant_in_sese_p_rec.
12617 (extract_affine): Same.
12618 (rewrite_cross_bb_scalar_deps): Call update_ssa.
12619 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
12620 * sese.h (invariant_in_sese_p_rec): Declare.
12622 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
12624 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
12626 2015-09-28 Jiong Wang <jiong.wang@arm.com>
12629 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12630 Jiong Wang <jiong.wang@arm.com>
12632 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
12633 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
12634 (REG_CLASS_NAMES): Likewise.
12635 (REG_CLASS_CONTENTS): Likewise.
12636 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
12637 (aarch64_register_move_cost): Likewise.
12638 (aarch64_load_symref_appropriately): Invoke the new added pattern if
12640 * config/aarch64/constraints.md (Uc0): New constraint.
12642 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
12644 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
12646 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
12648 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
12649 SECTION_EXCLUDE in XO mapping class.
12651 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
12654 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
12655 and handle ne and eq codes.
12656 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
12657 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
12658 CONST_INT_P. Use reverse_condition.
12659 (sh_split_treg_set_expr): Likewise.
12661 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
12663 * config/arm/types.md (type): Add rotate_imm.
12664 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
12665 ROR immediate case.
12666 (*rorsi3_insn_uxtw): Likewise.
12667 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
12668 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
12669 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
12671 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12673 PR rtl-optimization/67481
12674 * ifcvt.c (contains_ccmode_rtx_p): New function.
12675 (insn_valid_noce_process_p): Use it.
12677 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12679 PR rtl-optimization/67456
12680 PR rtl-optimization/67464
12681 PR rtl-optimization/67465
12682 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
12683 move in the mode of x. Handle combination of complex and simple
12684 block pairs as well as the case when one is empty.
12686 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12688 * doc/gimple.texi: Update references to gimple_statement_base.
12689 * gdbhooks.py: Likewise.
12690 * gimple.h: Likewise.
12692 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12694 * config/sparc/driver-sparc.c: map LEON to leon3
12696 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12698 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
12699 and make it inverse to change default
12700 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
12702 * doc/invoke.texi: Document change of default
12704 2015-09-28 Daniel Cederman <cederman@gaisler.com>
12706 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
12707 true on %f0 for a target without FPU.
12708 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
12710 (untyped_return): Do not load %f0 for a target without FPU.
12712 2015-09-28 Andrew Pinski <apinski@cavium.com>
12714 * config/aarch64/aarch64.md (prefetch):
12715 Change the predicate of operand 0 to register_operand.
12717 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
12719 * config/i386/predicates.md (register_sse4nonimm_operand): New
12721 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
12722 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
12723 Use register_sse4nonimm_operand as operand 0 predicate.
12724 (*vec_extractv8hi_sse2): Remove insn pattern.
12725 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
12726 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
12728 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
12729 Kaz Kojima <kkojima@gcc.gnu.org>
12732 * config/sh/sh-protos.h (sh_lra_p): Declare.
12733 * config/sh/sh.c (sh_lra_p): Make non-static.
12734 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
12735 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
12736 Expand into addsi3_scr if operands[2] if needed.
12737 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
12738 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
12739 (addsi3_scr, *addsi3): New insn_and_split patterns.
12741 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
12743 PR rtl-optimization/64164
12744 PR tree-optimization/67312
12745 PR middle-end/67340
12746 PR middle-end/67490
12748 * cfgexpand.c (parm_in_stack_slot_p): Remove.
12749 (ssa_default_def_partition): Remove.
12750 (get_rtl_for_parm_ssa_default_def): Remove.
12751 (set_rtl): Check that RTL assignments match expectations.
12752 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
12753 default def location for params and results. Record SSA names
12754 or types in REG and MEM attrs, respectively.
12755 (set_parm_rtl): New.
12756 (expand_one_ssa_partition): Drop logic that assigned MEMs with
12757 unassigned addresses.
12758 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
12759 deferred stack alloc vars.
12760 (expand_used_vars): Skip partitions holding parm default defs.
12761 Move adjust_one_expanded_partition_var loop...
12762 (pass_expand::execute): ... here. Drop redundant assert.
12763 Adjust comments before the final loop over all ssa names.
12764 Require assigned rtl of parms and results to match exactly.
12765 Reset its attributes to match them, not any other variables in
12766 the same partition.
12767 (expand_debug_expr): Use entry value for PARM's default defs
12768 only iff they have zero nondebug uses.
12769 * cfgexpand.h (parm_in_stack_slot_p): Remove.
12770 (get_rtl_for_parm_ssa_default_def): Remove.
12771 (set_parm_rtl): Declare.
12772 * doc/invoke.texi: Improve wording.
12773 * explow.c (promote_decl_mode): Fix promote_function_mode for
12774 result decls not by reference.
12775 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
12776 bypass TYPE_MODE to get the actual vector mode.
12777 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
12778 2015-08-19's changes as follows. Drop include of
12779 basic-block.h and df.h.
12780 (rtl_for_parm): Remove.
12781 (maybe_reset_rtl_for_parm): Remove.
12782 (parm_in_unassigned_mem_p): Remove.
12783 (use_register_for_decl): Add logic for RESULT_DECLs matching
12784 assign_parms' behavior.
12785 (split_complex_args): Revert.
12786 (assign_parms_augmented_arg_list): Revert. Add comment
12787 referencing the logic above.
12788 (assign_parm_adjust_stack_rtl): Revert.
12789 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
12790 of SET_DECL_RTL. Set up a REG if the parm demands so.
12791 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
12792 calls into a single set_parm_rtl. Set up a temporary RTL
12793 temporarily for expand_assignment.
12794 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
12795 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
12796 (assign_bounds): Revert.
12797 (assign_parms): Revert. Use set_parm_rtl.
12798 (allocate_struct_function): Relayout result and parms of
12799 non-abstruct functions.
12800 (expand_function_start): Revert. Use set_parm_rtl. If the
12801 result is not a hard reg, create a pseudo from the promoted
12802 mode of the default def. Promote static chain mode.
12803 * tree-outof-ssa.c (remove_ssa_form): Drop unused
12804 partition_has_default_def. Set up
12805 partitions_for_parm_default_defs.
12806 (finish_out_of_ssa): Remove partition_has_default_def.
12807 Release partitions_for_parm_default_defs.
12808 * tree-outof-ssa.h (struct ssaexpand): Remove
12809 partition_has_default_def. Add
12810 partitions_for_parm_default_defs.
12811 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
12813 (build_ssa_conflict_graph): Fix conflict-detection of default
12814 defs of even unused default defs of params and results.
12815 (for_all_parms): New.
12816 (create_default_def): New.
12817 (register_default_def): New.
12818 (coalesce_with_default): New.
12819 (create_outofssa_var_map): Create default defs for all parms
12820 and results, and register their partitions. Add GIMPLE_RETURN
12821 operands as coalesce candidates with results. Add default
12822 defs of each parm or result as coalesce candidates with its
12823 other defs. Mark each result def, and each default def of
12824 parms, as used_in_copy.
12825 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
12826 with the ssa names, even anonymous ones. Drop
12827 parm_in_stack_slot_p calls. Require same signedness and
12829 (coalesce_ssa_name): Add coalesce candidates for all defs of
12830 each parm and result, even unused ones.
12831 (parm_default_def_partition_arg): New type.
12832 (set_parm_default_def_partition): New.
12833 (get_parm_default_def_partitions): New.
12834 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
12835 * tree-ssa-live.c (partition_view_init): Regard unused defs of
12836 parms and results as used.
12837 (verify_live_on_entry): Don't error out just because they're
12840 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
12842 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12843 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
12844 (output_fde): Don't output length for debug_frame on AIX.
12845 (output_call_frame_info): Don't output length for debug_frame on AIX.
12846 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
12847 HAVE_XCOFF_DWARF_EXTRAS.
12848 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
12849 HAVE_XCOFF_DWARF_EXTRAS.
12850 (output_compilation_unit_header): Don't output length on AIX.
12851 (output_pubnames): Don't output length on AIX.
12852 (output_aranges): Delete argument. Compute length locally. Don't
12853 output length on AIX.
12854 (output_line_info): Don't output length on AIX.
12855 (dwarf2out_finish): Don't compute aranges_length.
12856 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
12857 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
12858 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
12859 symbol decoration for AIX.
12860 (rs6000_xcoff_debug_unwind_info): New.
12861 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
12863 (rs6000_xcoff_declare_function_name): Emit different
12864 .function pseudo-op when DWARF2_DEBUG. Don't call
12865 xcoffout_declare_function for DWARF2_DEBUG.
12866 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
12868 * config/rs6000/aix71.h: New.
12869 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
12871 * configure: Regenerate.
12872 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
12875 2015-09-26 Jeff Law <law@redhat.com>
12877 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
12879 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
12882 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
12885 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
12886 undefined behaviour.
12888 * config/cris/cris.md (asrandb): Fix left shift undefined
12890 (asrandw): Likewise.
12892 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
12895 * lra-constarints.c (match_reload): Check presence of the input pseudo
12896 in the output operand.
12898 2015-09-25 Tobias Burnus <burnus@net-b.de>
12900 * doc/invoke.texi (-fsanitize): Minor wording tweak.
12902 2015-09-25 Tobias Burnus <burnus@net-b.de>
12904 * doc/invoke.texi (-fsanitize): Update URLs.
12906 2015-09-25 Teresa Johnson <tejohnson@google.com>
12908 * opts.c (finish_options): Unset -freorder-blocks-and-partition
12909 if not using profile.
12911 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
12913 PR pretty-print/67567
12914 * pretty-print.c (pp_string): Add gcc_checking_assert.
12915 * pretty-print.h (output_buffer_append_r): Likewise.
12917 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
12920 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
12921 addr2 individually. Don't emit logical or insn if one is known to
12922 be aligned approriately.
12923 (sh_expand_cmpnstr): Likewise.
12925 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
12927 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
12928 __builtin_aarch64_fp[sc]r arguments into a register.
12930 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
12932 * config.gcc (x86_archs): Replace lakemount with lakemont.
12933 (with_cpu): Likewise.
12934 (with_arch): Likewise.
12935 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12936 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
12937 __tune_lakemount__ with __tune_lakemont__.
12938 * config/i386/i386.c (lakemount_cost): Renamed to ...
12939 (lakemont_cost): This.
12940 (m_LAKEMOUNT): Renamed to ...
12941 (m_LAKEMONT): This.
12942 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
12943 (processor_target_table): Replace "lakemount" with "lakemont".
12944 (processor_alias_table): Likewise.
12945 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
12946 PROCESSOR_LAKEMONT.
12947 (ix86_adjust_cost): Likewise.
12948 (ia32_multipass_dfa_lookahead): Likewise.
12949 * config/i386/i386.h (processor_type): Likewise.
12950 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
12951 * doc/invoke.texi: Replace lakemount with lakemont. Replace
12952 Lakemount with Lakemont.
12954 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
12956 * config.gcc (x86_archs): Replace iamcu with lakemount.
12957 (with_cpu): Likewise.
12958 (with_arch): Likewise.
12959 * doc/invoke.texi: Likewise.
12960 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
12961 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
12962 __tune_iamcu__ with __tune_lakemount__.
12963 * config/i386/i386.c (iamcu_cost): Renamed to ...
12964 (lakemount_cost): This.
12965 (m_IAMCU): Renamed to ...
12966 (m_LAKEMOUNT): This.
12967 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
12968 (processor_target_table): Replace "iamcu" with "lakemount".
12969 (processor_alias_table): Likewise.
12970 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
12971 PROCESSOR_LAKEMOUNT.
12972 (ix86_adjust_cost): Likewise.
12973 (ia32_multipass_dfa_lookahead): Likewise.
12974 * config/i386/i386.h (processor_type): Likewise.
12975 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
12977 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
12979 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
12980 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
12982 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
12983 (pa_expand_compare_and_swap_loop): New.
12984 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
12985 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
12986 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
12987 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
12988 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
12991 2015-09-24 Michael Collison <michael.collison@linaro.org>
12994 * read-md.c (read_name): Allow mode iterators inside angle
12995 brackets in rtl expressions.
12997 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
13000 * ira-color.c (update_allocno_cost): Add parameter.
13001 (update_costs_from_allocno): Decrease conflict cost. Pass the new
13004 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
13007 * opts-common.c (prune_options): Discard all -fdiagnostics-color
13008 but the last one, which is moved to the front to be processed
13010 * opts.c (enable_warning_as_error): Reject options that do not
13013 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13015 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
13017 2015-09-24 Jiong Wang <jiong.wang@arm.com>
13019 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
13020 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
13021 (aarch64_cannot_force_const_mem): Likewise.
13022 (aarch64_classify_address): Likewise.
13023 (aarch64_classify_symbolic_expression): Likewise.
13024 (aarch64_print_operand): Likewise.
13025 (aarch64_classify_symbol): Likewise.
13026 (aarch64_mov_operand_p): Likewise.
13027 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
13028 (aarch64_mov_operand): Likewise.
13030 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
13032 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
13033 for info->spe_gp_size.
13035 2015-09-24 Richard Biener <rguenther@suse.de>
13038 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
13041 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
13043 * tree-object-size.c (plus_stmt_object_size)
13044 (cond_expr_object_size): Change the formal parameters from gimple
13046 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
13047 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
13048 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
13050 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13052 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
13053 Check for ld -type pie on Solaris 11.x and 12.
13054 * configure: Regenerate.
13055 * config.in: Regenerate.
13057 * gcc.c (LD_PIE_SPEC): Allow redefinition.
13059 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
13060 (STARTFILE_SPEC): Use it.
13061 (ENDFILE_CRTEND_SPEC): Define.
13062 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
13063 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
13064 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
13065 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
13066 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
13067 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
13068 (ENDFILE_ARCH_SPEC): Define.
13069 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
13071 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
13073 * configure.ac (gcc_cv_solaris_crts): New test.
13074 * configure. Regenerate.
13075 * config.in: Regenerate.
13076 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
13077 HAVE_SOLARIS_CRTS variant.
13079 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13081 * tree-inline.h (count_insns_seq): Delete prototype.
13082 (estimate_num_insns_seq): Define prototype.
13083 * tree-inline.c (count_insns_seq): Delete.
13084 (estimate_num_insns_seq): Remove static qualifier.
13085 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
13086 with estimate_num_insns_seq.
13088 2015-09-24 Richard Biener <rguenther@suse.de>
13090 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
13092 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
13093 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
13095 (ao_ref_init_from_vn_reference): Record clique and base in the
13097 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
13099 2015-09-24 Richard Biener <rguenther@suse.de>
13101 PR tree-optimization/48885
13102 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
13103 as not including any restrict tags from other pointers.
13105 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13107 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
13108 character when appending to offload_targets.
13110 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
13111 offload targets by commas, not colons.
13112 * config.in: Regenerate.
13113 * configure: Likewise.
13114 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
13115 instead of setting up the default offload targets here...
13116 (process_command): ..., do it here.
13118 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
13119 targets are separated by commas.
13120 * config.h.in: Regenerate.
13122 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
13123 Nathan Sidwell <nathan@codesourcery.com>
13125 * omp-low.h (omp_reduction_init_op): Declare.
13126 * omp-low.c (omp_reduction_init_op): New, broken out of ...
13127 (omp_reduction_init): ... here. Call it.
13128 * tree-parloops.c (initialize_reductions): Use
13129 omp_reduction_init_op.
13131 2015-09-23 Richard Biener <rguenther@suse.de>
13133 PR middle-end/67662
13134 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
13135 undefined overflow unless they will cancel out.
13137 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13139 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
13142 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
13145 * opts.h (write_langs): Declare.
13146 * opts-global.c (write_langs): Make it extern.
13148 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
13151 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
13152 overlapping regs when matching the pattern.
13154 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
13156 * config/aarch64/aarch64-simd.md
13157 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
13158 (aarch64_float_truncate_hi_v4sf_le): New.
13159 (aarch64_float_truncate_hi_v4sf_be): Likewise.
13161 2015-09-23 Richard Biener <rguenther@suse.de>
13163 * tree-ssa-structalias.c (intra_create_variable_infos): Build
13164 representatives for all restrict qualified pointer destinations.
13166 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
13168 * config/i386/i386.md (define_code_attr mshift): New.
13169 (define_mode_iterator SWI1248_AVX512BW): Rename ...
13170 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
13172 (define_insn "*k<logic><mode>"): Use new iterator name.
13173 (define_insn "*<mshift><mode>3"): New.
13175 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
13177 PR middle-end/67649
13178 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
13179 mark the block as accessible.
13181 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
13183 * function.c (thread_prologue_and_epilogue_insns): Delete
13184 orig_entry_edge argument to try_shrink_wrapping.
13185 * shrink-wrap.c (can_get_prologue): New function.
13186 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
13187 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
13188 can_get_prologue where needed. Remove code that finds a single
13189 edge for the prologue. Remove code that tests if any reg clobbered
13190 by the prologue is live on the prologue edge. Remove code that finds
13191 the new prologue edge after duplicating blocks. Make a new prologue
13193 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
13195 2015-09-22 Jeff Law <law@redhat.com>
13197 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
13200 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
13202 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
13203 -Wtemplates, -Wnamespaces): Document.
13205 2015-09-22 Tom de Vries <tom@codesourcery.com>
13207 PR tree-optimization/67671
13208 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
13209 pointer references as restrict.
13211 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
13213 * config/nios2/nios2.c (nios2_legitimize_address): When handling
13214 'reg + reloc' cases, allow first operand to be non-REG, and use
13215 force_reg() to enforce address pattern.
13217 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
13220 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
13221 (define_mode_iterator VI12_AVX_AVX512F): New.
13222 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
13223 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
13224 (define_insn "*<code><mode>3"): ... Into new pattern using
13225 VI12_AVX_AVX512F iterators without masking.
13227 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13229 * config.gcc: Support "skylake-avx512".
13230 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
13231 PROCESSOR_SKYLAKE_AVX512.
13232 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
13233 (processor_target_table): Add "skylake-avx512".
13234 (PTA_SKYLAKE_AVX512): Define.
13235 (ix86_option_override_internal): Add "skylake_avx512".
13236 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
13237 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
13238 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
13239 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
13240 * doc/invoke.texi (skylake-avx512): New.
13242 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13244 * config/i386/i386.md (define_insn "kunpckhi"): Fix
13245 operand in pattern.
13246 (define_insn "kunpcksi"): Ditto.
13247 (define_insn "kunpckdi"): Ditto.
13249 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
13251 * config/i386/i386.md (define_split not/xor SWI1248x): Use
13252 iterator instead of fixed modes.
13254 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13256 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13257 Adjust declaration.
13258 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
13259 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
13260 out_result. Update to support update-fetch operations.
13261 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
13262 Adjust for change to aarch64_gen_atomic_ldop.
13263 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
13264 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
13265 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
13266 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
13267 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
13269 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13271 * config/aarch64/aarch64-protos.h
13272 (aarch64_atomic_ldop_supported_p): Declare.
13273 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
13274 (enum aarch64_atomic_load_op_code): New.
13275 (aarch64_emit_atomic_load_op): New.
13276 (aarch64_gen_atomic_ldop): Update to support load-operate
13278 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
13280 (aarch64_atomic_<atomic_optab><mode>): New.
13281 (aarch64_atomic_<atomic_optab><mode>_lse): New.
13282 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
13283 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
13284 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
13286 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13288 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
13289 (UNSPECV_ATOMIC_LDOP_OR): New.
13290 (UNSPECV_ATOMIC_LDOP_BIC): New.
13291 (UNSPECV_ATOMIC_LDOP_XOR): New.
13292 (UNSPECV_ATOMIC_LDOP_PLUS): New.
13293 (ATOMIC_LDOP): New.
13294 (atomic_ldop): New.
13295 (aarch64_atomic_load<atomic_ldop><mode>): New.
13297 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13299 * config/aarch64/aarch64.md
13300 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
13303 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
13305 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
13307 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
13308 (aarch64_gen_atomic_ldop): New.
13309 (aarch64_split_atomic_op): Fix whitespace and add a comment.
13310 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
13311 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
13312 (atomic_exchange<mode>): Replace with an expander.
13313 (aarch64_atomic_exchange<mode>): New.
13314 (aarch64_atomic_exchange<mode>_lse): New.
13315 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
13316 (aarch64_atomic_swp<mode>): New.
13318 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
13320 * tree-inline.c (expand_call_inline): Use inform for extra note.
13321 Do not give a note with UNKNOWN_LOCATION.
13322 Replace input_location with gimple_location (stmt).
13323 Use true/false instead of TRUE/FALSE.
13325 2015-09-22 Tom de Vries <tom@codesourcery.com>
13327 PR tree-optimization/67666
13328 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
13329 with single field non-conservative.
13331 2015-09-21 David S. Miller <davem@davemloft.net>
13335 2015-09-11 David S. Miller <davem@davemloft.net>
13337 * config/sparc/constraints.md: Make "U" constraint a real register
13339 * config/sparc/sparc.c (TARGET_LRA_P): Define.
13340 (D_MODES, DF_MODES): Add missing cast.
13341 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
13342 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
13343 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
13345 * config/sparc/sparc.h (PROMOTE_MODE): Define.
13346 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
13347 provide these insn when flag_pic.
13349 2015-09-17 David S. Miller <davem@davemloft.net>
13351 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
13353 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
13355 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13356 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13357 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13358 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13359 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13360 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13361 provide when flag_pic.
13363 2015-09-21 Jeff Law <law@redhat.com>
13365 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
13368 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
13370 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
13372 2015-09-21 Richard Biener <rguenther@suse.de>
13374 * passes.c (rest_of_decl_compilation): Do not call
13375 dwarf2out_early_global_decl for aliases.
13377 2015-09-21 Richard Biener <rguenther@suse.de>
13380 * dwarf2out.c (add_location_or_const_value_attribute): Remove
13381 attribute parameter. Early exit if either DW_AT_const_value
13382 or DW_AT_location are present already.
13383 (gen_variable_die): Adjust caller.
13384 (dwarf2out_late_global_decl): Likewise.
13386 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13389 * config/sh/sh.c (sh_remove_overlapping_post_inc,
13390 sh_peephole_emit_move_insn): Add new functions.
13391 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
13392 sh_peephole_emit_move_insn): Declere them.
13393 * config/sh/sh.md: Use them in various peephole2 patterns.
13395 2015-09-21 Richard Biener <rguenther@suse.de>
13397 PR middle-end/67651
13398 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
13399 address with -fno-delete-null-pointer-checks.
13401 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
13403 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
13404 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
13405 (reduc_uplus_v16qi): Remove.
13407 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
13408 (reduc_<VEC_reduc_name>_v2df): Remove.
13409 (reduc_<VEC_reduc_name>_v4sf): Remove.
13410 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
13412 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
13413 gen_ function by removing * prefix.
13414 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
13416 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
13418 PR middle-end/60832
13419 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
13420 Print i_bound without converting it to a tree.
13422 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
13424 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
13425 operands[4] operands[5] swap with std::swap, removed tmp variable.
13426 (arm_evpc_neon_vzip): Replaced in0/in1 and
13427 out0/out1 swaps with std::swap, removed x variable.
13428 (arm_evpc_neon_vtrn): Replaced in0/int1 and
13429 out0/out1 swaos with std::swap, removed x variable.
13430 (arm_expand_vec_perm_const_1): Replaced
13431 d->op0/d->op1 swap with std::swap, removed x variable.
13432 (arm_evpc_neon_vuzp): Replaced in0/in1 and
13433 out0/out1 swaps with std::swap, removed x variable.
13435 2015-09-21 Jonathan Yong <10walls@gmail.com>
13437 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
13438 sysroot/usr/lib/32api for additional win32 libraries,
13439 fixes failing Cygwin bootstrapping.
13441 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13443 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
13445 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
13448 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
13449 (*mov_t_msb_neg): Rewrite negc pattern.
13451 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13453 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
13454 immediate generation code.
13456 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13458 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
13459 redundant immediate generation code.
13461 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13463 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
13464 (AARCH64_NUM_BITMASKS): Remove.
13465 (aarch64_bitmasks_cmp): Remove.
13466 (aarch64_build_bitmask_table): Remove.
13468 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13470 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
13471 slow immediate matching loops with a faster algorithm.
13473 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
13475 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
13478 2015-09-20 Jeff Law <law@redhat.com>
13480 PR tree-optimization/47679
13481 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
13482 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
13483 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
13484 (thread_through_normal_block): Use record_temporary_equivalences.
13486 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
13488 * coretypes.h (gimple): Change typedef to be a forward declaration.
13489 * gimple.h (gimple_statement_base): rename to gimple.
13490 * (all functions and types using gimple): Adjust.
13491 * *.[ch]: Likewise.
13493 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
13494 David Edelsohn <dje.gcc@gmail.com>
13496 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
13497 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13498 (EH_FRAME_THROUGH_COLLECT2): Define.
13499 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13500 (ASM_OUTPUT_DWARF_PCREL): Define.
13501 (ASM_OUTPUT_DWARF_DATAREL): Define.
13503 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
13505 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
13508 2015-09-18 Jeff Law <law@redhat.com>
13510 PR tree-optimization/47679
13511 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
13513 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
13514 object. Update constructor.
13515 (pass_dominator::execute): Corresponding chagnes to declaration
13516 and initialization of avail_exprs_stack. Update constructor call
13517 for dom_opt_dom_walker object.
13518 (lookup_avail_expr, record_cond): Accept additional argument. Pass
13519 it down to children as needed.
13520 (record_equivalences_from_incoming_edge): Likewise.
13521 (eliminate_redundant_computations): Likewise.
13522 (record_equivalences_from_stmt): Likewise.
13523 (simplify_stmt_for_jump_threading): Likewise.
13524 (record_temporary_equivalences): Likewise.
13525 (optimize_stmt): Likewise.
13526 (dom_opt_dom_walker::thread_across_edge): Update access to
13527 avail_exprs_stack object and pass it to children as needed.
13528 (dom_opt_dom_walker::before_dom_children): Similarly.
13529 (dom_opt_dom_walker::after_dom_children): Similarly.
13530 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
13531 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
13532 Add avail_expr_stack argument. Pass it to children as needed.
13533 (dummy_simplify): Likewise.
13534 (simplify_control_stmt_condition): Likewise.
13535 (thread_around_empty_blocks): Likewise.
13536 (thread_through_normal_block): Likewise.
13537 (thread_across_edge): Likewise.
13538 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13539 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
13541 PR tree-optimization/47679
13542 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
13544 (dom_opt_dom_walker): New private member holding the const_and_copies
13545 object. Update constructor.
13546 (pass_dominator::execute): Corresponding changes to declaration
13547 and initialization of const_and_copies. Update constructor call
13548 for the dom_opt_dom_walker object.
13549 (record_temporary_equivalences): Accept const_and_copies argument
13550 pass it down to children as needed.
13551 (record_equality): Likewise.
13552 (record_equivalences_from_incoming_edge): Likewise.
13553 (cprop_into_successor_phis, optimize_stmt): Likewise.
13554 (eliminate_redundant_computations): Likewise.
13555 (dom_opt_dom_walker::thread_across_edge): Update access to
13556 const_and_copies object and pass it to children as needed.
13557 (dom_opt_dom_walker::before_dom_children): Similarly.
13558 (dom_opt_dom_walker::after_dom_children): Similarly.
13560 PR tree-optimization/47679
13561 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
13562 it into the avail_exprs_stack class.
13563 (pass_dominator::execute): Corresponding changes to declaration
13564 and initialization of avail_exprs. Pass avail_exprs to
13565 dump_dominator_optimization_stats.
13566 (record_cond): Extract avail_exprs from avail_exprs_stack.
13567 (lookup_avail_expr): Similarly.
13568 (htab_staticstics): Remove unnecessary prototype. Move to earlier
13570 (dump_dominator_optimization_stats): Make static and prototype.
13571 Add argument for the hash table to dump.
13572 (debug_dominator_optimization_stats): Remove.
13573 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
13575 (debug_dominator_optimization_stats): Similarly.
13576 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
13577 "void" in prototype for pop_to_marker method. Add accessor method
13578 for the underlying avail_exprs table.
13580 * tree-ssa-threadedge.c: Remove trailing whitespace.
13582 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
13584 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
13586 (pa_ldil_cint_p): Likewise.
13587 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
13588 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
13590 * config/pa/pa.md: Likewise.
13592 2015-09-18 David Malcolm <dmalcolm@redhat.com>
13594 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
13595 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
13596 (diagnostic_show_locus): Likewise.
13597 (diagnostic_print_caret_line): Likewise.
13598 * diagnostic-show-locus.c: New file.
13600 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
13602 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
13603 "back" parameter. Declare label in #if block.
13605 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
13607 PR middle-end/67619
13608 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
13609 the address to a register.
13611 2015-09-18 Jeff Law <law@redhat.com>
13613 PR tree-optimization/47679
13614 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
13615 * tree-ssa-dom.c: Remove unnecessary header includes.
13616 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
13617 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
13618 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
13619 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
13620 (pass_phi_only_cprop::execute): Likewise.
13621 (make_pass_phi_only_cprop): Likewise.
13622 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
13623 uses of file scoped statics by passing the required objects
13624 as parameters wherever needed.
13626 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
13627 David Edelsohn <dje.gcc@gmail.com>
13629 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
13630 EH_FRAME_THROUGH_COLLECT2.
13631 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
13633 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
13634 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
13635 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
13636 * except.c (switch_to_exception_section): Use a read-only section
13637 even if EH_FRAME_SECTION_NAME is undefined.
13638 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
13639 * collect2.c (write_c_file_stat): Provide dbase on AIX.
13640 (scan_prog_file): Don't export __dso_handle nor
13641 __gcc_unwind_dbase.
13642 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
13643 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13644 (ASM_OUTPUT_DWARF_PCREL): Define.
13645 (ASM_OUTPUT_DWARF_DATAREL): Define.
13646 (EH_FRAME_THROUGH_COLLECT2): Define.
13647 (EH_FRAME_IN_DATA_SECTION): Delete.
13648 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
13649 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
13651 (rs6000_asm_output_dwarf_datarel): Declare.
13652 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
13653 (rs6000_aix_asm_output_dwarf_datarel): New.
13654 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
13655 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
13656 (EH_FRAME_THROUGH_COLLECT2): Define.
13657 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
13658 (EH_FRAME_THROUGH_COLLECT2): Define.
13659 (EH_TABLES_CAN_BE_READ_ONLY): Define.
13660 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
13661 (EH_FRAME_THROUGH_COLLECT2): New.
13662 (ASM_OUTPUT_DWARF_DATAREL): New.
13663 * doc/tm.texi: Regenerate.
13665 2015-09-18 Richard Biener <rguenther@suse.de>
13667 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
13668 we're in early phase.
13669 (schedule_generic_params_dies_gen): Likewise.
13670 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
13671 work as possible, retaining unhandled cases.
13672 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
13673 clear out generic_type_instances at the end.
13674 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
13675 (dwarf2out_early_finish): ... here. Do most of
13676 gen_remaining_tmpl_value_param_die_attribute here.
13678 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
13680 PR tree-optimization/67283
13681 * tree-sra.c (type_consists_of_records_p): Rename to...
13682 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
13683 (completely_scalarize_record): Rename to...
13684 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
13685 (scalarize_elem): New.
13686 (analyze_all_variable_accesses): Follow renamings.
13688 2015-09-18 Richard Biener <rguenther@suse.de>
13690 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
13693 2015-09-18 Richard Biener <rguenther@suse.de>
13695 PR tree-optimization/66142
13696 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
13697 treat MEM[&x] and x the same.
13698 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
13699 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
13700 when we simplified sth.
13701 (vn_reference_maybe_forwprop_address): Likewise.
13702 (valueize_refs_1): When we simplified through
13703 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
13704 set valueized_anything to true.
13705 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
13706 one ref kills the other instead of just a offset-based test.
13707 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
13708 for the operand_equal_p test to compare bases and also compare
13711 2015-09-17 Christian Bruel <christian.bruel@st.com>
13713 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
13715 2015-09-17 Richard Henderson <rth@redhat.com>
13718 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
13719 pointers that encode the alignment of the object.
13721 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13723 PR rtl-optimization/66790
13724 * df-problems.c (LIVE): Amend documentation.
13726 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
13728 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
13730 (GTFILES): Replace optabs.c with optabs-libfunc.c.
13731 * genopinit.c (main): Add an include guard to insn-opinit.h.
13732 Protect the rtx_code parts with NUM_RTX_CODE.
13733 * optabs.h: Split parts out to...
13734 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
13735 * optabs.c: Split parts out to...
13736 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
13737 * cilk-common.c: Include optabs-query.h rather than optabs.h.
13738 * fold-const.c: Likewise.
13739 * target-globals.c: Likewise.
13740 * tree-if-conv.c: Likewise.
13741 * tree-ssa-forwprop.c: Likewise.
13742 * tree-ssa-loop-prefetch.c: Likewise.
13743 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
13744 Remove unncessary include files.
13745 * tree-ssa-phiopt.c: Likewise.
13746 * tree-ssa-reassoc.c: Likewise.
13747 * tree-switch-conversion.c: Likewise.
13748 * tree-vect-data-refs.c: Likewise.
13749 * tree-vect-generic.c: Likewise.
13750 * tree-vect-loop.c: Likewise.
13751 * tree-vect-patterns.c: Likewise.
13752 * tree-vect-slp.c: Likewise.
13753 * tree-vect-stmts.c: Likewise.
13754 * tree-vrp.c: Likewise.
13755 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
13756 rather than optabs.h.
13757 * expr.c: Include optabs-tree.h.
13758 * function.c: Likewise.
13760 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
13762 PR middle-end/65958
13763 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
13764 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
13765 * config/arm/arm.c: Include common/common-target.h.
13766 (use_return_insn): Return 0 if the static chain register was saved
13767 above a non-APCS frame.
13768 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
13769 (struct scratch_reg): New.
13770 (get_scratch_register_on_entry): New function.
13771 (release_scratch_register_on_entry): Likewise.
13772 (arm_emit_probe_stack_range): Likewise.
13773 (output_probe_stack_range): Likewise.
13774 (arm_expand_prologue): Factor out code dealing with the IP register
13775 for nested function and adjust it for stack checking.
13776 Invoke arm_emit_probe_stack_range if static builtin stack checking
13778 (thumb1_expand_prologue): Sorry out if static builtin stack checking
13780 (arm_expand_epilogue): Add the saved static chain register, if any, to
13781 the amount of pre-pushed registers to pop.
13782 (arm_frame_pointer_required): Return true if static stack checking is
13783 enabled and we want to catch the exception with the EABI unwinder.
13784 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
13785 (UNSPEC_PROBE_STACK_RANGE): Likewise.
13786 * config/arm/arm.md (probe_stack): New insn.
13787 (probe_stack_range): Likewise.
13789 2015-09-17 Richard Biener <rguenther@suse.de>
13791 * genmatch.c (parser::parse_expr): Improve error message
13792 for mis-placed flags.
13794 2015-09-17 Richard Biener <rguenther@suse.de>
13796 * passes.c (rest_of_decl_compilation): Always call early_global_decl
13797 debug hook when we created a varpool node.
13798 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
13799 dwarf2out_early_global_decl, when not just add location or
13800 value attributes to existing DIEs.
13802 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
13804 * config/aarch64/aarch64.md (copysigndf3): New.
13805 (copysignsf3): Likewise.
13807 2015-09-17 David S. Miller <davem@davemloft.net>
13809 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
13810 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
13811 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
13812 (HARD_REGNO_CALLER_SAVE_MODE): Define.
13813 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
13814 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
13815 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
13816 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
13817 provide when flag_pic.
13819 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
13821 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
13822 object_allocator change.
13824 2015-09-17 Bin Cheng <bin.cheng@arm.com>
13826 PR tree-optimization/66388
13827 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
13828 (dump_iv): Dump no_overflow information.
13829 (alloc_iv): Initialize new field for struct iv.
13830 (mark_bivs): Count number of no_overflow bivs.
13831 (find_deriving_biv_for_expr, record_biv_for_address_use): New
13833 (idx_find_step): Call new functions above.
13834 (add_candidate_1, add_candidate): New paramter.
13835 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
13836 (get_computation_aff): Simplify convertion of cand for BIV.
13837 (get_computation_cost_at): Step cand's base if necessary.
13839 2015-09-17 Bin Cheng <bin.cheng@arm.com>
13841 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
13843 (tree_simplify_using_condition): Ditto.
13844 (simplify_using_initial_conditions): Ditto.
13845 (loop_exits_before_overflow): Pass new argument to function
13846 simplify_using_initial_conditions. Remove case for type conversions
13848 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
13850 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
13851 in iv base using loop initial conditions.
13853 2015-09-16 Jeff Law <law@redhat.com>
13855 PR tree-optimization/47679
13856 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
13857 (free_all_edge_infos): Use it.
13858 (allocate_edge_info): Free preexisting edge info data.
13859 (pass_dominator::execute): Set up initial edge info structures.
13860 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
13861 thread_across_edge.
13862 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
13863 If non-null, then push/pop markers appropriately.
13864 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
13865 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
13866 thread-across_edge.
13868 2015-09-16 James Bowman <james.bowman@ftdichip.com>
13870 * config/ft32/ft32.c: Fix the memory address space predicate.
13872 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
13875 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
13876 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
13878 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13880 * toplev.h (check_global_declaration): Remove declaration.
13881 * toplev.c (check_global_declaration): Move to ...
13882 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
13883 (analyze_functions): Update call.
13885 2015-09-16 David S. Miller <davem@davemloft.net>
13887 * lra-constraints.c (simplify_operand_subreg): Do not assume that
13888 lowpart of a SUBREG has offset zero.
13890 2015-09-16 Jeff Law <law@redhat.com>
13892 PR tree-optimization/47679
13893 * tree-ssa-dom.c (enum expr_kind): Moved from here to
13894 tree-ssa-scopedtables.h.
13895 (struct hashable_expr, class expr_hash_elt): Likewise.
13896 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
13897 Move associated methods into tree-ssa-scopedtables.c.
13898 (avail_expr_hash, initialize_expr_from_cond): Similarly.
13899 (hashable_expr_equal_p, add_expr_commutative): Likewise.
13900 (add_hashable_expr): Likewise.
13901 (record_cond): Delete element directly.
13902 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
13903 private copy ctor and assignment operator methods.
13904 (expr_elt_hasher): Inline trivial methods.
13905 (initialize_expr_from_cond): Prototype.
13906 * tree-ssa-scopedtables.c: Add necessary includes, functions and
13907 methods that were previously in tree-ssa-dom.c. Improve various
13910 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
13912 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
13914 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
13917 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13920 2015-09-16 Richard Biener <rguenther@suse.de>
13922 PR middle-end/67253
13923 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
13924 location of possibly shared trees.
13926 2015-09-16 Richard Biener <rguenther@suse.de>
13928 PR middle-end/67271
13929 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
13931 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
13933 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
13934 offset and size computations instead of HOST_WIDE_INT.
13936 2015-09-16 Richard Biener <rguenther@suse.de>
13938 PR middle-end/67442
13939 * fold-const.c (extract_muldiv_1): Properly extend multiplication
13940 result before builting a tree via wide_int_to_tree.
13942 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
13944 * Makefile.in: Add memory-block.cc
13945 (pool_allocator::initialize): Use fixed block size.
13946 (pool_allocator::release): Use memory_block_pool.
13947 (pool_allocator::allocate): Likewise.
13948 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
13950 * cfg.c (initialize_original_copy_tables): Likewise.
13951 * cselib.c (elt_list_pool, elt_loc_list_pool,
13952 cselib_val_pool): Likewise.
13953 * df-problems.c (df_chain_alloc): Likewise.
13954 * df-scan.c (df_scan_alloc): Likewise.
13955 * dse.c (cse_store_info_pool, rtx_store_info_pool,
13956 read_info_type_pool, insn_info_type_pool, bb_info_pool,
13957 group_info_pool, deferred_change_pool): Likewise.
13958 * et-forest.c (et_nodes, et_occurrences): Likewise.
13959 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
13960 ipcp_agg_lattice_pool): Likewise.
13961 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
13962 * ipa-profile.c (histogram_pool): Likewise.
13963 * ipa-prop.c (ipa_refdesc_pool): Likewise.
13964 * ira-build.c (live_range_pool, allocno_pool, object_pool,
13965 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
13966 * ira-color.c (update_cost_record_pool): Likewise.
13967 * lra-lives.c (lra_live_range_pool): Likewise.
13968 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
13969 * memory-block.cc: New file.
13970 * memory-block.h: New file.
13971 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
13972 * sched-deps.c (sched_deps_init): Likewise.
13973 * sel-sched-ir.c (sched_lists_pool): Likewise.
13974 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
13975 * tree-sra.c (access_pool): Likewise.
13976 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
13977 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
13978 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
13979 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
13980 * tree-ssa-strlen.c (strinfo_pool): Likewise.
13981 * tree-ssa-structalias.c (variable_info_pool): Likewise.
13982 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
13983 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
13985 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13987 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
13989 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
13992 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
13994 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
13995 to pass TLS call argument, according to current ABI.
13996 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
13997 callx0 for TLS call, according to current ABI.
13999 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14001 * tree-eh.c (lower_try_finally_dup_block): Clear location information
14002 on stack restore statements.
14003 (decide_copy_try_finally): Do not consider a stack restore statement as
14004 coming from sources.
14006 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
14008 * config/alpha/alpha.c (alpha_expand_block_clear): Use
14009 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
14011 2015-09-15 Jeff Law <law@redhat.com>
14013 PR tree-optimization/47679
14014 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
14015 methods and private members.
14016 (avail_exprs_stack): Similarly. Change type of global
14017 from a pair of expr_hash_elt_t to the new class.
14018 (expr_elt_hasher::hash): Corresponding changes.
14019 (expr_elt_hasher::equal): Similarly.
14020 (avail_expr_hash): Similarly.
14021 (pass_dominator::execute): Similarly.
14022 (dom_opt_dom_walker::thread_across_edge): Similarly.
14023 (record_cond): Similarly.
14024 (dom_opt_dom_walker::before_dom_children): Similarly.
14025 (dom_opt_dom_walker::after_dom_children): Similarly.
14026 (lookup_avail_expr): Likewise.
14027 (initialize_hash_element): Now a expr_hash_elt constructor.
14028 (initialize_hash_element_from_expr): Similarly.
14029 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
14030 (free_expr_hash_elt): Call dtor for the element.
14031 (remove_local_expressions_from_table): Now the "pop_to_marker"
14032 method in the available_exprs_stack class.
14033 (avail_expr_stack::record_expr): Method factored out.
14034 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
14036 (hashable_expr_equal_p): Fix formatting.
14038 2015-09-15 David Malcolm <dmalcolm@redhat.com>
14040 * input.h (location_get_source_line): Drop "expanded_location"
14041 param in favor of a file and line number.
14042 * input.c (location_get_source_line): Likewise.
14043 (dump_location_info): Update for change in signature of
14044 location_get_source_line.
14045 * diagnostic.c (diagnostic_print_caret_line): Likewise.
14047 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
14049 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
14050 Bump to 4KB for SJLJ exceptions.
14051 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
14052 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
14053 * doc/tm.texi: Regenerate.
14055 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14057 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
14058 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
14061 2015-09-15 Richard Biener <rguenther@suse.de>
14063 PR tree-optimization/67470
14064 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
14065 structure for PHI hoisting by inserting a forwarder block
14068 2015-09-15 Christian Bruel <christian.bruel@st.com>
14070 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
14071 (arm_option_print): New function.
14073 2015-09-15 Christian Bruel <christian.bruel@st.com>
14076 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
14077 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
14078 Remove flags parameter.
14079 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
14080 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
14081 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
14082 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
14083 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
14084 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
14085 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
14086 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
14088 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14090 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
14092 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
14093 AARCH64_VALID_SIMD_DREG_MODE.
14095 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14097 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
14098 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
14099 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
14100 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
14101 aarch64_ld4_lane<mode>): Combine together, making...
14102 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14103 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14104 aarch64_st4_lane<mode>): Combine together, making...
14105 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
14106 * config/aarch64/iterators.md (nregs): Add comment.
14108 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14110 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
14111 Change operand mode from <V_TWO_ELEM> to BLK.
14112 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
14113 (aarch64_vec_store_lanesoi_lane<mode): Likewise
14114 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14115 (aarch64_ld2_lane<mode>): Likewise.
14116 (aarch64_st2_lane<VQ:mode>): Likewise.
14117 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
14119 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14121 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
14122 Change operand mode from <V_FOUR_ELEM> to BLK.
14123 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
14124 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
14125 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14126 (aarch64_ld4_lane<mode>): Likewise.
14127 (aarch64_st4_lane<mode>): Likewise.
14128 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
14130 2015-09-15 Richard Biener <rguenther@suse.de>
14132 PR middle-end/67563
14133 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
14134 transfer EH info from old to new stmt.
14135 (replace_call_with_value): Likewise.
14136 (replace_call_with_call_and_fold): Likewise.
14137 (gimple_fold_builtin_memory_op): Likewise.
14138 (gimple_fold_builtin_memset): Likewise.
14139 (gimple_fold_builtin_stpcpy): Likewise.
14140 (gimple_fold_call): Likewise.
14142 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14144 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
14146 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
14147 (aarch64_simd_intEI_type_node): Likewise.
14148 (aarch64_simd_builtin_std_type): Remove EImode case.
14149 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
14150 * config/aarch64/aarch64-modes.def: Remove EImode.
14152 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14154 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
14155 Change operand mode from <V_THREE_ELEM> to BLK.
14156 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
14157 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
14158 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
14159 (aarch64_ld3_lane<mode>): Likewise.
14160 (aarch64_st3_lane<mode>): Likewise.
14161 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
14163 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14165 * config/aarch64/aarch64-simd.md
14166 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
14167 Change all TImode operands to BLKmode.
14168 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
14169 Change all EImode operands to BLKmode.
14170 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
14171 Change all OImode operands to BLKmode.
14173 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
14174 and call set_mem_size.
14175 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
14177 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
14179 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
14181 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
14183 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
14185 (vec_store_lanesci_lane<mode>): Rename to...
14186 (aarch64_vec_store_lanesci_lane<mode>): ...this.
14188 (vec_store_lanesxi_lane<mode>): Rename to...
14189 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
14191 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
14192 aarch64_st4_lane<mode>): Follow renaming.
14194 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14196 * config/s390/s390.c (s390_const_operand_ok): Add missing
14199 2015-09-15 Richard Biener <rguenther@suse.de>
14202 * lto-streamer.h (lto_location_cache::current_sysp): Properly
14204 * lto-streamer-out.c (clear_line_info): Likewise.
14206 2015-09-15 Richard Biener <rguenther@suse.de>
14208 * doc/match-and-simplify.texi: Fix wording.
14210 2015-09-15 Bin Cheng <bin.cheng@arm.com>
14212 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
14213 unnecessary type conversion in op1.
14215 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
14217 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
14218 (dup_block_and_redirect): Delete function.
14219 (can_dup_for_shrink_wrapping): New function.
14220 (fix_fake_fallthrough_edge): New function.
14221 (try_shrink_wrapping): Rewrite function.
14222 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
14224 2015-09-14 Rich Felker <dalias@libc.org>
14226 * configure.ac: Change target pattern for sh TLS support
14227 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
14228 * configure: Regenerate.
14230 2015-09-14 Jeff Law <law@redhat.com>
14232 PR tree-optimization/47679
14233 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
14234 type rather than void *.
14236 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
14239 * diagnostic.c (diagnostic_initialize): Do not set
14240 some_warnings_are_errors.
14241 (diagnostic_finish): Use DK_WERROR count instead.
14242 (diagnostic_report_diagnostic): Do not set
14243 some_warnings_are_errors.
14244 * diagnostic.h (struct diagnostic_context): Remove
14245 some_warnings_are_errors.
14247 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
14249 * config/sparc/predicates.md (const_all_ones_operand): Use
14250 CONSTM1_RTX to simplify definition.
14252 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
14255 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
14258 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
14260 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
14261 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
14262 OPT_fshow_column to handled saved option cases.
14263 (append_compiler_options): Do not skip the above added options.
14265 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14268 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
14269 nopcrelative_literal_loads.
14270 (aarch64_classify_address): Likewise.
14271 (aarch64_constant_pool_reload_icode): Define.
14272 (aarch64_secondary_reload): Handle secondary reloads for
14274 (aarch64_override_options): Handle nopcrelative_literal_loads.
14275 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
14276 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
14278 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
14279 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
14280 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
14282 * doc/invoke.texi (mpc-relative-literal-loads): Document.
14284 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
14286 PR middle-end/67401
14287 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
14288 sync_compare_and_swap_optab libcall to target_oval.
14290 2015-09-14 Marek Polacek <polacek@redhat.com>
14292 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
14294 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
14296 2015-09-11 Mark Wielaard <mjw@redhat.com>
14299 * toplev.c (check_global_declaration): Check and use
14300 warn_unused_const_variable.
14301 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
14302 (-Wunused-variable): Remove non-constant. For C implies
14303 -Wunused-const-variable.
14304 (-Wunused-const-variable): New.
14306 2015-09-14 Richard Biener <rguenther@suse.de>
14308 * doc/match-and-simplify.texi: Update for changed syntax
14309 of inner ifs and the new switch expression.
14311 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
14313 * config/i386/haswell.md: New file describing Haswell pipeline.
14314 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
14315 haswell-like processors.
14316 (ix86_reassociation_width): Increase reassociation width for 64-bit
14317 Haswell processor family.
14318 * config/i386/i386.md: Introduce haswell cpu and include new md file.
14320 2015-09-14 Richard Biener <rguenther@suse.de>
14322 * doc/match-and-simplify.texi: Fixup some formatting issues
14323 and document the 's' flag.
14325 2015-09-13 Olivier Hainque <hainque@adacore.com>
14326 Eric Botcazou <ebotcazou@adacore.com>
14328 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
14329 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
14330 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
14331 (TARGET_CPU_gr5): Likewise.
14332 (TARGET_CPU_gr6): Likewise.
14333 (MULTILIB_DEFAULTS): Likewise.
14334 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
14335 for mcpu=gr5 and mcpu=gr6.
14336 (MULTILIB_DIRNAMES): Adjust accordingly.
14338 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14340 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
14341 (mem_ref_p): Likewise.
14342 (outermost_indep_loop): Adjust.
14343 (mem_ref_in_stmt): Likewise.
14344 (determine_max_movement): Likewise.
14345 (mem_ref_alloc): Likewise.
14346 (record_mem_ref_loc): Likewise.
14347 (set_ref_stored_in_loop): Likewise.
14348 (mark_ref_stored): Likewise.
14349 (gather_mem_refs_stmt): Likewise.
14350 (mem_refs_may_alias_p): Likewise.
14351 (for_all_locs_in_loop): Likewise.
14352 (struct rewrite_mem_ref_loc): Likewise.
14353 (rewrite_mem_refs): Likewise.
14354 (struct first_mem_ref_loc_1): Likewise.
14355 (first_mem_ref_loc): Likewise.
14356 (struct sm_set_flag_if_changed): Likewise.
14357 (execute_sm_if_changed_flag_set): Likewise.
14358 (execute_sm): Likewise.
14359 (hoist_memory_references):
14360 (struct ref_always_accessed): Likewise.
14361 (ref_always_accessed_p): Likewise.
14362 (refs_independent_p): Likewise.
14363 (record_dep_loop): Likewise.
14364 (ref_indep_loop_p_1): Likewise.
14365 (ref_indep_loop_p_2): Likewise.
14366 (ref_indep_loop_p): Likewise.
14367 (can_sm_ref_p): Likewise.
14368 (find_refs_for_sm): Likewise.
14369 (tree_ssa_lim_finalize): Likewise.
14371 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14373 * dwarf2out.c (dw_attr_ref): Remove typedef.
14374 (dw_line_info_ref): Likewise.
14375 (pubname_ref): Likewise.
14376 (dw_ranges_ref): Likewise.
14377 (dw_ranges_by_label_ref): Likewise.
14378 (comdat_type_node_ref): Likewise.
14380 (get_AT_low_pc): Likewise.
14381 (get_AT_hi_pc): Likewise.
14382 (get_AT_string): Likewise.
14383 (get_AT_flag): Likewise.
14384 (get_AT_unsigned): Likewise.
14385 (get_AT_ref): Likewise.
14386 (get_AT_file): Likewise.
14387 (remove_AT): Likewise.
14388 (print_die): Likewise.
14389 (check_die): Likewise.
14390 (die_checksum): Likewise.
14391 (attr_checksum_ordered): Likewise.
14392 (struct checksum_attributes): Likewise.
14393 (collect_checksum_attributes): Likewise.
14394 (die_checksum_ordered): Likewise.
14395 (same_die_p): Likewise.
14396 (is_declaration_die): Likewise.
14397 (clone_die): Likewise.
14398 (clone_as_declaration): Likewise.
14399 (copy_declaration_context): Likewise.
14400 (break_out_comdat_types): Likewise.
14401 (copy_decls_walk): Likewise.
14402 (output_location_lists): Likewise.
14403 (external_ref_hasher::hash): Likewise.
14404 (optimize_external_refs_1): Likewise.
14405 (build_abbrev_table): Likewise.
14406 (size_of_die): Likewise.
14407 (unmark_all_dies): Likewise.
14408 (size_of_pubnames): Likewise.
14409 (output_die_abbrevs): Likewise.
14410 (output_die): Likewise.
14411 (output_pubnames): Likewise.
14412 (add_ranges_num): Likewise.
14413 (add_ranges_by_labels): Likewise.
14414 (add_high_low_attributes): Likewise.
14415 (gen_producer_string): Likewise.
14416 (dwarf2out_set_name): Likewise.
14417 (new_line_info_table): Likewise.
14418 (prune_unused_types_walk_attribs): Likewise.
14419 (prune_unused_types_update_strings): Likewise.
14420 (prune_unused_types): Likewise.
14421 (resolve_addr): Likewise.
14422 (optimize_location_lists_1): Likewise.
14423 (index_location_lists): Likewise.
14424 (dwarf2out_finish): Likewise.
14426 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14428 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
14430 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14432 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
14433 (dump_asserts_for): Adjust.
14434 (register_new_assert_for): Likewise.
14435 (process_assert_insertions): Likewise.
14436 (insert_range_assertions): Likewise.
14438 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14440 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
14441 and remove typedef.
14442 (new_temp_expr_table): Adjust.
14443 (free_temp_expr_table): Likewise.
14444 (version_to_be_replaced_p): Likewise.
14445 (make_dependent_on_partition): Likewise.
14446 (add_to_partition_kill_list): Likewise.
14447 (remove_from_partition_kill_list): Likewise.
14448 (add_dependence): Likewise.
14449 (finished_with_expr): Likewise.
14450 (process_replaceable): Likewise.
14451 (kill_expr): Likewise.
14452 (kill_virtual_exprs): Likewise.
14453 (mark_replaceable): Likewise.
14454 (find_replaceable_in_bb): Likewise.
14455 (find_replaceable_exprs): Likewise.
14456 (debug_ter): Likewise.
14458 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14460 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
14461 (struct btr_user): Rename from btr_user_s.
14462 (struct btr_def): Rename from btr_def_s.
14463 (find_btr_def_group): Adjust.
14464 (add_btr_def): Likewise.
14465 (new_btr_user): Likewise.
14466 (note_other_use_this_block): Likewise.
14467 (compute_defs_uses_and_gen): Likewise.
14468 (link_btr_uses): Likewise.
14469 (build_btr_def_use_webs): Likewise.
14470 (block_at_edge_of_live_range_p): Likewise.
14471 (btr_def_live_range): Likewise.
14472 (combine_btr_defs): Likewise.
14473 (move_btr_def): Likewise.
14474 (migrate_btr_def): Likewise.
14475 (migrate_btr_defs): Likewise.
14477 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14479 * var-tracking.c (shared_hash_def): Rename to shared_hash.
14480 (shared_hash): Remove typedef.
14481 (struct dataflow_set): Adjust.
14482 (shared_hash_unshare): Likewise.
14483 (dataflow_set_merge): Likewise.
14484 (vt_initialize): Likewise.
14485 (vt_finalize): Likewise.
14487 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14489 * var-tracking.c (struct location_chain): Rename from
14490 location_chain_def.
14491 (struct variable_part): Adjust.
14492 (variable_htab_free): Likewise.
14493 (unshare_variable): Likewise.
14494 (get_init_value): Likewise.
14495 (get_addr_from_local_cache): Likewise.
14496 (drop_overlapping_mem_locs): Likewise.
14497 (val_reset): Likewise.
14498 (struct variable_union_info): Likewise.
14499 (variable_union): Likewise.
14500 (find_loc_in_1pdv): Likewise.
14501 (insert_into_intersection): Likewise.
14502 (intersect_loc_chains): Likewise.
14503 (canonicalize_loc_order_check): Likewise.
14504 (canonicalize_values_mark): Likewise.
14505 (canonicalize_values_star): Likewise.
14506 (canonicalize_vars_star): Likewise.
14507 (variable_merge_over_cur): Likewise.
14508 (remove_duplicate_values): Likewise.
14509 (variable_post_merge_new_vals): Likewise.
14510 (variable_post_merge_perm_vals): Likewise.
14511 (find_mem_expr_in_1pdv): Likewise.
14512 (dataflow_set_preserve_mem_locs): Likewise.
14513 (dataflow_set_remove_mem_locs): Likewise.
14514 (variable_part_different_p): Likewise.
14515 (onepart_variable_different_p): Likewise.
14516 (find_src_set_src): Likewise.
14517 (dump_var): Likewise.
14518 (set_slot_part): Likewise.
14519 (clobber_slot_part): Likewise.
14520 (delete_slot_part): Likewise.
14521 (vt_expand_var_loc_chain): Likewise.
14522 (emit_note_insn_var_location): Likewise.
14523 (vt_finalize): Likewise.
14525 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14527 * dse.c (store_info_t): Remove typedef.
14528 (group_info_t): Likewise.
14529 (const_group_info_t): Likewise.
14530 (deferred_change_t): Likewise.
14531 (get_group_info): Adjust.
14532 (free_store_info): Likewise.
14533 (canon_address): Likewise.
14534 (clear_rhs_from_active_local_stores): Likewise.
14535 (record_store): Likewise.
14536 (replace_read): Likewise.
14537 (check_mem_read_rtx): Likewise.
14538 (scan_insn): Likewise.
14539 (remove_useless_values): Likewise.
14540 (dse_step1): Likewise.
14541 (dse_step2_init): Likewise.
14542 (dse_step2_nospill): Likewise.
14543 (scan_stores_nospill): Likewise.
14544 (scan_reads_nospill): Likewise.
14545 (dse_step3_exit_block_scan): Likewise.
14546 (dse_step3): Likewise.
14547 (dse_step5_nospill): Likewise.
14548 (dse_step6): Likewise.
14550 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14552 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
14553 (alias_set_entry): Remove typedef.
14554 (alias_set_subset_of): Adjust.
14555 (alias_sets_conflict_p): Likewise.
14556 (init_alias_set_entry): Likewise.
14557 (get_alias_set): Likewise.
14558 (new_alias_set): Likewise.
14559 (record_alias_subset): Likewise.
14561 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
14563 * doc/install.texi (Downloading the source): Mark up
14564 contrib/download_prerequisites properly and drop leading "./".
14566 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14568 * config/arc/arc.h: Remove define of STRUCT_VALUE.
14569 * config/lm32/lm32.h: Likewise.
14570 * config/mep/mep.h: Likewise.
14571 * config/visium/visium.h: Likewise.
14572 * system.h: Poison STRUCT_VALUE macro.
14574 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
14576 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
14577 CONSTANT_P operands.
14579 2015-09-11 David S. Miller <davem@davemloft.net>
14581 * config/sparc/constraints.md: Make "U" constraint a real register
14583 * config/sparc/sparc.c (TARGET_LRA_P): Define.
14584 (D_MODES, DF_MODES): Add missing cast.
14585 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
14586 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
14587 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
14589 * config/sparc/sparc.h (PROMOTE_MODE): Define.
14590 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
14591 provide these insn when flag_pic.
14593 2015-09-11 Jeff Law <law@redhat.com>
14595 PR tree-optimization/47679
14596 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
14597 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
14598 member with m_. Update inline member functions as necessary. Add
14600 * tree-ssa-scopedtables.c: Update const_and_copies's member
14601 functions to use m_ prefix to access the stack.
14603 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14605 * graphite-optimize-isl.c (disable_tiling): Remove.
14606 (get_schedule_for_band): Do not use disable_tiling.
14607 (get_prevector_map): Delete function.
14608 (enable_polly_vector): Remove.
14609 (get_schedule_for_band_list): Remove dead code.
14611 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
14613 * graphite-optimize-isl.c (get_tile_map): Refactor.
14614 (get_schedule_for_band): Same.
14615 (getScheduleForBand): Same.
14616 (get_prevector_map): Same.
14617 (get_schedule_for_band_list): Same.
14618 (get_schedule_map): Same.
14619 (get_single_map): Same.
14620 (apply_schedule_map_to_scop): Same.
14621 (optimize_isl): Same.
14623 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14626 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
14628 * config/aarch64/iterators.md (GPF_TF_F16): New.
14631 2015-09-10 Nathan Sidwell <nathan@acm.org>
14633 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
14634 (nvptx_reorg): Adjust comments.
14636 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
14639 * configure.ac: Check if setenv and unsetenv are declared.
14640 * configure: Rebuild.
14641 * config.in: Rebuild.
14642 * system.h: Declare setenv and unsetenv if not declared.
14644 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14646 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
14647 commentary to simplify permute mask adjustment equation.
14648 (special_handling_values): Add SH_VPERM.
14649 (const_load_sequence_p): New function.
14650 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
14651 the mask loaded from the constant pool.
14652 (adjust_vperm): New function.
14653 (handle_special_swappables): Call adjust_vperm.
14654 (dump_swap_insn_table): Handle SH_VPERM.
14656 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
14658 * shrink-wrap.c (requires_stack_frame_p): Remove static.
14659 * shrink-wrap.h (requires_stack_frame_p): Put back.
14661 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
14663 * reload1.c (elimination_costs_in_insn): Locally turn
14664 -Wmaybe-uninitialized into a warning.
14666 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
14668 * shrink-wrap.c (requires_stack_frame_p): Make static.
14669 (prepare_shrink_wrap): Likewise.
14670 (dup_block_and_redirect): Likewise.
14671 * shrink-wrap.h: Remove declarations of those functions.
14673 2015-09-10 Mark Wielaard <mjw@redhat.com>
14675 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
14677 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
14680 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
14681 missing simplify_gen_subreg.
14683 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14685 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
14686 the vector element is bigger than 64 bit.
14688 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14690 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
14691 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
14693 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14695 * config/s390/s390.c: Add V1TImode to constant pool modes.
14697 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14700 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
14701 predicate. Set predicable_short_it attr to "no".
14703 2015-09-10 Jiong Wang <jiong.wang@arm.com>
14705 PR rtl-optimization/67421
14706 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
14707 left wide shift tranformation.
14709 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14711 * common/config/arc/arc-common.c: Remove references to A5.
14712 * config/arc/arc-opts.h: Likewise.
14713 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
14714 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
14715 * config/arc/t-arc-newlib: Likewise.
14717 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
14719 * config/arc/arc.md (length): Fix attribute length for conditional
14720 executed instructions with long immediate.
14722 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14724 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
14725 type for second alternative.
14727 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
14729 * doc/invoke.texi (Downloading GCC): Mention
14730 contrib/download_prerequisites script.
14732 2015-09-10 Jakub Jelinek <jakub@redhat.com>
14735 * gimplify.c (gimplify_omp_for): If inner stmt is not found
14736 for combined loop, assert seen_error () and return GS_ERROR.
14738 PR middle-end/67521
14739 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
14740 if decl is already in outer->variables.
14742 PR middle-end/67517
14743 * gimplify.c (gimplify_scan_omp_clauses): Instead of
14744 asserting that decl is not specified in octx->variables,
14745 break out of the loop if it is.
14748 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
14749 iterator is not explicitly determined, but is defined inside
14750 of the combined workshare region, handle it like if it has
14751 DECL_EXPR in OMP_FOR_PRE_BODY.
14753 2015-09-09 Nathan Sidwell <nathan@acm.org>
14755 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
14756 (*cmp<mode>): Add assembler spacing.
14757 (setcc_int<mode>, set_cc_float<mode>): Likewise.
14758 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
14760 (write_func_decl_from_insn): Refactor argument loops & comma emission.
14761 (nvptx_expand_call): Likewise.
14762 (nvptx_output_call_insn): Likewise.
14763 (nvptx_reorg_subreg): Add spacing.
14765 2015-09-09 Marek Polacek <polacek@redhat.com>
14767 PR middle-end/67512
14768 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
14771 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
14774 * doc/invoke.texi ([Wsubobject-linkage]): Document.
14776 2015-09-09 Tom de Vries <tom@codesourcery.com>
14778 * params-list.h: Add missing copyright notice.
14780 2015-09-09 Nathan Sidwell <nathan@acm.org>
14782 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
14783 sel_truesi, not andsi.
14785 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14787 * config/arm/arm.md (*subsi3_compare0): Rename to...
14788 (subsi3_compare0): ... This.
14789 (modsi3): New define_expand.
14790 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
14791 when operand is power of 2.
14793 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14795 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
14796 (*neg<mode>2_compare0): Rename to...
14797 (neg<mode>2_compare0): ... This.
14798 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
14799 Move check for speed inside the if-then-elses. Reflect
14800 CSNEG sequence in MOD by power of 2 case.
14802 2015-09-09 Alan Modra <amodra@gmail.com>
14805 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
14806 reload replacement for PRE_MODIFY address reg.
14808 2015-09-09 Sebastian Pop <s.pop@samsung.com>
14810 PR tree-optimization/53852
14811 * config.in: Regenerate.
14812 * configure: Regenerate.
14813 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
14814 * graphite-optimize-isl.c (optimize_isl): Stop computation when
14815 PARAM_MAX_ISL_OPERATIONS is reached.
14816 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
14817 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
14818 result equal to isl_stat_ok as the status now can be isl_error_quota.
14819 (subtract_commutative_associative_deps): Same.
14820 (compute_deps): Same.
14822 2015-09-08 Aditya Kumar <hiraditya@msn.com>
14823 Sebastian Pop <s.pop@samsung.com>
14825 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
14826 Return the parameter if it was saved in corresponding
14827 parameter_rename_map of the region.
14828 (copy_def): Copy def from sese region to the newly created region.
14829 (copy_internal_parameters): Copy all the internal parameters defined
14830 within a region to the newly created region.
14831 (graphite_regenerate_ast_isl): Copy parameters to the new region before
14832 translating isl to gimple.
14833 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
14834 the loop-nest does not have any data-references.
14835 (build_graphite_scops): Create a scop only when there is at least one
14837 (contains_only_close_phi_nodes): Deleted.
14838 (print_graphite_scop_statistics): Deleted
14839 (print_graphite_statistics): Deleted
14840 (limit_scops): Deleted.
14841 (build_scops): Removed call to limit_scops.
14842 * sese.c (new_sese): Construct.
14843 (free_sese): Destruct.
14844 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
14846 (set_rename): Pass sese region so that parameters inside the region can
14847 be added to its parameter_rename_map.
14848 (rename_uses): Pass sese region.
14849 (graphite_copy_stmts_from_block): Do not copy parameters that have been
14850 generated in the header of the scop. For each SSA_NAME in the
14851 parameter_rename_map rename its usage.
14852 (invariant_in_sese_p_rec): Return false if tree t is defined outside
14854 (scalar_evolution_in_region): If the tree t is invariant just return t.
14855 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
14856 struct sese to keep track of all the parameters which need renaming.
14857 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
14859 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
14861 2015-09-08 Tom de Vries <tom@codesourcery.com>
14863 * Makefile.in (generated_files): Add params.list.
14864 (params.list, s-params.list): Add rule.
14865 * params.h (enum compiler_param): Include params-list.h. Move define
14866 DEFPARAM, include params.def and undef DEFPARAM ...
14867 * params-list.h: ... here. New file.
14869 2015-09-08 David Malcolm <dmalcolm@redhat.com>
14871 * pretty-print.h (printer_fn): Fix typo in comment.
14873 2015-09-07 Jeff Law <law@redhat.com>
14875 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
14877 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14879 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
14880 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
14881 (arm_neon_fp16_hw): New.
14883 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14885 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
14886 UNITS_PER_WORD >= 4.
14888 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14890 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
14891 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
14892 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
14893 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
14894 (aarch64_float_extend_lo_v2df): Rename to...
14895 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
14897 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
14898 (float_extend_lo): Add v4sf.
14900 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
14901 * config/aarch64/iterators.md (VQ_HSF): New iterator.
14902 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
14903 (Vwide): New mode_attr.
14905 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14907 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
14908 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
14909 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
14910 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
14911 V4HF and V8HF variants to iterator.
14913 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
14915 * config/aarch64/iterators.md (VDQF_F16): New.
14916 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
14918 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14920 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
14921 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
14922 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
14923 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
14924 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
14925 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
14926 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
14927 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
14928 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
14929 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
14930 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
14931 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
14932 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
14933 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
14934 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
14935 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
14936 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
14937 vld1q_dup_f16): New.
14939 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14941 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
14942 Reparameterize to...
14943 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
14944 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
14945 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
14947 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
14949 (float_truncate_lo_): Use BUILTIN_VDF iterator.
14951 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
14953 * config/aarch64/iterators.md (VDF, Vdtype): New.
14954 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
14956 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14958 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
14959 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
14960 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
14961 Add __builtin_aarch64_simd_hf.
14962 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
14963 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
14964 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
14965 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
14966 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
14967 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
14968 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
14969 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
14970 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
14972 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
14973 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
14974 (VDC, Vdbl): Add V4HF.
14976 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
14978 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
14979 V4HFmode and V8HFmode.
14980 (aarch64_split_simd_move): Add case for V8HFmode.
14981 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
14982 (aarch64_simd_builtin_std_type): Handle HFmode.
14983 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
14985 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
14986 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
14987 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
14989 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
14992 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
14993 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
14995 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
14996 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
14997 vst1q_lane_f16): New.
14998 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
14999 (VALLDI_F16, VALL_F16): New.
15000 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
15001 Add cases for V4HF and V8HF.
15002 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
15004 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15006 * config/arm/arm-builtins.c (VAR11, VAR12): New.
15007 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
15008 vld4_dup): Add v4hf variant.
15009 (vget_high, vget_low): Add v8hf variant.
15010 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
15011 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
15012 v4hf and v8hf variants.
15014 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
15016 (V_DOUBLE): Add case for V4HF.
15018 (V_HALF): Add case for V8HF.
15019 (VDQX): Add V4HF, V8HF.
15020 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
15021 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
15023 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
15024 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
15025 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
15026 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
15027 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
15028 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
15029 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
15030 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
15031 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
15033 (neon_vcreate, neon_vreinterpretv8qi<mode>,
15034 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
15035 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
15036 Change VDX to VD_RE.
15038 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
15039 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
15040 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
15042 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
15043 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
15044 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
15045 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
15046 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
15047 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
15048 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
15049 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
15050 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
15052 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15054 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
15055 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
15056 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
15057 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
15058 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
15059 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
15060 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
15061 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
15062 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
15063 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
15066 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15068 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
15070 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
15072 * config/arm/arm-builtins.c (v8hf_UP): New.
15073 (arm_init_simd_builtin_types): Initialise Float16x8_t.
15075 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
15077 * config/arm/arm_neon.h (float16x8_t): New typedef.
15079 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
15081 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
15082 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
15083 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
15084 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
15085 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
15086 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
15087 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
15088 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
15089 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
15090 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
15092 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
15094 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
15095 non-alphanumeric characters in the symbol name.
15097 2015-09-07 Marek Polacek <polacek@redhat.com>
15099 PR inline-asm/67448
15100 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
15103 2015-09-07 Marek Polacek <polacek@redhat.com>
15105 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
15107 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
15109 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
15112 2015-09-04 Jakub Jelinek <jakub@redhat.com>
15114 PR middle-end/67452
15115 * tree-ssa-live.c: Include cfgloop.h.
15116 (remove_unused_locals): Clear loop->simduid if simduid is about
15117 to be removed from cfun->local_decls.
15119 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
15122 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
15125 2015-09-04 Tom de Vries <tom@codesourcery.com>
15127 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
15129 2015-09-04 Jeff Law <law@redhat.com>
15131 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
15132 unnecessary constructor. It's now trivial and implemented inside...
15133 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
15134 constructor. Add comments to various methods. Remove unused
15136 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
15137 * tree-vrp.c (identify_jump_threads): Likewise.
15138 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
15139 indentation issues.
15140 (thread_across_edge): Similarly.
15141 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
15142 arguments in constructor call.
15144 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
15146 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
15147 temp path contains a '-'.
15149 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15150 Petr Murzin <petr.murzin@intel.com>
15151 Kirill Yukhin <kirill.yukhin@intel.com>
15153 * config/i386/i386-builtin-types.def
15154 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
15155 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
15156 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
15157 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
15158 * config/i386/i386.c
15159 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
15160 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15161 IX86_BUILTIN_SCATTERALTDIV16SI.
15162 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
15163 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
15164 __builtin_ia32_scatteraltdiv8si.
15165 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
15166 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
15167 IX86_BUILTIN_SCATTERALTDIV16SI.
15168 (ix86_vectorize_builtin_scatter): New.
15169 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
15170 ix86_vectorize_builtin_scatter.
15172 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
15173 Petr Murzin <petr.murzin@intel.com>
15174 Kirill Yukhin <kirill.yukhin@intel.com>
15176 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
15177 * doc/tm.texi: Regenerate.
15178 * target.def: Add scatter builtin.
15179 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
15180 for loads/stores in case of gather/scatter accordingly.
15181 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15182 STMT_VINFO_GATHER_P(S).
15183 (vect_check_gather): Rename to ...
15184 (vect_check_gather_scatter): this.
15185 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
15186 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
15187 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15188 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
15189 variable and new checkings for it accordingly.
15190 * tree-vect-stmts.c
15191 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
15192 STMT_VINFO_GATHER_P(S).
15193 (vect_check_gather_scatter): Use it instead of vect_check_gather.
15194 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
15196 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
15198 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
15200 (mulv16qi3): New define_expand.
15202 2015-09-03 Martin Sebor <msebor@redhat.com>
15205 * doc/extend.texi (Other Builtins): Document when the address
15206 of a built-in function can be taken.
15208 2015-09-03 Richard Biener <rguenther@suse.de>
15210 * dwarf2out.c (flush_limbo_die_list): Split out from ...
15211 (dwarf2out_early_finish): ... here.
15212 (dwarf2out_finish): Do not call dwarf2out_early_finish but
15213 flush_limbo_die_list. Assert we have no deferred asm names.
15215 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15217 * optabs.c (expand_binop): Don't create a broadcast vector with a
15218 source element wider than the inner mode.
15220 2015-09-03 Richard Biener <rguenther@suse.de>
15222 * varasm.c (output_constant): Use fold_convert instead of
15225 2015-09-03 Tom de Vries <tom@codesourcery.com>
15227 PR tree-optimization/65637
15228 * omp-low.c (expand_omp_for_static_chunk): Handle case that
15229 fin_bb has 2 predecessors.
15231 2015-09-03 Tom de Vries <tom@codesourcery.com>
15233 PR tree-optimization/65637
15234 * omp-low.c (find_phi_with_arg_on_edge): New function.
15235 (expand_omp_for_static_chunk): Fix inner loop phi.
15237 2015-09-03 Tom de Vries <tom@codesourcery.com>
15239 PR tree-optimization/65637
15240 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
15243 2015-09-03 Tom de Vries <tom@codesourcery.com>
15245 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
15247 2015-09-03 Tom de Vries <tom@codesourcery.com>
15249 * doc/invoke.texi (parloops-chunk-size): Add item.
15250 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
15251 * tree-parloops.c: Include params.h.
15252 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
15253 param parloops-chunk-size is used.
15255 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
15257 PR middle-end/67351
15258 * fold-const.c (fold_binary_loc) : Move
15259 Transform (x >> c) << c into x & (-1<<c) or
15260 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
15261 types using simplify and match.
15262 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
15263 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
15265 2015-09-03 Richard Biener <rguenther@suse.de>
15268 * tree-ssa-structalias.c (ctor_for_analysis): New function.
15269 (create_variable_info_for_1): Use ctor_for_analysis instead
15270 of get_constructor.
15271 (create_variable_info_for): Likewise.
15273 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
15276 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
15277 in new callgraph edge.
15279 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
15284 * config/aarch64/aarch64-simd.md
15285 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
15286 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
15287 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
15288 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
15290 2015-09-02 Alan Modra <amodra@gmail.com>
15292 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
15293 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
15294 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
15296 2015-09-02 Alan Modra <amodra@gmail.com>
15299 * config/rs6000/predicates.md (current_file_function_operand): Don't
15300 return true for weak symbols.
15301 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
15303 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
15304 Andrew Bennett <andrew.bennett@imgtec.com>
15306 * config/mips/mips-opts.h (mips_cb_setting): New enum.
15307 * config/mips/mips-protos.h: Add definitions for
15308 mips_output_jump and mips_output_equal_conditional_branch
15309 * config/mips/mips.c (MIPS_JR): Change to support the
15311 (mips_emit_compare): Add support for the MIPS R6 conditional
15313 (mips_process_sync_loop): Likewise.
15314 (mips_output_order_conditional_branch): Likewise.
15315 (mips16_build_call_stub): Change MIPS_CALL to
15317 (mips_print_operand_punctuation): Update 's' case to only
15318 apply to micromips r2.
15319 (mips_adjust_insn_length): Add support for forbidden slot
15321 (mips_avoid_hazard): Likewise.
15322 (mips_reorg_process_insns): Likewise.
15323 (mips_output_jump): New function.
15324 (mips_output_equal_conditional_branch): Likewise.
15325 (mips_output_conditional_branch): Use jrc/bc if compact
15326 branch support is enabled. Ensure the forbidden slots
15327 between the two branch instructions is filled with a nop.
15328 (mips_option_override): Add support to process the compact
15329 branch option and set the correct defaults. Prevent
15330 non-explict relocs being using for MIPS R6.
15331 (mips_trampoline_init): Add compact branch support.
15332 (mips_mult_zero_zero_cost): Allow zero initialisation of
15333 accumulators with TARGET_DSP.
15334 * config/mips/mips.h (TARGET_CB_NEVER): New define.
15335 (TARGET_CB_MAYBE): New define.
15336 (TARGET_CB_ALWAYS): New define.
15337 (ISA_HAS_DELAY_SLOTS): New define.
15338 (ISA_HAS_COMPACT_BRANCHES): New define.
15339 (ISA_HAS_JRC): New define.
15340 (MIPS_BRANCH_C): New define.
15341 (MIPS_CALL): Removed.
15342 (MICROMIPS_J): Removed.
15343 * config/mips/mips.md (compact_form): New attr.
15344 (hazard): Add support for forbidden slots.
15345 (define_delay): Add support for compact branches.
15346 (*branch_order<mode>): Likewise.
15347 (*branch_order<mode>_inverted): Likewise.
15348 (*branch_equality<mode>): Likewise.
15349 (*branch_equality<mode>_inverted): Likewise.
15350 (*jump_absolute): Likewise.
15351 (*jump_pic): Likewise.
15352 (indirect_jump): Use mips_output_jump to produce assembly output.
15353 (tablejump_<mode>"): Likewise.
15354 (*<optab>"): Likewise.
15355 (<optab>_internal): Likewise.
15356 (sibcall_internal): Likewise.
15357 (sibcall_value_internal): Likewise.
15358 (sibcall_value_multiple_internal): Likewise.
15359 (call_internal): Likewise.
15360 (call_split): Likewise.
15361 (call_internal_direct): Likewise.
15362 (call_direct_split): Likewise.
15363 (call_value_internal): Likewise.
15364 (call_value_split): Likewise.
15365 (call_value_internal_direct): Likewise.
15366 (call_value_direct_split): Likewise.
15367 (call_value_multiple_internal): Likewise.
15368 (call_value_multiple_split): Likewise.
15369 (mips_get_fcsr_mips16_<mode>): Likewise.
15370 (mips_set_fcsr_mips16_<mode>): Likewise.
15371 (tls_get_tp_mips16_<mode>): Likewise.
15372 * config/mips/mips.opt: Add -mcompact-branches option.
15373 * config/mips/predicates.md (order_operator): Ensure the
15374 conditional compact branches are only used if the ISA them.
15375 * doc/invoke.texi: Document -mcompact-branches option.
15377 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
15380 * lra-lives.c (process_bb_lives): Process move pseudos with the
15381 same value for copies and preferences
15382 * lra-constraints.c (match_reload): Create match reload pseudo
15383 with the same value from single dying input pseudo.
15385 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
15388 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
15390 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
15392 * trans-mem.c: Add contributed-by.
15393 * trans-mem.h: Same.
15395 2015-09-01 Richard Biener <rguenther@suse.de>
15397 * expr.c (expand_expr_real_1): For expanding TERed defs
15398 set the current location to that of the def if not UNKNOWN.
15400 2015-09-01 David Sherwood <david.sherwood@arm.com>
15402 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
15404 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15406 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
15407 then_cost, else_cost fields. Change branch_cost field to unsigned int.
15408 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
15409 Include rtl-iter.h.
15410 (noce_simple_bbs): New function.
15411 (noce_try_move): Bail if basic blocks are not simple.
15412 (noce_try_store_flag): Likewise.
15413 (noce_try_store_flag_constants): Likewise.
15414 (noce_try_addcc): Likewise.
15415 (noce_try_store_flag_mask): Likewise.
15416 (noce_try_cmove): Likewise.
15417 (noce_try_minmax): Likewise.
15418 (noce_try_abs): Likewise.
15419 (noce_try_sign_mask): Likewise.
15420 (noce_try_bitop): Likewise.
15421 (bbs_ok_for_cmove_arith): New function.
15422 (noce_emit_all_but_last): Likewise.
15423 (noce_emit_insn): Likewise.
15424 (noce_emit_bb): Likewise.
15425 (noce_try_cmove_arith): Handle non-simple basic blocks.
15426 (insn_valid_noce_process_p): New function.
15427 (contains_mem_rtx_p): Likewise.
15428 (bb_valid_for_noce_process_p): Likewise.
15429 (noce_process_if_block): Allow non-simple basic blocks
15432 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
15434 * tree-ssa-dom.c (record_equivalences_from_phis,
15435 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
15436 (lookup_avail_expr): Likewise, and remove comment and unused temp.
15438 2015-09-01 Nick Clifton <nickc@redhat.com>
15440 * config/msp430/msp430.opt (mcpu): Fix typo.
15442 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15444 * config/aarch64/aarch64.c (aarch64_set_current_function):
15445 Re-layout any vector parameters have non-simd layout.
15446 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
15448 (aarch64_simd_expand_args): Delete call to the above.
15450 2015-08-31 Mike Frysinger <vapier@gentoo.org>
15452 * doc/invoke.texi (asan-stack): Add space before option.
15454 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15456 * tree.h (zerop): New function.
15457 * tree.c (zerop): Likewise.
15458 (element_precision): Handle expressions.
15459 * match.pd (define_predicates): Add zerop.
15460 (x <= +Inf): Fix comment.
15461 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
15462 * fold-const.c (fold_binary_loc): ... here. Remove.
15464 2015-08-31 Richard Biener <rguenther@suse.de>
15466 PR middle-end/67381
15467 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
15469 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
15471 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
15472 (CEXPI): New operator list.
15473 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
15474 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
15476 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
15478 2015-08-31 Tom de Vries <tom@codesourcery.com>
15480 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
15481 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
15483 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
15484 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
15485 (rewrite_into_loop_closed_ssa): ... here.
15486 (replace_uses_in_dominated_bbs): Remove function.
15487 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
15488 rewrite_into_loop_closed_ssa_1.
15490 2015-08-31 Michael Matz <matz@suse.de>
15492 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
15493 enter entry and exit blocks for reverse post order.
15495 2015-08-31 Richard Biener <rguenther@suse.de>
15497 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
15498 (lto_location_cache::current_sysp): Likewise.
15499 (output_block::current_sysp): Likewise.
15500 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
15501 (lto_location_cache::apply_location_cache): Properly record
15502 system header locations.
15503 (lto_location_cache::input_location): Input whether a file
15504 is a system header.
15505 * lto-streamer-out.c (lto_output_location): Stream whether a file
15506 is a system header.
15508 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15511 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
15513 2015-08-31 Tom de Vries <tom@codesourcery.com>
15515 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
15516 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
15517 Improve function header comments.
15519 2015-08-30 Michael Collison <michael.collison@linaro.org>
15522 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
15525 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15527 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
15528 special_handling bitfield.
15529 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
15530 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
15531 that represents a general xxpermdi.
15532 (insn_is_swappable_p): Add handling for vec_concat of two
15533 doublewords, which maps to a specific xxpermdi.
15534 (adjust_xxpermdi): New function.
15535 (adjust_concat): Likewise.
15536 (handle_special_swappables): Call adjust_xxpermdi and
15538 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
15540 2015-08-30 Rich Felker <dalias@libc.org>
15542 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
15543 case instead of sh[123456ble]-*-*.
15545 2015-08-29 Anatoly Sokolov <aesok@post.ru>
15547 * ira.c (print_unform_and_important_classes,
15548 print_translated_classes): Remove reg_class_names static array.
15549 (print_unform_and_important_classes): Rename to ...
15550 (print_uniform_and_important_classes): ... this.
15551 (ira_debug_allocno_classes): Update accordingly.
15553 2015-08-29 Tom de Vries <tom@codesourcery.com>
15555 PR tree-optimization/46193
15556 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
15559 2015-08-28 Jeff Law <law@redhat.com>
15562 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
15563 unable to find X NE 0 in the tables, return X as the simplified
15565 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
15566 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
15568 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
15569 after removing the control flow statement and unnecessary edges.
15571 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
15574 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15576 PR tree-optimization/67283
15577 * tree-sra.c (type_consists_of_records_p): Rename to...
15578 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15580 (completely_scalarize_record): Rename to...
15581 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
15583 (scalarize_elem): New.
15585 2015-08-28 Jiong Wang <jiong.wang@arm.com>
15587 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
15588 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
15589 (aarch64_symbol_type): Likewise.
15590 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
15592 (aarch64_expand_mov_immediate): Likewise.
15593 (aarch64_print_operand): Likewise.
15594 (aarch64_classify_tls_symbol): Likewise.
15596 2015-08-28 Richard Biener <rguenther@suse.de>
15598 * cgraphunit.c (symbol_table::compile): Move early debug generation
15600 (symbol_table::finalize_compilation_unit): ... back here and
15601 add a !seen_error () guard.
15603 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15605 * toplev.c (process_options): Do not use flag_loop_block,
15606 flag_loop_interchange, and flag_loop_strip_mine. Add check for
15607 flag_loop_optimize_isl.
15609 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15611 * Makefile.in (OBJS): Remove graphite-blocking.o and
15612 graphite-interchange.o.
15613 * common.opt (floop-strip-mine, floop-interchange, floop-block):
15614 Alias of floop-nest-optimize.
15615 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
15616 Document as alias of -floop-nest-optimize.
15617 * graphite-blocking.c: Remove.
15618 * graphite-interchange.c: Remove.
15619 * graphite-optimize-isl.c: Include dumpfile.h.
15620 (getScheduleForBand): Add dump for tiled loops. Use
15621 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
15622 * graphite-poly.c (scop_max_loop_depth): Remove.
15623 (print_scattering_function_1): Remove.
15624 (print_scattering_function): Remove.
15625 (print_scattering_functions): Remove.
15626 (debug_scattering_function): Remove.
15627 (debug_scattering_functions): Remove.
15628 (apply_poly_transforms): Remove use of flag_loop_block,
15629 flag_loop_strip_mine, and flag_loop_interchange.
15630 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
15632 (print_pdr_access_layout): Remove.
15633 (print_pdr): Print ISL representation.
15634 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
15635 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
15637 (openscop_print_pbb_domain): Remove.
15638 (print_pbb): Remove call to print_scattering_function.
15639 (openscop_print_scop_context): Remove.
15640 (print_scop_context): Do not print matrices anymore.
15641 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
15642 SCOP_TRANSFORMED_SCHEDULE.
15643 (print_isl_set): Add printing of a new line.
15644 (print_isl_map): Same.
15645 (print_isl_aff): Same.
15646 (print_isl_constraint): Same.
15647 (loop_to_lst): Remove.
15648 (scop_to_lst): Remove.
15649 (lst_indent_to): Remove.
15650 (print_lst): Remove.
15651 (debug_lst): Remove.
15652 (dot_lst_1): Remove.
15654 (reverse_loop_at_level): Remove.
15655 (reverse_loop_for_pbbs): Remove.
15656 * graphite-poly.h (pdr_dim_iter_domain): Remove.
15657 (pdr_nb_params): Remove.
15658 (pdr_alias_set_dim): Remove.
15659 (pdr_subscript_dim): Remove.
15660 (pdr_iterator_dim): Remove.
15661 (pdr_parameter_dim): Remove.
15662 (same_pdr_p): Remove.
15663 (struct poly_scattering): Remove.
15664 (struct poly_bb): Remove _original, _transformed, _saved.
15665 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
15666 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
15667 (PBB_NB_LOCAL_VARIABLES): Remove.
15668 (PBB_NB_SCATTERING_TRANSFORM): Remove.
15669 (schedule_to_scattering): Remove.
15670 (number_of_write_pdrs): Remove.
15671 (pbb_dim_iter_domain): Remove.
15672 (pbb_nb_params): Remove.
15673 (pbb_nb_scattering_orig): Remove.
15674 (pbb_nb_scattering_transform): Remove.
15675 (pbb_nb_dynamic_scattering_transform): Remove.
15676 (pbb_nb_local_vars): Remove.
15677 (pbb_iterator_dim): Remove.
15678 (pbb_parameter_dim): Remove.
15679 (psco_scattering_dim): Remove.
15680 (psct_scattering_dim): Remove.
15681 (psct_local_var_dim): Remove.
15682 (psco_iterator_dim): Remove.
15683 (psct_iterator_dim): Remove.
15684 (psco_parameter_dim): Remove.
15685 (psct_parameter_dim): Remove.
15686 (psct_dynamic_dim): Remove.
15687 (psct_static_dim): Remove.
15688 (psct_add_local_variable): Remove.
15689 (new_lst_loop): Remove.
15690 (new_lst_stmt): Remove.
15691 (free_lst): Remove.
15692 (copy_lst): Remove.
15693 (lst_add_loop_under_loop): Remove.
15694 (lst_depth): Remove.
15695 (lst_dewey_number): Remove.
15696 (lst_dewey_number_at_depth): Remove.
15697 (lst_pred): Remove.
15698 (lst_succ): Remove.
15699 (lst_find_pbb): Remove.
15700 (find_lst_loop): Remove.
15701 (lst_find_first_pbb): Remove.
15702 (lst_empty_p): Remove.
15703 (lst_find_last_pbb): Remove.
15704 (lst_contains_p): Remove.
15705 (lst_contains_pbb): Remove.
15706 (lst_create_nest): Remove.
15707 (lst_remove_from_sequence): Remove.
15708 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
15709 (lst_niter_for_loop): Remove.
15710 (pbb_update_scattering): Remove.
15711 (lst_update_scattering_under): Remove.
15712 (lst_update_scattering): Remove.
15713 (lst_insert_in_sequence): Remove.
15714 (lst_replace): Remove.
15715 (lst_substitute_3): Remove.
15716 (lst_distribute_lst): Remove.
15717 (lst_remove_all_before_including_pbb): Remove.
15718 (lst_remove_all_before_excluding_pbb): Remove.
15719 (struct scop): Remove original_schedule, transformed_schedule, and
15721 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
15722 (SCOP_SAVED_SCHEDULE): Remove.
15723 (poly_scattering_new): Remove.
15724 (poly_scattering_free): Remove.
15725 (poly_scattering_copy): Remove.
15726 (store_scattering_pbb): Remove.
15727 (store_lst_schedule): Remove.
15728 (restore_lst_schedule): Remove.
15729 (store_scattering): Remove.
15730 (restore_scattering_pbb): Remove.
15731 (restore_scattering): Remove.
15732 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
15733 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
15734 compute the scattering polyhedron dimension from the dimension of
15736 (build_scop_scattering): Update call to
15737 build_pbb_scattering_polyhedrons.
15738 (build_poly_scop): Remove call to scop_to_lst.
15739 * graphite.c (graphite_transform_loops): Add call to print_scop.
15740 (gate_graphite_transforms): Remove use of flag_loop_block,
15741 flag_loop_interchange, and flag_loop_strip_mine.
15743 2015-08-27 Sebastian Pop <s.pop@samsung.com>
15745 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
15746 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
15747 -floop-nest-optimize.
15748 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
15749 (generate_luj_sepclass): Remove.
15750 (generate_luj_options): Remove.
15751 (set_options): Remove opt_luj.
15752 (scop_to_isl_ast): Remove opt_luj.
15753 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
15754 flag_loop_unroll_jam.
15755 (getPrevectorMap_full): Remove.
15756 (getScheduleForBandList): Remove map_sepcl.
15757 (getScheduleMap): Same.
15758 (apply_schedule_map_to_scop): Remove sepcl.
15759 (optimize_isl): Same.
15760 * graphite-poly.c (apply_poly_transforms): Remove check for
15761 flag_loop_unroll_jam.
15762 (new_poly_bb): Remove map_sepclass.
15763 * graphite-poly.h (struct poly_bb): Same.
15764 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
15765 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
15766 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
15767 * toplev.c (process_options): Remove flag_loop_unroll_jam.
15769 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
15772 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
15773 (addqi3_cc): Ditto.
15774 (UNSPEC_ADD_CARRY): Remove.
15775 (addqi3_cconly_overflow): New expander.
15776 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
15777 Adjust for changed add<mode>3_carry.
15778 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
15779 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
15780 (<plusminus_insn><mode>3_carry): Remove expander.
15781 (*<plusminus_insn><mode>3_carry): Split insn pattern to
15782 add<mode>3_carry and sub<mode>3_carry.
15783 (plusminus_carry_mnemonic): Remove code attribute.
15784 (add<mode>3_carry): Canonicalize insn pattern.
15785 (*addsi3_carry_zext): Ditto.
15786 (sub<mode>3_carry): Ditto.
15787 (*subsi3_carry_zext): Ditto.
15788 (adcx<mode>3): Remove insn pattern.
15789 (addcarry<mode>): New insn pattern.
15790 (subborrow<mode>): Ditto.
15791 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
15792 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
15793 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
15794 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
15795 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
15796 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
15797 Rewrite expander to not clobber carry flag chains.
15799 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
15801 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
15802 instead of a rotate.
15804 2015-08-27 Marek Polacek <polacek@redhat.com>
15806 PR middle-end/67005
15807 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
15808 an entry into an irreducible region.
15810 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
15812 * configure: Regenerate.
15814 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15816 PR tree-optimization/67283
15817 * tree-sra.c (type_consists_of_records_p): Rename to...
15818 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15820 (completely_scalarize_record): Rename to...
15821 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15822 (scalarize_elem): New.
15824 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
15826 * tree-sra.c (completely_scalarize_var): Rename to...
15827 (create_total_scalarization_access): ... Here. Drop call to
15828 completely_scalarize_record.
15830 (analyze_all_variable_accesses): Replace completely_scalarize_var
15831 with create_total_scalarization_access and completely_scalarize_record.
15833 2015-08-27 Alan Modra <amodra@gmail.com>
15836 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
15839 2015-08-27 Richard Biener <rguenther@suse.de>
15841 * passes.c (rest_of_decl_compilation): Guard early_global_decl
15842 call with !seen_error ().
15843 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
15844 early debug generation and finish...
15845 (symbol_table::compile): ... here to put it after a !seen_error ()
15848 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15850 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
15853 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
15854 Andre Vieira <andre.simoesdiasvieira@arm.com>
15856 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
15857 (*cb<optab><mode>1): Likewise.
15858 (*tb<optab><mode>1): Likewise.
15859 (*cb<optab><mode>1): Likewise.
15860 * config/aarch64/iterators.md (inv_cb): New code attribute.
15861 (inv_tb): Likewise.
15862 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
15863 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
15865 2015-08-27 Richard Biener <rguenther@suse.de>
15867 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
15869 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
15871 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
15874 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
15876 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
15879 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
15881 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
15882 floating point in VSX registers.
15883 (rs6000_output_move_128bit): Always print out the set insn if we
15884 can't generate an appropriate 128-bit move.
15885 (rs6000_generate_compare): Add support for IEEE 128-bit floating
15886 point in VSX registers comparisons.
15887 (rs6000_expand_float128_convert): Likewise.
15889 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
15890 predicate for only GPR hard registers.
15892 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
15893 modes to iterators. Add new iterators for moving 128-bit values in
15894 scalar FPR registers and VSX registers.
15895 (FMOVE128): Likewise.
15896 (FMOVE128_FPR): Likewise.
15897 (FMOVE128_GPR): Likewise.
15898 (FMOVE128_VSX): Likewise.
15899 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
15902 (IBM128): Likewise.
15903 (TFIFKF): Likewise.
15904 (RELOAD): Add IEEE 128-bit floating point modes.
15905 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
15906 floating point in VSX registers modes.
15907 (signbit<mode>2, IBM128 iterator): Likewise.
15908 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
15909 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
15910 (negtf2): Likewise.
15911 (neg<mode>2, TFIFKF iterator): Likewise.
15912 (negtf2_internal): Likewise.
15913 (abstf2): Likewise.
15914 (abs<mode>2, TFIFKF iterator): Likewise.
15915 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
15916 VSX insn support for negate, absolute value, and negative absolute
15918 (ieee_128bit_vsx_neg<mode>2): Likewise.
15919 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
15920 (ieee_128bit_vsx_abs<mode>2): Likewise.
15921 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
15922 (ieee_128bit_vsx_nabs<mode>2): Likewise.
15923 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
15924 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
15925 floating point in VSX registers.
15926 (unpack<mode>_dm): Likewise.
15927 (unpack<mode>_nodm): Likewise.
15928 (pack<mode>): Likewise.
15929 (unpackv1ti): Likewise.
15930 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
15931 (packv1ti): Likewise.
15932 (pack<mode>, FMOVE128_VSX iterator): Likewise.
15933 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
15935 (extenddftf2_internal): Likewise.
15936 (trunctfdf2): Likewise.
15937 (trunctfdf2_internal2): Likewise.
15938 (fix_trunc_helper): Likewise.
15939 (fix_trunctfdi2"): Likewise.
15940 (floatditf2): Likewise.
15941 (floatuns<mode>tf2): Likewise.
15942 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
15943 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
15944 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
15945 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
15946 (float<SDI:mode><IFKF:mode>2): Likewise.
15947 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
15949 2015-08-26 Renlin Li <renlin.li@arm.com>
15951 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
15953 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
15954 Jiong Wang <jiong.wang@arm.com>
15956 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
15957 (tlsie_tiny_<mode>): New define_insn.
15958 (tlsie_tiny_sidi): Likewise.
15959 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
15961 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
15962 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
15964 (aarch64_expand_mov_immediate): Likewise.
15965 (aarch64_print_operand): Likewise.
15966 (arch64_classify_tls_symbol): Likewise.
15968 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15970 * config/arm/arm-arches.def: Replace single value flags with
15971 an initializer built from ARM_FSET_MAKE_CPU1.
15972 * config/arm/arm-cores.def: Likewise.
15973 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
15974 derivation from the ARM_CORE macro definition, use the given value
15976 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
15977 ARM_ARCH macro definition, use the given value instead.
15979 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15981 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
15983 (struct builtin_description): Replace field mask with field
15985 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
15986 (IWMMXT2_BUILTIN): Likewise.
15987 (IWMMXT2_BUILTIN2): Likewise.
15988 (FP_BUILTIN): Likewise.
15989 (CRC32_BUILTIN): Likewise.
15990 (CRYPTO_BUILTIN): Likewise.
15991 (iwmmx_mbuiltin): Likewise.
15992 (iwmmx2_mbuiltin): Likewise.
15993 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
15994 struct builtin_description.
15996 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
15998 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
15999 (struct builtin_description): Change type of mask to unsigned
16001 * config/arm/arm-protos.h (insn_flags): Declare as type
16003 (tune_flags): Likewise.
16004 * config/arm/arm.c (feature_count): New.
16005 (insn_flags): Define as type arm_feature_set.
16006 (tune_flags): Likewise.
16007 (struct processors): Define field flags as type arm_feature_set.
16008 (all_cores): Update for change to struct processors.
16009 (all_architectures): Likewise.
16010 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
16012 (arm_option_override_internal): Likewise.
16013 (arm_option_override): Likewise.
16015 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
16016 Jiong Wang <jiong.wang@arm.com>
16018 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
16019 tls size for tiny, small, large memory model.
16020 (aarch64_load_symref_appropriately): Support new symbol types.
16021 (aarch64_expand_mov_immediate): Likewise.
16022 (aarch64_print_operand): Likewise.
16023 (aarch64_classify_tls_symbol): Likewise.
16024 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
16025 (aarch64_symbol_type): Likewise.
16026 * config/aarch64/aarch64.md (tlsle): Deleted.
16027 (tlsle12_<mode>): New define_insn.
16028 (tlsle24_<mode>): Likewise.
16029 (tlsle32_<mode>): Likewise.
16030 (tlsle48_<mode>): Likewise.
16031 * doc/sourcebuild.texi (AArch64-specific attributes): Document
16034 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16036 * config/arm/arm-protos.h (FL_NONE): New.
16038 (arm_feature_set): New.
16039 (ARM_FSET_MAKE): New.
16040 (ARM_FSET_MAKE_CPU1): New.
16041 (ARM_FSET_MAKE_CPU2): New.
16042 (ARM_FSET_CPU1): New.
16043 (ARM_FSET_CPU2): New.
16044 (ARM_FSET_EMPTY): New.
16045 (ARM_FSET_ANY): New.
16046 (ARM_FSET_HAS_CPU1): New.
16047 (ARM_FSET_HAS_CPU2): New.
16048 (ARM_FSET_HAS_CPU): New.
16049 (ARM_FSET_ADD_CPU1): New.
16050 (ARM_FSET_ADD_CPU2): New.
16051 (ARM_FSET_DEL_CPU1): New.
16052 (ARM_FSET_DEL_CPU2): New.
16053 (ARM_FSET_UNION): New.
16054 (ARM_FSET_INTER): New.
16055 (ARM_FSET_XOR): New.
16056 (ARM_FSET_EXCLUDE): New.
16057 (AFM_FSET_IS_EMPTY): New.
16058 (ARM_FSET_CPU_SUBSET): New.
16060 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16062 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
16063 SYMBOL_TLSLE to SYMBOL_TLSLE24.
16064 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
16066 (aarch64_expand_mov_immediate): Likewise.
16067 (aarch64_print_operand): Likewise.
16068 (aarch64_classify_symbol): Likewise.
16070 2015-08-26 Jiong Wang <jiong.wang@arm.com>
16072 * config/aarch64/aarch64.opt (mtls-size): New entry.
16073 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
16074 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
16075 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
16077 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
16079 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
16080 ARM_CORE entry. Fix some white-space.
16081 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
16082 ARM_CORE definition.
16084 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16086 * fold-const.c (fold_binary_loc) : Move Optimize
16087 root(x)*root(y) as root(x*y) to match.pd.
16088 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
16089 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
16090 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
16091 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
16092 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
16093 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
16094 (mult (exps:s @0) (exps:s @1)) : New simplifier.
16095 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
16096 (rdiv @0 (exps:s @1)) : New simplifier.
16098 2015-08-25 Joseph Myers <joseph@codesourcery.com>
16100 * gcc.c (driver::finalize): Only assign to extra_specs if
16103 2015-08-25 Marek Polacek <polacek@redhat.com>
16105 PR middle-end/67330
16106 * varasm.c (declare_weak): Return after giving an error.
16108 2015-08-25 David Malcolm <dmalcolm@redhat.com>
16110 * gcc-main.c (main): Add params to driver ctor.
16111 * gcc.c (class env_manager): New.
16113 (env_manager::init): New.
16114 (env_manager::get): New.
16115 (env_manager::xput): New.
16116 (env_manager::restore): New.
16117 Poison getenv and putenv.
16118 (DEFAULT_TARGET_SYSTEM_ROOT): New.
16119 (target_system_root): Update initialization to use
16120 DEFAULT_TARGET_SYSTEM_ROOT.
16121 (struct spec_list): Add field "default_ptr".
16122 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
16123 (init_spec): Likewise.
16124 (set_spec): Clear field "default_ptr".
16125 (read_specs): Free "spec" and "buffer".
16126 (xputenv): Reimplement in terms of env_manager.
16127 (process_command): Replace ::getenv calls with calls to the
16128 env_manager singleton.
16129 (process_brace_body): Free string in three places.
16130 (driver::driver): New.
16131 (driver::~driver): New.
16132 (used_arg): Convert from a function to...
16133 (class used_arg_t): ...this class, and...
16134 (used_arg): ...this new global instance.
16135 (used_arg_t::finalize): New function.
16136 (getenv_spec_function): Add "const" to local "value". Replace
16137 ::getenv call with call to the env_manager singleton.
16138 (path_prefix_reset): New function.
16139 (driver::finalize): New function.
16140 * gcc.h (driver::driver): New.
16141 (driver::~driver): New.
16142 (driver::finalize): New.
16144 2015-08-25 Nathan Sidwell <nathan@acm.org>
16146 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
16147 target doesn't have one.
16149 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16152 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
16154 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
16157 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
16158 a define_insn, remove second alternative.
16160 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
16161 Joseph Myers <joseph@codesourcery.com>
16163 * gcc.c (struct switchstr): Expand comment.
16165 2015-08-25 Nathan Sidwell <nathan@acm.org>
16167 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
16168 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
16170 2015-08-25 Richard Biener <rguenther@suse.de>
16172 PR middle-end/67306
16173 * genmatch.c (expr::gen_transform): Verify the result of
16174 builtin_decl_implicit.
16175 (dt_simplify::gen_1): Likewise.
16177 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
16179 * config/arm/constraints.md: Also list Cs and US ARM-specific
16180 constraints as used.
16182 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
16185 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
16187 (nonpic_symbol_mentioned_p): Likewise.
16188 (sh_delegitimize_address): Likewise.
16189 (sh_function_ok_for_sibcall): Take into account weak symbols.
16190 (sh_expand_sym_label2reg): New.
16191 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
16192 * config/sh/sh.md (UNSPEC_PCREL): New enum.
16193 (call_pcrel): Use sh_expand_sym_label2reg.
16194 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16195 (symPCREL_label2reg) New expand.
16197 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16199 * graphite-poly.c: Change type of region from void* to sese.
16200 * graphite-poly.h (struct scop): Changing the type of scop::region
16201 from void* to sese. Change accessor macro accordingly.
16202 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
16204 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
16206 * graphite-scop-detection.c (stmt_simple_for_scop_p):
16207 Constrain only on INTEGER_TYPE.
16209 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
16212 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
16213 -mefficient-unaligned-vsx on ISA 2.7.
16215 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
16216 option to a masked option.
16218 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
16219 logic for -mefficient-unaligned-vsx so that it is set via an arch
16220 ISA option, instead of being set if -mtune=power8 is set. Move
16221 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
16222 near other default option handling.
16224 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16226 * genflags.c (gen_macro): Delete.
16227 (gen_proto): Don't create GEN.*CALL.* macros.
16228 * gensupport.h (get_file_location): Declare.
16229 * gensupport.c (rtx_locs): New variable.
16230 (read_md_rtx): Record rtx locations.
16231 (get_file_location): New function.
16232 * target-insns.def (call, call_pop, call_value, call_value_pop)
16233 (sibcall, sibcall_value): New patterns.
16234 * gentarget-def.c (parse_argument): New function.
16235 (def_target_insn): Use it. Handle optional operands. Raise an
16236 error if an .md pattern has the wrong number of operands for the
16237 pattern name. Remove the names of unused operands from the prototype.
16238 * builtins.c (expand_builtin_apply): Use targetm functions
16239 instead of HAVE_call_value and GEN_CALL_VALUE.
16240 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
16241 and sibcall_value_pop.
16242 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
16244 * config/alpha/alpha.md (untyped_call): Likewise.
16245 * config/iq2000/iq2000.md (untyped_call): Likewise.
16246 * config/m68k/m68k.md (untyped_call): Likewise.
16247 * config/mips/mips.md (untyped_call): Likewise.
16248 * config/pa/pa.md (untyped_call): Likewise.
16249 * config/rs6000/rs6000.md (untyped_call): Likewise.
16250 * config/sparc/sparc.md (untyped_call): Likewise.
16251 * config/tilegx/tilegx.md (untyped_call): Likewise.
16252 * config/tilepro/tilepro.md (untyped_call): Likewise.
16253 * config/visium/visium.md (untyped_call): Likewise.
16254 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
16255 gen_call_value instead of GEN_CALL_VALUE.
16256 * config/arm/arm.md (untyped_call): Likewise.
16257 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
16260 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16262 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
16263 (have_cbranchcc4): New variable.
16264 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
16265 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
16266 (if_convert): Initialize have_cbranchcc4.
16268 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16270 * builtins.c (expand_cmpstrn): Rename to...
16271 (expand_cmpstrn_or_cmpmem): ...this.
16272 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
16273 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
16274 Remove mode argument.
16275 (expand_builtin): Update accordingly.
16277 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16279 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
16280 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
16281 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
16282 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
16283 Add predicates for operands 0 and 3.
16284 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
16286 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
16287 immediate_operand to nonmemory_operand.
16289 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16291 * df-scan.c (df_insn_info_init_fields): New function, split out
16293 (df_insn_create_insn_record): ...here.
16294 (df_insn_info_free_fields): New function, split out from...
16295 (df_insn_info_delete): ...here.
16296 (df_insn_rescan): Use the new functions instead of freeing and
16297 reallocating the df_insn_info.
16299 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16301 * doc/install.texi (Binaries): Remove links no longer valid.
16303 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
16305 * config/nvptx/mkoffload.c (process): Replace
16306 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
16308 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
16311 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
16313 2015-08-24 Renlin Li <renlin.li@arm.com>
16315 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
16316 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
16317 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
16318 * config/arm/constraints.md ("j"): Add check for high code.
16320 2015-08-24 Tom de Vries <tom@codesourcery.com>
16322 PR tree-optimization/65468
16323 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
16326 2015-08-24 Nathan Sidwell <nathan@acm.org>
16328 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
16329 change to nvptx_type_from_mode call. Use arg_promotion for both
16330 split and non-split args.
16332 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16334 * target-insns.def (movstr): New pattern.
16335 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
16336 (expand_movstr): Use targetm rather than HAVE_movstr/
16339 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
16341 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
16344 2015-08-24 Andrew Pinski <apinski@cavium.com>
16346 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
16347 AARCH64_EXTRA_TUNING_OPTION.
16348 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
16350 (aarch64_extra_tuning_flags): Base the shifted value on the index
16351 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
16352 * config/aarch64/aarch64.c: Remove the last argument to
16353 AARCH64_EXTRA_TUNING_OPTION.
16355 2015-08-23 Nathan Sidwell <nathan@acm.org>
16357 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
16359 (nvptx_declare_function_name): Insert formatting tabs for
16362 2015-08-23 Tom de Vries <tom@codesourcery.com>
16364 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
16365 parm_decl, rather than generating a dummy default def in cfun.
16366 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
16367 ssa_name from cfun and child_fn do not share a stmt as def stmt.
16368 (move_stmt_op): Handle PARM_DECl.
16369 (gather_ssa_name_hash_map_from): New function.
16370 (move_sese_region_to_fn): Add default defs for function params, and add
16371 them to vars_map. Release copied ssa names.
16372 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
16374 2015-08-23 Tom de Vries <tom@codesourcery.com>
16376 * doc/sourcebuild.texi: Rename vect_no_int_max with
16377 vect_no_int_min_max. Update description.
16379 2015-08-22 Andrew Pinski <apinski@cavium.com>
16381 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
16382 * config/aarch64/aarch64-protos.h
16383 (aarch64_fusion_pairs_index): New enum.
16384 (aarch64_fusion_pairs): Base the shifted value on the index instead
16385 Rewrite AARCH64_FUSE_ALL to be based on the end index.
16386 of the argument to AARCH64_FUSION_PAIR.
16387 * config/aarch64/aarch64.c: Remove the last argument to
16388 AARCH64_FUSION_PAIR.
16390 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
16392 * dominance.c (new_zero_array): Define.
16393 (dom_info): Redefine as class with proper encapsulation.
16394 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
16396 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
16397 allocations/deallocations. Pass function as parameter (instead of
16399 (dom_info::get_idom): Define accessor method.
16400 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
16401 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
16402 (calculate_dominance_info): Adjust to use dom_info class.
16403 (verify_dominators): Likewise.
16405 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
16407 * print-rtl.c (print_rtx): Check the correct range for
16408 flag_dump_unnumbered_links to behave as documented.
16410 PR rtl-optimization/67227
16411 PR rtl-optimization/64164
16412 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
16413 (nonoverlapping_memrefs_p): Test offsets and sizes when given
16414 identical gimple_reg exprs.
16416 2015-08-21 Nathan Sidwell <nathan@acm.org>
16418 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
16420 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
16421 crtl->stack_alignment_needed to determine alignment.
16422 (nvptx_get_drap_rtx): New.
16423 (TARGET_GET_DRAP_RTX): Override.
16424 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
16426 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16428 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
16430 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16432 * configure.ac: Remove uwin* cases.
16433 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
16434 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
16435 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
16436 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
16437 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
16438 i[34567]86-*-uwin*, powerpc-*-beos*.
16440 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
16442 * gencodes.c (gencodes): Print the comma for the preceding
16443 enum value rather than the current one. Use aliased enum values
16444 rather than #defines for compiled-out patterns.
16445 (main): Update accordingly. Replace LAST_INSN_CODE with
16447 * lra.c (insn_code_data): Update accordingly.
16448 (finish_insn_code_data_once, get_static_insn_data): Likewise.
16449 * recog.h (target_recog): Likewise.
16450 (preprocess_insn_constraints): Change parameter to unsigned int.
16451 * recog.c (preprocess_insn_constraints): Likewise.
16452 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
16453 * tree-vect-stmts.c (vectorizable_operation): Simplify.
16455 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
16457 PR rtl-optimization/61657
16458 * loop-iv.c (iv_number_of_iterations): Declare up and down as
16459 unsigned. Remove superflous uint64_t cast.
16461 2014-08-21 Felix Yang <felix.yang@huawei.com>
16462 Jiji Jiang <jiangjiji@huawei.com>
16464 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
16465 argument and get builtin function code directly from CALL.
16466 (gimple_stringop_fixed_value): Modified accordingly.
16467 (gimple_stringops_transform, gimple_stringops_values_to_profile):
16468 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
16470 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
16472 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
16474 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16476 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
16478 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
16479 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
16480 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
16481 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
16482 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
16483 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
16484 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
16485 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
16486 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
16487 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
16489 * match.pd (SIN ) : New Operator.
16490 (TAN) : New Operator.
16491 (mult (SQRT@1 @0) @1) : New simplifier.
16492 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
16493 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16494 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
16495 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
16496 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
16497 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
16498 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
16499 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
16500 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
16501 (rdiv @0 (POW:s @1 @2)) : New simplifier.
16503 2015-08-21 Bin Cheng <bin.cheng@arm.com>
16505 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
16506 loop if EXPR is simplified to const value.
16508 2015-08-21 Yury Gribov <y.gribov@samsung.com>
16510 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
16511 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
16513 2015-08-21 Richard Biener <rguenther@suse.de>
16515 PR middle-end/67285
16516 * gimple-fold.c (replace_stmt_with_simplification): Assert
16517 seq is empty when replacing a call with itself but different
16519 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
16520 a call require that it is const.
16522 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16524 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
16525 * builtins.c (get_object_alignment_2): Adjust.
16526 * varasm.c (align_variable): Likewise.
16527 (get_variable_align): Likewise.
16528 (build_constant_desc): Likewise.
16529 (force_const_mem): Likewise.
16530 * doc/tm.texi.in: Likewise.
16531 * doc/tm.texi: Regenerate.
16533 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16535 * genconfig.c (main): Always define HAVE_cc0.
16536 * recog.c (rest_of_handle_peephole2): Adjust.
16538 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16540 * reorg.c (relax_delay_slots): Don't use #if to check value of
16543 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16545 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
16546 * targhooks.c (default_have_conditional_execution): Adjust.
16548 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16550 * rtl.h (rtvec_all_equal_p): Declare.
16551 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
16552 * rtl.c (rtvec_all_equal_p): New function.
16553 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
16554 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
16555 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
16556 * config/arm/arm.c (neon_vdup_constant): Likewise.
16557 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
16558 * config/tilegx/constraints.md (W, Y): Likewise.
16559 * config/tilepro/constraints.md (W, Y): Likewise.
16560 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
16561 (classify_immediate): Use unwrap_const_vec_duplicate.
16562 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
16563 (reg_or_v2s8bit_operand): Likewise.
16564 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
16565 (reg_or_v4s8bit_operand): Likewise.
16567 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16569 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
16570 (vec_shasigma_be): New #define.
16571 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
16572 (VPMSUMH): Likewise.
16573 (VPMSUMW): Likewise.
16574 (VPMSUMD): Likewise.
16575 (VPMSUM): New BU_P8V_OVERLOAD_2.
16576 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
16577 entries for VEC_MADD and VEC_VPMSUM.
16579 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
16581 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
16582 Multiply argument avr_n_flash by 64 to match unit of "KiB".
16583 (avr_pgm_check_var_decl): Same.
16585 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
16587 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
16588 initialization of HFmode scalar type (float16_t) to...
16589 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
16592 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
16594 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
16595 having an -mfp16-format.
16597 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
16599 * config/i386/predicates.md (vector_all_ones_operand): Use
16600 CONSTM1_RTX to simplify definition.
16602 2015-08-20 Richard Biener <rguenther@suse.de>
16604 * toplev.c (compile_file): Remove loop calling late_global_decl
16606 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
16607 on decls we assembled.
16609 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
16611 * common/config/aarch64/aarch64-common.c
16612 (AARCH64_CPU_NAME_LENGTH): Delete.
16613 (aarch64_option_extension): New.
16614 (all_extensions): Likewise.
16615 (processor_name_to_arch): Likewise.
16616 (arch_to_arch_name): Likewise.
16618 (all_architectures): Likewise.
16619 (aarch64_get_extension_string_for_isa_flags): Likewise.
16620 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
16621 architecture names.
16622 * config/aarch64/aarch64-protos.h
16623 (aarch64_get_extension_string_for_isa_flags): New.
16624 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
16625 (aarch64_option_print): Get the string to print from
16626 aarch64_get_extension_string_for_isa_flags.
16627 (aarch64_declare_function_name): Likewise.
16628 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
16629 (MCPU_TO_MARCH_SPEC): This.
16630 (ASM_CPU_SPEC): Use it.
16631 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
16632 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
16633 (EXTRA_SPEC_FUNCTIONS): Use it.
16635 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
16637 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
16638 expansion when !ISA_HAS_LWL_LWR.
16639 (mips_block_move_straight): Update the size of elements copied to
16640 account for alignment when !ISA_HAS_LWL_LWR.
16641 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
16643 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16645 * expr.c (expand_expr_real_2): Check gimple statement during
16646 LSHIFT_EXPR expand.
16648 2015-08-19 Magnus Granberg <zorry@gentoo.org>
16650 * common.opt (fstack-protector): Initialize to -1.
16651 (fstack-protector-all): Likewise.
16652 (fstack-protector-strong): Likewise.
16653 (fstack-protector-explicit): Likewise.
16654 * configure.ac: Add --enable-default-ssp.
16655 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
16656 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
16658 * doc/install.texi: Document --enable-default-ssp.
16659 * config.in: Regenerated.
16660 * configure: Likewise.
16662 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
16664 PR rtl-optimization/64164
16665 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
16666 (parm_in_stack_slot_p): ... this. Disregard mode, what
16667 matters is whether the parm will live in a pseudo or a stack
16669 (expand_one_ssa_partition): Deal with params without a default
16670 def. Disregard mode.
16671 * cfgexpand.h: Renamed function declaration.
16672 * tree-ssa-coalesce.c: Adjust.
16673 * function.c (split_complex_args): Allocate stack slot for
16674 unassigned parms before splitting.
16675 (parm_in_unassigned_mem_p): New. Use it instead of
16676 parm_maybe_byref_p throughout this file.
16677 (assign_parm_setup_block): Use it. Accept pseudos in the
16678 expand-assigned rtl.
16679 (assign_parm_setup_reg): Drop BLKmode requirement.
16680 (assign_parm_setup_stack): Allocate and fill in the address of
16681 unassigned MEM parms.
16683 2015-08-19 David Sherwood <david.sherwood@arm.com>
16685 * genmodes.c (emit_mode_unit_size_inline): New function.
16686 (emit_mode_unit_precision_inline): New function.
16687 (emit_insn_modes_h): Emit new #define. Emit new functions.
16688 (emit_mode_unit_size): New function.
16689 (emit_mode_unit_precision): New function.
16690 (emit_mode_adjustments): Add mode_unit_size adjustments.
16691 (emit_insn_modes_c): Emit new arrays.
16692 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
16693 use new inline methods.
16695 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16697 * config/aarch64/aarch64.c (bit_count): Delete prototype
16699 (aarch64_print_operand): Use popcount_hwi instead of the above.
16701 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16703 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
16706 2015-08-19 Marek Polacek <polacek@redhat.com>
16708 PR middle-end/67133
16709 * gimple-ssa-isolate-paths.c
16710 (insert_trap_and_remove_trailing_statements): Rename to ...
16711 (insert_trap): ... this. Don't remove trailing statements; split
16713 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
16715 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
16718 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
16719 conditionalize the whole on __GNUC__. Add fallback code
16720 depending neither on undefined nor implementation-defined behaviour.
16722 2015-08-19 Jiong Wang <jiong.wang@arm.com>
16724 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
16725 whitespaces with tab.
16727 2015-08-19 Florian Weimer <fweimer@redhat.com>
16729 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
16730 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
16731 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
16732 Move Name_Ids instantiation to the Prj.Proc package, to avoid
16735 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16737 * config/arm/arm.c (bounds_check): Use %wd print format
16738 for HOST_WIDE_INT arguments.
16740 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
16742 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
16743 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
16744 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
16745 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
16746 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
16747 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
16748 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
16749 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
16750 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
16753 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
16755 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
16756 function.c, graphite-scop-detection.c, haifa-sched.c,
16757 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
16758 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
16759 varasm.c: Remove typedefs of structs.
16761 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
16763 * config/rs6000/altivec.h (vec_adde): New define.
16764 (vec_addec): Likewise.
16765 (vec_double): Likewise.
16766 (vec_bperm): Likewise.
16767 (vec_gb): Likewise.
16768 * config/rs6000/rs6000-builtin.def (ADDE): New
16769 BU_ALTIVEC_OVERLOAD_3.
16771 (DOUBLE): New BU_VSX_OVERLOAD_1.
16772 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
16773 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
16774 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
16775 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
16776 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
16777 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
16778 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
16779 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
16780 and P8V_BUILTIN_VEC_VBPERMQ.
16782 2015-08-18 Jason Merrill <jason@redhat.com>
16784 * print-tree.c (print_node): Handle TREE_BINFO.
16786 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
16788 PR middle-end/36757
16789 * builtins.c (expand_builtin_signbit): Add asserts to make sure
16790 we can expand BUILT_IN_SIGNBIT inline.
16791 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
16792 * doc/extend.texi: Document the type-generic __builtin_signbit.
16794 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
16796 PR rtl-optimization/67218
16797 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
16798 (simplify_unary_operation_1): Use it.
16800 2015-08-18 Marek Polacek <polacek@redhat.com>
16802 PR middle-end/67222
16803 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
16804 if the call isn't valid.
16805 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
16806 gimple_call_builtin_p.
16807 (call_may_clobber_ref_p_1): Likewise.
16808 (stmt_kills_ref_p): Likewise.
16810 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
16812 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
16813 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
16814 (mips_hard_regno_scratch_ok): Likewise.
16815 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
16816 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
16818 2015-08-18 Bin Cheng <bin.cheng@arm.com>
16820 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
16821 (determine_value_range): Call refine_value_range_using_guard for
16822 each loop initial condition to improve value range.
16824 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
16826 * config/i386/i386.c: Remove include of fibheap.h.
16828 2015-08-17 Richard Biener <rguenther@suse.de>
16830 PR tree-optimization/67221
16831 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
16832 (sccvn_dom_walker::before_dom_children): Mark backedges of
16833 non-executable blocks as not executable.
16835 2015-08-17 David Sherwood <david.sherwood@arm.com>
16837 * config/arm/arm.c (neon_element_bits): Replace call to
16838 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
16839 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
16840 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
16841 (neon_vdup_lane<mode>): Likewise.
16842 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
16843 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
16844 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
16845 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
16846 * config/spu/spu.c (arith_immediate_p): Likewise.
16847 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
16848 * expr.c (expand_expr_real_2): Likewise.
16849 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
16850 * simplify-rtx.c (simplify_immed_subreg): Likewise.
16851 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
16852 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
16854 * fold-const.c (fold_binary_loc): Replace call to
16855 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
16856 GET_MODE_UNIT_PRECISION (m).
16858 2015-08-17 Mike Stump <mikestump@comcast.net>
16860 * config/arm/arm.c (arm_block_move_unaligned_straight):
16861 Emit normal move instead of unaligned load when source or destination
16862 are appropriately aligned.
16864 2015-08-17 Richard Biener <rguenther@suse.de>
16865 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
16867 PR middle-end/16107
16868 * match.pd (div (coss (op @0) : New simplifier.
16870 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
16872 PR rtl-optimization/64164
16874 PR middle-end/66983
16875 PR rtl-optimization/67000
16876 PR middle-end/67034
16877 PR middle-end/67035
16878 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
16879 * tree-ssa-copyrename.c: Removed.
16880 * opts.c (default_options_table): Drop -ftree-copyrename. Add
16881 -ftree-coalesce-vars.
16882 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
16883 * common.opt (ftree-copyrename): Ignore.
16884 (ftree-coalesce-inlined-vars): Likewise.
16885 * doc/invoke.texi: Remove the ignored options above.
16886 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
16887 * tree-ssa-coalesce.h: ... here.
16888 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
16889 headers required by it.
16890 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
16891 across variables when flag_tree_coalesce_vars. Check register
16892 use and promoted modes to allow coalescing. Do not coalesce
16893 maybe-byref parms with SSA_NAMEs of other variables, or
16894 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
16895 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
16896 with its member functions to tree-ssa-coalesce.c.
16897 (var_map_base_init): Likewise. Renamed to
16898 compute_samebase_partition_bases.
16899 (partition_view_normal): Drop want_bases parameter.
16900 (partition_view_bitmap): Likewise.
16901 * tree-ssa-live.h: Adjust declarations.
16902 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
16903 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
16904 default defs at the entry point.
16905 (dump_part_var_map): New.
16906 (compute_optimized_partition_bases): New, called by...
16907 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
16908 of compute_samebase_partition_bases. Adjust.
16909 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
16910 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
16911 (ssa_default_def_partition): New.
16912 (get_rtl_for_parm_ssa_default_def): New.
16913 (align_local_variable, add_stack_var): Support anonymous SSA
16915 (defer_stack_allocation): Likewise. Declare earlier.
16916 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
16917 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
16918 Do no record deferred-allocation marker in
16919 SA.partition_to_pseudo.
16920 (expand_stack_vars): Adjust check for the marker in it.
16921 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
16922 redundant MEM attr setting.
16923 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
16925 (expand_one_stack_var): ... this. New wrapper to check and
16926 skip already expanded SSA partitions.
16927 (record_alignment_for_reg_var): New, factored out of...
16928 (expand_one_var): ... this.
16929 (expand_one_ssa_partition): New.
16930 (adjust_one_expanded_partition_var): New.
16931 (expand_one_register_var): Check and skip already expanded SSA
16933 (expand_used_vars): Don't create DECLs for anonymous SSA
16934 names. Expand all SSA partitions, then adjust all SSA names.
16935 (pass::execute): Replace the loops that set
16936 SA.partition_to_pseudo from partition leaders and cleared
16937 DECL_RTL for multi-location variables, and that which used to
16938 rename vars and set attrs, with one that clears DECL_RTL and
16939 checks that PARMs and RESULTs default_defs match DECL_RTL.
16940 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
16941 * emit-rtl.c: Include stor-layout.h.
16942 (set_reg_attrs_for_parm): Handle NULL decl.
16943 (set_reg_attrs_for_decl_rtl): Take mode from expression if
16945 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
16946 rather than its possibly-NULL DECL.
16947 * explow.c (promote_ssa_mode): New.
16948 * explow.h (promote_ssa_mode): Declare.
16949 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
16950 (read_complex_part): Export.
16951 * expr.h (read_complex_part): Declare.
16952 * cfgexpand.h (parm_maybe_byref_p): Declare.
16953 * function.c: Include cfgexpand.h.
16954 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
16955 (use_register_for_parm_decl): Wrapper for the above to
16956 special-case the result_ptr.
16957 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
16958 (split_complex_args): Take assign_parm_data_all argument.
16959 Pass it to rtl_for_parm. Set up rtl and context for split
16960 args. Reset complex parm before fetching its default decl
16962 (assign_parms_unsplit_complex): Use the default-def complex
16963 parm rtl if it matches the components.
16964 (assign_parms_augmented_arg_list): Adjust.
16965 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
16966 multiple locations. Recognize split complex args.
16967 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
16968 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
16969 (assign_parm_setup_block): Prefer SSA-assigned location, and
16970 fill in its address if the memory location of a maybe-byref
16971 parm was not assigned by cfgexpand.
16972 (assign_parm_setup_reg): Likewise. Adjust its mode as
16973 needed. Use entry_parm for equiv if stack_parm is NULL. Make
16974 sure passed_pointer parms don't need conversion. Copy address
16975 or value as needed.
16976 (assign_parm_setup_stack): Prefer SSA-assigned location.
16977 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
16978 rtl before testing for pointer bounds. Special-case result_ptr.
16979 (expand_function_start): Maybe reset DECL_RTL of result.
16980 Prefer SSA-assigned location for result and static chain.
16981 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
16982 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
16983 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
16984 anonymous SSA names. Use promote_ssa_mode.
16985 (get_temp_reg): Likewise.
16986 (remove_ssa_form): Adjust.
16987 * stor-layout.c (layout_decl): Don't set mem attributes of
16989 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
16990 and get its reg_usage for reg invalidation.
16991 (compute_bb_dataflow): Pass it insn.
16992 (emit_notes_in_bb): Likewise.
16994 2015-08-14 Marek Polacek <polacek@redhat.com>
16996 * tree-core.h (tree_base): Fix typo.
16998 2015-08-14 Marek Polacek <polacek@redhat.com>
17000 PR middle-end/67133
17001 * gimple.c (infer_nonnull_range_by_attribute): Check that the
17002 nonnull argument position is not outside function arguments.
17004 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
17007 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
17008 'lconst_atomic' with 'const_atomic'.
17009 (atomic_fetch_<optab><mode>): Likewise.
17010 (atomic_<optab>_fetch<mode>): Likewise.
17011 * config/aarch64/iterators.md (lconst-atomic): Move below
17013 (const_atomic): New.
17015 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
17016 Bernd Schmidt <bernds@codesourcery.com>
17018 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
17020 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
17021 (DWARF2_DEBUGGING_INFO): Don't define.
17022 * debug.h (dwarf2_lineno_debug_hooks): Declare.
17023 * toplev.c (process_options): Add a case for it.
17024 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
17025 (dwarf2out_init): Skip most initializations if
17026 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
17028 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
17029 DWARF2_LINENO_DEBUGGING_INFO.
17030 * opts.c (set_debug_level): Likewise.
17032 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
17034 * config/arm/types.md (is_neon_type): Add missing types.
17036 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
17038 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
17040 * config/i386/i386.c (PTA_SKYLAKE): New macros.
17041 (processor_alias_table): Add skylake description.
17042 (enum processor_model): Add skylake processor.
17043 (arch_names_table): Add skylake record.
17044 * doc/invoke.texi: Add skylake item.
17046 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
17048 * ira-int.h: Include recog.h.
17049 * ira-build.c: Don't include recog.h.
17050 * ira-color.c: Likewise.
17051 * ira-conflicts.c: Likewise.
17052 * ira-costs.c: Likewise.
17053 * ira-emit.c: Likewise.
17054 * ira-lives.c: Likewise.
17056 * sched-deps.c: Likewise.
17057 * sel-sched.c: Likewise.
17058 * target-globals.c: Likewise.
17060 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
17063 * reload1.c (elimination_costs_in_insn): Make it obvious to the
17064 compiler that the n_dups and n_operands loop bounds are invariant.
17066 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17068 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
17069 expressions in A and B.
17071 2015-08-13 Richard Biener <rguenther@suse.de>
17073 * tree.c (nonnull_arg_p): Move from ...
17074 * tree-vrp.c (nonnull_arg_p): ... here.
17075 * tree.h (nonnull_arg_p): Declare.
17076 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
17077 here, register ptr != 0 for nonnull_arg_p pointer arguments.
17078 Properly initialize static chain and by-reference result pointer.
17079 (run_scc_vn): Adjust.
17081 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17083 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
17086 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17088 * config/aarch64/aarch64-protos.h
17089 (aarch64_gen_atomic_cas): Declare.
17090 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
17091 Choose appropriate instruction pattern for the target.
17092 (aarch64_gen_atomic_cas): New.
17093 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
17094 (atomic_compare_and_swap<mode>_1): Rename to
17095 aarch64_compare_and_swap<mode>. Fix some indentation.
17096 (aarch64_compare_and_swap<mode>_lse): New.
17097 (aarch64_atomic_cas<mode>): New.
17099 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
17101 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
17104 2015-08-13 Richard Biener <rguenther@suse.de>
17106 PR tree-optimization/67191
17107 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
17108 assert we value-numbered last stmts operand because it can validly
17109 trigger for unreachable code.
17111 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17113 PR rtl-optimization/67103
17114 * ifcvt.c (noce_try_store_flag_constants): Move
17115 x = (-(test != 0) & (b - a)) + a transformation to...
17116 (noce_try_cmove): ... Here. Try it if normal conditional
17119 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
17121 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
17123 * config/mips/mips.md (processor): Remove w32 and w64.
17125 2015-08-13 Richard Biener <rguenther@suse.de>
17127 PR tree-optimization/66502
17128 PR tree-optimization/67167
17129 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
17130 backedge arguments.
17131 (vn_phi_lookup): Adjust.
17132 (vn_phi_insert): Likewise.
17133 (visit_phi): Prefer to value-number to another PHI node
17134 over value-numbering to a PHI argument.
17135 (init_scc_vn): Mark DFS back edges.
17137 2015-08-13 Richard Biener <rguenther@suse.de>
17139 * gimple.h (gcall::code_): New constant static member.
17140 (gcond::code_): Likewise.
17141 * gimple.c (gcall::code_): Define.
17142 (gcond::code_): Likewise.
17143 (is_a_helper <const gcond *>): Add.
17144 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
17145 and forward to a new gcall overload with less checking and a
17146 cheaper way to access the operand.
17147 (gimple_call_lhs_ptr): Likewise.
17148 (gimple_call_set_lhs): Likewise.
17149 (gimple_call_internal_p): Likewise.
17150 (gimple_call_with_bounds_p): Likewise.
17151 (gimple_call_set_with_bounds): Likewise.
17152 (gimple_call_internal_fn): Likewise.
17153 (gimple_call_set_ctrl_altering): Likewise.
17154 (gimple_call_ctrl_altering_p): Likewise.
17155 (gimple_call_fntype): Likewise.
17156 (gimple_call_fn): Likewise.
17157 (gimple_call_fn_ptr): Likewise.
17158 (gimple_call_set_fndecl): Likewise.
17159 (gimple_call_fndecl): Likewise.
17160 (gimple_call_chain): Likewise.
17161 (gimple_call_num_args): Likewise.
17162 (gimple_call_arg): Likewise.
17163 (gimple_call_arg_ptr): Likewise.
17164 (gimple_call_set_arg): Likewise.
17165 (gimple_call_noreturn_p): Likewise.
17166 (gimple_cond_code): Likewise.
17167 (gimple_cond_lhs): Likewise.
17168 (gimple_cond_rhs): Likewise.
17169 (gimple_has_lhs): Reduce checking.
17171 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17173 PR middle-end/25529
17174 * match.pd (div (mult @0 @1) @1) : New simplifier.
17176 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
17179 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
17180 predicate to allow construction of vector constants using the
17181 VSLDOI vector shift instruction.
17183 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
17186 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
17187 the number of bytes to be shifted left and filled in with either
17188 all zero or all one bits.
17189 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
17191 (output_vec_const_move): On power8, generate XXLORC to generate
17192 a vector constant with all 1's. Do a split if we need to use a
17193 VSLDOI instruction.
17195 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
17196 properly test for the MSB.
17198 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
17199 vector constants that can be created with VSLDOI.
17201 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17204 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17205 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17206 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17207 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17208 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17209 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17210 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17211 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17212 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17214 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
17216 * config/xtensa/constraints.md (define_constraint "Y"): New
17218 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
17219 * config/xtensa/linux.h (ASM_SPEC): Likewise.
17220 * config/xtensa/predicates.md (move_operand): Match constants
17221 and symbols in the presence of TARGET_AUTO_LITPOOLS.
17222 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
17223 immediate references to TLS data.
17224 (xtensa_emit_move_sequence): Don't force constants to memory in
17225 the presence of TARGET_AUTO_LITPOOLS.
17226 (print_operand): Add 'y' format, same as default, but capable of
17227 printing SF mode constants as well.
17228 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
17229 (movsf_internal): Add movi pattern that loads literal.
17230 (movsf, movdf): Don't force constants to memory in the presence
17231 of TARGET_AUTO_LITPOOLS.
17232 (movdf_internal): Add 'Y' constraint.
17233 * config/xtensa/xtensa.opt (mauto-litpools): New option.
17234 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
17236 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17238 * config/arm/arm-fpus.def: Replace booleans with feature flags.
17240 * config/arm/arm.c (ARM_FPU): Update macro.
17241 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
17242 (TARGET_FP16): Likewise.
17243 (TARGET_CRYPTO): Likewise.
17244 (TARGET_NEON): Likewise.
17245 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
17248 2015-08-12 Tom de Vries <tom@codesourcery.com>
17252 * doc/install.texi: Remove --with_host_libstdcxx item. Update
17253 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
17254 accordingly. Mention default for --with-stage1-ldflags.
17256 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
17258 * config/arm/arm.h (arm_fpu_feature_set): New.
17259 (ARM_FPU_FSET_HAS): New.
17260 (FPU_FL_NONE): New.
17261 (FPU_FL_NEON): New.
17262 (FPU_FL_FP16): New.
17263 (FPU_FL_CRYPTO): New.
17265 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17267 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
17268 after -mcmodel=large -fPIC sorry.
17270 2015-08-12 Richard Biener <rguenther@suse.de>
17272 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
17273 comparison operand order and commutative ternary op operand order.
17274 (sccvn_dom_walker::cond_stack): New state to track temporary
17276 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
17278 (sccvn_dom_walker::record_cond): Add a single temporary conditional
17280 (sccvn_dom_walker::record_conds): Add a temporary conditional
17281 expressions and all related expressions also true/false.
17282 (sccvn_dom_walker::before_dom_children): Record temporary
17283 expressions based on the controlling condition of a single
17284 predecessor. When trying to simplify a conditional statement
17285 lookup expressions we might have inserted earlier.
17287 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
17290 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
17291 to ARM core registers.
17293 2015-08-12 Nathan Sidwell <nathan@acm.org>
17295 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
17296 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
17298 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
17300 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
17301 line with comments.
17302 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
17304 2015-08-12 Richard Biener <rguenther@suse.de>
17306 * gimple.h (remove_pointer): New trait.
17307 (GIMPLE_CHECK2): New inline template function.
17308 (gassign::code_): New constant static member.
17309 (is_a_helper<const gassign *>): Add.
17310 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
17311 and forward to a new gassign overload with less checking and a
17312 cheaper way to access the operand.
17313 (gimple_assign_lhs_ptr): Likewise.
17314 (gimple_assign_set_lhs): Likewise.
17315 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
17317 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
17319 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
17321 (gimple_assign_rhs_code): Likewise.
17322 * gimple.c (gassign::code_): Define.
17324 2015-08-12 Richard Biener <rguenther@suse.de>
17326 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
17327 Eliminate edges marked as not executable by SCCVN.
17328 * tree-ssa-sccvn.c: Include gimple-iterator.h.
17329 (cond_dom_walker): Rename to sccvn_dom_walker.
17330 (sccvn_dom_walker::before_dom_children): Value-number defs
17332 (run_scc_vn): Remove loop value-numbering all SSA names.
17333 Drop not visited SSA names to varying.
17335 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
17337 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
17338 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
17339 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
17340 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
17341 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
17342 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
17343 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
17344 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
17345 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
17347 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
17350 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
17351 to enum feature_priority and feature_list.
17352 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
17353 and isa_names_table.
17355 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
17357 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
17358 vect_induction_def.
17360 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
17364 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
17365 account when deciding what was the command-line status.
17367 2015-08-11 Nathan Sidwell <nathan@acm.org>
17369 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
17371 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
17372 we're not the only contributor to target phi.
17374 2015-08-11 Jiong Wang <jiong.wang@arm.com>
17376 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
17379 2015-08-11 Tom de Vries <tom@codesourcery.com>
17381 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
17383 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
17385 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
17387 * config/i386/i386.md (cpu): Remove knl.
17389 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17392 PR middle-end/66332
17393 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
17394 open-coded sequence.
17395 * omp-low.c (oacc_process_reduction_data): Remove handline of
17396 GOMP_DEVICE_HOST_NONSHM.
17398 * lto-streamer-in.c (lto_input_mode_table): Adjust to
17399 GET_MODE_INNER changes.
17401 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
17402 Ilya Verbin <ilya.verbin@intel.com>
17404 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
17406 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
17408 * doc/options.texi (EnabledBy): Document that the argument must be
17410 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
17411 Not enabled by -Wall.
17412 * optc-gen.awk: Give nicer error messages. Detect if the argument
17413 of EnabledBy is not a Common option.
17414 * common.opt (Wnull-dereference): Not enabled by -Wall.
17415 * opt-functions.awk (lang_enabled_by): Nicer error messages.
17417 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
17419 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
17420 model == 0x4f as Broadwell.
17422 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
17424 PR rtl-optimization/67028
17425 * combine.c (simplify_comparison): Fix comment. Rearrange code.
17426 Add test to see if a const_int fits in the new mode.
17428 2015-08-07 DJ Delorie <dj@redhat.com>
17430 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
17432 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
17434 PR rtl-optimization/67029
17435 * ira-color.c: Include "recog.h" before including "ira-int.h".
17436 * target-globals.c: Likewise.
17437 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
17438 adds an alternative_mask argument and use it instead of
17439 preferred_alternatives.
17440 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
17441 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
17442 * sched-deps.c: Include "ira-int.h" after including "ira.h".
17443 (sched_analyze_insn): Update call to
17444 ira_implicitly_set_insn_hard_regs.
17445 * sel-sched.c: Include "ira-int.h" after including "ira.h".
17446 (implicit_clobber_conflict_p): Update call to
17447 ira_implicitly_set_insn_hard_regs.
17449 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17451 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
17453 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
17456 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
17457 currently_expanding_to_rtl is set.
17459 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
17461 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
17462 * configure: Regenerate.
17464 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17465 Jiong Wang <jiong.wang@arm.com>
17467 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
17468 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
17469 (REG_CLASS_NAMES): Likewise.
17470 (REG_CLASS_CONTENTS): Likewise.
17471 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
17472 (aarch64_register_move_cost): Likewise.
17473 (aarch64_load_symref_appropriately): Invoke the new added pattern if
17475 * config/aarch64/constraints.md (Uc0): New constraint.
17477 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17479 * config/aarch64/constraints.md (Usf): Add the test of
17480 aarch64_is_noplt_call_p.
17482 2015-08-06 Jiong Wang <jiong.wang@arm.com>
17484 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
17486 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
17487 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
17488 (call_symbol): Likewise.
17490 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
17492 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
17493 for vectorizing multiplication patterns.
17494 * tree-vectorizer.h: Adjust the number of patterns.
17496 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
17498 * config/i386/sse.md (*vec_concatv2df): Declare added
17499 alternatives as sselog type.
17501 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17503 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
17506 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17508 * config/s390/s390.c (s390_expand_tbegin): Expand either
17509 tbegin_1_z13 or tbegin_1 depending on VX flag.
17510 * config/s390/s390.md ("tbegin_1_z13"): New expander.
17512 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17514 * config/s390/s390.opt: Clarify description for -mzvector
17515 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
17518 2015-08-06 Richard Biener <rguenther@suse.de>
17520 * gimple.h (gimple_call_set_fn): Access op member directly.
17521 (gimple_call_chain_ptr): Likewise.
17522 (gimple_call_set_chain): Likewise.
17523 (gimple_cond_lhs_ptr): Likewise.
17524 (gimple_cond_set_lhs): Likewise.
17525 (gimple_cond_rhs_ptr): Likewise.
17526 (gimple_cond_set_rhs): Likewise.
17527 (gimple_cond_true_label): Likewise.
17528 (gimple_cond_set_true_label): Likewise.
17529 (gimple_cond_set_false_label): Likewise.
17530 (gimple_cond_false_label): Likewise.
17531 (gimple_label_label): Likewise.
17532 (gimple_label_set_label): Likewise.
17533 (gimple_goto_set_dest): Likewise.
17534 (gimple_asm_input_op): Likewise.
17535 (gimple_asm_input_op_ptr): Likewise.
17536 (gimple_asm_set_input_op): Likewise.
17537 (gimple_asm_output_op): Likewise.
17538 (gimple_asm_output_op_ptr): Likewise.
17539 (gimple_asm_set_output_op): Likewise.
17540 (gimple_asm_clobber_op): Likewise.
17541 (gimple_asm_set_clobber_op): Likewise.
17542 (gimple_asm_label_op): Likewise.
17543 (gimple_asm_set_label_op): Likewise.
17544 (gimple_switch_index): Likewise.
17545 (gimple_switch_index_ptr): Likewise.
17546 (gimple_return_retval_ptr): Likewise.
17547 (gimple_return_retval): Likewise.
17548 (gimple_return_set_retval): Likewise.
17549 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
17550 (gimple_switch_label): Likewise.
17551 (gimple_switch_set_label): Likewise.
17553 2015-08-06 Richard Biener <rguenther@suse.de>
17555 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
17556 bool comparison canonicalization and restrict to integers.
17558 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
17560 * coretypes.h (enum symbol_visibility): Relocate here.
17561 * flag-types.h (enum symbol_visibility): Remove.
17562 * tree-core.h (enum symbol_visibility): Remove.
17564 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
17567 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
17568 for no_split_stack function attribute along with
17570 (rs6000_expand_split_stack_prologue): Likewise.
17572 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
17573 Jeff Law <law@redhat.com>
17576 * doc/invoke.texi (Wnull-dereference): New.
17577 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
17578 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
17579 Warn for potential NULL dereferences.
17580 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
17581 * ubsan.c (instrument_nonnull_arg): Call
17582 infer_nonnull_range_by_attribute.
17583 (instrument_nonnull_return): Likewise.
17584 * common.opt (Wnull-dereference); New.
17585 * gimple.c (infer_nonnull_range): Remove bool arguments.
17586 (infer_nonnull_range_by_dereference): New.
17587 (infer_nonnull_range_by_attribute): New.
17588 * gimple.h: Update declarations.
17590 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17592 * gensupport.c (sequence_num): Replace with...
17593 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
17594 ...these new variables.
17595 (init_rtx_reader_args_cb): Update accordingly.
17596 (get_num_code_insns): Likewise.
17597 (read_md_rtx): Rework to use a while loop and get_c_test.
17598 Use the new counters. Remove redundant DEFINE_SUBST case.
17599 * genoutput.c (gen_split): Delete.
17600 (main): Don't call it.
17602 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17604 * gensupport.h (get_c_test): Declare.
17605 * gensupport.c (get_c_test): New function.
17606 * genconditions.c (main): Use it.
17607 * genrecog.c (validate_pattern): Likewise.
17608 (match_pattern_1): Likewise. Remove c_test argument.
17609 (match_pattern): Update accordingly and remove c_test argument.
17610 (main): Update accordingly.
17612 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17614 * gensupport.h (get_num_insn_codes): Declare.
17615 * gensupport.c (get_num_insn_codes): New function.
17616 * genattrtab.c (optimize_attrs): Rename max_insn_code to
17618 (main): Likewise. Use get_num_insn_codes.
17619 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
17621 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17623 PR middle-end/66311
17624 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
17625 is zero- rather than sign-extended.
17627 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
17629 * target-insns.def (can_extend): Delete.
17631 2015-08-05 Richard Biener <rguenther@suse.de>
17633 PR tree-optimization/67121
17634 * tree-if-conv.c (combine_blocks): Clear range-info produced
17635 by stmts no longer executed conditionally.
17637 2015-08-05 Nick Clifton <nickc@redhat.com>
17639 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
17640 to allow identical far pointers to remain.
17642 2015-08-05 Richard Biener <rguenther@suse.de>
17644 PR middle-end/67120
17645 * match.pd: Compare address bases with == if they are decls
17646 or SSA names, not operand_equal_p. Otherwise fail.
17648 2015-08-05 Richard Biener <rguenther@suse.de>
17650 PR tree-optimization/67055
17651 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
17654 * g++.dg/torture/pr67055.C: New testcase.
17656 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17658 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
17660 (define_attr "enabled"): Handle avx521vl and noavx512vl.
17661 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
17662 AVX-512 alternative out of SSE.
17663 (define_insn "*vec_concatv2df"): Ditto.
17665 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
17667 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
17668 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
17669 CODE_FOR_avx_ptestv4di.
17670 * config/i386/sse.md (define_mode_iterator V_AVX): New.
17671 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
17672 (define_insn "avx_ptest256"): Merge this ...
17673 (define_insn "sse4_1_ptest"): And this ...
17674 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
17676 2015-08-05 Richard Biener <rguenther@suse.de>
17678 PR tree-optimization/67109
17679 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
17680 against too big groups. Print whether this is a load or store
17681 group. Rename from ...
17682 (vect_analyze_group_access): ... this which is now a wrapper
17683 dissolving an invalid group.
17684 (vect_analyze_data_ref_accesses): Print whether this is a load
17687 2015-08-05 Richard Biener <rguenther@suse.de>
17689 PR middle-end/67107
17690 * match.pd: Guard const_binop result checking against NULL_TREE
17693 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
17695 * cse.c (cse_insn): Restoring old behaviour for src_eqv
17696 when dest and value in the REG_EQUAL are same and dest
17697 is STRICT_LOW_PART.
17699 2015-08-04 Anatoly Sokolov <aesok@post.ru>
17701 * config/moxie/moxie.h (PRINT_OPERAND,
17702 PRINT_OPERAND_ADDRESS): Remove macros.
17703 * config/moxie/moxie-protos.h (moxie_print_operand,
17704 moxie_print_operand_address): Remove declaration.
17705 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
17706 TARGET_PRINT_OPERAND_ADDRESS): Define.
17707 (moxie_print_operand, moxie_print_operand_address): Make static.
17709 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
17712 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
17713 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
17715 2015-08-04 Richard Biener <rguenther@suse.de>
17717 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
17719 (dt_operand::gen_gimple_expr): Adjust.
17721 2015-08-04 Richard Biener <rguenther@suse.de>
17723 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
17724 bool compares on RHS.
17725 * match.pd: Add X ==/!= !X is false/true pattern.
17727 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
17729 * config/aarch64/aarch64.c: Change inner loop statement cost
17730 to be consistent with other targets.
17732 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
17734 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
17737 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
17739 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
17740 (machine_function): Remove pseudos field.
17742 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17744 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17745 Exit early and use target_option_current_node if processing current
17748 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17750 * doc/extend.texi (AArch64 Function Attributes): New node.
17751 (AArch64 Pragmas): Likewise.
17753 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17755 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
17756 Initialize simd builtins if TARGET_SIMD.
17757 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
17758 Make sure that the builtins are initialized only once no matter how
17759 many times the function is called.
17760 (aarch64_init_builtins): Unconditionally initialize crc builtins.
17761 (aarch64_relayout_simd_param): New function.
17762 (aarch64_simd_expand_args): Use above during argument expansion.
17763 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
17764 simd builtins if TARGET_SIMD.
17765 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
17767 (aarch64_relayout_simd_types): Likewise.
17769 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17771 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
17772 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
17773 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
17774 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17776 (aarch64_reset_previous_fndecl): New function.
17777 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
17779 * config/aarch64/aarch64-c.c: New file.
17780 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
17781 Push and pop options at beginning and end. Remove ifdef
17782 __ARM_FEATURE_CRC32.
17783 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
17784 Add pragma +nothing+simd and +nothing+crypto where appropriate.
17785 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
17786 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
17788 (aarch64_register_pragmas): Likewise.
17789 (aarch64_reset_previous_fndecl): Likewise.
17790 (aarch64_process_target_attr): Likewise.
17791 (aarch64_override_options_internal): Likewise.
17793 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17795 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
17797 (aarch64_can_inline_p): Likewise.
17798 (TARGET_CAN_INLINE_P): Define.
17800 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17802 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
17803 Remove static. Handle OPT_mgeneral_regs_only,
17804 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
17805 OPT_momit_leaf_frame_pointer.
17806 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
17807 (aarch64_attr_opt_type): New enum.
17808 (aarch64_attribute_info): New struct.
17809 (aarch64_handle_attr_arch): New function.
17810 (aarch64_handle_attr_cpu): Likewise.
17811 (aarch64_handle_attr_tune): Likewise.
17812 (aarch64_handle_attr_isa_flags): Likewise.
17813 (aarch64_attributes): New table.
17814 (aarch64_process_one_target_attr): New function.
17815 (num_occurences_in_str): Likewise.
17816 (aarch64_process_target_attr): Likewise.
17817 (aarch64_option_valid_attribute_p): Likewise.
17818 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
17819 * config/aarch64/aarch64-protos.h: Include input.h
17820 (aarch64_handle_option): Declare prototype.
17822 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17824 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
17825 * config/aarch64/aarch64.c: Include target-globals.h
17826 (aarch64_previous_fndecl): New variable.
17827 (aarch64_set_current_function): New function.
17828 (TARGET_SET_CURRENT_FUNCTION): Define.
17830 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17832 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
17833 (explicit_arch): Likewise.
17834 (x_aarch64_isa_flags): Likewise.
17835 (mgeneral-regs-only): Mark as Save.
17836 (mfix-cortex-a53-835769): Likewise.
17837 (mcmodel=): Likewise.
17838 (mstrict-align): Likewise.
17839 (momit-leaf-frame-pointer): Likewise.
17840 (mtls-dialect): Likewise.
17841 (master=): Likewise.
17842 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
17843 (aarch64_isa_flags): Remove extern declaration.
17844 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
17845 to indicate success or failure.
17846 (aarch64_validate_march): Likewise.
17847 (aarch64_validate_mtune): Likewise.
17848 (aarch64_isa_flags): Delete.
17849 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
17850 instead of aarch64_isa_flags.
17851 (aarch64_get_tune_cpu): New function.
17852 (aarch64_get_arch): Likewise.
17853 (aarch64_override_options): Use above and set up explicit_tune_core
17855 (aarch64_print_extension): Move earlier in file. Add isa_flags
17856 argument and use that instead of the global aarch64_isa_flags.
17857 (aarch64_option_save): New function.
17858 (aarch64_option_restore): Likewise.
17859 (aarch64_option_print): Likewise.
17860 (aarch64_declare_function_name): Likewise.
17861 (aarch64_start_file): Delete.
17862 (TARGET_ASM_FILE_START): Do not define.
17863 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
17864 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
17867 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17869 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
17870 flag_omit_leaf_frame_pointer to 2.
17872 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17874 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
17876 (TARGET_FIX_ERR_A53_835769): New macro.
17877 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
17878 handling of opts->x_aarch64_fix_a53_err835769.
17879 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
17880 than aarch64_fix_a53_err835769.
17881 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
17882 * config/aarch64/aarch64-linux.h: Likewise.
17884 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
17886 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
17887 ix86_expand_int_movcc as boolean.
17889 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17891 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
17892 (aarch64_cpu_string): Likewise.
17893 (aarch64_tune_string): Likewise.
17894 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
17895 (aarch64_parse_extension): Return aarch64_parse_opt_result.
17896 Add extra argument to put result into.
17897 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
17898 (aarch64_parse_cpu): Add arguments to put results into. Return
17899 aarch64_parse_opt_result.
17900 (aarch64_parse_tune): Likewise.
17901 (aarch64_override_options_after_change_1): New function.
17902 (aarch64_override_options_internal): New function.
17903 (aarch64_validate_mcpu): Likewise.
17904 (aarch64_validate_march): Likewise.
17905 (aarch64_validate_mtune): Likewise.
17906 (aarch64_override_options): Update to reflect above changes.
17907 Move some logic into aarch64_override_options_internal.
17908 Initialize target_option_default_node and target_option_current_node.
17909 (aarch64_override_options_after_change): Move logic into
17910 aarch64_override_options_after_change_1 and call it with global_options.
17911 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
17912 flag values from that.
17914 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17916 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
17917 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
17918 * config/aarch64/aarch64.c (struct processor): Add arch field.
17919 (all_architectures): Handle above, move above all_cores.
17920 (all_cores): Handle above.
17921 (aarch64_parse_arch): Handle above changes.
17922 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
17923 above. Update comments.
17924 (armv8.1-a): Likewise.
17925 * config/aarch64/aarch64-cores.def: Update according to above.
17926 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
17927 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
17928 aarch64_arch_driver_info.
17930 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17932 * config/aarch64/aarch64.c (struct processor): Add ident field.
17933 Rename core sched_core.
17934 (all_cores): Handle above changes.
17935 (all_architectures): Likewise.
17936 (aarch64_parse_arch): Likewise.
17937 (aarch64_override_options): Likewise.
17939 2015-08-04 Richard Biener <rguenther@suse.de>
17941 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
17942 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
17943 comparisons embedded in [VEC_]COND_EXPRs.
17945 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
17947 * tree-if-conv.c: Fix various typos in comments.
17948 * tree-vect-stmts.c: Likewise.
17950 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
17952 PR tree-optimization/67043
17953 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
17954 preheader after hoisting invariant in it.
17955 (find_defs): Force recomputation of all luids.
17957 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
17959 * config/rs6000/htm.md (tabort.): Restrict the source operand to
17960 using a base register.
17962 2015-08-03 David Malcolm <dmalcolm@redhat.com>
17964 * main.c (main): Pass in NULL for toplev's external_timer.
17965 * timevar.c: Include coretypes.h.
17966 (class timer::named_items): New.
17967 (timer::named_items::named_items): New.
17968 (timer::named_items::~named_items): New.
17969 (timer::named_items::push): New.
17970 (timer::named_items::pop): New.
17971 (timer::named_items::print): New.
17972 (timer::timer): Initialize field "m_jit_client_items".
17973 (timer::~timer): New.
17974 (timer::push): Move bulk of implementation to...
17975 (timer::push_internal): ...here. New function.
17976 (timer::pop): Move bulk of implementation to...
17977 (timer::pop_internal): ...here. New function.
17978 (timer::push_client_item): New.
17979 (timer::pop_client_item): New.
17980 (timer::print_row): New function, taken from timer::print.
17981 (timer::print): Print "GCC items" header if we also have client
17982 items. Move row-printing to timer::print_row. Print any client
17984 (timer::get_topmost_item_name): New method.
17985 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
17986 (TV_JIT_CLIENT_CODE): New.
17987 * timevar.h (timer::push_client_item): New declaration.
17988 (timer::pop_client_item): New declaration.
17989 (timer::get_topmost_item_name): New method.
17990 (timer::push_internal): New declaration.
17991 (timer::pop_internal): New declaration.
17992 (timer::print_row): New declaration.
17993 (timer::named_items): New declaration.
17994 (timer::m_jit_client_items): New field.
17995 (timer): Add friend class named_items.
17996 (auto_timevar::auto_timevar): Add timer param.
17997 (auto_timevar::~auto_timevar): Use field "m_timer".
17998 (auto_timevar::m_timer): New field.
17999 * toplev.c (initialize_rtl): Add g_timer as param when
18000 constructing auto_timevar instance.
18001 (toplev::toplev): Add "external_timer" param, and use it to
18002 initialize the "g_timer" global if non-NULL.
18003 (toplev::~toplev): If this created "g_timer", delete it.
18004 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
18005 with "external_timer" timer *.
18007 2015-08-03 Alexander Basov <coohpt@gmail.com>
18009 PR middle-end/64744
18010 PR middle-end/48470
18011 PR middle-end/43404
18012 * cfgexpand.c (expand_one_var): Add check if stack is going to
18013 be used in naked function.
18014 * expr.c (expand_expr_addr_expr_1): Remove excess checking
18015 whether expression should not reside in MEM.
18016 * function.c (use_register_for_decl): Do not use registers for
18017 non-register things (volatile, float, BLKMode) in naked functions.
18019 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
18022 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
18023 Adjust splits to match new pattern.
18025 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
18027 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
18030 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
18031 point in VSX registers.
18033 * config/rs6000/constraints.md (wb constraint): Document unused
18035 (we constraint): Likewise.
18036 (wo constraint): Likewise.
18037 (wp constraint): New constraint for IEEE 128-bit floating point in
18039 (wq constraint): Likewise.
18041 * config/rs6000/predicates.md (easy_fp_constant): Add support for
18042 IEEE 128-bit floating point in VSX registers.
18043 (easy_scalar_constant): Likewise.
18045 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
18046 constraints (wp, wq) for IEEE 128-bit floating point in VSX
18048 (rs6000_init_hard_regno_mode_ok): Likewise.
18050 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
18051 floating point in VSX registers.
18054 (VSX_M2): Likewise.
18060 (vsx_le_permute_<mode>): Add support to properly swap bytes for
18061 IEEE 128-bit floating point in VSX registers on little endian.
18062 (vsx_le_undo_permute_<mode>): Likewise.
18063 (vsx_le_perm_load_<mode>): Likewise.
18064 (vsx_le_perm_store_<mode>): Likewise.
18065 (splitters for IEEE 128-bit fp moves): Likewise.
18067 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
18070 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
18071 floating point in VSX registers.
18074 * doc/md.text (Machine Constraints): Document wp and wq
18075 constraints on PowerPC.
18077 2015-08-03 Jeff Law <law@redhat.com>
18079 PR middle-end/66314
18080 PR gcov-profile/66899
18081 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
18082 iterate over the jump threading paths when an element in the
18083 jump threading paths array is eliminated.
18085 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
18087 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
18089 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
18091 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
18092 is_use_properly_guarded the variable def_preds. Free its
18093 contents before returning.
18094 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
18095 (is_use_properly_guarded): Replace local variable def_preds with
18096 a parameter. Adjust accordingly. Only update *def_preds if it's
18099 2015-08-03 Richard Biener <rguenther@suse.de>
18101 * genmatch.c (simplify::for_subst_vec): New member.
18102 (binary_ok): New helper for for lowering.
18103 (lower_for): Delay substituting operators into result expressions
18104 if we can merge the results eventually again.
18105 (capture_info::walk_result): Adjust for user_id appearing as
18106 result expression operator.
18107 (expr::gen_transform): Likewise.
18108 (dt_simplify::gen_1): Likewise.
18109 (dt_simplify::gen): Pass not substituted operators to tail
18110 functions or initialize local variable with it.
18111 (decision_tree::gen): Adjust function signature.
18112 * match.pd: Fix tests against global code and add default
18113 cases to switch stmts.
18115 2015-08-03 Richard Biener <rguenther@suse.de>
18117 * genmatch.c (dt_simplify::gen): Create captures array
18118 with an initializer.
18120 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
18122 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
18123 the host compiler is affected by placement new aliasing bug.
18124 * configure: Regenerate.
18125 * Makefile.in (ALIASING_FLAGS): New variable.
18126 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
18128 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
18131 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
18132 (negmulsf3_vfp): Likewise.
18133 (muldf3negdf_vfp): Disable for -frounding-math.
18134 (mulsf3negsf_vfp): Likewise.
18135 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
18136 fix MULT cost with -frounding-math.
18138 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18140 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
18141 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
18142 explicit. Prefer to add the flag whenever possible.
18143 (noce_process_if_block): Try noce_try_store_flag_constants before
18146 2015-08-03 Richard Biener <rguenther@suse.de>
18148 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
18149 New hash-map to record equivalent transforms.
18150 (dt_node::analyze): Populate the equivalent transforms hash-map.
18151 (dt_simplify::info): Add reference to hash-map entry.
18152 (dt_simplify::gen): If we have split out a function for the
18153 transform, generate a call to it.
18154 (sinfo_hashmap_traits::hash): New function.
18155 (compare_op): New helper function for ...
18156 (sinfo_hashmap_traits::equal_keys): ... this new function.
18157 (decision_tree::gen): Split out common equivalent transforms
18160 2015-08-03 Richard Biener <rguenther@suse.de>
18162 * gimple-fold.c (fold_gimple_assign): Remove folding of
18163 the comparison in COND_EXPRs.
18165 2015-08-03 Richard Biener <rguenther@suse.de>
18167 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
18168 on the rhs of assignments first simplify the embedded
18171 2015-08-03 Richard Biener <rguenther@suse.de>
18173 PR tree-optimization/66917
18174 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
18176 (DR_VECT_AUX): New macro.
18177 (set_dr_misalignment): Adjust.
18178 (dr_misalignment): Likewise.
18179 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
18180 Compute whether the base is at least element aligned.
18181 * tree-vect-stmts.c (ensure_base_align): Adjust.
18182 (vectorizable_store): If the base is not element aligned
18183 preserve alignment of the original access if misalignment is unknown.
18184 (vectorizable_load): Likewise.
18186 2015-08-02 Martin Sebor <msebor@redhat.com>
18188 * doc/invoke.texi (Wframe-address): Document it.
18189 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
18190 Clarify possible effects of calling the functions with non-zero
18191 arguments and mention -Wframe-address.
18192 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
18194 2015-08-01 Michael Collison <michael.collison@linaro.org
18195 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
18197 * config/arm/arm.md (*arm_smin_cmp): New pattern.
18198 (*arm_umin_cmp): Likewise.
18200 2015-08-01 Caroline Tice <cmtice@google.com>
18203 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
18205 (vtbl_find_mangled_name): New function.
18206 (vtbl_register_mangled_name): New function.
18207 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
18208 mangled name in mangled name vectors.
18209 (find_or_create_vtbl_map_node): Ditto.
18210 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
18211 update recursion_depth on function entry; pass it to every recursive
18212 call; automatically exit if depth > 25 (give up looking at that point).
18213 (verify_bb_vtables): Initialize recursion_depth and pass it to
18214 var_is_used_for_virtual_call_p.
18215 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
18216 global variable decls.
18217 (vtbl_register_mangled_name): New extern function decl.
18219 2015-08-01 Tom de Vries <tom@codesourcery.com>
18221 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
18223 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
18225 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
18226 operation_no_trapping_overflow. Allow non-overflow operations.
18227 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
18230 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
18233 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
18235 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18237 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
18238 Enable for TARGET_32BIT.
18239 (*if_move_neg): Likewise.
18241 2015-07-31 Nick Clifton <nickc@redhat.com>
18243 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
18244 Returns true for __model__.
18245 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
18247 2015-07-31 Alan Modra <amodra@gmail.com>
18250 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
18251 (rs6000_emit_prologue): Set it.
18252 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
18254 2015-07-31 Richard Biener <rguenther@suse.de>
18256 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
18257 -> X == (C1 ^ C2) which is already implemented in match.pd.
18258 Remove redundant dispatching to fold_relational_const.
18259 Move unordered self and NaN compares ...
18260 * match.pd: ... as patterns here. Remove some stray captures
18263 2015-07-31 Petr Murzin <petr.murzin@intel.com>
18265 * config/i386/i386.c
18266 (bdesc_special_args): Convert mask type from signed to unsigned for
18268 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
18269 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
18270 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
18271 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
18272 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
18273 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
18274 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
18275 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
18276 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
18277 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
18278 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
18279 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
18280 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
18281 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
18282 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
18283 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
18284 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
18285 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
18286 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
18287 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
18288 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
18289 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
18290 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
18291 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
18292 * config/i386/i386-builtin-types.def
18293 (V16QI_FTYPE_V16SI): Remove.
18294 (V8DF_FTYPE_V8SI): Ditto.
18295 (V8HI_FTYPE_V8DI): Ditto.
18296 (V8SI_FTYPE_V8DI): Ditto.
18297 (V8SF_FTYPE_V8DF): Ditto.
18298 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
18299 (V16HI_FTYPE_V16SI): Ditto.
18300 (V16SF_FTYPE_V16HI): Ditto.
18301 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
18302 (V16SF_FTYPE_V16SI): Ditto.
18303 (V4DI_FTYPE_V4DI): Ditto.
18304 (V16SI_FTYPE_V16SF): Ditto.
18305 (V16SF_FTYPE_FLOAT): Ditto.
18306 (V8DF_FTYPE_DOUBLE): Ditto.
18307 (V8DI_FTYPE_INT64): Ditto.
18308 (V8DI_FTYPE_V4DI): Ditto.
18309 (V16QI_FTYPE_V8DI): Ditto.
18310 (UINT_FTYPE_V4SF): Ditto.
18311 (UINT64_FTYPE_V4SF): Ditto.
18312 (UINT_FTYPE_V2DF): Ditto.
18313 (UINT64_FTYPE_V2DF): Ditto.
18314 (V16SI_FTYPE_V16SI): Ditto.
18315 (V8DI_FTYPE_V8DI): Ditto.
18316 (V16SI_FTYPE_PV4SI): Ditto.
18317 (V16SF_FTYPE_PV4SF): Ditto.
18318 (V8DI_FTYPE_PV2DI): Ditto.
18319 (V8DF_FTYPE_PV2DF): Ditto.
18320 (V4DI_FTYPE_PV2DI): Ditto.
18321 (V4DF_FTYPE_PV2DF): Ditto.
18322 (V16SI_FTYPE_PV2SI): Ditto.
18323 (V16SF_FTYPE_PV2SF): Ditto.
18324 (V8DI_FTYPE_PV4DI): Ditto.
18325 (V8DF_FTYPE_PV4DF): Ditto.
18326 (V8SF_FTYPE_FLOAT): Ditto.
18327 (V4SF_FTYPE_FLOAT): Ditto.
18328 (V4DF_FTYPE_DOUBLE): Ditto.
18329 (V8SF_FTYPE_PV4SF): Ditto.
18330 (V8SI_FTYPE_PV4SI): Ditto.
18331 (V4SI_FTYPE_PV2SI): Ditto.
18332 (V8SF_FTYPE_PV2SF): Ditto.
18333 (V8SI_FTYPE_PV2SI): Ditto.
18334 (V16SF_FTYPE_PV8SF): Ditto.
18335 (V16SI_FTYPE_PV8SI): Ditto.
18336 (V8DI_FTYPE_V8SF): Ditto.
18337 (V4DI_FTYPE_V4SF): Ditto.
18338 (V2DI_FTYPE_V4SF): Ditto.
18339 (V64QI_FTYPE_QI): Ditto.
18340 (V32HI_FTYPE_HI): Ditto.
18341 (V8UHI_FTYPE_V8UHI): Ditto.
18342 (V16UHI_FTYPE_V16UHI): Ditto.
18343 (V32UHI_FTYPE_V32UHI): Ditto.
18344 (V2UDI_FTYPE_V2UDI): Ditto.
18345 (V4UDI_FTYPE_V4UDI): Ditto.
18346 (V8UDI_FTYPE_V8UDI): Ditto.
18347 (V4USI_FTYPE_V4USI): Ditto.
18348 (V8USI_FTYPE_V8USI): Ditto.
18349 (V16USI_FTYPE_V16USI): Ditto.
18350 (V2DF_FTYPE_V2DF_UINT64): Ditto.
18351 (V2DI_FTYPE_V2DF_V2DF): Ditto.
18352 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
18353 (V8DF_FTYPE_V8DF_V8DI): Ditto.
18354 (V4SF_FTYPE_V4SF_UINT64): Ditto.
18355 (V4SI_FTYPE_V4SF_V4SF): Ditto.
18356 (V16SF_FTYPE_V16SF_V16SI): Ditto.
18357 (V64QI_FTYPE_V32HI_V32HI): Ditto.
18358 (V32HI_FTYPE_V16SI_V16SI): Ditto.
18359 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
18360 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
18361 (V32HI_FTYPE_V64QI_V64QI): Ditto.
18362 (V32HI_FTYPE_V32HI_V32HI): Ditto.
18363 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
18364 (V16SI_FTYPE_V16SI_V4SI): Ditto.
18365 (V16SI_FTYPE_V16SI_V16SI): Ditto.
18366 (V16SI_FTYPE_V32HI_V32HI): Ditto.
18367 (V16SI_FTYPE_V16SI_SI): Ditto.
18368 (V8DI_FTYPE_V8DI_V8DI): Ditto.
18369 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
18370 (V8DI_FTYPE_V16SI_V16SI): Ditto.
18371 (V8DI_FTYPE_V8DI_V2DI): Ditto.
18372 (QI_FTYPE_QI): Ditto.
18373 (SI_FTYPE_SI): Ditto.
18374 (DI_FTYPE_DI): Ditto.
18375 (QI_FTYPE_QI_QI): Ditto.
18376 (QI_FTYPE_QI_INT): Ditto.
18377 (HI_FTYPE_HI_INT): Ditto.
18378 (SI_FTYPE_SI_INT): Ditto.
18379 (DI_FTYPE_DI_INT): Ditto.
18380 (HI_FTYPE_V16QI_V16QI): Ditto.
18381 (SI_FTYPE_V32QI_V32QI): Ditto.
18382 (DI_FTYPE_V64QI_V64QI): Ditto.
18383 (QI_FTYPE_V8HI_V8HI): Ditto.
18384 (HI_FTYPE_V16HI_V16HI): Ditto.
18385 (SI_FTYPE_V32HI_V32HI): Ditto.
18386 (QI_FTYPE_V4SI_V4SI): Ditto.
18387 (QI_FTYPE_V8SI_V8SI): Ditto.
18388 (QI_FTYPE_V2DI_V2DI): Ditto.
18389 (QI_FTYPE_V4DI_V4DI): Ditto.
18390 (QI_FTYPE_V8DI_V8DI): Ditto.
18391 (HI_FTYPE_V16SI_V16SI): Ditto.
18392 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
18393 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
18394 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
18395 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
18396 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
18397 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
18398 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
18399 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
18400 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
18401 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
18402 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
18403 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
18404 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
18405 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
18406 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
18407 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
18408 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
18409 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
18410 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
18411 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
18412 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
18413 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
18414 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
18415 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
18416 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
18417 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
18418 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
18419 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
18420 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
18421 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
18422 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
18423 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
18424 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
18425 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
18426 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
18427 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
18428 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
18429 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
18430 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
18431 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
18432 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
18433 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
18434 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
18435 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
18436 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
18437 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
18438 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
18439 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
18440 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
18441 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
18442 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
18443 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
18444 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
18445 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
18446 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
18447 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
18448 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
18449 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
18450 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
18451 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
18452 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
18453 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
18454 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
18455 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
18456 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
18457 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
18458 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
18459 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
18460 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
18461 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
18462 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
18463 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
18464 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
18465 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
18466 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
18467 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
18468 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
18469 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
18470 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
18471 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
18472 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
18473 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
18474 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
18475 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
18476 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
18477 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
18478 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
18479 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
18480 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
18481 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
18482 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
18483 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
18484 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
18485 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
18486 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
18487 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
18488 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
18489 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
18490 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
18491 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
18492 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
18493 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
18494 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
18495 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
18496 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
18497 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
18498 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
18499 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
18500 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
18501 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
18502 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
18503 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
18504 (HI_FTYPE_HI): Ditto.
18505 (HI_FTYPE_V16QI): Ditto.
18506 (SI_FTYPE_V32QI): Ditto.
18507 (DI_FTYPE_V64QI): Ditto.
18508 (QI_FTYPE_V8HI): Ditto.
18509 (HI_FTYPE_V16HI): Ditto.
18510 (SI_FTYPE_V32HI): Ditto.
18511 (QI_FTYPE_V4SI): Ditto.
18512 (QI_FTYPE_V8SI): Ditto.
18513 (HI_FTYPE_V16SI): Ditto.
18514 (QI_FTYPE_V2DI): Ditto.
18515 (QI_FTYPE_V4DI): Ditto.
18516 (QI_FTYPE_V8DI): Ditto.
18517 (V16QI_FTYPE_HI): Ditto.
18518 (V32QI_FTYPE_SI): Ditto.
18519 (V64QI_FTYPE_DI): Ditto.
18520 (V8HI_FTYPE_QI): Ditto.
18521 (V16HI_FTYPE_HI): Ditto.
18522 (V32HI_FTYPE_SI): Ditto.
18523 (V4SI_FTYPE_QI): Ditto.
18524 (V4SI_FTYPE_HI): Ditto.
18525 (V8SI_FTYPE_QI): Ditto.
18526 (V8SI_FTYPE_HI): Ditto.
18527 (V2DI_FTYPE_QI): Ditto.
18528 (V4DI_FTYPE_QI): Ditto.
18529 (HI_FTYPE_HI_HI): Ditto.
18530 (SI_FTYPE_SI_SI): Ditto.
18531 (DI_FTYPE_DI_DI): Ditto.
18532 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
18533 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
18534 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
18535 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
18536 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
18537 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
18538 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
18539 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
18540 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
18541 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
18542 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
18543 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
18544 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
18545 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
18546 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
18547 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
18548 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
18549 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
18550 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
18551 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
18552 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
18553 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
18554 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
18555 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
18556 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
18557 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
18558 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
18559 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
18560 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
18561 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
18562 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
18563 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
18564 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
18565 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
18566 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
18567 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
18568 (V16SI_FTYPE_HI): Ditto.
18569 (V8DI_FTYPE_QI): Ditto.
18570 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
18571 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
18572 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
18573 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
18574 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
18575 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
18576 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
18577 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
18578 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
18579 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
18580 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
18581 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
18582 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
18583 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
18584 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
18585 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
18586 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
18587 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
18588 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
18589 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
18590 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
18591 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
18592 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
18593 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
18594 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
18595 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
18596 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
18597 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
18598 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
18599 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
18600 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
18601 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
18602 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
18603 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
18604 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
18605 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
18606 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
18607 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
18608 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
18609 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
18610 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
18611 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
18612 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
18613 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
18614 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
18615 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
18616 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
18617 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
18618 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
18619 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
18620 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
18621 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
18622 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
18623 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
18624 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
18625 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
18626 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
18627 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
18628 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
18629 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
18630 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
18631 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
18632 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
18633 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
18634 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
18635 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
18636 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
18637 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
18638 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
18639 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
18640 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
18641 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
18642 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
18643 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
18644 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
18645 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
18646 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
18647 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
18648 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
18649 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
18650 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
18651 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
18652 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
18653 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
18654 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
18655 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
18656 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
18657 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
18658 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
18659 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
18660 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
18661 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
18662 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
18663 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
18664 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
18665 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
18666 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
18667 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
18668 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
18669 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
18670 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
18671 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
18672 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
18673 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
18674 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
18675 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
18676 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
18677 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
18678 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
18679 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
18680 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
18681 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
18682 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
18683 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
18684 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
18685 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
18686 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
18687 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
18688 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
18689 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
18690 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
18691 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
18692 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
18693 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
18694 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
18695 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
18696 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
18697 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
18698 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
18699 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
18700 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
18701 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
18702 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
18703 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
18704 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
18705 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
18706 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
18707 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
18708 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
18709 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
18710 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
18711 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
18712 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
18713 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
18714 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
18715 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
18716 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
18717 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
18718 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
18719 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
18720 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
18721 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
18722 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
18723 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
18724 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
18725 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
18726 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
18727 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
18728 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
18729 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
18730 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
18731 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
18732 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
18733 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
18734 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
18735 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
18736 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
18737 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
18738 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
18739 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
18740 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
18741 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
18742 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
18743 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
18744 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
18745 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
18746 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
18747 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
18748 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
18749 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
18750 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
18751 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
18752 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
18753 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
18754 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
18755 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
18756 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
18757 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
18758 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
18759 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
18760 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
18761 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
18762 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
18763 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
18764 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
18765 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
18766 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
18767 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
18768 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
18769 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
18770 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
18771 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
18772 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
18773 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
18774 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
18775 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
18776 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
18777 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
18778 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
18779 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
18780 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
18781 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
18782 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
18783 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
18784 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
18785 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
18786 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
18787 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
18788 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
18789 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
18790 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
18791 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
18792 (QI_FTYPE_V8DF_INT_QI): Ditto.
18793 (QI_FTYPE_V4DF_INT_QI): Ditto.
18794 (QI_FTYPE_V2DF_INT_QI): Ditto.
18795 (HI_FTYPE_V16SF_INT_HI): Ditto.
18796 (QI_FTYPE_V8SF_INT_QI): Ditto.
18797 (QI_FTYPE_V4SF_INT_QI): Ditto.
18798 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
18800 2015-07-31 Richard Biener <rguenther@suse.de>
18802 * gimple-fold.c (fold_gimple_assign): Remove folding of
18805 2015-07-31 Tom de Vries <tom@codesourcery.com>
18807 PR tree-optimization/66846
18808 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
18809 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
18810 (expand_omp_target) [ENABLE_CHECKING]: Same.
18811 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
18812 cfun if !LOOPS_NEED_FIXUP.
18813 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
18814 that omp_for already has its own loop struct.
18815 * tree-parloops.c (create_phi_for_local_result)
18816 (create_call_for_reduction): Handle simple latch bb.
18817 (create_parallel_loop): Add simple latch bb to preserve
18818 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
18819 (gen_parallel_loop): Remove call to cancel_loop_tree.
18820 (parallelize_loops): Skip loops that are inner loops of parallelized
18822 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
18823 verify_loop_structure.
18825 2015-07-30 Anatoly Sokolov <aesok@post.ru>
18827 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
18828 * config/v850/v850.md (RV_REGNUM): New constants.
18829 * config/v850/v850.c (v850_libcall_value): New functions.
18830 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
18831 (TARGET_LIBCALL_VALUE): Define.
18833 2015-07-30 Anatoly Sokolov <aesok@post.ru>
18835 * rtl.h (lowpart_subreg): Move in file.
18836 * loop-iv.c (lowpart_subreg): Move to...
18837 * simplify-rtx.c (lowpart_subreg): ...here.
18838 (simplify_binary_operation_1): Use lowpart_subreg instead of
18839 simplify_gen_subreg.
18840 * expr.c (expand_expr_real_2): Ditto.
18841 * emit-rtl.c (gen_lowpart_common): Ditto.
18842 * combine.c (gen_lowpart_for_combine): Ditto.
18843 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
18844 expand_debug_source_expr): Ditto.
18846 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
18848 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
18849 (expand_builtin_atomic_clear): Remove support for atomic_clear
18852 2015-07-30 Richard Biener <rguenther@suse.de>
18854 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
18855 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
18856 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
18857 redundant operand canonicalization.
18859 2015-07-30 David Sherwood <david.sherwood@arm.com>
18861 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
18862 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
18863 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
18864 * config/arm/arm.c (neon_valid_immediate): Likewise.
18865 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
18866 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
18867 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
18868 (expand_vec_perm_vpshufb2_vpermq): Likewise.
18869 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
18870 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
18871 * config/i386/sse.md
18872 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
18873 (*ssse3_palignr<mode>_perm): Likewise.
18874 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
18875 * config/spu/spu.c (arith_immediate_p): Likewise.
18876 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
18877 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
18879 2015-07-30 Richard Biener <rguenther@suse.de>
18881 * genmatch.c (decision_tree::gen_gimple): Merge with ...
18882 (decision_tree::gen_generic): ... this into ...
18883 (decision_tree::gen): ... this.
18884 (main): Adjust callers.
18886 2015-07-30 Richard Biener <rguenther@suse.de>
18888 * genmatch.c (verbose): New global.
18889 (warning_at): Add overload with source_location.
18890 (capture_info::capture_info): Add bool whether generating gimple
18891 or generic. Add gimple member.
18892 (capture_info::cinfo): Add capture member.
18893 (capture_info::walk_match): Record capture. Warn on
18894 non-captured leafs.
18895 (capture_info::walk_c_expr): Add more fragments captures cannot
18896 escape through. Warn on escaped captures.
18897 (dt_simplify::gen_1): Warn on operands we force to have no
18899 (main): Initialize verbose.
18900 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
18902 2015-07-30 Richard Biener <rguenther@suse.de>
18904 PR middle-end/67053
18905 * match.pd: Allow both operands to independently have conversion
18906 when simplifying compares of addresses.
18908 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
18912 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
18913 around those cases that need one.
18915 2015-07-29 Aditya Kumar <hiraditya@msn.com>
18917 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
18919 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
18921 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
18922 New. Copied from config/i386/gnu-user.h.
18923 (ASM_COMMENT_START): Likewise.
18924 (DBX_REGISTER_NUMBER): Likewise.
18926 2015-07-29 Richard Biener <rguenther@suse.de>
18928 * gimple-fold.c (fold_gimple_cond): Remove.
18929 (fold_stmt_1): Do not call it.
18931 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
18933 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
18934 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
18936 * config/aarch64/aarch64-modes.def: Add HFmode.
18938 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
18939 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
18941 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
18942 aarch64_promoted_type): New.
18944 (aarch64_float_const_representable_p): Disable HFmode.
18945 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
18946 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
18947 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
18949 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
18950 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
18952 * config/aarch64/iterators.md (GPF_F16): New.
18954 2015-07-29 Richard Biener <rguenther@suse.de>
18956 * match.pd: Merge address comparison patterns and make them
18957 handle some more cases.
18959 2015-07-29 Richard Biener <rguenther@suse.de>
18961 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
18962 (parser::parse_capture): Add bool argument on whether to reject
18964 (parser::parse_expr): Adjust.
18965 (parser::parse_op): Likewise.
18966 (parser::parse_pattern): Likewise.
18968 2015-07-29 Richard Biener <rguenther@suse.de>
18970 * gimple-fold.c (has_use_on_stmt): New function.
18971 (replace_stmt_with_simplification): Use it to allow
18972 abnormals originally referenced in the stmt.
18973 (fold_stmt_1): Canonicalize operand order.
18975 2015-07-28 David Sherwood <david.sherwood@arm.com>
18977 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
18978 GET_MODE_INNER unconditionally.
18979 * config/spu/spu.c (arith_immediate_p): Likewise.
18980 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
18981 * expmed.c (synth_mult): Remove check for VOIDmode result from
18983 (expand_mult_const): Likewise.
18984 * fold-const.c (fold_binary_loc): Replace call to element_precision
18985 with call to GET_MODE_PRECISION.
18986 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
18988 (emit_mode_inner): Likewise.
18989 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
18991 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
18992 (GET_MODE_UNIT_PRECISION): Likewise.
18993 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
18994 * simplify-rtx.c (simplify_immed_subreg): Likewise.
18995 * stor-layout.c (bitwise_type_for_mode): Update assert.
18996 (element_precision): Remove.
18998 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19000 * target-insns.def (reload_load_address): New targetm instruction
19002 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
19004 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19006 * target-insns.def (atomic_test_and_set): New targetm instruction
19008 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
19009 HAVE_*/gen_* interface.
19011 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19013 * target-insns.def (can_extend, ptr_extend): New targetm instruction
19015 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
19016 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
19017 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
19018 * rtlanal.c (nonzero_bits1): Likewise.
19019 (num_sign_bit_copies1): Likewise.
19021 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19023 * target-insns.def (eh_return): New targetm instruction pattern.
19024 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
19026 * function.c (thread_prologue_and_epilogue_insns): Remove
19027 preprocessor condition.
19029 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19031 * target-insns.def (indirect_jump): New targetm instruction pattern.
19032 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
19035 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
19037 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
19038 instead of nonimmediate_operand. Remove C condiition.
19040 2015-07-28 Richard Biener <rguenther@suse.de>
19042 * match.pd: Add more simplification of address comparisons.
19044 2015-07-28 Richard Biener <rguenther@suse.de>
19046 * match.pd: Re-order two cases in comparison with max/min
19047 value simplification to make it apply for bools.
19049 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19051 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
19052 Handle simple SIGN_EXTEND or ZERO_EXTEND.
19053 (aarch64_rtx_costs): Properly strip extend or extract before
19054 passing down to rtx costs again.
19056 2015-07-28 Nick Clifton <nickc@redhat.com>
19058 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
19059 Optimizes the case where -mes0 is active and a constant symbolic
19061 * config/rl78/rl78-protos.h: Prototype the new function.
19062 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
19064 2015-07-28 Tom de Vries <tom@codesourcery.com>
19066 * tree-parloops.c (reduc_stmt_res): New function.
19067 (initialize_reductions, add_field_for_reduction)
19068 (create_phi_for_local_result, create_loads_for_reductions)
19069 (create_stores_for_reduction, build_new_reduction): Handle case that
19070 reduc_stmt is a phi.
19071 (gather_scalar_reductions): Allow double_reduc reductions.
19073 2015-07-28 Richard Biener <rguenther@suse.de>
19075 * fold-const.c (fold_comparison): Remove equality folding
19076 of decl addresses ...
19077 * match.pd: ... here and merge with existing pattern.
19079 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
19081 PR tree-optimization/66828
19082 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
19083 from int64_t to uint64_t.
19085 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
19087 * opts-common.c (read_cmdline_option): List DriverOnly enum values
19088 as valid only in the error message of the driver, not in the
19089 messages of the language compilers.
19091 2015-07-27 Tom de Vries <tom@codesourcery.com>
19093 * tree-parloops.c (gather_scalar_reductions): Simplify function
19096 2015-07-27 Marek Polacek <polacek@redhat.com>
19098 * ipa-devirt.c (types_same_for_odr): Fix typo.
19100 2015-07-27 Jason Merrill <jason@redhat.com>
19103 * dwarf2out.c (gen_inlined_subroutine_die): Check
19104 cgraph_function_possibly_inlined_p.
19106 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19108 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
19109 Place integer variant first.
19110 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
19112 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19115 * config/arm/arm-builtins.c (enum arm_builtins):
19116 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
19117 (ARM_BUILTIN_NEON_BASE): Rename macro to....
19118 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
19119 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
19120 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
19122 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
19125 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
19126 Add qualifier_lane_index.
19127 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
19128 (arm_getlane_qualifiers): Use qualifier_lane_index.
19129 (arm_lanemac_qualifiers): Rename to...
19130 (arm_mac_n_qualifiers): ...this.
19131 (LANEMAC_QUALIFIERS): Rename to...
19132 (MAC_N_QUALIFIERS): ...this.
19133 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
19134 (arm_setlane_qualifiers): Use qualifier_lane_index.
19135 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
19136 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
19137 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
19138 (arm_expand_neon_builtin): Handle qualifier_lane_index.
19140 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
19141 * config/arm/arm.c (bounds_check): Likewise, improve error message.
19142 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
19143 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
19144 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
19145 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
19146 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
19147 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
19148 qualifiers to TERNOP_IMM.
19149 (vdup_lane): Change qualifiers to GETLANE.
19150 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
19151 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
19152 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
19153 vqdmlsl_n): Change qualifiers to MAC_N.
19155 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
19156 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
19157 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
19158 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
19159 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
19160 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
19161 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
19162 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
19163 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
19164 Remove call to neon_lane_bounds.
19166 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
19168 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
19169 Place integer variant first.
19171 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
19173 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
19174 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
19175 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
19176 for armv6kz targets.
19177 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
19178 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
19179 (FL_FOR_ARCH6ZK): Remove.
19180 (FL_FOR_ARCH6KZ): New.
19181 (arm_arch6zk): New declaration.
19182 * config/arm/arm-tables.opt: Regenerate.
19183 * config/arm/arm.c (arm_arch6kz): New.
19184 (arm_option_override): Set arm_arch6kz.
19185 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
19186 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
19187 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
19189 2015-07-27 Marek Polacek <polacek@redhat.com>
19193 * doc/invoke.texi: Document -Wtautological-compare.
19195 2015-07-27 Richard Biener <rguenther@suse.de>
19197 * genmatch.c (decision_tree::gen_gimple): Split out large
19198 subtrees into separate functions.
19199 (decision_tree::gen_generic): Likewise.
19201 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
19203 * config/alpha/alpha.c: Use SUBREG_P predicate.
19204 * config/alpha/predicates.md: Ditto.
19206 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
19208 * config.host (s390*-*-*): Include driver-native.c only when
19209 building with s390* as host *and* target.
19211 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
19214 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
19215 T bit register modified_between_p check.
19217 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19219 * config/i386/i386.c: Use SUBREG_P predicate.
19220 * config/i386/i386.md: Ditto.
19221 * config/i386/sse.md: Ditto.
19222 * config/i386/predicates.md: Ditto.
19224 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19227 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
19228 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
19230 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19232 * Makefile.in: Remove use of TREEBROWSER.
19233 * config.in: Regenerated.
19234 * configure: Regenerated.
19235 * configure.ac: Remove definition of TREEBROWSER.
19236 * tree-browser.c: Removed.
19237 * tree-browser.def: Removed.
19239 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19241 * graphite-scop-detection.c: Include gimple-pretty-print.h.
19242 (stmt_simple_for_scop_p): Print when a stmt is not handled in
19244 (scopdet_basic_block_info): Print when a loop or bb cannot be
19245 represented in Graphite.
19247 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19250 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
19251 execution guard when min_size is less than size_needed.
19253 2015-07-25 Sebastian Pop <s.pop@samsung.com>
19255 * doc/install.texi: Document supported versions of ISL.
19257 2015-07-25 Jeff Law <law@redhat.com>
19261 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19262 unable to find X NE 0 in the tables, return X as the simplified
19264 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19265 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19266 to VISISTED_BBS. */
19267 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19268 after removing the control flow statement and unnecessary edges.
19270 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
19273 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19275 PR rtl-optimization/64164
19276 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19277 * tree-ssa-copyrename.c: Removed.
19278 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19279 -ftree-coalesce-vars.
19280 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19281 * common.opt (ftree-copyrename): Ignore.
19282 (ftree-coalesce-inlined-vars): Likewise.
19283 * doc/invoke.texi: Remove the ignored options above.
19284 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19285 * tree-ssa-coalesce.h: ... here.
19286 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19287 headers required by it.
19288 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19289 across variables when flag_tree_coalesce_vars. Check register
19290 use and promoted modes to allow coalescing. Moved to
19291 tree-ssa-coalesce.c.
19292 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19293 with its member functions to tree-ssa-coalesce.c.
19294 (var_map_base_init): Likewise. Renamed to
19295 compute_samebase_partition_bases.
19296 (partition_view_normal): Drop want_bases parameter.
19297 (partition_view_bitmap): Likewise.
19298 * tree-ssa-live.h: Adjust declarations.
19299 * tree-ssa-coalesce.c: Include explow.h.
19300 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19301 default defs at the entry point.
19302 (dump_part_var_map): New.
19303 (compute_optimized_partition_bases): New, called by...
19304 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19305 of compute_samebase_partition_bases. Adjust.
19306 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19307 * cfgexpand.c (leader_merge): New.
19308 (get_rtl_for_parm_ssa_default_def): New.
19309 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19310 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19311 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19312 redundant MEM attr setting.
19313 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19315 (expand_one_stack_var): ... this. New wrapper to check and
19316 skip already expanded SSA partitions.
19317 (record_alignment_for_reg_var): New, factored out of...
19318 (expand_one_var): ... this.
19319 (expand_one_ssa_partition): New.
19320 (adjust_one_expanded_partition_var): New.
19321 (expand_one_register_var): Check and skip already expanded SSA
19323 (expand_used_vars): Don't create DECLs for anonymous SSA
19324 names. Expand all SSA partitions, then adjust all SSA names.
19325 (pass::execute): Replace the loops that set
19326 SA.partition_to_pseudo from partition leaders and cleared
19327 DECL_RTL for multi-location variables, and that which used to
19328 rename vars and set attrs, with one that clears DECL_RTL and
19329 checks that PARMs and RESULTs default_defs match DECL_RTL.
19330 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19331 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19332 * explow.c (promote_ssa_mode): New.
19333 * explow.h (promote_ssa_mode): Declare.
19334 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19335 * function.c: Include cfgexpand.h.
19336 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19337 (use_register_for_parm_decl): Wrapper for the above to
19338 special-case the result_ptr.
19339 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19340 (split_complex_args): Take assign_parm_data_all argument.
19341 Pass it to rtl_for_parm. Set up rtl and context for split
19343 (assign_parms_augmented_arg_list): Adjust.
19344 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19345 multiple locations. Recognize split complex args.
19346 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19347 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19348 (assign_parm_setup_block): Prefer SSA-assigned location.
19349 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19350 if stack_parm is NULL.
19351 (assign_parm_setup_stack): Prefer SSA-assigned location.
19352 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19353 rtl before testing for pointer bounds. Special-case result_ptr.
19354 (expand_function_start): Maybe reset DECL_RTL of result.
19355 Prefer SSA-assigned location for result and static chain.
19356 Factor out DECL_RESULT and SET_DECL_RTL.
19357 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19358 anonymous SSA names. Use promote_ssa_mode.
19359 (get_temp_reg): Likewise.
19360 (remove_ssa_form): Adjust.
19361 * stor-layout.c (layout_decl): Don't set mem attributes of
19363 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19364 and get its reg_usage for reg invalidation.
19365 (compute_bb_dataflow): Pass it insn.
19366 (emit_notes_in_bb): Likewise.
19368 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
19370 * config/i386/i386.c (ix86_va_start): Remove
19371 unneeded !TARGET_64BIT check.
19372 (ix86_gimplify_va_arg): Ditto.
19374 2015-07-24 Tom de Vries <tom@codesourcery.com>
19376 * graphite-sese-to-poly.c (build_poly_scop): Always call
19377 rewrite_commutative_reductions_out_of_ssa.
19379 2015-07-24 Tom de Vries <tom@codesourcery.com>
19381 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
19382 flag_associative_math to FLOAT_TYPE_P. Honour
19383 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
19385 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
19388 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
19389 and "%qD" in warning_at instead of "%q+D" in warning.
19391 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19393 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
19394 (ix86_function_abi): Cleanup.
19396 2015-07-24 Michael Darling <darlingm@gmail.com>
19399 * acinclude.m4: Reflects renaming of configure.in to configure.ac
19400 * configure: Likewise
19401 * configure.ac: Likewise
19402 * doc/install.texi: Likewise
19403 * doc/tm.texi: Likewise
19404 * doc/tm.texi.in: Likewise
19406 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19408 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
19409 manually swapping values.
19410 * cse.c (fold_rtx): Likewise.
19411 * lra-eliminations.c (form_sum): Likewise.
19413 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
19416 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
19417 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
19418 (*jcc_1, *jcc_2, jump, simple_return_internal)
19419 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
19420 Set length_nobnd attribute instead of length attribute.
19421 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
19422 (length_nobnd): Remove attribute.
19423 (length): Remove length_nobnd processing.
19425 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
19427 * gimplify.c (omp_default_clause): New function. Reorganize flow
19428 for clarity. Broken out of ...
19429 (omp_notice_variable): ... here.
19431 2015-07-24 Gary Funck <gary@intrepid.com>
19433 PR middle-end/66984
19434 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
19435 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
19437 2015-07-24 Tom de Vries <tom@codesourcery.com>
19439 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
19440 exit-first loop transform.
19442 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
19445 * tree-cfg.c (struct replace_decls_d): New struct.
19446 (replace_block_vars_by_duplicates_1): New function.
19447 (replace_block_vars_by_duplicates): Use it to replace the decls
19448 in the value exprs by duplicates.
19450 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19452 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
19453 -shared, -symbolic, -rdynamic.
19455 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
19458 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
19459 -dynamic-linker within %{!static %{!shared, and -rdynamic within
19462 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
19465 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
19466 edge summary is available.
19468 2015-07-24 Richard Biener <rguenther@suse.de>
19470 * genmatch.c (struct dt_node): Add statistic fields.
19471 (dt_node::analyze): New method.
19472 (decision_tree::gen_gimple): Call analyze on the root node
19473 and print statistics to stderr.
19474 (decision_tree::gen_generic): Likewise.
19476 2015-07-24 Richard Biener <rguenther@suse.de>
19478 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
19479 against the highest or lowest possible integer ...
19480 * match.pd: ... as patterns here.
19482 2015-07-24 Richard Biener <rguenther@suse.de>
19484 * genmatch.c (struct capture_info): Add same_as field.
19485 (capture_info::capture_info): Initialize same_as.
19486 (capture_info::walk_match): Compute same_as.
19487 (capture_info::walk_result): Compute stuff for the leader.
19488 (capture_info::walk_c_expr): Likewise.
19489 (dt_simplify::gen_1): Only look at leaders when deciding
19490 to force no side-effects or emit side-effects of omitted operands.
19492 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19494 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
19495 reg note to the GPR -> FPR save instructions.
19497 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19499 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
19501 (s390_expand_insv): Don't generate risbg pattern for constant zero
19503 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
19504 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
19507 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19509 * config/s390/s390.c (s390_reorg): Clean up handling of processors
19512 (s390_issue_rate): Likewise.
19513 (s390_sched_reorder): Likewise.
19514 (s390_sched_variable_issue): Likewise.
19515 (s390_loop_unroll_adjust): Likewise.
19516 (s390_option_override): Likewise.
19518 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19520 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
19521 processor capabilities with -march=native.
19522 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
19523 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
19524 (S390_TARGET_BITS_STRING): Macro to simplify specs.
19526 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19528 * config/s390/s390.c (s390_issue_rate): Handle
19529 PROCESSOR_2094_Z9_EC.
19530 (s390_option_override): Likewise.
19531 (s390_adjust_priority): Likewise.
19533 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
19535 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
19536 when cross compiling.
19538 2015-07-24 Richard Biener <rguenther@suse.de>
19540 * fold-const.c (maybe_canonicalize_comparison_1): Move
19541 A code CST canonicalization ...
19542 * match.pd: ... to a pattern here.
19544 2015-07-24 Jiong Wang <jiong.wang@arm.com>
19547 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19549 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19550 (HONOR_REG_ALLOC_ORDER): Define.
19552 2015-07-24 Richard Biener <rguenther@suse.de>
19554 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
19555 * fold-const.c (fold_comparison): Move parameter does not
19556 alias &local simplification ...
19557 * match.pd: ... as a pattern here.
19559 2015-07-24 Richard Biener <rguenther@suse.de>
19561 * gimple-fold.c (replace_stmt_with_simplification): Special-case
19562 valueizing call operands.
19563 * gimple-match-head.c (maybe_push_res_to_seq): Take
19564 number of call arguments from ops array.
19565 (do_valueize): New function.
19566 (gimple_simplify): Return true if valueization changed
19567 any operand even if the result didn't simplify further.
19569 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19571 PR middle-end/25530
19572 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
19574 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19576 PR middle-end/25529
19577 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
19579 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19581 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
19584 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19586 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
19589 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
19591 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
19592 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
19594 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
19595 ms_va_list_type_node initialization.
19597 2015-07-23 Jeff Law <law@redhat.com>
19600 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
19601 unable to find X NE 0 in the tables, return X as the simplified
19603 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
19604 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
19605 to VISISTED_BBS. */
19606 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
19607 after removing the control flow statement and unnecessary edges.
19609 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
19611 * tree-pass.h (get_current_pass_name): Removed.
19613 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
19615 PR rtl-optimization/64164
19616 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19617 * tree-ssa-copyrename.c: Removed.
19618 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19619 -ftree-coalesce-vars.
19620 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19621 * common.opt (ftree-copyrename): Ignore.
19622 (ftree-coalesce-inlined-vars): Likewise.
19623 * doc/invoke.texi: Remove the ignored options above.
19624 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19625 * tree-ssa-coalesce.h: ... here.
19626 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19627 headers required by it.
19628 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19629 across variables when flag_tree_coalesce_vars. Check register
19630 use and promoted modes to allow coalescing. Moved to
19631 tree-ssa-coalesce.c.
19632 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19633 with its member functions to tree-ssa-coalesce.c.
19634 (var_map_base_init): Likewise. Renamed to
19635 compute_samebase_partition_bases.
19636 (partition_view_normal): Drop want_bases parameter.
19637 (partition_view_bitmap): Likewise.
19638 * tree-ssa-live.h: Adjust declarations.
19639 * tree-ssa-coalesce.c: Include explow.h.
19640 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19641 default defs at the entry point.
19642 (dump_part_var_map): New.
19643 (compute_optimized_partition_bases): New, called by...
19644 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19645 of compute_samebase_partition_bases. Adjust.
19646 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19647 * cfgexpand.c (leader_merge): New.
19648 (get_rtl_for_parm_ssa_default_def): New.
19649 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19650 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19651 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19652 redundant MEM attr setting.
19653 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19655 (expand_one_stack_var): ... this. New wrapper to check and
19656 skip already expanded SSA partitions.
19657 (record_alignment_for_reg_var): New, factored out of...
19658 (expand_one_var): ... this.
19659 (expand_one_ssa_partition): New.
19660 (adjust_one_expanded_partition_var): New.
19661 (expand_one_register_var): Check and skip already expanded SSA
19663 (expand_used_vars): Don't create DECLs for anonymous SSA
19664 names. Expand all SSA partitions, then adjust all SSA names.
19665 (pass::execute): Replace the loops that set
19666 SA.partition_to_pseudo from partition leaders and cleared
19667 DECL_RTL for multi-location variables, and that which used to
19668 rename vars and set attrs, with one that clears DECL_RTL and
19669 checks that PARMs and RESULTs default_defs match DECL_RTL.
19670 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19671 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
19672 * explow.c (promote_ssa_mode): New.
19673 * explow.h (promote_ssa_mode): Declare.
19674 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19675 * function.c: Include cfgexpand.h.
19676 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19677 (use_register_for_parm_decl): Wrapper for the above to
19678 special-case the result_ptr.
19679 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19680 (split_complex_args): Take assign_parm_data_all argument.
19681 Pass it to rtl_for_parm. Set up rtl and context for split
19683 (assign_parms_augmented_arg_list): Adjust.
19684 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19685 multiple locations. Recognize split complex args.
19686 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19687 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19688 (assign_parm_setup_block): Prefer SSA-assigned location.
19689 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
19690 if stack_parm is NULL.
19691 (assign_parm_setup_stack): Prefer SSA-assigned location.
19692 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19693 rtl before testing for pointer bounds. Special-case result_ptr.
19694 (expand_function_start): Maybe reset DECL_RTL of result.
19695 Prefer SSA-assigned location for result and static chain.
19696 Factor out DECL_RESULT and SET_DECL_RTL.
19697 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19698 anonymous SSA names. Use promote_ssa_mode.
19699 (get_temp_reg): Likewise.
19700 (remove_ssa_form): Adjust.
19701 * stor-layout.c (layout_decl): Don't set mem attributes of
19703 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19704 and get its reg_usage for reg invalidation.
19705 (compute_bb_dataflow): Pass it insn.
19706 (emit_notes_in_bb): Likewise.
19708 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
19711 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
19713 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
19714 (rs6000_emit_2insn_and): Handle dot forms.
19715 * config/rs6000/rs6000.md (and<mode>3): Adjust.
19716 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
19717 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
19719 2015-07-23 Richard Biener <rguenther@suse.de>
19721 * generic-match-head.c: Include cgraph.h.
19722 * gimple-match-head.c: Likewise.
19723 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
19725 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
19726 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
19729 2015-07-23 Richard Biener <rguenther@suse.de>
19731 * gimple-fold.c (fold_gimple_cond): Do not require folding
19732 results to pass valid_gimple_rhs_p.
19733 * tree-cfg.h (fold_cond_expr_cond): Remove.
19734 * tree-cfg.c (fold_cond_expr_cond): Likewise.
19735 (make_edges): Do not call it.
19736 * tree-inline.c (tree_function_versioning): Likewise.
19738 2015-07-23 Tom de Vries <tom@codesourcery.com>
19740 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
19741 vect_force_simple_reduction.
19742 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
19743 (vect_is_simple_reduction_1): Add and handle
19744 need_wrapping_integral_overflow parameter.
19745 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
19746 need_wrapping_integral_overflow parameter.
19747 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
19748 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
19751 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
19753 PR tree-optimization/66926,66951
19754 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
19755 INNER_LOOP and fix up condition for renaming virtual operands.
19757 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19759 * combine.c (try_combine): Use std::swap instead of manually
19762 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
19764 * config/mips/i6400.md: New file.
19765 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
19766 (mips64r6): Likewise.
19768 * config/mips/mips-tables.opt: Regenerate.
19769 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
19770 (mips_issue_rate): Add support for i6400.
19771 (mips_multipass_dfa_lookahead): Likewise.
19772 * config/mips/mips.h (TUNE_I6400): Define.
19773 * config/mips/mips.md: Include i6400.md.
19774 (processor): Add i6400.
19775 * doc/invoke.texi (-march=@var{arch}): Add i6400.
19777 2015-07-23 Richard Biener <rguenther@suse.de>
19779 PR middle-end/66916
19780 * match.pd: Guard widen and sign-change comparison simplification
19783 2015-07-23 Richard Biener <rguenther@suse.de>
19785 PR tree-optimization/66945
19786 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
19787 ::before_dom_children): Force the propagators idea of
19788 non-executable edges to materialize, not what the folder
19791 2015-07-23 Richard Biener <rguenther@suse.de>
19793 * gimple.h (gimple_cond_make_false): Use 0 != 0.
19794 (gimple_cond_make_true): Use 1 != 0.
19796 2015-07-22 DJ Delorie <dj@redhat.com>
19798 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
19801 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
19802 (ashrhi3): Likewise.
19803 (lshrhi3): Likewise.
19804 (movhi): Take advantage of zero-extend to load small constants.
19805 (movpsi): Likewise.
19806 (and<mode>3): Likewise.
19807 (zero_extendqihi2): Likewise.
19808 (zero_extendqisi2): New.
19809 * config/msp430/constraints.md (N,O): New.
19810 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
19812 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
19815 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
19816 to enum feature_priority and feature_list.
19817 (fold_builtin_cpu): Add F_AES to enum processor_features
19818 and isa_names_table.
19820 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
19823 * config/i386/linux-common.h (MPX_SPEC): Use linker option
19824 for 64bit target only.
19826 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
19828 * config/nvptx/nvptx.c: Expand some comments.
19830 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
19832 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
19833 (cortex_a53_advsimd): ...This.
19835 2015-07-22 Richard Biener <rguenther@suse.de>
19837 * genmatch.c (expr::gen_transform): Clarify error message
19838 and display location.
19840 2015-07-22 Richard Biener <rguenther@suse.de>
19842 * genmatch.c (struct operand): Add location member.
19843 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
19845 (struct simplify): Remove match_location and result_location
19847 (elsehwere): Adjust.
19849 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
19851 * config/mips/m5100.md: New file.
19852 * config/mips/mips-cpus.def (m5100, m5101): Define.
19853 * config/mips/mips-tables.opt: Regenerate.
19854 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
19855 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
19856 -march=m5101 to -mips32r5.
19857 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
19858 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
19860 * config/mips/mips.md: Include m5100.md.
19861 (processor): Add m5100.
19862 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
19864 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
19866 * config/mips/mips-cpus.def (interaptiv): Define.
19867 * config/mips/mips-tables.opt: Regenerate.
19868 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
19870 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
19871 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
19873 2015-07-22 Jiong Wang <jiong.wang@arm.com>
19876 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
19877 (HONOR_REG_ALLOC_ORDER): Define.
19879 2015-07-22 Richard Biener <rguenther@suse.de>
19881 PR tree-optimization/66952
19882 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
19883 blocks we end up executing unconditionally reset all SSA
19884 info such as range and alignment.
19885 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
19886 * tree-ssanames.c (reset_flow_sensitive_info): New function.
19888 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19890 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
19893 2015-07-22 Richard Biener <rguenther@suse.de>
19895 * genmatch.c (parser::parse_result): Properly handle
19896 match with result operands and conditions.
19898 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
19901 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
19902 Add qualifier_struct_load_store_lane_index.
19903 (aarch64_types_loadstruct_lane_qualifiers): Use
19904 qualifier_struct_load_store_lane_index for lane index argument for
19906 (aarch64_types_storestruct_lane_qualifiers): Ditto.
19907 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19908 (aarch64_simd_expand_args): Add new argument describing mode of
19909 builtin. Check lane bounds for arguments with
19910 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19911 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
19912 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
19913 (aarch64_simd_expand_builtin): Handle arguments with
19914 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
19915 aarch64_simd_expand_args.
19916 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
19917 vst[234]_lane with BUILTIN_VALLDIF.
19918 * config/aarch64/aarch64-simd.md:
19919 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
19920 endianness reversal on lane index.
19921 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
19922 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
19923 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
19924 (vec_store_lanesci_lane<mode>): Ditto.
19925 (vec_store_lanesxi_lane<mode>): Ditto.
19926 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
19927 reversal of lane index.
19928 (aarch64_ld3_lane<mode>): Ditto.
19929 (aarch64_ld4_lane<mode>): Ditto.
19930 (aarch64_st2_lane<mode>): Ditto.
19931 (aarch64_st3_lane<mode>): Ditto.
19932 (aarch64_st4_lane<mode>): Ditto.
19933 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
19934 to qmode. Add new mode parameter. Update uses.
19935 (__LD3_LANE_FUNC): Ditto.
19936 (__LD4_LANE_FUNC): Ditto.
19937 (__ST2_LANE_FUNC): Ditto.
19938 (__ST3_LANE_FUNC): Ditto.
19939 (__ST4_LANE_FUNC): Ditto.
19941 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
19943 * doc/invoke.texi (Language Independent Options): Rename node to
19944 Diagnostic Message Formatting Options.
19946 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
19949 * lra-remat.c (operand_to_remat): Prevent using insns with input
19950 subregs processed separately by IRA.
19952 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
19954 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
19956 (single_imm_use): Check for iterator node.
19957 (num_imm_uses): Likewise.
19958 * tree-ssa-operands.c (has_zero_uses_1): Delete.
19959 (single_imm_use_1): Check for iterator node.
19961 2015-07-21 Mike Frysinger <vapier@gentoo.org>
19962 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
19964 * configure.ac: Add check for new options in isl-0.15.
19965 * config.in, configure: Rebuilt.
19966 * graphite-blocking.c: Include <isl/constraint.h>
19967 * graphite-interchange.c, graphite-poly.c: Likewise.
19968 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
19969 * graphite.c: Likewise.
19970 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
19972 * graphite-dependences.c: Include <isl/constraint.h>.
19973 (max_number_of_out_dimensions): Returns isl_stat.
19974 (extend_schedule_1): Likewise
19975 (extend_schedule): Corresponding changes.
19976 * graphite-optimize-isl.c: Include <isl/constraint.h> and
19978 (getSingleMap): Change return type of isl_stat.
19979 (optimize_isl): Conditionally use
19980 isl_options_set_schedule_serialize_sccs.
19981 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
19982 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
19984 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
19987 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
19988 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
19990 2015-07-21 Richard Biener <rguenther@suse.de>
19992 PR tree-optimization/66948
19993 * genmatch.c (capture_info::walk_match): Also recurse to
19994 captures. Properly compute expr state from captures of
19996 * match.pd: Add single-use guards to
19997 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
19999 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
20001 * config/nvptx/mkoffload.c (process): Add static destructor call.
20003 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20005 PR middle-end/66915
20006 * match.pd (A - B -> A + (-B)): Don't allow folding
20007 when type if a fixed-point type.
20009 2015-07-20 DJ Delorie <dj@redhat.com>
20011 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
20012 (iorqi3_real): Likewise for set1.
20014 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
20016 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
20019 2015-07-20 Aditya Kumar <hiraditya@msn.com>
20021 * graphite-isl-ast-to-gimple.c:
20022 Refactor so that each function can access 'region'. This will help
20023 maintain a parameter rename_map within a region.
20025 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20027 * config/rs6000/rs6000.md (*lt0_disi): New.
20029 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
20032 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
20033 "available letters" comment.
20034 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
20035 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
20036 and_2rld_operand): Delete.
20037 (and_operand): Adjust.
20038 (rotate_mask_operator): New.
20039 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
20040 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
20041 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
20042 extract_ME): Delete.
20043 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20044 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
20045 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
20046 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20047 rs6000_emit_2insn_and): New.
20048 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
20049 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
20050 includes_rldic_lshift_p, includes_rldicr_lshift_p,
20051 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
20052 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
20053 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
20054 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
20055 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
20056 rs6000_emit_2insn_and): New.
20057 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
20058 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
20060 <NOT>: Don't fall through to next case.
20061 <AND>: Handle the various rotate-and-mask cases directly.
20062 <IOR>: Always cost as one insn.
20063 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
20064 (and<mode>3): Adjust expander for the new patterns.
20065 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
20066 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
20067 (*and<mode>3_imm_dot_shifted): New.
20068 (*and<mode>3_mask): Delete, rewrite as ...
20069 (and<mode>3_mask): ... New.
20070 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
20071 (andsi3_internal0_nomc): Delete.
20072 (*andsi3_internal6): Delete.
20073 (*and<mode>3_2insn): New.
20074 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
20075 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
20076 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
20077 *insvdi_internal3): Delete.
20078 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
20079 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
20080 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
20081 *ior<mode>_mask): New.
20082 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
20083 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
20084 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
20085 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
20087 (ashr<mode>3): Delete expander.
20088 (*ashr<mode>3): Rename to ...
20089 (ashr<mode>3): ... This.
20090 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
20091 (*rotldi3_internal4, *rotldi3_internal5 and split,
20092 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
20093 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
20094 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
20095 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
20096 (splitter for loading a mask): Adjust.
20097 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
20099 2015-07-20 Marek Polacek <polacek@redhat.com>
20101 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
20102 output_add_clobbers, output_added_clobbers_hard_reg_p,
20103 gen_rtx_scratch): Remove declarations.
20105 2015-07-20 Marek Polacek <polacek@redhat.com>
20108 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
20110 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20112 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
20113 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
20115 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20117 * combine.c (combine_simplify_rtx): Move simplification step
20118 before various transformations/substitutions.
20120 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
20122 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
20123 (struct int_traits): Likewise.
20125 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20127 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
20128 function to vmsdbgout_function_decl.
20130 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20133 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
20134 from misaligned positions.
20135 (ix86_expand_pinsr): Reject insertions to misaligned positions.
20137 2015-07-18 Sebastian Pop <s.pop@samsung.com>
20139 PR middle-end/46851
20140 PR middle-end/60340
20141 * Makefile.in: Removed omega.o.
20142 * common.opt: Document flag fcheck-data-deps as deprecated.
20143 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
20144 its associated params: omega-max-vars, omega-max-geqs,
20145 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
20146 omega-max-keys, omega-eliminate-redundant-constraints.
20147 * doc/loop.texi: Remove all the section on Omega.
20148 * graphite-blocking.c: Include missing params.h: it used to be
20149 included through tree-data-ref.h and omega.h.
20150 * graphite-isl-ast-to-gimple.c: Same.
20151 * graphite-optimize-isl.c: Same.
20152 * graphite-sese-to-poly.c: Same.
20153 * graphite.c: Same.
20156 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
20157 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
20158 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
20159 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
20160 * passes.def: Remove pass_check_data_deps.
20161 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
20162 (dump_conflict_function): Same.
20163 (dump_subscript): Same.
20164 (print_direction_vector): Same.
20165 (print_dir_vectors): Same.
20166 (print_lambda_vector): Same.
20167 (print_dist_vectors): Same.
20168 (dump_data_dependence_relation): Same.
20169 (dump_data_dependence_relations): Same.
20170 (dump_dist_dir_vectors): Same.
20172 (init_omega_eq_with_af): Removed.
20173 (omega_extract_distance_vectors): Removed.
20174 (omega_setup_subscript): Removed.
20175 (init_omega_for_ddr_1): Removed.
20176 (init_omega_for_ddr): Removed.
20177 (ddr_consistent_p): Removed.
20178 (compute_affine_dependence): Do not use omega to check data
20180 (compute_data_dependences_for_bb): Removed.
20181 (analyze_all_data_dependences): Removed.
20182 (tree_check_data_deps): Removed.
20183 * tree-data-ref.h: Do not include omega.h.
20184 (compute_data_dependences_for_bb): Removed.
20185 (tree_check_data_deps): Removed.
20186 * tree-ssa-loop.c (pass_check_data_deps): Removed.
20187 (make_pass_check_data_deps): Removed.
20188 * tree-ssa-phiopt.c: Include params.h.
20189 * tree-vect-data-refs.c: Same.
20190 * tree-vect-slp.c: Same.
20192 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
20194 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
20195 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
20196 (mem->fpreg splitters): Ditto.
20197 (general_operand->nonimmediate_operand splitter): Use explicit modes.
20198 Disable DFmode for TARGET_64BIT.
20200 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
20203 * config/i386/i386.c (ix86_expand_prologue): Replicate static
20204 chain on the stack.
20206 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20208 * config/nvptx/mkoffload.c (process): Constify host data.
20209 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20210 Constify host data.
20211 (generate_host_descr_file): Likewise.
20213 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
20214 Sebastian Pop <s.pop@samsung.com>
20216 PR middle-end/61929
20217 * graphite-dependences.c (add_pdr_constraints): Renamed
20218 pdr->extent to pdr->subscript_sizes.
20219 * graphite-interchange.c (build_linearized_memory_access): Add
20220 back all gcc_assert's that the "isl_int to isl_val conversion"
20221 patch has removed. Refactored.
20222 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
20223 * graphite-poly.c (new_poly_dr): Same.
20224 (free_poly_dr): Same.
20225 * graphite-poly.h (struct poly_dr): Same.
20226 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
20227 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
20228 * graphite-scop-detection.h: Fix space.
20229 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
20230 back all gcc_assert's removed by a previous patch.
20231 (wrap): Remove the_isl_ctx global variable that the same patch has
20233 (build_loop_iteration_domains): Same.
20234 (add_param_constraints): Same.
20235 (pdr_add_data_dimensions): Same. Refactored.
20236 (build_poly_dr): Renamed extent to subscript_sizes.
20238 2015-07-17 Marek Polacek <polacek@redhat.com>
20240 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
20241 * match.pd: ... here.
20243 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
20245 * config/nvptx/mkoffload.c (process): Constify target data.
20246 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
20247 Constify target data.
20248 (generate_target_offloadend_file): Likewise.
20250 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
20252 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
20253 to allow renaming of PHI arguments on edges incoming from outer
20254 loop header, add corresponding check before start PHI iterator.
20255 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
20256 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
20257 with true force_vectorize. Set-up dominator for outer loop too.
20258 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
20259 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
20260 was marked with force_vectorize and has restricted cfg.
20261 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
20263 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
20264 do peeling for outer loops.
20266 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
20267 Matthias Klose <doko@ubuntu.com>
20269 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
20270 build-sysroot, sysroot from the `Miscenalleous configure options' to
20271 the `Directories' section and strip trailing `/' from with_sysroot.
20272 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
20273 * configure: Regenerated.
20275 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20278 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
20279 (TARGET_HARD_DF_REGS): Ditto.
20280 (TARGET_HARD_XF_REGS): Ditto.
20281 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
20282 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
20283 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
20284 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
20285 (*movsf_internal): Add alternatives 16 and 17. Enable
20286 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
20288 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
20290 PR rtl-optimization/66891
20291 * calls.c (expand_call): Wrap precompute_register_parameters with
20292 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
20294 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
20296 * config/nvptx/mkoffload.c (process): Constify mapping variables.
20297 Define target data struct and initialize it.
20299 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
20301 PR rtl-optimization/66626
20302 * ira.h (emit-rtl.h): Include.
20303 (non_spilled_static_chain_regno_p): New.
20304 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
20305 unless it is non spilled static chain pseudo.
20306 (assign_hard_rego): Spill memory profitable allocno unless it is
20307 non spilled static chain pseudo.
20308 (allocno_spill_priority_compare): Put non spilled static chain
20309 pseudo at the end of sorted array.
20310 (improve_allocation): Do nothing if we have static chain and
20312 (allocno__priority_compare_func): Put non spilled static chain
20313 pseudo at the beginning of sorted array.
20314 (move_spill_restore): Ignore non spilled static chain pseudo.
20315 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
20316 to non spilled static chain pseudo.
20317 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
20318 pseudo at the beginning of sorted array.
20319 (spill_for): Spill non spilled static chain pseudo last.
20320 * lra-constraints.c (lra_constraints): Remove static chain pseudo
20321 check for equivalence.
20323 2015-07-16 Martin Liska <mliska@suse.cz>
20326 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
20327 dst_ctx if it does not exist.
20329 2015-07-16 Martin Liska <mliska@suse.cz>
20331 * hash-set.h (remove): New function.
20332 (iterator): New iteration class for hash_set.
20334 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20336 * genattrtab.c (make_canonical): Add a file_location parameter.
20337 Use fatal_at rather than fatal.
20338 (get_attr_value): Likewise. Update call to make_canonical.
20339 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
20340 (make_internal_attr): Update calls accordingly.
20342 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20344 * read-md.h (message_with_line, error_with_line): Delete.
20345 * read-md.c (message_with_line, error_with_line): Delete.
20346 * gensupport.h: Include read-md.h.
20347 (md_rtx_info): New structure.
20348 (read_md_rtx): Use it. Return a bool success value.
20349 * gensupport.c (read_md_rtx): Likewise.
20350 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
20351 (main): Update after interface changes.
20352 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
20353 (main): Update after interface changes.
20354 * genattrtab.c (insn_code_number): Delete.
20355 (optimize_attrs): Add a max_insn_code parameter and use it instead
20356 of insn_code_number.
20357 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
20358 Use *_at rather than *_with_line functions.
20359 (gen_insn): Likewise.
20360 (gen_delay): Likewise.
20361 (gen_insn_reserv): Likewise.
20362 (gen_bypass): Take an md_rtx_info rather than an rtx.
20363 (main): Update after interface changes. Use a local max_insn_code
20364 variable instead of insn_code_number.
20365 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
20366 an rtx. Use fatal_at rather than fatal.
20367 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
20368 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
20369 (gen_absence_set, gen_final_absence_set, gen_automaton)
20370 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
20371 (main): Update after interface changes.
20372 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
20374 (main): Update after interface changes.
20375 * genconditions.c (main): Use new read_md_rtx interface.
20376 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
20377 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
20378 (main): Update after interface changes.
20379 * genemit.c (insn_code_number, insn_index_number): Delete.
20380 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20381 Use fatal_at rather than fatal.
20382 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
20384 (gen_split): Likewise.
20385 (main): Update after interface changes.
20386 * genextract.c (line_no): Delete.
20387 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20388 Update call to walk_rtx.
20389 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
20390 rather than message_with_line.
20391 (walk_rtx): Add an md_rtx_info argument. Update call to
20392 VEC_safe_set_locstr.
20393 (main): Update after interface changes.
20394 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
20395 and lineno. Use error_at rather than separate message_with_line
20396 calls and have_error assignments.
20397 (main): Update after interface changes.
20398 * genmddump.c (main): Use new read_md_rtx interface.
20399 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
20400 (main): Update after interface changes.
20401 * genoutput.c (next_code_number): Delete.
20402 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
20403 (gen_peephole, gen_expand, gen_split): Likewise.
20404 (note_constraint): Likewise. Use *_at rather than *_with_line
20406 (main): Update after interface changes.
20407 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
20409 (main): Update after interface changes.
20410 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
20411 than an rtx and lineno.
20412 (process_define_constraint): Likewise.
20413 (process_define_register_constraint): Likewise.
20414 (main): Update after interface changes.
20415 * genrecog.c (next_insn_code, pattern_lineno): Delete.
20416 (validate_pattern): Replace top-level rtx with an md_rtx_info.
20417 Use *_at rather than *_with_line functions.
20418 (match_pattern_2): Likewise.
20419 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
20420 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
20421 Use *_at rather than *_with_line functions.
20422 * gentarget-def.c (add_insn): New function.
20423 (main): Use it. Use new read_md_rtx interface.
20425 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20427 * gensupport.h (compute_test_codes): Take a file_location rather
20428 than a line number.
20429 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
20430 rather than *_with_line functions.
20431 (process_define_predicate): Update call to compute_test_codes.
20432 * genpreds.c (validate_exp): Take a file_location rather than a
20433 line number. Use *_at functions rather than *_with_line functions.
20434 (process_define_predicate): Update call to validate_exp.
20435 (constraint_data): Replace lineno field with a file_location.
20436 (add_constraint): Take a file_location rather than a line number.
20437 Use *_at functions rather than *_with_line functions. Fix error
20438 message for address constraints. Update after changes to
20439 validate_exp, constraint_data and compute_test_codes.
20440 (process_define_constraint): Update accordingly.
20441 (process_define_register_constraint): Likewise.
20443 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20445 * genoutput.c (data): Use a file_location to record the source
20448 (idata, idata_end): Remove initialization.
20449 (constraint_data): Replace lineno with a file_location.
20450 (output_insn_data): Update after changes to data.
20451 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
20452 (scan_operands): Likewise, using *_at rather than *_with_line
20454 (process_template): Likewise.
20455 (validate_insn_alternatives): Likewise.
20456 (validate_insn_operands): Likewise.
20457 (validate_optab_operands): Likewise.
20458 (init_insn_for_nothing): Initialize idata and idata_end.
20459 (note_constraint): Update after changes to constraint_data,
20460 using at rather than with_line functions.
20461 (mdep_constraint_len): Take a file_location rather than a
20462 line number. Use at rather than with_line functions.
20464 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20466 * read-md.h (fatal_at): Declare.
20467 * read-md.c (fatal_at): New function.
20468 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
20469 to record the source position.
20470 (check_attr_test): Take a file_location instead of a line number.
20471 Use fatal_at instead of fatal.
20472 (check_attr_value): Update after above changes, using "at"
20473 rather than "with_line" reporting functions.
20474 (convert_set_attr_alternative): Likewise.
20475 (gen_attr): Likewise.
20476 (check_defs): Likewise. Don't assign to read_md_filename.
20477 (gen_insn): Update initialization after above changes.
20478 (gen_delay): Likewise.
20479 (write_insn_cases): Print the filename for a define_peephole.
20480 (gen_insn_reserv): Take a line number as argument and update
20481 the call to check_attr_test.
20482 (main): Pass a line number to gen_insn_reserv.
20484 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20486 * read-md.h (file_location): New structure.
20487 (directive_handler_t): Take a file_location rather than a line number.
20488 (message_at, error_at): Declare.
20489 (read_skip_construct): Delete.
20490 * read-md.c (message_with_line_1): Replace with...
20491 (message_at_1): ...this new function.
20492 (message_at, error_at): New functions.
20493 (message_with_line, error_with_line): Update to use message_at_1.
20494 (handle_enum): Take a file_location rather than a line number
20495 and use error_at for error reporting.
20496 (handle_include): Likewise.
20497 (read_skip_construct): Likewise. Make static.
20498 (handle_file): Update after above changes. Pass a file_location
20499 rather than a line number to handle_directive.
20500 * gensupport.c (queue_elem): Replace separate filename and lineno
20501 with a file_location.
20502 (queue_pattern): Replace filename and lineno arguments with a
20503 file_location. Update after change to queue_elem.
20504 (process_define_predicate): Replace lineno argument with a
20505 file_location and use error_at for error reporting. Update
20506 after above changes.
20507 (process_rtx): Likewise.
20508 (subst_pattern_match): Likewise.
20509 (get_alternatives_number): Likewise.
20510 (alter_predicate_for_insn): Likewise.
20511 (rtx_handle_directive): Likewise.
20512 (is_predicable): Update after above changes, using error_at rather
20513 than error_with_line.
20514 (has_subst_attribute): Likewise.
20515 (identify_predicable_attribute): Likewise.
20516 (alter_attrs_for_subst_insn): Likewise.
20517 (process_one_cond_exec): Likewise.
20518 (process_substs_on_one_elem): Likewise.
20519 (process_define_subst): Likewise.
20520 (check_define_attr_duplicates): Likewise.
20521 (read_md_rtx): Update after change to queue_elem.
20523 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20525 * genoutput.c (next_index_number): Delete.
20526 (data): Remove index_number.
20527 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
20528 (main): Remove manipulation of next_index_number.
20530 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
20532 * genattrtab.c (check_attr_value): Remove handling of null attrs.
20533 (make_canonical): Likewise.
20535 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
20537 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
20538 instead of adjust_address_nv.
20539 (restore_stack_nonlocal): Likewise.
20540 (nonlocal_goto): Likewise.
20542 2015-07-16 Tom de Vries <tom@codesourcery.com>
20544 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
20545 not have a corresponding loop header phi.
20547 2015-07-16 Tom de Vries <tom@codesourcery.com>
20549 * tree-parloops.c (create_loads_for_reductions): Handle case that
20550 reduction is unused.
20552 2015-07-16 Richard Biener <rguenther@suse.de>
20554 PR tree-optimization/66894
20555 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
20556 about deriving NE_EXPR from truncated values.
20558 2015-07-16 Martin Liska <mliska@suse.cz>
20561 (object_allocator): Add new class.
20562 (pool_allocator::initialize): Use the underlying class.
20563 (pool_allocator::allocate): Likewise.
20564 (pool_allocator::remove): Likewise.
20565 (operator new): A new generic allocator.
20566 * asan.c (struct asan_mem_ref): Remove unused members.
20567 (asan_mem_ref_new): Replace new operator with
20568 object_allocator::allocate.
20569 (free_mem_ref_resources): Change deallocation.
20570 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
20571 with object_allocator.
20572 * config/sh/sh.c (add_constant): Replace new operator with
20573 object_allocator::allocate.
20574 (sh_reorg): Change call to a release method.
20575 * cselib.c (struct elt_list): Remove unused members.
20576 (new_elt_list): Replace new operator with
20577 object_allocator::allocate.
20578 (new_elt_loc_list): Likewise.
20579 (new_cselib_val): Likewise.
20580 (unchain_one_elt_list): Change delete operator with remove method.
20581 (unchain_one_elt_loc_list): Likewise.
20582 (unchain_one_value): Likewise.
20583 (cselib_finish): Release newly added static allocators.
20584 * cselib.h (struct cselib_val): Remove unused members.
20585 (struct elt_loc_list): Likewise.
20586 * df-problems.c (df_chain_alloc): Replace pool_allocator with
20588 * df-scan.c (struct df_scan_problem_data): Likewise.
20589 (df_scan_alloc): Likewise.
20590 * df.h (struct dataflow): Likewise.
20591 * dse.c (struct read_info_type): Likewise.
20592 (struct insn_info_type): Likewise.
20593 (struct dse_bb_info_type): Likewise.
20594 (struct group_info): Likewise.
20595 (struct deferred_change): Likewise.
20596 (get_group_info): Likewise.
20597 (delete_dead_store_insn): Likewise.
20598 (free_read_records): Likewise.
20599 (replace_read): Likewise.
20600 (check_mem_read_rtx): Likewise.
20601 (scan_insn): Likewise.
20602 (dse_step1): Likewise.
20603 (dse_step7): Likewise.
20604 * et-forest.c (struct et_occ): Remove unused members.
20605 (et_new_occ): Use allocate instead of new operator.
20606 (et_new_tree): Likewise.
20607 (et_free_tree): Call release method explicitly.
20608 (et_free_tree_force): Likewise.
20609 (et_free_pools): Likewise.
20610 (et_split): Use remove instead of delete operator.
20611 * et-forest.h (struct et_node): Remove unused members.
20612 * ipa-cp.c: Change pool_allocator to object_allocator.
20613 * ipa-inline-analysis.c: Likewise.
20614 * ipa-profile.c: Likewise.
20615 * ipa-prop.c: Likewise.
20616 * ipa-prop.h: Likewise.
20617 * ira-build.c (initiate_cost_vectors): Cast return value.
20618 (ira_allocate_cost_vector): Likewise.
20619 * ira-color.c (struct update_cost_record): Remove unused members.
20620 * lra-int.h (struct lra_live_range): Likewise.
20621 (struct lra_copy): Likewise.
20622 (struct lra_insn_reg): Likewise.
20623 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
20624 * lra.c (new_insn_reg): Replace new operator with allocate method.
20625 (free_insn_regs): Same for operator delete.
20626 (finish_insn_regs): Release new static allocator.
20627 (finish_insn_recog_data): Likewise.
20628 (lra_free_copies): Replace delete operator with remove method.
20629 (lra_create_copy): Replace operator new with allocate method.
20630 (invalidate_insn_data_regno_info): Same for remove method.
20631 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
20632 (free_debug_insn_changes): Replace delete operator with remove method.
20633 (replace_oldest_value_reg): Replace operator new with allocate method.
20634 (pass_cprop_hardreg::execute): Release new static variable.
20635 * sched-deps.c (sched_deps_init): Change pool_allocator to
20637 * sel-sched-ir.c: Likewise.
20638 * sel-sched-ir.h: Likewise.
20639 * stmt.c (expand_case): Likewise.
20640 (expand_sjlj_dispatch_table): Likewise.
20641 * tree-sra.c (struct access): Remove unused members.
20642 (struct assign_link): Likewise.
20643 (sra_deinitialize): Release newly added static pools.
20644 (create_access_1):Replace operator new with allocate method.
20645 (build_accesses_from_assign): Likewise.
20646 (create_artificial_child_access): Likewise.
20647 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
20648 pool_allocator to object_allocator.
20649 * tree-ssa-pre.c: Likewise.
20650 * tree-ssa-reassoc.c: Likewise.
20651 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
20652 * tree-ssa-strlen.c: Likewise.
20653 * tree-ssa-structalias.c: Likewise.
20654 * var-tracking.c (onepart_pool_allocate): New function.
20655 (unshare_variable): Use the newly added function.
20656 (variable_merge_over_cur): Likewise.
20657 (variable_from_dropped): Likewise.
20658 (variable_was_changed): Likewise.
20659 (set_slot_part): Likewise.
20660 (emit_notes_for_differences_1): Likewise.
20661 (vt_finalize): Release newly added static pools.
20663 2015-07-16 Martin Jambor <mjambor@suse.cz>
20665 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
20666 all uses. Fix two typos in its general comment.
20667 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
20669 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
20671 * config/i386/linux-common.h (LINK_MPX): New.
20672 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
20673 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
20674 indicating '-z bndplt' support by linker.
20675 * configure: Regenerate.
20676 * config.in: Regenerate.
20678 2015-07-16 Richard Biener <rguenther@suse.de>
20680 * fold-const.c (fold_widened_comparison): Remove.
20681 (fold_sign_changed_comparison): Likewise.
20682 (fold_comparison): Move widened and sign-changed comparison
20684 * match.pd: ... to patterns here.
20685 * generic-match-head.c: Include target.h.
20686 * gimple-match-head.c: Likewise.
20688 2015-07-16 Richard Biener <rguenther@suse.de>
20690 * tree-ssa-dom.c (dom_valueize): New function.
20691 (record_temporary_equivalences): Also record equivalences
20692 for dominating stmts that have uses of equivalences we are
20695 2015-07-16 Bin Cheng <bin.cheng@arm.com>
20697 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
20698 add_autoinc_candidates.
20699 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
20700 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
20701 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
20702 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
20704 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
20705 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
20706 Remove parameter struct iv*. Call add_autoinc_candidates here.
20707 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
20708 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
20710 (find_iv_candidates): Call new functions.
20712 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
20714 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
20715 uninitialized-variable warning.
20717 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
20720 * config/sh/sh.md (movdi): Split simple reg move to two movsi
20721 when the destination is R0.
20723 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
20726 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
20727 * config/i386/i386.c (ix86_expand_pextr): New function.
20728 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
20729 for non-lowpart subregs.
20730 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
20731 (insv<mode>): Use SWI248 mode iterator.
20732 (insv<mode>_1): Ditto.
20734 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20735 Sebastian Pop <s.pop@samsung.com>
20737 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
20738 iterator to use_stmt.
20740 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20741 Sebastian Pop <s.pop@samsung.com>
20743 * graphite-scop-detection.c (build_scops_1): Discard scops for
20746 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20747 Sebastian Pop <s.pop@samsung.com>
20749 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
20750 case of a return statement in scop.
20752 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
20753 Sebastian Pop <s.pop@samsung.com>
20755 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
20756 INTEGER_TYPE parameters.
20757 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
20758 VECTOR_CST in scan_tree_for_params.
20759 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
20761 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20763 * gimple-pretty-print.h: Don't include pretty-print.h.
20764 * tree-streamer.h: Don't include lto-streamer.h.
20765 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
20766 * gimple-streamer-in.c: Remove redundant includes.
20767 * gimple-streamer-out.c: Likewise.
20768 * ipa-devirt.c: Likewise.
20769 * ipa-icf.c: Likewise.
20770 * ipa-inline-analysis.c: Likewise.
20771 * ipa-polymorphic-call.c: Likewise.
20772 * ipa-profile.c: Likewise.
20773 * ipa-prop.c: Likewise.
20774 * ipa-pure-const.c: Likewise.
20775 * lto-cgraph.c: Likewise.
20776 * lto-streamer-in.c: Likewise.
20777 * lto-streamer-out.c: Likewise.
20778 * lto-streamer.c: Likewise.
20779 * tree-streamer-in.c: Likewise.
20780 * tree-streamer-out.c: Likewise.
20781 * tree-streamer.c: Likewise.
20783 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
20785 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
20787 * opts.c: Remove multiline #include comment.
20789 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
20791 * config/nvptx/mkoffload.c (process): Add C++ protection to
20794 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
20797 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
20798 null before IEEE 128-bit floating point support patch.
20800 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20802 * simplify-rtx.c (simplify_ternary_operation): Add simplification
20803 for (!c) != {0,...,0} ? a : b for vector modes.
20805 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
20806 Martin Jambor <mjambor@suse.cz>
20808 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
20809 struct func_body_info* instead of struct ipa_node_params*, expecting
20810 fbi->info to be filled in. Replace throughout. Adjust call to
20811 ipa_load_from_parm_agg.
20812 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
20813 instead of struct ipa_node_params*. Adjust calls to other functions
20814 so that they pass either fbi or fbi->info.
20815 (set_switch_stmt_execution_predicate): Likewise.
20816 (will_be_nonconstant_predicate): Likewise.
20817 (compute_bb_predicates): Likewise.
20818 (estimate_function_body_sizes): Move asserts earlier. Fill in
20819 struct func_body_info, replace parms_info with fbi.info. Adjust
20820 calls to functions that now accept struct func_body_info.
20821 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
20822 (struct func_body_info): Likewise.
20823 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
20824 remove static. Adjust callers.
20825 (ipa_load_from_parm_agg): Remove.
20826 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
20827 (func_body_info): Likewise.
20828 (ipa_load_from_parm_agg): Adjust prototype.
20830 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
20832 * gensupport.c (rtx_handle_directive): Adjust.
20833 * read-rtl.c (apply_iterators): Take vector to add rtxs to
20834 instead of expr list rtx.
20835 (add_define_attr_for_define_subst): Likewise.
20836 (add_define_subst_attr): Likewise.
20837 (read_subst_mapping): Likewise.
20838 (read_rtx): Likewise.
20839 * rtl.h (read_rtx): Adjust.
20841 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20843 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
20845 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20848 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
20849 (*tls_local_dynamic_base_64_<mode>): Ditto.
20850 (*tls_local_dynamic_base_64_largepic): Ditto.
20851 (tls_global_dynamic_64_<mode>): Update expander pattern.
20852 (tls_local_dynamic_base_64_<mode>): Ditto.
20854 2015-07-15 Richard Biener <rguenther@suse.de>
20856 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
20857 and bool_var == 1 -> bool_var simplifications ...
20858 * match.pd: ... to patterns here. Factor out negate_expr_p
20859 cases from the A - B -> A + (-B) patterns as negate_expr_p
20860 predicate and add a -(A + B) -> (-B) - A pattern.
20862 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20864 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
20866 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
20867 Robert Suchanek <robert.suchanek@imgtec.com>
20869 * config/mips/mips.c (mips_int_mask): New enum.
20870 (mips_shadow_set): Likewise.
20871 (int_mask): New variable.
20872 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
20873 (machine_function): Add int_mask and use_shadow_register_set.
20874 (mips_attribute_table): Add attribute handlers for interrupt and
20875 use_shadow_register_set.
20876 (mips_interrupt_mask): New static function.
20877 (mips_handle_interrupt_attr): Likewise.
20878 (mips_handle_use_shadow_register_set_attr): Likewise.
20879 (mips_use_shadow_register_set): Change return type to enum
20880 mips_shadow_set. Add argument handling for use_shadow_register_set
20882 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
20883 compare with mips_shadow_set enum.
20884 (mips_compute_frame_info): Add interrupt mask and
20885 use_shadow_register_set to per-function information structure.
20886 Add a stack slot for EPC unconditionally.
20887 (mips_expand_prologue): Compare use_shadow_register_set value
20888 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
20889 masked interrupt register but in EIC mode use K0 and save Cause in K0.
20890 EPC saved and restored unconditionally. Use PMODE_INSN macro when
20891 copying the stack pointer from the shadow register set.
20892 * config/mips/mips.h (SR_IM0): New define.
20893 * config/mips/mips.md (mips_rdpgpr): Rename to...
20894 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
20895 * doc/extend.texi (Declaring Attributes of Functions): Document
20896 optional arguments for interrupt and use_shadow_register_set
20899 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
20901 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
20902 interrupt attribute.
20903 (mips_expand_prologue): Disable the floating point unit in an ISR.
20904 * config/mips/mips.h (SR_COP1): New define.
20906 2015-07-15 Richard Biener <rguenther@suse.de>
20908 * genmatch.c (parser::peek, parser::peek_ident): Add argument
20909 to tell how many tokens to peek ahead (default 1).
20910 (parser::eat_token, parser::eat_ident): Return token consumed.
20911 (parser::parse_result): Parse new switch statement.
20912 * match.pd: Use case statements where appropriate.
20914 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20916 PR rtl-optimization/58066
20917 * calls.c (expand_call): Precompute register parameters before stack
20918 alignment is performed.
20920 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
20922 PR rtl-optimization/66838
20923 * postreload.c (reload_cse_move2add): Also process
20924 CALL_INSN_FUNCTION_USAGE when resetting information of
20925 call-clobbered registers.
20927 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20928 Cesar Philippidis <cesar@codesourcery.com>
20929 Chung-Lin Tang <cltang@codesourcery.com>
20931 * config/nios2/constraints.md (U, v): New constraints.
20932 * config/nios2/predicates.md (rdprs_dcache_operand): New.
20933 (ldstex_memory_operand): New.
20934 * config/nios2/sync.md: New file.
20935 * config/nios2/nios2.md (unspecv): Add new builtin function
20937 (rdprs, flushd, flushda, wrpie, eni): New patterns.
20938 (top-level): Include sync.md.
20939 * config/nios2/nios2.c (N2_FTYPES): Add function types for
20941 (N2_BUILTINS): Add arch field setting, add new builtins.
20942 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
20944 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
20945 Also handle ldex/stex/ldsex/stsex builtins.
20946 (nios2_expand_rdprs_builtin): New function.
20947 (nios2_expand_cache_builtin): New function.
20948 (nios2_expand_wrpie_builtin): New function.
20949 (nios2_expand_eni_builtin): New function.
20950 (nios2_expand_builtin): Add arch field handling and new builtin
20952 * doc/extend.texi (Altera Nios II Built-in Functions): Document
20954 * doc/md.texi (Machine Constraints): Document U and v constraints.
20956 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20957 Cesar Philippidis <cesar@codesourcery.com>
20958 Chung-Lin Tang <cltang@codesourcery.com>
20960 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
20961 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
20962 callee_save_reg_size and uses_anonymous_args fields.
20963 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
20964 (nios2_create_cfa_notes): New function.
20965 (nios2_adjust_stack): New function for adjusting stack.
20966 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
20967 Use nios2_adjust_stack.
20968 (nios2_expand_epilogue): Likewise.
20969 (nios2_expand_return): New function.
20970 (nios2_can_use_return_insn): Update for CDX pop.n usage.
20971 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
20972 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
20973 * config/nios2/nios2.md (return): Use nios2_expand_return.
20975 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
20976 Cesar Philippidis <cesar@codesourcery.com>
20977 Chung-Lin Tang <cltang@codesourcery.com>
20979 * config/nios2/predicates.md (pop_operation): New.
20980 (ldwm_operation, stwm_operation): New.
20981 (nios2_hard_register_operand): New.
20982 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
20983 (ldstwm_operation_p): Declare.
20984 (gen_ldstwm_peep): Declare.
20985 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
20986 (base_reg_adjustment_p): New.
20987 (pop_operation_p): New.
20988 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
20989 (nios2_ldstwm_regset_p): New.
20990 (ldstwm_operation_p): New.
20992 (nios2_ldst_parallel): New.
20993 (struct ldswm_operand): Declare.
20994 (compare_ldstwm_operands): New.
20995 (can_use_cdx_ldstw): New.
20996 (gen_ldstwm_peep): New.
20997 * config/nios2/nios2-ldstwm.sml: New.
20998 * config/nios2/nios2.md: Include ldstwm.md.
20999 * config/nios2/ldstwm.md: Generated.
21001 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21002 Cesar Philippidis <cesar@codesourcery.com>
21003 Chung-Lin Tang <cltang@codesourcery.com>
21005 * config/nios2/nios2.h (LABEL_ALIGN): Define.
21006 (REG_ALLOC_ORDER): Define.
21007 (ADJUST_REG_ALLOC_ORDER): Define.
21008 (HONOR_REG_ALLOC_ORDER): Define.
21009 (CDX_REG_P): Define.
21010 (ANDCLEAR_INT): Define.
21011 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
21012 (nios2_label_align): Declare.
21013 (nios2_cdx_narrow_form_p): Declare.
21014 (nios2_adjust_reg_alloc_order): Declare.
21015 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
21017 (nios2_large_unspec_reloc_p): New function, split from...
21018 (nios2_legitimate_pic_operand_p): ...here.
21019 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
21020 (nios2_print_operand_punct_valid_p): New.
21021 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
21022 (split_mem_address): New.
21023 (split_alu_insn): New.
21025 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
21026 (enum nios2_add_insn_kind): New.
21027 (nios2_add_insn_names, nios2_add_insn_narrow): New.
21028 (nios2_add_insn_classify): New.
21029 (nios2_add_insn_asm): New.
21030 (nios2_cdx_narrow_form_p): New.
21031 (label_align, min_labelno, max_labelno): New.
21032 (nios2_reorg): New.
21033 (nios2_label_align): New.
21034 (nios2_adjust_reg_alloc_order): New.
21035 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
21036 (TARGET_MACHINE_DEPENDENT_REORG): Define.
21037 * config/nios2/constraints.md (P): New constraint.
21038 * config/nios2/predicates.md (const_and_operand): New.
21039 (and_operand): New.
21040 (stack_memory_operand): New.
21041 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
21042 (length): Update to use nios2_cdx_narrow_form_p().
21043 (type): Add new insn type values.
21044 (control, alu, st, ld, shift): Update insn reservations with
21045 new insn type values.
21046 (*high, *lo_sum): Define new insn patterns for constant generation.
21047 (movqi_internal, movhi_internal, movsi_internal): Reduce
21048 alternatives, update asm template to handle CDX variants, update
21050 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
21051 template, update type attributes.
21052 (extendhisi2, extendqi<mode>2): Likewise.
21053 (addsi3): Change to use function for asm string.
21054 (subsi3): Add CDX notation to asm template, update type attributes.
21055 (negsi3, one_cmplsi3): Likewise.
21056 (andsi3): New pattern, specialized from logical patterns.
21057 (<code>si3): Remove and case, combine alternatives, update asm
21059 (<shift_op>si3): Add CDX notation, update type attributes.
21060 (rotrsi3): Update type attribute.
21061 (*merge, extzv, insv): New insn patterns.
21062 (return): Change to define_expand.
21063 (simple_return): Add CDX notation, update type attributes.
21064 (indirect_jump): Add CDX notation.
21065 (jump): Update asm cases, update length attribute expression.
21066 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
21067 (nios2_cbranch): Update asm cases and length attribute expression
21068 to handle CDX variants.
21069 (nios2_cmp<code>): Update asm template.
21070 (nop): Add CDX notation, update type attributes.
21071 (trap): Add CDX notation.
21072 (ctrapsi4): Update asm cases and length attribute expression to
21073 handle CDX variant.
21074 * doc/md.texi (Machine Constraints): Document P constraint.
21076 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21077 Cesar Philippidis <cesar@codesourcery.com>
21078 Chung-Lin Tang <cltang@codesourcery.com>
21080 * config/nios2/nios2.h (SMALL_INT12): New macro.
21081 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
21082 (nios2_valid_addr_expr_p): Use it.
21083 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
21084 with implicit "io" instructions on R2.
21085 * config/nios2/constraints.md (w): New constraint.
21086 * config/nios2/predicates.md (ldstio_memory_operand): New.
21087 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
21088 operand predicate and constraint.
21089 (ld<bh>io_signed, st<bhw>io>): Likewise.
21090 * doc/md.texi (Machine Constraints): Document w constraint.
21092 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21093 Cesar Philippidis <cesar@codesourcery.com>
21094 Chung-Lin Tang <cltang@codesourcery.com>
21096 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
21097 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
21098 Nios II architecture level.
21099 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
21100 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
21101 (OPTION_DEFAULT_SPECS): Define.
21102 (ASM_SPEC): Add -march= spec strings.
21103 * config/nios2/nios2.c (nios2_option_override): Check for
21104 conflicts involving new options.
21105 * config.gcc (nios2*-*-*): Support --with-arch=.
21106 * doc/invoke.texi (Option Summary, Nios II Options): Document
21107 -march=, -mbmx, and -mcdx.
21109 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
21111 PR rtl-optimization/66626
21112 * lra-constraints.c (lra_constraints): Prevent equivalence
21113 substitution for static chain pseudo in functions with nonlocal
21116 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
21118 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
21119 (nios2_emit_stack_limit_check): Add size parameter. Handle
21120 -fstack-limit-symbol as well as -fstack-limit-register.
21121 (nios2_expand_prologue): Emit only a single stack limit check,
21122 even if multiple stack adjustments are required.
21123 (nios2_option_override): Diagnose unsupported combination of -fpic
21124 and -stack-limit-symbol.
21126 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
21128 * Makefile.in (top_srcdir): New.
21129 * configure.ac: Use AM_ZLIB.
21130 * configure: Regeneated.
21132 2015-07-14 Matthias Klose <doko@ubuntu.com>
21135 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
21137 2015-07-14 Richard Biener <rguenther@suse.de>
21139 PR tree-optimization/66863
21140 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
21141 what we record for conversion use stmt lhs inequalities.
21143 2015-07-14 Richard Biener <rguenther@suse.de>
21145 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
21146 (decision_tree::gen_gimple): Likewise.
21148 2015-07-14 Tom de Vries <tom@codesourcery.com>
21150 * gcc.c (greater_than_spec_func): Declare forward.
21151 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
21152 -ftree-parallelize-loops={0,1}.
21153 (static_spec_functions): Add greater_than_spec_func function with name
21155 (greater_than_spec_func): New function.
21157 2015-07-14 Richard Biener <rguenther@suse.de>
21159 * tree-ssa-dom.c (record_temporary_equivalences): Merge
21160 wideing type conversion case from record_equivalences_from_incoming_edge
21161 and use record_equality to record equivalences.
21162 (record_equivalences_from_incoming_edge): Call
21163 record_temporary_equivalences.
21165 2015-07-14 Richard Biener <rguenther@suse.de>
21167 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
21168 (struct if_expr): New.
21169 (struct with_expr): Likewise.
21170 (is_a_helper): Add helpers for if_expr and with_expr.
21171 (struct simplify): Add simplify_kind enum and member. Remove
21173 (simplify::simplify): Adjust.
21174 (lower_commutative): Adjust.
21175 (lower_opt_convert): Likewise.
21176 (lower_cond): Likewise.
21177 (replace_id): Handle with_expr and if_expr.
21178 (lower_for): Adjust.
21179 (dt_simplify::gen_1): New recursive worker, split out from ...
21180 (dt_simplify::gen): ... here. Deal with if and with expansion
21182 (capture_info::capture_info): Take context argument
21183 (capture_info::walk_result): Only analyze specific result.
21184 (parser::parse_result): New function.
21185 (parser::parse_simplify): Adjust to parse ifs with then end
21187 (parser::parse_if): Simplify.
21188 (parser::parse_pattern): Pass down simplify kind.
21189 * match.pd: Convert if structure to new syntax.
21191 2015-07-13 Marek Polacek <polacek@redhat.com>
21193 * rtl.c (rtx_equal_p_cb): Fix typo.
21195 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
21197 * omega.h: Don't include config.h, don't include params.h again if
21198 omega.h has already been included.
21199 * graphite-poly.h: Include sese.h.
21200 * graphite.c: Don't include sese.h, remove needless includes and
21201 minimize includes outside #ifdef HAVE_isl block.
21202 * graphite-blocking.c: Don't include sese.h, remove needless includes,
21203 and wrap entire file in #ifdef HAVE_isl
21204 * graphite-dependences.c: Likewise.
21205 * graphite-interchange.c: Likewise.
21206 * graphite-isl-ast-to-gimple.c: Likewise.
21207 * graphite-optimize-isl.c: Likewise.
21208 * graphite-poly.c: Likewise.
21209 * graphite-scop-detection.c: Likewise.
21210 * graphite-sese-to-poly.c: Likewise.
21212 2015-07-13 Tom de Vries <tom@codesourcery.com>
21214 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
21216 2015-07-13 Renlin Li <renlin.li@arm.com>
21219 * simplify-rtx.c (simplify_const_relational_operation): Add
21220 side_effects_p checks.
21222 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
21224 * bitmap.h: Fix double word typos.
21225 * builtins.c: Same.
21227 * cfgloopmanip.c: Same.
21230 * cgraphclones.c: Same.
21232 * config/aarch64/aarch64-protos.h: Same.
21233 * config/aarch64/aarch64.c: Same.
21234 * config/aarch64/aarch64.md: Same.
21235 * config/arm/arm.md: Same.
21236 * config/arm/arm1020e.md: Same.
21237 * config/arm/arm1026ejs.md: Same.
21238 * config/arm/arm926ejs.md: Same.
21239 * config/arm/fa526.md: Same.
21240 * config/arm/fa606te.md: Same.
21241 * config/arm/fa626te.md: Same.
21242 * config/arm/fa726te.md: Same.
21243 * config/arm/fmp626.md: Same.
21244 * config/darwin.c: Same.
21245 * config/epiphany/epiphany.c: Same.
21246 * config/frv/frv.c: Same.
21247 * config/ft32/ft32.c: Same.
21248 * config/gnu-user.h: Same.
21249 * config/h8300/constraints.md: Same.
21250 * config/i386/i386.c: Same.
21251 * config/i386/i386.md: Same.
21252 * config/iq2000/iq2000.md: Same.
21253 * config/mips/mips.c: Same.
21254 * config/mmix/mmix.md: Same.
21255 * config/moxie/moxie.c: Same.
21256 * config/nds32/nds32.md: Same.
21257 * config/pa/pa.h: Same.
21258 * config/rs6000/aix.h: Same.
21259 * config/rs6000/rs6000.h: Same.
21260 * config/sh/sh.c: Same.
21261 * config/tilegx/tilegx.md: Same.
21262 * config/tilepro/gen-mul-tables.cc: Same.
21265 * doc/invoke.texi: Same.
21267 * dwarf2out.c: Same.
21270 * genmatch.c: Same.
21271 * gimplify.c: Same.
21272 * hash-table.h: Same.
21273 * internal-fn.c: Same.
21275 * ipa-devirt.c: Same.
21278 * ipa-profile.c: Same.
21279 * ipa-prop.c: Same.
21280 * ipa-prop.h: Same.
21283 * reg-stack.c: Same.
21284 * regcprop.c: Same.
21289 * tree-inline.c: Same.
21290 * tree-sra.c: Same.
21291 * tree-ssa-dom.c: Same.
21292 * tree-ssa-loop-ivopts.c: Same.
21293 * tree-ssa-structalias.c: Same.
21294 * tree-ssa-tail-merge.c: Same.
21295 * tree-ssa-ter.c: Same.
21296 * tree-ssa-threadupdate.c: Same.
21297 * tree-ssa-uninit.c: Same.
21298 * tree-ssanames.c: Same.
21299 * tree-vect-loop-manip.c: Same.
21300 * tree-vrp.c: Same.
21302 * valtrack.c: Same.
21305 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21307 PR middle-end/66726
21308 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
21309 tree_ssa_phiopt_worker): Call it.
21311 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
21313 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
21314 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
21317 2015-07-11 Marek Polacek <polacek@redhat.com>
21319 PR middle-end/66353
21320 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
21321 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
21322 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
21323 rather than bb_has_abnormal_call_pred.
21324 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
21325 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
21326 rather than bb_has_abnormal_call_pred.
21328 2015-07-10 Anatoly Sokolov <aesok@post.ru>
21330 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
21331 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
21332 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
21333 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
21334 v850_legitimate_address_p): New functions.
21335 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
21337 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
21340 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
21341 indirect sibcall with register arguments if register available
21342 for argument passing.
21343 (init_cumulative_args): Set cfun->machine->arg_reg_available
21344 to (cum->nregs > 0) or to true if function has a variable
21346 (function_arg_advance_32): Set cfun->machine->arg_reg_available
21347 to false if cum->nregs <= 0.
21348 * config/i386/i386.h (machine_function): Add arg_reg_available.
21350 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21352 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
21353 and gen_higpart instead of gen_rtx_SUBREG.
21354 * config/i386/i386.md
21355 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
21356 (read-modify peephole2): Use gen_lowpart instead of
21357 gen_rtx_SUBREG for operand 5.
21359 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21361 * config/tilepro/gen-mul-tables.cc (main): Change include list for
21363 * config/tilepro/mul-tables.c: Regenerate.
21364 * config/tilegx/mul-tables.c: Regenerate.
21366 2015-07-10 Richard Biener <rguenther@suse.de>
21368 * fold-const.c (distribute_bit_expr): Remove.
21369 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
21370 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
21371 to A & (B | C) and simplifying A << C1 << C2 to ...
21372 * match.pd: ... patterns here.
21374 2015-07-10 Jiong Wang <jiong.wang@arm.com>
21376 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
21377 Mark mem as READONLY and NOTRAP for PIC symbol.
21379 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
21381 * gimple-predict.h: New file.
21382 (gimple_predict_predictor, gimple_predict_set_predictor,
21383 gimple_predict_outcome, gimple_predict_set_outcome,
21384 gimple_build_predict): Relocate here.
21385 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
21386 gimple_predict_outcome, gimple_predict_set_outcome): Move to
21388 * gimple.c (gimple_build_predict): Move to gimple-predict.h
21389 * basic-block.h: Don't include cfghooks.h.
21390 * backend.h: Don't include predict.h.
21391 * cfghooks.h: Include predict.h.
21392 * gimple-pretty-print.c: Include gimple-predict.h.
21393 * gimplify.c: Likwise.
21394 * predict.c: Adjust includes.
21395 * tree-inline.c: Likewise.
21396 * asan.c: Likewise.
21397 * auto-inc-dec.c: Likewise.
21398 * auto-profile.c: Likewise.
21399 * bb-reorder.c: Likewise.
21400 * builtins.c: Likewise.
21401 * caller-save.c: Likewise.
21402 * calls.c: Likewise.
21403 * cfganal.c: Likewise.
21404 * cfgbuild.c: Likewise.
21406 * cfgcleanup.c: Likewise.
21407 * cfgexpand.c: Likewise.
21408 * cfghooks.c: Likewise.
21409 * cfgloopanal.c: Likewise.
21410 * cfgloop.c: Likewise.
21411 * cfgloopmanip.c: Likewise.
21412 * cfgrtl.c: Likewise.
21413 * cgraph.c: Likewise.
21414 * cgraphunit.c: Likewise.
21415 * combine.c: Likewise.
21416 * cprop.c: Likewise.
21419 * dojump.c: Likewise.
21421 * except.c: Likewise.
21422 * expmed.c: Likewise.
21423 * expr.c: Likewise.
21424 * final.c: Likewise.
21425 * fold-const.c: Likewise.
21426 * function.c: Likewise.
21427 * fwprop.c: Likewise.
21428 * gcc-plugin.h: Likewise.
21429 * gcse.c: Likewise.
21430 * genattrtab.c: Likewise.
21431 * genemit.c: Likewise.
21432 * gengtype.c: Likewise.
21433 * genopinit.c: Likewise.
21434 * genoutput.c: Likewise.
21435 * genpreds.c: Likewise.
21436 * genrecog.c: Likewise.
21437 * gimple-fold.c: Likewise.
21438 * gimple-iterator.c: Likewise.
21439 * gimple-ssa-isolate-paths.c: Likewise.
21440 * gimple-ssa-strength-reduction.c: Likewise.
21441 * graph.c: Likewise.
21442 * graphite-blocking.c: Likewise.
21443 * graphite.c: Likewise.
21444 * graphite-dependences.c: Likewise.
21445 * graphite-interchange.c: Likewise.
21446 * graphite-isl-ast-to-gimple.c: Likewise.
21447 * graphite-optimize-isl.c: Likewise.
21448 * graphite-poly.c: Likewise.
21449 * graphite-scop-detection.c: Likewise.
21450 * graphite-sese-to-poly.c: Likewise.
21451 * haifa-sched.c: Likewise.
21452 * ifcvt.c: Likewise.
21453 * internal-fn.c: Likewise.
21454 * ipa-cp.c: Likewise.
21455 * ipa-profile.c: Likewise.
21456 * ipa-split.c: Likewise.
21457 * ipa-utils.c: Likewise.
21458 * ira-build.c: Likewise.
21459 * ira-color.c: Likewise.
21460 * ira-conflicts.c: Likewise.
21461 * ira-costs.c: Likewise.
21462 * ira-emit.c: Likewise.
21463 * ira-lives.c: Likewise.
21464 * jump.c: Likewise.
21465 * loop-doloop.c: Likewise.
21466 * loop-init.c: Likewise.
21467 * loop-invariant.c: Likewise.
21468 * loop-unroll.c: Likewise.
21469 * lower-subreg.c: Likewise.
21470 * lra-assigns.c: Likewise.
21472 * lra-coalesce.c: Likewise.
21473 * lra-constraints.c: Likewise.
21474 * lra-lives.c: Likewise.
21475 * lto-cgraph.c: Likewise.
21476 * lto-streamer-in.c: Likewise.
21477 * mode-switching.c: Likewise.
21478 * modulo-sched.c: Likewise.
21479 * omp-low.c: Likewise.
21480 * optabs.c: Likewise.
21481 * passes.c: Likewise.
21482 * postreload.c: Likewise.
21483 * postreload-gcse.c: Likewise.
21484 * profile.c: Likewise.
21485 * recog.c: Likewise.
21486 * regstat.c: Likewise.
21487 * reload1.c: Likewise.
21488 * reorg.c: Likewise.
21489 * rtlanal.c: Likewise.
21490 * sched-ebb.c: Likewise.
21491 * sel-sched-ir.c: Likewise.
21492 * sese.c: Likewise.
21493 * shrink-wrap.c: Likewise.
21494 * simplify-rtx.c: Likewise.
21495 * stmt.c: Likewise.
21496 * store-motion.c: Likewise.
21497 * tracer.c: Likewise.
21498 * trans-mem.c: Likewise.
21499 * tree-call-cdce.c: Likewise.
21500 * tree-cfg.c: Likewise.
21501 * tree-cfgcleanup.c: Likewise.
21502 * tree-chkp.c: Likewise.
21503 * tree-complex.c: Likewise.
21504 * tree-eh.c: Likewise.
21505 * tree-if-conv.c: Likewise.
21506 * tree-loop-distribution.c: Likewise.
21507 * tree-outof-ssa.c: Likewise.
21508 * tree-parloops.c: Likewise.
21509 * tree-predcom.c: Likewise.
21510 * tree-pretty-print.c: Likewise.
21511 * tree-profile.c: Likewise.
21512 * tree-sra.c: Likewise.
21513 * tree-ssa.c: Likewise.
21514 * tree-ssa-coalesce.c: Likewise.
21515 * tree-ssa-dce.c: Likewise.
21516 * tree-ssa-dom.c: Likewise.
21517 * tree-ssa-forwprop.c: Likewise.
21518 * tree-ssa-ifcombine.c: Likewise.
21519 * tree-ssa-loop-ch.c: Likewise.
21520 * tree-ssa-loop-im.c: Likewise.
21521 * tree-ssa-loop-ivcanon.c: Likewise.
21522 * tree-ssa-loop-ivopts.c: Likewise.
21523 * tree-ssa-loop-manip.c: Likewise.
21524 * tree-ssa-loop-prefetch.c: Likewise.
21525 * tree-ssa-loop-unswitch.c: Likewise.
21526 * tree-ssa-math-opts.c: Likewise.
21527 * tree-ssa-phiopt.c: Likewise.
21528 * tree-ssa-pre.c: Likewise.
21529 * tree-ssa-reassoc.c: Likewise.
21530 * tree-ssa-sink.c: Likewise.
21531 * tree-ssa-tail-merge.c: Likewise.
21532 * tree-ssa-threadedge.c: Likewise.
21533 * tree-ssa-threadupdate.c: Likewise.
21534 * tree-switch-conversion.c: Likewise.
21535 * tree-tailcall.c: Likewise.
21536 * tree-vect-data-refs.c: Likewise.
21537 * tree-vect-loop.c: Likewise.
21538 * tree-vect-loop-manip.c: Likewise.
21539 * tree-vectorizer.c: Likewise.
21540 * tree-vrp.c: Likewise.
21541 * ubsan.c: Likewise.
21542 * value-prof.c: Likewise.
21543 * varasm.c: Likewise.
21544 * var-tracking.c: Likewise.
21545 * config/aarch64/aarch64-builtins.c: Likewise.
21546 * config/aarch64/aarch64.c: Likewise.
21547 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
21548 * config/alpha/alpha.c: Likewise.
21549 * config/arc/arc.c: Likewise.
21550 * config/arm/arm.c: Likewise.
21551 * config/avr/avr.c: Likewise.
21552 * config/bfin/bfin.c: Likewise.
21553 * config/c6x/c6x.c: Likewise.
21554 * config/cr16/cr16.c: Likewise.
21555 * config/cris/cris.c: Likewise.
21556 * config/darwin.c: Likewise.
21557 * config/darwin-c.c: Likewise.
21558 * config/epiphany/epiphany.c: Likewise.
21559 * config/epiphany/mode-switch-use.c: Likewise.
21560 * config/epiphany/resolve-sw-modes.c: Likewise.
21561 * config/fr30/fr30.c: Likewise.
21562 * config/frv/frv.c: Likewise.
21563 * config/ft32/ft32.c: Likewise.
21564 * config/h8300/h8300.c: Likewise.
21565 * config/i386/i386.c: Likewise.
21566 * config/i386/winnt.c: Likewise.
21567 * config/ia64/ia64.c: Likewise.
21568 * config/iq2000/iq2000.c: Likewise.
21569 * config/lm32/lm32.c: Likewise.
21570 * config/m32c/m32c.c: Likewise.
21571 * config/m32r/m32r.c: Likewise.
21572 * config/m68k/m68k.c: Likewise.
21573 * config/mcore/mcore.c: Likewise.
21574 * config/mep/mep.c: Likewise.
21575 * config/microblaze/microblaze.c: Likewise.
21576 * config/mips/mips.c: Likewise.
21577 * config/mmix/mmix.c: Likewise.
21578 * config/mn10300/mn10300.c: Likewise.
21579 * config/moxie/moxie.c: Likewise.
21580 * config/msp430/msp430.c: Likewise.
21581 * config/nds32/nds32.c: Likewise.
21582 * config/nds32/nds32-cost.c: Likewise.
21583 * config/nds32/nds32-fp-as-gp.c: Likewise.
21584 * config/nds32/nds32-intrinsic.c: Likewise.
21585 * config/nds32/nds32-isr.c: Likewise.
21586 * config/nds32/nds32-md-auxiliary.c: Likewise.
21587 * config/nds32/nds32-memory-manipulation.c: Likewise.
21588 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
21589 * config/nds32/nds32-predicates.c: Likewise.
21590 * config/nios2/nios2.c: Likewise.
21591 * config/nvptx/nvptx.c: Likewise.
21592 * config/pa/pa.c: Likewise.
21593 * config/pdp11/pdp11.c: Likewise.
21594 * config/rl78/rl78.c: Likewise.
21595 * config/rs6000/rs6000.c: Likewise.
21596 * config/rx/rx.c: Likewise.
21597 * config/s390/s390.c: Likewise.
21598 * config/sh/sh.c: Likewise.
21599 * config/sh/sh-mem.cc: Likewise.
21600 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
21601 * config/sh/sh_treg_combine.cc: Likewise.
21602 * config/sparc/sparc.c: Likewise.
21603 * config/spu/spu.c: Likewise.
21604 * config/stormy16/stormy16.c: Likewise.
21605 * config/tilegx/tilegx.c: Likewise.
21606 * config/tilepro/tilepro.c: Likewise.
21607 * config/v850/v850.c: Likewise.
21608 * config/vax/vax.c: Likewise.
21609 * config/visium/visium.c: Likewise.
21610 * config/xtensa/xtensa.c: Likewise.
21612 2015-07-10 Richard Biener <rguenther@suse.de>
21614 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
21615 (decision_tree::gen_gimple): Likewise.
21616 (decision_tree::gen_generic): Likewise.
21618 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
21621 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
21622 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
21624 2015-07-10 Jakub Jelinek <jakub@redhat.com>
21626 PR middle-end/66820
21627 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
21628 or ORT_TASK contexts.
21629 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
21632 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21634 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
21637 2015-07-10 Tom de Vries <tom@codesourcery.com>
21639 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
21640 insert nit + 1 bound.
21642 2015-07-10 Richard Biener <rguenther@suse.de>
21644 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
21645 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
21646 (if_convertible_loop_p_1): For this always compute bb predicates.
21647 (if_convertible_loop_p): And free them.
21649 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
21651 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
21654 2015-07-10 Richard Biener <rguenther@suse.de>
21656 PR tree-optimization/66823
21657 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
21658 inverted predicate.
21660 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
21662 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
21663 to handle mips[32|64]r3 and mips[32|64]r5.
21665 2015-07-09 Jakub Jelinek <jakub@redhat.com>
21667 PR middle-end/66633
21668 * tree-nested.c (get_static_chain): Or in a flag into
21669 info->static_chain_added.
21670 (get_frame_field, get_nonlocal_debug_decl): Likewise.
21671 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
21672 2015-07-01 changes.
21673 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
21674 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
21677 PR tree-optimization/66718
21678 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
21680 (vect_simd_lane_linear): New function.
21681 (vectorizable_simd_clone_call): Support using linear arguments for
21682 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
21684 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21687 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
21689 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
21691 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
21692 Use machine mode, not enum machine_mode in the prototype.
21694 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
21695 classify 128-bit floating point support.
21696 (FLOAT128_IBM_P): Likewise.
21697 (FLOAT128_VECTOR_P): Likewise.
21698 (FLOAT128_2REG_P): Likewise.
21699 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
21700 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
21701 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
21702 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
21704 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
21705 tests against TFmode/TDmode, since those modes do not use VSX
21707 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
21709 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
21710 tests against TFmode, etc.
21711 (invalid_e500_subreg): Add tests against IFmode/KFmode.
21712 (reg_offset_addressing_ok_p): Likewise.
21713 (rs6000_legitimate_offset_address_p): Likewise.
21714 (rs6000_legitimize_address): Likewise.
21715 (rs6000_legitimize_reload_address): Likewise.
21716 (rs6000_legitimate_address_p): Clean up tests against TFmode and
21717 TDmode to use the new helper macros, which will include IFmode and
21719 (rs6000_emit_move): Likewise.
21720 (rs6000_darwin64_record_arg_recurse): Likewise.
21721 (print_operand): Likewise.
21722 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
21723 that uses a single vector register as a vector and not as a
21724 floating point register in terms of the calling sequence.
21725 (rs6000_discover_homogeneous_aggregate): Likewise.
21726 (rs6000_return_in_memory): Likewise.
21727 (init_cumulative_args): Likewise.
21728 (rs6000_function_arg_boundary): Likewise.
21729 (rs6000_function_arg_advance_1): Likewise.
21730 (rs6000_function_arg): Likewise.
21731 (rs6000_pass_by_reference): Likewise.
21732 (rs6000_gimplify_va_arg): Likewise.
21733 (rs6000_secondary_reload_memory): Use machine_mode not enum
21735 (rs6000_split_multireg_move): Use new helper macros.
21736 (spe_func_has_64bit_regs_p): Likewise.
21737 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
21738 (output_toc): Use new helper macros.
21739 (rs6000_register_move_cost): Likewise.
21740 (rs6000_function_value): Add IEEE 128-bit floating point calling
21742 (rs6000_libcall_value): Likewise.
21743 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
21744 floating point support.
21745 (rs6000_vector_mode_supported_p): Likewise.
21747 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
21749 PR rtl-optimization/66782
21750 * lra-int.h (struct lra_insn_recog_data): Add comment about
21751 clobbered hard regs for arg_hard_regs.
21752 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
21753 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
21754 Add condition for processing used hard regs.
21755 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
21756 Process clobbered hard regs.
21758 2015-07-09 Michael Matz <matz@suse.de>
21760 * genmatch.c (fprintf_indent): New function.
21761 (operand::gen_transform): Add indent parameter.
21762 (expr::gen_transform, c_expr::gen_transform,
21763 capture::gen_transform): Ditto and use fprintf_indent.
21764 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
21765 (dt_operand::gen, dt_operand::gen_predicate,
21766 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
21767 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
21768 (decision_tree::gen_gimple): Adjust calls and indent generated
21770 (decision_tree::gen_generic): Ditto.
21771 (write_predicate): Ditto.
21773 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
21776 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
21777 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
21778 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
21779 {GENERAL,SSE,MMX}_REG_P where appropriate.
21781 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21783 * lto-streamer.h: Don't include target.h and alloc-pool.h.
21784 * builtins.c: Adjust includes.
21785 * gimple.c: Likewise.
21786 * ipa-icf.c: Likewise.
21787 * lto-opts.c: Likewise.
21788 * ipa-reference.c: Likewise.
21789 * lto-section-out.c: Likewise.
21790 * lto-streamer-in.c: Likewise.
21791 * lto-streamer-out.c: Likewise.
21792 * opts-global.c: Likewise.
21793 * symtab.c: Likewise.
21794 * tree-chkp.c: Likewise.
21795 * tree-ssa-live.c: Likewise.
21796 * tree-streamer-in.c: Likewise.
21797 * tree-streamer-out.c: Likewise.
21798 * config/darwin.c: Likewise.
21799 * config/i386/winnt.c: Likewise.
21801 2015-07-09 Richard Biener <rguenther@suse.de>
21803 * genmatch.c (struct expr): Add force_single_use flag.
21804 (expr::expr): Add copy constructor.
21805 (capture_info::walk_match): Gather force_single_use captures.
21806 (expr::gen_transform): Use possibly NULLified sequence.
21807 (dt_simplify::gen): Apply single-use restrictions by NULLifying
21808 seq if any constrained expr is not single-use.
21809 (parser::parse_expr): Refactor to allow multiple flags. Handle
21810 's' flag to force an expression have a single-use if the pattern
21811 simplifies to more than one statement.
21812 * match.pd: Convert most single_use conditionals to :s flags.
21814 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21816 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
21817 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
21818 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
21820 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
21822 * flags.h: Don't include flag-types.h or options.h.
21823 * opts-common.c: Adjust includes.
21824 * opts-global.c: Likewise.
21825 * common/config/epiphany/epiphany-common.c: Likewise.
21827 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21830 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
21833 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
21836 * config/i386/i386.c (ix86_return_in_memory): Return true
21837 if int_size_in_bytes returns negative for IA MCU.
21839 2015-07-09 Marek Polacek <polacek@redhat.com>
21841 PR tree-optimization/66718
21842 * Makefile.in (OBJS): Add gimple-laddress.o.
21843 * passes.def: Schedule pass_laddress.
21844 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
21845 * tree-pass.h (make_pass_laddress): Declare.
21846 * gimple-laddress.c: New file.
21848 2015-07-09 Richard Biener <rguenther@suse.de>
21850 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
21852 2015-07-09 Richard Biener <rguenther@suse.de>
21854 PR tree-optimization/66807
21855 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
21857 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
21859 * function.c (stack_protect_epilogue): Use if rather than switch for
21860 check targetm.have_stack_protect_test.
21862 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21864 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
21865 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
21866 * config/arc/arc.h: Likewise.
21867 * config/arm/arm.h: Likewise.
21868 * config/bfin/bfin.h: Likewise.
21869 * config/epiphany/epiphany.h: Likewise.
21870 * config/frv/frv.h: Likewise.
21871 * config/ia64/ia64.h: Likewise.
21872 * config/iq2000/iq2000.h: Likewise.
21873 * config/lm32/lm32.h: Likewise.
21874 * config/m32r/m32r.h: Likewise.
21875 * config/mcore/mcore.h: Likewise.
21876 * config/mep/mep.h: Likewise.
21877 * config/microblaze/microblaze.h: Likewise.
21878 * config/mips/mips.h: Likewise.
21879 * config/mmix/mmix.h: Likewise.
21880 * config/mn10300/mn10300.h: Likewise.
21881 * config/nds32/nds32.h: Likewise.
21882 * config/nios2/nios2.h: Likewise.
21883 * config/pa/pa.h: Likewise.
21884 * config/rl78/rl78.h: Likewise.
21885 * config/sh/sh.h: Likewise.
21886 * config/sparc/sparc.h: Likewise.
21887 * config/stormy16/stormy16.h: Likewise.
21888 * config/tilegx/tilegx.h: Likewise.
21889 * config/tilepro/tilepro.h: Likewise.
21890 * config/v850/v850.h: Likewise.
21891 * config/xtensa/xtensa.h: Likewise.
21892 * doc/tm.texi: Regenerate.
21893 * doc/tm.texi.in: Adjust.
21894 * combine.c (simplify_set): Likewise.
21895 (simplify_comparison): Likewise.
21896 * expr.c (store_constructor): Likewise.
21897 * internal-fn.c (expand_arith_overflow): Likewise.
21898 * reload.c (push_reload): Likewise.
21899 (find_reloads): Likewise.
21900 (find_reloads_subreg_address): Likewise.
21901 * reload1.c (eliminate_regs_1): Likewise.
21902 * rtlanal.c (nonzero_bits1): Likewise.
21903 (num_sign_bit_copies1): Likewise.
21904 * simplify-rtx.c (simplify_truncation): Likewise.
21906 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21908 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
21909 of AUTO_INC_DEC with the preprocessor.
21910 * combine.c (combine_instructions): Likewise.
21911 (can_combine_p): Likewise.
21912 (try_combine): Likewise.
21913 * emit-rtl.c (try_split): Likewise.
21914 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21915 * lower-subreg.c (resolve_simple_move): Likewise.
21916 * lra.c (update_inc_notes): Likewise.
21917 * recog.c (asm_operand_ok): Likewise.
21918 (constrain_operands): Likewise.
21919 * regrename.c (scan_rtx_address): Likewise.
21920 * reload.c (update_auto_inc_notes): Likewise.
21921 (reg_inc_found_and_valid_p): Likewise.
21922 * reload1.c (reload): Likewise.
21923 (emit_input_reload_insns): Likewise.
21924 (delete_output_reload): Likewise.
21925 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21926 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21928 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21930 * rtl.h: Always define AUTO_INC_DEC.
21931 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
21932 * combine.c (combine_instructions): Likewise.
21933 (can_combine_p): Likewise.
21934 (try_combine): Likewise.
21935 * emit-rtl.c (try_split): Likewise.
21936 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
21937 * lower-subreg.c (resolve_simple_move): Likewise.
21938 * lra.c (update_inc_notes): Likewise.
21939 * recog.c (asm_operand_ok): Likewise.
21940 (constrain_operands): Likewise.
21941 * regrename.c (scan_rtx_address): Likewise.
21942 * reload.c (update_auto_inc_notes): Likewise.
21943 (find_equiv_reg): Likewise.
21944 * reload1.c (reload): Likewise.
21945 (reload_as_needed): Likewise.
21946 (choose_reload_regs): Likewise.
21947 (emit_input_reload_insns): Likewise.
21948 (delete_output_reload): Likewise.
21949 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
21950 * valtrack.c (cleanup_auto_inc_dec): Likewise.
21952 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21954 * combine.c (can_combine_def_p): Don't check the value of
21955 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
21956 (combinable_i3pat): Likewise.
21957 (mark_used_regs_combine): Likewise.
21958 * regrename.c (rename_chains): Likewise.
21959 * reload.c (find_reloads_address): Likewise.
21960 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
21962 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21964 * combine.c (update_rsp_from_reg_equal): Don't check if
21965 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
21966 (reg_nonzero_bits_for_combine): Likewise.
21967 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
21969 * config/frv/frv.h: Likewise.
21970 * config/lm32/lm32.h: Likewise.
21971 * config/mep/mep.h: Likewise.
21972 * config/mips/mips.h: Likewise.
21973 * config/rs6000/rs6000.h: Likewise.
21974 * config/sh/sh.h: Likewise.
21975 * config/tilegx/tilegx.h (enum reg_class): Likewise.
21976 * config/tilepro/tilepro.h: Likewise.
21977 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
21978 * doc/tm.texi: Regenerate.
21979 * doc/tm.texi.in: Adjust.
21980 * rtlanal.c (nonzero_bits1): Likewise.
21982 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21984 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
21985 with the preprocessor.
21986 (combine_instructions): Likewise.
21987 (try_combine): Likewise.
21989 (distribute_notes): Likewise.
21991 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
21993 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
21995 (simplify_set): Likewise.
21996 * cse.c (cse_insn): Likewise.
21997 * fold-const.c (fold_single_bit_test): Likewise.
21998 (fold_unary_loc): Likewise.
21999 * postreload.c (reload_cse_simplify_set): Likewise.
22000 (reload_cse_simplify_operands): Likewise.
22002 2015-07-08 Jiong Wang <jiong.wang@arm.com>
22004 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
22005 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
22007 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22010 * config/i386/x86intrin.h: Include <adxintrin.h> even if
22011 __iamcu__ is defined.
22013 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22015 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
22017 2015-07-08 Iain Sandoe <iain@codesourcery.com>
22020 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
22021 names from preservation.
22023 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
22026 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
22028 (function_arg_advance_32): Don't pass vectors in registers for
22030 (function_arg_32): Likewise.
22031 (ix86_return_in_memory): Don't return vectors in registers for
22034 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
22036 PR middle-end/66334
22037 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
22038 hard regno live at the start of BB with incoming abnormal edges.
22039 * lra-lives.c (process_bb_lives): Ditto.
22041 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
22044 * config/nvptx/mkoffload.c (main): Create an offload image only in
22045 64-bit configurations.
22047 2015-07-08 Martin Liska <mliska@suse.cz>
22050 * tree-sra.c (create_access_1): Call ctor without brackets.
22051 (create_artificial_child_access): Likewise.
22053 2015-07-08 Richard Biener <rguenther@suse.de>
22055 PR tree-optimization/66793
22056 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
22057 Properly split the block after stmts ending it.
22059 2015-07-08 Richard Biener <rguenther@suse.de>
22061 PR tree-optimization/66794
22062 * passes.c (execute_function_todo): Assert that post-dominators
22064 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
22065 Free post-dominators.
22067 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
22069 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
22072 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
22074 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
22075 more than or equal 8 and less than 32 when optimizing for size.
22077 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22079 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
22080 COSTS_N_INSNS (1) and increment it appropriately throughout the
22083 2015-07-08 Richard Biener <rguenther@suse.de>
22085 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
22087 2015-07-08 Alan Modra <amodra@gmail.com>
22089 * target.def (rtx_costs): Remove "code" param, add "mode".
22090 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
22091 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
22092 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
22093 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
22094 call. Track mode when given in rtx.
22095 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
22096 (default_address_cost): Pass Pmode to rtx_cost.
22097 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
22098 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
22100 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
22101 (notreg_cost): Add mode param. Use it.
22102 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
22103 mode param and pass to set_src_cost. Update all calls.
22104 (hash_scan_set): Formatting.
22105 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
22106 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
22108 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
22109 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
22110 emit_store_flag): Update set_src_cost and rtx_cost calls.
22111 * auto-inc-dec.c (attempt_change): Likewise.
22112 * calls.c (precompute_register_parameters): Likewise.
22113 * combine.c (expand_compound_operation, make_extraction,
22114 force_to_mode, distribute_and_simplify_rtx): Likewise.
22115 * dojump.c (prefer_and_bit_test): Likewise.
22116 * dse.c (find_shift_sequence): Likewise.
22117 * expr.c (compress_float_constant): Likewise.
22118 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
22119 * ifcvt.c (noce_try_sign_mask): Likewise.
22120 * loop-doloop.c (doloop_optimize): Likewise.
22121 * loop-invariant.c (create_new_invariant): Likewise.
22122 * lower-subreg.c (shift_cost, compute_costs): Likewise.
22123 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
22124 lshift_cheap_p): Likewise.
22125 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
22126 try_replace_in_use, reload_cse_move2add): Likewise.
22127 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
22129 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
22130 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
22131 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
22132 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22133 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
22134 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
22136 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
22137 * config/arc/arc.c (arc_rtx_costs): Likewise.
22138 * config/arm/arm.c (arm_rtx_costs): Likewise.
22139 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
22140 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
22141 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
22142 * config/cris/cris.c (cris_rtx_costs): Likewise.
22143 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
22144 * config/frv/frv.c (frv_rtx_costs): Likewise.
22145 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
22146 * config/i386/i386.c (ix86_rtx_costs): Likewise.
22147 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
22148 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
22149 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
22150 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
22151 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
22152 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
22153 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
22154 * config/mep/mep.c (mep_rtx_cost): Likewise.
22155 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
22156 * config/mips/mips.c (mips_rtx_costs): Likewise.
22157 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
22158 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
22159 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
22160 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
22161 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
22162 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
22163 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
22164 * config/pa/pa.c (hppa_rtx_costs): Likewise.
22165 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
22166 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
22167 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
22168 * config/s390/s390.c (s390_rtx_costs): Likewise.
22169 * config/sh/sh.c (sh_rtx_costs): Likewise.
22170 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
22171 * config/spu/spu.c (spu_rtx_costs): Likewise.
22172 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
22173 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
22174 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
22175 * config/v850/v850.c (v850_rtx_costs): Likewise.
22176 * config/vax/vax.c (vax_rtx_costs): Likewise.
22177 * config/visium/visium.c (visium_rtx_costs): Likewise.
22178 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
22179 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
22180 "code" param, and pass as outer_code to first rtx_cost call. Pass
22181 mode to rtx_cost calls.
22182 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
22184 (aarch64_rtx_costs_wrapper): Update.
22185 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
22186 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
22188 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
22189 and rtx_cost calls.
22190 (avr_operand_rtx_cost): Similarly.
22191 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
22192 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
22193 * config/mips/mips.c (mips_stack_address_p): Comment typo.
22194 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
22195 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
22196 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
22198 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
22199 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
22200 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
22201 * doc/tm.texi: Regenerate.
22203 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
22205 * tree-core.h: Include symtab.h.
22206 * rtl.h: Include hard-reg-set.h but not flags.h.
22207 (HARD_CONST): Remove condition compilation involving HARD_CONST since
22208 hard-reg-set.h is always included.
22209 * regs.h: Don't include hard-reg-set.h or rtl.h.
22210 * cfg.h: Include dominance.h.
22211 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
22212 * backend.h: New. Aggregate commonly used backend header files.
22213 * gimple-ssa.h: Don't include tree-hasher.h.
22214 * ssa.h: New. Aggregate commonly used SSA header files.
22215 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
22216 * sel-sched-ir.h: Flatten includes.
22217 * lra-int.h: Flatten completely.
22218 * sel-sched-dump.h: Flatten includes.
22219 * ira-int.h: Flatten includes.
22220 * gimple-streamer.h: Remove all includes.
22221 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
22222 * resource.h: Flatten hard-reg-set.h and df.h.
22223 * sched-int.h: Flatten insn-arrt.h and df.h.
22224 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
22225 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
22226 * genattrtab.c (write_header): Adjust generated includes.
22227 * genautomata.c (main): Likewise.
22228 * genconditions.c (write-header): Likewise.
22229 * genemit.c (main): Likewise.
22230 * gengtype.c (open_base_files): Likewise.
22231 * genopinit.c (main): Likewise.
22232 * genoutput.c (output_prologue): Likewise.
22233 * genpeep.c (main): Likewise.
22234 * genpreds.c (write_insn_preds_c): Likewise.
22235 * genrecog.c (write_header): Likewise.
22236 * alias.c: Adjust includes.
22237 * asan.c: Likewise.
22238 * attribs.c: Likewise.
22239 * auto-inc-dec.c: Likewise.
22240 * auto-profile.c: Likewise.
22241 * bb-reorder.c: Likewise.
22242 * bt-load.c: Likewise.
22243 * builtins.c: Likewise.
22244 * caller-save.c: Likewise.
22245 * calls.c: Likewise.
22246 * ccmp.c: Likewise.
22248 * cfganal.c: Likewise.
22249 * cfgbuild.c: Likewise.
22250 * cfgcleanup.c: Likewise.
22251 * cfgexpand.c: Likewise.
22252 * cfghooks.c: Likewise.
22253 * cfgloop.c: Likewise.
22254 * cfgloopanal.c: Likewise.
22255 * cfgloopmanip.c: Likewise.
22256 * cfgrtl.c: Likewise.
22257 * cgraph.c: Likewise.
22258 * cgraphbuild.c: Likewise.
22259 * cgraphclones.c: Likewise.
22260 * cgraphunit.c: Likewise.
22261 * cilk-common.c: Likewise.
22262 * combine-stack-adj.c: Likewise.
22263 * combine.c: Likewise.
22264 * compare-elim.c: Likewise.
22265 * convert.c: Likewise.
22266 * coverage.c: Likewise.
22267 * cppbuiltin.c: Likewise.
22268 * cprop.c: Likewise.
22270 * cselib.c: Likewise.
22271 * data-streamer-in.c: Likewise.
22272 * data-streamer-out.c: Likewise.
22273 * data-streamer.c: Likewise.
22274 * dbxout.c: Likewise.
22277 * debug.c: Likewise.
22278 * df-core.c: Likewise.
22279 * df-problems.c: Likewise.
22280 * df-scan.c: Likewise.
22282 * dojump.c: Likewise.
22283 * dominance.c: Likewise.
22284 * domwalk.c: Likewise.
22285 * double-int.c: Likewise.
22287 * dumpfile.c: Likewise.
22288 * dwarf2asm.c: Likewise.
22289 * dwarf2cfi.c: Likewise.
22290 * dwarf2out.c: Likewise.
22291 * emit-rtl.c: Likewise.
22292 * et-forest.c: Likewise.
22293 * except.c: Likewise.
22294 * explow.c: Likewise.
22295 * expmed.c: Likewise.
22296 * expr.c: Likewise.
22297 * final.c: Likewise.
22298 * fixed-value.c: Likewise.
22299 * fold-const.c: Likewise.
22300 * function.c: Likewise.
22301 * fwprop.c: Likewise.
22302 * gcc-plugin.h: Likewise.
22303 * gcse-common.c: Likewise.
22304 * gcse.c: Likewise.
22305 * generic-match-head.c: Likewise.
22306 * ggc-page.c: Likewise.
22307 * gimple-builder.c: Likewise.
22308 * gimple-expr.c: Likewise.
22309 * gimple-fold.c: Likewise.
22310 * gimple-iterator.c: Likewise.
22311 * gimple-low.c: Likewise.
22312 * gimple-match-head.c: Likewise.
22313 * gimple-pretty-print.c: Likewise.
22314 * gimple-ssa-isolate-paths.c: Likewise.
22315 * gimple-ssa-strength-reduction.c: Likewise.
22316 * gimple-streamer-in.c: Likewise.
22317 * gimple-streamer-out.c: Likewise.
22318 * gimple-walk.c: Likewise.
22319 * gimple.c: Likewise.
22320 * gimplify-me.c: Likewise.
22321 * gimplify.c: Likewise.
22322 * godump.c: Likewise.
22323 * graph.c: Likewise.
22324 * graphite-blocking.c: Likewise.
22325 * graphite-dependences.c: Likewise.
22326 * graphite-interchange.c: Likewise.
22327 * graphite-isl-ast-to-gimple.c: Likewise.
22328 * graphite-optimize-isl.c: Likewise.
22329 * graphite-poly.c: Likewise.
22330 * graphite-scop-detection.c: Likewise.
22331 * graphite-sese-to-poly.c: Likewise.
22332 * graphite.c: Likewise.
22333 * haifa-sched.c: Likewise.
22334 * hw-doloop.c: Likewise.
22335 * ifcvt.c: Likewise.
22336 * init-regs.c: Likewise.
22337 * internal-fn.c: Likewise.
22338 * ipa-chkp.c: Likewise.
22339 * ipa-comdats.c: Likewise.
22340 * ipa-cp.c: Likewise.
22341 * ipa-devirt.c: Likewise.
22342 * ipa-icf-gimple.c: Likewise.
22343 * ipa-icf.c: Likewise.
22344 * ipa-inline-analysis.c: Likewise.
22345 * ipa-inline-transform.c: Likewise.
22346 * ipa-inline.c: Likewise.
22347 * ipa-polymorphic-call.c: Likewise.
22348 * ipa-profile.c: Likewise.
22349 * ipa-prop.c: Likewise.
22350 * ipa-pure-const.c: Likewise.
22351 * ipa-ref.c: Likewise.
22352 * ipa-reference.c: Likewise.
22353 * ipa-split.c: Likewise.
22354 * ipa-utils.c: Likewise.
22355 * ipa-visibility.c: Likewise.
22357 * ira-build.c: Likewise.
22358 * ira-color.c: Likewise.
22359 * ira-conflicts.c: Likewise.
22360 * ira-costs.c: Likewise.
22361 * ira-emit.c: Likewise.
22362 * ira-lives.c: Likewise.
22364 * jump.c: Likewise.
22365 * langhooks.c: Likewise.
22367 * loop-doloop.c: Likewise.
22368 * loop-init.c: Likewise.
22369 * loop-invariant.c: Likewise.
22370 * loop-iv.c: Likewise.
22371 * loop-unroll.c: Likewise.
22372 * lower-subreg.c: Likewise.
22373 * lra-assigns.c: Likewise.
22374 * lra-coalesce.c: Likewise.
22375 * lra-constraints.c: Likewise.
22376 * lra-eliminations.c: Likewise.
22377 * lra-lives.c: Likewise.
22378 * lra-remat.c: Likewise.
22379 * lra-spills.c: Likewise.
22381 * lto-cgraph.c: Likewise.
22382 * lto-compress.c: Likewise.
22383 * lto-opts.c: Likewise.
22384 * lto-section-in.c: Likewise.
22385 * lto-section-out.c: Likewise.
22386 * lto-streamer-in.c: Likewise.
22387 * lto-streamer-out.c: Likewise.
22388 * lto-streamer.c: Likewise.
22390 * mode-switching.c: Likewise.
22391 * modulo-sched.c: Likewise.
22392 * omega.c: Likewise.
22393 * omp-low.c: Likewise.
22394 * optabs.c: Likewise.
22395 * opts-global.c: Likewise.
22396 * passes.c: Likewise.
22397 * plugin.c: Likewise.
22398 * postreload-gcse.c: Likewise.
22399 * postreload.c: Likewise.
22400 * predict.c: Likewise.
22401 * print-rtl.c: Likewise.
22402 * print-tree.c: Likewise.
22403 * profile.c: Likewise.
22404 * real.c: Likewise.
22405 * realmpfr.c: Likewise.
22406 * recog.c: Likewise.
22408 * reg-stack.c: Likewise.
22409 * regcprop.c: Likewise.
22410 * reginfo.c: Likewise.
22411 * regrename.c: Likewise.
22412 * regstat.c: Likewise.
22413 * reload.c: Likewise.
22414 * reload1.c: Likewise.
22415 * reorg.c: Likewise.
22416 * resource.c: Likewise.
22417 * rtl-chkp.c: Likewise.
22418 * rtlanal.c: Likewise.
22419 * rtlhooks.c: Likewise.
22420 * sanopt.c: Likewise.
22421 * sched-deps.c: Likewise.
22422 * sched-ebb.c: Likewise.
22423 * sched-rgn.c: Likewise.
22424 * sched-vis.c: Likewise.
22425 * sdbout.c: Likewise.
22426 * sel-sched-dump.c: Likewise.
22427 * sel-sched-ir.c: Likewise.
22428 * sel-sched.c: Likewise.
22429 * sese.c: Likewise.
22430 * shrink-wrap.c: Likewise.
22431 * simplify-rtx.c: Likewise.
22432 * stack-ptr-mod.c: Likewise.
22433 * stmt.c: Likewise.
22434 * stor-layout.c: Likewise.
22435 * store-motion.c: Likewise.
22436 * stringpool.c: Likewise.
22437 * symtab.c: Likewise.
22438 * target-globals.c: Likewise.
22439 * targhooks.c: Likewise.
22440 * toplev.c: Likewise.
22441 * tracer.c: Likewise.
22442 * trans-mem.c: Likewise.
22443 * tree-affine.c: Likewise.
22444 * tree-browser.c: Likewise.
22445 * tree-call-cdce.c: Likewise.
22446 * tree-cfg.c: Likewise.
22447 * tree-cfgcleanup.c: Likewise.
22448 * tree-chkp-opt.c: Likewise.
22449 * tree-chkp.c: Likewise.
22450 * tree-chrec.c: Likewise.
22451 * tree-complex.c: Likewise.
22452 * tree-data-ref.c: Likewise.
22453 * tree-dfa.c: Likewise.
22454 * tree-diagnostic.c: Likewise.
22455 * tree-dump.c: Likewise.
22456 * tree-eh.c: Likewise.
22457 * tree-emutls.c: Likewise.
22458 * tree-if-conv.c: Likewise.
22459 * tree-inline.c: Likewise.
22460 * tree-into-ssa.c: Likewise.
22461 * tree-iterator.c: Likewise.
22462 * tree-loop-distribution.c: Likewise.
22463 * tree-nested.c: Likewise.
22464 * tree-nrv.c: Likewise.
22465 * tree-object-size.c: Likewise.
22466 * tree-outof-ssa.c: Likewise.
22467 * tree-parloops.c: Likewise.
22468 * tree-phinodes.c: Likewise.
22469 * tree-predcom.c: Likewise.
22470 * tree-pretty-print.c: Likewise.
22471 * tree-profile.c: Likewise.
22472 * tree-scalar-evolution.c: Likewise.
22473 * tree-sra.c: Likewise.
22474 * tree-ssa-address.c: Likewise.
22475 * tree-ssa-alias.c: Likewise.
22476 * tree-ssa-ccp.c: Likewise.
22477 * tree-ssa-coalesce.c: Likewise.
22478 * tree-ssa-copy.c: Likewise.
22479 * tree-ssa-copyrename.c: Likewise.
22480 * tree-ssa-dce.c: Likewise.
22481 * tree-ssa-dom.c: Likewise.
22482 * tree-ssa-dse.c: Likewise.
22483 * tree-ssa-forwprop.c: Likewise.
22484 * tree-ssa-ifcombine.c: Likewise.
22485 * tree-ssa-live.c: Likewise.
22486 * tree-ssa-loop-ch.c: Likewise.
22487 * tree-ssa-loop-im.c: Likewise.
22488 * tree-ssa-loop-ivcanon.c: Likewise.
22489 * tree-ssa-loop-ivopts.c: Likewise.
22490 * tree-ssa-loop-manip.c: Likewise.
22491 * tree-ssa-loop-niter.c: Likewise.
22492 * tree-ssa-loop-prefetch.c: Likewise.
22493 * tree-ssa-loop-unswitch.c: Likewise.
22494 * tree-ssa-loop.c: Likewise.
22495 * tree-ssa-math-opts.c: Likewise.
22496 * tree-ssa-operands.c: Likewise.
22497 * tree-ssa-phiopt.c: Likewise.
22498 * tree-ssa-phiprop.c: Likewise.
22499 * tree-ssa-pre.c: Likewise.
22500 * tree-ssa-propagate.c: Likewise.
22501 * tree-ssa-reassoc.c: Likewise.
22502 * tree-ssa-sccvn.c: Likewise.
22503 * tree-ssa-scopedtables.c: Likewise.
22504 * tree-ssa-sink.c: Likewise.
22505 * tree-ssa-strlen.c: Likewise.
22506 * tree-ssa-structalias.c: Likewise.
22507 * tree-ssa-tail-merge.c: Likewise.
22508 * tree-ssa-ter.c: Likewise.
22509 * tree-ssa-threadedge.c: Likewise.
22510 * tree-ssa-threadupdate.c: Likewise.
22511 * tree-ssa-uncprop.c: Likewise.
22512 * tree-ssa-uninit.c: Likewise.
22513 * tree-ssa.c: Likewise.
22514 * tree-ssanames.c: Likewise.
22515 * tree-stdarg.c: Likewise.
22516 * tree-streamer-in.c: Likewise.
22517 * tree-streamer-out.c: Likewise.
22518 * tree-streamer.c: Likewise.
22519 * tree-switch-conversion.c: Likewise.
22520 * tree-tailcall.c: Likewise.
22521 * tree-vect-data-refs.c: Likewise.
22522 * tree-vect-generic.c: Likewise.
22523 * tree-vect-loop-manip.c: Likewise.
22524 * tree-vect-loop.c: Likewise.
22525 * tree-vect-patterns.c: Likewise.
22526 * tree-vect-slp.c: Likewise.
22527 * tree-vect-stmts.c: Likewise.
22528 * tree-vectorizer.c: Likewise.
22529 * tree-vrp.c: Likewise.
22530 * tree.c: Likewise.
22531 * tsan.c: Likewise.
22532 * ubsan.c: Likewise.
22533 * valtrack.c: Likewise.
22534 * value-prof.c: Likewise.
22535 * var-tracking.c: Likewise.
22536 * varasm.c: Likewise.
22537 * varpool.c: Likewise.
22538 * vmsdbgout.c: Likewise.
22539 * vtable-verify.c: Likewise.
22541 * wide-int.cc: Likewise.
22542 * xcoffout.c: Likewise.
22543 * config/aarch64/aarch64-builtins.c: Likewise.
22544 * config/aarch64/aarch64.c: Likewise.
22545 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
22546 * config/alpha/alpha.c: Likewise.
22547 * config/arc/arc.c: Likewise.
22548 * config/arm/aarch-common.c: Likewise.
22549 * config/arm/arm-builtins.c: Likewise.
22550 * config/arm/arm-c.c: Likewise.
22551 * config/arm/arm.c: Likewise.
22552 * config/avr/avr-c.c: Likewise.
22553 * config/avr/avr-log.c: Likewise.
22554 * config/avr/avr.c: Likewise.
22555 * config/bfin/bfin.c: Likewise.
22556 * config/c6x/c6x.c: Likewise.
22557 * config/cr16/cr16.c: Likewise.
22558 * config/cris/cris.c: Likewise.
22559 * config/darwin-c.c: Likewise.
22560 * config/darwin.c: Likewise.
22561 * config/epiphany/epiphany.c: Likewise.
22562 * config/epiphany/mode-switch-use.c: Likewise.
22563 * config/epiphany/resolve-sw-modes.c: Likewise.
22564 * config/fr30/fr30.c: Likewise.
22565 * config/frv/frv.c: Likewise.
22566 * config/ft32/ft32.c: Likewise.
22567 * config/h8300/h8300.c: Likewise.
22568 * config/i386/i386-c.c: Likewise.
22569 * config/i386/i386.c: Likewise.
22570 * config/i386/msformat-c.c: Likewise.
22571 * config/i386/winnt-cxx.c: Likewise.
22572 * config/i386/winnt-stubs.c: Likewise.
22573 * config/i386/winnt.c: Likewise.
22574 * config/ia64/ia64-c.c: Likewise.
22575 * config/ia64/ia64.c: Likewise.
22576 * config/iq2000/iq2000.c: Likewise.
22577 * config/lm32/lm32.c: Likewise.
22578 * config/m32c/m32c-pragma.c: Likewise.
22579 * config/m32c/m32c.c: Likewise.
22580 * config/m32r/m32r.c: Likewise.
22581 * config/m68k/m68k.c: Likewise.
22582 * config/mcore/mcore.c: Likewise.
22583 * config/mep/mep-pragma.c: Likewise.
22584 * config/mep/mep.c: Likewise.
22585 * config/microblaze/microblaze-c.c: Likewise.
22586 * config/microblaze/microblaze.c: Likewise.
22587 * config/mips/mips.c: Likewise.
22588 * config/mmix/mmix.c: Likewise.
22589 * config/mn10300/mn10300.c: Likewise.
22590 * config/moxie/moxie.c: Likewise.
22591 * config/msp430/msp430-c.c: Likewise.
22592 * config/msp430/msp430.c: Likewise.
22593 * config/nds32/nds32-cost.c: Likewise.
22594 * config/nds32/nds32-fp-as-gp.c: Likewise.
22595 * config/nds32/nds32-intrinsic.c: Likewise.
22596 * config/nds32/nds32-isr.c: Likewise.
22597 * config/nds32/nds32-md-auxiliary.c: Likewise.
22598 * config/nds32/nds32-memory-manipulation.c: Likewise.
22599 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
22600 * config/nds32/nds32-predicates.c: Likewise.
22601 * config/nds32/nds32.c: Likewise.
22602 * config/nios2/nios2.c: Likewise.
22603 * config/nvptx/nvptx.c: Likewise.
22604 * config/pa/pa.c: Likewise.
22605 * config/pdp11/pdp11.c: Likewise.
22606 * config/rl78/rl78-c.c: Likewise.
22607 * config/rl78/rl78.c: Likewise.
22608 * config/rs6000/rs6000-c.c: Likewise.
22609 * config/rs6000/rs6000.c: Likewise.
22610 * config/rx/rx.c: Likewise.
22611 * config/s390/s390-c.c: Likewise.
22612 * config/s390/s390.c: Likewise.
22613 * config/sh/sh-c.c: Likewise.
22614 * config/sh/sh-mem.cc: Likewise.
22615 * config/sh/sh.c: Likewise.
22616 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
22617 * config/sh/sh_treg_combine.cc: Likewise.
22618 * config/sol2-c.c: Likewise.
22619 * config/sol2-cxx.c: Likewise.
22620 * config/sol2-stubs.c: Likewise.
22621 * config/sol2.c: Likewise.
22622 * config/sparc/sparc-c.c: Likewise.
22623 * config/sparc/sparc.c: Likewise.
22624 * config/spu/spu-c.c: Likewise.
22625 * config/spu/spu.c: Likewise.
22626 * config/stormy16/stormy16.c: Likewise.
22627 * config/tilegx/mul-tables.c: Likewise.
22628 * config/tilegx/tilegx-c.c: Likewise.
22629 * config/tilegx/tilegx.c: Likewise.
22630 * config/tilepro/mul-tables.c: Likewise.
22631 * config/tilepro/tilepro-c.c: Likewise.
22632 * config/tilepro/tilepro.c: Likewise.
22633 * config/v850/v850-c.c: Likewise.
22634 * config/v850/v850.c: Likewise.
22635 * config/vax/vax.c: Likewise.
22636 * config/visium/visium.c: Likewise.
22637 * config/vms/vms-c.c: Likewise.
22638 * config/vms/vms.c: Likewise.
22639 * config/vxworks.c: Likewise.
22640 * config/xtensa/xtensa.c: Likewise.
22642 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
22644 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
22645 Remove operand constraints. Change operand 2 predicate to
22646 nonmemory operand. Limit const_int values to mode bitsize. Only
22647 allow const_int values less than 32 when optimizing for size.
22648 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
22649 Remove operand constraints.
22650 (*bt<mode>): Use SImode for const_int values less than 32.
22651 (regmode): Remove mode attribute.
22653 2015-07-07 Anatoly Sokolov <aesok@post.ru>
22655 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
22656 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
22657 moxie_legitimate_address_p): New functions.
22658 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
22660 2015-07-07 Tom de Vries <tom@codesourcery.com>
22662 PR tree-optimization/66642
22663 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
22664 header comment. Rename split_edge variable to edge_at_split. Split
22665 exit edge to create new loop exit bb. Insert loop exit phis in new
22668 2015-07-07 Tom de Vries <tom@codesourcery.com>
22670 * tree-cfg.c (get_virtual_phi): New function.
22671 * tree-cfg.h (get_virtual_phi): Declare.
22672 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
22673 (rewrite_virtuals_into_loop_closed_ssa): New function.
22674 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
22676 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
22677 (transform_to_exit_first_loop_alt): Use
22678 rewrite_virtuals_into_loop_closed_ssa.
22680 2015-07-07 Richard Biener <rguenther@suse.de>
22682 * fold-const.c (fold_binary_loc): Move
22683 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
22684 * match.pd: ... here.
22685 Add (X * C1) % C2 -> 0 simplification pattern derived from
22688 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
22691 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
22692 change for target/65249.
22694 2015-07-07 Paulo Matos <pmatos@broadcom.com>
22696 * symtab.c (address_matters_1): Fix typo in comment above.
22697 (can_increase_alignment_p): Likewise.
22699 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22701 * function.c (free_after_compilation): Clear PROP_cfg in
22702 f->curr_properties.
22704 2015-07-07 Richard Biener <rguenther@suse.de>
22706 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
22708 (add_control_edge): Remove excessive vertical space in dumping.
22709 (process_ssa_edge_worklist): Simulate at most one statement and
22710 return whether we did. Do not simulate PHIs if they are in a
22711 BB not yet simulated.
22712 (ssa_propagate): Adjust to always drain the BB worklist whenever
22713 a BB is available there, likewise the VARYING edges list before
22714 the interesting edge list.
22716 2015-07-07 Christian Bruel <christian.bruel@st.com>
22719 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
22721 2015-07-07 Richard Biener <rguenther@suse.de>
22723 PR middle-end/66739
22724 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
22727 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22729 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
22730 modes for operands 0 and 3. Use SImode for operands 2 and 3.
22731 Copy operand 0 to a temporary if !ext_register_operand. Remove
22732 ancient extract_bit_field workaround.
22733 (insv<mode>_1): Rename from mov<mode>_insv_1.
22734 (*insvqi): Rename from *movqi_insv_2.
22735 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
22736 for renamed insvsi_1.
22737 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
22739 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
22741 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
22742 call to nvptx_reorg_subreg.
22744 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
22746 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
22747 * graphite-dependencies.c, graphite-interchange.c,
22748 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
22749 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
22752 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
22754 * match.pd: Remove element_mode inside HONOR_*.
22755 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
22756 (~X | X -> -1, ~X ^ X -> -1): Merge.
22757 * tree.c (build_each_one_cst): New function.
22758 * tree.h (build_each_one_cst): Likewise.
22760 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22762 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
22765 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
22767 * config.gcc <mips*-*-*>: Add fused-madd.opt.
22768 * config/mips/mips.opt (mfused-madd): Remove.
22769 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
22770 * config/mips/mips.h (TARGET_MIPS8000): New.
22771 (ISA_HAS_FP_MADD4_MSUB4): Remove.
22772 (ISA_HAS_FP_MADDF_MSUBF): Remove.
22773 (ISA_HAS_FP_MADD3_MSUB3): Remove.
22774 (ISA_HAS_NMADD4_NMSUB4): Remove.
22775 (ISA_HAS_NMADD3_NMSUB3): Remove.
22776 (ISA_HAS_FUSED_MADD4): New.
22777 (ISA_HAS_UNFUSED_MADD4): New.
22778 (ISA_HAS_FUSED_MADDF): New.
22779 (ISA_HAS_FUSED_MADD3): New.
22780 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
22781 (*fma<mode>4_madd3) New.
22782 (*fma<mode>4_madd4) New.
22783 (*fma<mode>4_maddf) New.
22785 (*fms<mode>4_msub3) New.
22786 (*fms<mode>4_msub4) New.
22788 (*fnma<mode>4_nmadd3) New.
22789 (*fnma<mode>4_nmadd4) New.
22791 (*fnms<mode>4_nmsub3) New.
22792 (*fnms<mode>4_nmsub4) New.
22793 (*madd4<mode>) Modify to be unfused only.
22794 (*msub4<mode>) Modify to be unfused only.
22795 (*nmadd4<mode>) Modify to be unfused only.
22796 (*nmsub4<mode>) Modify to be unfused only.
22797 (*madd3<mode>) Remove.
22798 (*msub3<mode>) Remove.
22799 (*nmadd3<mode>) Remove.
22800 (*nmsub3<mode>) Remove.
22801 (*nmadd3<mode>_fastmath) Remove.
22802 (*nmsub3<mode>_fastmath) Remove.
22803 (*nmadd4<mode>_fastmath) Update condition.
22804 (*nmsub4<mode>_fastmath) Update condition.
22806 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22809 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
22810 alignment attribute, exploring one level down for records and arrays.
22812 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
22814 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
22815 modes for operands 0 and 1. Use SImode for operands 2 and 3.
22816 Copy operand 1 to a temporary if !ext_register_operand. Remove
22817 ancient extract_bit_field workaround.
22818 (*extv<mode>): Rename from *mov<mode>_extv_1.
22819 (*extvqi): Rename from *movqi_extv_1.
22820 (extzv<mode>): Rename from extzv. Use SWI248 modes for
22821 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
22822 to a temporary if !ext_register_operand. Remove ancient
22823 extract_bit_field workaround.
22824 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
22825 (*extzvqi): Rename from *movqi_extzv_2.
22826 (*testqi_ext_3): Remove modes from const_int_operand predicated
22827 operands. Add "n" constraint.
22828 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
22829 operand. Add "J" constraint.
22830 (*btsq, *btrq, *btcq peephole2s): Remove mode from
22831 const_0_to_63 predicated operand.
22832 (regmode): New insn attribute.
22833 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
22834 to nonmemory_operand. Use regmode insn attribute.
22835 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
22836 (*jcc_bt<mode>_mask): Remove mode from operand 3.
22837 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
22838 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
22839 operands. Use "N" constraint instead of "n".
22841 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
22843 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
22845 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22848 * config/i386/i386.c (iamcu_cost): New.
22849 (m_IAMCU): Likewise.
22850 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
22851 (processor_target_table): Add an entry for "iamcu".
22852 (processor_alias_table): Likewise.
22853 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
22854 (ix86_adjust_cost): Likewise.
22855 (ia32_multipass_dfa_lookahead): Likewise.
22856 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
22857 * config/i386/x86-tune.def: Updated for m_IAMCU.
22859 2015-07-06 Richard Biener <rguenther@suse.de>
22861 PR tree-optimization/66772
22862 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
22863 values are available in the PHI node BB when there are
22864 still unexecutable edges.
22866 2015-07-06 Richard Biener <rguenther@suse.de>
22868 PR tree-optimization/66767
22869 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
22870 Make sure to build the alignment test on a SSA name without
22871 final alignment info valid only if the alignment test
22874 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
22877 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
22878 loop start when inserting LSETUP.
22880 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
22883 * config/i386/i386.c (ix86_option_override_internal): Allow
22884 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
22886 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22888 * read-md.c (decimal_string): Rename to ...
22889 (md_decimal_string): ... this.
22890 (handle_enum): Reflect this.
22892 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
22895 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
22897 2015-07-06 Richard Biener <rguenther@suse.de>
22899 PR middle-end/66759
22900 * match.pd: Add missing constraint of y to REAL_CST in
22901 REAL_CST - x CMP y to y - CST CMP x simplification.
22903 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
22905 PR tree-optimization/66757
22906 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
22908 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
22909 Sandra Loosemore <sandra@codesourcery.com>
22911 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
22912 Delete extern declaration.
22913 (gprel_constant_p): Add extern declaration.
22914 * config/nios2/constraints.md ("S"): Use gprel_constant_p
22915 instead of nios2_symbol_ref_in_small_data_p.
22916 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
22917 (nios2_symbol_ref_in_small_data_p): Make static.
22918 (gprel_constant_p): Make non-static.
22920 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
22922 * doc/fragments.texi (Target Fragment): Convert debian.org
22924 * doc/install.texi (Configuration): Ditto.
22926 2015-07-05 Jakub Jelinek <jakub@redhat.com>
22928 PR tree-optimization/66718
22929 * tree-vect-stmts.c (vectorizable_call): Replace uses of
22930 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
22932 PR tree-optimization/66718
22933 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
22934 vectorizable_load, vectorizable_condition): Move vectype,
22935 nunits, ncopies computation after checking what kind of statement
22938 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22940 * target-insns.def (extv, extzv, insv): New targetm instruction
22942 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
22944 * recog.c (simplify_while_replacing): Likewise.
22946 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22948 * target-insns.def (doloop_begin, doloop_end): New targetm
22949 instruction patterns.
22950 * loop-init.c: Include target.h.
22951 (pass_loop2::gate): Use the new targetm patterns instead of
22952 HAVE_*/gen_* interface.
22953 (pass_rtl_doloop::gate): Likewise.
22954 (pass_rtl_doloop::execute): Remove preprocessor condition.
22955 * hw-doloop.c: Build unconditionally.
22956 * loop-doloop.c: Likewise.
22957 (doloop_optimize): Use the new targetm patterns instead of
22958 HAVE_*/gen_* interface.
22959 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
22960 * modulo-sched.c (doloop_register_get): Likewise.
22962 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22964 * target-insns.def (clear_cache): New targetm instruction pattern.
22965 * builtins.c (expand_builtin___clear_cache): Use it instead of
22966 HAVE_*/gen_* interface.
22968 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22970 * target-insns.def (allocate_stack, check_stack, probe_stack)
22971 (probe_stack_address, split_stack_prologue, split_stack_space_check):
22972 New targetm instruction patterns.
22973 * explow.c (allocate_dynamic_stack_space): Use them instead of
22974 HAVE_*/gen_* interface.
22975 (emit_stack_probe): Likewise.
22976 (probe_stack_range): Likewise.
22977 * function.c (thread_prologue_and_epilogue_insns): Likewise.
22979 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22981 * target-insns.def (stack_protect_set, stack_protect_test): New
22982 targetm instruction patterns.
22983 * cfgexpand.c (stack_protect_prologue): Use them instead of
22984 HAVE_*/gen_* interface.
22985 * function.c (stack_protect_epilogue): Likewise.
22987 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22989 * expr.h (gen_move_insn_uncast): Delete.
22990 * expr.c (gen_move_insn_uncast): Delete.
22992 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
22994 * target-insns.def (restore_stack_block, restore_stack_function)
22995 (restore_stack_nonlocal, save_stack_block, save_stack_function)
22996 (save_stack_nonlocal): New targetm instruction patterns.
22997 * builtins.c (expand_builtin_apply): Use them instead of
22998 HAVE_*/gen_* interface.
22999 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
23001 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23003 * target-insns.def (trap): New targetm instruction pattern.
23004 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
23006 * explow.c (allocate_dynamic_stack_space): Likewise.
23007 * ifcvt.c (find_if_header): Likewise.
23009 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23011 * target-insns.def (prefetch): New targetm instruction pattern.
23012 * tree-ssa-loop-prefetch.c: Include targeth.
23013 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
23014 of HAVE_*/gen_* interface.
23015 * builtins.c (expand_builtin_prefetch): Likewise.
23016 * toplev.c (process_options): Likewise.
23018 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23020 * target-insns.def (untyped_call, untyped_return): New targetm
23021 instruction patterns.
23022 * builtins.c (expand_builtin_apply): Use them instead of
23023 HAVE_*/gen_* interface.
23024 (result_vector): Define unconditionally.
23026 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23028 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
23029 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
23030 (nonlocal_goto_receiver): New targetm instruction patterns.
23031 * builtins.c (expand_builtin_setjmp_setup): Use them instead
23032 of HAVE_*/gen_* interface.
23033 (expand_builtin_setjmp_receiver): Likewise.
23034 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
23035 * except.c (expand_dw2_landing_pad_for_region): Likewise.
23037 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
23039 * target.def: Add code_for_* hooks.
23040 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
23041 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
23042 * target-insns.def (casesi, tablejump): New targetm instruction
23044 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
23045 (do_tablejump): Likewise.
23046 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
23047 (expand_sjlj_dispatch_table): Likewise.
23048 * targhooks.c (default_case_values_threshold): Likewise.
23050 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
23052 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
23053 Use rtx_insn * instead of rtx.
23054 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
23055 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
23056 (nios2_call_tls_get_addr): Likewise.
23057 (nios2_emit_expensive_div): Likewise.
23058 (nios2_emit_move_sequence): Change return type to bool.
23059 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
23060 Change return type to bool.
23062 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
23065 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
23067 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
23070 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
23071 of register_operand. Remove constraint.
23073 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
23075 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
23076 the first argument.
23078 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
23080 * attribs.c (decl_attributes): Guard inform with the return value
23081 of the preceding warning.
23083 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23085 * doc/invoke.texi (moverride): Move to correct section.
23087 2015-07-03 Richard Biener <rguenther@suse.de>
23089 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
23091 (dt_operand::gen_gimple_expr): After valueizing operands
23092 re-canonicalize operand order for commutative tree codes.
23094 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
23097 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
23099 (__crc32w): Likewise.
23100 (__crc32d): Likewise.
23101 (__rdpmc): Likewise.
23102 (__rdtscp): Likewise.
23103 (_rdpmc): Likewise.
23104 (_rdtscp): Likewise.
23105 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
23108 2015-07-03 Richard Biener <rguenther@suse.de>
23110 * fold-const.c (fold_mathfn_compare): Remove.
23111 (fold_inf_compare): Likewise.
23112 (fold_comparison): Move floating point comparison simplifications...
23113 * match.pd: ... to patterns here. Introduce simple_comparisons
23114 operator list and use it for patterns formerly in fold_comparison.
23116 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
23118 PR tree-optimization/66119
23119 * toplev.c (process_options): Don't set up default values for
23120 the sra_max_scalarization_size_{speed,size} parameters.
23121 * tree-sra (analyze_all_variable_accesses): If no values
23122 have been set for the sra_max_scalarization_size_{speed,size}
23123 parameters, call get_move_ratio to get target defaults.
23125 2015-07-03 Richard Biener <rguenther@suse.de>
23127 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
23128 * match.pd: ... here.
23130 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
23133 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
23134 is not actually the default on FreeBSD.
23136 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23138 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
23140 (CMPGE_8HI): Likewise.
23141 (CMPGE_4SI): Likewise.
23142 (CMPGE_2DI): Likewise.
23143 (CMPGE_U16QI): Likewise.
23144 (CMPGE_U8HI): Likewise.
23145 (CMPGE_U4SI): Likewise.
23146 (CMPGE_U2DI): Likewise.
23147 (CMPLE_16QI): Likewise.
23148 (CMPLE_8HI): Likewise.
23149 (CMPLE_4SI): Likewise.
23150 (CMPLE_2DI): Likewise.
23151 (CMPLE_U16QI): Likewise.
23152 (CMPLE_U8HI): Likewise.
23153 (CMPLE_U4SI): Likewise.
23154 (CMPLE_U2DI): Likewise.
23155 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
23156 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
23157 ALTIVEC_BUILTIN_VEC_CMPLE.
23158 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
23159 floating-point vector modes.
23160 (vector_nlt<mode>): New define_expand.
23161 (vector_nltu<mode>): Likewise.
23162 (vector_ngt<mode>): Likewise.
23163 (vector_ngtu<mode>): Likewise.
23165 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
23167 PR rtl-optimization/66706
23168 * combine.c (make_compound_operation): If an AND of SUBREG of
23169 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
23171 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
23173 * tree-pass.h (make_pass_ch_vect): New.
23174 * passes.def: Add pass_ch_vect just before pass_if_conversion.
23176 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
23177 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
23178 make_pass_ch_vect): New.
23179 (pass_ch): Extend ch_base.
23181 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
23182 (ch_base::copy_headers): ...here.
23184 2015-07-02 Richard Biener <rguenther@suse.de>
23186 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
23187 * fold-const.c (get_pointer_modulus_and_residue): Remove.
23188 (fold_binary_loc): Implement (T)ptr & CST in terms of
23189 get_pointer_alignment_1.
23190 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
23191 Make sure to build the alignment test on a SSA name without
23192 final alignment info valid only after the prologue.
23194 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
23196 * config/cris/cris.md ("epilogue"): Remove condition.
23197 ("prologue"): Ditto.
23199 2015-07-02 Richard Biener <rguenther@suse.de>
23201 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
23202 parameter to record a condition that is false.
23203 (record_conditions): When recording an extra NE_EXPR that is
23204 true also record a EQ_EXPR that is false.
23206 2015-07-02 Bin Cheng <bin.cheng@arm.com>
23208 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
23209 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
23210 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
23211 (set_iv, find_interesting_uses_address, add_candidate_1): New
23212 argument to alloc_iv.
23213 (find_interesting_uses_op, find_interesting_uses_cond): Don't
23214 duplicate struct iv.
23215 (free_loop_data): Don't free struct iv explicitly.
23216 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
23218 2015-07-01 DJ Delorie <dj@redhat.com>
23220 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
23222 (SUPPORTS_DISCRIMINATOR): Define.
23224 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23227 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
23228 there are no CALLs in the same pattern.
23230 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
23232 PR rtl-optimization/61047
23233 * rtlanal.c (get_initial_register_offset): New function.
23234 (rtx_addr_can_trap_p_1): Check offsets of stack references.
23236 2015-07-01 Richard Biener <rguenther@suse.de>
23238 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
23239 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
23240 ~X CMP C -> X CMP' ~C to ...
23241 * match.pd: ... patterns here.
23243 2015-07-01 Nick Clifton <nickc@redhat.com>
23245 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
23246 a 16-bit value into a 20-bit memory slot.
23248 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23250 * doc/sourcebuild.texi (AArch64-specific attributes): Document
23251 "aarch64_tiny", "aarch64_small", "aarch64_large",
23252 "aarch64_little_endian", "aarch64_big_endian".
23254 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23256 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
23257 Document "aarch64_small_fpic".
23259 2015-07-01 Jiong Wang <jiong.wang@arm.com>
23261 * configure.ac: Add check for aarch64 assembler -fpic relocation
23263 * configure: Regenerate.
23264 * config.in: Regenerate.
23265 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
23266 to -fPIC if not support of -fpic relocation modifier in assembler.
23268 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
23271 * rtl.c (classify_insn): Handle returns in PARALLELs.
23273 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
23275 PR middle-end/66633
23276 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
23277 to true if the function is nested and if not optimizing.
23278 (convert_local_omp_clauses): Initialize need_frame to true if the
23279 function contains nested functions and if not optimizing.
23281 2015-07-01 Richard Biener <rguenther@suse.de>
23283 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
23284 (X & Y) ^ Y -> ~X & Y transforms to ...
23285 * match.pd: ... here.
23287 2015-07-01 Richard Biener <rguenther@suse.de>
23289 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
23290 of converts to avoid uninteresting noise from the conversion
23291 simplifying patterns.
23293 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
23295 * config/c6x/c6x.c (try_rename_operands): Do not depend on
23296 gcc_assert evaluating its argument for side-effect.
23298 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
23301 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
23304 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23306 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
23307 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
23308 (hash_scc): Add this_ref_p and ref_p parameters and pass them
23309 to the inner DFS walk.
23311 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23313 * target-insns.def (jump): New targetm instruction pattern.
23314 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
23315 instead of gen_jump.
23316 (fix_up_crossing_landing_pad): Likewise.
23317 (add_labels_and_missing_jumps): Likewise.
23318 (fix_crossing_conditional_branches): Likewise.
23319 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
23320 (force_nonfallthru_and_redirect): Likewise.
23321 * cse.c (cse_insn): Likewise.
23322 * expmed.c (expand_divmod): Likewise.
23323 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
23324 * haifa-sched.c (init_before_recovery): Likewise.
23325 (sched_create_recovery_edges): Likewise.
23326 * ifcvt.c (find_cond_trap): Likewise.
23327 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
23328 (expand_float, expand_fix): Likewise.
23329 * stmt.c (emit_jump): Likewise.
23331 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23333 * defaults.h (HAVE_load_multiple, gen_load_multiple)
23334 (HAVE_store_multiple, gen_store_multiple): Delete.
23335 * target-insns.def (load_multiple, store_multiple): New targetm
23336 instruction patterns.
23337 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
23338 of HAVE_*/gen_* interface.
23340 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23342 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
23343 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
23344 (gen_mem_signal_fence): Delete.
23345 * target-insns.def (mem_signal_fence, mem_thread_fence)
23346 (memory_barrier): New targetm instruction patterns.
23347 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
23349 (expand_mem_signal_fence): Likewise.
23351 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
23353 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
23354 * target-insns.def (epilogue, prologue, sibcall_prologue): New
23355 targetm instruction patterns.
23356 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
23358 * calls.c (expand_call): Likewise.
23359 * cfgrtl.c (cfg_layout_finalize): Likewise.
23360 * df-scan.c (df_get_entry_block_def_set): Likewise.
23361 (df_get_exit_block_use_set): Likewise.
23362 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
23363 * final.c (final_start_function): Likewise.
23364 * function.c (thread_prologue_and_epilogue_insns): Likewise.
23365 (reposition_prologue_and_epilogue_notes): Likewise.
23366 * reorg.c (find_end_label): Likewise.
23367 * toplev.c (process_options): Likewise.
23369 2015-06-30 David Malcolm <dmalcolm@redhat.com>
23371 * typed-splay-tree.h: New file.
23373 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
23376 * lra-int.h (lra_substitute_pseudo): Add a parameter.
23377 (lra_substitute_pseudo_within_insn): Ditto.
23378 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
23380 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
23381 to lra_substitute_pseudo.
23382 * lra-lives.c (process_bb_lives): Add an argument to
23383 lra_substitute_pseudo_within_insn call.
23384 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
23385 argument to lra_substitute_pseudo and
23386 lra_substitute_pseudo_within_insn calls.
23387 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
23389 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23391 * configure: Regenerated.
23393 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
23395 * config.gcc: Support i[34567]86-*-elfiamcu target.
23396 * config/i386/iamcu.h: New.
23397 * config/i386/i386.opt: Add -miamcu.
23398 * doc/invoke.texi: Document -miamcu.
23399 * common/config/i386/i386-common.c (ix86_handle_option): Turn
23400 off x87/MMX/SSE/AVX codegen for -miamcu.
23401 * config/i386/i386-c.c (ix86_target_macros_internal): Define
23402 __iamcu/__iamcu__ for -miamcu.
23403 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
23404 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
23405 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
23406 * config/i386/i386.c (ix86_option_override_internal): Ignore and
23407 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
23408 MCU by default. Default long double to 64-bit for Intel MCU.
23409 Turn on -freg-struct-return for Intel MCU. Issue an error when
23410 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
23412 (function_arg_advance_32): Pass value whose size is no larger
23413 than 8 bytes in registers for Intel MCU.
23414 (function_arg_32): Likewise.
23415 (ix86_return_in_memory): Return value whose size is no larger
23416 than 8 bytes in registers for Intel MCU.
23417 (iamcu_alignment): New function.
23418 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
23420 (ix86_local_alignment): Don't increase alignment for Intel MCU.
23421 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
23424 2015-06-30 Marek Polacek <polacek@redhat.com>
23426 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
23427 both operands of the resulting expression.
23429 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
23430 the final expression with the operand's type and then convert
23431 it to the type of the expression.
23433 2015-06-30 Richard Biener <rguenther@suse.de>
23435 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
23436 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
23437 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
23438 * match.pd: ... to patterns here.
23440 2015-06-30 Richard Biener <rguenther@suse.de>
23442 PR tree-optimization/66704
23443 * tree-vect-data-refs.c (vect_setup_realignment): Use
23444 make_ssa_name for non-SSA name source.
23446 2015-06-30 Jakub Jelinek <jakub@redhat.com>
23448 PR middle-end/66702
23449 * omp-low.c (simd_clone_adjust): Handle addressable linear
23450 or uniform parameters or non-gimple type uniform parameters.
23452 2015-06-30 Richard Biener <rguenther@suse.de>
23454 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
23455 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
23456 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
23457 * match.pd: ... here.
23458 Add a few cases of A - B -> A + (-B) when B "easily" negates.
23459 Move (x & y) | x -> x and friends before
23460 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
23462 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
23464 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
23465 -mfix-ut699 is not specified.
23466 (leon3_load): Rename into...
23467 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
23470 2015-06-30 Marek Polacek <polacek@redhat.com>
23472 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
23473 * match.pd: ... here.
23475 2015-06-30 Richard Biener <rguenther@suse.de>
23477 * target-insns.def (canonicalize_funcptr_for_compare): Add.
23478 * fold-const.c (build_range_check): Replace uses of
23479 HAVE_canonicalize_funcptr_for_compare.
23480 (fold_widened_comparison): Likewise.
23481 (fold_sign_changed_comparison): Likewise.
23482 * dojump.c: Include "target.h".
23483 (do_compare_and_jump): Replace uses of
23484 HAVE_canonicalize_funcptr_for_compare and
23485 gen_canonicalize_funcptr_for_compare.
23486 * expr.c (do_store_flag): Likewise.
23488 2015-06-30 Tom de Vries <tom@codesourcery.com>
23490 PR tree-optimization/66652
23491 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
23492 max_loop_iterations to determine if nit + 1 overflows.
23494 2015-06-30 Richard Biener <rguenther@suse.de>
23496 * tree-vrp.c (register_edge_assert_for_2): Also register
23497 asserts for dominating conversion results.
23499 2015-06-30 Bin Cheng <bin.cheng@arm.com>
23501 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
23502 field in struct iv.
23504 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
23507 * configure.ac: Fix filds and fildq test for 64-bit.
23508 * configure: Regenerated.
23510 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
23512 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
23513 (nvptx_reorg): Here. Keep the non-subreg pieces.
23515 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
23517 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
23518 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
23520 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
23522 * config/i386/i386.md (*jcc_1): Use %! in asm template.
23523 Set attribute "length_nobnd" instead of "length".
23526 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
23528 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
23530 * config/nios2/nios2.c (nios2_delegitimize_address): Make
23531 assert less restrictive.
23533 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
23536 * cgraphunit.c (cgraph_node::finalize_function): Do not call
23537 do_warn_unused_parameter.
23538 * function.c (do_warn_unused_parameter): Move from here.
23539 * function.h (do_warn_unused_parameter): Do not declare.
23541 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23544 * gcc.target/arm/armv-sync-comp-swap.c: New.
23545 * gcc.target/arm/armv-sync-op-acquire.c: New.
23546 * gcc.target/arm/armv-sync-op-full.c: New.
23547 * gcc.target/arm/armv-sync-op-release.c: New.
23549 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23552 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
23553 initial acquire barrier with final barrier.
23555 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23558 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
23559 initial acquire barrier with final barrier.
23561 2015-06-29 Richard Henderson <rth@redhat.com>
23563 * config/i386/constraints.md (Bf): New constraint.
23564 * config/i386/i386-c.c (ix86_target_macros): Define
23565 __GCC_ASM_FLAG_OUTPUTS__.
23566 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
23568 * doc/extend.texi (FlagOutputOperands): Document them.
23570 2015-06-29 Jiong Wang <jiong.wang@arm.com>
23572 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
23573 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
23575 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
23576 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
23577 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
23578 (aarch64_symbol_context): Ditto.
23579 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
23580 and use new pattern name.
23581 (aarch64_expand_mov_immediate): Ditto.
23582 (aarch64_print_operand): Ditto.
23583 (aarch64_classify_tls_symbol): Ditto.
23585 2015-06-29 Marek Polacek <polacek@redhat.com>
23586 Marc Glisse <marc.glisse@inria.fr>
23588 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
23589 * match.pd: ... pattern here.
23591 2015-06-29 Tom de Vries <tom@codesourcery.com>
23593 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
23594 function structure.
23596 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
23598 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
23599 feature description, split out the native option, add a link to
23600 the feature documentation, rearrange and slightly rewrite text.
23601 (Aarch64 options, -mcpu): Likewise.
23602 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
23603 +rdma implies Adv. SIMD.
23605 2015-06-29 Marek Polacek <polacek@redhat.com>
23608 * function.c (stack_protect_epilogue): Remove a cast to int.
23609 * doc/invoke.texi: Update -Wswitch-bool description.
23611 2015-06-29 Richard Biener <rguenther@suse.de>
23613 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
23614 * fold-const.c (fold_binary_loc): Move &A - &B simplification
23615 via ptr_difference_const ...
23616 * match.pd: ... here.
23617 When matching (X ^ Y) == Y also match with swapped operands.
23619 2015-06-29 Richard Biener <rguenther@suse.de>
23621 * lto-streamer.h (LTO_major_version): Bump to 5.
23623 2015-06-29 Richard Biener <rguenther@suse.de>
23625 PR tree-optimization/66677
23626 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
23627 STMT_VINFO_VEC_STMT clobbering less strict.
23629 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
23631 PR middle-end/64130
23632 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
23633 division, compute max and min when value ranges for dividend and
23634 divisor are available.
23636 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
23637 Sandra Loosemore <sandra@codesourcery.com>
23639 * regrename.h (regrename_do_replace): Change to return bool.
23640 * regrename.c (rename_chains): Check return value of
23641 regname_do_replace.
23642 (regrename_do_replace): Re-validate the modified insns and
23643 return bool status.
23644 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
23645 Update to match rename_chains changes.
23646 * config/c6x/c6x.c (try_rename_operands): Assert that
23647 regrename_do_replace returns true.
23649 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
23651 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
23652 operand 2 here. Use copy_addr_to_reg to copy non-index
23653 register operand 2 to a temporary.
23654 (<mode>_stx): Ditto for operand 1.
23655 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
23656 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
23657 (ix86_store_bounds): Ditto.
23659 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
23661 * print-tree.c (print_node) [TREE_VEC]: Print its length.
23663 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
23665 * gimple.c (gimple_call_set_fndecl): Remove.
23666 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
23667 build1_loc directly instead of build_fold_addr_expr_loc.
23669 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23671 * hash-map.h (hash_map::traverse): Use the definition of the
23672 Key typedef rather than the typedef itself.
23674 2015-06-26 Martin Jambor <mjambor@suse.cz>
23677 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
23678 NULL instead of calling dump_enabled_p.
23680 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23682 * config/aarch64/aarch64.opt: (override): New.
23683 * doc/invoke.texi (override): Document.
23684 * config/aarch64/aarch64.c (aarch64_flag_desc): New
23685 (aarch64_fusible_pairs): Likewise.
23686 (aarch64_tuning_flags): Likewise.
23687 (aarch64_tuning_override_function): Likewise.
23688 (aarch64_tuning_override_functions): Likewise.
23689 (aarch64_parse_one_option_token): Likewise.
23690 (aarch64_parse_boolean_options): Likewise.
23691 (aarch64_parse_fuse_string): Likewise.
23692 (aarch64_parse_tune_string): Likewise.
23693 (aarch64_parse_one_override_token): Likewise.
23694 (aarch64_parse_override_string): Likewise.
23695 (aarch64_override_options): Parse the -override string if it
23698 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23700 * config/aarch64/aarch64-protos.h (tune_params): Remove
23701 const from members.
23702 (aarch64_tune_params): Remove const, change to no longer be
23704 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
23705 change to no longer be a pointer, initialize to generic_tunings.
23706 (aarch64_min_divisions_for_recip_mul): Change dereference of
23707 aarch64_tune_params to member access.
23708 (aarch64_reassociation_width): Likewise.
23709 (aarch64_rtx_mult_cost): Likewise.
23710 (aarch64_address_cost): Likewise.
23711 (aarch64_branch_cost): Likewise.
23712 (aarch64_rtx_costs): Likewise.
23713 (aarch64_register_move_cost): Likewise.
23714 (aarch64_memory_move_cost): Likewise.
23715 (aarch64_sched_issue_rate): Likewise.
23716 (aarch64_builtin_vectorization_cost): Likewise.
23717 (aarch64_override_options): Take a copy of the selected tuning
23718 struct in to aarch64_tune_params, rather than just setting
23719 a pointer, change dereferences of aarch64_tune_params to member
23721 (aarch64_override_options_after_change): Change dereferences of
23722 aarch64_tune_params to member access.
23723 (aarch64_macro_fusion_p): Likewise.
23724 (aarch_macro_fusion_pair_p): Likewise.
23725 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
23727 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23729 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
23730 (aarch64_tune_flags): Likewise.
23731 (AARCH64_TUNE_FMA_STEERING): Likewise.
23732 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
23733 to AARCH64_FL_USE_FMA_STEERING_PASS.
23734 (cortex-a57.cortex-a53): Likewise.
23735 (cortex-a72): Use cortexa72_tunings.
23736 (cortex-a72.cortex-a53): Likewise.
23737 (exynos-m1): Likewise.
23738 * config/aarch64/aarch64-protos.h (tune_params): Add
23739 a field: extra_tuning_flags.
23740 * config/aarch64/aarch64-tuning-flags.def: New.
23741 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
23742 (aarch64_extra_tuning_flags): Likewise.
23743 (aarch64_tune_params): Declare here.
23744 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
23745 (cortexa53_tunings): Likewise.
23746 (cortexa57_tunings): Likewise.
23747 (thunderx_tunings): Likewise.
23748 (xgene1_tunings): Likewise.
23749 (cortexa72_tunings): New.
23750 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
23751 (gate): Check against aarch64_tune_params.
23752 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
23755 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
23757 * config/aarch64/aarch64-fusion-pairs.def: New.
23758 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
23759 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
23760 aarch64_fusion_pairs.
23761 (AARCH64_FUSE_MOV_MOVK): Likewise.
23762 (AARCH64_FUSE_ADRP_ADD): Likewise.
23763 (AARCH64_FUSE_MOVK_MOVK): Likewise.
23764 (AARCH64_FUSE_ADRP_LDR): Likewise.
23765 (AARCH64_FUSE_CMP_BRANCH): Likewise.
23767 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23769 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
23770 SYMBOL_SMALL_GOT_28K.
23771 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
23772 relocation modifiers.
23773 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
23774 (ldr_got_small_28k_<mode>): New.
23775 (ldr_got_small_28k_sidi): New.
23776 * config/aarch64/iterators.md (got_modifier): New mode iterator.
23777 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
23778 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
23779 SYMBOL_SMALL_GOT_28K.
23780 (aarch64_rtx_costs): Add costs for new instruction sequences.
23781 (initialize_aarch64_code_model): Initialize new model.
23782 (aarch64_classify_symbol): Recognize new model and new symbol classification.
23783 (aarch64_asm_preferred_eh_data_format): Support new model.
23784 (aarch64_load_symref_appropriately): Generate new instruction
23785 sequences for -fpic.
23786 (TARGET_USE_PSEUDO_PIC_REG): New definition.
23787 (aarch64_use_pseudo_pic_reg): New function.
23789 2015-06-26 Jiong Wang <jiong.wang@arm.com>
23791 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
23792 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
23793 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
23794 (aarch64_expand_mov_immediate): Ditto.
23795 (aarch64_print_operand): Ditto.
23796 (aarch64_classify_symbol): Ditto.
23798 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
23800 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
23802 2015-06-26 Bin Cheng <bin.cheng@arm.com>
23805 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
23806 assertion failed. Remove assertion itself.
23808 2015-06-26 Richard Biener <rguenther@suse.de>
23810 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
23811 and -A CMP CST -> A CMP -CST which is redundant with a pattern
23813 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
23814 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
23815 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
23816 * match.pd: ... patterns here.
23818 2015-06-26 Marek Polacek <polacek@redhat.com>
23820 * match.pd ((x | y) & ~(x & y) -> x ^ y,
23821 (x | y) & (~x ^ y) -> x & y): New patterns.
23823 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
23825 * rtl.h (emit): Add an optional boolean parameter to control
23826 whether barriers are emitted.
23827 * emit-rtl.c (emit): Likewise.
23828 * gensupport.c (get_emit_function): Return null rather than "emit".
23829 * genemit.c (gen_emit_seq): Handle the null return value.
23830 Don't emit barriers after the final instruction in the sequence.
23831 * gentarget-def.c (main): Don't emit barriers after the instruction.
23833 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23835 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
23836 TARGET_UNIFIED_ASM.
23838 2015-06-26 Richard Biener <rguenther@suse.de>
23840 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
23842 2015-06-26 Richard Biener <rguenther@suse.de>
23844 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
23845 irrespective on whether the inner operation has a single use
23846 of both off are constant.
23848 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
23849 Segher Boessenkool <segher@kernel.crashing.org>
23852 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
23853 before doing PUT_MODE or PUT_CODE on operands to avoid
23854 in-place RTX modification.
23856 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23858 * gentarget-def.c (def_target_insn): Cast return of strtol to
23861 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23863 * gimple.h (gimple_call_set_fn): Move inline function.
23864 * gimple.c (gimple_call_set_fn): Relocate here.
23866 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
23870 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
23871 the replacement insn will work.
23873 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
23875 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
23878 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
23880 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
23881 * cgraph.h: Include ipa-ref.h and plugin-api.h.
23882 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
23883 (symtab_node::address_can_be_compared_p): Move function.
23884 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
23886 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
23887 * auto-profile.c: Likewise.
23888 * bb-reorder.c: Likewise.
23889 * builtins.c: Likewise.
23890 * calls.c: Likewise.
23891 * cfgexpand.c: Likewise.
23892 * cgraphbuild.c: Likewise.
23893 * cgraphclones.c: Likewise.
23894 * cgraphunit.c: Likewise.
23895 * combine.c: Likewise.
23896 * coverage.c: Likewise.
23897 * data-streamer-in.c: Likewise.
23898 * data-streamer-out.c: Likewise.
23899 * data-streamer.c: Likewise.
23900 * dbxout.c: Likewise.
23901 * dwarf2out.c: Likewise.
23902 * except.c: Likewise.
23903 * expr.c: Likewise.
23904 * final.c: Likewise.
23905 * fold-const.c: Likewise.
23906 * ggc-page.c: Likewise.
23907 * gimple-fold.c: Likewise.
23908 * gimple-iterator.c: Likewise.
23909 * gimple-pretty-print.c: Likewise.
23910 * gimple-streamer-in.c: Likewise.
23911 * gimple-streamer-out.c: Likewise.
23912 * gimple.c: Likewise.
23913 * gimplify.c: Likewise.
23914 * ipa-chkp.c: Likewise.
23915 * ipa-comdats.c: Likewise.
23916 * ipa-cp.c: Likewise.
23917 * ipa-devirt.c: Likewise.
23918 * ipa-icf-gimple.c: Likewise.
23919 * ipa-icf.c: Likewise.
23920 * ipa-inline-analysis.c: Likewise.
23921 * ipa-inline-transform.c: Likewise.
23922 * ipa-inline.c: Likewise.
23923 * ipa-polymorphic-call.c: Likewise.
23924 * ipa-profile.c: Likewise.
23925 * ipa-prop.c: Likewise.
23926 * ipa-pure-const.c: Likewise.
23927 * ipa-ref.c: Likewise.
23928 * ipa-reference.c: Likewise.
23929 * ipa-split.c: Likewise.
23930 * ipa-utils.c: Likewise.
23931 * ipa-visibility.c: Likewise.
23933 * langhooks.c: Likewise.
23934 * lto-cgraph.c: Likewise.
23935 * lto-compress.c: Likewise.
23936 * lto-opts.c: Likewise.
23937 * lto-section-in.c: Likewise.
23938 * lto-section-out.c: Likewise.
23939 * lto-streamer-in.c: Likewise.
23940 * lto-streamer-out.c: Likewise.
23941 * lto-streamer.c: Likewise.
23942 * omp-low.c: Likewise.
23943 * opts-global.c: Likewise.
23944 * passes.c: Likewise.
23945 * predict.c: Likewise.
23946 * print-tree.c: Likewise.
23947 * profile.c: Likewise.
23949 * sanopt.c: Likewise.
23950 * stor-layout.c: Likewise.
23951 * symtab.c: Likewise.
23952 * toplev.c: Likewise.
23953 * trans-mem.c: Likewise.
23954 * tree-cfg.c: Likewise.
23955 * tree-chkp.c: Likewise.
23956 * tree-eh.c: Likewise.
23957 * tree-emutls.c: Likewise.
23958 * tree-inline.c: Likewise.
23959 * tree-nested.c: Likewise.
23960 * tree-parloops.c: Likewise.
23961 * tree-pretty-print.c: Likewise.
23962 * tree-profile.c: Likewise.
23963 * tree-sra.c: Likewise.
23964 * tree-ssa-alias.c: Likewise.
23965 * tree-ssa-live.c: Likewise.
23966 * tree-ssa-loop-ivcanon.c: Likewise.
23967 * tree-ssa-loop-ivopts.c: Likewise.
23968 * tree-ssa-pre.c: Likewise.
23969 * tree-ssa-sccvn.c: Likewise.
23970 * tree-ssa-strlen.c: Likewise.
23971 * tree-ssa-structalias.c: Likewise.
23972 * tree-streamer-in.c: Likewise.
23973 * tree-streamer-out.c: Likewise.
23974 * tree-streamer.c: Likewise.
23975 * tree-switch-conversion.c: Likewise.
23976 * tree-tailcall.c: Likewise.
23977 * tree-vect-data-refs.c: Likewise.
23978 * tree-vect-stmts.c: Likewise.
23979 * tree-vectorizer.c: Likewise.
23980 * tree.c: Likewise.
23981 * tsan.c: Likewise.
23982 * ubsan.c: Likewise.
23983 * value-prof.c: Likewise.
23984 * varasm.c: Likewise.
23985 * varpool.c: Likewise.
23986 * config/arm/arm.c: Likewise.
23987 * config/bfin/bfin.c: Likewise.
23988 * config/c6x/c6x.c: Likewise.
23989 * config/cris/cris.c: Likewise.
23990 * config/darwin-c.c: Likewise.
23991 * config/darwin.c: Likewise.
23992 * config/i386/i386.c: Likewise.
23993 * config/i386/winnt.c: Likewise.
23994 * config/microblaze/microblaze.c: Likewise.
23995 * config/mips/mips.c: Likewise.
23996 * config/rs6000/rs6000.c: Likewise.
23997 * config/rx/rx.c: Likewise.
23998 * config/s390/s390.c: Likewise.
23999 * config/tilegx/mul-tables.c: Likewise.
24001 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24003 * config/aarch64/aarch64.c, config/alpha/alpha.c,
24004 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
24005 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
24006 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
24007 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24008 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24009 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24010 config/microblaze/microblaze.c, config/mips/mips.c,
24011 config/mmix/mmix.c, config/mn10300/mn10300.c,
24012 config/moxie/moxie.c, config/msp430/msp430.c,
24013 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24014 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24015 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24016 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24017 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24018 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24019 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
24020 target-def.h include.
24021 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
24023 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24025 * Makefile.in (TARGET_DEF): Add target-insns.def.
24026 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
24027 (build/gentarget-def.o): New rule.
24028 (genprogrtl): Add target-def.
24029 * target-insns.def, gentarget-def.c: New files.
24030 * target.def: Add targetm.have_* and targetm.gen_* hooks,
24031 based on the contents of target-insns.def.
24032 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
24033 (HAVE_return, gen_return): Delete.
24034 * target-def.h: Include insn-target-def.h.
24035 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
24036 instead of direct calls. Rely on them to do the appropriate assertions.
24037 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
24038 (convert_jumps_to_returns): Use targetm interface instead of
24040 (thread_prologue_and_epilogue_insns): Likewise.
24041 * reorg.c (find_end_label, dbr_schedule): Likewise.
24042 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
24043 * shrink-wrap.c (convert_to_simple_return): Likewise.
24044 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
24046 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24048 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
24049 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
24050 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
24051 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
24052 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
24053 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
24054 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
24055 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
24056 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
24057 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
24058 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
24059 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
24060 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
24061 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
24062 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
24063 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
24066 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24068 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
24069 (unbounded_int_hashmap_traits::key_type): Likewise.
24070 * hash-map.h (hash_map): Get the key type from the traits.
24071 * hash-traits.h (default_hash_traits): By default, inherit from the
24072 template parameter.
24073 * alias.c (alias_set_traits): Delete.
24074 (alias_set_entry_d::children): Use alias_set_hash as the first
24075 template parameter.
24076 (record_alias_subset): Update accordingly.
24077 * except.c (tree_hash_traits): Delete.
24078 (type_to_runtime_map): Use tree_hash as the first template parameter.
24079 (init_eh): Update accordingly.
24080 * genmatch.c (capture_id_map_hasher): Delete.
24081 (cid_map_t): Use nofree_string_hash as first template parameter.
24082 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
24083 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
24084 Use symbol_compare_hash as the first template parameter in
24085 subdivide_hash_map.
24086 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
24087 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
24088 template parameter.
24089 * passes.c (pass_registry_hasher): Delete.
24090 (name_to_pass_map): Use nofree_string_hash as the first template
24092 (register_pass_name): Update accordingly.
24093 * sanopt.c (sanopt_tree_map_traits): Delete.
24094 (sanopt_tree_triplet_map_traits): Delete.
24095 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
24096 template parameter.
24097 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
24098 the first template parameter.
24099 * sese.c (rename_map_hasher): Delete.
24100 (rename_map_type): Use tree_ssa_name_hash as the first template
24102 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
24103 (function_summary::m_map): Use map_hash as the first template
24105 (function_summary::release): Update accordingly.
24106 * tree-if-conv.c (phi_args_hash_traits): Delete.
24107 (predicate_scalar_phi): Use tree_operand_hash as the first template
24108 parameter to phi_arg_map.
24109 * tree-inline.h (dependence_hasher): Delete.
24110 (copy_body_data::dependence_map): Use dependence_hash as the first
24111 template parameter.
24112 * tree-inline.c (remap_dependence_clique): Update accordingly.
24113 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
24114 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
24116 (addr_stridxptr): Update accordingly.
24117 * value-prof.c (profile_id_traits): Delete.
24118 (cgraph_node_map): Use profile_id_hash as the first template
24120 (init_node_map): Update accordingly.
24121 * config/alpha/alpha.c (string_traits): Delete.
24122 (machine_function::links): Use nofree_string_hash as the first
24123 template parameter.
24124 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
24125 * config/m32c/m32c.c (pragma_traits): Delete.
24126 (pragma_htab): Use nofree_string_hash as the first template parameter.
24127 (m32c_note_pragma_address): Update accordingly.
24128 * config/mep/mep.c (pragma_traits): Delete.
24129 (pragma_htab): Use nofree_string_hash as the first template parameter.
24130 (mep_note_pragma_flag): Update accordingly.
24131 * config/mips/mips.c (mips16_flip_traits): Delete.
24132 (mflip_mips16_htab): Use nofree_string_hash as the first template
24134 (mflip_mips16_use_mips16_p): Update accordingly.
24135 (local_alias_traits): Delete.
24136 (mips16_local_aliases): Use nofree_string_hash as the first template
24138 (mips16_local_alias): Update accordingly.
24140 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24142 * hash-map-traits.h (default_hashmap_traits): Delete.
24144 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24146 * hash-map-traits.h (unbounded_hashmap_traits): New class.
24147 (unbounded_int_hashmap_traits): Likewise.
24148 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
24150 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24152 * ipa-icf.h (symbol_compare_hash): New class.
24153 (symbol_compare_hashmap_traits): Use it.
24154 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
24155 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
24156 (mem_alloc_description::reverse_mem_map_t): Remove redundant
24157 default_hashmap_traits.
24158 * sanopt.c (sanopt_tree_triplet_hash): New class.
24159 (sanopt_tree_triplet_map_traits): Use it.
24161 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24163 * gengtype-parse.c (require_template_declaration): Allow '+' in
24164 template parameters. Consolidate cases.
24165 * hash-traits.h (int_hash): New class.
24166 * alias.c (alias_set_hash): New structure.
24167 (alias_set_traits): Use it.
24168 * symbol-summary.h (function_summary::map_hash): New class.
24169 (function_summary::summary_hashmap_traits): Use it.
24170 * tree-inline.h (dependence_hash): New class.
24171 (dependence_hasher): Use it.
24172 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
24173 * value-prof.c (profile_id_hash): New class.
24174 (profile_id_traits): Use it.
24176 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24178 * config/mips/mips.c (mips16_flip_traits): Use it.
24179 (local_alias_traits, mips16_local_aliases): Convert from a map of
24180 rtxes to a map of symbol names.
24181 (mips16_local_alias): Update accordingly.
24183 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24185 * hash-traits.h (string_hash, nofree_string_hash): New classes.
24186 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
24187 * passes.c (pass_registry_hasher): Likewise.
24188 * config/alpha/alpha.c (string_traits): Likewise.
24189 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
24190 * config/m32c/m32c.c (pragma_traits): Likewise.
24191 * config/mep/mep.c (pragma_traits): Likewise.
24193 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24195 * tree-hash-traits.h (tree_hash): New class.
24196 * except.c: Include tree-hash-traits.h.
24197 (tree_hash_traits): Use tree_hash.
24199 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24201 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
24202 * sese.c: Include tree-hash-traits.h.
24203 (rename_map_hasher): Use tree_ssa_name_hasher.
24205 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24207 * tree-hash-traits.h (tree_decl_hash): New class.
24208 * tree-ssa-strlen.c: Include tree-hash-traits.h.
24209 (stridxlist_hash_traits): Use tree_decl_hash.
24211 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24213 * tree-hash-traits.h: New file.
24214 (tree_operand_hash): New class.
24215 * sanopt.c: Include tree-hash-traits.h.
24216 (sanopt_tree_map_traits): Use tree_operand_hash.
24217 * tree-if-conv.c: Include tree-hash-traits.h.
24218 (phi_args_hash_traits): Use tree_operand_hash.
24219 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
24220 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
24222 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24224 * hash-map-traits.h: Include hash-traits.h.
24225 (simple_hashmap_traits): New class.
24226 * mem-stats.h (hash_map): Change the default traits to
24227 simple_hashmap_traits<default_hash_traits<Key> >.
24229 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24231 * hash-table.h: Update comments.
24233 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24235 * hash-traits.h (default_hash_traits): New structure.
24236 * hash-set.h (default_hashset_traits): Delete.
24237 (hash_set): Use default_hash_traits<Key> instead of
24238 default_hashset_traits. Delete hash_entry type and use Key directly.
24239 * ipa-devirt.c (pair_traits): Delete.
24240 (default_hash_traits <type_pair>): Override.
24241 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
24242 (odr_types_equivalent_p, add_type_duplicate): Likewise.
24244 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24246 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
24248 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24250 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
24251 (has_is_empty, is_empty_helper): Delete.
24252 (has_mark_deleted, mark_deleted_helper): Delete.
24253 (has_mark_empty, mark_empty_helper): Delete.
24254 (hash_table::is_deleted): Call the Descriptor unconditionally.
24255 (hash_table::is_empty): Likewise.
24256 (hash_table::mark_deleted): Likewise.
24257 (hash_table::mark_empty): Likewise.
24259 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24261 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
24262 redundant typedefs and members.
24263 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
24264 redundant typedefs.
24265 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
24266 * ipa-devirt.c (odr_name_hasher): Likewise.
24267 (polymorphic_call_target_hasher): Likewise.
24268 * ira-costs.c (cost_classes_hasher): Likewise.
24269 * statistics.c (stats_counter_hasher): Likewise.
24270 * trans-mem.c (log_entry_hasher): Likewise.
24271 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
24272 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
24273 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
24274 * var-tracking.c (variable_hasher): Likewise.
24275 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
24276 Remove redundant typedefs and members.
24278 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24280 * hash-traits.h (ggc_cache_hasher): Rename to...
24281 (ggc_cache_remove): ...this and remove typedefs.
24282 (ggc_cache_ptr_hash): New class.
24283 * hash-table.h: Update commentary.
24284 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
24285 rather than ggc_cache_hasher.
24286 (const_wide_int_hasher, reg_attr_hasher): Likewise.
24287 (const_double_hasher, const_fixed_hasher): Likewise.
24288 * function.c (insn_cache_hasher): Likewise.
24289 * trans-mem.c (tm_wrapper_hasher): Likewise.
24290 * tree.h (tree_decl_map_cache_hasher): Likewise.
24291 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
24292 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
24293 * ubsan.c (tree_type_map_cache_hasher): Likewise.
24294 * varasm.c (tm_clone_hasher): Likewise.
24295 * config/i386/i386.c (dllimport_hasher): Likewise.
24296 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
24297 (tree_hasher): Likewise.
24299 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24301 * hash-traits.h (ggc_hasher): Rename to...
24302 (ggc_remover): ...this and remove typedefs.
24303 (ggc_cache_hasher): Update accordingly. Add typedefs.
24304 (ggc_ptr_hash): New class.
24305 * hash-table.h: Update comment.
24306 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
24308 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
24309 (tree_descriptor_hasher): Likewise.
24310 * cgraph.c (function_version_hasher): Likewise.
24311 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
24312 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
24313 (dw_loc_list_hasher, addr_hasher): Likewise.
24314 * function.h (used_type_hasher): Likewise.
24315 * function.c (temp_address_hasher): Likewise.
24316 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
24317 * libfuncs.h (libfunc_hasher): Likewise.
24318 * lto-streamer.h (decl_state_hasher): Likewise.
24319 * optabs.c (libfunc_decl_hasher): Likewise.
24320 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
24321 * varasm.c (section_hasher, object_block_hasher): Likewise.
24322 (const_rtx_desc_hasher): Likewise.
24323 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
24324 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
24326 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24328 * hash-traits.h (free_ptr_hash): New class.
24329 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
24330 rather than typed_free_remove. Remove redudant typedefs.
24331 (external_ref_hasher): Likewise.
24332 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
24333 (ehspec_hasher): Likewise.
24334 * ggc-common.c (saving_hasher): Likewise.
24335 * gimplify.c (gimplify_hasher): Likewise.
24336 * haifa-sched.c (delay_i2_hasher): Likewise.
24337 * loop-invariant.c (invariant_expr_hasher): Likewise.
24338 * loop-iv.c (biv_entry_hasher): Likewise.
24339 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
24340 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
24341 * tree-cfg.c (locus_discrim_hasher): Likewise.
24342 * tree-eh.c (finally_tree_hasher): Likewise.
24343 * tree-into-ssa.c (var_info_hasher): Likewise.
24344 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
24345 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
24346 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
24347 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
24348 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
24349 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
24350 (shared_bitmap_hasher): Likewise.
24351 * tree-ssa-threadupdate.c (redirection_data): Likewise.
24352 * tree-vectorizer.h (peel_info_hasher): Likewise.
24353 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
24354 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
24356 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24358 * hash-table.h: Update comments.
24359 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
24360 (nofree_ptr_hash): New class.
24361 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
24362 than typed_noop_remove. Remove redudant typedefs.
24363 * attribs.c (attribute_hasher): Likewise.
24364 * cfg.c (bb_copy_hasher): Likewise.
24365 * cselib.c (cselib_hasher): Likewise.
24366 * dse.c (invariant_group_base_hasher): Likewise.
24367 * dwarf2cfi.c (trace_info_hasher): Likewise.
24368 * dwarf2out.c (macinfo_entry_hasher): Likewise.
24369 (comdat_type_hasher, loc_list_hasher): Likewise.
24370 * gcse.c (pre_ldst_expr_hasher): Likewise.
24371 * genmatch.c (id_base): Likewise.
24372 * genrecog.c (test_pattern_hasher): Likewise.
24373 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
24374 * haifa-sched.c (delay_i1_hasher): Likewise.
24375 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
24376 * ipa-icf.h (congruence_class_group_hash): Likewise.
24377 * ipa-profile.c (histogram_hash): Likewise.
24378 * ira-color.c (allocno_hard_regs_hasher): Likewise.
24379 * lto-streamer.h (string_slot_hasher): Likewise.
24380 * lto-streamer.c (tree_entry_hasher): Likewise.
24381 * plugin.c (event_hasher): Likewise.
24382 * postreload-gcse.c (expr_hasher): Likewise.
24383 * store-motion.c (st_expr_hasher): Likewise.
24384 * tree-sra.c (uid_decl_hasher): Likewise.
24385 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
24386 (ssa_name_var_hash): Likewise.
24387 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
24388 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
24389 * tree-ssa-pre.c (pre_expr_d): Likewise.
24390 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
24391 * vtable-verify.h (registration_hasher): Likewise.
24392 * vtable-verify.c (vtbl_map_hasher): Likewise.
24393 * config/arm/arm.c (libcall_hasher): Likewise.
24394 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
24395 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
24396 * config/sol2.c (comdat_entry_hasher): Likewise.
24397 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
24398 (print_fold_checksum, fold_checksum_tree): Likewise.
24399 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
24400 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
24401 (fold_build_call_array_loc): Likewise.
24402 * tree-ssa-ccp.c (gimple_htab): Likewise.
24403 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
24404 rather than pointer_type.
24406 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24408 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
24409 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
24411 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24413 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
24414 (ggc_hasher::ggc_mx): Likewise.
24415 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
24416 that duplicate ggc_hasher ones.
24418 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24420 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
24421 (gt_cleare_cache): Check here for deleted and empty entries.
24422 Replace handle_cache_entry with a call to keep_cache_entry.
24423 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
24424 (ggc_cache_hasher::keep_cache_entry): New function.
24425 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
24426 (tm_wrapper_hasher::keep_cache_entry): New function.
24427 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
24428 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24429 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
24430 (type_cache_hasher::keep_cache_entry): New function.
24431 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
24432 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
24433 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
24434 (tree_type_map_cache_hasher::keep_cache_entry): New function.
24435 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
24436 (tm_clone_hasher::keep_cache_entry): New function.
24437 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
24438 (dllimport_hasher::keep_cache_entry): New function.
24440 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24442 * hash-table.h: Include hash-traits.h.
24443 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
24444 (ggc_cache_hasher): Move to...
24445 * hash-traits.h: ...this new file.
24447 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24449 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
24450 struct cl_optimization.
24451 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
24452 * tree.c (make_node_stat): Allocate cl_optimization struct.
24453 (copy_node_stat): Allocate and copy cl_optimization struct.
24455 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24457 * function.h (struct incoming_args): Move struct.
24458 (pass_by_reference, reference_callee_copied): Remove prototypes.
24459 * emit-rtl.h (struct incoming_args): Relocate struct here.
24460 * calls.h (pass_by_reference, reference_callee_copied): Relocate
24462 * function.c (pass_by_reference, reference_callee_copied): Move.
24463 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
24464 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
24465 * ipa-chkp.c: Include calls.h.
24467 2015-06-25 Andrew Macleod <amacleod@redhat.com>
24469 * alias.h (alias_set_type): Move typedef.
24470 * coretypes.h (alias_set_type): Relocate typedef here.
24471 * rtl.h: Don't include alias.h.
24473 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
24475 * cgraph.h (cgraph_rtl_info): Move to rtl.h
24476 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
24478 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
24479 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
24481 * calls.c: Include hard-reg-set.h before rtl.h.
24484 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
24485 Vladimir Makarov <vmakarov@redhat.com>
24487 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
24490 2015-06-25 Richard Biener <rguenther@suse.de>
24492 * fold-const.c (fold_binary_loc): Move simplification of
24493 (X <<>> C1) & C2 ...
24494 * match.pd: ... here.
24496 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
24498 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
24500 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
24502 * match.pd: Add patterns for vec_conds between 1 and 0.
24504 2015-06-25 Richard Biener <rguenther@suse.de>
24506 * tree-vect-stmts.c (vectorizable_conversion): Do not set
24507 STMT_VINFO_VEC_STMT for SLP.
24508 (vectorizable_store): Likewise.
24509 (vectorizable_load): Likewise.
24510 (vect_transform_stmt): Catch SLP vectorization clobbering
24511 STMT_VINFO_VEC_STMT.
24513 2015-06-25 Richard Biener <rguenther@suse.de>
24515 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
24517 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
24518 cleanup resulting dead code and parameters.
24519 (vect_transform_slp_perm_load): Adjust.
24521 2015-06-25 Nick Clifton <nickc@redhat.com>
24523 * config/bfin/bfin.c (bfin_expand_prologue): Set
24524 current_function_static_stack_size if flag_stack_usage_info is set.
24525 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
24526 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
24527 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
24528 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
24530 2015-06-25 Tom de Vries <tom@codesourcery.com>
24532 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
24533 comment that the generated IV is unsigned.
24535 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24538 * config/arm/arm.c (arm_dbx_register_number): Return
24539 DWARF_FRAME_REGISTERS by default.
24541 2015-06-25 Tom de Vries <tom@codesourcery.com>
24543 * dominance.c (calculate_dominance_info): Fix verify_dominators call
24544 argument. Call verify_dominator when reusing dominator info.
24546 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
24549 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
24550 an additional element of the unspec vector. Modify indices
24552 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
24553 * config/sh/sh.c (prepare_move_operands): Pass incremented
24554 const_int to gen_GOTaddr2picreg.
24555 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
24557 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24559 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
24560 Condition on TARGET_FLOAT.
24562 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24564 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
24567 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
24569 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
24571 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
24572 aarch64_err_no_fpadvsimd.
24574 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
24575 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
24576 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
24577 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
24578 Turn error into assert, test TARGET_FLOAT.
24579 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
24582 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
24585 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
24587 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
24589 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
24591 2015-06-24 Renlin Li <renlin.li@arm.com>
24593 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
24594 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
24596 2015-06-24 Richard Biener <rguenther@suse.de>
24598 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
24600 (lower_opt_convert): Support lowering of conditional view_convert.
24601 (parser::parse_operation): Likewise.
24602 (parser::parse_for): Likewise.
24604 2015-06-24 Renlin Li <renlin.li@arm.com>
24606 * varasm.c (emit_local): Use unsigned int for align variable.
24608 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24611 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
24612 for negative numbers.
24614 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24616 PR rtl-optimization/66306
24617 * reload.c (find_reloads): Swap the match_dup info for
24618 commutative operands.
24620 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24622 * config/s390/vx-builtins.md
24623 ("vec_scatter_element<mode>_<non_vec_int>")
24624 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
24625 attribute with bhfgq.
24627 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24629 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
24631 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24633 * config/s390/s390-builtin-types.def: Add flag to indicate the
24634 options under which the function type is needed.
24635 * config/s390/s390-builtins.def: Add flag to indicate the options
24636 under which the builtin is enabled.
24637 * config/s390/s390-builtins.h: Add flags parameter to macro
24639 (bflags_for_builtin): New function.
24640 (flags_for_builtin): Renamed to ...
24641 (opflags_for_builtin): ... this.
24642 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
24643 flags_for_builtin to bflags_for_builtin and
24644 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
24645 * config/s390/s390.c: Add initialization of bflags_builtin and
24646 opflags_builtin arrays.
24647 Remove code for flags_builtin.
24648 (s390_init_builtins): Only create builtin function types if one of
24649 their flags is active.
24650 Only create builtins if all of their flags are active.
24651 (s390_expand_builtin): Rename flags_for_builtin to
24652 opflags_for_builtin.
24654 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24656 * config/s390/vecintrin.h: Remove internal builtins.
24658 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24660 * config/s390/s390.c (s390_secondary_reload): Fix check for
24661 GENERAL_REGS register class.
24663 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24665 * config/s390/s390.c (s390_support_vector_misalignment): Call
24666 default implementation for !TARGET_VX.
24668 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24670 * config/s390/s390.c (s390_legitimate_constant_p): Add
24673 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24675 * config/s390/s390.c (s390_vector_abi): New variable definition.
24676 (s390_check_type_for_vector_abi): New function.
24677 (TARGET_ASM_FILE_END): New macro definition.
24678 (s390_asm_file_end): New function.
24679 (s390_function_arg): Call s390_check_type_for_vector_abi.
24680 (s390_gimplify_va_arg): Likewise.
24681 * configure: Regenerate.
24682 * configure.ac: Check for .gnu_attribute Binutils feature.
24684 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
24687 * config/bfin/bfin.c (hwloop_optimize): Initialize
24688 JUMP_LABEL for newly created jump.
24690 2015-06-23 Tristan Gingold <gingold@adacore.com>
24692 * collect-utils.c (collect_wait): Unlink the response file here
24694 (do_wait): ...here.
24695 (utils_cleanup): ...and here.
24697 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
24699 * df-scan.c: Don't include target-def.h.
24700 * targhooks.c: Likewise.
24701 * config/arm/arm-c.c: Likewise.
24702 * config/i386/i386-c.c: Likewise.
24703 * config/nds32/nds32-cost.c: Likewise.
24704 * config/nds32/nds32-fp-as-gp.c: Likewise.
24705 * config/nds32/nds32-intrinsic.c: Likewise.
24706 * config/nds32/nds32-isr.c: Likewise.
24707 * config/nds32/nds32-md-auxiliary.c: Likewise.
24708 * config/nds32/nds32-memory-manipulation.c: Likewise.
24709 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24710 * config/nds32/nds32-predicates.c: Likewise.
24712 2015-06-23 Richard Biener <rguenther@suse.de>
24714 PR tree-optimization/66636
24715 * tree-vect-stmts.c (vectorizable_store): Properly compute the
24716 def type for further defs for strided stores.
24718 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
24720 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
24721 conditional selects.
24722 (setcc_int<mode>, setcc_float<mode>): Reformat.
24724 2015-06-23 Marek Polacek <polacek@redhat.com>
24726 * match.pd ((x + y) - (x | y) -> x & y,
24727 (x + y) - (x & y) -> x | y): New patterns.
24729 2015-06-23 Ludovic Courtès <ludo@gnu.org>
24732 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
24733 '-dynamic-linker' within %{!shared: ...}.
24735 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
24738 * config/i386/predicates.md (addsub_vm_operator): New predicate.
24739 (addsub_vs_operator): Ditto.
24740 (addsub_vs_parallel): Ditto.
24741 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
24742 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
24743 Put minus RTX before plus and adjust vec_merge selector.
24744 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
24745 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
24746 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
24747 (addsub vec_merge splitters): New combiner splitters.
24748 (addsub vec_select/vec_concat splitters): Ditto.
24750 2015-06-23 Bin Cheng <bin.cheng@arm.com>
24752 PR tree-optimization/66449
24753 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
24754 POINTER_PLUS_EXPR for pointers.
24756 2015-06-23 Alan Modra <amodra@gmail.com>
24758 * rtlanal.c (commutative_operand_precedence): Correct comments.
24759 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
24760 declaration. Return an int. Distinguish REG,REG return from
24762 (struct simplify_plus_minus_op_data): Make local to function.
24763 (simplify_plus_minus): Don't set canonicalized if merely sorting
24764 registers. Avoid packing ops if nothing changes. White space fixes.
24766 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
24768 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
24769 -fdump-ada-spec is passed but not if -fsyntax-only is.
24771 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
24774 * lra-lives.c (process_bb_lives): Check insn copying the same
24775 reload pseudo and don't create a copy for it.
24777 2015-06-22 Tom de Vries <tom@codesourcery.com>
24779 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
24782 2015-06-22 Tom de Vries <tom@codesourcery.com>
24784 * builtins.def (DEF_GOMP_BUILTIN): Test
24785 'flag_tree_parallelize_loops > 1' instead of
24786 'flag_tree_parallelize_loops'. Test flag_cilkplus.
24788 2015-06-22 Tom de Vries <tom@codesourcery.com>
24790 * dominance.c (calculate_dominance_info): Verify dominators if
24793 2015-06-22 Marek Polacek <polacek@redhat.com>
24795 * match.pd ((x ^ y) ^ (x | y) -> x & y,
24796 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
24797 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
24798 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
24800 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
24803 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
24804 cost of embedded comparison.
24806 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24809 * config/rs6000/predicates.md (altivec_register_operand): Permit
24810 virtual stack registers.
24811 (vsx_register_operand): Likewise.
24812 (vfloat_operand): Likewise.
24813 (vint_operand): Likewise.
24814 (vlogical_operand): Likewise.
24816 2015-06-22 Richard Biener <rguenther@suse.de>
24818 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
24819 and single_scalar_iteration_cost members.
24820 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
24821 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
24822 (vect_get_single_scalar_iteration_cost): Remove.
24823 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
24824 Use LOOP_VINFO_SCALAR_ITERATION_COST.
24825 * tree-vect-loop.c (destroy_loop_vec_info): Free
24827 (vect_get_single_scalar_iteration_cost): Compute result into
24828 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
24829 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
24830 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
24831 (vect_estimate_min_profitable_iters): Use them.
24833 2015-06-22 Christian Bruel <christian.bruel@st.com>
24836 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
24837 (TARGET_INSERT_ATTRIBUTES): Define.
24838 (thumb_flipper): New var.
24839 * config/arm/arm.opt (-mflip-thumb): New switch.
24841 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24842 Martin Liska <mliska@suse.cz>
24845 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
24846 construction of arg_types.
24847 (sem_function::sem_function): Likewise.
24848 (sem_function::~sem_function): Remove destruction of arg_types.
24849 (sem_function::compatible_parm_types_p): New function.
24850 (sem_function::equals_wpa): Reorg matching of return values
24851 and parameter types.
24852 (sem_function::equals_private): Reorg mathcing of argument types.
24853 (sem_function::parse_tree_args): Remove.
24854 * ipa-icf.h (init_wpa): Do not call it.
24855 (parse_tree_args): Remove.
24856 (compatible_parm_types_p): Declare.
24857 (result_type): Remove.
24858 (arg_types): Remove.
24860 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
24863 * ipa-polymorphic-call.c
24864 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
24865 initializing alias oracle; fix formating; set base_alias_set if it
24868 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
24870 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
24871 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
24872 (find_inc): Likewise.
24873 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
24875 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
24876 * df-scan.c (df_swap_refs): Remove.
24877 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
24878 * dominance.c (link_roots): Use std::swap instead of manually swapping.
24879 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
24880 * fold-const.c (fold_relational_const): Likewise.
24881 * genattrtab.c (simplify_test_exp): Likewise.
24882 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
24883 gimple_simplify): Likewise.
24884 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
24885 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
24886 * ipa-devirt.c (add_type_duplicate): Likewise.
24887 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
24888 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
24889 * lra.c (lra_create_copy): Likewise.
24890 * lto-streamer-out.c (DFS::DFS): Likewise.
24891 * modulo-sched.c (get_sched_window): Likewise.
24892 * omega.c (omega_pretty_print_problem): Likewise.
24893 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
24894 * reload1.c (reloads_unique_chain_p): Likewise.
24895 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
24896 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
24898 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
24900 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
24901 predicate_mem_writes): Likewise.
24902 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
24903 * tree-predcom.c (combine_chains): Likewise.
24904 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
24905 refs_may_alias_p_1): Likewise.
24906 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
24907 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
24908 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
24909 number_of_iterations_cond): Likewise.
24910 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24911 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
24912 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
24913 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
24914 * tree-vrp.c (extract_range_from_binary_expr_1,
24915 extract_range_from_unary_expr_1): Likewise.
24917 2015-06-20 Marek Polacek <polacek@redhat.com>
24919 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
24921 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
24924 * config/sh/sh.c (prepare_move_operands): Replace subreg
24925 index term with R0 for base and index addressing.
24927 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
24929 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
24931 (movsf_aarch64): Change condition from register_operand to
24932 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
24933 load1. Change type for alternative 7 to store1.
24934 (movdf_aarch64): Likewise.
24936 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
24938 * config/vax/vax.md: Adjust sign/zero extend patterns to
24939 handle SUBREGs in operands[1].
24941 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24943 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
24944 of manually swapping.
24945 (expand_vec_perm_interleave2): Likewise.
24947 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
24949 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
24950 reuse bounds created for abnormal ssa names.
24952 2015-06-19 Jakub Jelinek <jakub@redhat.com>
24954 * config/nvptx/nvptx.md (allocate_stack): Rename to...
24955 (allocate_stack_<mode>): ... this, and add :P on both
24956 match_operand and unspec.
24957 (allocate_stack): New expander.
24959 2015-06-19 Christian Bruel <christian.bruel@st.com>
24963 * config/arm/arm.c (arm_set_current_function): Handle
24964 explicit default options.
24966 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
24968 * config/i386/i386.md (*movsicc_noc_zext): New insn.
24969 (zero-extended cmove with mem peephole2): New pattern.
24970 (cmove with mem peephole2): Merge patterns.
24972 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
24974 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
24976 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
24978 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
24979 * config/mips/mips.md (*madd4<mode>): Ditto.
24980 (*nmadd3<mode>) Ditto.
24981 (*nmadd4<mode>_fastmath): Ditto.
24982 (*nmadd3<mode>_fastmath): Ditto.
24983 (*nmsub4<mode>): Ditto.
24984 (*nmsub3<mode>): Ditto.
24985 (*nmsub4<mode>_fastmath): Ditto.
24986 (*nmsub3<mode>_fastmath): Ditto.
24988 2015-06-18 Michael Matz <matz@suse.de>
24990 PR middle-end/66253
24991 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
24992 grouped strided stores.
24993 (vectorizable_load): Don't use the DR from first_stmt in
24994 the non-SLP grouped strided case.
24996 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
24999 * function.c (assign_bounds): Add arguments assign_regs,
25000 assign_special, assign_bt.
25001 (assign_parms): For vararg functions handle bounds in BT
25002 and special slots after incoming vararg bounds.
25004 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25006 PR middle-end/66568
25007 * cfgexpand.c (expand_return): Handle missing bounds.
25008 (expand_gimple_stmt_1): Likewise.
25009 * tree-chkp.c (chkp_expand_zero_bounds): New.
25010 * tree-chkp.h (chkp_expand_zero_bounds): New.
25012 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
25014 PR middle-end/66567
25015 * ipa-chkp.c (chkp_maybe_create_clone): Require
25016 functions to be instrumentable.
25017 * tree-chkp.c (chkp_replace_function_pointer): Use
25018 chkp_instrumentable_p instead of attribute check.
25020 2015-06-18 Richard Biener <rguenther@suse.de>
25022 PR tree-optimization/66510
25023 * tree-vect-stmts.c (vectorizable_load): Properly compute the
25024 number of vector loads for SLP permuted loads.
25025 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
25026 check the stride for loop vectorization.
25027 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
25028 vectorization factor.
25029 (vect_analyze_group_access): If the group size is not a power
25030 of two require a epilogue loop.
25031 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
25032 compute and optimizing and alias test pruning after final
25033 vectorization factor computation.
25034 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
25036 (vect_transform_slp_perm_load): Properly compute the original
25037 number of vector load stmts.
25039 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
25041 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
25042 "unlikely character , in @var" warning.
25044 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
25046 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
25047 (ix86_function_arg_advance): Ditto.
25048 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
25050 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25052 * function.h (struct rtl_data): Remove struct and accessor macros.
25053 * emit-rtl.h (struct rtl_data): Relocate to here.
25054 * Makefile.in (GTFILES): Add emit-rtl.h.
25055 * df-core.c: Include emit-rtl.h.
25056 * genattrtab.c: Likewise.
25057 * genconditions.c: Likewise.
25058 * genpreds.c: Likewise.
25059 * genrecog.c: Likewise.
25060 * regcprop.c: Likewise.
25061 * resource.c: Likewise.
25062 * sched-rgn.c: Likewise.
25063 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
25064 * config/i386/winnt.c: Likewise.
25066 2015-06-17 Jakub Jelinek <jakub@redhat.com>
25068 PR middle-end/66429
25069 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
25070 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
25071 and has_force_vectorize_loops flags from cfun into
25073 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
25074 if simduid is non-NULL.
25075 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
25076 * passes.def (pass_simduid_cleanup): Add new pass after loop
25078 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
25079 indirection from htab argument's type.
25080 (shrink_simd_arrays): New function.
25081 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
25082 Don't call adjust_simduid_builtins if there are no loops.
25083 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
25084 (pass_simduid_cleanup::execute): New method.
25085 (make_pass_simduid_cleanup): New function.
25087 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
25089 * tree-core.h (tree_target_option): Make opts field a pointer to a
25090 cl_target_option instead of an instance of the struct.
25091 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
25093 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
25094 TARGET_OPTION_NODE.
25095 (copy_node_stat): Allocate and copy struct cl_target_option.
25097 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25099 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
25100 Remove conditional exposure of prototypes.
25101 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
25102 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
25103 definitions in tree.h with functions.
25104 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
25106 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
25108 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
25110 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
25111 (*cmp<mode>_signed): ... this.
25112 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
25113 (*cmp<mode>_unsigned): ... this. Remove %b.
25115 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
25117 * coretypes.h: Include input.h and as-a.h.
25118 * rtl.h: Include input.h and as-a.h for generator files.
25119 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
25120 * vec.c: Don't include diagnostic-core.h.
25121 * alias.c: Do not include input.h, line-map.h or is-a.h.
25122 * asan.c: Likewise.
25123 * attribs.c: Likewise.
25124 * auto-inc-dec.c: Likewise.
25125 * auto-profile.c: Likewise.
25126 * bb-reorder.c: Likewise.
25127 * bt-load.c: Likewise.
25128 * builtins.c: Likewise.
25129 * caller-save.c: Likewise.
25130 * calls.c: Likewise.
25131 * ccmp.c: Likewise.
25133 * cfganal.c: Likewise.
25134 * cfgbuild.c: Likewise.
25135 * cfgcleanup.c: Likewise.
25136 * cfgexpand.c: Likewise.
25137 * cfghooks.c: Likewise.
25138 * cfgloop.c: Likewise.
25139 * cfgloop.h: Likewise.
25140 * cfgloopanal.c: Likewise.
25141 * cfgloopmanip.c: Likewise.
25142 * cfgrtl.c: Likewise.
25143 * cgraph.c: Likewise.
25144 * cgraphbuild.c: Likewise.
25145 * cgraphclones.c: Likewise.
25146 * cgraphunit.c: Likewise.
25147 * cilk-common.c: Likewise.
25148 * combine-stack-adj.c: Likewise.
25149 * combine.c: Likewise.
25150 * compare-elim.c: Likewise.
25151 * convert.c: Likewise.
25152 * coverage.c: Likewise.
25153 * cppbuiltin.c: Likewise.
25154 * cprop.c: Likewise.
25156 * cselib.c: Likewise.
25157 * data-streamer-in.c: Likewise.
25158 * data-streamer-out.c: Likewise.
25159 * data-streamer.c: Likewise.
25160 * dbxout.c: Likewise.
25163 * debug.c: Likewise.
25164 * df-core.c: Likewise.
25165 * df-problems.c: Likewise.
25166 * df-scan.c: Likewise.
25169 * diagnostic-core.h: Likewise.
25170 * diagnostic.c: Likewise.
25171 * dojump.c: Likewise.
25172 * dominance.c: Likewise.
25173 * domwalk.c: Likewise.
25174 * double-int.c: Likewise.
25176 * dumpfile.c: Likewise.
25177 * dumpfile.h: Likewise.
25178 * dwarf2asm.c: Likewise.
25179 * dwarf2cfi.c: Likewise.
25180 * dwarf2out.c: Likewise.
25181 * emit-rtl.c: Likewise.
25182 * et-forest.c: Likewise.
25183 * except.c: Likewise.
25184 * explow.c: Likewise.
25185 * expmed.c: Likewise.
25186 * expr.c: Likewise.
25187 * final.c: Likewise.
25188 * fixed-value.c: Likewise.
25189 * fold-const.c: Likewise.
25190 * function.c: Likewise.
25191 * fwprop.c: Likewise.
25192 * gcc-plugin.h: Likewise.
25193 * gcse.c: Likewise.
25194 * generic-match-head.c: Likewise.
25195 * ggc-page.c: Likewise.
25196 * gimple-builder.c: Likewise.
25197 * gimple-expr.c: Likewise.
25198 * gimple-fold.c: Likewise.
25199 * gimple-iterator.c: Likewise.
25200 * gimple-low.c: Likewise.
25201 * gimple-match-head.c: Likewise.
25202 * gimple-pretty-print.c: Likewise.
25203 * gimple-ssa-isolate-paths.c: Likewise.
25204 * gimple-ssa-strength-reduction.c: Likewise.
25205 * gimple-streamer-in.c: Likewise.
25206 * gimple-streamer-out.c: Likewise.
25207 * gimple-streamer.h: Likewise.
25208 * gimple-walk.c: Likewise.
25209 * gimple.c: Likewise.
25210 * gimplify-me.c: Likewise.
25211 * gimplify.c: Likewise.
25212 * godump.c: Likewise.
25213 * graph.c: Likewise.
25214 * graphite-blocking.c: Likewise.
25215 * graphite-dependences.c: Likewise.
25216 * graphite-interchange.c: Likewise.
25217 * graphite-isl-ast-to-gimple.c: Likewise.
25218 * graphite-optimize-isl.c: Likewise.
25219 * graphite-poly.c: Likewise.
25220 * graphite-scop-detection.c: Likewise.
25221 * graphite-sese-to-poly.c: Likewise.
25222 * graphite.c: Likewise.
25223 * haifa-sched.c: Likewise.
25224 * hw-doloop.c: Likewise.
25225 * ifcvt.c: Likewise.
25226 * init-regs.c: Likewise.
25227 * input.c: Likewise.
25228 * internal-fn.c: Likewise.
25229 * ipa-chkp.c: Likewise.
25230 * ipa-comdats.c: Likewise.
25231 * ipa-cp.c: Likewise.
25232 * ipa-devirt.c: Likewise.
25233 * ipa-icf-gimple.c: Likewise.
25234 * ipa-icf.c: Likewise.
25235 * ipa-inline-analysis.c: Likewise.
25236 * ipa-inline-transform.c: Likewise.
25237 * ipa-inline.c: Likewise.
25238 * ipa-polymorphic-call.c: Likewise.
25239 * ipa-profile.c: Likewise.
25240 * ipa-prop.c: Likewise.
25241 * ipa-pure-const.c: Likewise.
25242 * ipa-ref.c: Likewise.
25243 * ipa-reference.c: Likewise.
25244 * ipa-split.c: Likewise.
25245 * ipa-utils.c: Likewise.
25246 * ipa-visibility.c: Likewise.
25248 * ira-build.c: Likewise.
25249 * ira-color.c: Likewise.
25250 * ira-conflicts.c: Likewise.
25251 * ira-costs.c: Likewise.
25252 * ira-emit.c: Likewise.
25253 * ira-lives.c: Likewise.
25255 * jump.c: Likewise.
25256 * langhooks.c: Likewise.
25258 * loop-doloop.c: Likewise.
25259 * loop-init.c: Likewise.
25260 * loop-invariant.c: Likewise.
25261 * loop-iv.c: Likewise.
25262 * loop-unroll.c: Likewise.
25263 * lower-subreg.c: Likewise.
25264 * lra-assigns.c: Likewise.
25265 * lra-coalesce.c: Likewise.
25266 * lra-constraints.c: Likewise.
25267 * lra-eliminations.c: Likewise.
25268 * lra-lives.c: Likewise.
25269 * lra-remat.c: Likewise.
25270 * lra-spills.c: Likewise.
25272 * lto-cgraph.c: Likewise.
25273 * lto-compress.c: Likewise.
25274 * lto-opts.c: Likewise.
25275 * lto-section-in.c: Likewise.
25276 * lto-section-out.c: Likewise.
25277 * lto-streamer-in.c: Likewise.
25278 * lto-streamer-out.c: Likewise.
25279 * lto-streamer.c: Likewise.
25281 * mode-switching.c: Likewise.
25282 * modulo-sched.c: Likewise.
25283 * omega.c: Likewise.
25284 * omp-low.c: Likewise.
25285 * optabs.c: Likewise.
25286 * opts-global.c: Likewise.
25287 * opts.h: Likewise.
25288 * passes.c: Likewise.
25289 * plugin.c: Likewise.
25290 * postreload-gcse.c: Likewise.
25291 * postreload.c: Likewise.
25292 * predict.c: Likewise.
25293 * pretty-print.h: Likewise.
25294 * print-rtl.c: Likewise.
25295 * print-tree.c: Likewise.
25296 * profile.c: Likewise.
25297 * real.c: Likewise.
25298 * realmpfr.c: Likewise.
25299 * recog.c: Likewise.
25301 * reg-stack.c: Likewise.
25302 * regcprop.c: Likewise.
25303 * reginfo.c: Likewise.
25304 * regrename.c: Likewise.
25305 * regstat.c: Likewise.
25306 * reload.c: Likewise.
25307 * reload1.c: Likewise.
25308 * reorg.c: Likewise.
25309 * resource.c: Likewise.
25310 * rtl-chkp.c: Likewise.
25311 * rtl-error.c: Likewise.
25312 * rtlanal.c: Likewise.
25313 * rtlhooks.c: Likewise.
25314 * sanopt.c: Likewise.
25315 * sched-deps.c: Likewise.
25316 * sched-ebb.c: Likewise.
25317 * sched-rgn.c: Likewise.
25318 * sched-vis.c: Likewise.
25319 * sdbout.c: Likewise.
25320 * sel-sched-dump.c: Likewise.
25321 * sel-sched-ir.c: Likewise.
25322 * sel-sched.c: Likewise.
25323 * sese.c: Likewise.
25324 * shrink-wrap.c: Likewise.
25325 * simplify-rtx.c: Likewise.
25326 * stack-ptr-mod.c: Likewise.
25327 * statistics.c: Likewise.
25328 * stmt.c: Likewise.
25329 * stor-layout.c: Likewise.
25330 * store-motion.c: Likewise.
25331 * streamer-hooks.c: Likewise.
25332 * stringpool.c: Likewise.
25333 * symtab.c: Likewise.
25334 * target-globals.c: Likewise.
25335 * targhooks.c: Likewise.
25336 * toplev.c: Likewise.
25337 * tracer.c: Likewise.
25338 * trans-mem.c: Likewise.
25339 * tree-affine.c: Likewise.
25340 * tree-browser.c: Likewise.
25341 * tree-call-cdce.c: Likewise.
25342 * tree-cfg.c: Likewise.
25343 * tree-cfgcleanup.c: Likewise.
25344 * tree-chkp-opt.c: Likewise.
25345 * tree-chkp.c: Likewise.
25346 * tree-chrec.c: Likewise.
25347 * tree-complex.c: Likewise.
25348 * tree-data-ref.c: Likewise.
25349 * tree-dfa.c: Likewise.
25350 * tree-diagnostic.c: Likewise.
25351 * tree-dump.c: Likewise.
25352 * tree-eh.c: Likewise.
25353 * tree-emutls.c: Likewise.
25354 * tree-if-conv.c: Likewise.
25355 * tree-inline.c: Likewise.
25356 * tree-into-ssa.c: Likewise.
25357 * tree-iterator.c: Likewise.
25358 * tree-loop-distribution.c: Likewise.
25359 * tree-nested.c: Likewise.
25360 * tree-nrv.c: Likewise.
25361 * tree-object-size.c: Likewise.
25362 * tree-outof-ssa.c: Likewise.
25363 * tree-parloops.c: Likewise.
25364 * tree-phinodes.c: Likewise.
25365 * tree-predcom.c: Likewise.
25366 * tree-pretty-print.c: Likewise.
25367 * tree-profile.c: Likewise.
25368 * tree-scalar-evolution.c: Likewise.
25369 * tree-sra.c: Likewise.
25370 * tree-ssa-address.c: Likewise.
25371 * tree-ssa-alias.c: Likewise.
25372 * tree-ssa-ccp.c: Likewise.
25373 * tree-ssa-coalesce.c: Likewise.
25374 * tree-ssa-copy.c: Likewise.
25375 * tree-ssa-copyrename.c: Likewise.
25376 * tree-ssa-dce.c: Likewise.
25377 * tree-ssa-dom.c: Likewise.
25378 * tree-ssa-dse.c: Likewise.
25379 * tree-ssa-forwprop.c: Likewise.
25380 * tree-ssa-ifcombine.c: Likewise.
25381 * tree-ssa-live.c: Likewise.
25382 * tree-ssa-loop-ch.c: Likewise.
25383 * tree-ssa-loop-im.c: Likewise.
25384 * tree-ssa-loop-ivcanon.c: Likewise.
25385 * tree-ssa-loop-ivopts.c: Likewise.
25386 * tree-ssa-loop-manip.c: Likewise.
25387 * tree-ssa-loop-niter.c: Likewise.
25388 * tree-ssa-loop-prefetch.c: Likewise.
25389 * tree-ssa-loop-unswitch.c: Likewise.
25390 * tree-ssa-loop.c: Likewise.
25391 * tree-ssa-math-opts.c: Likewise.
25392 * tree-ssa-operands.c: Likewise.
25393 * tree-ssa-phiopt.c: Likewise.
25394 * tree-ssa-phiprop.c: Likewise.
25395 * tree-ssa-pre.c: Likewise.
25396 * tree-ssa-propagate.c: Likewise.
25397 * tree-ssa-reassoc.c: Likewise.
25398 * tree-ssa-sccvn.c: Likewise.
25399 * tree-ssa-scopedtables.c: Likewise.
25400 * tree-ssa-sink.c: Likewise.
25401 * tree-ssa-strlen.c: Likewise.
25402 * tree-ssa-structalias.c: Likewise.
25403 * tree-ssa-tail-merge.c: Likewise.
25404 * tree-ssa-ter.c: Likewise.
25405 * tree-ssa-threadedge.c: Likewise.
25406 * tree-ssa-threadupdate.c: Likewise.
25407 * tree-ssa-uncprop.c: Likewise.
25408 * tree-ssa-uninit.c: Likewise.
25409 * tree-ssa.c: Likewise.
25410 * tree-ssanames.c: Likewise.
25411 * tree-stdarg.c: Likewise.
25412 * tree-streamer-in.c: Likewise.
25413 * tree-streamer-out.c: Likewise.
25414 * tree-streamer.c: Likewise.
25415 * tree-switch-conversion.c: Likewise.
25416 * tree-tailcall.c: Likewise.
25417 * tree-vect-data-refs.c: Likewise.
25418 * tree-vect-generic.c: Likewise.
25419 * tree-vect-loop-manip.c: Likewise.
25420 * tree-vect-loop.c: Likewise.
25421 * tree-vect-patterns.c: Likewise.
25422 * tree-vect-slp.c: Likewise.
25423 * tree-vect-stmts.c: Likewise.
25424 * tree-vectorizer.c: Likewise.
25425 * tree-vrp.c: Likewise.
25426 * tree.c: Likewise.
25427 * tsan.c: Likewise.
25428 * ubsan.c: Likewise.
25429 * valtrack.c: Likewise.
25430 * value-prof.c: Likewise.
25431 * var-tracking.c: Likewise.
25432 * varasm.c: Likewise.
25433 * varpool.c: Likewise.
25434 * vmsdbgout.c: Likewise.
25435 * vtable-verify.c: Likewise.
25437 * wide-int.cc: Likewise.
25438 * xcoffout.c: Likewise.
25439 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
25440 * common/common-targhooks.c: Likewise.
25441 * config/aarch64/aarch64-builtins.c: Likewise.
25442 * config/aarch64/aarch64.c: Likewise.
25443 * config/alpha/alpha.c: Likewise.
25444 * config/arc/arc.c: Likewise.
25445 * config/arm/aarch-common.c: Likewise.
25446 * config/arm/arm-builtins.c: Likewise.
25447 * config/arm/arm-c.c: Likewise.
25448 * config/arm/arm.c: Likewise.
25449 * config/avr/avr-c.c: Likewise.
25450 * config/avr/avr-log.c: Likewise.
25451 * config/avr/avr.c: Likewise.
25452 * config/bfin/bfin.c: Likewise.
25453 * config/c6x/c6x.c: Likewise.
25454 * config/cr16/cr16.c: Likewise.
25455 * config/cris/cris.c: Likewise.
25456 * config/darwin-c.c: Likewise.
25457 * config/darwin.c: Likewise.
25458 * config/default-c.c: Likewise.
25459 * config/epiphany/epiphany.c: Likewise.
25460 * config/epiphany/mode-switch-use.c: Likewise.
25461 * config/epiphany/resolve-sw-modes.c: Likewise.
25462 * config/fr30/fr30.c: Likewise.
25463 * config/frv/frv.c: Likewise.
25464 * config/ft32/ft32.c: Likewise.
25465 * config/glibc-c.c: Likewise.
25466 * config/h8300/h8300.c: Likewise.
25467 * config/i386/i386-c.c: Likewise.
25468 * config/i386/i386.c: Likewise.
25469 * config/i386/msformat-c.c: Likewise.
25470 * config/i386/winnt-cxx.c: Likewise.
25471 * config/i386/winnt-stubs.c: Likewise.
25472 * config/i386/winnt.c: Likewise.
25473 * config/ia64/ia64-c.c: Likewise.
25474 * config/ia64/ia64.c: Likewise.
25475 * config/iq2000/iq2000.c: Likewise.
25476 * config/lm32/lm32.c: Likewise.
25477 * config/m32c/m32c-pragma.c: Likewise.
25478 * config/m32c/m32c.c: Likewise.
25479 * config/m32r/m32r.c: Likewise.
25480 * config/m68k/m68k.c: Likewise.
25481 * config/mcore/mcore.c: Likewise.
25482 * config/mep/mep-pragma.c: Likewise.
25483 * config/mep/mep.c: Likewise.
25484 * config/microblaze/microblaze-c.c: Likewise.
25485 * config/microblaze/microblaze.c: Likewise.
25486 * config/mips/mips.c: Likewise.
25487 * config/mmix/mmix.c: Likewise.
25488 * config/mn10300/mn10300.c: Likewise.
25489 * config/moxie/moxie.c: Likewise.
25490 * config/msp430/msp430-c.c: Likewise.
25491 * config/msp430/msp430.c: Likewise.
25492 * config/nds32/nds32-cost.c: Likewise.
25493 * config/nds32/nds32-fp-as-gp.c: Likewise.
25494 * config/nds32/nds32-intrinsic.c: Likewise.
25495 * config/nds32/nds32-isr.c: Likewise.
25496 * config/nds32/nds32-md-auxiliary.c: Likewise.
25497 * config/nds32/nds32-memory-manipulation.c: Likewise.
25498 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
25499 * config/nds32/nds32-predicates.c: Likewise.
25500 * config/nds32/nds32.c: Likewise.
25501 * config/nios2/nios2.c: Likewise.
25502 * config/nvptx/nvptx.c: Likewise.
25503 * config/pa/pa.c: Likewise.
25504 * config/pdp11/pdp11.c: Likewise.
25505 * config/rl78/rl78-c.c: Likewise.
25506 * config/rl78/rl78.c: Likewise.
25507 * config/rs6000/rs6000-c.c: Likewise.
25508 * config/rs6000/rs6000.c: Likewise.
25509 * config/rx/rx.c: Likewise.
25510 * config/s390/s390-c.c: Likewise.
25511 * config/s390/s390.c: Likewise.
25512 * config/sh/sh-c.c: Likewise.
25513 * config/sh/sh-mem.cc: Likewise.
25514 * config/sh/sh.c: Likewise.
25515 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
25516 * config/sh/sh_treg_combine.cc: Likewise.
25517 * config/sol2-c.c: Likewise.
25518 * config/sol2-cxx.c: Likewise.
25519 * config/sol2-stubs.c: Likewise.
25520 * config/sol2.c: Likewise.
25521 * config/sparc/sparc-c.c: Likewise.
25522 * config/sparc/sparc.c: Likewise.
25523 * config/spu/spu-c.c: Likewise.
25524 * config/spu/spu.c: Likewise.
25525 * config/stormy16/stormy16.c: Likewise.
25526 * config/tilegx/mul-tables.c: Likewise.
25527 * config/tilegx/tilegx-c.c: Likewise.
25528 * config/tilegx/tilegx.c: Likewise.
25529 * config/tilepro/mul-tables.c: Likewise.
25530 * config/tilepro/tilepro-c.c: Likewise.
25531 * config/tilepro/tilepro.c: Likewise.
25532 * config/v850/v850-c.c: Likewise.
25533 * config/v850/v850.c: Likewise.
25534 * config/vax/vax.c: Likewise.
25535 * config/visium/visium.c: Likewise.
25536 * config/vms/vms-c.c: Likewise.
25537 * config/vms/vms.c: Likewise.
25538 * config/vxworks.c: Likewise.
25539 * config/winnt-c.c: Likewise.
25540 * config/xtensa/xtensa.c: Likewise.
25542 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
25544 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
25546 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
25548 2015-06-17 Richard Biener <rguenther@suse.de>
25550 PR tree-optimization/66251
25551 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
25552 stmts for SLP strided stores.
25555 2015-05-22 Richard Biener <rguenther@suse.de>
25557 PR tree-optimization/66251
25558 * tree-vect-stmts.c (vectorizable_conversion): Properly
25559 set STMT_VINFO_VEC_STMT even for the SLP case.
25561 2015-05-26 Michael Matz <matz@suse.de>
25563 PR middle-end/66251
25564 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
25565 STMT_VINFO_VEC_STMT, also with SLP.
25567 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
25570 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
25571 (*avx_addsubv4df3_1s): Ditto.
25572 (*sse3_addsubv2df3_1): Ditto.
25573 (*sse3_addsubv2df3_1s): Ditto.
25574 (*avx_addsubv8sf3_1): Ditto.
25575 (*avx_addsubv8sf3_1s): Ditto.
25576 (*sse3_addsubv4sf3_1): Ditto.
25577 (*sse3_addsubv4sf3_1s): Ditto.
25579 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
25581 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
25582 (SYSROOT_SUFFIX_SPEC): Update.
25583 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
25584 (STARTFILE_PREFIX_SPEC): Update.
25585 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
25586 (MULTILIB_REQUIRED): New.
25587 (MULTILIB_OSDIRNAMES): New.
25588 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
25589 (MULTILIB_REQUIRED): New.
25590 (MULTILIB_OSDIRNAMES): New.
25592 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
25594 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
25595 * config/aarch64/aarch64-options-extensions.def: Update "fP",
25596 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
25597 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
25598 (AARCH64_FL_PAN): New.
25599 (AARCH64_FL_LOR): New.
25600 (AARCH64_FL_RDMA): New.
25601 (AARCH64_FL_FOR_ARCH8_1): New.
25602 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
25603 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
25605 2015-06-16 Martin Liska <mliska@suse.cz>
25607 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
25608 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
25611 2015-06-16 Richard Biener <rguenther@suse.de>
25613 * tree-vect-stmts.c (vectorizable_store): Adjust.
25614 (vectorizable_load): Likewise.
25615 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
25617 (vect_create_data_ref_ptr): Likewise.
25618 (bump_vector_ptr): Adjust.
25620 2015-06-16 Richard Biener <rguenther@suse.de>
25622 * tree-vect-stmts.c (vectorizable_load): Properly start loads
25623 with the first element if this is grouped loads.
25625 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
25627 * config/arm/arm-protos.h (struct tune_params): Rename
25628 log_op_non_sc to log_op_non_short_circuit, and rename enum
25629 values to expand SC to SHORT_CIRCUIT.
25630 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
25631 to LOG_OP_NON_SHORT_CIRCUIT.
25632 (arm_fastmul_tune):Likewise
25633 (arm_strongarm_tune): Likewise.
25634 (arm_xscale_tune): Likewise.
25635 (arm_9e_tune): Likewise.
25636 (arm_marvell_pj4_tune): Likewise.
25637 (arm_v6t2_tune): Likewise.
25638 (arm_cortex_tune): Likewise.
25639 (arm_cortex_a8_tune): Likewise.
25640 (arm_cortex_a7_tune): Likewise.
25641 (arm_cortex_a15_tune): Likewise.
25642 (arm_cortex_a53_tune): Likewise.
25643 (arm_cortex_a57_tune): Likewise.
25644 (arm_xgene1_tune): Likewise.
25645 (arm_cortex_a5_tune): Likewise.
25646 (arm_cortex_a9_tune): Likewise.
25647 (arm_cortex_a12_tune): Likewise.
25648 (arm_v7m_tune): Likewise.
25649 (arm_cortex_m7_tune): Likewise.
25650 (arm_v6m_tune): Likewise.
25651 (arm_fa726te_tune): Likewise.
25653 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
25655 * altivec.md: Delete UNSPEC_VMLADDUHM.
25656 (mulv4si3_p8): New pattern.
25657 (mulv4si3): Use it for POWER8.
25658 (mulv8hi3): Use vmladduhm with zero addend.
25659 (altivec_vmladduhm): Descriptive RTL.
25661 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
25663 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
25664 to use neon_move instead of mov_imm.
25665 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
25666 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
25668 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
25669 aarch64_float_const_zero_rtx_p check before TFmode check.
25670 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
25672 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
25673 code and attributes to match. Change condition from register_operand
25674 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
25675 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
25678 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
25681 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
25682 there is no parent.
25684 2015-06-14 Shiva Chen <shiva0217@gmail.com>
25686 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
25687 HOST_WIDE_INT parameter.
25689 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
25692 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
25693 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
25695 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
25697 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
25699 * rtl.h (classify_insn): Declare.
25700 * emit-rtl.c (classify_insn): Move to...
25701 * rtl.c: ...here and add generator support.
25702 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
25703 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
25704 * genemit.c (gen_emit_seq): New function.
25705 (gen_expand, gen_split): Use it.
25707 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
25709 * tree.c (make_vector_stat): Fix comment to state that the
25710 function returns a VECTOR_CST.
25712 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
25714 * gensupport.h (add_implicit_parallel): Declare.
25715 * genrecog.c (add_implicit_parallel): Move to...
25716 * gensupport.c (add_implicit_parallel): ...here.
25717 (process_one_cond_exec): Use it.
25718 * genemit.c (gen_insn): Likewise.
25720 2015-06-13 Iain Sandoe <iain@codesourcery.com>
25723 * passes.c (rest_of_decl_compilation): Do not register globals for
25724 early debug if they are declared in built-ins.
25726 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
25728 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
25730 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25732 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
25734 (noce_try_cmove_arith): Likewise.
25735 (noce_get_alt_condition): Likewise.
25737 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
25739 * common/config/i386/i386-common.c
25740 (OPTION_MASK_ISA_MWAITX_SET): New.
25741 (ix86_handle_option): Handle mwaitx.
25742 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
25743 (x86_64-*-*): Likewise.
25744 * config/i386/mwaitxintrin.h: New header.
25745 * config/i386/cpuid.h (bit_MWAITX): Define.
25746 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
25748 * config/i386/i386.opt (mwaitx): New.
25749 * config/i386/i386-builtin-types.def
25750 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
25751 * config/i386/i386-c.c: Define __MWAITX__ if needed.
25752 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
25754 (ix86_option_override_internal): Handle new option.
25755 (processor_alias_table): Added PTA_MWAITX.
25756 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
25757 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
25758 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
25759 IX86_BUILTIN_MONITORX built-ins.
25760 * config/i386/i386.h (TARGET_MWAITX): New.
25761 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
25763 (mwaitx): New pattern.
25764 (monitorx_<mode>): New pattern.
25765 * config/i386/x86intrin.h: Include mwaitxintrin.h.
25766 * doc/extend.texi: Document monitorx and mwaitx builtins.
25767 * doc/invoke.texi: Document -mmwaitx option.
25769 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
25771 * emit-rtl.c (need_atomic_barrier_p): Mask model with
25772 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
25774 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25776 * dbxout.c (xcoff_debug_hooks): Provide a function for
25777 register_main_translation_unit hook.
25779 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
25781 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
25782 variants cases from switch.
25783 (rs6000_post_atomic_barrier): Same.
25784 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
25785 (rs6000_expand_atomic_exchange): Same.
25786 (rs6000_expand_atomic_op): Same.
25787 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
25788 SYNC variants cases from switch.
25789 (atomic_load): Same.
25790 (atomic_store): Same.
25792 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
25794 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
25795 CONST_INT for goto.
25797 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
25800 * dwarf2out.c (check_die): Check for common duplicate attributes.
25801 (add_location_or_const_value_attribute): Do not add duplicate
25803 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
25805 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
25806 (gen_type_die_with_usage): Call check_die.
25807 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
25809 2015-06-11 Jason Merrill <jason@redhat.com>
25811 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
25814 2015-06-11 Marek Polacek <polacek@redhat.com>
25816 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
25818 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
25821 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
25822 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
25823 (*addx_extend_sp32): Fix pasto.
25824 (*subx_extend): Rename into...
25825 (*subx_extend_sp32): ...this.
25826 (*adddi3_extend_sp32): Add earlyclobber.
25827 (*subdi3_insn_sp32): Likewise.
25828 (*subdi3_extend_sp32): Likewise.
25829 (*and_not_di_sp32): Likewise.
25830 (*or_not_di_sp32): Likewise.
25831 (*xor_not_di_sp32): Likewise.
25832 (*negdi2_sp32): Likewise.
25833 (*one_cmpldi2_sp32): Likewise.
25835 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
25837 * debug.h (struct gcc_debug_hooks): Add a
25838 register_main_translation_unit hook.
25839 * debug.c (do_nothing_debug_hooks): Provide a function for this
25841 * dbxout.c (dbx_debug_hooks): Likewise.
25842 * sdbout.c (sdb_debug_hooks): Likewise.
25843 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
25844 * dwarf2out.c (main_translation_unit): New global variable.
25845 (dwarf2out_register_main_translation_unit): New function
25846 implementing the new hook.
25847 (dwarf2_debug_hooks): Assign
25848 dwarf2out_register_main_translation_unit to this new hook.
25849 (dwarf2out_init): Associate any main translation unit to
25852 2015-06-11 Marek Polacek <polacek@redhat.com>
25854 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
25856 2015-06-11 Marek Polacek <polacek@redhat.com>
25858 * match.pd: Use single_use throughout.
25860 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25862 * config/arm/arm.c (arm_option_params_internal): When optimising
25863 for speed set max_insns_skipped when arm_restrict_it.
25865 2015-06-11 Christian Bruel <christian.bruel@st.com>
25868 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
25870 (arm_cpu_builtins): New function.
25871 (arm_pragma_target_parse): Call arm_cpu_builtins.
25872 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
25873 (arm_register_target_pragmas): Likewise.
25874 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
25875 Call arm_register_target_pragmas.
25876 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
25877 (arm_pragma_target_parse): Likewise.
25879 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
25881 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
25882 of the second operand.
25884 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
25887 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
25888 to prepare mask operand for AVX512 modes.
25890 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
25893 * doc/md.texi (Machine Constraints): Document that on the PowerPC
25894 if you use a constraint that targets a VSX register, you must use
25895 %x<n> in the template.
25897 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
25899 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
25900 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
25901 (define_insn "trap"): New definition.
25903 2015-06-10 Richard Biener <rguenther@suse.de>
25905 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
25907 (vect_supported_load_permutation_p): ... here. Handle
25908 supportable permutations in reductions.
25909 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
25910 for vectorizing strided group loads.
25912 2015-06-10 Jakub Jelinek <jakub@redhat.com>
25915 * config/i386/i386.c (ix86_split_long_move): For collisions
25916 involving direct tls segment refs, move the UNSPEC_TP possibly
25917 wrapped in ZERO_EXTEND out of the address for lea, to each of
25920 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25922 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
25923 dmb sy. Adjust tabs.
25925 2015-06-10 Tom de Vries <tom@codesourcery.com>
25927 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
25929 2015-06-10 Martin Liska <mliska@suse.cz>
25932 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
25933 all enum values in mem_alloc_origin.
25934 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
25936 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
25937 * bitmap.c (bitmap_register): Likewise.
25938 (dump_bitmap_statistics): Likewise.
25939 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
25940 (ggc_record_overhead): Likewise.
25941 * hash-map.h: Likewise.
25942 * hash-set.h: Likewise.
25943 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
25944 * hash-table.h: Likewise.
25945 * vec.c (vec_prefix::register_overhead): Likewise.
25946 (vec_prefix::release_overhead): Likewise.
25947 (dump_vec_loc_statistics): Likewise.
25949 2015-06-09 Christian Bruel <christian.bruel@st.com>
25952 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
25953 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
25954 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
25955 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
25956 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
25957 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
25958 (arm_valid_target_attribute_p): Likewise.
25959 (arm_set_current_function, arm_can_inline_p): Likewise.
25960 (arm_valid_target_attribute_rec): Likewise.
25961 (arm_previous_fndecl): New variable.
25962 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
25963 (TARGET_CAN_INLINE_P): Define.
25964 (arm_asm_trampoline_template): Emit mode.
25965 (arm_file_start): Don't set unified syntax.
25966 (arm_declare_function_name): Set unified syntax and mode.
25967 (arm_option_override): Init target_option_default_node.
25968 and target_option_current_node.
25969 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
25970 (*call_symbol): Likewise.
25971 * doc/extend.texi: Document ARM/Thumb target attribute.
25972 * doc/invoke.texi: Likewise.
25974 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25977 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
25978 PR rtl-optimization/64164
25979 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
25980 * tree-ssa-copyrename.c: Removed.
25981 * opts.c (default_options_table): Drop -ftree-copyrename. Add
25982 -ftree-coalesce-vars.
25983 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
25984 * common.opt (ftree-copyrename): Ignore.
25985 (ftree-coalesce-inlined-vars): Likewise.
25986 * doc/invoke.texi: Remove the ignored options above.
25987 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
25988 * tree-ssa-coalesce.h: ... here.
25989 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
25990 headers required by it.
25991 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
25992 across variables when flag_tree_coalesce_vars. Check register
25993 use and promoted modes to allow coalescing. Moved to
25994 tree-ssa-coalesce.c.
25995 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
25996 with its member functions to tree-ssa-coalesce.c.
25997 (var_map_base_init): Likewise. Renamed to
25998 compute_samebase_partition_bases.
25999 (partition_view_normal): Drop want_bases parameter.
26000 (partition_view_bitmap): Likewise.
26001 * tree-ssa-live.h: Adjust declarations.
26002 * tree-ssa-coalesce.c: Include explow.h.
26003 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26004 default defs at the entry point.
26005 (dump_part_var_map): New.
26006 (compute_optimized_partition_bases): New, called by...
26007 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26008 of compute_samebase_partition_bases. Adjust.
26009 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26010 * cfgexpand.c (leader_merge): New.
26011 (get_rtl_for_parm_ssa_default_def): New.
26012 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26013 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26014 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26015 redundant MEM attr setting.
26016 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26018 (expand_one_stack_var): ... this. New wrapper to check and
26019 skip already expanded SSA partitions.
26020 (record_alignment_for_reg_var): New, factored out of...
26021 (expand_one_var): ... this.
26022 (expand_one_ssa_partition): New.
26023 (adjust_one_expanded_partition_var): New.
26024 (expand_one_register_var): Check and skip already expanded SSA
26026 (expand_used_vars): Don't create DECLs for anonymous SSA
26027 names. Expand all SSA partitions, then adjust all SSA names.
26028 (pass::execute): Replace the loops that set
26029 SA.partition_to_pseudo from partition leaders and cleared
26030 DECL_RTL for multi-location variables, and that which used to
26031 rename vars and set attrs, with one that clears DECL_RTL and
26032 checks that PARMs and RESULTs default_defs match DECL_RTL.
26033 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26034 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26035 * explow.c (promote_ssa_mode): New.
26036 * explow.h (promote_ssa_mode): Declare.
26037 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26038 * function.c: Include cfgexpand.h.
26039 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26040 (use_register_for_parm_decl): Wrapper for the above to
26041 special-case the result_ptr.
26042 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26043 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26044 multiple locations.
26045 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26046 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26047 (assign_parm_setup_block): Prefer SSA-assigned location.
26048 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26049 if stack_parm is NULL.
26050 (assign_parm_setup_stack): Prefer SSA-assigned location.
26051 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26052 rtl before testing for pointer bounds. Special-case result_ptr.
26053 (expand_function_start): Maybe reset DECL_RTL of result.
26054 Prefer SSA-assigned location for result and static chain.
26055 Factor out DECL_RESULT and SET_DECL_RTL.
26056 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26057 anonymous SSA names. Use promote_ssa_mode.
26058 (get_temp_reg): Likewise.
26059 (remove_ssa_form): Adjust.
26060 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26061 and get its reg_usage for reg invalidation.
26062 (compute_bb_dataflow): Pass it insn.
26063 (emit_notes_in_bb): Likewise.
26064 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26065 fail assert on conversion between unsigned types.
26067 2015-06-09 Tom de Vries <tom@codesourcery.com>
26069 PR tree-optimization/65460
26070 * omp-low.c (expand_omp_target): Set parallelized_function on
26071 cgraph_node for child_fn.
26073 2015-06-09 Tom de Vries <tom@codesourcery.com>
26075 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
26076 parallelized_function before add_new_function.
26078 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
26080 * gcc-plugin.h: Move decls to plugin.h and include it.
26081 * plugin.h: Relocate decls from gcc-plugin.h
26082 * ggc-page.c: Include required header files.
26083 * passes.c: Likewise.
26084 * cgraphunit.c: Likewise.
26086 2015-06-09 Tom de Vries <tom@codesourcery.com>
26088 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
26090 2015-06-09 Jason Merrill <jason@redhat.com>
26093 * toplev.c (check_global_declaration): Don't warn about a clone.
26095 2015-06-09 Marek Polacek <polacek@redhat.com>
26097 PR tree-optimization/66299
26098 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
26099 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
26102 2015-06-09 Richard Biener <rguenther@suse.de>
26104 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
26105 (vect_analyze_slp_instance): Instead do not falsely drop
26108 2015-06-09 Richard Biener <rguenther@suse.de>
26110 PR middle-end/66423
26111 * match.pd: Handle A % (unsigned)(1 << B).
26113 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
26115 * varasm.c (output_object_block_htab): Remove.
26116 (output_object_block_compare): New.
26117 (output_object_blocks): Sort named object_blocks before outputting
26120 2015-06-09 Richard Biener <rguenther@suse.de>
26122 PR tree-optimization/66419
26123 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
26124 consider GROUP_GAP when detecting a perfect subchain.
26126 2015-06-09 Nick Clifton <nickc@redhat.com>
26128 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
26129 place read only data in the .frodata section.
26131 2015-06-09 Shiva Chen <shiva0217@gmail.com>
26133 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
26134 (atomic_store<mode>): Likewise.
26136 2015-06-09 Richard Biener <rguenther@suse.de>
26138 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
26140 2015-06-09 Richard Biener <rguenther@suse.de>
26142 PR middle-end/66413
26143 * tree-inline.c (insert_init_debug_bind): Unshare value.
26145 2015-06-09 Richard Biener <rguenther@suse.de>
26147 PR tree-optimization/66396
26148 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
26149 Rename virtual operands.
26151 2015-06-09 Tom de Vries <tom@codesourcery.com>
26153 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
26154 always return false.
26156 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26158 PR rtl-optimization/64164
26159 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
26160 * tree-ssa-copyrename.c: Removed.
26161 * opts.c (default_options_table): Drop -ftree-copyrename. Add
26162 -ftree-coalesce-vars.
26163 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
26164 * common.opt (ftree-copyrename): Ignore.
26165 (ftree-coalesce-inlined-vars): Likewise.
26166 * doc/invoke.texi: Remove the ignored options above.
26167 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
26168 * tree-ssa-coalesce.h: ... here.
26169 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
26170 headers required by it.
26171 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
26172 across variables when flag_tree_coalesce_vars. Check register
26173 use and promoted modes to allow coalescing. Moved to
26174 tree-ssa-coalesce.c.
26175 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
26176 with its member functions to tree-ssa-coalesce.c.
26177 (var_map_base_init): Likewise. Renamed to
26178 compute_samebase_partition_bases.
26179 (partition_view_normal): Drop want_bases parameter.
26180 (partition_view_bitmap): Likewise.
26181 * tree-ssa-live.h: Adjust declarations.
26182 * tree-ssa-coalesce.c: Include explow.h.
26183 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
26184 default defs at the entry point.
26185 (dump_part_var_map): New.
26186 (compute_optimized_partition_bases): New, called by...
26187 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
26188 of compute_samebase_partition_bases. Adjust.
26189 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
26190 * cfgexpand.c (leader_merge): New.
26191 (get_rtl_for_parm_ssa_default_def): New.
26192 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
26193 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
26194 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
26195 redundant MEM attr setting.
26196 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
26198 (expand_one_stack_var): ... this. New wrapper to check and
26199 skip already expanded SSA partitions.
26200 (record_alignment_for_reg_var): New, factored out of...
26201 (expand_one_var): ... this.
26202 (expand_one_ssa_partition): New.
26203 (adjust_one_expanded_partition_var): New.
26204 (expand_one_register_var): Check and skip already expanded SSA
26206 (expand_used_vars): Don't create DECLs for anonymous SSA
26207 names. Expand all SSA partitions, then adjust all SSA names.
26208 (pass::execute): Replace the loops that set
26209 SA.partition_to_pseudo from partition leaders and cleared
26210 DECL_RTL for multi-location variables, and that which used to
26211 rename vars and set attrs, with one that clears DECL_RTL and
26212 checks that PARMs and RESULTs default_defs match DECL_RTL.
26213 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
26214 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
26215 * explow.c (promote_ssa_mode): New.
26216 * explow.h (promote_ssa_mode): Declare.
26217 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
26218 * function.c: Include cfgexpand.h.
26219 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
26220 (use_register_for_parm_decl): Wrapper for the above to
26221 special-case the result_ptr.
26222 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
26223 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
26224 multiple locations.
26225 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
26226 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
26227 (assign_parm_setup_block): Prefer SSA-assigned location.
26228 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
26229 if stack_parm is NULL.
26230 (assign_parm_setup_stack): Prefer SSA-assigned location.
26231 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
26232 rtl before testing for pointer bounds. Special-case result_ptr.
26233 (expand_function_start): Maybe reset DECL_RTL of result.
26234 Prefer SSA-assigned location for result and static chain.
26235 Factor out DECL_RESULT and SET_DECL_RTL.
26236 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
26237 anonymous SSA names. Use promote_ssa_mode.
26238 (get_temp_reg): Likewise.
26239 (remove_ssa_form): Adjust.
26240 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
26241 and get its reg_usage for reg invalidation.
26242 (compute_bb_dataflow): Pass it insn.
26243 (emit_notes_in_bb): Likewise.
26244 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
26245 fail assert on conversion between unsigned types.
26247 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
26250 * tree-inline.c (reset_debug_binding): New.
26251 (reset_debug_bindings): Likewise.
26252 (expand_call_inline): Call it.
26254 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26256 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
26259 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26261 * lto-streamer-out.c (lto_output_location): Stream
26262 reserved locations correctly.
26263 * lto-streamer-in.c (lto_output_location): Likewise.
26265 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
26267 * coretypes.h: Include hash-table.h and hash-set.h for host files.
26268 * ggc.h: Don't include statistics.h>
26269 * hash-map.h: Remove all includes.
26270 * hash-set.h: Likewise.
26271 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
26272 the include list. Remove <new>.
26273 * inchash.h: Remove all includes.
26274 * mem-stats.h: Likewise.
26275 * vec.h: No special processing for generators or ggc.
26276 * alias.c : Adjust include files.
26277 * alloc-pool.c : Likewise.
26278 * alloc-pool.h : Likewise.
26279 * asan.c : Likewise.
26280 * attribs.c : Likewise.
26281 * auto-inc-dec.c : Likewise.
26282 * auto-profile.c : Likewise.
26283 * bb-reorder.c : Likewise.
26284 * bitmap.c : Likewise.
26285 * bitmap.h : Likewise.
26286 * bt-load.c : Likewise.
26287 * builtins.c : Likewise.
26288 * caller-save.c : Likewise.
26289 * calls.c : Likewise.
26290 * ccmp.c : Likewise.
26291 * cfg.c : Likewise.
26292 * cfganal.c : Likewise.
26293 * cfgbuild.c : Likewise.
26294 * cfgcleanup.c : Likewise.
26295 * cfgexpand.c : Likewise.
26296 * cfghooks.c : Likewise.
26297 * cfgloop.c : Likewise.
26298 * cfgloop.h : Likewise.
26299 * cfgloopanal.c : Likewise.
26300 * cfgloopmanip.c : Likewise.
26301 * cfgrtl.c : Likewise.
26302 * cgraph.c : Likewise.
26303 * cgraphbuild.c : Likewise.
26304 * cgraphclones.c : Likewise.
26305 * cgraphunit.c : Likewise.
26306 * cilk-common.c : Likewise.
26307 * combine-stack-adj.c : Likewise.
26308 * combine.c : Likewise.
26309 * compare-elim.c : Likewise.
26310 * context.c : Likewise.
26311 * convert.c : Likewise.
26312 * coverage.c : Likewise.
26313 * cppbuiltin.c : Likewise.
26314 * cprop.c : Likewise.
26315 * cse.c : Likewise.
26316 * cselib.c : Likewise.
26317 * data-streamer-in.c : Likewise.
26318 * data-streamer-out.c : Likewise.
26319 * data-streamer.c : Likewise.
26320 * data-streamer.h : Likewise.
26321 * dbxout.c : Likewise.
26322 * dce.c : Likewise.
26323 * ddg.c : Likewise.
26324 * debug.c : Likewise.
26325 * df-core.c : Likewise.
26326 * df-problems.c : Likewise.
26327 * df-scan.c : Likewise.
26329 * dfp.c : Likewise.
26330 * dojump.c : Likewise.
26331 * dominance.c : Likewise.
26332 * domwalk.c : Likewise.
26333 * double-int.c : Likewise.
26334 * dse.c : Likewise.
26335 * dumpfile.c : Likewise.
26336 * dwarf2asm.c : Likewise.
26337 * dwarf2cfi.c : Likewise.
26338 * dwarf2out.c : Likewise.
26339 * emit-rtl.c : Likewise.
26340 * et-forest.c : Likewise.
26341 * except.c : Likewise.
26342 * except.h : Likewise.
26343 * explow.c : Likewise.
26344 * expmed.c : Likewise.
26345 * expr.c : Likewise.
26346 * final.c : Likewise.
26347 * fixed-value.c : Likewise.
26348 * fold-const.c : Likewise.
26349 * function.c : Likewise.
26350 * fwprop.c : Likewise.
26351 * gcc-plugin.h : Likewise.
26352 * gcc.c : Likewise.
26353 * gcse-common.c : Likewise.
26354 * gcse.c : Likewise.
26355 * genattrtab.c : Likewise.
26356 * genautomata.c : Likewise.
26357 * genconditions.c : Likewise.
26358 * genemit.c : Likewise.
26359 * generic-match-head.c : Likewise.
26360 * genextract.c : Likewise.
26361 * gengtype-state.c : Likewise.
26362 * gengtype.c : Likewise.
26363 * genhooks.c : Likewise.
26364 * genmatch.c : Likewise.
26365 * genmodes.c : Likewise.
26366 * genrecog.c : Likewise.
26367 * gensupport.c : Likewise.
26368 * ggc-common.c : Likewise.
26369 * ggc-internal.h : Likewise.
26370 * ggc-none.c : Likewise.
26371 * ggc-page.c : Likewise.
26372 * gimple-builder.c : Likewise.
26373 * gimple-expr.c : Likewise.
26374 * gimple-fold.c : Likewise.
26375 * gimple-iterator.c : Likewise.
26376 * gimple-low.c : Likewise.
26377 * gimple-match-head.c : Likewise.
26378 * gimple-pretty-print.c : Likewise.
26379 * gimple-ssa-isolate-paths.c : Likewise.
26380 * gimple-ssa-strength-reduction.c : Likewise.
26381 * gimple-ssa.h : Likewise.
26382 * gimple-streamer-in.c : Likewise.
26383 * gimple-streamer-out.c : Likewise.
26384 * gimple-streamer.h : Likewise.
26385 * gimple-walk.c : Likewise.
26386 * gimple.c : Likewise.
26387 * gimplify-me.c : Likewise.
26388 * gimplify.c : Likewise.
26389 * godump.c : Likewise.
26390 * graph.c : Likewise.
26391 * graphds.c : Likewise.
26392 * graphite-blocking.c : Likewise.
26393 * graphite-dependences.c : Likewise.
26394 * graphite-interchange.c : Likewise.
26395 * graphite-isl-ast-to-gimple.c : Likewise.
26396 * graphite-optimize-isl.c : Likewise.
26397 * graphite-poly.c : Likewise.
26398 * graphite-scop-detection.c : Likewise.
26399 * graphite-sese-to-poly.c : Likewise.
26400 * graphite.c : Likewise.
26401 * haifa-sched.c : Likewise.
26402 * hard-reg-set.h : Likewise.
26403 * hw-doloop.c : Likewise.
26404 * ifcvt.c : Likewise.
26405 * inchash.c : Likewise.
26406 * incpath.c : Likewise.
26407 * init-regs.c : Likewise.
26408 * input.c : Likewise.
26409 * internal-fn.c : Likewise.
26410 * ipa-chkp.c : Likewise.
26411 * ipa-comdats.c : Likewise.
26412 * ipa-cp.c : Likewise.
26413 * ipa-devirt.c : Likewise.
26414 * ipa-icf-gimple.c : Likewise.
26415 * ipa-icf.c : Likewise.
26416 * ipa-inline-analysis.c : Likewise.
26417 * ipa-inline-transform.c : Likewise.
26418 * ipa-inline.c : Likewise.
26419 * ipa-polymorphic-call.c : Likewise.
26420 * ipa-profile.c : Likewise.
26421 * ipa-prop.c : Likewise.
26422 * ipa-pure-const.c : Likewise.
26423 * ipa-ref.c : Likewise.
26424 * ipa-reference.c : Likewise.
26425 * ipa-split.c : Likewise.
26426 * ipa-utils.c : Likewise.
26427 * ipa-visibility.c : Likewise.
26428 * ipa.c : Likewise.
26429 * ira-build.c : Likewise.
26430 * ira-color.c : Likewise.
26431 * ira-conflicts.c : Likewise.
26432 * ira-costs.c : Likewise.
26433 * ira-emit.c : Likewise.
26434 * ira-lives.c : Likewise.
26435 * ira.c : Likewise.
26436 * jump.c : Likewise.
26437 * langhooks.c : Likewise.
26438 * lcm.c : Likewise.
26439 * libfuncs.h : Likewise.
26440 * lists.c : Likewise.
26441 * loop-doloop.c : Likewise.
26442 * loop-init.c : Likewise.
26443 * loop-invariant.c : Likewise.
26444 * loop-iv.c : Likewise.
26445 * loop-unroll.c : Likewise.
26446 * lower-subreg.c : Likewise.
26447 * lra-assigns.c : Likewise.
26448 * lra-coalesce.c : Likewise.
26449 * lra-constraints.c : Likewise.
26450 * lra-eliminations.c : Likewise.
26451 * lra-lives.c : Likewise.
26452 * lra-remat.c : Likewise.
26453 * lra-spills.c : Likewise.
26454 * lra.c : Likewise.
26455 * lto-cgraph.c : Likewise.
26456 * lto-compress.c : Likewise.
26457 * lto-opts.c : Likewise.
26458 * lto-section-in.c : Likewise.
26459 * lto-section-out.c : Likewise.
26460 * lto-streamer-in.c : Likewise.
26461 * lto-streamer-out.c : Likewise.
26462 * lto-streamer.c : Likewise.
26463 * lto-streamer.h : Likewise.
26464 * mcf.c : Likewise.
26465 * mode-switching.c : Likewise.
26466 * modulo-sched.c : Likewise.
26467 * omega.c : Likewise.
26468 * omp-low.c : Likewise.
26469 * optabs.c : Likewise.
26470 * opts-global.c : Likewise.
26471 * opts.h : Likewise.
26472 * passes.c : Likewise.
26473 * plugin.c : Likewise.
26474 * postreload-gcse.c : Likewise.
26475 * postreload.c : Likewise.
26476 * predict.c : Likewise.
26477 * print-rtl.c : Likewise.
26478 * print-tree.c : Likewise.
26479 * profile.c : Likewise.
26480 * read-md.c : Likewise.
26481 * read-md.h : Likewise.
26482 * read-rtl.c : Likewise.
26483 * real.c : Likewise.
26484 * realmpfr.c : Likewise.
26485 * recog.c : Likewise.
26486 * ree.c : Likewise.
26487 * reg-stack.c : Likewise.
26488 * regcprop.c : Likewise.
26489 * reginfo.c : Likewise.
26490 * regrename.c : Likewise.
26491 * regstat.c : Likewise.
26492 * reload.c : Likewise.
26493 * reload1.c : Likewise.
26494 * reorg.c : Likewise.
26495 * resource.c : Likewise.
26496 * rtl-chkp.c : Likewise.
26497 * rtl.c : Likewise.
26498 * rtl.h : Likewise.
26499 * rtlanal.c : Likewise.
26500 * rtlhash.c : Likewise.
26501 * rtlhash.h : Likewise.
26502 * rtlhooks.c : Likewise.
26503 * sanopt.c : Likewise.
26504 * sched-deps.c : Likewise.
26505 * sched-ebb.c : Likewise.
26506 * sched-rgn.c : Likewise.
26507 * sched-vis.c : Likewise.
26508 * sdbout.c : Likewise.
26509 * sel-sched-dump.c : Likewise.
26510 * sel-sched-ir.c : Likewise.
26511 * sel-sched-ir.h : Likewise.
26512 * sel-sched.c : Likewise.
26513 * sese.c : Likewise.
26514 * shrink-wrap.c : Likewise.
26515 * shrink-wrap.h : Likewise.
26516 * simplify-rtx.c : Likewise.
26517 * stack-ptr-mod.c : Likewise.
26518 * statistics.c : Likewise.
26519 * stmt.c : Likewise.
26520 * stor-layout.c : Likewise.
26521 * store-motion.c : Likewise.
26522 * stringpool.c : Likewise.
26523 * symtab.c : Likewise.
26524 * target-globals.c : Likewise.
26525 * targhooks.c : Likewise.
26526 * tlink.c : Likewise.
26527 * toplev.c : Likewise.
26528 * tracer.c : Likewise.
26529 * trans-mem.c : Likewise.
26530 * tree-affine.c : Likewise.
26531 * tree-affine.h : Likewise.
26532 * tree-browser.c : Likewise.
26533 * tree-call-cdce.c : Likewise.
26534 * tree-cfg.c : Likewise.
26535 * tree-cfgcleanup.c : Likewise.
26536 * tree-chkp-opt.c : Likewise.
26537 * tree-chkp.c : Likewise.
26538 * tree-chrec.c : Likewise.
26539 * tree-complex.c : Likewise.
26540 * tree-data-ref.c : Likewise.
26541 * tree-dfa.c : Likewise.
26542 * tree-diagnostic.c : Likewise.
26543 * tree-dump.c : Likewise.
26544 * tree-eh.c : Likewise.
26545 * tree-eh.h : Likewise.
26546 * tree-emutls.c : Likewise.
26547 * tree-hasher.h : Likewise.
26548 * tree-if-conv.c : Likewise.
26549 * tree-inline.c : Likewise.
26550 * tree-inline.h : Likewise.
26551 * tree-into-ssa.c : Likewise.
26552 * tree-iterator.c : Likewise.
26553 * tree-loop-distribution.c : Likewise.
26554 * tree-nested.c : Likewise.
26555 * tree-nrv.c : Likewise.
26556 * tree-object-size.c : Likewise.
26557 * tree-outof-ssa.c : Likewise.
26558 * tree-parloops.c : Likewise.
26559 * tree-phinodes.c : Likewise.
26560 * tree-predcom.c : Likewise.
26561 * tree-pretty-print.c : Likewise.
26562 * tree-profile.c : Likewise.
26563 * tree-scalar-evolution.c : Likewise.
26564 * tree-sra.c : Likewise.
26565 * tree-ssa-address.c : Likewise.
26566 * tree-ssa-alias.c : Likewise.
26567 * tree-ssa-ccp.c : Likewise.
26568 * tree-ssa-coalesce.c : Likewise.
26569 * tree-ssa-copy.c : Likewise.
26570 * tree-ssa-copyrename.c : Likewise.
26571 * tree-ssa-dce.c : Likewise.
26572 * tree-ssa-dom.c : Likewise.
26573 * tree-ssa-dse.c : Likewise.
26574 * tree-ssa-forwprop.c : Likewise.
26575 * tree-ssa-ifcombine.c : Likewise.
26576 * tree-ssa-live.c : Likewise.
26577 * tree-ssa-loop-ch.c : Likewise.
26578 * tree-ssa-loop-im.c : Likewise.
26579 * tree-ssa-loop-ivcanon.c : Likewise.
26580 * tree-ssa-loop-ivopts.c : Likewise.
26581 * tree-ssa-loop-manip.c : Likewise.
26582 * tree-ssa-loop-niter.c : Likewise.
26583 * tree-ssa-loop-prefetch.c : Likewise.
26584 * tree-ssa-loop-unswitch.c : Likewise.
26585 * tree-ssa-loop.c : Likewise.
26586 * tree-ssa-math-opts.c : Likewise.
26587 * tree-ssa-operands.c : Likewise.
26588 * tree-ssa-phiopt.c : Likewise.
26589 * tree-ssa-phiprop.c : Likewise.
26590 * tree-ssa-pre.c : Likewise.
26591 * tree-ssa-propagate.c : Likewise.
26592 * tree-ssa-reassoc.c : Likewise.
26593 * tree-ssa-sccvn.c : Likewise.
26594 * tree-ssa-scopedtables.c : Likewise.
26595 * tree-ssa-sink.c : Likewise.
26596 * tree-ssa-strlen.c : Likewise.
26597 * tree-ssa-structalias.c : Likewise.
26598 * tree-ssa-tail-merge.c : Likewise.
26599 * tree-ssa-ter.c : Likewise.
26600 * tree-ssa-threadedge.c : Likewise.
26601 * tree-ssa-threadupdate.c : Likewise.
26602 * tree-ssa-uncprop.c : Likewise.
26603 * tree-ssa-uninit.c : Likewise.
26604 * tree-ssa.c : Likewise.
26605 * tree-ssanames.c : Likewise.
26606 * tree-stdarg.c : Likewise.
26607 * tree-streamer-in.c : Likewise.
26608 * tree-streamer-out.c : Likewise.
26609 * tree-streamer.c : Likewise.
26610 * tree-streamer.h : Likewise.
26611 * tree-switch-conversion.c : Likewise.
26612 * tree-tailcall.c : Likewise.
26613 * tree-vect-data-refs.c : Likewise.
26614 * tree-vect-generic.c : Likewise.
26615 * tree-vect-loop-manip.c : Likewise.
26616 * tree-vect-loop.c : Likewise.
26617 * tree-vect-patterns.c : Likewise.
26618 * tree-vect-slp.c : Likewise.
26619 * tree-vect-stmts.c : Likewise.
26620 * tree-vectorizer.c : Likewise.
26621 * tree-vectorizer.h : Likewise.
26622 * tree-vrp.c : Likewise.
26623 * tree.c : Likewise.
26624 * tsan.c : Likewise.
26625 * ubsan.c : Likewise.
26626 * valtrack.c : Likewise.
26627 * valtrack.h : Likewise.
26628 * value-prof.c : Likewise.
26629 * var-tracking.c : Likewise.
26630 * varasm.c : Likewise.
26631 * varpool.c : Likewise.
26633 * vmsdbgout.c : Likewise.
26634 * vtable-verify.c : Likewise.
26635 * vtable-verify.h : Likewise.
26636 * web.c : Likewise.
26637 * wide-int.cc : Likewise.
26638 * xcoffout.c : Likewise.
26639 * config/aarch64/aarch64-builtins.c : Likewise.
26640 * config/aarch64/aarch64.c : Likewise.
26641 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
26642 * config/alpha/alpha.c : Likewise.
26643 * config/arc/arc.c : Likewise.
26644 * config/arm/aarch-common.c : Likewise.
26645 * config/arm/arm-builtins.c : Likewise.
26646 * config/arm/arm-c.c : Likewise.
26647 * config/arm/arm.c : Likewise.
26648 * config/avr/avr-c.c : Likewise.
26649 * config/avr/avr-log.c : Likewise.
26650 * config/avr/avr.c : Likewise.
26651 * config/bfin/bfin.c : Likewise.
26652 * config/c6x/c6x.c : Likewise.
26653 * config/cr16/cr16.c : Likewise.
26654 * config/cris/cris.c : Likewise.
26655 * config/darwin-c.c : Likewise.
26656 * config/darwin.c : Likewise.
26657 * config/default-c.c : Likewise.
26658 * config/epiphany/epiphany.c : Likewise.
26659 * config/epiphany/mode-switch-use.c : Likewise.
26660 * config/epiphany/resolve-sw-modes.c : Likewise.
26661 * config/fr30/fr30.c : Likewise.
26662 * config/frv/frv.c : Likewise.
26663 * config/ft32/ft32.c : Likewise.
26664 * config/glibc-c.c : Likewise.
26665 * config/h8300/h8300.c : Likewise.
26666 * config/i386/i386-c.c : Likewise.
26667 * config/i386/i386.c : Likewise.
26668 * config/i386/msformat-c.c : Likewise.
26669 * config/i386/winnt-cxx.c : Likewise.
26670 * config/i386/winnt-stubs.c : Likewise.
26671 * config/i386/winnt.c : Likewise.
26672 * config/ia64/ia64-c.c : Likewise.
26673 * config/ia64/ia64.c : Likewise.
26674 * config/iq2000/iq2000.c : Likewise.
26675 * config/lm32/lm32.c : Likewise.
26676 * config/m32c/m32c-pragma.c : Likewise.
26677 * config/m32c/m32c.c : Likewise.
26678 * config/m32r/m32r.c : Likewise.
26679 * config/m68k/m68k.c : Likewise.
26680 * config/mcore/mcore.c : Likewise.
26681 * config/mep/mep-pragma.c : Likewise.
26682 * config/mep/mep.c : Likewise.
26683 * config/microblaze/microblaze-c.c : Likewise.
26684 * config/microblaze/microblaze.c : Likewise.
26685 * config/mips/mips.c : Likewise.
26686 * config/mmix/mmix.c : Likewise.
26687 * config/mn10300/mn10300.c : Likewise.
26688 * config/moxie/moxie.c : Likewise.
26689 * config/msp430/msp430-c.c : Likewise.
26690 * config/msp430/msp430.c : Likewise.
26691 * config/nds32/nds32-cost.c : Likewise.
26692 * config/nds32/nds32-fp-as-gp.c : Likewise.
26693 * config/nds32/nds32-intrinsic.c : Likewise.
26694 * config/nds32/nds32-isr.c : Likewise.
26695 * config/nds32/nds32-md-auxiliary.c : Likewise.
26696 * config/nds32/nds32-memory-manipulation.c : Likewise.
26697 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
26698 * config/nds32/nds32-predicates.c : Likewise.
26699 * config/nds32/nds32.c : Likewise.
26700 * config/nios2/nios2.c : Likewise.
26701 * config/nvptx/nvptx.c : Likewise.
26702 * config/pa/pa.c : Likewise.
26703 * config/pdp11/pdp11.c : Likewise.
26704 * config/rl78/rl78-c.c : Likewise.
26705 * config/rl78/rl78.c : Likewise.
26706 * config/rs6000/rs6000-c.c : Likewise.
26707 * config/rs6000/rs6000.c : Likewise.
26708 * config/rx/rx.c : Likewise.
26709 * config/s390/s390-c.c : Likewise.
26710 * config/s390/s390.c : Likewise.
26711 * config/sh/sh-c.c : Likewise.
26712 * config/sh/sh-mem.cc : Likewise.
26713 * config/sh/sh.c : Likewise.
26714 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
26715 * config/sh/sh_treg_combine.cc : Likewise.
26716 * config/sol2-c.c : Likewise.
26717 * config/sol2-cxx.c : Likewise.
26718 * config/sol2-stubs.c : Likewise.
26719 * config/sol2.c : Likewise.
26720 * config/sparc/sparc-c.c : Likewise.
26721 * config/sparc/sparc.c : Likewise.
26722 * config/spu/spu-c.c : Likewise.
26723 * config/spu/spu.c : Likewise.
26724 * config/stormy16/stormy16.c : Likewise.
26725 * config/tilegx/mul-tables.c : Likewise.
26726 * config/tilegx/tilegx-c.c : Likewise.
26727 * config/tilegx/tilegx.c : Likewise.
26728 * config/tilepro/mul-tables.c : Likewise.
26729 * config/tilepro/tilepro-c.c : Likewise.
26730 * config/tilepro/tilepro.c : Likewise.
26731 * config/v850/v850-c.c : Likewise.
26732 * config/v850/v850.c : Likewise.
26733 * config/vax/vax.c : Likewise.
26734 * config/visium/visium.c : Likewise.
26735 * config/vms/vms-c.c : Likewise.
26736 * config/vms/vms.c : Likewise.
26737 * config/vxworks.c : Likewise.
26738 * config/winnt-c.c : Likewise.
26739 * config/xtensa/xtensa.c : Likewise.
26741 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
26744 * ipa-utils.h (warn_types_mismatch): Update prototype.
26745 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
26747 (type_mismatch_p): New function.
26748 (warn_types_mismatch): Reorg to work better on non-C++ types.
26749 (odr_types_equivalent_p): Add loc1/loc2 parameters.
26750 (add_type_duplicate): Update.
26752 2015-06-08 Tom de Vries <tom@codesourcery.com>
26754 PR rtl-optimization/66444
26755 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
26758 2015-06-08 Richard Biener <rguenther@suse.de>
26760 PR tree-optimization/66422
26761 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
26762 block after inserted gcc_unreachable.
26764 2015-06-08 Nick Clifton <nickc@redhat.com>
26766 * config/rx/rx.c (rx_function_value): Do not promote vector types.
26767 (rx_promote_function_mode): Likewise.
26768 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
26770 2015-06-08 Jakub Jelinek <jakub@redhat.com>
26772 * genattrtab.c (insn_alternatives): Change type from int *
26774 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
26775 (get_attr_value): Change type of num_alt to uint64_t.
26776 (compute_alternative_mask): Change return type from
26777 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
26778 (make_alternative_compare, mk_attr_alt): Change argument type
26779 from int to uint64_t.
26780 (simplify_test_exp): Change type of i from int to uint64_t.
26781 Shift ((uint64_t) 1) instead of 1 up.
26782 (main): Adjust oballocvec first argument from int to uint64_t.
26783 Shift ((uint64_t) 1) instead of 1 up.
26785 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
26788 * gdbhooks.py: Import sys.
26789 (intptr): New function. Replace int(...) by intptr(...).
26791 2015-06-08 Richard Biener <rguenther@suse.de>
26793 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
26794 adjustment for gaps at the end of a SLP load group properly.
26795 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
26796 all permutations we can generate.
26797 (vect_transform_slp_perm_load): Use the correct group-size.
26799 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
26801 * genmatch.c (expr::gen_transform): For conditions, guess the type
26802 from the second operand.
26804 2015-06-08 Tom de Vries <tom@codesourcery.com>
26806 PR tree-optimization/66442
26807 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
26808 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
26809 if the loop latch is not a singleton. Use
26810 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
26812 2015-06-08 Marek Polacek <polacek@redhat.com>
26815 * toplev.c (check_global_declaration): Don't warn about artificial
26818 2015-06-08 Tom de Vries <tom@codesourcery.com>
26820 PR tree-optimization/66436
26821 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
26823 * gimplify.c: Add tree-dump.h include.
26824 (gimplify_function_tree): Dump function to gimple dump file.
26825 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
26828 2015-06-08 Tom de Vries <tom@codesourcery.com>
26830 PR tree-optimization/66435
26831 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
26834 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
26836 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
26837 of ptr_type_node to not be ptr_to_node.
26838 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
26839 TREE_TYPE of pointers.
26840 * gimple-expr.c (useless_type_conversion): Reorder the check for
26841 function pointers and TYPE_CANONICAL.
26843 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
26846 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
26847 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
26848 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
26850 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
26851 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
26852 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
26853 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
26854 and non iso if unix2003.
26856 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
26858 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
26860 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
26862 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
26863 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
26864 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
26865 except.c, final.c, function.c, gcse-common.c, genemit.c,
26866 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
26867 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
26868 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
26869 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
26872 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
26874 * combine.c (combine_split_insns): Remove cast.
26875 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
26876 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
26877 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
26878 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
26879 * genemit.c (gen_split): Change return type of generated functions to
26881 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
26882 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
26883 gen_peephole2_* functions.
26884 (print_subroutine, main): Likewise.
26885 * recog.c (peephole2_optimize): Remove cast.
26886 (peep2_next_insn): Promote return type to rtx_insn.
26887 * recog.h (peep2_next_insn): Fix prototype.
26888 * rtl.h (try_split, split_insns): Likewise.
26890 2015-06-06 DJ Delorie <dj@redhat.com>
26892 * config/msp430/msp430.c (msp430_asm_integer): Support addition
26893 and subtraction too.
26895 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
26898 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
26899 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
26900 instead of Snd. Disparage Sid/z alternative with '^'.
26902 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
26904 * dwarf2out.c: Remove deferred_locations*.
26905 (dwarf2_debug_hooks): Add early_finish hook.
26906 Remove global_decl hook.
26907 Add early_global_decl and late_global_decl hook.
26908 New global early_dwarf.
26909 New structure set_early_dwarf.
26910 (output_die): Indicate whether a DIE was generated early
26911 when generating assembly with -dA.
26912 (struct limbo_die_struct): Document created_for field.
26913 Remove file_table_last_lookup.
26914 (remove_AT): Return TRUE if successful.
26915 (remove_child_TAG): Clear die_parent.
26916 (reparent_child): New function abstracted from...
26917 (splice_child_die): ...here.
26918 (new_die): ICE if a DIE ends up in limbo too late.
26920 (defer_location): Remove.
26921 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
26922 (fill_variable_array_bounds): New.
26923 (decl_start_label): Call fill_variable_array_bounds.
26924 (gen_formal_parameter_die): Rewrite to reuse previously generated
26926 (gen_subprogram_die): Same.
26927 (gen_variable_die): Same.
26928 (gen_const_die): Same.
26929 (gen_label_die): Same.
26930 (gen_lexical_block_die): Same.
26931 (decl_will_get_specification_p): New.
26932 (local_function_static): New.
26933 (gen_struct_or_union_type_die): Fill in variable-length fields.
26934 (gen_typedef_die): Fill in variable-length typedefs.
26935 (gen_tagged_type_die): Gracefully return on error_mark_node.
26936 Handle re-entrancy.
26937 (gen_type_die_with_usage): Handle variable-length types.
26938 Remove duplicate code for ARRAY_TYPE case.
26939 (process_scope_var): Only process imported modules during early
26941 (dwarf2out_early_global_decl): New.
26942 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
26943 (dwarf2out_type_decl): Set early_dwarf while calling
26945 (dwarf2out_decl): Verify that we did not recreate a previously
26947 Do not return on DECL_EXTERNALs in VAR_DECLs.
26948 Abstract some code to local_function_static.
26949 (lookup_filename): Remove use of file_table_last_lookup.
26950 Gracefully exit on missing file_name.
26951 (dwarf2out_finish): Verify limbo list.
26952 Remove deferred_locations_list use.
26953 Move deferred_asm_name and limbo flushing to...
26954 (dwarf2out_early_finish): ...here. New.
26955 (dwarf2out_c_finalize): Remove set of deferred_location_list,
26956 deferred_asm_name, and file_table_last_lookup.
26957 * cgraph.h (referred_to_p): Add default argument.
26958 * cgraphunit.c (referred_to_p): Add and handle include_self
26960 (analyze_functions): Add first_time argument.
26961 Call check_global_declaration for all symbols.
26962 Call late_global_decl for nodes for moribund nodes.
26963 (finalize_compilation_unit): Add new argument to
26965 Call early_global_decl for functions.
26966 Call early_finish debug hook.
26967 * dbxout.c (dbxout_early_global_decl): New.
26968 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
26969 (dbx_debug_hooks): Add new hooks.
26970 (xcoff_debug_hooks): Same.
26971 * debug.c (do_nothing_debug_hooks): Add early_finish field.
26972 Add early and late debug hooks.
26973 Remove global_decl hook.
26974 * debug.h (struct gcc_debug_hooks): Add early_finish,
26975 early_global_decl, and late_global_decl fields.
26976 Remove global_decl field.
26977 Document gcc_debug_hooks.
26978 * gengtype.c (output_typename): Remove.
26979 * godump.c (go_early_global_decl): New.
26980 (go_late_global_decl): New.
26981 (go_global_decl): Remove.
26982 (dump_go_spec_init): Remove global_decl. Add
26983 {early,late}_global_decl.
26984 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
26985 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
26986 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
26987 (write_global_declarations): Remove.
26988 (global_decl_processing): New.
26989 * langhooks.h (struct lang_hooks_for_decls): Remove
26990 final_write_globals field.
26991 Add post_compilation_parsing_cleanups field.
26992 * passes.c (rest_of_decl_compilation): Call early_global_decl.
26993 * sdbout.c: Add early and late_global_decl hooks. Remove
26994 sdbout_global_decl hook.
26995 Add early_finish field for sdb_debug_hooks.
26996 (sdbout_global_decl): Remove.
26997 (sdbout_early_global_decl): New.
26998 (sdbout_late_global_decl): New.
26999 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
27000 * toplev.c (check_global_declaration): Rename from
27001 check_global_declaration_1.
27002 Adapt to use symtab infrastructure.
27003 (check_global_declarations): Remove.
27004 (emit_debug_global_declarations): Remove.
27005 (compile_file): Remove call to final_write_globals langhook.
27006 Run the actual compilation process.
27007 Perform any post compilation parser cleanups.
27008 Generate late debug info.
27009 * toplev.h (check_global_declaration): New.
27010 (check_global_declaration_1): Remove.
27011 (check_global_declarations): Remove.
27012 (write_global_declarations): Remove.
27013 (emit_debug_global_declarations): Remove.
27014 (global_decl_processing): New.
27015 * tree-core.h (struct tree_block): Add DIE field.
27016 * tree.h (BLOCK_DIE): New.
27017 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
27019 (vmsdbgout_early_global_decl): New.
27020 (vmsdbgout_late_global_decl): New.
27021 Add early_finish debug hook field to vmsdbg_debug_hooks.
27022 Remove vmsdbgout_decl to vmsdbgout_function_decl.
27023 Add early and late_global_decl debug hooks.
27025 2015-06-05 Julian Brown <julian@codesourcery.com>
27026 Sandra Loosemore <sandra@codesourcery.com>
27028 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
27029 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
27030 to print-sysroot-suffix.sh script.
27032 2015-06-05 Tom de Vries <tom@codesourcery.com>
27034 merge from gomp4 branch:
27035 2015-05-28 Tom de Vries <tom@codesourcery.com>
27037 PR tree-optimization/65443
27038 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
27039 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
27040 (try_transform_to_exit_first_loop_alt): New function.
27041 (transform_to_exit_first_loop): Use
27042 try_transform_to_exit_first_loop_alt.
27044 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
27046 * builtins.c (expand_builtin_atomic_compare_exchange): Call
27047 emit_cmp_and_jump_insns with the mode of target.
27049 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
27051 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
27053 2015-06-04 DJ Delorie <dj@redhat.com>
27055 * config/msp430/msp430.md (movsi_s): New. Special case for
27056 storing a 20-bit symbol into a 32-bit register.
27057 * config/msp430/msp430.c (msp430_subreg): Add support for it.
27058 * config/msp430/predicates.md (msp430_symbol_operand): New.
27060 2015-06-04 Sriraman Tallam <tmsriram@google.com>
27062 * calls.c (prepare_call_address): Check for noplt
27064 * config/i386/i386.c (ix86_expand_call): Check
27065 for noplt attribute.
27066 (ix86_nopic_noplt_attribute_p): New function.
27067 (ix86_output_call_insn): Output indirect call for non-pic
27069 * doc/extend.texi (noplt): Document new attribute.
27070 * doc/invoke.texi: Document new attribute.
27072 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
27074 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
27075 real.h, and fixed-value.h when included in host source files.
27076 * double-int.h: Remove redundant #includes listed above.
27077 * fixed-value.h: Likewise.
27078 * real.h: Likewise.
27079 * wide-int.h: Likewise.
27080 * inchash.h: Likewise.
27081 * rtl.h: Add some include files When included from a generator file.
27082 * target.h: Remove wide-int.h and insn-modes.h from the include list.
27083 * internal-fn.h: Don't include coretypes.h.
27084 * alias.c: Adjust includes for restructured coretypes.h.
27085 * asan.c: Likewise.
27086 * attribs.c: Likewise.
27087 * auto-inc-dec.c: Likewise.
27088 * auto-profile.c: Likewise.
27089 * bb-reorder.c: Likewise.
27090 * bt-load.c: Likewise.
27091 * builtins.c: Likewise.
27092 * caller-save.c: Likewise.
27093 * calls.c: Likewise.
27094 * ccmp.c: Likewise.
27096 * cfganal.c: Likewise.
27097 * cfgbuild.c: Likewise.
27098 * cfgcleanup.c: Likewise.
27099 * cfgexpand.c: Likewise.
27100 * cfghooks.c: Likewise.
27101 * cfgloop.c: Likewise.
27102 * cfgloop.h: Likewise.
27103 * cfgloopanal.c: Likewise.
27104 * cfgloopmanip.c: Likewise.
27105 * cfgrtl.c: Likewise.
27106 * cgraph.c: Likewise.
27107 * cgraphbuild.c: Likewise.
27108 * cgraphclones.c: Likewise.
27109 * cgraphunit.c: Likewise.
27110 * cilk-common.c: Likewise.
27111 * combine-stack-adj.c: Likewise.
27112 * combine.c: Likewise.
27113 * compare-elim.c: Likewise.
27114 * convert.c: Likewise.
27115 * coverage.c: Likewise.
27116 * cppbuiltin.c: Likewise.
27117 * cprop.c: Likewise.
27119 * cselib.c: Likewise.
27120 * data-streamer-in.c: Likewise.
27121 * data-streamer-out.c: Likewise.
27122 * data-streamer.c: Likewise.
27123 * dbxout.c: Likewise.
27126 * debug.c: Likewise.
27127 * df-core.c: Likewise.
27128 * df-problems.c: Likewise.
27129 * df-scan.c: Likewise.
27132 * dojump.c: Likewise.
27133 * dominance.c: Likewise.
27134 * domwalk.c: Likewise.
27135 * double-int.c: Likewise.
27137 * dumpfile.c: Likewise.
27138 * dwarf2asm.c: Likewise.
27139 * dwarf2cfi.c: Likewise.
27140 * dwarf2out.c: Likewise.
27141 * dwarf2out.h: Likewise.
27142 * emit-rtl.c: Likewise.
27143 * et-forest.c: Likewise.
27144 * except.c: Likewise.
27145 * explow.c: Likewise.
27146 * expmed.c: Likewise.
27147 * expr.c: Likewise.
27148 * final.c: Likewise.
27149 * fixed-value.c: Likewise.
27150 * fold-const.c: Likewise.
27151 * function.c: Likewise.
27152 * fwprop.c: Likewise.
27153 * gcc-plugin.h: Likewise.
27154 * gcse.c: Likewise.
27155 * generic-match-head.c: Likewise.
27156 * ggc-page.c: Likewise.
27157 * gimple-builder.c: Likewise.
27158 * gimple-expr.c: Likewise.
27159 * gimple-fold.c: Likewise.
27160 * gimple-iterator.c: Likewise.
27161 * gimple-low.c: Likewise.
27162 * gimple-match-head.c: Likewise.
27163 * gimple-pretty-print.c: Likewise.
27164 * gimple-ssa-isolate-paths.c: Likewise.
27165 * gimple-ssa-strength-reduction.c: Likewise.
27166 * gimple-streamer-in.c: Likewise.
27167 * gimple-streamer-out.c: Likewise.
27168 * gimple-streamer.h: Likewise.
27169 * gimple-walk.c: Likewise.
27170 * gimple.c: Likewise.
27171 * gimplify-me.c: Likewise.
27172 * gimplify.c: Likewise.
27173 * godump.c: Likewise.
27174 * graph.c: Likewise.
27175 * graphite-blocking.c: Likewise.
27176 * graphite-dependences.c: Likewise.
27177 * graphite-interchange.c: Likewise.
27178 * graphite-isl-ast-to-gimple.c: Likewise.
27179 * graphite-optimize-isl.c: Likewise.
27180 * graphite-poly.c: Likewise.
27181 * graphite-scop-detection.c: Likewise.
27182 * graphite-sese-to-poly.c: Likewise.
27183 * graphite.c: Likewise.
27184 * haifa-sched.c: Likewise.
27185 * hooks.h: Likewise.
27186 * hw-doloop.c: Likewise.
27187 * ifcvt.c: Likewise.
27188 * incpath.c: Likewise.
27189 * init-regs.c: Likewise.
27190 * internal-fn.c: Likewise.
27191 * ipa-chkp.c: Likewise.
27192 * ipa-comdats.c: Likewise.
27193 * ipa-cp.c: Likewise.
27194 * ipa-devirt.c: Likewise.
27195 * ipa-icf-gimple.c: Likewise.
27196 * ipa-icf.c: Likewise.
27197 * ipa-inline-analysis.c: Likewise.
27198 * ipa-inline-transform.c: Likewise.
27199 * ipa-inline.c: Likewise.
27200 * ipa-polymorphic-call.c: Likewise.
27201 * ipa-profile.c: Likewise.
27202 * ipa-prop.c: Likewise.
27203 * ipa-pure-const.c: Likewise.
27204 * ipa-ref.c: Likewise.
27205 * ipa-reference.c: Likewise.
27206 * ipa-split.c: Likewise.
27207 * ipa-utils.c: Likewise.
27208 * ipa-visibility.c: Likewise.
27210 * ira-build.c: Likewise.
27211 * ira-color.c: Likewise.
27212 * ira-conflicts.c: Likewise.
27213 * ira-costs.c: Likewise.
27214 * ira-emit.c: Likewise.
27215 * ira-lives.c: Likewise.
27217 * jump.c: Likewise.
27218 * langhooks.c: Likewise.
27220 * loop-doloop.c: Likewise.
27221 * loop-init.c: Likewise.
27222 * loop-invariant.c: Likewise.
27223 * loop-iv.c: Likewise.
27224 * loop-unroll.c: Likewise.
27225 * lower-subreg.c: Likewise.
27226 * lra-assigns.c: Likewise.
27227 * lra-coalesce.c: Likewise.
27228 * lra-constraints.c: Likewise.
27229 * lra-eliminations.c: Likewise.
27230 * lra-lives.c: Likewise.
27231 * lra-remat.c: Likewise.
27232 * lra-spills.c: Likewise.
27234 * lto-cgraph.c: Likewise.
27235 * lto-compress.c: Likewise.
27236 * lto-opts.c: Likewise.
27237 * lto-section-in.c: Likewise.
27238 * lto-section-out.c: Likewise.
27239 * lto-streamer-in.c: Likewise.
27240 * lto-streamer-out.c: Likewise.
27241 * lto-streamer.c: Likewise.
27243 * mode-switching.c: Likewise.
27244 * modulo-sched.c: Likewise.
27245 * omega.c: Likewise.
27246 * omp-low.c: Likewise.
27247 * optabs.c: Likewise.
27248 * opts-global.c: Likewise.
27249 * passes.c: Likewise.
27250 * plugin.c: Likewise.
27251 * postreload-gcse.c: Likewise.
27252 * postreload.c: Likewise.
27253 * predict.c: Likewise.
27254 * print-rtl.c: Likewise.
27255 * print-tree.c: Likewise.
27256 * profile.c: Likewise.
27257 * real.c: Likewise.
27258 * realmpfr.c: Likewise.
27259 * realmpfr.h: Likewise.
27260 * recog.c: Likewise.
27262 * reg-stack.c: Likewise.
27263 * regcprop.c: Likewise.
27264 * reginfo.c: Likewise.
27265 * regrename.c: Likewise.
27266 * regs.h: Likewise.
27267 * regstat.c: Likewise.
27268 * reload.c: Likewise.
27269 * reload1.c: Likewise.
27270 * reorg.c: Likewise.
27271 * resource.c: Likewise.
27272 * rtl-chkp.c: Likewise.
27273 * rtlanal.c: Likewise.
27274 * rtlhooks.c: Likewise.
27275 * sanopt.c: Likewise.
27276 * sched-deps.c: Likewise.
27277 * sched-ebb.c: Likewise.
27278 * sched-rgn.c: Likewise.
27279 * sched-vis.c: Likewise.
27280 * sdbout.c: Likewise.
27281 * sel-sched-dump.c: Likewise.
27282 * sel-sched-ir.c: Likewise.
27283 * sel-sched.c: Likewise.
27284 * sese.c: Likewise.
27285 * shrink-wrap.c: Likewise.
27286 * shrink-wrap.h: Likewise.
27287 * simplify-rtx.c: Likewise.
27288 * stack-ptr-mod.c: Likewise.
27289 * statistics.c: Likewise.
27290 * stmt.c: Likewise.
27291 * stor-layout.c: Likewise.
27292 * store-motion.c: Likewise.
27293 * stringpool.c: Likewise.
27294 * symtab.c: Likewise.
27295 * target-globals.c: Likewise.
27296 * targhooks.c: Likewise.
27297 * toplev.c: Likewise.
27298 * tracer.c: Likewise.
27299 * trans-mem.c: Likewise.
27300 * tree-affine.c: Likewise.
27301 * tree-affine.h: Likewise.
27302 * tree-browser.c: Likewise.
27303 * tree-call-cdce.c: Likewise.
27304 * tree-cfg.c: Likewise.
27305 * tree-cfgcleanup.c: Likewise.
27306 * tree-chkp-opt.c: Likewise.
27307 * tree-chkp.c: Likewise.
27308 * tree-chrec.c: Likewise.
27309 * tree-complex.c: Likewise.
27310 * tree-data-ref.c: Likewise.
27311 * tree-dfa.c: Likewise.
27312 * tree-diagnostic.c: Likewise.
27313 * tree-dump.c: Likewise.
27314 * tree-eh.c: Likewise.
27315 * tree-emutls.c: Likewise.
27316 * tree-if-conv.c: Likewise.
27317 * tree-inline.c: Likewise.
27318 * tree-into-ssa.c: Likewise.
27319 * tree-iterator.c: Likewise.
27320 * tree-loop-distribution.c: Likewise.
27321 * tree-nested.c: Likewise.
27322 * tree-nrv.c: Likewise.
27323 * tree-object-size.c: Likewise.
27324 * tree-outof-ssa.c: Likewise.
27325 * tree-parloops.c: Likewise.
27326 * tree-phinodes.c: Likewise.
27327 * tree-predcom.c: Likewise.
27328 * tree-pretty-print.c: Likewise.
27329 * tree-pretty-print.h: Likewise.
27330 * tree-profile.c: Likewise.
27331 * tree-scalar-evolution.c: Likewise.
27332 * tree-sra.c: Likewise.
27333 * tree-ssa-address.c: Likewise.
27334 * tree-ssa-alias.c: Likewise.
27335 * tree-ssa-ccp.c: Likewise.
27336 * tree-ssa-coalesce.c: Likewise.
27337 * tree-ssa-copy.c: Likewise.
27338 * tree-ssa-copyrename.c: Likewise.
27339 * tree-ssa-dce.c: Likewise.
27340 * tree-ssa-dom.c: Likewise.
27341 * tree-ssa-dse.c: Likewise.
27342 * tree-ssa-forwprop.c: Likewise.
27343 * tree-ssa-ifcombine.c: Likewise.
27344 * tree-ssa-live.c: Likewise.
27345 * tree-ssa-loop-ch.c: Likewise.
27346 * tree-ssa-loop-im.c: Likewise.
27347 * tree-ssa-loop-ivcanon.c: Likewise.
27348 * tree-ssa-loop-ivopts.c: Likewise.
27349 * tree-ssa-loop-manip.c: Likewise.
27350 * tree-ssa-loop-niter.c: Likewise.
27351 * tree-ssa-loop-prefetch.c: Likewise.
27352 * tree-ssa-loop-unswitch.c: Likewise.
27353 * tree-ssa-loop.c: Likewise.
27354 * tree-ssa-loop.h: Likewise.
27355 * tree-ssa-math-opts.c: Likewise.
27356 * tree-ssa-operands.c: Likewise.
27357 * tree-ssa-phiopt.c: Likewise.
27358 * tree-ssa-phiprop.c: Likewise.
27359 * tree-ssa-pre.c: Likewise.
27360 * tree-ssa-propagate.c: Likewise.
27361 * tree-ssa-reassoc.c: Likewise.
27362 * tree-ssa-sccvn.c: Likewise.
27363 * tree-ssa-scopedtables.c: Likewise.
27364 * tree-ssa-sink.c: Likewise.
27365 * tree-ssa-strlen.c: Likewise.
27366 * tree-ssa-structalias.c: Likewise.
27367 * tree-ssa-tail-merge.c: Likewise.
27368 * tree-ssa-ter.c: Likewise.
27369 * tree-ssa-threadedge.c: Likewise.
27370 * tree-ssa-threadupdate.c: Likewise.
27371 * tree-ssa-uncprop.c: Likewise.
27372 * tree-ssa-uninit.c: Likewise.
27373 * tree-ssa.c: Likewise.
27374 * tree-ssanames.c: Likewise.
27375 * tree-stdarg.c: Likewise.
27376 * tree-streamer-in.c: Likewise.
27377 * tree-streamer-out.c: Likewise.
27378 * tree-streamer.c: Likewise.
27379 * tree-switch-conversion.c: Likewise.
27380 * tree-tailcall.c: Likewise.
27381 * tree-vect-data-refs.c: Likewise.
27382 * tree-vect-generic.c: Likewise.
27383 * tree-vect-loop-manip.c: Likewise.
27384 * tree-vect-loop.c: Likewise.
27385 * tree-vect-patterns.c: Likewise.
27386 * tree-vect-slp.c: Likewise.
27387 * tree-vect-stmts.c: Likewise.
27388 * tree-vectorizer.c: Likewise.
27389 * tree-vrp.c: Likewise.
27390 * tree.c: Likewise.
27391 * tsan.c: Likewise.
27392 * ubsan.c: Likewise.
27393 * valtrack.c: Likewise.
27394 * value-prof.c: Likewise.
27395 * var-tracking.c: Likewise.
27396 * varasm.c: Likewise.
27397 * varpool.c: Likewise.
27398 * vmsdbgout.c: Likewise.
27399 * vtable-verify.c: Likewise.
27401 * wide-int-print.cc: Likewise.
27402 * wide-int-print.h: Likewise.
27403 * wide-int.cc: Likewise.
27404 * xcoffout.c: Likewise.
27405 * config/aarch64/aarch64-builtins.c: Likewise.
27406 * config/aarch64/aarch64.c: Likewise.
27407 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27408 * config/alpha/alpha.c: Likewise.
27409 * config/arc/arc.c: Likewise.
27410 * config/arm/aarch-common.c: Likewise.
27411 * config/arm/arm-builtins.c: Likewise.
27412 * config/arm/arm-c.c: Likewise.
27413 * config/arm/arm.c: Likewise.
27414 * config/avr/avr-c.c: Likewise.
27415 * config/avr/avr-log.c: Likewise.
27416 * config/avr/avr.c: Likewise.
27417 * config/bfin/bfin.c: Likewise.
27418 * config/c6x/c6x.c: Likewise.
27419 * config/cr16/cr16.c: Likewise.
27420 * config/cris/cris.c: Likewise.
27421 * config/darwin-c.c: Likewise.
27422 * config/darwin.c: Likewise.
27423 * config/default-c.c: Likewise.
27424 * config/epiphany/epiphany.c: Likewise.
27425 * config/epiphany/mode-switch-use.c: Likewise.
27426 * config/epiphany/resolve-sw-modes.c: Likewise.
27427 * config/fr30/fr30.c: Likewise.
27428 * config/frv/frv.c: Likewise.
27429 * config/ft32/ft32.c: Likewise.
27430 * config/glibc-c.c: Likewise.
27431 * config/h8300/h8300.c: Likewise.
27432 * config/i386/i386-c.c: Likewise.
27433 * config/i386/i386.c: Likewise.
27434 * config/i386/msformat-c.c: Likewise.
27435 * config/i386/winnt-cxx.c: Likewise.
27436 * config/i386/winnt-stubs.c: Likewise.
27437 * config/i386/winnt.c: Likewise.
27438 * config/ia64/ia64-c.c: Likewise.
27439 * config/ia64/ia64.c: Likewise.
27440 * config/iq2000/iq2000.c: Likewise.
27441 * config/lm32/lm32.c: Likewise.
27442 * config/m32c/m32c-pragma.c: Likewise.
27443 * config/m32c/m32c.c: Likewise.
27444 * config/m32r/m32r.c: Likewise.
27445 * config/m68k/m68k.c: Likewise.
27446 * config/mcore/mcore.c: Likewise.
27447 * config/mep/mep-pragma.c: Likewise.
27448 * config/mep/mep.c: Likewise.
27449 * config/microblaze/microblaze-c.c: Likewise.
27450 * config/microblaze/microblaze.c: Likewise.
27451 * config/mips/mips.c: Likewise.
27452 * config/mmix/mmix.c: Likewise.
27453 * config/mn10300/mn10300.c: Likewise.
27454 * config/moxie/moxie.c: Likewise.
27455 * config/msp430/msp430-c.c: Likewise.
27456 * config/msp430/msp430.c: Likewise.
27457 * config/nds32/nds32-cost.c: Likewise.
27458 * config/nds32/nds32-fp-as-gp.c: Likewise.
27459 * config/nds32/nds32-intrinsic.c: Likewise.
27460 * config/nds32/nds32-isr.c: Likewise.
27461 * config/nds32/nds32-md-auxiliary.c: Likewise.
27462 * config/nds32/nds32-memory-manipulation.c: Likewise.
27463 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27464 * config/nds32/nds32-predicates.c: Likewise.
27465 * config/nds32/nds32.c: Likewise.
27466 * config/nios2/nios2.c: Likewise.
27467 * config/nvptx/nvptx.c: Likewise.
27468 * config/pa/pa.c: Likewise.
27469 * config/pdp11/pdp11.c: Likewise.
27470 * config/rl78/rl78-c.c: Likewise.
27471 * config/rl78/rl78.c: Likewise.
27472 * config/rs6000/rs6000-c.c: Likewise.
27473 * config/rs6000/rs6000.c: Likewise.
27474 * config/rx/rx.c: Likewise.
27475 * config/s390/s390-c.c: Likewise.
27476 * config/s390/s390.c: Likewise.
27477 * config/sh/sh-c.c: Likewise.
27478 * config/sh/sh-mem.cc: Likewise.
27479 * config/sh/sh.c: Likewise.
27480 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27481 * config/sh/sh_treg_combine.cc: Likewise.
27482 * config/sol2-c.c: Likewise.
27483 * config/sol2-cxx.c: Likewise.
27484 * config/sol2-stubs.c: Likewise.
27485 * config/sol2.c: Likewise.
27486 * config/sparc/sparc-c.c: Likewise.
27487 * config/sparc/sparc.c: Likewise.
27488 * config/spu/spu-c.c: Likewise.
27489 * config/spu/spu.c: Likewise.
27490 * config/stormy16/stormy16.c: Likewise.
27491 * config/tilegx/mul-tables.c: Likewise.
27492 * config/tilegx/tilegx-c.c: Likewise.
27493 * config/tilegx/tilegx.c: Likewise.
27494 * config/tilepro/mul-tables.c: Likewise.
27495 * config/tilepro/tilepro-c.c: Likewise.
27496 * config/tilepro/tilepro.c: Likewise.
27497 * config/v850/v850-c.c: Likewise.
27498 * config/v850/v850.c: Likewise.
27499 * config/vax/vax.c: Likewise.
27500 * config/visium/visium.c: Likewise.
27501 * config/vms/vms-c.c: Likewise.
27502 * config/vms/vms.c: Likewise.
27503 * config/vxworks.c: Likewise.
27504 * config/winnt-c.c: Likewise.
27505 * config/xtensa/xtensa.c: Likewise.
27506 * common/config/bfin/bfin-common.c: Likewise.
27508 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
27510 * tree.h (tree_code_for_canonical_type_merging): New function.
27511 * tree.c (gimple_canonical_types_compatible_p): Use
27512 tree_code_for_canonical_type_merging..
27514 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
27518 * doc/tm.texi: Regenerate.
27519 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
27520 * target.def (TARGET_RELAXED_ORDERING): Likewise.
27521 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
27522 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
27523 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
27524 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
27525 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
27526 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
27527 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
27529 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27531 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
27532 register fma steering pass.
27533 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
27534 AARCH64_TUNE_FMA_STEERING.
27536 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
27538 * tree.c (verify_type_variant): Verify that type and variant is
27540 (gimple_canonical_types_compatible_p): Look for main variants.
27542 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
27544 * config.gcc (powerpc*-*-*): Add support for a new configure
27545 option --with-advance-toolchain=<xxx> which overrides using the
27546 default header files, libraries and dynamic linker.
27548 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
27549 specs to support the configure --with-advance-toolchain=<xxx>
27551 (INCLUDE_EXTRA_SPEC): Likewise.
27552 (LINK_OS_EXTRA_SPEC32): Likewise.
27553 (LINK_OK_EXTRA_SPEC64): Likewise.
27554 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
27555 (DYNAMIC_LINKER_PREFIX): Likewise.
27556 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
27558 (GLIBC_DYNAMIC_LINKER32): Likewise.
27559 (GLIBC_DYNAMIC_LINKER64): Likewise.
27560 (LINK_OS_LINUX_SPEC32): Likewise.
27561 (LINK_OS_LINUX_SPEC64): Likewise.
27563 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
27564 configuration option.
27566 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
27569 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
27570 to determine current function ABI.
27571 (ix86_function_value_regno_p): Ditto.
27573 2015-06-03 Martin Liska <mliska@suse.cz>
27575 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
27576 * bitmap.h (struct bitmap_usage): Likewise.
27577 * ggc-common.c (struct ggc_usage): Likewise.
27578 * mem-stats.h (struct mem_location): Likewise.
27579 (struct mem_usage): Likewise.
27580 * vec.c (struct vec_usage): Likewise.
27582 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
27584 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
27587 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
27589 * doc/plugins.texi (enum plugin_event): New event.
27590 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
27591 and PLUGIN_FINISH_FUNCTION.
27592 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
27593 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
27595 2015-06-03 Richard Biener <rguenther@suse.de>
27597 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
27598 compute GROUP_GAP for the first element.
27599 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
27602 2015-06-03 Nick Clifton <nickc@redhat.com>
27604 * config/rl78/rl78-real.md: Add peepholes to avoid a register
27605 copy when calling a function.
27606 * config/rl78/rl78.c (need_to_save): Do not push the frame
27607 pointer in an interrupt handler prologue if it is never used.
27609 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27611 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
27613 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27615 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
27616 reference when cloning alias node.
27618 2015-06-03 Martin Liska <mliska@suse.cz>
27620 * alloc-pool.h (struct pool_usage): Correct space padding.
27621 * ggc-page.c (ggc_print_statistics): Align columns in a report.
27622 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
27623 * tree.c (dump_tree_statistics): Align columns in a report.
27625 2015-06-03 Martin Liska <mliska@suse.cz>
27627 * alloc-pool.c (allocate_pool_descriptor): Remove.
27628 (struct pool_output_info): Likewise.
27629 (print_alloc_pool_statistics): Likewise.
27630 (dump_alloc_pool_statistics): Likewise.
27631 * alloc-pool.h (struct pool_usage): New struct.
27632 (pool_allocator::initialize): Change usage of memory statistics
27633 to a new interface.
27634 (pool_allocator::release): Likewise.
27635 (pool_allocator::allocate): Likewise.
27636 (pool_allocator::remove): Likewise.
27637 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
27638 for a pool allocator.
27639 * mem-stats.h (struct mem_location): Add new ctor.
27640 (struct mem_usage): Add counter for number of
27642 (mem_alloc_description::register_descriptor): New overload of
27643 * mem-stats.h (mem_location::to_string): New function.
27644 * bitmap.h (struct bitmap_usage): Use this new function.
27645 * ggc-common.c (struct ggc_usage): Likewise.
27648 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27650 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
27651 of GCC_INSN_FLAGS_H block.
27653 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
27655 * explow.c (plus_constant): Update check after force_const_mem call
27656 to see if the value returned is not a NULL_RTX.
27658 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
27660 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
27661 remove instumentation thunks calling reachable functions.
27662 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
27663 * lto/lto-partition.c (privatize_symbol_name_1): New.
27664 (privatize_symbol_name): Privatize both decl and orig_decl
27665 names for instrumented functions.
27666 * cgraph.c (cgraph_node::verify_node): Add transparent
27667 alias chain check for instrumented node.
27669 2015-06-03 Marek Polacek <polacek@redhat.com>
27673 * tree.c (attribute_value_equal): Handle attribute format.
27674 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
27676 2015-06-03 Richard Biener <rguenther@suse.de>
27678 PR tree-optimization/63916
27679 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
27680 Forward-propagate non-invariant addresses by splicing their
27681 reference ops if the result isn't going to be used by PRE.
27682 (vn_reference_lookup_3): Remove pointless assert.
27684 2015-06-03 Richard Biener <rguenther@suse.de>
27686 PR tree-optimization/66375
27687 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
27688 add to the evolution before following SSA edges.
27690 2015-06-03 Bin Cheng <bin.cheng@arm.com>
27692 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
27693 (dump_use, dump_cand, find_induction_variables): Pass new argument
27695 (record_use): Preserve the ssa name information in IV.
27697 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
27699 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
27701 (add_mode_tests): Don't add mode tests if the predicate only
27702 accepts scalar constant integers. Otherwise, allow the mode
27703 of "op" to be VOIDmode if the predicate does accept such integers.
27705 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
27708 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
27709 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
27710 (aarch64_secondary_reload): Likewise
27711 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
27713 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
27716 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
27717 Zhenqiang Chen <zhenqiang.chen@linaro.org>
27720 * cprop.c (try_replace_reg): Check cost of constants before propagating.
27722 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
27724 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
27725 provide access to the IBM extended double floating point mode if
27726 long double is IEEE 128-bit floating point.
27727 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
27728 point if long double is the IBM extended double type.
27730 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
27731 enable adding IEEE 128-bit floating point support.
27732 (-mfloat128-software): Likewise.
27733 (-mfloat128-sw): Likewise.
27735 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
27736 128-bit floating point types to occupy any register if
27737 -mlong-double-64. Do not allow use of IFmode/KFmode unless
27738 -mfloat128-software is enabled.
27739 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
27741 (rs6000_option_override_internal): Add -mfloat128-* support.
27742 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
27744 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
27745 and float128 type nodes.
27746 (ieee128_float_type_node): Likewise.
27747 (ibm128_float_type_node): Likewise.
27749 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
27752 * config/aarch64/geniterators.sh: Rewrite in awk.
27754 2015-06-02 Martin Liska <mliska@suse.cz>
27756 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
27757 values to avoid -Wmaybe-uninitialized errors.
27759 2015-06-02 Richard Biener <rguenther@suse.de>
27762 * dwarf2out.c (lookup_context_die): New function.
27763 (resolve_addr): Avoid forcing a full DIE for the
27764 target of a DW_TAG_GNU_call_site during late compilation.
27765 Instead create a stub DIE without a type if we have a
27766 context DIE present.
27768 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
27770 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
27772 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27774 PR tree-optimization/48052
27775 * cfgloop.h (struct control_iv): New.
27776 (struct loop): New field control_ivs.
27777 * tree-ssa-loop-niter.c : Include "stor-layout.h".
27778 (number_of_iterations_lt): Set no_overflow information.
27779 (number_of_iterations_exit): Init control iv in niter struct.
27780 (record_control_iv): New.
27781 (estimate_numbers_of_iterations_loop): Call record_control_iv.
27782 (loop_exits_before_overflow): New. Interface factored out of
27783 scev_probably_wraps_p.
27784 (scev_probably_wraps_p): Factor loop niter related code into
27785 loop_exits_before_overflow.
27786 (free_numbers_of_iterations_estimates_loop): Free control ivs.
27787 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
27789 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
27791 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
27792 the target doesn't belong to the current function.
27794 2015-06-02 Marek Polacek <polacek@redhat.com>
27796 PR middle-end/66345
27797 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
27798 get_maxval_strlen does not produce an INTEGER_CST.
27800 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
27802 * config/arc/constraints.md: Use lower-case names in match_code.
27803 * config/mmix/constraints.md: Likewise.
27805 2015-06-02 Richard Biener <rguenther@suse.de>
27807 PR tree-optimization/65961
27808 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
27809 check and clarify dump message.
27810 (vect_build_slp_tree): If all children are built up from scalars
27811 build up the parent from scalars instead.
27812 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
27814 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
27817 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
27818 instead of print ... .
27820 2015-06-02 Alan Modra <amodra@gmail.com>
27822 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
27825 2015-06-02 Bin Cheng <bin.cheng@arm.com>
27827 PR tree-optimization/52563
27828 PR tree-optimization/62173
27829 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
27830 (alloc_iv, set_iv): New parameter.
27831 (determine_biv_step): Delete.
27832 (find_bivs): Inline original determine_biv_step. Pass new
27833 argument to set_iv.
27834 (idx_find_step): Use no_overflow information for conversion.
27835 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
27836 resolve_mixers handle folded_casts.
27837 (instantiate_scev_name): Change bool parameter to bool pointer.
27838 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
27839 (instantiate_array_ref, instantiate_scev_not): Ditto.
27840 (instantiate_scev_3, instantiate_scev_2): Ditto.
27841 (instantiate_scev_1, instantiate_scev_r): Ditto.
27842 (instantiate_scev_convert, ): Change parameter. Pass argument
27843 to chrec_convert_aggressive.
27844 (instantiate_scev): Change argument.
27845 (resolve_mixers): New parameter and set it.
27846 (scev_const_prop): New argument.
27847 * tree-scalar-evolution.h (resolve_mixers): New parameter.
27848 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
27850 (chrec_convert): New parameter. Move definition below.
27851 (chrec_convert_aggressive): New parameter and set it. Call
27852 convert_affine_scev.
27853 * tree-chrec.h (chrec_convert): New parameter.
27854 (chrec_convert_aggressive): Ditto.
27856 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
27858 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
27859 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
27860 the LHS of a no-return call if its type has variable size.
27861 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
27862 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
27864 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
27866 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
27867 * config.in: Regenerate.
27869 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
27871 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
27872 consecutive accesses within outer-loop with force_vectorize
27873 for references with zero step in inner-loop.
27875 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27877 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
27878 rather than from gcc/build directory.
27880 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27883 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
27884 for __sync memory models, emit initial loads and final barriers as
27887 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
27890 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
27891 (aarch64_split_atomic_op): Check for __sync memory models, emit
27892 appropriate initial loads and final barriers.
27894 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
27896 * Makefile.in: Fix gcov dependencies that should
27897 not point to a build folder.
27899 2015-06-01 Richard Biener <rguenther@suse.de>
27902 2015-05-29 Richard Biener <rguenther@suse.de>
27904 PR tree-optimization/66314
27905 * tree-ssa-threadupdate.c (create_block_for_threading): Add
27906 parameter that says which loop the new block belongs to.
27907 (ssa_create_duplicates): Blocks duplicated for the threaded
27908 path belong to the loop of the thread destination.
27910 2015-06-01 Martin Liska <mliska@suse.cz>
27912 * sched-deps.c: Include pool-alloc.h before
27913 cselib.h header file is included.
27915 2015-06-01 Richard Biener <rguenther@suse.de>
27917 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
27920 2015-06-01 Martin Liska <mliska@suse.cz>
27922 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
27923 a function local variable.
27925 2015-06-01 Martin Liska <mliska@suse.cz>
27927 * alloc-pool.c (create_alloc_pool): Remove.
27928 (empty_alloc_pool): Likewise.
27929 (free_alloc_pool): Likewise.
27930 (free_alloc_pool_if_empty): Likewise.
27931 (pool_alloc): Likewise.
27932 (pool_free): Likewise.
27933 * alloc-pool.h: Remove old declarations.
27935 2015-06-01 Martin Liska <mliska@suse.cz>
27937 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
27938 (ira_create_object): Likewise.
27939 (ira_create_allocno): Likewise.
27940 (ira_create_live_range): Likewise.
27941 (copy_live_range): Likewise.
27942 (ira_finish_live_range): Likewise.
27943 (ira_free_allocno_costs): Likewise.
27944 (finish_allocno): Likewise.
27945 (finish_allocnos): Likewise.
27946 (initiate_prefs): Likewise.
27947 (ira_create_pref): Likewise.
27948 (finish_pref): Likewise.
27949 (finish_prefs): Likewise.
27950 (initiate_copies): Likewise.
27951 (ira_create_copy): Likewise.
27952 (finish_copy): Likewise.
27953 (finish_copies): Likewise.
27954 (finish_prefs): Likewise.
27956 2015-06-01 Martin Liska <mliska@suse.cz>
27958 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
27959 (allocate_and_init_ipcp_value): Likewise.
27960 (ipcp_lattice::add_value): Likewise.
27961 (merge_agg_lats_step): Likewise.
27962 (ipcp_driver): Likewise.
27963 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
27964 (ipa_free_all_structures_after_iinln): Likewise.
27965 * ipa-prop.h: Likewise.
27967 2015-06-01 Martin Liska <mliska@suse.cz>
27969 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
27971 (set_hint_predicate): Likewise.
27972 (inline_summary_alloc): Likewise.
27973 (reset_inline_edge_summary): Likewise.
27974 (reset_inline_summary): Likewise.
27975 (set_cond_stmt_execution_predicate): Likewise.
27976 (set_switch_stmt_execution_predicate): Likewise.
27977 (compute_bb_predicates): Likewise.
27978 (estimate_function_body_sizes): Likewise.
27979 (inline_free_summary): Likewise.
27981 2015-06-01 Martin Liska <mliska@suse.cz>
27983 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
27984 (ipa_edge_duplication_hook): Likewise.
27985 (ipa_free_all_structures_after_ipa_cp): Likewise.
27986 (ipa_free_all_structures_after_iinln): Likewise.
27988 2015-06-01 Martin Liska <mliska@suse.cz>
27990 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
27991 (ipa_profile_generate_summary): Likewise.
27992 (ipa_profile_read_summary): Likewise.
27993 (ipa_profile): Likewise.
27995 2015-06-01 Martin Liska <mliska@suse.cz>
27997 * tree-ssa-structalias.c (new_var_info): Use new type-based
27999 (new_constraint): Likewise.
28000 (init_alias_vars): Likewise.
28001 (delete_points_to_sets): Likewise.
28003 2015-06-01 Martin Liska <mliska@suse.cz>
28005 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
28006 (free_strinfo): Likewise.
28007 (pass_strlen::execute): Likewise.
28009 2015-06-01 Martin Liska <mliska@suse.cz>
28011 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
28013 (vn_reference_insert_pieces): Likewise.
28014 (vn_phi_insert): Likewise.
28015 (visit_reference_op_call): Likewise.
28016 (copy_phi): Likewise.
28017 (copy_reference): Likewise.
28018 (process_scc): Likewise.
28019 (allocate_vn_table): Likewise.
28020 (free_vn_table): Likewise.
28022 2015-06-01 Martin Liska <mliska@suse.cz>
28024 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
28026 (add_repeat_to_ops_vec): Likewise.
28027 (get_ops): Likewise.
28028 (maybe_optimize_range_tests): Likewise.
28029 (init_reassoc): Likewise.
28030 (fini_reassoc): Likewise.
28032 2015-06-01 Martin Liska <mliska@suse.cz>
28034 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
28036 (bitmap_set_new): Likewise.
28037 (get_or_alloc_expr_for_constant): Likewise.
28038 (get_or_alloc_expr_for): Likewise.
28039 (phi_translate_1): Likewise.
28040 (compute_avail): Likewise.
28041 (init_pre): Likewise.
28042 (fini_pre): Likewise.
28044 2015-06-01 Martin Liska <mliska@suse.cz>
28046 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
28047 (delete_dep_node): Likewise.
28048 (create_deps_list): Likewise.
28049 (free_deps_list): Likewise.
28050 (sched_deps_init): Likewise.
28051 (sched_deps_finish): Likewise.
28053 2015-06-01 Martin Liska <mliska@suse.cz>
28055 * regcprop.c (free_debug_insn_changes): Use new type-based
28057 (replace_oldest_value_reg): Likewise.
28058 (pass_cprop_hardreg::execute): Likewise.
28060 2015-06-01 Martin Liska <mliska@suse.cz>
28062 * ira-build.c (initiate_cost_vectors): Use new type-based
28064 (ira_allocate_cost_vector): Likewise.
28065 (ira_free_cost_vector): Likewise.
28066 (finish_cost_vectors): Likewise.
28068 2015-06-01 Martin Liska <mliska@suse.cz>
28070 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
28072 (free_sched_pools): Likewise.
28073 * sel-sched-ir.h (_list_alloc): Likewise.
28074 (_list_remove): Likewise.
28076 2015-06-01 Martin Liska <mliska@suse.cz>
28078 * stmt.c (add_case_node): Use new type-based pool allocator.
28079 (expand_case): Likewise.
28080 (expand_sjlj_dispatch_table): Likewise.
28082 2015-06-01 Martin Liska <mliska@suse.cz>
28084 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
28085 (free_bb): Likewise.
28086 (pass_cse_reciprocals::execute): Likewise.
28088 2015-06-01 Martin Liska <mliska@suse.cz>
28090 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
28091 (sra_deinitialize) Likewise.
28092 (create_access_1) Likewise.
28093 (build_accesses_from_assign) Likewise.
28094 (create_artificial_child_access) Likewise.
28096 2015-06-01 Martin Liska <mliska@suse.cz>
28098 * dse.c (get_group_info):Use new type-based pool allocator.
28099 (dse_step0) Likewise.
28100 (free_store_info) Likewise.
28101 (delete_dead_store_insn) Likewise.
28102 (free_read_records) Likewise.
28103 (record_store) Likewise.
28104 (replace_read) Likewise.
28105 (check_mem_read_rtx) Likewise.
28106 (scan_insn) Likewise.
28107 (dse_step1) Likewise.
28108 (dse_step7) Likewise.
28110 2015-06-01 Martin Liska <mliska@suse.cz>
28112 * df-scan.c (struct df_scan_problem_data):Use new type-based
28114 (df_scan_free_internal) Likewise.
28115 (df_scan_alloc) Likewise.
28116 (df_grow_reg_info) Likewise.
28117 (df_free_ref) Likewise.
28118 (df_insn_create_insn_record) Likewise.
28119 (df_mw_hardreg_chain_delete) Likewise.
28120 (df_insn_info_delete) Likewise.
28121 (df_free_collection_rec) Likewise.
28122 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
28123 (df_sort_and_compress_mws) Likewise.
28124 (df_ref_create_structure) Likewise.
28125 (df_ref_record) Likewise.
28127 2015-06-01 Martin Liska <mliska@suse.cz>
28129 * df-problems.c (df_chain_create):Use new type-based pool allocator.
28130 (df_chain_unlink_1) Likewise.
28131 (df_chain_unlink) Likewise.
28132 (df_chain_remove_problem) Likewise.
28133 (df_chain_alloc) Likewise.
28134 (df_chain_free) Likewise.
28135 * df.h (struct dataflow) Likewise.
28137 2015-06-01 Martin Liska <mliska@suse.cz>
28139 * cselib.c (new_elt_list):Use new type-based pool allocator.
28140 (new_elt_loc_list) Likewise.
28141 (unchain_one_elt_list) Likewise.
28142 (unchain_one_elt_loc_list) Likewise.
28143 (unchain_one_value) Likewise.
28144 (new_cselib_val) Likewise.
28145 (cselib_init) Likewise.
28146 (cselib_finish) Likewise.
28148 2015-06-01 Martin Liska <mliska@suse.cz>
28150 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
28151 (sh_reorg) Likewise.
28153 2015-06-01 Martin Liska <mliska@suse.cz>
28155 * cfg.c (initialize_original_copy_tables):Use new type-based
28157 (free_original_copy_tables) Likewise.
28158 (copy_original_table_clear) Likewise.
28159 (copy_original_table_set) Likewise.
28161 2015-06-01 Martin Liska <mliska@suse.cz>
28163 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
28165 (asan_mem_ref_new) Likewise.
28166 (free_mem_ref_resources) Likewise.
28168 2015-06-01 Martin Liska <mliska@suse.cz>
28170 * var-tracking.c (variable_htab_free):Use new type-based
28172 (attrs_list_clear) Likewise.
28173 (attrs_list_insert) Likewise.
28174 (attrs_list_copy) Likewise.
28175 (shared_hash_unshare) Likewise.
28176 (shared_hash_destroy) Likewise.
28177 (unshare_variable) Likewise.
28178 (var_reg_delete_and_set) Likewise.
28179 (var_reg_delete) Likewise.
28180 (var_regno_delete) Likewise.
28181 (drop_overlapping_mem_locs) Likewise.
28182 (variable_union) Likewise.
28183 (insert_into_intersection) Likewise.
28184 (canonicalize_values_star) Likewise.
28185 (variable_merge_over_cur) Likewise.
28186 (dataflow_set_merge) Likewise.
28187 (remove_duplicate_values) Likewise.
28188 (variable_post_merge_new_vals) Likewise.
28189 (dataflow_set_preserve_mem_locs) Likewise.
28190 (dataflow_set_remove_mem_locs) Likewise.
28191 (variable_from_dropped) Likewise.
28192 (variable_was_changed) Likewise.
28193 (set_slot_part) Likewise.
28194 (clobber_slot_part) Likewise.
28195 (delete_slot_part) Likewise.
28196 (loc_exp_insert_dep) Likewise.
28197 (notify_dependents_of_changed_value) Likewise.
28198 (emit_notes_for_differences_1) Likewise.
28199 (vt_emit_notes) Likewise.
28200 (vt_initialize) Likewise.
28201 (vt_finalize) Likewise.
28203 2015-06-01 Martin Liska <mliska@suse.cz>
28205 * ira-color.c (init_update_cost_records):Use new type-based
28207 (get_update_cost_record) Likewise.
28208 (free_update_cost_record_list) Likewise.
28209 (finish_update_cost_records) Likewise.
28210 (initiate_cost_update) Likewise.
28212 2015-06-01 Martin Liska <mliska@suse.cz>
28214 * lra.c (init_insn_regs): Use new type-based pool allocator.
28215 (new_insn_reg) Likewise.
28216 (free_insn_reg) Likewise.
28217 (free_insn_regs) Likewise.
28218 (finish_insn_regs) Likewise.
28219 (init_insn_recog_data) Likewise.
28220 (init_reg_info) Likewise.
28221 (finish_reg_info) Likewise.
28222 (lra_free_copies) Likewise.
28223 (lra_create_copy) Likewise.
28224 (invalidate_insn_data_regno_info) Likewise.
28226 2015-06-01 Martin Liska <mliska@suse.cz>
28228 * lra-lives.c (free_live_range): Use new type-based pool allocator.
28229 (free_live_range_list) Likewise.
28230 (create_live_range) Likewise.
28231 (copy_live_range) Likewise.
28232 (lra_merge_live_ranges) Likewise.
28233 (remove_some_program_points_and_update_live_ranges) Likewise.
28234 (lra_live_ranges_init) Likewise.
28235 (lra_live_ranges_finish) Likewise.
28237 2015-06-01 Martin Liska <mliska@suse.cz>
28239 * et-forest.c (et_new_occ): Use new type-based pool allocator.
28240 (et_new_tree): Likewise.
28241 (et_free_tree): Likewise.
28242 (et_free_tree_force): Likewise.
28243 (et_free_pools): Likewise.
28244 (et_split): Likewise.
28246 2015-06-01 Martin Liska <mliska@suse.cz>
28248 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
28250 * alloc-pool.h (pool_allocator::pool_allocator): New function.
28251 (pool_allocator::release): Likewise.
28252 (inline pool_allocator::release_if_empty): Likewise.
28253 (inline pool_allocator::~pool_allocator): Likewise.
28254 (pool_allocator::allocate): Likewise.
28255 (pool_allocator::remove): Likewise.
28257 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28259 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
28262 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28264 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
28266 * config/arm/arm.c (arm_print_tune_info): Likewise.
28267 (arm_macro_fusion_p): Likewise.
28268 (arm_macro_fusion_pair_p): Likewise.
28270 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
28272 * config/aarch64/aarch64-protos.h (tune_params): Rename
28273 fuseable_ops to fusible_ops.
28274 * config/aarch64/aarch64.c (generic_tunings): Rename
28275 fuseable_ops to fusible_ops.
28276 (cortexa53_tunings): Likewise.
28277 (cortexa57_tunings): Likewise.
28278 (thunderx_tunings): Likewise.
28279 (xgene1_tunings): Likewise.
28280 (aarch64_macro_fusion_p): Likewise.
28281 (aarch64_macro_fusion_pair_p): Likewise.
28283 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
28285 * config/s390/driver-native.c: New file.
28286 * config/s390/x-native: New file.
28287 * config.host: Add new files for s390.
28288 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
28290 * config.gcc: Likewise.
28291 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
28292 * config/s390/s390-opts.h (enum processor_type): Ditto.
28293 * config/s390/s390.c (s390_option_override): Catch unhandled
28296 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
28299 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
28300 redirection for instrumented calls.
28301 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
28302 (append_compiler_options): Append -fcheck-pointer-bounds.
28303 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
28304 (chkp_redirect_edge): New.
28305 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
28306 (chkp_redirect_edge): New.
28308 2015-06-01 Richard Biener <rguenther@suse.de>
28310 PR tree-optimization/66280
28311 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
28314 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28316 * config/aarch64/aarch64.md
28317 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
28320 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
28322 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
28323 Remove obsolete kludge.
28325 2015-06-01 Richard Biener <rguenther@suse.de>
28327 * tree-ssa-reassoc.c (get_rank): Simplify.
28329 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
28331 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
28332 * configure: Regenerated.
28334 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
28336 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
28337 issue (add space between string literal and macro).
28338 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
28340 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
28342 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
28343 implict or explicit -fPIE or -fpie.
28345 2015-05-30 Mike Frysinger <vapier@gentoo.org>
28347 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
28349 2015-05-28 DJ Delorie <dj@redhat.com>
28351 * expmed.c (extract_bit_field_1): Avoid clobbering a
28352 yet-to-be-used base/index register.
28354 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
28356 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
28357 (alias_stats): Add num_universal.
28358 (alias_set_subset_of): Special case pointers; be ready for NULL
28360 (alias_sets_conflict_p): Special case pointers; be ready for NULL
28362 (init_alias_set_entry): Break out from ...
28363 (record_alias_subset): ... here; propagate new fields;
28364 allocate children only when really needed.
28365 (get_alias_set): Do less generous pointer globbing.
28366 (dump_alias_stats_in_alias_c): Update statistics.
28368 2015-05-30 Alan Modra <amodra@gmail.com>
28370 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
28371 correct block for use of r12.
28372 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
28374 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
28377 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
28380 2015-05-29 Jakub Jelinek <jakub@redhat.com>
28382 PR tree-optimization/66142
28383 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
28384 virtual phis that feed themselves.
28386 2015-05-29 Richard Biener <rguenther@suse.de>
28388 PR tree-optimization/66314
28389 * tree-ssa-threadupdate.c (create_block_for_threading): Add
28390 parameter that says which loop the new block belongs to.
28391 (ssa_create_duplicates): Blocks duplicated for the threaded
28392 path belong to the loop of the thread destination.
28394 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
28396 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
28397 to cleanup-saved-temps.
28398 * doc/sourcebuild.texi (Clean up generated test files): Expand
28400 (dg-keep-saved-temps): Document new proc.
28401 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
28402 cleanup-saved-temps): Remove.
28404 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
28406 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
28407 gcc_AC_CHECK_DECLS.
28408 * configure: Regenerate.
28410 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28412 * config/nios2/linux.h (CPP_SPEC): Define.
28414 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28416 * config/microblaze/linux.h (CPP_SPEC): Define.
28418 2015-05-28 Mike Frysinger <vapier@gentoo.org>
28420 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
28421 -pthread is specified.
28423 2015-05-28 Richard Biener <rguenther@suse.de>
28425 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
28426 (vect_fixup_scalar_cycles_with_patterns): Likewise.
28427 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
28428 after pattern recog.
28429 (vect_create_epilog_for_reduction): Properly handle reductions
28431 (vectorizable_reduction): Likewise.
28432 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
28434 (vect_get_constant_vectors): Create the correct number of
28435 initial values for reductions.
28436 (vect_schedule_slp_instance): Handle reduction chains that are
28437 type changing properly.
28438 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
28440 2015-05-28 Richard Biener <rguenther@suse.de>
28442 PR tree-optimization/66142
28443 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
28444 values better in memcpy destination handling. Handle non-aliasing
28447 2015-05-28 Lawrence Velázquez <vq@larryv.me>
28450 * config/darwin-c.c (version_components): New global enum.
28451 (parse_version, version_as_legacy_macro)
28452 (version_as_modern_macro, macosx_version_as_macro): New functions.
28453 (version_as_macro): Remove.
28454 (darwin_cpp_builtins): Use new function.
28456 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
28458 * builtins.c (expand_builtin_acc_on_device): Mark parameters
28459 with ATTRIBUTE_UNUSED.
28461 2015-05-28 Julian Brown <julian@codesourcery.com>
28465 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
28466 sequence for !ACCEL_COMPILER.
28468 2015-05-28 Nick Clifton <nickc@redhat.com>
28470 * config/rx/rx.c (push_regs): New function. Extracts code from...
28471 (rx_expand_prologue): ... here. Use push_regs to push even small
28472 spans of registers.
28473 (pop_regs): New function.
28474 (rx_expand_epilogue): Use pop_regs to pop even small spans of
28477 2015-05-28 Richard Biener <rguenther@suse.de>
28479 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
28481 (SLP_INSTANCE_BODY_COST_VEC): Remove.
28482 (vect_update_slp_costs_according_to_vf): Likewise.
28483 (vect_slp_analyze_operations): Update prototype.
28484 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
28485 vect_update_slp_costs_according_to_vf, adjust.
28486 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
28487 (vect_analyze_slp_cost_1): Likewise.
28488 (vect_analyze_slp_cost): Likewise. Properly deal with
28489 widening reduction ops. Commit body costs.
28490 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
28491 cost for loops from here.
28492 (vect_slp_analyze_operations): But do it from here when
28493 the vectorization factor is known and stmts are analyzed.
28494 (vect_bb_vectorization_profitable_p): Simplify.
28495 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
28496 (vect_update_slp_costs_according_to_vf): Remove.
28498 2015-05-27 Magnus Granberg <zorry@gentoo.org>
28499 H.J. Lu <hongjiu.lu@intel.com>
28501 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
28502 (BUILD_CFLAGS): Likewise.
28503 (BUILD_CXXFLAGS): Likewise.
28504 (LINKER): Add @NO_PIE_FLAG@.
28505 (BUILD_LDFLAGS): Likewise.
28506 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
28507 --enable-default-pie.
28508 * common.opt (fPIE): Initialize to -1.
28510 (no-pie): New option.
28511 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
28512 * configure.ac: Add --enable-default-pie.
28513 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
28514 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
28515 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
28516 * gcc.c (NO_PIE_SPEC): New.
28517 (PIE_SPEC): Likewise.
28518 (NO_FPIE1_SPEC): Likewise.
28519 (FPIE1_SPEC): Likewise.
28520 (NO_FPIE2_SPEC): Likewise.
28521 (FPIE2_SPEC): Likewise.
28522 (NO_FPIE2_SPEC): Likewise.
28523 (FPIE_SPEC): Likewise.
28524 (NO_FPIE_SPEC): Likewise.
28525 (NO_FPIC1_SPEC): Likewise.
28526 (FPIC1_SPEC): Likewise.
28527 (NO_FPIC2_SPEC): Likewise.
28528 (FPIC2_SPEC): Likewise.
28529 (NO_FPIC2_SPEC): Likewise.
28530 (FPIC_SPEC): Likewise.
28531 (NO_FPIC_SPEC): Likewise.
28532 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
28533 (FPIE1_OR_FPIC1_SPEC): Likewise.
28534 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
28535 (FPIE2_OR_FPIC2_SPEC): Likewise.
28536 (NO_FPIE_AND_FPIC_SPEC): Likewise.
28537 (FPIE_OR_FPIC_SPEC): Likewise.
28538 (LD_PIE_SPEC): Likewise.
28539 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
28540 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
28541 * config/darwin.h (PIE_SPEC): Renamed to ...
28542 (DARWIN_PIE_SPEC): This.
28543 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
28544 * config/darwin9.h (PIE_SPEC): Renamed to ...
28545 (DARWIN_PIE_SPEC): This.
28546 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
28547 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
28548 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
28549 FPIE2_OR_FPIC2_SPEC.
28550 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
28551 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
28552 * config/sol2.h (ASM_PIC_SPEC): Likewise.
28553 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28554 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28555 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
28556 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
28557 * config/m32r/m32r.h (ASM_SPEC): Likewise.
28558 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
28559 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
28560 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
28561 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
28562 * config/sparc/linux.h (ASM_SPEC): Likewise.
28563 * config/sparc/linux64.h (ASM_SPEC): Likewise.
28564 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
28565 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
28566 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
28567 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
28568 * config/sparc/sparc.h (ASM_SPEC): Likewise.
28569 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
28570 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
28571 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
28572 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
28573 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
28574 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
28575 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
28576 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
28577 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
28578 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
28579 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
28580 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
28581 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
28582 * config/vax/linux.h (ASM_SPEC): Likewise.
28583 * doc/install.texi: Document --enable-default-pie.
28584 * doc/invoke.texi: Document -no-pie.
28585 * config.in: Regenerated.
28586 * configure: Likewise.
28588 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
28590 PR rtl-optimization/66168
28591 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
28592 can_move_invariant_reg.
28594 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
28597 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
28598 REG_EQUAL note when doing insert.
28600 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
28601 instead of "%d" for 'o' operand.
28603 2015-05-27 Nathan Sidwell <nathan@acm.org>
28606 * tree.c (build_pointer_type_for_mode): Canonical type does not
28607 inherit can_alias_all.
28608 (build_reference_type_for_mode): Likewise.
28610 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
28612 * expr.h (array_at_struct_end_p): Move to...
28613 (array_ref_element_size): Likewise.
28614 (component_ref_field_offset): Likewise.
28615 * tree.h (array_ref_element_size): ...here.
28616 (array_at_struct_end_p): Likewise.
28617 (component_ref_field_offset): Likewise.
28618 * expr.c (array_ref_element_size): Move to...
28619 (array_ref_low_bound): Likewise.
28620 (array_at_struct_end_p): Likewise.
28621 (array_ref_up_bound): Likewise.
28622 (component_ref_field_offset): Likewise.
28623 * tree.c (array_ref_element_size): ...here.
28624 (array_ref_low_bound): Likewise.
28625 (array_ref_up_bound): Likewise.
28626 (array_at_struct_end_p): Likewise.
28627 (component_ref_field_offset): Likewise.
28629 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28630 Szabolcs Nagy <szabolcs.nagy@arm.com>
28632 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
28634 2015-05-27 Jason Merrill <jason@redhat.com>
28637 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
28638 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
28639 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
28641 2015-05-22 Aditya Kumar <hiraditya@msn.com>
28643 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
28646 * statistics.c (statistics_fini_pass): Print pass name.
28648 2015-05-27 Richard Biener <rguenther@suse.de>
28650 PR tree-optimization/66272
28652 2014-08-15 Richard Biener <rguenther@suse.de>
28654 PR tree-optimization/62031
28655 * tree-data-ref.c (dr_analyze_indices): Do not set
28656 DR_UNCONSTRAINED_BASE.
28657 (dr_may_alias_p): All indirect accesses have to go the
28658 formerly DR_UNCONSTRAINED_BASE path.
28659 * tree-data-ref.h (struct indices): Remove
28660 unconstrained_base member.
28661 (DR_UNCONSTRAINED_BASE): Remove.
28663 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
28665 * dwarf2out.c: Remove block_map.
28666 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
28667 (gen_lexical_block_die): Same.
28668 (dwarf2out_function_decl): Remove block_map use.
28669 (dwarf2out_c_finalize): Same.
28670 * tree-core.h (struct tree_block): Add die field.
28671 * tree.h (BLOCK_DIE): New.
28673 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28676 * expr.c (memory_load_overlap): New function.
28677 (emit_push_insn): When pushing partial args to the stack would
28678 clobber the register part load the overlapping part into a pseudo
28679 and put it into the hard reg after pushing. Change return type
28680 to bool. Add bool argument.
28681 * expr.h (emit_push_insn): Change return type to bool.
28683 * calls.c (expand_call): Cancel sibcall optimization when encountering
28684 partial argument on targets with ARGS_GROW_DOWNWARD and
28685 !STACK_GROWS_DOWNWARD.
28686 (emit_library_call_value_1): Update callsite of emit_push_insn.
28687 (store_one_arg): Likewise.
28689 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
28691 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
28693 2015-05-27 Martin Liska <mliska@suse.cz>
28695 * Makefile.in: Add additional dependencies related to memory report
28697 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
28698 * bitmap.c (struct bitmap_descriptor_d): Remove.
28699 (struct loc): Likewise.
28700 (struct bitmap_desc_hasher): Likewise.
28701 (bitmap_desc_hasher::hash): Likewise.
28702 (bitmap_desc_hasher::equal): Likewise.
28703 (get_bitmap_descriptor): Likewise.
28704 (bitmap_register): User new memory descriptor API.
28705 (register_overhead): Likewise.
28706 (bitmap_find_bit): Register nsearches and search_iter statistics.
28707 (struct bitmap_output_info): Remove.
28708 (print_statistics): Likewise.
28709 (dump_bitmap_statistics): Use new memory descriptor.
28710 * bitmap.h (struct bitmap_usage): New class.
28711 * genmatch.c: Extend header file inclusion.
28712 * genpreds.c: Likewise.
28713 * ggc-common.c (struct ggc_usage): New class.
28714 (struct ggc_loc_desc_hasher): Remove.
28715 (ggc_loc_desc_hasher::hash): Likewise.
28716 (ggc_loc_desc_hasher::equal): Likewise.
28717 (struct ggc_ptr_hash_entry): Likewise.
28718 (struct ptr_hash_hasher): Likewise.
28719 (ptr_hash_hasher::hash): Likewise.
28720 (ptr_hash_hasher::equal): Likewise.
28721 (make_loc_descriptor): Likewise.
28722 (ggc_prune_ptr): Likewise.
28723 (dump_ggc_loc_statistics): Use new memory descriptor.
28724 (ggc_record_overhead): Likewise.
28725 (ggc_free_overhead): Likewise.
28726 (final_cmp_statistic): Remove.
28727 (cmp_statistic): Likewise.
28728 (ggc_add_statistics): Liekwise.
28729 (ggc_prune_overhead_list): Likewise.
28730 * hash-map-traits.h: New file.
28731 * hash-map.h (struct default_hashmap_traits): Move the traits to a
28732 separate header file.
28733 * hash-set.h: Pass memory statistics info to ctor.
28734 * hash-table.c (void dump_hash_table_loc_statistics): New function.
28735 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
28736 (hash_table::~hash_table): Register memory release operation.
28737 (hash_table::alloc_entries): Handle memory allocation operation.
28738 (hash_table::expand): Likewise.
28739 * inchash.c (iterative_hash_hashval_t): Move implementation to header
28741 (iterative_hash_host_wide_int): Likewise.
28742 * inchash.h (class hash): Likewise.
28743 * mem-stats-traits.h: New file.
28744 * mem-stats.h: New file.
28745 (mem_location): Add new class.
28746 (mem_usage): Likewise.
28747 (mem_alloc_description): Likewise.
28748 * sese.c: Add new header file inclusision.
28749 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
28751 * tree-sra.c: Add new header file inclusision.
28752 * vec.c (struct vec_descriptor): Remove.
28753 (hash_descriptor): Likewise.
28754 (struct vec_usage): Likewise.
28755 (struct ptr_hash_entry): Likewise.
28756 (hash_ptr): Likewise.
28757 (eq_ptr): Likewise.
28758 (vec_prefix::register_overhead): Use new memory descriptor API.
28759 (vec_prefix::release_overhead): Likewise.
28760 (add_statistics): Remove.
28761 (dump_vec_loc_statistics): Use new memory descriptor API.
28762 * vec.h (struct vec_prefix): Likewise.
28763 (va_heap::reserve): Likewise.
28764 (va_heap::release): Likewise.
28765 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
28767 2015-05-27 Richard Biener <rguenther@suse.de>
28769 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
28770 earlier and remove ??? comment.
28771 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
28772 and got called from loop analysis bail out. Always pass the SLP
28773 node to the vectorizable_* functions.
28774 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
28775 the premature SLP check here.
28776 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
28777 detected SLP stmts.
28778 (vect_detect_hybrid_slp_1): Likewise.
28780 2015-05-26 Jeff Law <law@redhat.com>
28782 * combine.c (find_split_point): Verify that the shift count is a
28783 constant when choosing (plus (ashift ...)) as a split point.
28785 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
28786 No functional changes.
28788 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
28790 * ipa-polymorphic-call.c
28791 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
28792 case when call target is already known.
28794 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
28797 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
28798 take into account the case that operands[1] and operands[2]
28799 are the same register.
28801 2015-05-26 Michael Matz <matz@suse.de>
28803 PR middle-end/66251
28805 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
28807 (vect_create_vectorized_demotion_stmts): Always set
28808 STMT_VINFO_VEC_STMT, also with SLP.
28809 (vectorizable_store): Handle strided group stores.
28811 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28814 * config/aarch64/aarch64.md
28815 (*adds_shift_imm_<mode>): New pattern.
28816 (*subs_shift_imm_<mode>): Likewise.
28817 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28818 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
28819 (*add_uxt<mode>_shift2): Likewise.
28820 (*add_uxtsi_shift2_uxtw): Likewise.
28821 (*sub_uxt<mode>_shift2): Likewise.
28822 (*sub_uxtsi_shift2_uxtw): Likewise.
28824 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
28826 * config/rs6000/constraints.md (Y, U): Use match_test.
28828 2015-05-26 Christian Bruel <christian.bruel@st.com>
28831 * config/arm/arm.c (arm_option_check_internal)
28832 (arm_option_params_internal): Check opts->target_flags to set macros.
28833 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28834 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
28835 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28836 (builtin_define): Replaced with def_or_undef_macro.
28837 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
28838 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
28839 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
28840 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
28841 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
28842 (TARGET_ARM_FEATURE_LDREX_P)
28843 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
28844 * config/arm/arm-c.c (def_or_undef_macro): New function.
28845 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
28847 2015-05-26 Christian Bruel <christian.bruel@st.com>
28849 * c-common.h (builtin_define_with_int_value)
28850 (builtin_define_type_sizeof): Declare.
28851 * c-cppbuiltin.c (builtin_define_with_int_value)
28852 (builtin_define_type_sizeof): Externalize.
28853 (builtin_define_std): Cleanup declaration.
28854 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
28855 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
28856 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
28857 (builtin_define, builtin_assert): New macros.
28859 2015-05-26 Richard Biener <rguenther@suse.de>
28861 PR tree-optimization/66142
28862 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
28863 MEM_REFs for the same base address.
28865 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28868 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
28870 2015-05-26 Jason Merrill <jason@redhat.com>
28872 * configure.ac: Set CXXFLAGS for ISL test.
28873 * configure: Regenerate.
28875 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
28876 strstr and basename.
28877 * configure: Regenerate.
28879 2015-05-26 Richard Biener <rguenther@suse.de>
28881 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
28882 X % C -> X & (C - 1) for C being a power-of two to ...
28883 * match.pd: ... patterns.
28885 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
28887 * match.pd (swapped_tcc_comparison): New operator list.
28888 (-A CMP -B): New simplification.
28889 * fold-const.c (fold_comparison): Remove corresponding code.
28891 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28893 * caller-save.c (init_caller_save): Base temporary register numbers
28894 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
28895 * cfgloopanal.c (init_set_costs): Likewise.
28896 * dojump.c (prefer_and_bit_test): Likewise.
28897 * expr.c (init_expr_target): Likewise.
28898 * ira.c (setup_prohibited_mode_move_regs): Likewise.
28899 * lower-subreg.c (init_lower_subreg): Likewise.
28900 * postreload.c (reload_cse_regs_1): Likewise.
28902 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
28904 * gensupport.h (compute_test_codes): Declare.
28905 * gensupport.c (compute_predicate_codes): Rename to...
28906 (compute_test_codes): ...this. Generalize error message.
28907 (process_define_predicate): Update accordingly.
28908 * genpreds.c (compute_maybe_allows): Delete.
28909 (add_constraint): Use compute_test_codes to determine whether
28910 something can accept a SUBREG, REG or MEM.
28912 2015-05-26 Torvald Riegel <triegel@redhat.com>
28914 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
28915 'memory model' to align with C++11; fix description of memory orders;
28918 2015-05-26 Richard Biener <rguenther@suse.de>
28920 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
28921 (vect_analyze_loop_operations): ... here. Remove slp parameter,
28922 detect whether we apply SLP. Remove call to
28923 vect_update_slp_costs_according_to_vf.
28924 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
28925 vect_update_slp_costs_according_to_vf from here. Dispatch
28926 to vect_slp_analyze_operations to analyze SLP stmts.
28927 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
28928 unused bb_vec_info parameter, adjust assert.
28929 (vect_slp_analyze_operations): Pass in the slp instance tree
28930 instead of bb_vec_info.
28931 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
28932 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
28934 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28936 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
28937 Q_REGS. Expand comment.
28938 (REG_CLASS_NAMES): Ditto.
28939 (REG_CLASS_CONTENTS): Ditto.
28941 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
28944 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
28945 when LEGACY_INT_REGNO_P is processed.
28947 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
28949 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
28951 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
28953 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
28954 register if not marked dead/unused, before return.
28956 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28959 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
28960 is set; check for assembler name at LTO time.
28961 (type_in_anonymous_namespace): Remove hacks, check that all
28962 anonymous types are called "<anon>"
28963 (odr_type_p): Simplify; add check for "<anon>"
28964 (odr_subtypes_equivalent): Add odr_type_p check.
28965 * tree.c (need_assembler_name_p): Even anonymous namespace needs
28968 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28970 * ipa-utils.h (method_class_type): Remove.
28971 * cgraphunit.c (walk_polymorphic_call_targets): Use
28972 TYPE_METHOD_BASETYPE.
28973 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
28974 on main variants only.
28975 (method_class_type): Remove.
28976 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
28977 (build_type_inheritance_graph): Likewise.
28978 * ipa-icf.c (sem_function::equals_wpa): Likewise.
28979 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
28980 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
28982 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
28984 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
28985 is_typedef_decl, typedef_variant_p): Constify.
28986 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
28987 is_typedef_decl, typedef_variant_p): Constify.
28989 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28991 * defaults.h (gen_tablejump): New function.
28992 (HAVE_tablejump): Add default value.
28994 * stmt.c: Likewise.
28996 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
28998 * defaults.h (gen_store_multiple): New function.
28999 (HAVE_store_multiple): Add default value.
29000 * expr.c (move_block_from_reg): Adjust.
29002 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29004 * defaults.h (gen_load_multiple): New function.
29005 (HAVE_load_multiple): Add default value.
29006 * expr.c (move_block_to_reg): Adjust.
29008 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29010 * defaults.h (gen_mem_signal_fence): New function.
29011 (HAVE_mem_signal_fence): Add default value.
29012 * optabs.c: Adjust.
29014 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29016 * defaults.h (gen_memory_barrier): New function.
29017 (HAVE_memory_barrier): Add default value.
29018 * optabs.c: Adjust.
29020 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29022 * defaults.h (gen_mem_thread_fence): New function.
29023 (HAVE_mem_thread_fence): Add default definition.
29024 * optabs.c: Adjust.
29026 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29028 * combine.c (find_split_point): Check the value of HAVE_lo_sum
29029 instead of if it is defined.
29030 (combine_simplify_rtx): Likewise.
29031 * lra-constraints.c (process_address_1): Likewise.
29032 * config/darwin.c: Adjust.
29033 * genconfig.c (main): Always define HAVE_lo_sum.
29035 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29037 * genmatch.c (parser::parse_operation): Reject expanding
29038 operator-list inside 'for'.
29040 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29042 * genmatch.c (parser::parse_for): Reject iterator if used as
29045 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
29047 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
29048 after end of id-list.
29050 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29052 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
29053 we do not try to compute canonical type for type that does not need
29055 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
29057 * tree.h (type_with_alias_set_p): New.
29059 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
29061 * tree.c (gimple_canonical_types_compatible_p): Do not compare
29062 function attributes.
29063 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
29065 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
29067 * Makefile.in (check_gcc_parallelize): Delete.
29068 (lang_checks_parallelized): Update comment.
29070 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
29072 PR rtl-optimization/66237
29073 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
29074 location of an "as_a" cast.
29076 2015-05-22 Jeff Law <law@redhat.com>
29078 * config/pa/pa.md (non-canonical shift-add insns): Remove.
29079 (peepholes with non-canonical RTL sources): Remove.
29080 (peepholes for indexed stores of FP regs in integer modes): Match and
29081 generate canonical RTL.
29083 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29085 PR tree-optimization/63387
29086 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
29087 ((x ord x) & (y ord y) -> (x ord y),
29088 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
29089 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
29090 vectors like scalars.
29092 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29094 * convert.c (convert_to_integer, convert_to_vector): Include the
29095 types in the error message.
29097 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
29099 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
29102 2015-05-22 Jeff Law <law@redhat.com>
29104 * config/pa/pa.md (integer_indexed_store splitters): Use
29105 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
29106 insns -- adjusting the constant 2nd operand accordingly.
29108 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
29109 (plus (ashift X log2) Y) if it is a split point.
29111 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
29112 out of hppa_legitimize_address to handle both forms of a multiply
29114 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
29115 Always generate the ASHIFT variant as the result is not directly
29116 used in a MEM. Update comments and refactor slightly to improve
29119 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29122 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
29123 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
29124 (aarch64_composite_type_p): Return false if given type and mode are
29125 for a short vector.
29127 2015-05-22 Richard Biener <rguenther@suse.de>
29129 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
29131 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
29132 patterns when determining whether SLP is pure.
29133 (vect_is_slp_reduction): Remove check for pattern stmts.
29134 (vect_is_simple_reduction_1): Remove dead code.
29135 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
29136 (vect_get_and_check_slp_defs): Pass in the stmt number.
29137 Allow the first def in a reduction to be not a pattern stmt when
29138 the rest of the stmts def are patterns.
29139 (vect_build_slp_tree_1): Allow tcc_expression codes like
29140 SAD_EXPR and DOT_PROD_EXPR.
29141 (vect_build_slp_tree): Adjust.
29142 (vect_analyze_slp): Refactor and move BB vect error message ...
29143 (vect_slp_analyze_bb_1): ... here.
29145 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
29147 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
29148 for CSWTCH temporary.
29150 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29152 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
29153 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
29156 2015-05-22 Richard Biener <rguenther@suse.de>
29158 PR tree-optimization/66251
29159 * tree-vect-stmts.c (vectorizable_conversion): Properly
29160 set STMT_VINFO_VEC_STMT even for the SLP case.
29162 2015-05-22 Marek Polacek <polacek@redhat.com>
29164 * doc/extend.texi: Use @pxref instead of @xref.
29166 2015-05-22 hiraditya <hiraditya@msn.com>
29168 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
29171 2015-05-22 Richard Biener <rguenther@suse.de>
29173 PR tree-optimization/65701
29174 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
29175 Move peeling cost models into one place. Peel for alignment
29176 for single loads only if an aligned load is cheaper than
29179 2015-05-22 Marek Polacek <polacek@redhat.com>
29182 * doc/extend.texi (Enumerator Attributes): New section.
29183 Document syntax of enumerator attributes.
29185 2015-05-22 Richard Biener <rguenther@suse.de>
29187 * tree-vect-loop.c (get_reduction_op): New function.
29188 (vect_model_reduction_cost): Use it, add reduc_index parameter.
29189 Make ready for BB reductions.
29190 (vect_create_epilog_for_reduction): Use get_reduction_op.
29191 (vectorizable_reduction): Init reduc_index to a valid value.
29192 Adjust vect_model_reduction_cost call.
29193 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
29194 operand for reduction defaults. Add SAD_EXPR support.
29195 Assert we have a neutral op for SLP reductions.
29196 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
29197 walking pattern stmt ops only recurse to SSA names.
29199 2015-05-22 Richard Biener <rguenther@suse.de>
29201 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
29202 assert with guard, remove check on detected reduction.
29203 (vect_recog_sad_pattern): Likewise.
29204 (vect_recog_widen_sum_pattern): Likewise.
29206 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29208 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
29209 __always_inline__ attribute.
29210 (vaesdq_u8): Likewise.
29211 (vaesmcq_u8): Likewise.
29212 (vaesimcq_u8): Likewise.
29213 (vsha1cq_u32): Likewise.
29214 (vsha1mq_u32): Likewise.
29215 (vsha1pq_u32): Likewise.
29216 (vsha1h_u32): Likewise.
29217 (vsha1su0q_u32): Likewise.
29218 (vsha1su1q_u32): Likewise.
29219 (vsha256hq_u32): Likewise.
29220 (vsha256h2q_u32): Likewise.
29221 (vsha256su0q_u32): Likewise.
29222 (vsha256su1q_u32): Likewise.
29223 (vmull_p64): Likewise.
29224 (vmull_high_p64): Likewise.
29226 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29228 * final.c (final_scan_insn): Don't check HAVE_peephole with the
29230 * output.h: Likewise.
29231 * genconfig.c (main): Alwways define HAVE_peephole.
29232 * genpeep.c: Don't emit checks of HAVE_peephole.
29234 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29236 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
29237 check HAVE_conditional_move with the preprocessor.
29239 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29241 * genconfig.c (main): Always define HAVE_conditional_move.
29242 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
29243 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
29246 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29248 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
29249 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
29250 and FRAME_POINTER_REGNUM with the preprocessor.
29252 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29254 * defaults.h: Add default for STACK_PUSH_CODE.
29255 * expr.c: Don't redefine STACK_PUSH_CODE.
29256 * recog.c: Likewise.
29258 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29260 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
29261 sched-deps.c: Use if instead of preprocessor checks with
29262 STACK_GROWS_DOWNWARD.
29264 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29266 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
29268 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
29269 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
29270 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
29271 * doc/tm.texi: Regenerate.
29273 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
29276 * config/i386/constraints.md (Bg): New constraint for GOT memory
29278 * config/i386/i386.md (*call_got_x32): New pattern.
29279 (*call_value_got_x32): Likewise.
29280 * config/i386/predicates.md (GOT_memory_operand): New predicate.
29282 2015-05-21 Jakub Jelinek <jakub@redhat.com>
29284 PR tree-optimization/66233
29285 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
29288 2015-05-21 Jeff Law <law@redhat.com>
29290 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
29291 than MULT for shadd sequences.
29293 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
29295 * alias.c (alias_stats): New static var.
29296 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
29297 (dump_alias_stats_in_alias_c): New function.
29298 * alias.h (dump_alias_stats_in_alias_c): Declare.
29299 * tree-ssa-alias.c (dump_alias_stats): Call it.
29301 2015-05-08 Michael Matz <matz@suse.de>
29303 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
29305 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
29306 (STMT_VINFO_STRIDED_P): ... this.
29307 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
29308 (vect_verify_datarefs_alignment): Likewise.
29309 (vect_enhance_data_refs_alignment): Likewise.
29310 (vect_analyze_data_ref_access): Likewise.
29311 (vect_analyze_data_refs): Accept strided stores.
29312 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
29313 (vect_model_load_cost): Adjust for macro rename.
29314 (vectorizable_mask_load_store): Likewise.
29315 (vectorizable_load): Likewise.
29316 (vectorizable_store): Open code strided stores.
29318 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29320 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
29321 Document sqrt_insn.
29323 2015-05-21 Richard Biener <rguenther@suse.de>
29326 * match.pd: Guard pattern optimzing (int)(float)int
29327 conversions to apply only on GIMPLE.
29329 2015-05-21 Jeff Law <law@redhat.com>
29331 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
29332 multiply-accumulate/shift-add insn generation.
29334 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
29337 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
29338 operands[1] are the same.
29340 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
29342 PR middle-end/66221
29343 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
29344 build_distinct_type_copy to copy bounds.
29346 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
29348 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
29349 Change to unsigned int.
29351 2015-05-20 Jeff Law <law@redhat.com>
29353 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
29354 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
29355 (pa_shadd_constant_p): Allow constants for shadd insns rather
29356 than valid scaling constants for memory addresses.
29357 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
29358 * config/pa/predicates.md (mem_shadd_operand): New predicate.
29359 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
29360 (shift-add insns using ASHIFT): New patterns.
29362 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
29364 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
29366 (fix_up_fall_thru_edges): Likewise.
29367 (fix_crossing_conditional_branches): Likewise. Promote jump targets
29368 from to rtx_insn to rtx_code_label where feasible.
29369 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
29370 gen_move_insn (returned type changed to rtx_insn).
29371 * builtins.c (expand_errno_check): Fix arguments of
29372 do_compare_rtx_and_jump (now expects rtx_code_label).
29373 (expand_builtin_acc_on_device): Likewise.
29374 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
29375 invert_jump (now exprects rtx_jump_insn).
29376 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
29377 (construct_init_block): Use rtx_code_label.
29378 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
29379 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
29380 calling redirect_jump.
29381 (patch_jump_insn): Likewise.
29382 (redirect_branch_edge): Likewise.
29383 (force_nonfallthru_and_redirect): Likewise.
29384 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
29386 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
29387 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
29388 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
29389 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
29390 to store the value retured by gen_label_rtx.
29391 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
29393 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
29394 (split_branches): Fix calls of redirect_jump.
29395 * dojump.c (jumpifnot): Promote argument type from rtx to
29397 (jumpifnot_1): Likewise.
29398 (jumpif): Likewise.
29399 (jumpif_1): Likewise.
29400 (do_jump_1): Likewise.
29401 (do_jump): Likewise. Use rtx_code_label when feasible.
29402 (do_jump_by_parts_greater_rtx): Likewise.
29403 (do_jump_by_parts_zero_rtx): Likewise.
29404 (do_jump_by_parts_equality_rtx): Likewise.
29405 (do_compare_rtx_and_jump): Likewise.
29406 * dojump.h: Update function prototypes.
29407 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
29409 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
29411 (emit_label_before): Likewise.
29412 (emit_jump_insn_after_noloc): Likewise.
29413 (emit_jump_insn_after_setloc): Likewise.
29414 (emit_jump_insn_after): Likewise
29415 (emit_jump_insn_before_setloc): Likewise.
29416 (emit_jump_insn_before): Likewise.
29417 (emit_label_before): Promote return type to rtx_code_label.
29418 (emit_label): Likewise.
29419 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
29420 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
29422 (emit_stack_restore): Likewise.
29423 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
29424 (do_cmp_and_jump): Likewise.
29425 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
29426 from rtx to rtx_code_label.
29427 (gen_move_insn_uncast): New function.
29428 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
29429 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
29430 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
29431 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
29432 invert_jump_1 and redirect_jump_1.
29433 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
29434 do_compare_rtx_and_jump.
29435 (expand_addsub_overflow): Likewise.
29436 (expand_neg_overflow): Likewise.
29437 (expand_mul_overflow): Likewise.
29438 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
29439 return value of gen_move_insn.
29440 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
29441 * loop-doloop.c (add_test): Use rtx_code_label.
29442 (doloop_modify): Likewise.
29443 (doloop_optimize): Likewise.
29444 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
29445 * lra-constraints.c (emit_spill_move): Remove cast of value returned
29447 (inherit_reload_reg): Add cast when calling dump_insn_slim.
29448 (split_reg): Likewise.
29449 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
29451 * optabs.c (expand_binop_directly): Remove casts of values returned by
29453 (expand_unop_direct): Likewise.
29454 (expand_abs): Likewise.
29455 (maybe_emit_unop_insn): Likewise.
29456 (maybe_gen_insn): Promote return type to rtx_insn.
29457 * optabs.h: Update prototype of maybe_gen_insn.
29458 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
29460 * recog.c (struct peep2_insn_data): Promote type of insn field to
29462 (peep2_reinit_state): Use NULL instead of NULL_RTX.
29463 (peep2_attempt): Remove casts of insn in peep2_insn_data.
29464 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
29465 * recog.h (struct insn_gen_fn): Promote return types of function
29466 pointers and operator ().from rtx to rtx_insn.
29467 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
29468 (fill_eager_delay_slots): Likewise.
29469 (relax_delay_slots): Likewise.
29470 (make_return_insns): Likewise.
29471 (dbr_schedule): Likewise.
29472 (optimize_skips): Likewise.
29473 (reorg_redirect_jump): Likewise.
29474 (fill_slots_from_thread): Likewise.
29475 * reorg.h: Update prototypes.
29476 * resource.c (find_dead_or_set_registers): Use dyn_cast to
29477 rtx_jump_insn instead of check. Use it's jump_target method.
29478 * rtl.h (rtx_jump_insn::jump_label): Define new method.
29479 (rtx_jump_insn::jump_target): Define new method.
29480 (rtx_jump_insn::set_jump_target): Define new method.
29481 * rtlanal.c (tablejump_p): Promote type of one local variable.
29482 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
29483 (sched_analyze_insn): Likewise.
29484 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
29485 (print_insn): Likewise.
29486 * stmt.c (label_rtx): Promote return type to rtx_insn.
29487 (force_label_rtx): Likewise.
29488 (jump_target_rtx): Define new function.
29489 (expand_label): Use it, get rid of one cast.
29490 (expand_naked_return): Promote rtx to rtx_code_label.
29491 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
29492 (expand_case): Use rtx_code_label instread of rtx where feasible.
29493 (expand_sjlj_dispatch_table): Likewise.
29494 (emit_case_nodes): Likewise.
29495 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
29496 * store-motion.c (insert_store): Make use of new return type of
29497 gen_move_insn and remove a cast.
29498 (replace_store_insn): Likewise.
29500 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
29502 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
29503 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
29505 2015-05-20 Jeff Law <law@redhat.com>
29507 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
29508 dispose of the jump thread path when the jump threading
29509 opportunity is cancelled.
29511 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
29513 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
29514 when printing the caret character.
29516 2015-05-20 Marek Polacek <polacek@redhat.com>
29518 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
29520 2015-05-20 Marek Polacek <polacek@redhat.com>
29522 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
29523 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
29524 * gimple-fold.c (canonicalize_bool): Likewise.
29525 (same_bool_result_p): Likewise.
29526 * tree-if-conv.c (parse_predicate): Likewise.
29528 2015-05-20 Marek Polacek <polacek@redhat.com>
29530 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
29531 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
29533 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29535 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
29536 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
29539 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
29541 * config/mips/mips.h (micromips_globals): Declare.
29543 2015-05-20 David Malcolm <dmalcolm@redhat.com>
29545 * timevar.def (TV_INITIALIZE_RTL): New.
29546 * toplev.c (initialize_rtl): Use an auto_timevar to account this
29547 function's time to TV_INITIALIZE_RTL.
29549 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
29551 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
29552 gimple_build_nop calls.
29553 (chkp_find_bounds_for_elem): Likewise.
29554 (chkp_get_zero_bounds): Likewise.
29555 (chkp_get_none_bounds): Likewise.
29556 (chkp_get_bounds_by_definition): Likewise.
29557 (chkp_generate_extern_var_bounds): Likewise.
29558 (chkp_get_bounds_for_decl_addr): Likewise.
29559 (chkp_get_bounds_for_string_cst): Likewise.
29561 2015-05-20 Bin Cheng <bin.cheng@arm.com>
29563 PR tree-optimization/65447
29564 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
29565 (dump_use, dump_uses): Support to dump sub use.
29566 (record_use): New parameters to support sub use. Remove call to
29568 (record_sub_use, record_group_use): New functions.
29569 (compute_max_addr_offset, split_all_small_groups): New functions.
29570 (group_address_uses, rewrite_use_address): New functions.
29571 (strip_offset): New declaration.
29572 (find_interesting_uses_address): Call record_group_use.
29573 (add_candidate): New assertion.
29574 (infinite_cost_p): Move definition forward.
29575 (add_costs): Check INFTY cost and return immediately.
29576 (get_computation_cost_at): Clear setup cost and dependent bitmap
29578 (determine_use_iv_cost_address): Compute cost for sub uses.
29579 (rewrite_use_address_1): Rename from old rewrite_use_address.
29580 (free_loop_data): Free sub uses.
29581 (tree_ssa_iv_optimize_loop): Call group_address_uses.
29583 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29584 Jim Wilson <jim.wilson@linaro.org>
29586 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
29587 new fields loadv and storev.
29588 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
29589 Initialize loadv and storev.
29590 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
29591 (cortexa53_extra_costs): Likewise.
29592 (cortexa57_extra_costs): Likewise.
29593 (xgene1_extra_costs): Likewise.
29594 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
29597 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
29599 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
29601 (cortexa8_extra_costs): Likewise.
29602 (cortexa5_extra_costs): Likewise.
29603 (cortexa7_extra_costs): Likewise.
29604 (cortexa12_extra_costs): Likewise.
29605 (cortexa15_extra_costs): Likewise.
29606 (v7m_extra_costs): Likewise.
29608 2015-05-20 Jeff Law <law@redhat.com>
29610 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
29611 instead of open-coded version. Also delete the jump thread created
29612 within this function.
29614 2015-05-20 Alan Modra <amodra@gmail.com>
29616 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
29617 stack adjusting insn. Formatting.
29618 (rs6000_emit_prologue): Track stack adjusting insn, and use of
29619 r12. If possible, emit first -fsplit-stack arg pointer insn
29620 before stack adjust. Don't use r12 to save cr if split-stack.
29622 2015-05-20 Alan Modra <amodra@gmail.com>
29624 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
29626 (rs6000_supports_split_stack): New function.
29627 * config/rs6000/rs6000.c (machine_function): Add
29628 split_stack_arg_pointer.
29629 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
29630 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
29631 rather than virtual_incoming_args_rtx.
29632 (rs6000_va_start): Likewise.
29633 (split_stack_arg_pointer_used_p): New function.
29634 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
29635 (morestack_ref): New var.
29636 (gen_add3_const, rs6000_expand_split_stack_prologue,
29637 rs6000_internal_arg_pointer, rs6000_live_on_entry,
29638 rs6000_split_stack_space_check): New functions.
29639 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
29640 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
29641 (UNSPECV_SPLIT_STACK_RETURN): Define.
29642 (split_stack_prologue, load_split_stack_limit,
29643 load_split_stack_limit_di, load_split_stack_limit_si,
29644 split_stack_return, split_stack_space_check): New expands and insns.
29645 * config/rs6000/rs6000-protos.h
29646 (rs6000_expand_split_stack_prologue): Declare.
29647 (rs6000_split_stack_space_check): Declare.
29649 2015-05-20 Alan Modra <amodra@gmail.com>
29651 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
29652 (direct_return): Test vrsave_size rather than vrsave_mask.
29653 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
29654 (rs6000_emit_epilogue): Likewise.
29656 2015-05-20 Alan Modra <amodra@gmail.com>
29658 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
29659 when not saving registers.
29660 (debug_stack_info): Adjust to omit printing unused offsets,
29662 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
29665 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
29668 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
29669 value_type to const char *.
29671 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
29673 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
29674 to build a biarch toolchain again.
29676 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29678 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
29679 or implicit declarations.
29680 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
29682 (get_odr_type): Check type has linkage before adding bases.
29683 (register_odr_type): Check that type has linkage before adding it.
29684 (type_known_to_have_no_deriavations_p): Rename to ..
29685 (type_known_to_have_no_derivations_p): This one.
29686 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
29687 (type_known_to_have_no_derivations_p): This one.
29688 * ipa-polymorphic-call.c
29689 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
29692 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
29694 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
29695 (layout_type): Use RECORD_OR_UNION_TYPE_P.
29697 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29699 * config/s390/s390.c (s390_vector_bool_type_p): New function.
29700 (s390_invalid_binary_op): New function.
29701 (TARGET_INVALID_BINARY_OP): Define macro.
29703 2015-05-19 David Sherwood <david.sherwood@arm.com>
29705 * loop-invariant.c (create_new_invariant): Don't calculate address cost
29706 if mode is not a scalar integer.
29707 (get_inv_cost): Increase computational cost for unused invariants.
29709 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29711 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
29712 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
29713 * config/s390/s390-builtin-types.def: New file.
29714 * config/s390/s390-builtins.def: New file.
29715 * config/s390/s390-builtins.h: New file.
29716 * config/s390/s390-c.c: New file.
29717 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
29718 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
29719 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
29720 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
29722 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
29724 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
29725 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
29726 variable definitions.
29727 (s390_const_operand_ok): New function.
29728 (s390_expand_builtin): Rewrite.
29729 (s390_init_builtins): New function.
29730 (s390_handle_vectorbool_attribute): New function.
29731 (s390_attribute_table): Add s390_vector_bool attribute.
29732 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
29733 (s390_branch_condition_mask): Generate masks for new modes.
29734 (s390_expand_vec_compare_cc): New function.
29735 (s390_mangle_type): Add mangling for vector bool types.
29736 (enum s390_builtin): Remove.
29737 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
29739 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
29740 s390_cpu_cpp_builtins.
29741 (REGISTER_TARGET_PRAGMAS): New macro.
29742 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
29743 (insn_cmp mode attribute): Add new CC modes.
29744 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
29745 (lcbb): New pattern definition.
29746 * config/s390/s390intrin.h: Include vecintrin.h.
29747 * config/s390/t-s390: New file.
29748 * config/s390/vecintrin.h: New file.
29749 * config/s390/vector.md: Include vx-builtins.md.
29750 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
29753 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29755 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
29757 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
29758 (s390_select_ccmode): Likewise.
29759 (s390_canonicalize_comparison): Swap operands if necessary.
29760 (s390_expand_vec_compare_scalar): Expand DFmode compare using
29761 single element vector instructions.
29762 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
29763 (s390_branch_condition_mask): Generate CC masks for the new modes.
29764 * config/s390/s390.md (v0, vf, vd): New mode attributes.
29765 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
29766 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
29767 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
29768 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
29769 (*extend<DSF:mode><BFP:mode>2): New insn definition.
29770 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
29771 (extend<DSF:mode><BFP:mode>2): Turn into expander.
29772 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
29773 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
29774 (sqrt<mode>2): Add vector instruction.
29776 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29778 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
29780 * config/s390/predicates.md (const0_operand, constm1_operand)
29781 (constable_operand): Accept vector operands.
29782 * config/s390/s390-modes.def: Add supported vector modes.
29783 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
29784 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
29785 (s390_bytemask_vector_p, s390_expand_vec_strlen)
29786 (s390_expand_vec_compare, s390_expand_vcond)
29787 (s390_expand_vec_init): Add prototypes.
29788 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
29789 (s390_vector_mode_supported_p): New function.
29790 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
29791 (s390_contiguous_bitmask_vector_p): New function.
29792 (s390_bytemask_vector_p): New function.
29793 (s390_split_ok_p): Vector regs don't work either.
29794 (regclass_map): Add VEC_REGS.
29795 (s390_legitimate_constant_p): Handle vector constants.
29796 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
29797 (legitimate_reload_vector_constant_p): New function.
29798 (s390_preferred_reload_class): Handle CONST_VECTOR.
29799 (s390_reload_symref_address): Likewise.
29800 (s390_secondary_reload): Vector memory instructions only support
29801 short displacements. Rename reload*_nonoffmem* to reload*_la*.
29802 (s390_emit_ccraw_jump): New function.
29803 (s390_expand_vec_strlen): New function.
29804 (s390_expand_vec_compare): New function.
29805 (s390_expand_vcond): New function.
29806 (s390_expand_vec_init): New function.
29807 (s390_dwarf_frame_reg_mode): New function.
29808 (print_operand): Handle addresses with 'O' and 'R' constraints.
29809 (NR_C_MODES, constant_modes): Add vector modes.
29810 (s390_output_pool_entry): Handle vector constants.
29811 (s390_hard_regno_mode_ok): Handle vector registers.
29812 (s390_class_max_nregs): Likewise.
29813 (s390_cannot_change_mode_class): New function.
29814 (s390_invalid_arg_for_unprototyped_fn): New function.
29815 (s390_function_arg_vector): New function.
29816 (s390_function_arg_float): Remove size variable.
29817 (s390_pass_by_reference): Handle vector arguments.
29818 (s390_function_arg_advance): Likewise.
29819 (s390_function_arg): Likewise.
29820 (s390_return_in_memory): Vector values are returned in a VR if
29822 (s390_function_and_libcall_value): Handle vector arguments.
29823 (s390_gimplify_va_arg): Likewise.
29824 (s390_call_saved_register_used): Consider the arguments named.
29825 (s390_conditional_register_usage): Disable v16-v31 for non-vec
29827 (s390_preferred_simd_mode): New function.
29828 (s390_support_vector_misalignment): New function.
29829 (s390_vector_alignment): New function.
29830 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
29831 (TARGET_VECTOR_MODE_SUPPORTED_P)
29832 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
29833 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
29834 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
29835 (TARGET_VECTOR_ALIGNMENT): Define target macro.
29836 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
29837 (FIRST_PSEUDO_REGISTER): Increase value.
29838 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
29839 (VECTOR_REG_P): Define macros.
29840 (FIXED_REGISTERS, CALL_USED_REGISTERS)
29841 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
29842 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
29843 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
29844 Add vector registers.
29845 (CANNOT_CHANGE_MODE_CLASS): Call C function.
29846 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
29847 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
29849 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
29850 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
29851 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
29852 (VR*_REGNUM): New constants.
29853 (ALL): New mode iterator.
29854 (INTALL): Remove mode iterator.
29856 (movti): Implement TImode moves for VRs.
29857 Disable TImode splitter for VR targets.
29858 Implement splitting TImode GPR<->VR moves.
29859 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
29860 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
29861 reload<mode>_la_in, reload<mode>_la_out.
29862 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
29863 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
29864 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
29865 (mov<mode> SF SD): Prefer lder, lde for loading.
29866 Add lrl and strl instructions.
29867 Add vector instructions.
29868 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
29869 Call s390_expand_vec_strlen on z13.
29870 (*cc_to_int): Change predicate to nonimmediate_operand.
29871 (addti3): Rename to *addti3. New expander.
29872 (subti3): Rename to *subti3. New expander.
29873 * config/s390/vector.md: New file.
29875 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29877 * common/config/s390/s390-common.c (processor_flags_table): Add
29879 * config.gcc: Add z13.
29880 * config/s390/s390-opts.h (enum processor_type): Add
29881 PROCESSOR_2964_Z13.
29882 * config/s390/s390.c (s390_adjust_priority): Check for
29883 PROCESSOR_2964_Z13.
29884 (s390_reorg): Likewise.
29885 (s390_sched_reorder): Likewise.
29886 (s390_sched_variable_issue): Likewise.
29887 (s390_loop_unroll_adjust): Likewise.
29888 (s390_option_override): Likewise. Default to -mvx when available.
29889 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
29890 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
29891 (TARGET_VX_ABI): Define macros.
29893 (TARGET_DEFAULT): Add MASK_OPT_VX.
29894 * config/s390/s390.md ("cpu" attribute): Add z13.
29895 ("cpu_facility" attribute): Add vec.
29896 * config/s390/s390.opt (processor_type): Add z13.
29897 (mvx): New options.
29898 * doc/invoke.texi: Add z13 option for -march.
29900 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29902 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
29903 mode check to make sure that only scalar integer values are
29906 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
29908 * tree.c (verify_type_variant): Fix #undef.
29909 (gimple_canonical_types_compatible_p): Move here from lto.c
29910 (verify_type): Verify TYPE_CANONICAL compatibility.
29911 * tree.h (gimple_canonical_types_compatible_p): Declare.
29913 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29915 PR middle-end/66199
29916 * tree.h (OMP_TEAMS_COMBINED): Define.
29917 * gimplify.c (enum gimplify_omp_var_data): Add
29918 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
29919 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
29920 (omp_notice_variable): Accept both ORT_TEAMS
29921 and ORT_COMBINED_TEAMS. Don't recurse if
29922 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
29923 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
29925 (omp_no_lastprivate): New function.
29926 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
29927 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
29928 notice_outer and set appropriate bits, otherwise make
29929 sure default(none) combined constructs won't complain.
29930 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
29931 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
29932 omp_no_lastprivate either remove the clause or turn it
29933 into OMP_CLAUSE_PRIVATE.
29934 (gimplify_omp_for): Fix up handling of implicit
29935 lastprivate or linear iterators.
29936 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
29937 ORT_COMBINED_TEAMS.
29938 * omp-low.c (lower_omp_for_lastprivate): For combined
29939 for simd use fd.loop.n2 from the for rather than simd.
29941 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
29943 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
29944 instead of gen_rtx_raw_REG.
29945 (cris_expand_epilogue): Likewise.
29946 * config/microblaze/microblaze.c (microblaze_classify_address):
29948 * config/sparc/sparc.md: Likewise.
29950 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
29952 * config/alpha/alpha.c (alpha_legitimize_reload_address)
29953 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
29954 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
29955 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
29956 Use CASE_CONST_SCALAR_INT.
29957 (print_operand) <case 'M'>: Use mode_width_operand to check the
29958 value of the constant.
29959 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
29960 * config/alpha/predicates.md (input_operand): Use general_operand
29961 instead of match_code as operand check.
29962 (symbolic_operand): Use match_code with subexpression digits.
29963 * config/alpha/constraints.md (Q): Ditto.
29965 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29967 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
29969 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29971 * config/s390/s390.c (s390_secondary_reload): Fix check for
29972 load/store relative.
29974 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
29976 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
29977 alternative_mask to uint64_t.
29979 2015-05-19 Jakub Jelinek <jakub@redhat.com>
29981 PR tree-optimization/66187
29982 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
29983 Pass TYPE_SIGN to tree_int_cst_min_precision. If
29984 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
29986 2015-05-19 David Malcolm <dmalcolm@redhat.com>
29988 * diagnostic.c (diagnostic_report_current_module): Strengthen
29989 local "new_map" from const line_map * to
29990 const line_map_ordinary *.
29991 * genmatch.c (error_cb): Likewise for local "map".
29992 (output_line_directive): Likewise for local "map".
29993 * input.c (expand_location_1): Likewise for local "map".
29994 Pass NULL rather than &map to
29995 linemap_unwind_to_first_non_reserved_loc, since the value is never
29996 read from there, and the value written back not read from here.
29997 (is_location_from_builtin_token): Strengthen local "map" from
29998 const line_map * to const line_map_ordinary *.
29999 (dump_location_info): Strengthen locals "map" from
30000 line_map *, one to const line_map_ordinary *, the other
30001 to const line_map_macro *.
30002 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
30003 const line_map * to const line_map_macro *.
30004 (maybe_unwind_expanded_macro_loc): Add a call to
30005 linemap_check_macro when writing to the "map" field of the
30007 Introduce local const line_map_ordinary * "ord_map", using it in
30008 place of "map" in the part of the function where we know we have
30009 an ordinary map. Strengthen local "m" from const line_map * to
30010 const line_map_ordinary *.
30012 2015-05-19 Nick Clifton <nickc@redhat.com>
30015 * config/msp430/msp430.md (zero_extendhisi2): Add support for
30016 separate source and destination registers.
30018 2015-05-19 Richard Biener <rguenther@suse.de>
30020 PR tree-optimization/66165
30021 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
30022 for no load permutation.
30024 PR tree-optimization/66185
30025 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
30026 when building the SLP node from scalars.
30028 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
30029 Tristan Gingold <gingold@adacore.com>
30031 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
30032 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
30033 (expand_stack_restore): Call record_new_stack_level.
30034 (expand_stack_save): Do not call do_pending_stack_adjust.
30035 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
30036 * calls.c (expand_call): Call record_new_stack_level for alloca.
30037 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
30038 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
30039 (update_sjlj_context): New global function.
30040 * except.h (update_sjlj_context): Declare.
30041 * explow.c (record_new_stack_level): New global function.
30042 (allocate_dynamic_stack_space): Call record_new_stack_level.
30043 * explow.h (record_new_stack_level): Declare.
30044 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
30045 * cfgrtl.c (duplicate_insn_chain): Likewise.
30047 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30049 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
30050 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
30051 STACK_GROWS_DOWNWARD as normal if.
30052 (expand_call): Likewise.
30054 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
30057 * config/sh/sh.md (*round_int_even): New insn_and_split and
30058 accompanying new unnamed split.
30060 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30062 * bitmap.c (bitmap_set_range): Handle count==1 specially.
30063 (bitmap_clear_range): Likewise.
30064 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
30065 bitmap_set_range unconditionally.
30066 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30067 * df-scan.c (df_mark_reg): Likewise.
30068 * haifa-sched.c (setup_ref_regs): Likewise.
30069 * sched-rgn.c (update_live_1): Likewise.
30071 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30073 * regs.h (END_HARD_REGNO): Delete.
30074 (END_REGNO): Move to...
30076 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
30077 * caller-save.c (mark_set_regs): Likewise.
30078 * combine.c (move_deaths, distribute_notes): Likewise.
30079 * cse.c (invalidate, invalidate_for_call): Likewise.
30080 * df-scan.c (df_ref_record): Likewise.
30081 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
30082 (record_last_reg_set_info): Likewise.
30083 * reg-stack.c (convert_regs_exit): Likewise.
30084 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
30085 * resource.c (update_live_status): Likewise.
30086 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
30088 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30090 * rtl.h (reg_info): Add an nregs field.
30091 (REG_NREGS): Use it.
30092 (SET_REGNO_RAW): Delete.
30093 (set_regno_raw): New function.
30094 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
30095 (END_REGNO): Redefine in terms of REG_NREGS.
30096 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
30098 * emit-rtl.c (set_mode_and_regno): Likewise.
30099 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
30100 instead of SET_REGNO_RAW.
30102 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30104 * rtl.h (PUT_MODE_RAW): New macro.
30105 (PUT_REG_NOTE_KIND): Use it.
30106 (set_mode_and_regno): Declare.
30107 (gen_raw_REG): Change regno to "unsigned int".
30108 (gen_rtx_REG): Change "unsigned" to "unsigned int".
30109 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
30110 use set_mode_and_regno to change the mode of registers.
30111 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
30112 * emit-rtl.c (set_mode_and_regno): New function.
30113 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
30114 * caller-save.c (reg_save_code): Use set_mode_and_regno.
30115 * expr.c (init_expr_target): Likewise.
30116 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30117 * postreload.c (reload_cse_simplify_operands): Likewise.
30119 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30121 * caller-save.c (init_caller_save): Use word_mode and
30122 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
30123 * expr.c (init_expr_target): Likewise.
30124 * ira.c (setup_prohibited_mode_move_regs): Likewise.
30125 * postreload.c (reload_cse_regs_1): Likewise.
30127 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30129 * rtl.def (REG): Change format to "r".
30130 * rtl.h (rtunion): Remove rt_reg.
30131 (reg_info): New structure.
30132 (rtx_def): Add reg field to main union.
30133 (X0REGATTR): Delete.
30134 (REG_CHECK): New macro.
30135 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
30136 * rtl.c (rtx_format): Document "r".
30137 (rtx_code_size): Handle REG specially.
30138 * gengenrtl.c (special_format): Return true for formats
30140 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
30141 Deal with REG_ATTRS after the field loop.
30142 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
30143 * expmed.c (init_expmed): Call gen_raw_REG instead of
30145 * expr.c (init_expr_target): Likewise.
30146 * regcprop.c (maybe_mode_change): Likewise.
30147 * varasm.c (make_decl_rtl): Likewise.
30148 * final.c (leaf_renumber_regs_insn): Return early after
30150 * genemit.c (gen_exp): Handle 'r' fields.
30151 * genpeep.c (match_rtx): Likewise.
30152 * gensupport.c (subst_pattern_match): Likewise.
30153 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
30154 (alter_constraints, subst_dup): Likewise.
30155 * read-rtl.c (read_rtx_code): Likewise.
30156 * print-rtl.c (print_rtx): Likewise.
30157 * genrecog.c (find_operand, find_matching_operand): Likewise.
30158 (validate_pattern, match_pattern_2): Likewise.
30159 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
30160 (rtx_test::regno_field): New function.
30161 (operator ==, safe_to_hoist_p, transition_parameter_type)
30162 (parameter_type_string, print_parameter_value)
30163 (print_nonbool_test, print_test): Handle new enum values.
30164 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
30165 * lra-constraints.c (operands_match_p): Likewise.
30167 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30169 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
30170 Change type of new_regno to unsigned int.
30171 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
30172 new_regno to unsigned int.
30173 (df_ref_change_reg_with_loc): Remove old_regno parameter.
30174 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
30175 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
30176 (SET_REGNO_RAW): Add space after ",".
30178 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30180 * rtl.h (REG_NREGS): New macro
30181 * alias.c (record_set): Use it.
30182 * cfgcleanup.c (mark_effect): Likewise.
30183 * combine.c (likely_spilled_retval_1): Likewise.
30184 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
30185 (move_deaths, distribute_notes): Likewise.
30186 * cselib.c (cselib_record_set): Likewise.
30187 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
30188 * df-scan.c (df_mark_reg): Likewise.
30189 * dse.c (look_for_hardregs): Likewise.
30190 * dwarf2out.c (reg_loc_descriptor): Likewise.
30191 (multiple_reg_loc_descriptor): Likewise.
30192 * expr.c (write_complex_part, read_complex_part): Likewise.
30193 (emit_move_complex): Likewise.
30194 * haifa-sched.c (setup_ref_regs): Likewise.
30195 * ira-lives.c (mark_hard_reg_live): Likewise.
30196 * lra.c (lra_set_insn_recog_data): Likewise.
30197 * mode-switching.c (create_pre_exit): Likewise.
30198 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
30199 (reload_combine_recognize_pattern): Likewise.
30200 (reload_combine_note_use, move2add_record_mode): Likewise.
30201 (reload_cse_move2add): Likewise.
30202 * reg-stack.c (subst_stack_regs_pat): Likewise.
30203 * regcprop.c (kill_value, copy_value): Likewise.
30204 (copyprop_hardreg_forward_1): Likewise.
30205 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
30206 (build_def_use): Likewise.
30207 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
30208 (deps_analyze_insn): Likewise.
30209 * sched-rgn.c (check_live_1, update_live_1): Likewise.
30210 * sel-sched.c (count_occurrences_equiv): Likewise.
30211 * valtrack.c (dead_debug_insert_temp): Likewise.
30213 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
30215 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
30216 * dse.c (note_add_store): Likewise.
30217 * ira-lives.c (mark_hard_reg_dead): Likewise.
30218 * loop-invariant.c (mark_reg_store): Likewise.
30219 (mark_reg_death): Likewise.
30220 * postreload.c (reload_combine): Likewise.
30221 (reload_combine_note_store): Likewise.
30222 (reload_combine_note_use): Likewise.
30223 * recog.c (peep2_reg_dead_p): Likewise.
30225 2015-05-19 Alan Modra <amodra@gmail.com>
30227 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
30228 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
30229 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
30231 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
30232 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
30233 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
30234 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
30236 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
30238 * config/mips/mips.md (JOIN_MODE): New mode iterator.
30239 (join2_load_Store<JOIN_MODE:mode>): New pattern.
30240 (join2_loadhi): Likewise.
30241 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
30242 load-load and store-stores.
30243 * config/mips/mips.opt (mload-store-pairs): New option.
30244 (TARGET_LOAD_STORE_PAIRS): New macro.
30245 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
30246 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
30247 * config/mips/mips.c (mips_load_store_bonding_p): New function.
30249 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
30251 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
30253 * dojump.c (do_compare_rtx_and_jump): Likewise.
30254 * expmed.c (emit_store_flag_1): Likewise.
30255 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
30256 * final.c (sprint_ul): Use std::reverse for reversing a string.
30257 * fold-const.c (extract_muldiv_1): Use std::swap.
30258 * genmodes.c (emit_mode_int_n): Likewise.
30259 * ifcvt.c (dead_or_predicable): Likewise.
30260 * ira-build.c (ira_merge_live_ranges): Likewise.
30261 (swap_allocno_copy_ends_if_necessary): Likewise.
30262 * ira.c (ira_setup_alts): Likewise.
30263 * loop-iv.c (iv_analyze_expr): Likewise.
30264 (implies_p): Likewise.
30265 (canon_condition): Likewise.
30266 * lra-constraints.c (swap_operands): Likewise.
30267 * lra-lives.c (lra_merge_live_ranges): Likewise.
30268 * omega.c (swap): Remove.
30270 (omega_unprotect_1): Use std::swap.
30271 (omega_solve_geq): Likewise.
30272 * optabs.c (expand_binop_directly): Likewise.
30273 (expand_binop): Likewise.
30274 (emit_conditional_move): Likewise.
30275 (emit_conditional_add): Likewise.
30276 * postreload.c (reload_cse_simplify_operands): Likewise.
30277 * reg-stack.c (emit_swap_insn): Likewise.
30278 (swap_to_top): Likewise.
30279 (compare_for_stack_reg): Likewise.
30280 (subst_asm_stack_regs): Likewise.
30281 * reload.c (find_reloads): Likewise.
30282 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
30283 * sel-sched.c (invoke_reorder_hooks): Likewise.
30284 (create_block_for_bookkeeping): Likewise.
30285 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
30286 (lambda_matrix_right_hermite): Use std::swap.
30287 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
30288 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
30289 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
30290 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
30291 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
30292 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
30293 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
30294 * tree-vrp.c (compare_ranges): Likewise.
30295 * var-tracking.c (add_with_sets): Likewise.
30296 (vt_find_locations): Likewise.
30298 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
30300 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
30302 (FBSD_ENDFILE_SPEC): Likewise.
30303 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
30304 config/freebsd-spec.h.
30305 (ENDFILE_SPEC): Likewise.
30307 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
30308 Richard Henderson <rth@redhat.com>
30311 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
30312 Check for a memory location that is not a reference (using an AND)
30313 to an unaligned location here.
30314 * config/alpha/predicates.md (normal_memory_operand): Remove.
30316 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
30318 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
30319 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
30321 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
30323 * config/mips/mips.c (micromips_globals): New variable.
30324 (mips_set_compression_mode): Save and reinitialize target-dependent
30325 state for microMIPS.
30327 2015-05-18 Martin Liska <mliska@suse.cz>
30329 * dbgcnt.def: Add new counter.
30330 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
30332 2015-05-18 Martin Liska <mliska@suse.cz>
30334 * dbgcnt.def: Sort counters.
30335 * opts.c (common_handle_option): Do not compile if
30336 -fdbg-cnt-list is enabled.
30338 2015-05-18 Tom de Vries <tom@codesourcery.com>
30340 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
30341 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
30342 address operator to va_list operand.
30343 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
30345 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
30347 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
30348 * config/s390/s390.c (s390_gimplify_va_arg): Same.
30349 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
30351 2015-05-18 Tom de Vries <tom@codesourcery.com>
30353 * tree-ssa-tail-merge.c: Fix whitespace.
30355 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
30357 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
30358 cortex-a17, and cortex-a17.cortex-a7.
30360 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
30363 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
30365 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
30368 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
30369 QImode inner modes for TARGET_AVX512BW. Force mask operand
30370 to a register for AVX512F modes.
30372 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30374 * toplev.c (emit_debug_global_declarations): Do not output debug info
30375 when doing slim LTO objects.
30377 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30379 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
30380 odr_types_equivalent_p): Declare.
30381 (odr_type_p): Use gcc_checking_assert.
30382 (type_in_anonymous_namespace_p) Declare.
30383 (type_with_linkage_p): Declare.
30384 * common.opt (Wlto-type-mismatch): New warning.
30385 * ipa-devirt.c (compound_type_base): New function.
30386 (odr_or_derived_type_p): New function.
30387 (odr_types_equivalent_p): New function.
30388 (add_type_duplicate): Simplify.
30389 (type_with_linkage_p): Add hack to prevent false positives on C types
30390 (type_in_anonymous_namespace_p): Likewise.
30391 * tree.c (need_assembler_name_p): Use type_with_linkage.
30392 * tree.h (type_in_anonymous_namespace_p): Remove.
30393 * doc/invoke.texi (-Wlto-type-mismatch): Document
30395 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
30397 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
30398 (verify_type): Verify STRING_FLAG.
30400 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
30403 * tree-pretty-print.c (percent_K_format): Replace locus pointer
30404 with accessor function.
30405 * tree-diagnostic.c (diagnostic_report_current_function): Use
30406 diagnostic_location function.
30407 (maybe_unwind_expanded_macro_loc): Likewise.
30408 (virt_loc_aware_diagnostic_finalizer): Likewise.
30409 (default_tree_printer): Replace locus pointer with accessor function.
30410 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
30411 (diagnostic_set_info_translated): Initialize second location.
30412 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
30413 (diagnostic_show_locus): Handle two locations. Call
30414 diagnostic_print_caret_line.
30415 (diagnostic_print_caret_line): New.
30416 (default_diagnostic_starter): Use diagnostic_location function.
30417 (diagnostic_report_diagnostic): Use diagnostic_location function.
30418 (verbatim): Do not set text.locus.
30419 * diagnostic.h (struct diagnostic_info): Remove location field.
30420 (struct diagnostic_context): Make caret_chars an array of two.
30421 (diagnostic_location): New inline.
30422 (diagnostic_expand_location): Handle two locations.
30423 (diagnostic_same_line): New inline.
30424 (diagnostic_print_caret_line): Declare.
30425 (CARET_LINE_MARGIN): New constant.
30426 * pretty-print.c (pp_printf): Do not set text.locus.
30427 (pp_verbatim): Do not set text.locus.
30428 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
30429 (struct text_info): Replace locus pointer with locations
30430 array. Add accessor functions.
30432 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
30433 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30436 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
30437 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
30438 large constants in register instead of splitting them.
30440 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
30443 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
30444 replacements in memory addresses.
30445 (get_unaligned_address): Ditto.
30447 2015-05-16 James Bowman <james.bowman@ftdichip.com>
30449 * config/ft32/*: New files for FT32 port.
30450 * doc/install.texi: Add FT32 information.
30451 * doc/invoke.texi: Add FT32 information.
30452 * doc/md.texi: Add FT32 information.
30453 * doc/contrib.texi: Self added.
30455 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
30457 PR tree-optimization/64454
30458 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
30459 (-1 - A -> ~A): Remove unnecessary condition.
30461 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
30463 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
30464 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
30465 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
30467 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
30469 * ipa-chkp.h (chkp_wrap_function): New.
30470 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
30471 (chkp_wrap_function_name): New.
30472 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
30473 to get wrapper name.
30474 * lto-cgraph.c: Include ipa-chkp.h.
30475 (input_cgraph_1): Avoid alias chain for wrappers.
30477 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
30479 PR middle-end/66134
30480 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
30481 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
30483 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30485 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
30486 (AARCH64_FL_SLOWMUL): Delete.
30487 (AARCH64_FL_CRC): Redefine to 1<<3.
30488 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
30490 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
30492 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
30495 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30497 * config/alpha/alpha.md (extendqidi2): Use general_operand
30498 instead of some_operand for operand[1] predicate.
30499 (extendhidi2): Ditto.
30500 (cbranchdi4): Use general_operand instead of some_operand
30501 for operand[1] and operands[2] predicates.
30502 (cstoredi4): Ditto.
30503 * config/alpha/predicates.md (some_operand): Remove unused predicate.
30504 (some_ni_operand): Ditto.
30506 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
30508 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
30509 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
30510 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
30511 low part of the constant using alpha_emit_set_const_1.
30512 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
30514 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
30516 * varasm.c (output_constant_pool_1): Pass down alignment from
30517 constant pool entry's descriptor to output_constant_pool_2.
30518 (output_object_block): Add comment prior to call to
30519 output_constant_pool_1.
30521 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
30523 PR rtl-optimization/65862
30524 * target.def (ira_change_pseudo_allocno_class): New hook.
30525 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
30527 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
30528 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
30530 * ira-costs.c (find_costs_and_classes): Call the hook and change
30531 classes when it is necessary.
30532 * doc/tm.texi: Update.
30534 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
30536 * config/i386/i386.md (sibcall_memory): Check that register with
30537 callee address is not also used as one of the arguments, instead
30538 of checking that it is not live after the sibcall.
30539 (sibcall_pop_memory): Ditto.
30540 (sibcall_value_memory): Ditto.
30541 (sibcall_value_pop_memory): Ditto.
30543 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
30545 * generic-match-head.c (types_match): Handle non-types.
30546 * gimple-match-head.c (types_match): Likewise.
30547 * match.pd: Remove unnecessary TREE_TYPE for types_match.
30549 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
30551 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
30552 (csneg3<mode>_insn): Enable expansion of pattern.
30554 2015-05-14 Nick Clifton <nickc@redhat.com>
30556 * config/rl78/rl78.c (rl78_select_section): Select the correct
30557 default section based upon the category of the decl.
30559 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30561 PR rtl-optimization/30967
30562 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
30563 destination mode for the cost of scc patterns.
30565 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30567 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
30568 using SWIM248 mode iterator.
30569 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
30570 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
30571 for operand[2] constraint.
30572 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
30574 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30576 PR middle-end/66133
30577 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
30578 make sure it is never noreturn, even when the task body does not
30580 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
30581 right before GIMPLE_OMP_RETURN.
30582 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
30583 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
30584 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
30586 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30588 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
30589 * tree-ssa-math-opts.c: Include params.h
30590 (pow_synth_sqrt_info): New struct.
30591 (representable_as_half_series_p): New function.
30592 (get_fn_chain): Likewise.
30593 (print_nested_fn): Likewise.
30594 (dump_fractional_sqrt_sequence): Likewise.
30595 (dump_integer_part): Likewise.
30596 (expand_pow_as_sqrts): Likewise.
30597 (gimple_expand_builtin_pow): Use above to attempt to expand
30598 pow as series of square roots. Removed now unused variables.
30600 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
30602 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
30603 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
30604 Remove *p0 and *p1 arguments. Rewrite function.
30605 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
30606 (alpha_split_const_mov): Update calls to alpha_extract_integer and
30607 alpha_emit_set_long_const.
30608 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
30609 (alpha_output_mi_thunk_osf): Ditto.
30610 * config/alpha/alpha.md (movti): Do not check operands[1]
30613 2015-05-13 Richard Biener <rguenther@suse.de>
30615 PR tree-optimization/66129
30616 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
30618 (vect_schedule_slp_instance): Fix typo.
30620 2015-05-13 David Malcolm <dmalcolm@redhat.com>
30622 * common.opt (fdump-internal-locations): New option.
30623 * input.c: Include diagnostic-core.h.
30624 (get_end_location): New function.
30625 (write_digit): New function.
30626 (write_digit_row): New function.
30627 (dump_location_range): New function.
30628 (dump_labelled_location_range): New function.
30629 (dump_location_info): New function.
30630 * input.h (dump_location_info): New prototype.
30631 * toplev.c (compile_file): Handle flag_dump_locations.
30633 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
30635 * gimple-expr.h (is_gimple_constant): Reorder.
30636 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
30638 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
30640 * combine.c (simplify_set): When generating a CC set, if the
30641 source already is in the correct mode, do not wrap it in a
30642 compare. Simplify the rest of that code.
30644 2015-05-13 Richard Biener <rguenther@suse.de>
30646 PR tree-optimization/66123
30647 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
30650 2015-05-13 Richard Biener <rguenther@suse.de>
30652 PR middle-end/66110
30653 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
30655 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
30657 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
30659 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
30660 * aclocal.m4: Regenerated with automake-1.11.6.
30662 2015-05-13 Tom de Vries <tom@codesourcery.com>
30664 PR tree-optimization/66010
30665 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
30666 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
30667 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
30668 and rval based on do_deref.
30670 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30673 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
30674 link time constants into adress expressions and therefore set
30677 2015-05-13 Jakub Jelinek <jakub@redhat.com>
30680 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
30681 Use SWI248 iterator instead of SWI.
30682 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
30683 Use eq_attr "alternative" "0" instead of match_test in
30684 length_immediate attribute computation.
30685 (*mulvhi4, *mulvhi4_1): New define_insns.
30688 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
30689 SIGNED to get precision of non-negative value.
30691 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
30694 * function.c (diddle_return_value_1): Process bounds first.
30695 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
30698 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
30700 PR rtl-optimization/64616
30701 * loop-invariant.c (can_move_invariant_reg): New.
30702 (move_invariant_reg): Call above new function to decide whether
30703 instruction can just be moved, skipping creation of temporary
30706 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30708 PR target/pr66047.c
30709 * i386.c (ix86_function_sseregparm): Only return -1 if local function
30710 with implied regparm is called from -mno-sse function.
30711 (init_cumulative_args): Output error if ix86_function_sseregparm
30712 return -1 and SSE register would be needed.
30713 (function_arg_advance_32): Likewise.
30714 (function_arg_32): Likewise.
30715 * i386.h (ix86_args): Add decl field.
30717 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30720 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
30721 inlines across optimization boundary.
30723 2015-05-12 Jason Merrill <jason@redhat.com>
30725 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
30726 string literal and macro name.
30728 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
30730 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
30731 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
30732 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
30734 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30736 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
30737 (-Wmisleading-indentation): New option.
30738 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
30740 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
30742 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
30743 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
30744 (alpha_extract_integer): Ditto.
30745 (alpha_legitimate_constant_p): Ditto.
30746 (alpha_split_tmode_pair): Ditto.
30747 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
30748 (alpha_expand_mov): Ditto.
30749 (print_operand): Remove handling of 'H' modifier.
30750 <case 'm'>: Remove CONST_DOUBLE handling.
30751 (summarize_insn): Handle CONST_WIDE_INT.
30752 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
30754 (movti): Handle CONST_WIDE_INT.
30755 * config/alpha/constraints.md ('H'): Remove constraint definition.
30756 ('G'): Do not match MODE_FLOAT class.
30757 * config/alpha/predicates.md (const0_operand): Also match
30759 (non_add_const_operand): Ditto.
30760 (non_zero_const_operand): Ditto.
30761 (some_operand): Ditto.
30762 (input_operand): Ditto. Handle CONST_WIDE_INT.
30763 (and_operand): Do not match const_double.
30764 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
30766 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
30769 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
30770 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
30771 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
30772 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
30773 is_mm_seq_cst, is_mm_sync): New accessor functions.
30774 * builtins.c (expand_builtin_sync_operation,
30775 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
30776 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
30777 (get_memmodel, expand_builtin_atomic_compare_exchange,
30778 expand_builtin_atomic_load, expand_builtin_atomic_store,
30779 expand_builtin_atomic_clear): Use new accessor routines.
30780 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
30781 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
30782 (maybe_emit_sync_lock_test_and_set): Use new accessors and
30783 MEMMODEL_SYNC_ACQUIRE.
30784 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
30785 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
30786 expand_atomic_store): Use new accessors.
30787 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
30788 * tsan.c (instrument_builtin_call): Update check for memory model beyond
30789 final enum to use MEMMODEL_LAST.
30790 * c-family/c-common.c: Use new accessor for memmodel_base.
30791 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
30793 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
30794 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
30795 mem_thread_fence, *dmb): Likewise.
30796 * config/alpha/alpha.c (alpha_split_compare_and_swap,
30797 alpha_split_compare_and_swap_12): Likewise.
30798 * config/arm/arm.c (arm_expand_compare_and_swap,
30799 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
30800 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
30801 atomic_loaddi): Likewise.
30802 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
30804 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
30805 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
30807 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
30808 atomic_store<mode>, atomic_compare_and_swap<mode>,
30809 atomic_exchange<mode>): Use new accessors.
30810 * config/mips/mips.c (mips_process_sync_loop): Likewise.
30811 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
30812 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
30813 rs6000_post_atomic_barrier): Add new cases.
30814 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
30815 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
30816 (atomic_load<mode>): Add new cases and use new accessors.
30817 (store_quadpti): Add new cases.
30818 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
30820 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
30821 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
30824 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
30826 * ipa-devirt.c (type_with_linkage_p): New function.
30827 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
30829 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
30830 (can_be_name_hashed_p): Simplify.
30831 (hash_odr_name): Check that type has linkage before checking if it is
30833 (types_same_for_odr): Likewise.
30834 (odr_name_hasher::equal): Likewise.
30835 (odr_subtypes_equivalent_p): Likewise.
30836 (warn_types_mismatch): Likewise.
30837 (get_odr_type): Likewise.
30838 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
30839 * ipa-utils.h (odr_type_p): Move offline.
30840 * tree.c (need_assembler_name_p): Fix handling of types
30842 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
30844 2015-05-12 David Malcolm <dmalcolm@redhat.com>
30846 * timevar.c (timevar_enable): Delete in favor of...
30847 (g_timer): New global.
30848 (struct timevar_def): Move to timevar.h inside class timer.
30849 (struct timevar_stack_def): Likewise.
30850 (timevars): Delete global in favor of field "m_timevars" within
30851 class timer in timevar.h
30852 (stack): Likewise, in favor of field "m_stack".
30853 (unused_stack_instances): Likewise, in favor of field
30854 "m_unused_stack_instances".
30855 (start_time): Likewise, in favor of field "m_start_time".
30856 (get_time): Eliminate check for timevar_enable.
30857 (timer::timer): New function, built from part of timevar_init.
30858 (timevar_init): Rewrite idempotency test from using
30859 "timevar_enable" bool to using dynamic allocation of "g_timer".
30860 Move rest of implementation into timer's constructor.
30861 (timevar_push_1): Rename to...
30862 (timer::push): ...this, adding "m_" prefixes to variables that
30863 are now fields of timer.
30864 (timevar_pop_1): Likewise, rename to...
30865 (timer::pop): ...this, and add "m_" prefixes.
30866 (timevar_start): Replace test for "timevar_enable" with one for
30867 "g_timer", and move bulk of implementation to...
30868 (timer::start): ...here, adding "m_" prefixes.
30869 (timevar_stop): Likewise, from here...
30870 (timer::stop): ...to here.
30871 (timevar_cond_start): Likewise, from here...
30872 (timer::cond_start): ...to here.
30873 (timevar_cond_stop): Likewise, from here...
30874 (timer::cond_stop): ...to here.
30875 (validate_phases): Rename to...
30876 (timer::validate_phases): ...this, and add "m_" prefixes. Make
30877 locals "total" and "tv" const.
30878 (timevar_print): Rename to...
30879 (timer::print): ...this, and add "m_" prefixes. Make locals
30880 "total" and "tv" const. Eliminate test for timevar_enable.
30881 * timevar.h (timevar_enable): Eliminate.
30882 (g_timer): New declaration.
30883 (timevar_push_1): Eliminate.
30884 (timevar_pop_1): Eliminate.
30885 (timevar_print): Eliminate.
30886 (class timer): New class.
30887 (timevar_push): Rewrite to use g_timer.
30888 (timevar_pop): Likewise.
30889 * toplev.c (toplev::~toplev): Likewise.
30891 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
30893 * arm-protos.h (arm_sched_autopref): Delete.
30894 (tune_params): Re-organize, use enums for flag values.
30895 (FUSE_OPS): New macro.
30896 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
30897 (ARM_PREFETCH_BENEFICIAL): Likewise.
30898 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
30899 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
30900 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
30901 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
30902 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
30903 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
30904 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
30905 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
30907 (arm_option_override, thumb2_reorg, arm_print_tune_info)
30908 (aarch_macro_fusion_pair_p): Update uses of current_tune.
30909 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
30911 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
30913 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
30916 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
30917 Sandra Loosemore <sandra@codesourcery.com>
30919 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
30921 (REG_CLASS_NAMES): Add "IJMP_REGS".
30922 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
30923 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
30924 use new "c" register constraint.
30925 * config/nios2/constraint.md (c): New register constraint
30926 corresponding to IJMP_REGS.
30928 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30930 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
30931 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
30932 define_splits): Delete, revamp, transmogrify into ...
30933 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
30934 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
30935 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
30938 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30940 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
30941 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
30943 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30945 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
30946 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
30947 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
30948 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
30949 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
30950 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
30951 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
30952 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
30953 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
30954 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
30955 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
30956 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
30957 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
30958 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
30959 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
30960 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
30961 and 30 corresponding splitters): Delete.
30963 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30965 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
30968 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30970 * combine.c (recog_for_combine_1): New function, factored out
30971 from recog_for_combine.
30972 (change_zero_ext): New function.
30973 (recog_for_combine): If recog fails, try again with the pattern
30974 modified by change_zero_ext; if that still fails, restore the
30977 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
30979 * combine.c (get_undo_marker): New function.
30980 (undo_to_marker): New function, largely factored out from ...
30981 (undo_all): ... this. Adjust.
30983 2015-05-12 Richard Biener <rguenther@suse.de>
30985 PR tree-optimization/66101
30986 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
30987 fixup if we turn a loop exit edge to a fallthru edge.
30989 2015-05-12 Richard Biener <rguenther@suse.de>
30991 PR tree-optimization/37021
30992 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
30993 (SLP_TREE_TWO_OPERATORS): New define.
30994 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
30995 SLP_TREE_TWO_OPERATORS.
30996 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
30998 (vect_build_slp_tree): Adjust.
30999 (vect_analyze_slp_cost_1): Likewise.
31000 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
31001 emitting two vector stmts and mixing the results.
31003 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
31005 * call.c (print_z_candidates): Remove dead code.
31007 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31009 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
31010 and zEC12_simple_fp.
31011 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
31014 2015-05-12 Tom de Vries <tom@codesourcery.com>
31016 PR tree-optimization/66010
31017 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
31019 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
31020 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
31021 va_lists are passed, and remove corresponding handling.
31022 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
31023 do_deref argument to ifn_va_arg.
31024 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
31027 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31030 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
31031 REG before taking its REGNO.
31033 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
31035 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
31036 rsp->sign_bit_copies and rsp->nonzero_bits into ...
31037 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
31038 present to get more accurate information about the number of sign bit
31039 copies and non zero bits.
31041 2015-05-12 Richard Biener <rguenther@suse.de>
31043 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
31044 do not allow unrolling.
31046 2015-05-11 Richard Henderson <rth@redhat.com>
31048 * config/i386/i386-modes.def (CCP): New.
31049 * config/i386/i386.c (put_condition_code): Handle it.
31050 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
31052 2015-05-11 Richard Henderson <rth@redhat.com>
31054 * target.def (md_asm_clobbers): Replace with...
31055 (md_asm_adjust): this.
31056 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
31057 (TARGET_MD_ASM_ADJUST): New.
31058 * tm.texi: Rebuild.
31059 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
31060 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
31061 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
31063 * cfgexpand.c (check_operand_nalternatives): Accept vector of
31064 constraints instead of lists of outputs and inputs.
31065 (expand_asm_stmt): Save and restore input_location around the
31066 body of the function. Move asm data into vectors instead of
31067 building tree lists. Generate cleanup sequences as needed,
31068 rather than waiting til the end. Use new md_asm_adjust hook.
31070 * config/vxworks.c: Include vec.h before target.h.
31071 * gimple.c: Likewise.
31072 * incpath.c: Likewise.
31073 * mode-switching.c: Likewise.
31075 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
31076 (cris_md_asm_adjust): this.
31077 (TARGET_MD_ASM_CLOBBERS): Remove.
31078 (TARGET_MD_ASM_ADJUST): New.
31079 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
31080 (ix86_md_asm_adjust): this.
31081 (TARGET_MD_ASM_CLOBBERS): Remove.
31082 (TARGET_MD_ASM_ADJUST): New.
31083 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
31084 (mn10300_md_asm_adjust): this.
31085 (TARGET_MD_ASM_CLOBBERS): Remove.
31086 (TARGET_MD_ASM_ADJUST): New.
31087 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
31088 (rs6000_md_asm_adjust): this.
31089 (TARGET_MD_ASM_CLOBBERS): Remove.
31090 (TARGET_MD_ASM_ADJUST): New.
31091 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
31092 (visium_md_asm_adjust): this.
31093 (TARGET_MD_ASM_CLOBBERS): Remove.
31094 (TARGET_MD_ASM_ADJUST): New.
31096 2015-05-11 Richard Henderson <rth@redhat.com>
31098 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
31099 if noutputs is zero.
31100 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
31102 * cfgexpand.c (expand_asm_operands): Merge into...
31103 (expand_asm_stmt): ... here.
31105 * cfgexpand.c (expand_asm_operands): Don't call
31106 resolve_asm_operand_names.
31107 * stmt.c (resolve_asm_operand_names): Clarify block comment.
31109 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
31111 * dwarf2out.c (gen_member_die): Sanity check that we access
31112 TYPE_MAIN_VARIANT for TYPE_METHODS.
31113 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
31114 checking TYPE_METHODS.
31115 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
31117 (build_distinct_type_copy): Clear TYPE_METHODS.
31118 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
31119 (verify_type): Allow TYPE_METHODS to be error_mark_node.
31120 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
31122 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
31124 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
31125 (emit_pattern_before_setloc): Likewise.
31127 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31129 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
31130 for define_peephole2s.
31131 (get_peephole2_pattern): New function.
31132 (main): Use it. Call validate_pattern.
31134 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31136 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
31137 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
31138 (Last callee saved reg is different for AVR_TINY architecture)
31140 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31142 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
31143 when looking for memory references.
31145 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31148 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
31149 via function pointers.
31151 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
31153 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
31154 indirect call by forcing address into a pseudo with -fno-plt.
31155 * common.opt (flag_plt): New option.
31156 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
31157 ([-fno-plt]): Document.
31159 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
31162 * config/rs6000/option-defaults.h: Add space between string literal
31165 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
31167 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
31168 accross ARM targets.
31170 2015-05-11 Christian Bruel <christian.bruel@st.com>
31172 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
31173 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
31175 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
31177 PR rtl-optimization/66076
31178 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
31179 Don't grow the heap array if it is already big enough from a
31180 previous iteration.
31182 2015-05-11 Christian Bruel <christian.bruel@st.com>
31184 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
31185 (is_called_in_ARM_mode): Remove.
31186 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
31187 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
31188 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
31189 arm_declare_function_name.
31191 2015-05-11 Christian Bruel <christian.bruel@st.com>
31193 * config/arm/arm.c (arm_option_override): Reoganized and split into :
31194 (arm_option_params_internal); New function.
31195 (arm_option_check_internal): New function.
31196 (arm_option_override_internal): New function.
31197 (thumb_code, thumb1_code): Remove.
31198 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
31199 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
31200 (thumb_code, thumb1_code): Remove.
31201 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
31203 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
31205 * config/alpha/alpha.c (alpha_emit_set_const_1)
31206 (alpha_emit_set_long_const, alpha_extract_integer)
31207 (alpha_legitimate_constant_p, alpha_split_const_mov)
31208 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
31209 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31210 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
31212 * config/alpha/predicates.md (mode_mask_operand): Do not match
31214 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31215 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
31216 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
31217 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
31218 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
31220 2015-05-11 Jakub Jelinek <jakub@redhat.com>
31223 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
31224 default_binds_local_p_2.
31225 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
31226 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
31228 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31230 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
31232 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31234 Patch by Richard Biener
31235 * coverage.c (coverage_obj_init): Delay building of type variant
31236 until the type is finished.
31238 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31240 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
31241 mismatch between C and C++ type; compoare correctly ARG_TYPES
31242 for non-prototypes and output correctly parameter index for METHOD_TYPE.
31243 (odr_types_equivalent_p): Fix wording of warning about attributes;
31244 it is OK to match prototype and non-prototype.
31246 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31248 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
31249 TYPE_ARG_TYPES list.
31250 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
31251 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
31253 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
31255 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
31256 * tree.h (is_lang_specific): Constify.
31258 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
31260 PR tree-optimization/64454
31261 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
31264 2015-05-08 Jason Merrill <jason@redhat.com>
31266 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
31267 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
31268 config/darwin.h, config/darwin9.h, config/elfos.h,
31269 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
31270 config/microblaze/microblaze.h, config/mips/mips.h,
31271 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
31272 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
31273 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
31274 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
31275 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
31276 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
31277 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
31278 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
31279 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
31280 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
31281 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
31282 between string literal and macro name.
31284 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31286 * jump.c: Change argument types to rtx_insn *.
31289 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31291 * lra-constraints.c: Change argument type to rtx_insn *.
31293 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31295 * df-problems.c: Change argument type to rtx_insn *.
31297 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31299 * combine.c: Change argument type to rtx_insn *.
31301 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31304 * rtlanal.c: Change argument type to rtx_insn *.
31306 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31308 * sched-deps.c: Change argument types to rtx_insn *.
31309 * sched-int.h: Adjust.
31311 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31313 * dwarf2cfi.c: Change argument type to rtx_insn *.
31315 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31317 * ira.c (decrease_live_ranges_number): Changetype of local
31318 variable to rtx_insn *.
31319 * recog.c: Change argument types to rtx_insn *.
31322 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31324 * reorg.c: Change argument types to rtx_insn *.
31326 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31328 * ira-color.c: Change argument types to rtx_insn *.
31329 * lra-eliminations.c: Likewise.
31332 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31334 * gcse.c: Change argument types to rtx_insn *.
31336 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31338 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
31340 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31342 * emit-rtl.c (emit_debug_insn_before): Change argument type to
31346 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31348 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
31351 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31353 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
31356 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31358 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
31361 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31363 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
31366 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31368 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
31372 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31374 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
31378 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31380 * except.c (can_nonlocal_goto): Change type of argument to
31384 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31386 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
31389 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31391 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
31392 * cfgrtl.c (can_delete_label_p): Adjust.
31395 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31397 * reorg.c (stop_search_p): Change argument to rtx_insn *.
31399 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31401 * except.c (make_reg_eh_region_note): Change argument to
31403 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
31404 * except.h: Adjust.
31406 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31408 * mode-switching.c (commit_mode_sets): Change type of local
31409 variable from rtx to rtx_insn *.
31411 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
31413 * doc/install.texi (--enable-languages): Add missing jit and lto info.
31414 Add ^ to grep command.
31415 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
31416 arg to last gimple_simplify declaration. Add missing gimple_build
31417 declaration for built-in function case with four tree args.
31419 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31420 Szabolcs Nagy <szabolcs.nagy@arm.com>
31422 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
31423 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
31424 (GNU_USER_DYNAMIC_LINKERN32): Update.
31426 2015-05-08 Richard Biener <rguenther@suse.de>
31428 PR tree-optimization/66036
31429 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
31430 Handle strided group loads.
31431 (vect_verify_datarefs_alignment): Likewise.
31432 (vect_enhance_data_refs_alignment): Likewise.
31433 (vect_analyze_group_access): Likewise.
31434 (vect_analyze_data_ref_access): Likewise.
31435 (vect_analyze_data_ref_accesses): Likewise.
31436 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
31437 (vectorizable_load): Likewise.
31439 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
31441 * config/rs6000/rs6000.md: Require operand inequality in one
31444 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
31445 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
31447 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
31449 * config/rx/rx.md (movdi, movdf): Likewise.
31450 Likewise for define_peephole2s.
31452 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31454 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
31455 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
31456 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
31457 vtst_u64): Rewrite using gcc vector extensions.
31459 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31461 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
31462 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
31464 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
31466 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
31468 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
31470 * config/glibc-stdint.h (OPTION_MUSL): Define.
31471 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
31472 Change the definition based on OPTION_MUSL for 64 bit targets.
31473 * config/linux.h (OPTION_MUSL): Redefine.
31474 * config/alpha/linux.h (OPTION_MUSL): Redefine.
31475 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
31476 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
31478 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
31479 Szabolcs Nagy <szabolcs.nagy@arm.com>
31481 * config.gcc (LIBC_MUSL): New tm_defines macro.
31482 * config/linux.h (OPTION_MUSL): Define.
31483 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
31484 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
31485 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
31486 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
31487 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
31488 * config/linux.opt (mmusl): New option.
31489 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
31490 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
31491 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
31492 * configure: Regenerate.
31494 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
31495 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
31498 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
31499 * config/i386/knetbsd-gnu64.h: New file.
31501 2015-05-08 Marek Polacek <polacek@redhat.com>
31504 * doc/invoke.texi: Document -Woverride-init-side-effects.
31506 2015-05-07 Marek Polacek <polacek@redhat.com>
31509 * doc/invoke.texi: Document -Wshift-negative-value.
31511 2015-05-06 Aditya Kumar <hiraditya@msn.com>
31513 * gcov-tool.c (do_merge): Refactore to remove int ret.
31514 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
31515 !type == FUNC to type != FUNC.
31516 * reload.h (struct target_reload): Changee to type of
31517 x_spill_indirect_levels from bool to unsigned char.
31519 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
31521 * rtl.h (always_void_p): New function.
31522 * gengenrtl.c (always_void_p): Likewise.
31523 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
31524 with code foo are always VOIDmode.
31525 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
31526 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
31527 compare-elim.c, config/aarch64/aarch64.c,
31528 config/aarch64/aarch64.md, config/alpha/alpha.c,
31529 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
31530 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
31531 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
31532 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
31533 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
31534 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
31535 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
31536 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
31537 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
31538 config/ia64/vect.md, config/iq2000/iq2000.c,
31539 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
31540 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
31541 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
31542 config/mep/mep.c, config/microblaze/microblaze.c,
31543 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
31544 config/mn10300/mn10300.c, config/msp430/msp430.c,
31545 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
31546 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
31547 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
31548 config/rs6000/altivec.md, config/rs6000/rs6000.c,
31549 config/rs6000/rs6000.md, config/rs6000/vector.md,
31550 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
31551 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
31552 config/sh/sh.md, config/sh/sh_treg_combine.cc,
31553 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
31554 config/spu/spu.md, config/stormy16/stormy16.c,
31555 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
31556 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
31557 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
31558 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
31559 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
31560 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
31561 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
31562 var-tracking.c: Update calls accordingly.
31564 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
31567 PR middle-end/54303
31568 * varasm.c (function_mergeable_rodata_prefix): New function.
31569 (mergeable_string_section): Use it.
31570 (mergeable_constant_section): Use it.
31572 2015-05-07 Jeff Law <law@redhat.com>
31575 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31576 simplifier to narrow arithmetic.
31577 * generic-match-head.c: (types_match, single_use): New functions.
31578 * gimple-match-head.c: (types_match, single_use): New functions.
31580 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31582 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
31585 2015-05-07 Richard Biener <rguenther@suse.de>
31587 PR tree-optimization/66002
31588 * passes.def: Schedule another pass_merge_phi after ifcombine, right
31591 2015-05-07 Marek Polacek <polacek@redhat.com>
31592 Martin Uecker <uecker@eecs.berkeley.edu>
31594 * doc/invoke.texi: Document -fsanitize=bounds-strict.
31595 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
31596 into SANITIZE_NONDEFAULT.
31597 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
31599 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
31602 * config/alpha/alpha.c (alpha_override_options_after_change): New.
31603 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
31604 (alpha_override_options): Move align_loops, align_jumps and
31605 align_functions handling into alpha_override_options_after_change.
31607 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
31608 Chris Jones <chrisj@nvidia.com>
31609 Joshua Conner <jconner@nvidia.com>
31611 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
31612 linking of crtfastmath.o.
31613 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
31615 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
31617 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
31618 (cstore<mode>4_unsigned_imm): New expander.
31619 (cstore<mode>4): Remove empty constraint strings. Use the new
31622 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
31625 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
31628 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
31630 * config/aarch64/geniterators.sh: Use standard BRE in sed.
31632 2015-05-06 Alan Modra <amodra@gmail.com>
31635 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
31636 (UNSPEC_NOP): Define.
31637 (reload_vsx_from_gpr<mode>): Add missing DONE.
31638 (reload_gpr_from_vsx<mode>): Likewise.
31639 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
31640 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
31642 2015-05-06 Christian Bruel <christian.bruel@st.com>
31645 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
31646 align_jumps, align_functions into aarch64_override_options_after_change.
31648 2015-05-06 Richard Biener <rguenther@suse.de>
31650 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
31651 vect_transform_slp_perm_load to check if we support a permutation
31652 for basic-block vectorization.
31654 2015-05-06 Nick Clifton <nickc@redhat.com>
31656 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
31657 used, even if it is not being used as a frame pointer.
31659 2015-05-05 Jason Merrill <jason@redhat.com>
31661 * dwarf2out.c (gen_member_die): Don't emit anything for an
31662 anonymous class constructor.
31664 2015-05-05 David Malcolm <dmalcolm@redhat.com>
31666 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
31667 that it reflects the block structure.
31668 (afdo_propagate_edge): Likewise.
31669 (afdo_calculate_branch_prob): Likewise.
31670 (afdo_annotate_cfg): Likewise.
31671 * cfgcleanup.c (equal_different_set_p): Likewise.
31672 (try_crossjump_to_edge): Likewise.
31673 * cgraph.c (cgraph_node::verify_node): Likewise.
31674 * cgraphunit.c (expand_all_functions): Likewise.
31675 * config/i386/i386.c (ix86_expand_copysign): Likewise.
31676 (exact_dependency_1): Likewise.
31677 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
31678 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
31679 * gensupport.c (process_define_subst): Likewise.
31680 * lto-wrapper.c (merge_and_complain): Likewise.
31681 * tree-if-conv.c (if_convertible_bb_p): Likewise.
31682 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
31683 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
31684 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
31685 * tree-vect-loop.c (vectorizable_reduction): Likewise.
31686 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
31687 * tree-vect-stmts.c (vectorizable_shift): Likewise.
31688 * tree-vrp.c (vrp_finalize): Likewise.
31689 * tree.c (variably_modified_type_p): Likewise.
31691 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
31693 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
31694 on darwin12 and later.
31695 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
31696 file to pass -rdynamic on darwin12 and later.
31697 * config/darwin.opt (rdynamic): Add.
31699 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31701 * doc/extend.texi (C Extensions): Update menu for moved Variable
31702 Attributes and Type Attributes sections.
31704 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31707 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
31708 if rep_8byte stringop strategy was specified for 32-bit target.
31710 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
31713 * config/i386/i386.md (vector convert to float spltiter): Check for
31714 xmm16+, when splitting scalar float conversion.
31715 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
31717 2015-05-05 Nick Clifton <nickc@redhat.com>
31719 * config/msp430/msp430-opts.h (enum msp430_regions): New.
31720 * config/msp430/msp430.c (msp430_override_options): Complain if
31721 -mcode-region or -mdata-region is used on a non MSP430X.
31722 (msp430_section_attr): New function. Checks lower, upper and
31724 (msp430_attribute_table): Add lower, upper and either.
31725 (gen_prefix): New function. Generates a prefix for a section
31727 (msp430_select_section): New function - handles the choice of
31728 section for an object. Takes into account memory region
31729 attributes and options.
31730 (msp430_function_section): Use gen_prefix.
31731 (TARGET_SECTION_TYPE_FLAGS): Define.
31732 (msp430_section_type_flags): New function.
31733 (TARGET_ASM_UNIQUE_SECTION): Define.
31734 (msp430_unique_section): New function.
31735 (msp430_output_aligned_decl_common): New function.
31736 (msp430_do_not_relax_short_jumps): New function.
31737 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
31739 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
31740 * config/msp430/msp430-protos.h
31741 (msp430_do_not_relax_short_jumps): New prototype.
31742 (msp430_output_aligned_decl_common): New prototype.
31743 * config/msp430/msp430.md (length): New attribute.
31744 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
31745 then use a long code sequence for short jumps.
31746 * config/msp430/msp430.opt (mcode-region): New.
31747 (mdata-region): New.
31748 * doc/invoke.texi: Document new options.
31749 * doc/extend.texi: Document new attributes.
31751 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31753 * config/aarch64-protos.h (struct cpu_branch_cost): New.
31754 (tune_params): Add field branch_costs.
31755 (aarch64_branch_cost): Declare.
31756 * config/aarch64.c (generic_branch_cost): New.
31757 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
31758 (cortexa53_tunings): Likewise.
31759 (cortexa57_tunings): Likewise.
31760 (thunderx_tunings): Likewise.
31761 (xgene1_tunings): Likewise.
31762 (aarch64_branch_cost): Define.
31763 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
31765 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31767 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
31768 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
31769 * config/i386/i386.md: Ditto.
31770 * config/i386/winnt.c: Ditto.
31772 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
31774 * doc/extend.texi (__atomic Builtins): Move implementation details
31775 to the end of the description, rewrite opening paragraphs, state
31776 difference with __sync builtins, state C11/C++11 assumptions,
31777 weaken itemized descriptions, add explanation of memory model
31778 behaviour, expand description of compare-exchange, simplify text.
31780 2015-05-05 Renlin Li <renlin.li@arm.com>
31782 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
31784 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
31786 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
31787 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31788 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
31789 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
31790 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
31791 * configure: Regenerate.
31792 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
31793 * doc/install.texi (aarch64*-*-*): Document new
31794 --enable-fix-cortex-a53-843419 option.
31795 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
31796 and -mno-fix-cortex-a53-843419 options.
31798 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
31801 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
31803 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
31805 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
31806 fix overactive TYPE_MIN_VALUE check and add FIXME for type
31807 compatibility problems.
31809 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31811 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
31813 (cbranchsi4_reg): New.
31814 * config/microblaze/microblaze.c
31815 (microblaze_expand_conditional_branch_reg): New.
31816 * config/microblaze/microblaze-protos.h
31817 (microblaze_expand_conditional_branch_reg): New prototype.
31819 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
31821 * config/microblaze/microblaze.md (peephole2): New.
31823 2015-05-04 Jeff Law <law@redhat.com>
31826 2015-05-04 Jeff Law <law@redhat.com>
31828 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31829 simplifier to narrow arithmetic.
31830 * generic-match-head.c: (types_match, single_use): New functions.
31831 * gimple-match-head.c: (types_match, single_use): New functions.
31833 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
31836 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
31837 (split_branches): Likewise.
31839 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
31841 * common.opt (fdelete-null-pointer-checks): Init to -1.
31842 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
31843 override flag_delete_null_pointer_checks default.
31844 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
31845 behavior re address zero. Better document target-specific behavior.
31846 (-fisolate-errneous-paths-dereference): Mention relationship to
31847 -fdelete-null-pointer-checks.
31849 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31851 PR tree-optimization/65984
31852 * ubsan.c: Include tree-cfg.h.
31853 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
31854 stmt_could_throw_p test, rename can_throw variable to ends_bb.
31856 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31858 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
31859 to CONST_DOUBLE_P predicate.
31860 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
31861 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
31862 allow only operands that satisfy standard_sse_constant_p predicate.
31863 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
31864 to CONST_DOUBLE_P predicate.
31866 2015-05-04 Jeff Law <law@redhat.com>
31868 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
31869 simplifier to narrow arithmetic.
31870 * generic-match-head.c: (types_match, single_use): New functions.
31871 * gimple-match-head.c: (types_match, single_use): New functions.
31873 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
31875 * config/arm/arm.c: Restore bootstrap.
31877 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
31879 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
31880 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
31881 as CONST_WIDE_INT, not CONST_DOUBLE.
31882 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
31883 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
31884 (ix86_find_base_term): Do not check for CONST_DOUBLE.
31885 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
31886 (ix86_build_signbit_mask): Rewrite using wide ints.
31887 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
31888 (ix86_rtx_costs): Handle CONST_WIDE_INT.
31889 (find_constant): Ditto.
31890 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
31891 using gen_int_mode.
31892 * config/i386/predicates.md (x86_64_immediate_operand)
31893 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31894 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
31895 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
31896 (const0_operand): Also match const_wide_int.
31897 (constm1_operand): Ditto.
31898 (const1_operand): Ditto.
31900 2015-05-04 Richard Biener <rguenther@suse.de>
31902 PR tree-optimization/65965
31903 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
31904 store groups at gaps.
31906 2015-05-04 Richard Biener <rguenther@suse.de>
31908 PR tree-optimization/65935
31909 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
31910 then make sure to apply that swapping to the IL.
31912 2015-05-04 Jakub Jelinek <jakub@redhat.com>
31914 * Makefile.in (PATCHLEVEL_c): New variable.
31915 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
31916 expand the same way as if DEVPHASE_c was non-empty.
31918 2015-05-04 Kai Tietz <ktietz@redhat.com>
31921 * lto-wrapper.c (run_gcc): Open filename
31924 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
31926 * doc/extend.texi (Variable Attributes, Type Attributes): Move
31927 sections up in file, to immediately after the Function Attributes
31930 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
31932 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
31934 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31936 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
31937 (insert_partition_copy_on_edge): Adjust.
31938 (insert_rtx_to_part_on_edge): Likewise.
31939 (insert_part_to_rtx_on_edge): Likewise.
31941 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31943 * function.c (set_return_jump_label): Change type of argument to
31945 * function.h (set_return_jump_label): Adjust.
31947 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31949 * reload.h (struct reg_equivs_t): Change type of init to
31951 * ira.c (fix_reg_equiv_init): Adjust.
31952 * reload1.c (eliminate_regs_1): Likewise.
31953 (init_eliminable_invariants): Likewise.
31955 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31957 * cselib.c (fp_setter_insn): Take a rtx_insn *.
31958 * cselib.h (fp_setter_insn): Adjust.
31960 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31962 * recog.c (struct validate_replace_src_data): Change type of
31963 insn field to rtx_insn *.
31964 (validate_replace_src_group): Change type of argument to rtx_insn *.
31965 * recog.h (validate_replace_src_group): Adjust.
31967 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31969 * haifa-sched.c: Change the type of some variables to rtx_insn *.
31970 * sched-deps.c: Likewise.
31971 * sched-int.h: Likewise.
31972 * sched-rgn.c: Likewise.
31973 * sel-sched.c: Likewise.
31975 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31978 * config/i386/i386.c: Change the type of some arguments to
31980 * config/arm/arm.c: Likewise.
31982 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31984 * lra-constraints.c: Change type of some arguments to rtx_insn *.
31986 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31988 * regcprop.c (kill_autoinc_value): Change type of argument to
31991 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31993 * genrecog.c (print_subroutine): Adjust.
31994 * recog.c (get_bool_attr_mask_uncached): Likewise.
31995 * recog.h (struct recog_data_d): Change the type of insn to
31998 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32000 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
32002 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32004 * df-problems.c (df_set_note): Change type of argument to
32007 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32009 * builtins.c (expand_builtin_trap): Change type of local
32010 variable to rtx_insn *.
32011 (add_sched_insns_for_speculation): Likewise.
32012 (ix86_emit_save_regs): Likewise.
32013 (get_scratch_register_on_entry): Likewise.
32014 (ix86_emit_restore_reg_using_pop): Likewise.
32015 (ix86_emit_leave): Likewise.
32016 (ix86_emit_restore_regs_using_mov): Likewise.
32017 (ix86_expand_epilogue): Likewise.
32019 (rl78_alloc_physical_registers_umul): Likewise.
32020 * cselib.c (discard_useless_locs): Likewise.
32021 (cselib_invalidate_regno): Likewise.
32022 (cselib_invalidate_mem): Likewise.
32023 * function.c (expand_function_start): Likewise.
32024 (emit_use_return_register_into_block): Likewise.
32025 * gcse.c: Likewise.
32026 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
32027 * ifcvt.c (noce_get_alt_condition): Likewise.
32028 * loop-doloop.c (doloop_condition_get): Likewise.
32029 * lra-constraints.c (inherit_in_ebb): Likewise.
32030 * modulo-sched.c (sms_schedule_by_order): Likewise.
32031 * recog.c (next_insn_tests_no_inequality): Likewise.
32032 * reorg.c (emit_delay_sequence): Likewise.
32033 (update_reg_dead_notes): Likewise.
32034 (fix_reg_dead_note): Likewise.
32035 (fill_slots_from_thread): Likewise.
32036 (delete_computation): Likewise.
32038 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
32040 * doc/extend.texi (Variable Attributes): Add menu and proper
32041 @nodes to subsections. Move Microsoft Windows attributes to
32042 their own subsection.
32043 (Type Attributes): Reorganize introduction to remove duplicate
32044 list of attributes. Add menu and proper @nodes to subsections.
32045 Alphabetize the main table of common attributes.
32047 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
32049 * match.pd: New simplification patterns.
32050 (x + (x & 1)) -> ((x + 1) & ~1)
32051 (x & ~(x & y)) -> ((x & ~y))
32052 (x | ~(x | y)) -> ((x | ~y))
32054 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32056 * target.def (attribute_table): Mention that struct attribute_spec
32057 is defined in tree-core.h rather than tree.h
32058 * doc/tm.texi: Regenerate.
32060 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
32062 * genrecog.c (test): Rename to rtx_test. Update rest of file
32065 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
32067 PR translation/65959
32068 * params.h (DEFPARAM): Rename msgid to nocmsgid.
32070 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32072 * config/aarch64/aarch64-protos.h (tune_params):
32073 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
32074 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
32075 Return value depending on target.
32076 (generic_tunings): Initialize new target settings.
32077 (cortexa53_tunings): Likewise.
32078 (cortexa57_tunings): Likewise.
32079 (thunderx_tunings): Likewise.
32080 (xgene1_tunings): Likewise.
32082 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32084 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
32085 Make Cortex-A53 shift costs more accurate.
32087 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32089 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
32092 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
32094 * config/aarch64/aarch64.c (aarch64_rtx_costs):
32095 Calculate cost of op0 and op1 in PLUS and MINUS cases.
32097 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32099 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
32100 Add cost of op0 in the compare-with-fpzero case.
32102 2015-04-30 David Malcolm <dmalcolm@redhat.com>
32104 * builtins.c (fold_builtin_1): Remove spurious second
32106 * cgraph.h (symtab_node::get_availability): Likewise.
32107 * opts.c (common_handle_option): Remove spurious second semicolon.
32108 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
32109 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
32111 2015-04-30 Caroline Tice <cmtice@google.com>
32113 PR gcov-profile/65929
32114 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
32115 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
32116 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
32117 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
32118 * doc/tm.texi: Regenerate.
32119 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
32120 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
32121 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
32122 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
32124 2015-04-30 Marek Polacek <polacek@redhat.com>
32126 * varasm.c (handle_cache_entry): Fix logic.
32128 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32130 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
32131 (*extrsi5_insn_uxtw_alt): Likewise.
32132 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
32133 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
32136 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32138 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
32141 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32143 * config/aarch64/aarch64.md
32144 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
32145 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
32146 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
32147 appropriately. Handle alternative EON form.
32149 2015-04-30 Renlin Li <renlin.li@arm.com>
32151 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
32152 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
32154 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32157 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
32158 -fstrict-aliasing boundaries.
32160 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32162 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
32163 and [SU]MNEGL patterns.
32165 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32167 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
32168 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
32169 combined arithmetic-shift ops. Properly handle all shift and extend
32170 operations that can occur in combination with PLUS/MINUS.
32171 Rename maybe_fma to compound_p.
32172 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
32173 arithmetic and shift operations.
32175 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32177 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
32178 rather than arith_shift cost when costing ADD/MINUS of an
32181 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
32184 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
32187 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
32189 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
32190 are for the same position.
32192 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
32194 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
32196 (vectorize_loops): Use it.
32198 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32200 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
32201 for aggregate types.
32202 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
32203 type to be non_ODR.
32204 * tree.c (need_assembler_name_p): Compute mangled name for
32205 non-fundamental types and integer types.
32207 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
32209 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
32211 * expr.c (expand_expr_real_2): Likewise.
32213 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32215 * tree.c (build_common_builtin_nodes): Do not build
32216 __builtin_alloca_with_align as equivalent of library alloca.
32218 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
32220 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
32221 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
32223 * tree.c: Include print-tree.h and ipa-utils.h
32224 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
32225 (free_lang_data_in_cgraph): Call verify_type.
32226 (verify_type_variant): New function.
32227 (verify_type): New function.
32228 * tree.h (verify_type): Declare.
32230 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
32232 * config/mips/mips-cpus.def: (mips4): Change default processor
32233 from PROCESSOR_R8000 to PROCESSOR_R10000.
32235 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
32237 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
32238 la/jalr instead of jal.
32240 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
32243 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
32244 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
32245 (setcc+movzbl peephole2): Check also clobbered reg.
32246 (setcc+andl peephole2): Ditto.
32248 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32251 * config/nvptx/mkoffload.c (target_ilp32): New variable.
32252 (main): Set it depending on "-foffload-abi=[...]".
32253 (compile_native, main): Use it to pass "-m32" or "-m64" to the
32256 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32259 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
32260 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
32261 Flip lane index back at assembly time for bigendian.
32263 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
32265 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
32266 * gimplify.c (gimplify_omp_workshare): Use it.
32268 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32270 * Makefile.in (build/genrecog.o): Depend on inchash.h.
32271 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
32273 * genrecog.c: Rewrite most of the code except for the third page.
32275 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32277 * inchash.h, inchash.c: Include bconfig.h for build objects.
32278 * Makefile.in (build/inchash.o): New rule.
32280 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
32283 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
32284 number in type attribute expression.
32286 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
32288 * loop-iv.c (canon_condition): Generalize to all types of integer
32291 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
32293 * gimple-walk.c: Prune duplicate or unneeded includes.
32294 (walk_gimple_asm): Only call parse_input_constraint or
32295 parse_output_constraint if their findings are used.
32296 Honour parse_input_constraint and parse_output_constraint
32299 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
32301 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
32303 2015-04-29 Tom de Vries <tom@codesourcery.com>
32305 PR tree-optimization/65893
32306 * passes.def (pass_all_optimizations): Move pass_stdarg to after
32309 2015-04-29 Richard Biener <rguenther@suse.de>
32311 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
32312 compute GROUP_SIZE for basic-block SLP.
32313 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
32314 take into account gaps.
32315 (vect_get_mask_element): Properly reject references to previous
32317 (vect_transform_slp_perm_load): Likewise.
32319 2015-04-29 Christian Bruel <christian.bruel@st.com>
32322 * config/i386/i386.c (ix86_default_align): New function.
32323 (ix86_override_options_after_change): Call ix86_default_align.
32324 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
32325 (ix86_override_options_after_change): New function.
32327 2015-04-28 Jeff Law <law@redhat.com>
32329 * tree-ssa-dom.c (record_equality); Fix comment typos.
32331 2015-04-28 Tom de Vries <tom@codesourcery.com>
32333 PR tree-optimization/65887
32334 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
32336 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
32338 * doc/extend.texi (Declaring Attributes of Functions): Split into
32339 subsections by target. Alphabetize the table of common attributes.
32340 Rewrite some of the introductory text to reflect the new structure.
32341 Update some cross-references to point to the new subsections.
32342 (Attribute Syntax): Put paragraph about "__" naming here. Remove
32343 duplicate copies in the discussion of function, label, and type
32346 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
32349 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
32351 2015-04-28 Jason Merrill <jason@redhat.com>
32354 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
32355 (finalize_type_size): Respect TYPE_USER_ALIGN.
32356 (layout_type) [ARRAY_TYPE]: Likewise.
32358 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
32360 * config/arm/arm.md (*arm_movt): Fix type attribute.
32361 (*cmpsi_shiftsi): Likewise.
32362 (*cmpsi_shiftsi_swp): Likewise.
32363 (*movsicc_insn): Likewise.
32364 (*cond_move): Likewise.
32365 (*if_plus_move): Likewise.
32366 (*if_move_plus): Likewise.
32367 (*if_arith_move): Likewise.
32368 (*if_move_arith): Likewise.
32369 (*if_shift_move): Likewise.
32370 (*if_move_shift): Likewise.
32371 (*arm_movtas_ze): Likewise.
32372 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
32373 redundancy and type attribute.
32374 (*thumb2_movsi_insn): Fix type attribute.
32375 (*thumb2_addsi_short): Likewise.
32376 (thumb2_addsi3_compare0): Likewise.
32377 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
32378 attributes accordingly.
32380 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
32383 * function.c (pad_to_arg_alignment): Add parentheses.
32385 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
32387 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
32388 libgcc/config/frv/elf-lib.h.
32390 2015-04-28 Tom de Vries <tom@codesourcery.com>
32392 * tree-call-cdce.c: Fix example in header comment.
32394 2015-04-28 Richard Biener <rguenther@suse.de>
32396 PR tree-optimization/62283
32397 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
32398 fails fatally and we are vectorizing a basic-block simply
32399 cause the child to be constructed piecewise.
32400 (vect_analyze_slp_cost_1): Adjust.
32401 (vect_detect_hybrid_slp_stmts): Likewise.
32402 (vect_bb_slp_scalar_cost): Likewise.
32403 (vect_get_constant_vectors): For piecewise constructed
32404 constants place them after the last def.
32405 (vect_get_slp_defs): Adjust.
32406 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
32407 externals for basic-block vectorization.
32409 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
32412 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
32414 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
32415 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
32416 (AARCH64_TUNE_FMA_STEERING): Likewise.
32417 * config/aarch64/aarch64-cores.def: Set
32418 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
32419 FMUL/FMADD instructions.
32420 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
32421 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
32422 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
32423 * config/aarch64/cortex-a57-fma-steering.h: New file.
32424 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
32426 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
32428 * gensupport.c (std_preds): Add missing codes to address_operand entry.
32430 2015-04-28 Richard Biener <rguenther@suse.de>
32432 PR tree-optimization/65851
32433 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
32434 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
32435 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
32436 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
32437 (ccp_visit_phi_node): Adjust.
32438 (evaluate_stmt): For simplifications to SSA names return its
32439 lattice value if that isn't VARYING. Return immediately when
32440 simplified to a constant.
32441 (visit_assignment): Adjust.
32442 (ccp_visit_stmt): Likewise.
32444 2015-04-28 Tom de Vries <tom@codesourcery.com>
32446 PR tree-optimization/65818
32447 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
32450 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32452 * calls.c (save_fixed_argument_area): Don't check
32453 ARGS_GROW_DOWNWARD with the preprocessor.
32454 (restore_fixed_argument_area): Likewise.
32455 (mem_overlaps_already_clobbered_arg_p): Likewise.
32456 (check_sibcall_argument_overlap): Likewise.
32457 (expand_call): Likewise.
32458 (emit_library_call_value_1): Likewise.
32459 (store_one_arg): Likewise.
32460 * function.c (assign_parms): Likewise.
32461 (locate_and_pad_parm): Likewise.
32462 (pad_to_arg_alignment): Likewise.
32463 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32465 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32467 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
32468 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
32469 * calls.c (save_fixed_argument_area): Don't chekc if
32470 ARGS_GROW_DOWNWARD is defined.
32471 (restore_fixed_argument_area): Likewise.
32472 (mem_overlaps_already_clobbered_arg_p): Likewise.
32473 (check_sibcall_argument_overlap): Likewise.
32474 (expand_call): Likewise.
32475 (emit_library_call_value_1): Likewise.
32476 (store_one_arg): Likewise.
32477 * function.c (assign_parms): Likewise.
32478 (locate_and_pad_parm): Likewise.
32479 (pad_to_arg_alignment): Likewise.
32480 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
32482 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32484 * defaults.h (gen_epilogue): New function.
32485 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
32487 * cfgrtl.c (cfg_layout_finalize): Likewise.
32488 * df-scan.c: Likewise.
32489 * function.c (thread_prologue_and_epilogue_insns): Likewise.
32490 (reposition_prologue_and_epilogue_notes): Likewise.
32491 * reorg.c (find_end_label): Likewise.
32492 * toplev.c: Likewise.
32494 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32496 * bb-reorder.c (HAVE_return): Don't check if its undefined.
32497 * defaults.h (gen_simple_return): New function.
32498 (gen_simple_return): Likewise.
32499 (HAVE_return): Add default definition to false.
32500 (HAVE_simple_return): Likewise.
32501 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
32502 HAVE_return and HAVE_simple_return are defined.
32503 * function.c (gen_return_pattern): Likewise.
32504 (convert_jumps_to_returns): Likewise.
32505 (thread_prologue_and_epilogue_insns): Likewise.
32506 * reorg.c (find_end_label): Likewise.
32507 (dbr_schedule): Likewise.
32508 * shrink-wrap.c: Likewise.
32509 * shrink-wrap.h: Likewise.
32511 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32513 * defaults.h (EPILOGUE_USES): Add default definition of false.
32514 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
32515 * resource.c (init_resource_info): Likewise.
32517 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32519 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
32521 * dwarf2out.c (field_byte_offset): REmove check if
32522 PCC_BITFIELD_TYPE_MATTERS is defined.
32523 * stor-layout.c (layout_decl): Likewise.
32524 (update_alignment_for_field): Likewise.
32525 (place_field): Likewise.
32527 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32529 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
32531 * regrename.c (check_new_reg_p): Remove check if
32532 HARD_REGNO_RENAME_OK is defined.
32533 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
32535 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32537 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
32538 * cse.c (fold_rtx): Likewise.
32539 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
32540 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
32541 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
32542 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
32543 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
32544 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
32545 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
32546 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
32547 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
32548 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
32550 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
32551 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
32552 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
32553 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
32554 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
32555 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
32556 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
32557 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
32558 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
32559 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
32560 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
32561 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
32562 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
32563 * doc/tm.texi: Regenerate.
32564 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
32565 either true or false.
32567 2015-04-27 Jeff Law <law@redhat.com>
32569 PR tree-optimization/65217
32570 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
32571 of them has a single use, make sure it is the LHS of the implied
32574 2015-04-28 Alan Modra <amodra@gmail.com>
32577 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
32578 (offsettable_ok_by_alignment): Use minimum of decl and toc
32579 pointer alignment. Replace dead code with assertion.
32580 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
32581 case if size exceeds toc pointer alignment.
32582 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
32583 (rs6000_emit_move): Likewise.
32584 * configure.ac: Add linker toc pointer alignment check.
32585 * configure: Regenerate.
32586 * config.in: Regenerate.
32588 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
32590 * config.gcc: Add h8300-*-linux.
32591 * config/h8300/linux.h: New.
32592 * config/h8300/t-linux: New.
32593 * config/h8300/h8300.c (h8300_option_override): Normal mode
32594 is not supported for h8300-*-linux.
32595 (h8300_file_start): Target priority change.
32596 (get_shift_alg): Likewise.
32597 (h8300_shift_need_scratch_p): Likewise.
32598 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
32599 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
32601 2015-04-27 Caroline Tice <cmtice@google.com>
32603 * final.c (final_scan_insn): Output cold_function_name as function
32605 * varasm.c (cold_function_name): Make global.
32606 (assemble_start_function): Re-set cold_function_name.
32607 (assemble_end_function): Output cold partition size.
32608 * varasm.h (cold_function_name): Declare global.
32610 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
32612 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
32613 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
32615 (*movxi_internal_avx512f): Ditto.
32616 (define_split): Check for xmm16+, when splitting scalar float_extend.
32617 (*extendsfdf2_mixed): Use "v" constraint.
32618 (define_split): Check for xmm16+, when splitting scalar float_truncate.
32619 (*truncdfsf_fast_sse): Use "v" constraint.
32620 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
32621 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
32622 (define_peephole2): Check for xmm16+, when converting scalar
32624 (define_peephole2): Check for xmm16+, when converting scalar
32626 (*fop_<mode>_comm_mixed): Use "v" constraint.
32627 (*fop_<mode>_comm_sse): Ditto.
32628 (*fop_<mode>_1_mixed): Ditto.
32629 (*sqrt<mode>2_sse): Ditto.
32630 (*ieee_s<ieee_maxmin><mode>3): Ditto.
32632 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32634 * combine.c (simplify_if_then_else): Use std::swap instead
32635 of manually swapping.
32636 (known_cond): Likewise.
32637 (simplify_comparison): Likewise.
32639 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
32642 * config/rs6000/htm.md: Remove all define_expands.
32643 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
32644 UNSPECV_HTM_TABORTWCI): Remove.
32645 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
32646 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
32647 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
32648 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
32649 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
32650 tabortwci_internal): Remove define_insns.
32651 (tabort<wd>c, tabort<wd>ci): New define_insns.
32652 (tabort): Use gpc_reg_operand.
32653 (tcheck): Remove operand.
32654 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
32655 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
32657 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
32658 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
32659 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
32660 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
32661 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
32662 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
32663 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
32664 (tcheck): Remove builtin argument.
32665 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
32667 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
32668 tabortdc and tabortdci builtins when not in 64-bit mode.
32669 Modify code to handle the loss of the HTM define_expands.
32670 Emit code to copy the CR register to TARGET.
32671 (htm_init_builtins): Modify code to handle the loss of the HTM
32673 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
32674 (RS6000_BTC_64BIT): Likewise.
32675 (RS6000_BTC_CR): New macro.
32676 * doc/extend.texi: Update documentation for htm builtins.
32678 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32680 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
32681 of manually swapping.
32682 (simplify_associative_operation): Likewise.
32683 (simplify_binary_operation): Likewise.
32684 (simplify_plus_minus): Likewise.
32685 (simplify_relational_operation): Likewise.
32686 (simplify_ternary_operation): Likewise.
32688 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32690 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
32691 (xs_hi_nonmemory_operand): Remove error.
32692 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
32693 general_operand rather than xs_hi_general_operand.
32695 2015-04-27 Richard Biener <rguenther@suse.de>
32697 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
32698 (record_equivalences_from_stmt): Valueize rhs.
32699 (record_equality): Canonicalize x and y order via
32700 tree_swap_operands_p. Do not swap operands for same loop depth.
32702 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
32706 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
32707 Add hint how to use own spec file.
32709 2015-04-27 Jakub Jelinek <jakub@redhat.com>
32711 PR tree-optimization/65875
32712 * tree-vrp.c (update_value_range): If in is_new case setting
32713 old_vr to VR_VARYING, also set new_vr to it. Remove
32714 old_vr->type == VR_VARYING test.
32715 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
32716 SSA_PROP_INTERESTING if update_value_range returned true,
32717 but new range is VR_VARYING.
32719 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
32721 * combine.c (sign_extend_short_imm): New.
32722 (set_nonzero_bits_and_sign_copies): Use above new function for sign
32723 extension of src short immediate.
32724 (reg_nonzero_bits_for_combine): Likewise for tem.
32726 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32728 * stor-layout.c (self_referential_component_ref_p): New predicate.
32729 (copy_self_referential_tree_r): Use it.
32730 (self_referential_size): Punt for simple operations directly involving
32731 self-referential component references.
32732 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
32734 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
32736 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
32738 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
32740 * vec.h (vec): Make splice arguments const. Update definitions
32743 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
32745 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
32748 2015-04-26 Tom de Vries <tom@codesourcery.com>
32750 PR tree-optimization/65826
32751 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
32753 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
32755 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
32756 (*madd3<mode>): Ditto.
32757 (*msub4<mode>): Ditto.
32758 (*msub3<mode>): Ditto.
32759 (*nmadd4<mode>): Ditto.
32760 (*nmadd3<mode>): Ditto.
32761 (*nmadd4<mode>_fastmath): Ditto.
32762 (*nmadd3<mode>_fastmath): Ditto.
32763 (*nmsub4<mode>): Ditto.
32764 (*nmsub3<mode>): Ditto.
32765 (*nmsub4<mode>_fastmath): Ditto.
32766 (*nmsub3<mode>_fastmath): Ditto.
32768 2015-04-24 Jason Merrill <jason@redhat.com>
32771 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
32772 down when building TYPE_CANONICAL.
32773 (build_pointer_type_for_mode): Likewise.
32775 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
32777 * genrecog.c (validate_pattern): Check matching constraint refers
32778 to a lower numbered operand.
32780 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
32783 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
32784 save to independent variables use the Save attribute. This will
32785 allow these options to be modified with the #pragma/attribute
32787 (-mallow-movmisalign): Likewise.
32788 (-mallow-df-permute): Likewise.
32789 (-msched-groups): Likewise.
32790 (-malways-hint): Likewise.
32791 (-malign-branch-targets): Likewise.
32792 (-mvectorize-builtins): Likewise.
32793 (-msave-toc-indirect): Likewise.
32795 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
32796 can be set via the #pragma/attribute target support.
32797 (rs6000_opt_vars): Likewise.
32798 (rs6000_inner_target_options): If VSX was set, also set
32799 -mno-avoid-indexed-addresses.
32801 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32803 * config/arm/iterators.md (shiftable_ops): Rename to...
32804 (SHIFTABLE_OPS): ... This. Update use in comments.
32805 (ior_xor): Rename to...
32806 (IOR_XOR): ... This.
32807 (vqh_ops): Rename to...
32808 (VQH_OPS): ... This.
32809 (vqhs_ops): Rename to...
32810 (VQHS_OPS): ... This.
32811 (rshifts): Rename to...
32812 (RSHIFTS): ... This.
32813 (returns): Rename to...
32814 (RETURNS): ... This.
32815 * config/arm/arm.md: Update uses of the above.
32816 * config/arm/neon.md: Likewise.
32818 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32820 * config.host (case ${host}): Add aarch64*-*-linux case.
32821 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
32822 fields to all the cores.
32823 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
32824 Add MCPU_MTUNE_NATIVE_SPECS.
32825 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
32826 field to all extensions.
32827 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
32828 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
32829 Adjust definition of AARCH64_OPT_EXTENSION.
32830 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
32831 (MCPU_MTUNE_NATIVE_SPECS): Define.
32832 * config/aarch64/driver-aarch64.c: New file.
32833 * config/aarch64/x-arch64: New file.
32834 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
32837 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32838 Wei Mi <wmi@google.com>
32840 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
32841 * config/i386/i386.c (extract_base_offset_in_addr): New function.
32842 (ix86_operands_ok_for_move_multiple): Ditto.
32843 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
32844 (movlpd/movhpd to movupd peephole2): Ditto.
32846 2015-04-24 Marek Polacek <polacek@redhat.com>
32849 * input.h (from_macro_expansion_at): Define.
32852 * doc/invoke.texi: Update description of -Wlogical-op.
32854 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32856 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
32857 ternary operator in fprintf and harmonize spacing.
32859 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32861 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
32862 Mark operand1 commutative.
32864 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
32866 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
32867 input operands in memory.
32868 (*vec_concatv2si_sse4_1): Ditto.
32869 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
32870 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
32872 (vec_extract_hi_v32hi): Ditto.
32873 (vec_extract_hi_v64hi): Ditto.
32874 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
32876 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
32877 Steven Bosscher <steven@gcc.gnu.org>
32879 PR rtl-optimization/34503
32880 * cprop.c (cprop_reg_p): New.
32881 (hash_scan_set): Use above function to check if register can be
32883 (find_avail_set): Return up to two sets, one whose source is a
32884 register and one whose source is a constant. Sets are returned in an
32885 array passed as parameter rather than as a return value.
32886 (cprop_insn): Use a do while loop rather than a goto. Try each of the
32887 sets returned by find_avail_set, starting with the one whose source is
32888 a constant. Use cprop_reg_p to check if register can be propagated.
32889 (do_local_cprop): Use cprop_reg_p to check if register can be
32891 (implicit_set_cond_p): Likewise.
32893 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32895 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
32896 (sem_function::equals): IGNORED_NODES parameter is now unused;
32897 update call of equals_private.
32898 (sem_function::equals_private): Do not call equals_wpa; skip
32899 gimple body matching if there is no body.
32900 (sem_function::init): Add logic to hash tthunk info.
32901 (sem_function::parse): Also parse thunks.
32902 * ipa-icf.h (equals_private): Update declaration.
32904 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32906 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
32907 asterisk from name so this can be generated directly.
32908 (*altivec_stvx_<mode>_internal): Likewise.
32909 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
32910 that this is never called during or after reload/lra.
32911 (rs6000_frame_related): Remove split_reg
32912 argument and logic that references it.
32913 (emit_frame_save): Remove last parameter from call to
32914 rs6000_frame_related.
32915 (rs6000_emit_prologue): Remove last parameter from eight calls to
32916 rs6000_frame_related. Force generation of stvx instruction for
32917 Altivec register saves. Remove split_reg handling, which is no
32919 (rs6000_emit_epilogue): Force generation of lvx instruction for
32920 Altivec register restores.
32922 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
32924 * config/rs6000/rs6000.opt (mcrypto): Change option description to
32925 match category changes in ISA 2.07B.
32927 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32929 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
32931 (cmp_op, cmp_type): New code attributes.
32932 (NEON_VCMP, NEON_VACMP): New int iterators.
32933 (cmp_op_unsp): New int attribute.
32934 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
32935 (neon_vceq<mode>): Delete.
32936 (neon_vc<cmp_op><mode>_insn): New pattern.
32937 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
32938 (neon_vcgeu<mode>): Delete.
32939 (neon_vcle<mode>): Likewise.
32940 (neon_vclt<mode>: Likewise.
32941 (neon_vcage<mode>): Likewise.
32942 (neon_vcagt<mode>): Likewise.
32943 (neon_vca<cmp_op><mode>): New define_expand.
32944 (neon_vca<cmp_op><mode>_insn): New pattern.
32945 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
32947 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32949 * tree.h (attribute_value_equal): Declare.
32950 * tree.c (attribute_value_equal): Export.
32952 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32954 * ipa-icf.c (sem_item::compare_attributes): New function.
32955 (sem_item::compare_referenced_symbol_properties): Compare variable
32957 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
32958 (sem_function::param_used_p): New function.
32959 (sem_function::equals_wpa): Fix attribute comparsion; match
32960 parameter type codes; do not compare paremter flags when
32961 they are not used; compare edge flags; compare indirect calls.
32962 (sem_item::update_hash_by_addr_refs): Hash reference type.
32963 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
32964 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
32965 reference use type.
32966 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
32967 * ipa-icf.h (compare_attributes, param_used_p): Declare.
32969 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
32971 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
32973 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
32974 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
32975 (sem_item::compare_referenced_symbol_properties): New.
32976 (sem_item::hash_referenced_symbol_properties): New.
32977 (sem_item::compare_cgraph_references): Rename to ...
32978 (sem_item::compare_symbol_references): ... this one; use
32979 compare_referenced_symbol_properties.
32980 (sem_function::equals_wpa): Do not compare
32981 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
32982 DECL_IS_OPERATOR_NEW; compare pointer sizes.
32983 (sem_item::update_hash_by_addr_refs): Call
32984 hash_referenced_symbol_properties.
32985 (sem_item::update_hash_by_local_refs): Cleanup.
32986 (sem_function::merge): Do not mix up symbol properties.
32987 (sem_variable::equals_wpa): Use compare_symbol_references.
32988 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
32989 (sem_item::hash_referenced_symbol_properties): New.
32990 (sem_item::compare_symbol_references): New.
32991 (sem_item::compare_cgraph_references): Remove.
32993 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
32996 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
32997 Emit size of local.
32999 2015-04-23 Nick Clifton <nickc@redhat.com>
33001 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
33002 ATTRIBUTE_UNUSED to x parameter.
33003 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
33005 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33007 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
33008 TARGET_CRYPTO to TARGET_P8_VECTOR>
33009 (crypto_vpermxor_<mode>): Likewise.
33010 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
33011 (BU_CRYPTO_3A): Likewise.
33012 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
33013 (BU_CRYPTO_OVERLOAD_3A): New #define.
33014 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
33015 (VPMSUMH): Likewise.
33016 (VPMSUMW): Likewise.
33017 (VPMSUMD): Likewise.
33018 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
33019 (VPERMXOR_V4SI): Likewise.
33020 (VPERMXOR_V8HI): Likewise.
33021 (VPERMXOR_V16QI): Likewise.
33022 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
33023 BU_CRYPTO_OVERLOAD_2A.
33024 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
33025 BU_CRYPTO_OVERLOAD_3A.
33026 * config/rs6000/rs6000.opt (mcrypto): Change description of
33029 2015-04-23 Richard Biener <rguenther@suse.de>
33031 * passes.def: Remove copy propagation passes run directly after CCP.
33032 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
33034 (ccp_visit_phi_node): Rework to handle first executable edge
33037 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
33039 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33040 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33041 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
33042 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
33043 (thumb_legimitimize_reload_address): Remove.
33044 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
33046 (thumb_legimitimize_reload_address): Remove.
33048 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33050 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
33052 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33054 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
33056 (store_multiple): Likewise.
33058 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33060 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
33061 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
33062 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
33063 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
33064 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
33065 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
33066 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
33067 Specify issue_rate value.
33068 (arm_issue_rate): Look up issue rate from tuning structs. Remove
33069 large switch statement.
33070 (arm_marvell_pj4_tune): New struct.
33071 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
33074 2015-04-23 Richard Biener <rguenther@suse.de>
33076 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
33077 (vect_find_last_store_in_slp_instance): Rename to ...
33078 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
33079 (vect_analyze_slp_cost_1): Use vector_load for constant defs
33080 and vec_construct for external defs when estimating prologue cost.
33081 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
33082 Compute costs here only when vectorizing loops.
33083 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
33084 have been determined.
33085 (vect_schedule_slp_instance): Simplify vectorized code placement
33086 and prepare for in-BB external defs.
33087 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
33088 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
33089 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
33091 (vect_model_load_cost): Likewise.
33092 (vectorizable_store): Instead add it here.
33093 (vectorizable_load): Likewise.
33094 (vect_is_simple_use): Dump def type textually.
33096 2015-04-23 Richard Biener <rguenther@suse.de>
33098 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
33099 * cfgloop.c (verify_loop_structure): Verify the root loop node.
33100 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
33101 instead of get_eh_region_from_lp_number.
33102 * loop-init.c (fix_loop_structure): If we removed a loop, reset
33105 2015-04-23 Anton Blanchard <anton@samba.org>
33107 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
33108 need for -mprofile-kernel to save LR to stack.
33110 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33112 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
33114 (insn_is_swappable_p): Return 1 for a convert from double to
33115 single precision when all of its uses are splats of BE element
33118 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
33120 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
33122 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33125 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
33126 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
33127 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
33129 (rs6000_builtin_mask_for_load): Return 0 for targets with
33130 efficient unaligned VSX accesses so that the vectorizer will use
33131 direct unaligned loads.
33132 (rs6000_builtin_support_vector_misalignment): Always return true
33133 for targets with efficient unaligned VSX accesses.
33134 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
33135 stores on targets with efficient unaligned VSX accesses is almost
33136 always the same as the cost of an aligned load or store, so model
33138 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
33139 unaligned vectors if we have efficient unaligned VSX accesses.
33140 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
33141 undocumented option.
33143 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33146 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33148 * config.gcc (LIBC_MUSL): New tm_defines macro.
33149 * config/linux.h (OPTION_MUSL): Define.
33150 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33151 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33152 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33154 * config/linux.opt (mmusl): New option.
33155 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33156 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33158 * configure: Regenerate.
33160 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
33162 * config.gcc (LIBC_MUSL): New tm_defines macro.
33163 * config/linux.h (OPTION_MUSL): Define.
33164 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33165 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33166 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33168 * config/linux.opt (mmusl): New option.
33169 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33170 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33172 * configure: Regenerate.
33174 2015-04-22 Yury Gribov <y.gribov@samsung.com>
33176 * doc/invoke.texi (-fsanitize-sections): Update description.
33177 * asan.c (set_sanitized_sections): Parse incoming arg.
33178 (section_sanitized_p): Support wildcards.
33180 2015-04-22 Tom de Vries <tom@codesourcery.com>
33182 PR tree-optimization/65823
33183 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
33184 equality between ap_copy and ap.
33186 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33189 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
33191 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33194 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
33196 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33199 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
33200 remove already contained t-files.
33202 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33204 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
33205 Remove unneeded forward declarations.
33206 (suitable_for_tail_call_opt_p): Commentary typo fix.
33208 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33210 * varasm.c (emit_bss): Remove redundant guard.
33212 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33214 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
33216 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33218 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
33220 2015-04-22 Hale Wang <hale.wang@arm.com>
33221 Terry Guo <terry.guo@arm.com>
33223 PR rtl-optimization/64818
33224 * combine.c (can_combine_p): Don't combine user-specified
33225 register if it is in an asm input.
33227 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
33230 * passes.def (early_optimizations): Add pass_dse.
33232 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33234 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
33235 * reorg.c (redundant_insn): Remove ifdef
33236 INSN_REFERENCES_ARE_DELAYED.
33237 * resource.c (mark_referenced_resources): Likewise.
33239 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33241 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
33242 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
33243 * resource.c (mark_set_resources): Likewise.
33245 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33247 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
33248 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33249 (flow_find_head_matching_sequence): Likewise.
33250 (try_head_merge_bb): Likewise.
33251 * combine.c (can_combine_p): Likewise.
33252 (try_combine): Likewise.
33253 (distribute_notes): Likewise.
33254 * df-problems.c (can_move_insns_across): Likewise.
33255 * final.c (final): Likewise.
33256 * gcse.c (insert_insn_end_basic_block): Likewise.
33257 * ira.c (find_moveable_pseudos): Likewise.
33258 * reorg.c (try_merge_delay_insns): Likewise.
33259 (fill_simple_delay_slots): Likewise.
33260 (fill_slots_from_thread): Likewise.
33261 * sched-deps.c (sched_analyze_2): Likewise.
33263 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33265 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
33266 PIC_OFFSET_TABLE_REGNUM.
33268 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33270 * alias.c (init_alias_target): Remove ifdef
33271 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
33272 * df-scan.c (df_insn_refs_collect): Likewise.
33273 (df_get_regular_block_artificial_uses): Likewise.
33274 (df_get_eh_block_artificial_uses): Likewise.
33275 (df_get_entry_block_def_set): Likewise.
33276 (df_get_exit_block_use_set): Likewise.
33277 * emit-rtl.c (gen_rtx_REG): Likewise.
33278 * ira.c (ira_setup_eliminable_regset): Likewise.
33279 * reginfo.c (init_reg_sets_1): Likewise.
33280 * regrename.c (rename_chains): Likewise.
33281 * reload1.c (reload): Likewise.
33282 (eliminate_regs_in_insn): Likewise.
33283 * resource.c (mark_referenced_resources): Likewise.
33284 (init_resource_info): Likewise.
33286 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33288 * defaults.h (MASK_RETURN_ADDR): New definition.
33289 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33292 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33294 * defaults.h (RETURN_ADDR_OFFSET): New definition.
33295 * except.c (expand_builtin_extract_return_addr): Remove ifdef
33296 RETURN_ADDR_OFFSET.
33297 (expand_builtin_frob_return_addr): Likewise.
33299 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33301 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
33302 (try_redirect_by_replacing_jump): Likewise.
33303 (rtl_tidy_fallthru_edge): Likewise.
33304 * combine.c (insn_a_feeds_b): Likewise.
33305 (find_split_point): Likewise.
33306 (simplify_set): Likewise.
33307 * cprop.c (cprop_jump): Likewise.
33308 * cse.c (cse_extended_basic_block): Likewise.
33309 * df-problems.c (can_move_insns_across): Likewise.
33310 * function.c (emit_use_return_register_into_block): Likewise.
33311 * haifa-sched.c (sched_init): Likewise.
33312 * ira.c (find_moveable_pseudos): Likewise.
33313 * loop-invariant.c (find_invariant_insn): Likewise.
33314 * lra-constraints.c (curr_insn_transform): Likewise.
33315 * postreload.c (reload_combine_recognize_const_pattern):
33317 * reload.c (find_reloads): Likewise.
33318 * reorg.c (delete_scheduled_jump): Likewise.
33319 (steal_delay_list_from_target): Likewise.
33320 (steal_delay_list_from_fallthrough): Likewise.
33321 (redundant_insn): Likewise.
33322 (fill_simple_delay_slots): Likewise.
33323 (fill_slots_from_thread): Likewise.
33324 (delete_computation): Likewise.
33325 * sched-rgn.c (add_branch_dependences): Likewise.
33327 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33329 * genconfig.c (main): Always define HAVE_cc0.
33330 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
33332 * cfgcleanup.c (flow_find_cross_jump): Likewise.
33333 (flow_find_head_matching_sequence): Likewise.
33334 (try_head_merge_bb): Likewise.
33335 * cfgrtl.c (rtl_merge_blocks): Likewise.
33336 (try_redirect_by_replacing_jump): Likewise.
33337 (rtl_tidy_fallthru_edge): Likewise.
33338 * combine.c (do_SUBST_MODE): Likewise.
33339 (insn_a_feeds_b): Likewise.
33340 (combine_instructions): Likewise.
33341 (can_combine_p): Likewise.
33342 (try_combine): Likewise.
33343 (find_split_point): Likewise.
33345 (simplify_set): Likewise.
33346 (distribute_notes): Likewise.
33347 * cprop.c (cprop_jump): Likewise.
33348 * cse.c (cse_extended_basic_block): Likewise.
33349 * df-problems.c (can_move_insns_across): Likewise.
33350 * final.c (final): Likewise.
33351 (final_scan_insn): Likewise.
33352 * function.c (emit_use_return_register_into_block): Likewise.
33353 * gcse.c (insert_insn_end_basic_block): Likewise.
33354 * haifa-sched.c (sched_init): Likewise.
33355 * ira.c (find_moveable_pseudos): Likewise.
33356 * loop-invariant.c (find_invariant_insn): Likewise.
33357 * lra-constraints.c (curr_insn_transform): Likewise.
33358 * optabs.c (prepare_cmp_insn): Likewise.
33359 * postreload.c (reload_combine_recognize_const_pattern):
33361 * reload.c (find_reloads): Likewise.
33362 (find_reloads_address_1): Likewise.
33363 * reorg.c (delete_scheduled_jump): Likewise.
33364 (steal_delay_list_from_target): Likewise.
33365 (steal_delay_list_from_fallthrough): Likewise.
33366 (try_merge_delay_insns): Likewise.
33367 (redundant_insn): Likewise.
33368 (fill_simple_delay_slots): Likewise.
33369 (fill_slots_from_thread): Likewise.
33370 (delete_computation): Likewise.
33371 (relax_delay_slots): Likewise.
33372 * sched-deps.c (sched_analyze_2): Likewise.
33373 * sched-rgn.c (add_branch_dependences): Likewise.
33375 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33377 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
33378 that is trivially ded on non cc0 targets.
33379 (simplify_set): Likewise.
33380 (mark_used_regs_combine): Likewise.
33381 * cse.c (new_basic_block): Likewise.
33382 (fold_rtx): Likewise.
33383 (cse_insn): Likewise.
33384 (cse_extended_basic_block): Likewise.
33385 (set_live_p): Likewise.
33386 * rtlanal.c (canonicalize_condition): Likewise.
33387 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
33389 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33391 * conditions.h: Define macros even if HAVE_cc0 is undefined.
33392 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
33393 * final.c: Likewise.
33394 * jump.c: Likewise.
33395 * recog.c: Likewise.
33396 * recog.h: Declare functions even when HAVE_cc0 is undefined.
33397 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
33399 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33401 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
33402 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
33403 * builtins.c (expand_builtin): Remove check if
33404 EH_RETURN_DATA_REGNO is defined.
33405 * df-scan.c (df_bb_refs_collect): Likewise.
33406 (df_get_exit_block_use_set): Likewise.
33407 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
33408 * ira-lives.c (process_bb_node_lives): Likewise.
33409 * lra-lives.c (process_bb_lives): Likewise.
33411 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33413 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
33414 FIRST_PSEUDO_REG): New.
33415 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
33416 (ARG_POINTER_REGNUM): Define to ARGP_REG.
33417 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
33418 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
33419 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
33420 (FIRST_INT_REG): New.
33421 (LAST_INT_REG): New.
33422 (FIRST_*_REG): Define using *_REG.
33423 (LAST_*_REG): Ditto.
33424 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
33425 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
33426 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
33428 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33430 * expmed.c: (synth_mult): Only assume overlapping
33431 shift with previous steps in alg_sub_t_m2 case.
33433 2015-04-21 Richard Biener <rguenther@suse.de>
33435 PR tree-optimization/65650
33436 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
33437 transitions involving copies.
33438 (set_lattice_value): Adjust for copy lattice state.
33439 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
33440 if that doesn't dominate the merge point.
33441 (bit_value_unop): Adjust what we treat as varying mask.
33442 (bit_value_binop): Likewise.
33443 (bit_value_assume_aligned): Likewise.
33444 (evaluate_stmt): When we simplified to a SSA name record a copy
33445 instead of dropping to varying.
33446 (visit_assignment): Simplify.
33448 * gimple-match.h (gimple_simplify): Add another callback.
33449 * gimple-fold.c (fold_stmt_1): Adjust caller.
33450 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
33451 for the 2nd callback.
33452 * gimple-match-head.c (gimple_simplify): Add a callback that is
33453 used to valueize the stmt operands and use it that way.
33455 2015-04-21 Richard Biener <rguenther@suse.de>
33457 PR tree-optimization/65788
33458 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
33460 2015-04-21 Richard Biener <rguenther@suse.de>
33462 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
33463 vec_construct cost by vec_stmt_cost.
33465 2015-04-21 Richard Biener <rguenther@suse.de>
33467 * cfghooks.h (create_basic_block): Replace with two overloads
33468 for RTL and GIMPLE.
33469 (split_block): Likewise.
33470 * cfghooks.c (split_block): Rename to ...
33471 (split_block_1): ... this.
33472 (split_block): Add two type-safe overloads for RTL and GIMPLE.
33473 (split_block_after_labels): Call split_block_1.
33474 (create_basic_block): Rename to ...
33475 (create_basic_block_1): ... this.
33476 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
33477 (create_empty_bb): Call create_basic_block_1.
33478 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
33479 split_block_after_labels.
33480 * omp-low.c (expand_parallel_call): Likewise.
33481 (expand_omp_target): Likewise.
33482 (simd_clone_adjust): Likewise.
33483 * tree-chkp.c (chkp_get_entry_block): Likewise.
33484 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
33485 create_basic_block overload.
33486 (cgraph_node::expand_thunk): Likewise.
33487 * tree-cfg.c (make_blocks): Likewise.
33488 (handle_abnormal_edges): Likewise.
33489 * tree-inline.c (copy_bb): Likewise.
33491 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33493 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
33495 (*xor_one_cmplsidi3_ze): Likewise.
33497 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
33499 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
33500 use df_remove_problem rather than manually removing problems, leaving
33501 holes in df->problems_in_order[].
33503 2015-04-21 Tom de Vries <tom@codesourcery.com>
33505 PR tree-optimization/65802
33506 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
33508 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33510 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
33512 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
33513 at '.'. Assert that there's enough space for everything.
33515 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
33517 PR tree-optimization/64950
33519 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
33522 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
33525 2015-04-20 Shiva Chen <shiva0217@gmail.com>
33527 PR rtl-optimization/64916
33528 * cfgcleanup.c (values_equal_p): New function.
33529 (can_replace_by): Use it.
33531 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
33534 * doc/invoke.texi ([-Wnarrowing]): Update.
33536 2015-04-20 Jeff Law <law@redhat.com>
33538 PR tree-optimization/65658
33539 * tree-ssa-threadupdate.c (redirection_block_p): Remove
33540 redundant test for GIMPLE_ASSIGN in last change.
33542 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
33544 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
33545 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
33546 (legitimize_tls_address): Ditto.
33547 (ix86_expand_move): Ditto.
33548 (ix86_expand_binary_operator): Remove reload_in_progress checks.
33549 (ix86_expand_unary_operator): Ditto.
33550 * config/i386/predicates.md (index_register_operand): Ditto.
33552 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
33554 * reorg.c (try_merge_delay_insns): Improve correctness checking
33555 for targets with multiple delay slots.
33557 2015-04-20 Jeff Law <law@redhat.com>
33559 PR tree-optimization/65658
33560 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
33563 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33565 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
33566 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
33569 2015-04-20 Jakub Jelinek <jakub@redhat.com>
33572 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
33574 2015-04-20 Richard Biener <rguenther@suse.de>
33576 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
33577 * gimple-fold.c (gimple_build_valueize): New function.
33578 (gimple_build): Always use gimple_build_valueize as valueize hook.
33580 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
33583 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
33584 and overwrite variable parts if <= 1/2 the elements are variable.
33586 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
33588 PR rtl-optimization/65805
33589 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
33590 Don't use difference of offset and previous offset if
33591 update_sp_offset is non-zero.
33592 (eliminate_regs_in_insn): Ditto.
33593 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
33594 lra_eliminate_regs_1 call.
33595 * lra-constraints.c (get_equiv_with_elimination): Ditto.
33597 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
33599 * hash-table.h: Remove version of hash_table that stored value_type *.
33600 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
33601 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
33602 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
33603 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
33604 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
33605 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
33606 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
33607 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
33608 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
33609 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
33610 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
33611 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
33612 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
33613 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
33614 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
33615 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
33617 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
33618 Jakub Jelinek <jakub@redhat.com>
33621 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
33622 subsequent SH_NONE operand does not overwrite an existing *special
33624 (adjust_extract): Handle case where a vec_extract operation is
33625 wrapped in a PARALLEL.
33627 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33630 * config/i386/i386.c (ix86_binds_local_p): Define only if
33631 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
33633 2015-04-17 Jeff Law <law@redhat.com>
33635 PR tree-optimization/47679
33636 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
33637 * tree-ssa-scopedtables.c: New file.
33638 * tree-ssa-scopedtables.h: New file.
33639 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
33640 (const_and_copies): Change name/type.
33641 (record_const_or_copy): Move into tree-ssa-scopedtables.c
33642 (record_const_or_copy_1): Similarly.
33643 (restore_vars_to_original_value): Similarly.
33644 (pass_dominator::execute): Create and destroy const_and_copies table.
33645 (thread_across_edge): Update passing of const_and_copies.
33646 (record_temporary_equivalence): Use method calls rather than
33647 manipulating const_and_copies directly.
33648 (record_equality, cprop_into_successor_phis): Similarly.
33649 (dom_opt_dom_walker::before_dom_children): Similarly.
33650 (dom_opt_dom_walker::after_dom_children): Similarly.
33651 (eliminate_redundant_computations): Similarly.
33652 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
33653 (record_temporary_equivalence): Likewise.
33654 (invalidate_equivalences): Likewise.
33655 (record_temporary_equivalences_from_phis): Update due to type
33656 change of const_and_copies. Use method calls rather than
33657 manipulating the stack directly.
33658 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
33659 (thread_through_normal_block, thread_across_edge): Likewise.
33660 (thread_across_edge): Likewise.
33661 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
33662 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
33664 (identify_jump_threads): Update due to type change of equiv_stack.
33665 (finalize_jump_threads): Delete the equiv_stack when complete.
33667 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
33669 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
33670 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
33671 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
33673 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
33676 * config.gcc: Exit with a comment when we do not have a major version
33677 number for the FreeBSD target.
33679 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33682 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
33683 maybe_allows_mem bitfields.
33684 (maybe_allows_none_start, maybe_allows_none_end,
33685 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
33686 maybe_allows_mem_end): New variables.
33687 (compute_maybe_allows): New function.
33688 (add_constraint): Use it to initialize maybe_allows_reg and
33689 maybe_allows_mem fields.
33690 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
33691 is_address constraints such that those that allow neither mem nor
33692 reg come first, then those that only allow reg but not mem, then
33693 those that only allow mem but not reg, then the rest.
33694 (write_allows_reg_mem_function): New function.
33695 (write_tm_preds_h): Call it.
33696 * stmt.c (parse_output_constraint, parse_input_constraint): Use
33697 the generated insn_extra_constraint_allows_reg_mem function
33698 instead of always setting *allows_reg = true; *allows_mem = true;
33699 for unknown extra constraints.
33701 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
33704 * output.h (default_binds_local_p_3): New.
33705 * varasm.c (default_binds_local_p_3): Make it public. Take an
33706 argument to indicate if common symbol may be local. If common
33707 symbol may be local, treat non-external variable as defined
33709 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
33710 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
33711 * config/i386/i386.c (ix86_binds_local_p): New.
33712 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
33713 ix86_binds_local_p.
33715 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33718 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
33719 trying mem_loc_descriptor on XEXP (rtl, 0).
33721 2015-04-17 Martin Liska <mliska@suse.cz>
33723 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
33724 Release symbol_compare_collection.
33725 * ipa-reference.c: Add TODO that a vector should be released.
33727 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
33730 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
33731 to new AVR-LibC file layout (bug #44574).
33732 (*avrlibc_devicelib): Same.
33733 * config/avr/avr-mcus.def: Adjust comments.
33734 * config/avr/avr.opt (nodevicelib): Adjust help.
33736 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
33738 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
33740 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
33743 * gimplify.c (gimplify_init_constructor): Always emit a
33744 side-effecting constructor.
33746 2015-04-17 Tom de Vries <tom@codesourcery.com>
33748 PR tree-optimization/64950
33749 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
33750 in cfun->curr_properties.
33751 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
33752 if we generate an IFN_VA_ARG.
33753 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
33754 function if PROP_gimple_lva is not set in src function.
33756 2015-04-17 Tom de Vries <tom@codesourcery.com>
33757 Michael Matz <matz@suse.de>
33759 PR tree-optimization/64950
33760 * gimple-iterator.c (update_modified_stmts): Remove static.
33761 * gimple-iterator.h (update_modified_stmts): Declare.
33762 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
33763 (gimplify_va_arg_internal): New function.
33764 (gimplify_va_arg_expr): Use IFN_VA_ARG.
33765 * gimplify.h (gimplify_va_arg_internal): Declare.
33766 * internal-fn.c (expand_VA_ARG): New unreachable function.
33767 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
33768 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
33769 (expand_ifn_va_arg): New function.
33770 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
33771 (pass_stdarg::execute): Call expand_ifn_va_arg.
33772 (pass_data_lower_vaarg): New pass_data.
33773 (pass_lower_vaarg): New gimple_opt_pass.
33774 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
33775 (make_pass_lower_vaarg): New function.
33776 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
33777 properties_required field.
33778 * passes.def (all_passes): Add pass_lower_vaarg.
33779 * tree-pass.h (PROP_gimple_lva): Add define.
33780 (make_pass_lower_vaarg): Declare.
33782 2015-04-17 Tom de Vries <tom@codesourcery.com>
33784 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
33785 * calls.c (call_expr_flags): Same.
33787 2015-04-17 Tom de Vries <tom@codesourcery.com>
33789 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
33790 (pass_stdarg::execute): ... here.
33792 2015-04-17 Tom de Vries <tom@codesourcery.com>
33793 Michael Matz <matz@suse.de>
33795 * tree-cfg.c (make_blocks_1): Factor out of ...
33796 (make_blocks): ... here.
33797 (make_edges_bb): Factor out of ...
33798 (make_edges): ... here.
33799 (gimple_find_sub_bbs): New function.
33800 * tree-cfg.h (gimple_find_sub_bbs): Declare.
33802 2015-04-17 Tom de Vries <tom@codesourcery.com>
33804 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
33806 2015-04-17 Yury Gribov <y.gribov@samsung.com>
33808 * asan.c (set_sanitized_sections): New function.
33809 (section_sanitized_p): Ditto.
33810 (asan_protect_global): Optionally sanitize user-defined
33812 * asan.h (set_sanitized_sections): Declare new function.
33813 * common.opt (fsanitize-sections): New option.
33814 * doc/invoke.texi (-fsanitize-sections): Document new option.
33815 * opts-global.c (handle_common_deferred_options): Handle new
33818 2015-04-17 Jakub Jelinek <jakub@redhat.com>
33821 * dwarf2out.c (loc_list_from_tree): Return NULL
33822 for DEBUG_EXPR_DECL.
33824 2015-04-17 Christian Bruel <christian.bruel@st.com>
33826 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
33829 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
33831 * ira-color.c (setup_left_conflict_sizes_p): Do not process
33832 node itself when computing left conflict subnode size.
33834 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33836 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
33837 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
33838 *fop_<mode>_1_sse using enabled attribute. Use
33839 register_mixssei387nonimm_operand operand 1 predicate. Change
33840 alternative 3 constraints from "x" to "v".
33842 2015-04-16 Richard Biener <rguenther@suse.de>
33844 PR tree-optimization/65774
33845 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
33846 bit-value tracking on.
33848 2015-04-16 Richard Biener <rguenther@suse.de>
33850 PR tree-optimization/64277
33851 * tree-vrp.c (check_array_ref): Fix anti-range handling,
33852 simplify upper bound handling.
33853 (search_for_addr_array): Simplify.
33854 (check_array_bounds): Handle ADDR_EXPRs here.
33855 (check_all_array_refs): Simplify.
33857 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
33859 * config/i386/i386.c (print_reg): Rewrite function.
33861 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
33863 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
33864 Invert the condition.
33866 2015-04-16 Renlin Li <renlin.li@arm.com>
33868 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
33869 simplifications for UNSIGNED_FLOAT.
33871 2015-04-16 Nick Clifton <nickc@redhat.com>
33873 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
33875 (enum rl78_cpu_type): New.
33876 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
33877 (umulhi3_shift_virt): Remove m constraint from operand 1.
33878 (umulqihi3_virt): Likewise.
33879 * config/rl78/rl78.c (rl78_option_override): Add code to process
33880 -mcpu and -mmul options.
33881 (rl78_alloc_physical_registers): Add code to handle divhi and
33882 divsi valloc attributes.
33883 (set_origin): Likewise.
33884 * config/rl78/rl78.h (RL78_MUL_G14): Define.
33885 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
33886 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
33888 (ASM_SPEC): Pass -mcpu on to assembler.
33889 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
33890 (mulqi3_rl78): Likewise.
33891 (mulhi3_g13): Likewise.
33892 (mulhi3): Generate the G13 or G14 versions of the insn directly.
33893 (mulsi3): Likewise.
33894 (mulhi3_g14): Add clobbers of AX and BC.
33895 (mulsi3_g14): Likewise.
33896 (mulsi3_g13): Likewise.
33897 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
33898 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
33899 * config/rl78/rl78.opt (mmul): Initialise value to
33901 (mcpu): New option.
33902 (m13, m14, mrl78): New option aliases.
33903 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
33904 (MULTILIB_DIRNAMES): Add g13 and g14.
33905 * doc/invoke.texi: Document -mcpu and -mmul options.
33907 2015-04-16 Richard Biener <rguenther@suse.de>
33909 * tree-ssa-ccp.c (likely_value): See if we have operands that
33910 are marked as never simulate again and return CONSTANT in this
33912 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
33913 not have any operands that will be simulated again as
33914 not being simulated again.
33916 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
33918 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
33919 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
33920 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
33922 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
33924 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
33925 *float<SWI48:mode><MODEF:mode>2_sse.
33926 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
33928 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
33931 2015-04-15 Tom de Vries <tom@codesourcery.com>
33934 * function.c (push_dummy_function): New function.
33935 (init_dummy_function_start): Use push_dummy_function.
33936 (pop_dummy_function): New function. Factored out of ...
33937 (expand_dummy_function_end): ... here.
33938 * function.h (push_dummy_function, pop_dummy_function): Declare.
33939 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
33940 pop_dummy_function.
33941 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
33943 2015-04-15 Jeff Law <law@redhat.com>
33945 PR tree-optimization/47679
33946 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
33947 need for forward declaration in upcoming changes.
33948 (record_conditions, record_edge_info): Likewise.
33950 PR rtl-optimization/42522
33951 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
33952 SIGN_EXTRACT as a whole object rather than simplifying
33955 2015-04-15 Jakub Jelinek <jakub@redhat.com>
33958 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
33959 and GIMPLE_PREDICT use break instead of return true. For
33960 GIMPLE_EH_DISPATCH, compare dispatch region.
33962 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
33964 * doc/extend.texi (__sync Builtins): Simplify some text. Update
33965 details about the implementation. Make clear preference for
33966 __atomic builtins. Reduce possibility of future change.
33968 2015-04-15 Nick Clifton <nickc@redhat.com>
33970 * config/rx/rx.opt (mallow-string-insns): New option.
33971 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
33972 builtin if string instructions are denied.
33973 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
33974 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
33976 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
33977 * config/rx/rx.md (movstr): Enable pattern only if string
33978 instructions are allowed.
33979 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
33980 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
33981 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
33982 (MULTILIB_DIRNAMES): Add no-strings.
33983 * doc/invoke.texi: Document -mno-allow-string-insns.
33985 2015-04-15 Alan Modra <amodra@gmail.com>
33989 PR middle-end/36043
33990 * calls.c (load_register_parameters): Don't load past end of
33991 mem unless suitably aligned.
33993 2015-04-15 Nick Clifton <nickc@redhat.com>
33995 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
33996 decrement instruction as being frame related.
33997 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
33999 If zero extending a function address enclose the operation in
34001 (rl78_preferred_reload_class): New function.
34002 (TARGET_PREFERRED_RELOAD_CLASS): Define.
34003 * config/rl78/rl78.md: Remove useless constraints in expanders.
34004 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
34005 (mulhi3_rl78): Likewise.
34006 (mulhi3_g13): Likewise.
34007 (mulsi3_rl78): Likewise.
34008 (es_addr): Move to before the multiply patterns.
34010 2015-04-15 Alan Modra <amodra@gmail.com>
34012 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
34013 and sequence_stack. Add seq.
34014 (seq_stack): Delete.
34015 * function.c (prepare_function_start): Don't access x_last_insn.
34016 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
34017 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
34018 * emit_rtl.c (start_sequence, push_topmost_sequence,
34019 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
34020 sequence accessors.
34021 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
34022 remove_insn): Likewise. Simplify.
34023 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
34024 and pop_topmost_sequence.
34025 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
34027 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
34029 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
34032 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
34035 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34037 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
34038 (LEGACY_INT_REGNO_P): Ditto.
34039 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
34040 (ANY_MASK_REG_P): Remove.
34041 (BND_REG_P): Rename from ANY_BND_REG_P.
34042 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
34043 legacy integer registers. Do not handle MMX_REG_P in a special way.
34044 Merge 64byte and 32byte SSE handling.
34046 2015-04-14 Nick Clifton <nickc@redhat.com>
34048 * expr.c (expand_assignment): Force an address offset computation
34049 into a register before changing its mode.
34050 (expand_expr_real_1): Likewise.
34052 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
34054 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
34055 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
34056 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
34057 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
34058 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
34059 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
34060 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
34061 and __aarch64_vget_lane_any.
34063 2015-04-14 Jakub Jelinek <jakub@redhat.com>
34065 PR rtl-optimization/65761
34066 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
34067 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
34069 2015-04-14 Richard Biener <rguenther@suse.de>
34071 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
34072 (graphite_can_represent_scev): Use POINTER_TYPE_P.
34074 2015-04-14 Richard Biener <rguenther@suse.de>
34076 PR tree-optimization/65758
34077 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
34079 (ccp_lattice_meet): Likewise.
34080 (bit_value_unop): Likewise.
34081 (bit_value_binop): Likewise.
34082 (bit_value_assume_aligned): Likewise.
34084 2015-04-14 Christian Bruel <christian.bruel@st.com>
34086 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
34089 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
34091 PR tree-optimization/63387
34092 * match.pd ((x unord x) | (y unord y) -> (x unord y),
34093 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
34095 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
34097 * config/i386/predicates.md (any_QIreg_operand): Rename from
34098 q_regs_operand. Do not process subregs.
34099 (QIreg_operand): Use QI_REGNO_P predicate.
34100 (ext_QIreg_operand): Ditto.
34101 (ext_register_operand): Ditto.
34102 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
34103 (AND splitters): Ditto.
34104 (AND with -65536 splitter): Add SWI48 mode for operand 0.
34105 (AND with -256 splitter): Use any_QIreg_operand predicate and
34106 SWI248 mode for operand 0.
34107 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
34108 mode for operand 0.
34109 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
34111 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
34113 * doc/plugins.texi: Rewrite first introductory paragraph.
34115 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34117 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
34118 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
34120 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34122 * ipa-profie.c (ipa_profile): Check number of parameters
34123 and possible polymorphic call targets before
34126 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
34128 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
34129 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
34131 2015-04-13 Richard Biener <rguenther@suse.de>
34133 PR tree-optimization/65204
34134 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
34135 takens for bit-CCP.
34137 2015-04-13 Richard Biener <rguenther@suse.de>
34140 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
34141 and cond_not_taken_branch_cost to 4 and 2.
34142 (bdver2_cost): Likewise.
34143 (bdver3_cost): Likewise.
34144 (bdver4_cost): Likewise.
34146 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34148 * hash-table.h (hash_table constructor): Add mem stats.
34149 (alloc_entries): Likewise.
34151 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34153 * ipa-cp.c (ipcp_driver): Relase prev_edge.
34154 * passes.c (execute_one_pass): Only add transform if pass has one.
34156 2015-04-12 Joseph Myers <joseph@codesourcery.com>
34158 * config/i386/i386.c (ix86_option_override_internal): Don't set
34159 -fprefetch-loop-arrays if optimizing for size.
34161 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
34162 Gerald Pfeifer <gerald@pfeifer.com>
34164 * doc/contrib.texi (Contributors): Add Martin Jambor and
34167 2015-04-12 Jakub Jelinek <jakub@redhat.com>
34169 * BASE-VER: Set to 6.0.0.
34171 PR tree-optimization/65747
34172 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
34173 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
34175 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34177 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
34178 sentence. Improve grammar.
34180 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
34182 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
34184 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34187 * ipa-inline-transform.c (speculation_removed): Remove static var.
34188 (check_speculations): New function.
34189 (clone_inlined_nodes): Do not check spculations.
34190 (inline_call): Call check_speculations.
34191 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
34192 consider non-invariants.
34194 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
34195 Martin Liska <mliska@suse.cz>
34198 * ipa-icf.c (sem_item::compare_cgraph_references): function and
34199 variable can not match.
34200 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
34201 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
34203 2015-04-11 Jakub Jelinek <jakub@redhat.com>
34205 PR tree-optimization/65735
34206 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
34207 Remove visited_phis argument, add visited_bbs, avoid recursing into the
34208 same bb rather than just into the same phi node.
34209 (thread_through_normal_block): Adjust caller.
34211 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34213 * doc/contrib.texi (Contributors): Add Ira Rosen.
34215 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
34217 * gcov.c (find_source): Fix miswording in error message.
34218 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
34219 (ix86_expand_sse_comi_round): Fix typo in error message.
34221 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
34223 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
34225 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
34227 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
34229 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34232 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
34233 Print bad_spills_num and insn_pseudos_num.
34235 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34238 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
34239 when creating +1 values for SImode.
34241 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
34244 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
34247 2015-04-10 Jakub Jelinek <jakub@redhat.com>
34248 Iain Sandoe <iain@codesourcery.com>
34251 * configure: Regenerate.
34253 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34256 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
34258 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
34260 * doc/contrib.texi (Contributors): Add John Marino.
34262 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34264 PR tree-optimization/65709
34265 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
34266 TREE_TYPE (TREE_TYPE (t)).
34268 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
34271 * lra-int.h (lra_bad_spill_regno_start): New.
34272 * lra.c (lra_bad_spill_regno_start): New.
34273 (lra): Set up lra_bad_spill_regno_start. Set up
34274 lra_constraint_new_regno_start unconditionally.
34275 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
34278 2015-04-09 Marek Polacek <polacek@redhat.com>
34279 Jakub Jelinek <jakub@redhat.com>
34281 PR middle-end/65554
34282 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
34283 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
34286 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
34288 PR rtl-optimization/65693
34289 * combine.c (is_parallel_of_n_reg_sets): Move outside of
34292 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
34295 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
34296 device specs file if "device-specs%s" didn't resolve to a path.
34298 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
34301 * config/i386/i386.c (fixup_modeless_constant): New.
34302 (ix86_expand_args_builtin): Fixup modeless constant operand.
34303 (ix86_expand_round_builtin): Ditto.
34304 (ix86_expand_special_args_builtin): Ditto.
34305 (ix86_expand_builtin): Ditto.
34307 2015-04-09 Jakub Jelinek <jakub@redhat.com>
34310 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
34311 any pow2 integer in between 2 and 0x80000000U inclusive.
34313 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
34315 PR rtl-optimization/65693
34316 * combine.c (is_parallel_of_n_reg_sets): Change first argument
34317 from an rtx_insn * to an rtx.
34318 (try_combine): Adjust both callers. Use it once more.
34320 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34322 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
34323 (chkp_make_static_const_bounds): Search existing
34324 symbol by assembler name. Use make_decl_one_only.
34325 (chkp_get_zero_bounds_var): Remove node search which
34326 is now performed in chkp_make_static_const_bounds.
34327 (chkp_get_none_bounds_var): Likewise.
34329 2015-04-08 Michael Witten <mfwitten@gmail.com>
34331 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
34334 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34336 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
34338 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34340 * doc/extend.texi (__sync Builtins): Fix grammar.
34342 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34344 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
34346 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
34348 * varasm.c (emit_local): Move definition of align.
34350 2015-04-08 Julian Brown <julian@codesourcery.com>
34352 * config/nvptx/mkoffload.c (process): Support variable mapping.
34354 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
34356 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
34358 (alpha_write_one_linkage): Correct typo.
34360 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34362 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
34364 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
34366 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
34368 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
34370 * tree-chkp.h (chkp_insert_retbnd_call): New.
34371 * tree-chkp.c (chkp_insert_retbnd_call): New.
34372 * ipa-split.c (insert_bndret_call_after): Remove.
34373 (split_function): Use chkp_insert_retbnd_call.
34374 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
34375 bounds for instrumented functions.
34377 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
34380 * calls.c (initialize_argument_information): When producing tail
34381 call also turn SSA_NAMES passed by references to original PARM_DECLs
34383 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
34386 * lra-remat.c (do_remat): Process input and non-input insn
34387 registers separately.
34389 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34392 * valtrack.c (debug_lowpart_subreg): New function.
34393 (dead_debug_insert_temp): Use it.
34395 PR middle-end/65680
34396 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
34397 into signed HOST_WIDE_INT the same as negative bit_offset.
34399 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
34401 * ipa-comdats.c (ipa_comdats): Visit all thunks
34402 to set proper comdat group.
34404 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34407 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
34408 on constants for NEON VSTRUCT modes.
34410 2015-04-07 Jakub Jelinek <jakub@redhat.com>
34411 Iain Sandoe <iain@codesourcery.com>
34414 * configure: Regenerate.
34416 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
34419 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
34420 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
34421 that LFD is used to load double constants instead of LFS. Add
34422 defaults for all costs structures. Add comments for missing
34423 initialization fields.
34424 (size32_cost): Likewise.
34425 (size64_cost): Likewise.
34426 (rs64a_cost): Likewise.
34427 (mpccore_cost): Likewise.
34428 (ppc403_cost): Likewise.
34429 (ppc405_cost): Likewise.
34430 (ppc440_cost): Likewise.
34431 (ppc476_cost): Likewise.
34432 (ppc601_cost): Likewise.
34433 (ppc603_cost): Likewise.
34434 (ppc604_cost): Likewise.
34435 (ppc604e_cost): Likewise.
34436 (ppc620_cost): Likewise.
34437 (ppc630_cost): Likewise.
34438 (ppccell_cost): Likewise.
34439 (ppc750_cost): Likewise.
34440 (ppc7450_cost): Likewise.
34441 (ppc8540_cost): Likewise.
34442 (ppce300c2c3_cost): Likewise.
34443 (ppce500mc_cost): Likewise.
34444 (ppce500mc64_cost): Likewise.
34445 (ppce5500_cost): Likewise.
34446 (ppce6500_cost): Likewise.
34447 (titan_cost): Likewise.
34448 (power4_cost): Likewise.
34449 (power6_cost): Likewise.
34450 (power7_cost): Likewise.
34451 (power8_cost): Likewise.
34452 (ppca2_cost): Likewise.
34453 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
34455 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
34456 instead of XXLOR to copy SFmode to clear out dirty bits created
34457 when SFmode denormals are generated.
34458 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
34459 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
34461 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34463 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
34464 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
34465 * config/aarch64/aarch64-tune.md: Regenerate.
34467 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
34469 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
34470 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
34471 * config/arm/arm-cores.def (exynos-m1): New core.
34472 * config/arm/arm-tune.md: Regenerate.
34473 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
34474 * config/arm/bpabi.h: Likewise.
34476 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34478 * ipa-cp (set_single_call_flag): Remove too
34479 restrictive assert.
34481 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
34483 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
34484 GOMP_offload_unregister from the destructor.
34486 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
34488 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
34489 flags for instrumentation thunk.
34490 (chkp_produce_thunks): Likewise.
34492 2015-04-05 Martin Liska <mliska@suse.cz>
34495 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
34496 has computed data structure.
34497 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34499 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
34501 * invoke.texi (inline-unit-growth): Increase growth to 20%
34502 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
34504 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
34507 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
34509 (lra_rematerialization_iter): New.
34510 * lra.c (lra): Initialize lra_rematerialization_iter.
34511 Stop updating lra_constraint_new_regno_start after switching of
34512 inheritance and rematerialization.
34513 * lra-remat.c (lra_rematerialization_iter): New.
34514 (lra_remat): Add printing pass iteration. Do rematerialization
34515 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
34517 2015-04-04 Richard Biener <rguenther@suse.de>
34519 PR tree-optimization/64909
34520 PR tree-optimization/65660
34521 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
34522 to take a cost vector for scalar iteration cost.
34523 (vect_get_single_scalar_iteration_cost): Likewise.
34524 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
34525 Compute the scalar iteration cost into a cost vector.
34526 (vect_get_known_peeling_cost): Use the scalar cost vector to
34527 account for the cost of the peeled iterations.
34528 (vect_estimate_min_profitable_iters): Likewise.
34529 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
34532 2015-04-04 Alan Modra <amodra@gmail.com>
34536 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
34537 0.0 constant unless TARGET_VSX.
34538 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
34541 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34544 * ipa-inline-transform.c (inline_call): Skip sanity check to work
34547 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34550 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
34551 speculative indirect edges to avoid ordering issue.
34553 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
34556 * ipa-inline.c (edge_badness): Add combined size to the denominator.
34558 2015-04-03 Jakub Jelinek <jakub@redhat.com>
34560 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
34561 TYPE_ARTIFICIAL on the .omp_data* types.
34563 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34565 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
34566 instrumentation thunks.
34568 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34570 * config/i386/i386.c (ix86_expand_call): Avoid nested
34571 PARALLEL in returned call value.
34573 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34575 * lto-cgraph.c (input_cgraph_1): Always link instrumented
34576 assembler name with original one.
34578 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34580 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
34582 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34584 Revert parts of r216820.
34585 * config/i386/i386.md (movqi_internal): Correct type calculation
34586 for alternatives 3 and 5.
34588 2015-04-02 Jakub Jelinek <jakub@redhat.com>
34590 PR preprocessor/61977
34591 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
34592 predefine __vector/__bool/__pixel macros nor context sensitive
34593 macros for CLK_ASM.
34594 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
34596 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
34598 * config/pa/pa.c (pa_output_move_double): Directly handle register
34599 indexed memory operand. Simplify handling of scaled register indexed
34602 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
34605 * config/i386/linux-common.h (MPX_SPEC): New.
34606 (CHKP_SPEC): Add MPX_SPEC.
34607 * doc/invoke.texi (-fcheck-pointer-boudns): Document
34608 possible issues with '-z bndplt' support in linker.
34610 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
34612 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
34613 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
34614 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
34615 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
34616 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
34618 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
34620 * config/i386/sync.md (UNSPEC_MOVA): Remove.
34621 (atomic_load<mode>): Change operand 0 predicate to
34622 nonimmediate_operand and fix up the destination when needed.
34624 (atomic_loaddi_fpu): Use UNSPEC_LDA.
34625 (atomic_store<mode>): Change operand 1 predicate to
34626 nonimmendate_operand and move the source to register when needed.
34628 (atomic_store<mode>_1): Use UNSPEC_STA.
34629 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
34630 Fix moves from memory operand. Use UNSPEC_STA.
34632 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
34634 * expmed.c (strict_volatile_bitfield_p): Check that the access will
34635 not cross a MODESIZE boundary.
34636 (store_bit_field, extract_bit_field): Added assertions in the
34637 strict volatile bitfields code path.
34639 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
34642 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
34643 Increase args array size by one to avoid buffer overflow.
34645 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34647 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
34649 * ipa-inline.c (edge_badness): Add wrapper penalty.
34650 (sum_callers): Move up.
34651 (inline_small_functions): Set single_caller.
34652 * ipa-inline.h (inline_summary): Add single_caller.
34653 * ipa-split.c (split_function): Set split_part.
34654 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
34655 * cgraph.h (cgraph_node): Add split_part.
34657 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
34660 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
34661 Do not split operands 0 and operands 2 to halfmode.
34662 (atomic_compare_and_swap<mode>): Update for
34663 atomic_compare_and_swap<dwi>_doubleword changes.
34665 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
34667 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
34668 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
34669 no caching is done.
34671 2015-03-31 Martin Liska <mliska@suse.cz>
34674 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
34675 has already filled up function summary.
34676 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
34678 2015-03-31 Richard Biener <rguenther@suse.de>
34680 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
34683 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
34685 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
34687 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
34688 (s390_asm_output_function_label): Adapt to new signature of
34689 s390_function_num_hotpatch_hw
34690 Optimise the code generating assembler output.
34691 Add comments to assembler file.
34693 2015-03-31 Richard Biener <rguenther@suse.de>
34695 PR middle-end/65626
34696 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
34697 of the noreturn call so it is last and cleanup_control_flow_bb
34698 can do the CFG part.
34700 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
34703 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
34704 same_comdat_group for external symbols.
34705 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
34706 infinite same_comdat_group traversal loop.
34708 2015-03-31 Jakub Jelinek <jakub@redhat.com>
34711 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
34712 automatically to $headers.
34714 2015-03-30 Jakub Jelinek <jakub@redhat.com>
34717 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
34718 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
34720 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
34722 * ipa-prop.c (param_type_may_change_p): Likewise.
34723 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
34724 (remove_unused_scope_block_p): Add in_ctor_dtor_block
34725 argument. Before inlining, preserve
34726 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
34727 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
34729 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
34731 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34734 * ipa-inline.c (edge_badness): Base denominator on callee's
34737 2015-03-27 Martin Jambor <mjambor@suse.cz>
34740 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
34741 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
34742 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
34743 node_calling_single_call.
34744 * ipa-cp.c (count_callers): New function.
34745 (set_single_call_flag): Likewise.
34746 (initialize_node_lattices): Count callers and set single_flag_call if
34748 (incorporate_penalties): New function.
34749 (good_cloning_opportunity_p): Use it, dump new flags.
34750 (propagate_constants_topo): Set node_within_scc flag if appropriate.
34751 * doc/invoke.texi (ipa-cp-recursion-penalty,
34752 ipa-cp-single-call-pentalty): Document.
34754 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34757 * symtab.c (symtab_node::get_partitioning_class): Register vars
34759 * varpool.c (symbol_table::output_variables) Do not assemble unefined
34760 decls for non-symbols.
34762 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
34765 * output.h (default_binds_local_p_2): New.
34766 * varasm.c (default_binds_local_p_2): Renamed to ...
34767 (default_binds_local_p_3): This. Don't return true on protected
34768 data symbol if protected data may be external.
34769 (default_binds_local_p): Use default_binds_local_p_3.
34770 (default_binds_local_p_1): Likewise.
34771 (default_binds_local_p_2): New.
34772 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
34773 default_binds_local_p_2 if TARGET_MACHO is undefined.
34775 2015-03-27 Jakub Jelinek <jakub@redhat.com>
34778 * config/i386/i386.c (legitimize_pic_address): If base
34779 is SYMBOL_REF or LABEL_REF using %rip addressing, force
34780 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
34782 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34785 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
34788 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
34791 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
34792 of optimized out indirect call.
34793 (redirect_to_unreachable): Always build symbol table node for
34794 BUILT_IN_UNREACHABLE
34796 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
34799 * ira-costs.c (record_reg_classes): Process all constraint string
34802 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
34804 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
34808 * config/c6x/constraints.md (S3): New constraint.
34809 * config/c6x/c6x.md (real_jump): Use it.
34811 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34813 PR middle-end/65595
34814 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
34815 do redirection if the call is not optimized out.
34817 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
34820 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
34821 (fchkp-check-incomplete-type): Add LTO.
34822 (fchkp-zero-input-bounds-for-main): Likewise.
34823 (fchkp-first-field-has-own-bounds): Likewise.
34824 (fchkp-narrow-bounds): Likewise.
34825 (fchkp-narrow-to-innermost-array): Likewise.
34826 (fchkp-use-static-bounds): Likewise.
34827 (fchkp-use-static-const-bounds): Likewise.
34828 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
34830 2015-03-27 Marek Polacek <polacek@redhat.com>
34832 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
34834 2015-03-27 Marek Polacek <polacek@redhat.com>
34837 * ubsan.c (ubsan_create_edge): New function.
34838 (instrument_bool_enum_load): Call it.
34839 (instrument_nonnull_arg): Likewise.
34840 (instrument_nonnull_return): Likewise.
34841 (instrument_object_size): Likewise.
34843 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34845 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
34848 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34851 * lto-streamer.h (class lto_location_cache): New.
34852 (struct data_in): Add location_cache.
34853 (lto_input_location): Update prototype.
34854 (stream_input_location_now): New.
34855 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
34856 pointer to location.
34857 (stream_input_location): Update.
34858 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
34859 (warn_odr): Apply location cache before warning.
34860 (lto_input_location): Update prototype.
34861 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
34862 Use stream_input_location_now.
34863 * lto-streamer-in.c (lto_location_cache::current_cache): New static
34865 (lto_location_cache::cmp_loc): New function.
34866 (lto_location_cache::apply_location_cache): New function.
34867 (lto_location_cache::accept_location_cache): New function.
34868 (lto_location_cache::revert_location_cache): New function.
34869 (lto_location_cache::input_location): New function.
34870 (lto_input_location): Do location caching.
34871 (stream_input_location_now): New function.
34872 (input_eh_region, input_struct_function_base): Use
34873 stream_input_location_now.
34874 (lto_data_in_create): use new.
34875 (lto_data_in_delete): Use delete.
34876 * tree-streamer-in.c (unpack_ts_block_value_fields,
34877 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
34878 lto_input_ts_exp_tree_pointers): Update for cached location api.
34880 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34883 * passes.def: Add pass_nothrow.
34884 * ipa-pure-const.c: (pass_data_nothrow): New.
34885 (pass_nothrow): New.
34886 (pass_nothrow::execute): New.
34887 (make_pass_nothrow): New.
34888 * tree-pass.h (make_pass_nothrow): Declare.
34890 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34892 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
34893 edge to change by speculation resolution or redirection.
34894 (edge_set_predicate): Likewise.
34895 (inline_summary_t::duplicate): Likewise.
34896 (remap_edge_summaries): Likewise.
34898 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34900 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
34902 (can_inline_edge_p): Relax option matching for always inline functions.
34904 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
34907 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
34908 Check operand 4 and operand 0 for equality.
34909 (avx512f_vextract<shuffletype>32x4_1_maskm):
34910 Check operand 6 and operand 0 for equality.
34911 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
34913 (vec_extract_hi_<mode>_maskm): Ditto.
34915 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34917 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
34918 dead calls back to live.
34919 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
34921 (cgraph_node::verify_node): ... here; verify only callee edges,
34923 * cif-code.def (CILK_SPAWN): New code.
34925 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
34927 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
34928 (edge_set_predicate): Use it to mark unreachable edges.
34929 (inline_summary_t::duplicate): Remove unnecesary code.
34930 (remap_edge_summaries): Likewise.
34931 (dump_inline_summary): Report contains_cilk_spawn.
34932 (compute_inline_parameters): Compute contains_cilk_spawn.
34933 (inline_read_section, inline_write_summary): Stream
34934 contains_cilk_spawn.
34935 * ipa-inline.c (can_inline_edge_p): Do not touch
34936 DECL_STRUCT_FUNCTION that may not be available;
34937 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
34938 remove check for callee_fun->can_throw_non_call_exceptions and
34939 replace it by optimization attribute check; check for flag_exceptions.
34940 * ipa-inline-transform.c (inline_call): Maintain
34941 DECL_FUNCTION_PERSONALITY
34942 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
34944 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34946 PR tree-optimization/65551
34947 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
34948 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
34950 2015-03-26 Richard Biener <rguenther@suse.de>
34952 PR middle-end/65555
34953 * tree-cfg.c (verify_gimple_call): Do not require a call to
34954 have no LHS if it wasn't recognized as control altering yet.
34956 2015-03-26 Jakub Jelinek <jakub@redhat.com>
34958 PR tree-optimization/64715
34959 * passes.def: Add another instance of pass_object_sizes before ccp1.
34960 * tree-object-size.c (pass_object_sizes::execute): In
34961 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
34962 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
34963 __bos result and the computed constant. Remove redundant
34964 checks, obsoleted by gimple_call_builtin_p test.
34966 * var-tracking.c (variable_tracking_main_1): Don't track
34967 variables for targetm.no_register_allocation targets.
34969 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
34971 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
34972 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
34974 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
34977 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
34978 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
34979 0.0 is correctly setup.
34980 (extenddftf2_internal): Likewise.
34982 2015-03-25 Sebastian Pop <s.pop@samsung.com>
34984 PR tree-optimization/65177
34985 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
34987 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
34988 edges not adjacent on the path to the original code.
34990 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
34993 * doc/install.texi (Building a native compiler): Document new
34994 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
34995 configuration assumes that the host supports the linker plugin.
34997 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
35000 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
35001 chain for generated call.
35003 2015-03-25 Richard Biener <rguenther@suse.de>
35005 * passes.c (pass_manager::execute_early_local_passes): Guard
35006 execution of pass_chkp_instrumentation_passes with
35007 flag_check_pointer_bounds.
35008 (pass_chkp_instrumentation_passes::gate): Likewise.
35010 2015-03-25 Martin Liska <mliska@suse.cz>
35012 PR tree-optimization/65538
35013 * symbol-summary.h (function_summary::~function_summary):
35014 Relese memory for allocated summaries.
35015 (function_summary::release): New function.
35017 2015-03-25 Jakub Jelinek <jakub@redhat.com>
35020 * lto-streamer-out.c (DFS::worklist): New struct.
35021 (DFS::worklist_vec): New data member.
35022 (DFS::next_dfs_num): Remove.
35023 (DFS::DFS): Rewritten using worklist instead of recursion,
35024 using most of code from DFS::DFS_write_tree.
35025 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
35026 pass it to DFS_write_tree calls.
35027 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
35028 quick initial checks push it into worklist_vec and return.
35030 2015-03-25 Richard Biener <rguenther@suse.de>
35032 PR middle-end/65519
35033 * genmatch.c (expr::gen_transform): Re-write to avoid
35034 using gimple_build.
35036 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35038 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
35040 2015-03-25 Bin Cheng <bin.cheng@arm.com>
35042 * config/arm/arm.opt (print_tune_info): New option.
35043 * config/arm/arm.c (arm_print_tune_info): New function.
35044 (arm_file_start): Call arm_print_tune_info.
35045 * config/arm/arm-protos.h (struct tune_params): Add comment.
35046 * doc/invoke.texi (@item -mprint-tune-info): New item.
35047 (-mtune): mention it in ARM Option Summary.
35049 2015-03-25 DJ Delorie <dj@redhat.com>
35051 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
35054 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
35055 Martin Liska <mliska@suse.cz>
35057 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
35058 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
35059 (sem_item::add_type): New function.
35060 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
35061 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
35062 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
35063 (sem_function::equals_wpa): Fix typo.
35064 * ipa-icf.h (sem_item::add_type): New function.
35065 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
35068 2015-03-24 Jakub Jelinek <jakub@redhat.com>
35070 PR tree-optimization/65533
35071 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
35072 with swapped operands, call vect_free_slp_tree on
35073 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
35076 2015-03-24 Richard Biener <rguenther@suse.de>
35078 PR middle-end/65517
35079 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
35080 for fixup if necessary.
35082 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
35084 * doc/extend.texi (Function Attributes): Add @cindex entries
35085 for all attributes and regularize their format. Delete text
35086 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
35087 information about "eightbit_data", "tiny_data", and "model"
35088 variable attributes to the Variable Attributes section. Fix
35089 some obvious typos and copy-editing issues.
35090 (Variable Attributes, Type Attributes): Likewise add/fix
35091 @cindex entries for all attributes.
35093 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35096 * tree-chkp.c (chkp_build_returned_bound): Ignore
35097 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
35099 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
35102 * config/sh/predicates.md (simple_mem_operand,
35103 displacement_mem_operand): Add test for reg.
35104 (short_displacement_mem_operand): Test for displacement_mem_operand
35105 before invoking sh_disp_addr_displacement.
35106 * config/sh/constraints.md (Sdd, Sra): Simplify.
35107 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
35108 Remove redundant displacement_mem_operand tests.
35110 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
35113 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
35114 the same -mmcu=MCU more than once.
35116 2015-03-23 Jakub Jelinek <jakub@redhat.com>
35119 * ipa-devirt.c: Remove duplicate demangle.h include.
35122 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
35124 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
35125 REG_POINTER on *destptr after adjusting it for prologue size.
35128 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
35129 ultimate_alias_target ()->order ints instead of
35130 ultimate_alias_target () pointers.
35132 2015-03-23 Richard Biener <rguenther@suse.de>
35134 PR tree-optimization/65518
35135 * tree-vect-stmts.c (vectorizable_load): Reject single-element
35136 interleaving cases we generate absymal code for.
35138 2015-03-23 Richard Biener <rguenther@suse.de>
35140 PR tree-optimization/65494
35141 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
35143 (vect_analyze_slp_instance): But do that here, always and once.
35145 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35147 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
35148 adding T or multiplying by T+1 and subracting T.
35150 2015-03-22 Jeff Law <law@redhat.com>
35152 PR rtl-optimization/64317
35153 * Makefile.in (OBJS): Add gcse-common.c
35154 * gcse.c: Include gcse-common.h
35155 (struct modify_pair_s): Move structure definition to gcse-common.h
35156 (compute_transp): Move function to gcse-common.c.
35157 (canon_list_insert): Similarly.
35158 (record_last_mem_set_info): Break out some code and put it into
35159 gcse-common.c. Call into the new common code.
35160 (compute_local_properties): Pass additional arguments to compute_transp.
35161 * postreload-gcse.c: Include gcse-common.h and df.h
35162 (modify_mem_list_set, blocks_with_calls): New variables.
35163 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
35164 (get_bb_avail_insn): Pass in the expression index too.
35165 (alloc_mem): Allocate memory for the new bitmaps and lists.
35166 (free_mem): Free memory for the new bitmaps and lists.
35167 (insert_expr_in_table): Record a bitmap index for each entry we
35169 (record_last_mem_set_info): Call into common code in gcse-common.c.
35170 (get_bb_avail_insn): If no available insn was found in the requested
35171 BB. If BB has a single predecessor, see if the expression is
35172 transparent in BB and available in that single predecessor.
35173 (compute_expr_transp): New wrapper for compute_transp.
35174 (eliminate_partially_redundant_load): Pass expression's bitmap_index
35175 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
35176 (gcse_after_reload_main): If there are elements in the hash table,
35177 then compute transparency for all the elements in the hash table.
35178 * gcse-common.h: New file.
35179 * gcse-common.c: New file.
35181 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
35183 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
35185 (System Headers): Likewise.
35187 (Traditional macros): Likewise.
35188 (Invocation): Likewise.
35189 (Option Index): Likewise.
35190 * doc/cppopts.texi (-M): Likewise.
35191 (-finput-charset): Likewise.
35192 (--help): Likewise.
35193 * doc.invoke.texi (AVR Options): Likewise.
35194 (V850 Options): Likewise.
35196 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
35199 * ipa-devirt.c: Include demangle.h
35200 (odr_type_d): Add field rtti_broken.
35201 (odr_subtypes_equivalent_p): Do not require name to match.
35202 (compare_virtual_tables): Fix typo; if type already has ODR violation,
35203 bypass the tests; be ready for function referneces in vtables that are
35204 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
35205 (warn_odr): Give up for nameless types.
35206 (warn_types_mismatch): Report mismatch in mangled names;
35207 report mismatch in anonymous namespaces; look into component types to
35208 give useful error; report when mismatch is dragged in from other ODR
35210 (odr_types_equivalent_p): Match types for being polymorphic; avoid
35211 duplicated diagnostics.
35212 (add_type_duplicate): Reorder checks so more informative ones come
35213 first; fix typo; do not output "the extra base is defined here" when
35215 (BINFO_N_BASE_BINFOS): Relax sanity check.
35217 2015-03-22 Martin Liska <mliska@suse.cz>
35218 Jakub Jelinek <jakub@redhat.com>
35220 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
35221 masks that can potentially include a builtin.
35222 (ix86_add_new_builtins): Introduce fast filter for isa values
35223 that cannot trigger builtin inclusion.
35225 2015-03-22 Martin Liska <mliska@suse.cz>
35227 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
35228 (sem_item::update_hash_by_local_refs): Likewise.
35229 (sem_variable::get_hash): Empty line is fixed.
35230 (sem_item_optimizer::execute): Include adding of hash references.
35231 (sem_item_optimizer::update_hash_by_addr_refs): New function.
35232 (sem_item_optimizer::build_hash_based_classes): Use local hash.
35233 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
35234 (sem_item::update_hash_by_local_refs): Likewise.
35236 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35239 * ipa-comdats.c (enqueue_references): Walk through thunks.
35240 (ipa_comdats): Likewise.
35241 (set_comdat_group_1): New function.
35243 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35246 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
35249 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
35250 Gerald Pfeifer <gerald@pfeifer.com>
35252 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
35254 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
35255 Sandra Loosemore <sandra@codesourcery.com>
35257 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
35258 function parameter declaration.
35259 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
35260 Update arguments to nios2_adjust_call_address().
35261 (sibcall_internal): Rename from *sibcall.
35262 (sibcall_value_internal): Rename from *sibcall_value.
35263 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
35264 (nios2_large_got_address): Add target temp reg parameter.
35265 (nios2_got_address): Adjust call to nios2_large_got_address, add
35266 force_reg around it.
35267 (nios2_load_pic_address): Add target temp reg parameter, replace call
35268 to nios2_got_address with corresponding code.
35269 (nios2_legitimize_constant_address): Update call to
35270 nios2_load_pic_address.
35271 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
35272 to use temp reg for PIC loading purposes.
35273 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
35274 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
35275 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
35277 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35279 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
35280 usage of "the @option{...}".
35281 (-Wopenmp-simd): Likewise.
35282 (-fsanitize-recover): Likewise.
35283 (-fsanitize-undefined-trap-on-error): Likewise.
35285 (tracer-dynamic-coverage-feedback): Likewise.
35286 (reorder-block-duplicate-feedback): Likewise.
35287 (loop-unroll-jam-size): Likewise.
35290 (-mabs=legacy): Likewise.
35291 (-mupper-regs-df): Likewise.
35292 (-mupper-regs-sf): Likewise.
35293 (-mpointers-to-nested-functions): Likewise.
35295 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35297 * doc/extend.texi (Cilk Plus Builtins): Add markup.
35299 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
35301 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
35302 additional index entries and cross-references.
35303 (-fchkp-check-incomplete-type): Likewise.
35304 (-fchkp-first-field-has-own-bounds): Likewise.
35305 (-fchkp-narrow-to-innermost-array): Likewise.
35306 (-fchkp-use-fast-string-functions): Likewise.
35307 (-fchkp-use-nochk-string-functions): Likewise.
35308 (-fchkp-use-static-const-bounds): Likewise.
35309 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
35310 (-fchkp-instrument-marked-only): Likewise.
35311 (-fchkp-use-wrappers): Likewise.
35312 (-static-libmpx): Likewise.
35313 (-static-libmpxwrappers): Likewise.
35314 * doc/extend.texi (bnd_legacy): Likewise.
35315 (bnd_instrument): Likewise.
35316 (bnd_variable_size): Likewise.
35317 (Pointer Bounds Checker builtins): Likewise.
35319 2015-03-21 Tom de Vries <tom@codesourcery.com>
35321 PR tree-optimization/65458
35322 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
35323 * cgraph.h (cgraph_node): Add parallelized_function field.
35324 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
35325 (input_overwrite_node): Read parallelized_function field.
35326 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
35327 parallelized_function on cgraph_node for child_fn.
35328 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
35329 Remove include of gt-tree-parloops.h.
35330 (parallelized_functions): Remove static variable.
35331 (parallelized_function_p): Rewrite using parallelized_function field of
35333 (create_loop_fn): Remove adding to parallelized_functions.
35334 * Makefile.in (GTFILES): Remove tree-parloops.c
35336 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
35338 PR rtl-optimization/64366
35339 * lra.c (lra_update_insn_regno_info): Consider regs in
35340 CALL_INSN_FUNCTION_USAGE memory.
35342 2015-03-20 Richard Biener <rguenther@suse.de>
35344 PR middle-end/64715
35345 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
35346 for type comparison and gcc_checking_assert.
35347 (chrec_fold_plus_poly_poly): Likewise.
35348 (chrec_fold_multiply_poly_poly): Likewise.
35349 (chrec_convert_1): Likewise.
35350 * gimplify.c (gimplify_expr): Remove premature folding of
35351 &X + CST to &MEM[&X, CST].
35353 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
35355 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
35357 (ipa_inline): Recompute inline_failed codes.
35358 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
35359 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
35362 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
35364 PR rtl-optimization/60851
35365 * recog.c (constrain_operands): Accept a pseudo register before reload
35366 for LRA enabled targets.
35368 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
35371 * config/rs6000/predicates.md (easy_fp_constant): Remove special
35372 -ffast-math handling that kept non-0 constants live in the RTL
35373 until reload. Remove logic testing the number of instructions it
35374 took to create a constant in a GPR that was never used, due to a
35375 test for soft-float earlier.
35376 (memory_fp_constant): Delete, no longer used.
35378 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
35379 alternatives for loading non-0 constants into GPRs for hard
35380 floating point that is no longer needed due to changes in
35381 easy_fp_constant. Add support for loading 0.0 into GPRs.
35382 (mov<mode>_hardfloat32): Likewise.
35383 (mov<mode>_hardfloat64): Likewise.
35384 (mov<mode>_64bit_dm): Likewise.
35385 (movtd_64bit_nodm): Likewise.
35386 (pre-reload move FP constant define_split): Delete define_split,
35387 since it is no longer used.
35388 (extenddftf2_internal): Remove GHF constraints that are not valid
35391 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
35393 PR rtl-optimization/63491
35394 * lra-constraints.c (check_and_process_move): Use src instead of
35395 sreg. Remove some dead code.
35397 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
35400 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
35401 (sem_variable::merge): Likewise.
35403 2015-03-19 Martin Liska <mliska@suse.cz>
35406 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
35407 all fields of cgraph_thunk_info.
35409 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
35411 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
35412 clone instrumented thunks.
35414 2015-03-19 Richard Biener <rguenther@suse.de>
35417 2015-03-10 Richard Biener <rguenther@suse.de>
35419 PR middle-end/63155
35420 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35421 * tree-ssa-coalesce.c: Include timevar.h.
35422 (attempt_coalesce): Handle graph being NULL.
35423 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35424 Split out abnormal coalescing to ...
35425 (perform_abnormal_coalescing): ... this function.
35426 (coalesce_ssa_name): Perform abnormal coalescing without computing
35428 (verify_ssa_coalescing_worker): New function.
35429 (verify_ssa_coalescing): Likewise.
35431 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
35432 Jakub Jelinek <jakub@redhat.com>
35435 * tsan.c (instrument_gimple): Clear tail call flag on
35438 2015-03-19 Jakub Jelinek <jakub@redhat.com>
35441 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
35442 call in the return bb.
35443 (find_split_points): Add RETURN_BB argument, don't call
35445 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
35446 if true append TSAN_FUNC_EXIT internal call after the call to
35447 the split off function.
35448 (execute_split_functions): Call find_return_bb here.
35449 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
35450 Adjust find_split_points and split_function calls.
35452 2015-03-18 DJ Delorie <dj@redhat.com>
35454 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
35455 (iorqi3_virt): Likewise.
35457 2015-03-18 Tom de Vries <tom@codesourcery.com>
35459 * tree-parloops.c (parallelize_loops): Make static.
35460 * tree-parloops.h (parallelize_loops): Remove extern declaration.
35462 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
35464 PR middle-end/64491
35466 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
35468 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
35469 condition would be removed due to undefined behaviour.
35471 2015-03-18 Martin Liska <mliska@suse.cz>
35474 * cgraph.c (cgraph_node::get_create): Remove unnecessary
35475 xstrdup_for_dump wrapper.
35476 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
35478 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
35479 with xstrdup_for_dump.
35480 (sem_variable::equals): Likewise.
35481 (sem_item_optimizer::read_section): Use symtab_node::name instead of
35483 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
35484 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
35485 symtab_node::asm_name with xstrdup_for_dump.
35486 (congruence_class::dump): Use symtab_node::name instead of
35488 * ipa-icf.h (symtab_node::name): Remove.
35489 (symtab_node::asm_name): Likewise.
35491 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35493 PR tree-optimization/65450
35494 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
35496 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
35497 it instead of duplicate_ssa_name_ptr_info.
35500 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
35502 2015-03-18 Richard Biener <rguenther@suse.de>
35504 * tree-data-ref.h (struct access_matrix): Remove.
35505 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
35506 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
35507 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
35508 (am_vector_index_for_loop): Likewise.
35509 (struct data_reference): Remove access_matrix member.
35510 (DR_ACCESS_MATRIX): Remove.
35511 (lambda_vector_new): Add comment.
35512 (lambda_matrix_new): Use XOBNEWVEC.
35514 2015-03-18 Richard Biener <rguenther@suse.de>
35516 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
35517 (pass_ch::execute): Cleanup the CFG only if we did sth.
35518 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
35520 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35522 * expmed.c (synth_mult): Use std::swap instead of manually
35523 swapping algorithms.
35525 2015-03-18 Jakub Jelinek <jakub@redhat.com>
35528 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
35530 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
35533 * config/avr/avr.opt (-nodevicelib): New option.
35534 * doc/invoke.texi (AVR Options): Document it.
35535 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
35536 libgcc.a, libc.a, libm.a.
35537 * config/avr/specs.h: Same.
35538 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
35539 which don't (directly) depend on the device. Print more help.
35540 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
35541 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
35542 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
35544 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
35545 for specs file name.
35546 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
35547 * config/avr/avr-mcus.def: Adjust initializers and comments.
35549 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
35551 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
35552 DECL_ONE_ONLY to check if decl is one only.
35553 * ipa-split.c (consider_split): Limit splitt of one only functions.
35555 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35557 PR tree-optimization/65427
35558 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
35560 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
35562 2015-03-16 Marek Polacek <polacek@redhat.com>
35564 * cgraph.h (add_new_static_var): Remove declaration.
35565 * varpool.c (add_new_static_var): Remove function.
35567 2015-03-16 Jakub Jelinek <jakub@redhat.com>
35569 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
35570 instead of vec<tree> * with vec_alloc and release for args.
35573 PR middle-end/65431
35574 * omp-low.c (delete_omp_context): Only splay_tree_delete
35575 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
35576 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
35578 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
35581 * cfgexpand.c (align_base): New function.
35582 (alloc_stack_frame_space): Call it.
35583 (expand_stack_vars): Align prev_frame to be sure
35584 data->asan_vec elements aligned properly.
35586 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
35588 PR middle-end/65409
35589 * expr.c (store_field): Do not do a direct block copy if the source is
35590 a PARALLEL with BLKmode.
35592 2015-03-16 Tom de Vries <tom@codesourcery.com>
35594 PR middle-end/65414
35596 2015-03-12 Tom de Vries <tom@codesourcery.com>
35598 PR rtl-optimization/64895
35599 * lra-lives.c (check_pseudos_live_through_calls): Use
35600 actual_call_used_reg_set instead of call_used_reg_set, if available.
35602 2015-03-16 Alan Modra <amodra@gmail.com>
35605 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
35606 Modify Z->r bswapdi splitter to use dest in place of scratch.
35607 In r->Z and Z->r bswapdi splitter rename word_high, word_low
35608 to word1, word2 and rearrange logic to suit.
35609 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
35610 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
35611 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
35612 Add one '?' on r->r. Modify Z->r splitter to avoid need for
35615 2015-03-14 Jakub Jelinek <jakub@redhat.com>
35617 PR tree-optimization/65369
35618 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
35619 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
35620 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
35622 PR tree-optimization/65418
35623 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
35624 are casts in the first PLUS_EXPR operand, ensure tbias and
35625 *totallowp are in the inner type.
35627 PR rtl-optimization/65401
35628 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
35629 argument. If true, adjust_address_nv of x with big-endian
35630 correction for the mode widening to GET_MODE (y).
35631 (make_field_assignment): Don't do MEM mode widening here.
35632 Use MEM_P instead of GET_CODE == MEM.
35634 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
35636 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
35637 the external decls.
35639 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35642 * config/arm/arm.c (arm_gen_constant, AND case): Use
35643 ARM_SIGN_EXTEND when constructing AND mask.
35645 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
35647 * graph.c (print_graph_cfg): Make function names visible and append
35648 parenthesis to it. Also make groups of basic blocks belonging to the
35649 same function visible.
35651 2015-03-12 Richard Biener <rguenther@suse.de>
35653 PR middle-end/44563
35654 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
35655 to avoid quadratic behavior with inline expansion splitting blocks.
35656 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
35657 with the successor if the predecessor will be merged with it.
35658 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
35659 entry block with its successor.
35661 2015-03-13 Richard Biener <rguenther@suse.de>
35663 PR middle-end/44563
35664 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
35665 (cleanup_tree_cfg_1): Do not call it.
35666 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
35667 (fixup_noreturn_call): Mark the stmt as control altering.
35668 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
35670 (pass_data_fixup_cfg): Produce a dump file.
35671 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
35672 (need_noreturn_fixup): New global.
35673 (pass_dominator::execute): Fixup queued noreturn calls.
35674 (optimize_stmt): Queue calls that became noreturn for fixup.
35675 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
35676 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
35677 (el_to_fixup): New global.
35678 (eliminate_dom_walker::before_dom_childre): Queue calls that
35679 became noreturn for fixup.
35680 (eliminate): Fixup queued noreturn calls.
35681 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
35682 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
35683 (substitute_and_fold_dom_walker::before_dom_children): Queue
35684 alls that became noreturn for fixup.
35685 (substitute_and_fold): Fixup queued noreturn calls.
35687 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
35689 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
35690 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
35691 are building; for methods check ODR type of class they belong to if
35692 they may lead to a polymorphic call.
35693 (sem_function::compare_polymorphic_p): Be bit smarter about testing
35694 when function may lead to a polymorphic call.
35695 (sem_function::compare_type_list): Remove.
35696 (sem_variable::equals): Update use of compatible_types_p.
35697 (sem_variable::parse_tree_refs): Remove.
35698 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
35700 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
35702 (func_checker::compatible_polymorphic_types_p): Break out from ...
35703 (unc_checker::compatible_types_p): ... here.
35704 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
35706 (unc_checker::compatible_types_p): Update.
35707 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
35710 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35712 PR rtl-optimization/65235
35713 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
35714 When first element of vec_concat is const_int, calculate its size
35715 using second element.
35717 2015-03-12 Richard Biener <rguenther@suse.de>
35719 PR middle-end/65270
35720 * fold-const.c (operand_equal_p): Fix ordering of resetting
35721 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
35723 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
35725 * config/s390/s390.c (s390_reorg): Move code to output nops after label
35727 (s390_asm_output_function_label): Likewise.
35728 * config/s390/s390.c (s390_asm_output_function_label):
35729 Fix function label alignment with -mhtopatch.
35730 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
35731 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
35732 ("nop_2_byte"): New define_insn.
35733 ("nop_4_byte"): Likewise.
35734 ("nop_6_byte"): Likewise.
35735 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
35736 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
35738 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35741 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
35744 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
35747 * toplev.c (process_options): Restrict Pointer Bounds Checker
35748 usage with Address Sanitizer.
35750 2015-03-12 Richard Biener <rguenther@suse.de>
35752 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
35754 * omp-low.c (expand_omp_taskreg): Split block before removing
35756 (expand_omp_target): Likewise.
35757 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
35758 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
35759 stmt to split_block.
35761 2015-03-12 Tom de Vries <tom@codesourcery.com>
35763 PR rtl-optimization/64895
35764 * lra-lives.c (check_pseudos_live_through_calls): Use
35765 actual_call_used_reg_set instead of call_used_reg_set, if available.
35767 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35769 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
35770 (cgraph_node::remove): Likewise.
35771 (cgraph_node::get_untransformed_body): Likewise.
35772 * varpool.c (varpool_node::remove): Likewise.
35773 (varpool_node::get_constructor): Add sanity check.
35775 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
35777 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
35779 (-fabi-compat-version): Likewise.
35780 (-ffriend-injection): Likewise.
35781 (-Wdeclaration-after-statement): Likewise.
35782 (-fomit-frame-pointer): Likewise.
35783 (-ftree-coalesce-inlined-vars): Likewise.
35784 (-fvisibility=): Likewise.
35785 * doc/extend.texi (Typeof): Likewise.
35786 (Zero Length): Likewise.
35787 (Escaped Newlines): Likewise.
35788 (Compound Literals): Likewise.
35789 (Function Attributes): Likewise.
35790 (Label Attributes): Likewise.
35791 (Type Attributes): Likewise.
35792 (Function Names): Likewise.
35793 (Other Builtins): Likewise.
35794 (Function Specific Option Pragmas): Likewise.
35795 (C++ Interface): Likewise.
35797 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
35799 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
35801 2015-03-11 Marek Polacek <polacek@redhat.com>
35803 PR tree-optimization/65388
35804 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
35806 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35809 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
35810 * configure: Regenerate.
35811 * config.in: Regenerate.
35812 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
35813 [-mn-flash]: Document it.
35814 [__AVR_ARCH__]: Document avrtiny.
35816 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
35817 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
35818 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
35820 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
35822 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
35824 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
35827 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
35828 allow reloads of PLUS in floating point/VSX registers.
35830 2015-03-11 Junmo Park <junmoz.park@samsung.com>
35832 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
35833 crypto_sha256_fast.
35834 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
35836 2015-03-11 Richard Biener <rguenther@suse.de>
35838 PR tree-optimization/65310
35839 * tree-sra.c (build_ref_for_offset): Also preserve larger
35842 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
35844 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
35846 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35849 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
35851 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
35853 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
35855 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
35856 (sem_function::equals_wpa): ... here.
35858 2015-03-10 Marek Polacek <polacek@redhat.com>
35859 Jakub Jelinek <jakub@redhat.com>
35862 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
35863 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
35866 2015-03-10 Jakub Jelinek <jakub@redhat.com>
35869 * config/rs6000/t-linux: For powerpc64* target set
35870 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
35872 2015-03-10 Richard Biener <rguenther@suse.de>
35874 PR middle-end/44563
35875 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
35876 for redirect_all_calls.
35878 2015-03-10 Marek Polacek <polacek@redhat.com>
35880 * gdbinit.in (pcfun): Define and document.
35882 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
35884 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
35885 of libgomp-plugin.h.
35886 (find_target_compiler): Support a case when the path to gcc is
35887 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
35888 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
35889 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
35891 (main): Use GCC_INSTALL_NAME as target_driver_name.
35892 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
35894 (mkoffload.o): Remove obsolete include path and defines.
35895 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
35897 2015-03-10 Richard Biener <rguenther@suse.de>
35899 PR middle-end/63155
35900 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
35901 * tree-ssa-coalesce.c: Include timevar.h.
35902 (attempt_coalesce): Handle graph being NULL.
35903 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
35904 Split out abnormal coalescing to ...
35905 (perform_abnormal_coalescing): ... this function.
35906 (coalesce_ssa_name): Perform abnormal coalescing without computing
35908 (verify_ssa_coalescing_worker): New function.
35909 (verify_ssa_coalescing): Likewise.
35911 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
35914 * config.gcc (extra_options) [avr]: Remove.
35915 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
35916 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
35917 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
35919 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
35920 (-mmcu=): Add Var and MissingArgError properties.
35922 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
35923 * config/avr/t-multilib: Regenerate.
35924 * config/avr/specs.h: New file.
35925 * config/avr/driver-avr.c: New file.
35926 * config/avr/genopt.sh: Remove file.
35927 * config/avr/avr-tables.opt: Remove file.
35928 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
35929 * config/avr/avr-c.c: Same.
35930 * avr-arch.h: Same.
35931 (avr_current_device): Remove proto.
35932 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
35933 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
35934 (EXTRA_SPEC_FUNCTIONS): Define.
35935 (avr_devicespecs_file): New specs function proto.
35936 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
35937 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
35938 (avr_current_device): Remove definition and usage.
35939 (avr_set_core_architecture): New static function.
35940 (avr_option_override): Use it.
35941 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
35942 (mcu_name): New static array.
35943 (comparator, avr_archs_str, avr_mcus_str): New static functions.
35944 (avr_inform_devices, avr_inform_core_architectures): New functions.
35945 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
35946 (avrlibc.h) [WITH_AVRLIBC]: Include.
35947 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
35948 (print_mcu): Rewrite from scratch.
35949 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
35950 Forward to avr-specific specs defined in device-specs file.
35951 * config/avr/t-avr (driver-avr.o): New rule.
35952 (avr-devices.o): Depend on avr-arch.h.
35953 (avr-mcus): No more depend on avr-tables.opt.
35954 (avr-tables.opt): Remove rule.
35955 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
35957 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35959 * c-family/c.opt (fchkp-use-wrappers): New.
35960 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
35961 (chkp_wrap_function): New.
35962 (chkp_build_instrumented_fndecl): Support wrapped
35964 * doc/invoke.texi (-fcheck-pointer-bounds): New.
35965 (-fchkp-check-incomplete-type): New.
35966 (-fchkp-first-field-has-own-bounds): New.
35967 (-fchkp-narrow-bounds): New.
35968 (-fchkp-narrow-to-innermost-array): New.
35969 (-fchkp-optimize): New.
35970 (-fchkp-use-fast-string-functions): New.
35971 (-fchkp-use-nochk-string-functions): New.
35972 (-fchkp-use-static-bounds): New.
35973 (-fchkp-use-static-const-bounds): New.
35974 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
35975 (-fchkp-check-read): New.
35976 (-fchkp-check-write): New.
35977 (-fchkp-store-bounds): New.
35978 (-fchkp-instrument-calls): New.
35979 (-fchkp-instrument-marked-only): New.
35980 (-fchkp-use-wrappers): New.
35981 (-static-libmpx): New.
35982 (-static-libmpxwrappers): New.
35984 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35986 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
35987 (CHKP_SPEC): Add wrappers library.
35988 * c-family/c.opt (static-libmpxwrappers): New.
35990 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
35992 * config/i386/linux-common.h (LIBMPX_LIBS): New.
35993 (LIBMPX_SPEC): New.
35995 * gcc.c (CHKP_SPEC): New.
35996 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
35997 * c-family/c.opt (static-libmpx): New.
35999 2015-03-10 Richard Biener <rguenther@suse.de>
36001 PR middle-end/44563
36002 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
36004 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
36005 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
36006 (cgraph_add_edge_to_call_site_hash): Likewise.
36007 (cgraph_node::get_edge): Likewise.
36008 (cgraph_edge::set_call_stmt): Likewise.
36009 (cgraph_edge::remove_caller): Likewise.
36011 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
36013 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
36014 (callee_saved_gpr_regs_size): ... this.
36015 (callee_saved_regs_first_regno): Rename to ...
36016 (callee_saved_first_gpr_regno): ... this.
36017 (callee_saved_regs_last_regno) Rename to ...
36018 (callee_saved_last_gpr_regno): ... this.
36019 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
36021 (nds32_initial_elimination_offset): Likewise.
36022 (nds32_expand_prologue): Likewise.
36023 (nds32_expand_epilogue): Likewise.
36024 (nds32_expand_prologue_v3push): Likewise.
36025 (nds32_expand_epilogue_v3pop): Likewise.
36026 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
36027 Adjust renamed variables.
36028 (nds32_output_stack_pop): Likewise.
36030 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
36032 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
36035 2015-03-10 Jakub Jelinek <jakub@redhat.com>
36037 PR rtl-optimization/65321
36038 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
36040 * var-tracking.c (use_narrower_mode): Likewise.
36042 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
36044 PR tree-optimization/65355
36045 * varasm.c (notice_global_symbol): Do not produce RTL.
36046 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
36048 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
36049 check for section anchors.
36051 2015-03-10 Alan Modra <amodra@gmail.com>
36054 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
36055 to be single-arch by default. Set cpu_is_64bit for powerpc64
36056 given --with-cpu=native.
36057 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
36058 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
36060 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
36061 rs6000_isa_flags rather than TARGET_64BIT.
36063 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
36064 Kaz Kojima <kkojima@gcc.gnu.org>
36066 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
36068 2015-03-09 Jakub Jelinek <jakub@redhat.com>
36071 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
36072 on a TREE_BINFO, instead use BINFO_TYPE.
36074 2015-03-09 Richard Biener <rguenther@suse.de>
36076 PR middle-end/65270
36077 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
36078 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
36079 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
36080 of that. When comparing dereferences compare alignment.
36081 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
36083 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36085 * ipa-inline-analysis.c (check_callers): Check
36086 node->can_remove_if_no_direct_calls_and_refs_p.
36087 (growth_likely_positive): Reorganize to call
36088 can_remove_if_no_direct_calls_p later.
36089 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
36090 will_be_removed_from_program_if_no_direct_calls_p): Add
36091 will_inline parameter.
36092 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
36093 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36094 Handle inliner case correctly.
36096 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
36098 PR tree-optimization/63743
36099 * cfgexpand.c (reorder_operands): Also reorder if only second operand
36100 had its definition forwarded by TER.
36102 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
36105 * ipa-utils.h (types_odr_comparable): Add strict argument.
36106 * ipa-devirt.c: Fix whitespace;
36107 (odr_hasher): Remove.
36108 (odr_name_hasher, odr_vtable_hasher): New hashers.
36109 (can_be_name_hashed_p): New predicate.
36110 (hash_type_name): remove.
36111 (hash_odr_name): New.
36112 (odr_name_hasher::hash): new.
36113 (can_be_vtable_hashed_p): New.
36114 (hash_odr_vtable): New.
36115 (odr_vtable_hasher::hash): New.
36116 (types_same_for_odr): Add strict parameter.
36117 (types_odr_comparable): Likewise.
36118 (odr_name_hasher::equal): New.
36119 (odr_vtable_hasher::equal): New.
36120 (odr_name_hasher::remove): New.
36121 (odr_hash_type): Change to hash_table<odr_name_hasher>.
36122 (odr_vtable_hash_type): New.
36123 (odr_vtable_hash): New.
36124 (odr_subtypes_equivalent_p): Do strict comparsion.
36125 (add_type_duplicate): Merge type names; cleanup; avoid type
36127 (register_odr_type): Initialize vtable hash.
36128 (build_type_inheritance_graph): Likewise
36129 (get_odr_type): Reorg to use two hashes.
36130 (dump_possible_polymorphic_call_targets): Move sanity check after debug
36132 (ipa_devirt): Dump type_inheritance_graph.
36133 (types_same_for_odr): Add strict mode.
36135 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36138 * cgraph.h (symtab_node): Add definition_alignment,
36139 can_increase_alignment_p and increase_alignment.
36140 * symtab.c (symtab_node::can_increase_alignment_p,
36141 increase_alignment_1, symtab_node::increase_alignment,
36142 symtab_node::definition_alignment): New.
36143 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
36144 can_increase_alignment_p.
36145 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
36146 * tree-vect-stmts.c (ensure_base_align): Likewise.
36147 * varasm.c (function_section_1): Use definition_alignment.
36148 (assemble_start_function): Likewise.
36149 (emit_local): likewise.
36150 (build_constant_desc): Likewsie.
36151 (output_constant_def_contents): Likewise.
36152 (place_block_symbol): Likewise.
36153 (output_object_block): Likewise.
36155 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36158 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
36159 when outputting debug.
36161 2015-03-07 Marek Polacek <polacek@redhat.com>
36162 Martin Uecker <uecker@eecs.berkeley.edu>
36165 * doc/invoke.texi: Update description of -fsanitize=bounds.
36167 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
36169 * tree-ssa-phiopt.c (neg_replacement): Remove.
36170 (tree_ssa_phiopt_worker): Remove negate optimization.
36172 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36175 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
36177 2015-03-06 Richard Biener <rguenther@suse.de>
36179 PR middle-end/64928
36180 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
36181 and liveout_obstack members.
36182 (calculate_live_on_exit): Remove.
36183 (calculate_live_ranges): Change declaration.
36184 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
36185 (new_tree_live_info): Adjust.
36186 (calculate_live_ranges): Delete livein when not wanted.
36187 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
36188 Deal with partly deleted live info.
36189 (loe_visit_block): Remove temporary bitmap by using
36190 bitmap_ior_and_compl_into.
36191 (live_worklist): Adjust accordingly.
36192 (calculate_live_on_exit): Make static.
36193 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
36194 we do not need livein.
36196 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
36198 * real.c (real_from_string): Fix typo in assertion.
36200 2015-03-06 Alex Velenko <alex.velenko@arm.com>
36202 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
36205 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
36207 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
36209 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
36212 * lra-assigns.c (find_hard_regno_for): Rename to
36213 find_hard_regno_for_1. Add a new parameter.
36214 (find_hard_regno_for): New function using find_hard_regno_for_1.
36216 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
36218 PR rtl-optimization/65067
36219 * expmed.c (store_bit_field, extract_bit_field): Reworked the
36220 strict volatile bitfield handling.
36222 2015-03-05 Martin Liska <mliska@suse.cz>
36225 * ipa-icf.c (sem_variable::equals): Compare variables types.
36227 2015-03-05 Richard Henderson <rth@redhat.com>
36230 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
36231 correctly check weak symbol binding.
36233 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
36235 PR middle-end/65315
36236 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
36239 2015-03-05 Martin Liska <mliska@suse.cz>
36241 * ipa-inline.c (inline_small_functions): Set default value to
36242 prevent warning during bootstrap.
36243 * tree.h: Add pragma guard that ignores false positives during
36246 2015-03-05 Richard Biener <rguenther@suse.de>
36248 PR tree-optimization/65310
36249 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
36250 Properly preserve alignment of the base of the access.
36252 2015-03-05 Richard Biener <rguenther@suse.de>
36255 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
36256 Compare dependence info.
36258 2015-03-05 Richard Biener <rguenther@suse.de>
36260 PR middle-end/65233
36261 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
36263 (walk_ssa_copies): Revert last chage. Instead do not walk
36264 SSA names registered for SSA update.
36266 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36269 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
36270 vtable references for their containing type.
36271 (sem_function::equals_wpa): Compare TYPE_RESTRICT
36272 and type attributes.
36274 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
36276 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
36277 before negating it.
36278 * stor-layout.c (finalize_record_size): Revert latest change.
36280 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
36282 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
36284 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36286 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
36287 for correct comdat handling.
36288 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
36290 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
36291 (used_from_object_file_p_worker): Remove.
36292 (cgraph_node::only_called_directly_or_alised): Add
36293 used_from_object_file_p.
36294 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
36295 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
36296 can_remove_if_no_direct_calls_and_refs_p.
36298 2015-03-04 Nick Clifton <nickc@redhat.com>
36300 * config/rl78/rl78.h (enum reg_class): Remove real registers from
36301 General register class.
36302 * config/rl78/rl78-real.md: Replace general register constraints
36303 with real+virtual register constraints.
36305 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
36307 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
36308 from checking for -mhtm option.
36310 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
36312 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
36313 (struct ipa_sra_check_caller_data): Add has_thunk field.
36314 (ipa_sra_check_caller): Check for thunk.
36315 (ipa_sra_preliminary_function_checks): Give up on function with
36317 (ipa_early_sra): Use call_for_symbol_and_aliases.
36319 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
36322 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
36323 called for __stack_chk_guard symbol.
36325 2015-03-03 DJ Delorie <dj@redhat.com>
36327 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
36329 (*addhi3_real): Likewise.
36330 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
36331 pattern to match incrementing memory.
36332 * config/rl78/predicates.md (rl78_1_2_operand): New.
36333 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
36334 it's the same and only mem.
36335 (rl78_alloc_physical_registers_op2): If there's effectively only
36336 one MEM, transcode it into HL.
36337 (rl78_far_p): Reject addresses that aren't legitimate.
36339 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36341 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
36344 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
36346 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36348 Implement call0 ABI for xtensa
36349 * config/xtensa/constraints.md ("a" constraint): Include stack
36350 pointer in case of call0 ABI.
36351 ("q" constraint): Make empty in case of call0 ABI.
36352 ("D" constraint): Include stack pointer in case of call0 ABI.
36353 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
36354 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
36356 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
36358 (xtensa_regno_to_class): Make it a local variable in the
36359 function xtensa_regno_to_class.
36360 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
36361 macro, function prototype and implementation.
36362 (reg_nonleaf_alloc_order): Make it a local variable in the
36363 function order_regs_for_local_alloc.
36364 (xtensa_conditional_register_usage): New function.
36365 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
36366 (xtensa_valid_move): Allow direct moves to stack pointer
36367 register in call0 ABI.
36368 (xtensa_setup_frame_addresses): Only spill register windows in
36370 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
36371 call0 ABI respectively.
36372 (xtensa_function_arg_1): Only mark a7 register for copying in
36374 (xtensa_call_save_reg): New function.
36375 (compute_frame_size): Add space for callee saved register
36376 storage to the frame size in call0 ABI.
36377 (xtensa_expand_prologue): Generate code to set up stack frame
36378 and save callee-saved registers in call0 ABI.
36379 (xtensa_expand_epilogue): New function.
36380 (xtensa_set_return_address): New function.
36381 (xtensa_return_addr): Calculate return address in call0 ABI.
36382 (xtensa_builtin_saveregs): Only mark a7 register for copying and
36383 emit copying code in windowed ABI.
36384 (order_regs_for_local_alloc): Add preferred register allocation
36385 order for non-leaf function in call0 ABI.
36386 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
36387 (xtensa_asm_trampoline_template): Add trampoline generation for
36389 (xtensa_trampoline_init): Add trampoline initialization for
36391 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
36393 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
36394 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
36395 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
36396 ABI call-used registers.
36397 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
36398 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
36400 (REG_CLASS_CONTENTS): Include all registers into the preferred
36401 reload registers set, adjust the set in the
36402 xtensa_conditional_register_usage.
36403 (xtensa_regno_to_class): Drop variable declaration.
36404 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
36406 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
36408 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
36409 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
36410 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
36411 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
36412 location in call0 ABI.
36413 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
36414 stack adjustment size when handling exception.
36415 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
36416 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
36418 ("return" pattern): Generate ret.n/ret in call0 ABI.
36419 ("epilogue" pattern): Expand epilogue.
36420 ("nonlocal_goto" pattern): Use default in call0 ABI.
36421 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
36422 emit eh_set_a0_* depending on ABI.
36423 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
36424 ("eh_set_a0_call0", "blockage"): New patterns.
36426 2015-03-03 Martin Liska <mliska@suse.cz>
36429 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
36431 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
36434 * config/rs6000/rs6000-tables.opt: Regenerate table.
36436 2015-03-03 Renlin Li <renlin.li@arm.com>
36438 * doc/md.texi (@item ^): Change ? into ^.
36440 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
36442 * doc/tm.texi: Regenerated.
36444 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
36446 * builtins.c (expand_builtin_return_addr): Add
36447 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
36448 surrounding #ifdef.
36449 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
36451 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
36453 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
36455 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
36458 2015-03-03 Martin Jambor <mjambor@suse.cz>
36459 Eric Botcazou <ebotcazou@adacore.com>
36461 * tree-sra.c (ipa_sra_check_caller_data): New type.
36462 (has_caller_p): Removed.
36463 (ipa_sra_check_caller): New function.
36464 (ipa_sra_preliminary_function_checks): Use it.
36466 2015-03-03 Martin Liska <mliska@suse.cz>
36468 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
36469 instead of if branch.
36471 2015-03-03 Martin Liska <mliska@suse.cz>
36474 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
36476 2015-03-23 Jeff Law <law@redhat.com>
36478 PR tree-optimization/65241
36479 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
36480 hash table if INSERT is true.
36482 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36485 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
36487 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36490 * config/avr/avr.c (context.h, tree-pass.h): Include them.
36491 (avr_pass_data_recompute_notes): New static variable.
36492 (avr_pass_recompute_notes): New class.
36493 (avr_register_passes): New static function.
36494 (avr_option_override): Call it.
36496 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
36498 Fix various problems with specs file generation.
36501 * config.gcc (extra_gcc_objs) [avr]: Remove.
36502 * config/avr/driver-avr.c: Remove file.
36503 * config/avr/t-avr (driver-avr.o): Remove rule.
36504 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
36505 INCLUDES to build. Depend on TM_H.
36506 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
36507 build warnings. Fix non-matching types and non-existing %-codes.
36509 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
36510 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
36511 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
36512 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
36513 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
36514 (LIBGCC_SPEC): Remove definitions.
36516 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
36518 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
36519 to create a register in testing mode.
36521 2015-03-03 Martin Liska <mliska@suse.cz>
36522 Jan Hubicka <hubicka@ucw.cz>
36525 * cgraph.c (cgraph_node::has_thunk_p): New function.
36526 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
36527 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
36528 (sem_function::merge): Assert is changed.
36530 2015-03-03 Martin Liska <mliska@suse.cz>
36531 Martin Jambor <mjambor@suse.cz>
36534 * ipa-icf.c (sem_item_optimizer::execute): Change function
36535 return value to boolean.
36536 (sem_item_optimizer::merge_classes): Likewise.
36537 (ipa_icf_driver): Return TODO_remove_functions in case there's
36538 a merge operation processed.
36539 * ipa-icf.h: Change function return value to boolean.
36541 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
36544 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
36545 processor type for 64-bit little endian PowerPC.
36547 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
36548 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
36549 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
36550 printing built-in mask so it does not pass NULL pointers.
36552 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
36555 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
36558 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
36559 !ISA_HAS_FP_CONDMOVE.
36561 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
36563 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
36566 2015-03-02 Ulrich Drepper <drepper@gmail.com>
36568 * doc/invoke.texi (Options for Code Generation Conventions):
36569 Fix URL of DSO paper.
36571 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36574 * ipa-inline.c (check_callers): Looks for recursion.
36575 (inline_to_all_callers): Give up on uninlinable or recursive edges.
36576 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
36577 summary of inline clones.
36578 (do_estimate_growth_1): Fix recursion check.
36580 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36583 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
36586 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
36587 Aldy Hernandez <aldyh@redhat.com>
36590 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
36591 when checking TYPE_BINFO.
36593 2015-03-02 Richard Biener <rguenther@suse.de>
36596 * ipa-icf-gimple.c: Include builtins.h.
36597 (func_checker::compare_memory_operand): Compare base alignment.
36599 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36602 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
36603 passed by reference.
36605 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
36608 * tree-chkp.c (chkp_check_lower): Don't check against
36609 zero bounds for already instrumented functions.
36610 (chkp_check_upper): Likewise.
36611 (chkp_fini): Clean pass local data to avoid wrong reusage.
36613 2015-02-28 Martin Liska <mliska@suse.cz>
36614 Jan Hubicka <hubicka@ucw.cz>
36616 * ipa-icf.c (sem_variable::equals): Improve debug output;
36617 get variable constructor.
36618 (sem_variable::parse): Do not filter out too early; give up on
36619 volatile and register vars.
36620 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
36622 * ipa-icf.h (sem_variable::init): Do not set ctor.
36623 (sem_variable::ctor): Remove.
36625 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
36627 PR middle-end/65233
36628 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
36630 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36632 * ipa-icf.c: Include stor-layout.h
36633 (sem_function::compare_cgraph_references): Rename to ...
36634 (sem_item::compare_cgraph_references): ... this one.
36635 (sem_variable::equals_wpa): New function
36636 (sem_variable::equals): Do not check stuff already verified by
36638 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
36639 * ipa-icf.h (sem_item): Add compare_cgraph_references.
36640 (sem_function): Remove compare_cgraph_references.
36641 (sem_variable): Turns equals_wpa into non-inline.
36643 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36645 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
36646 (sem_item::add_expr): New function.
36647 (sem_function::hash_stmt): Handle operands of most statements.
36648 (sem_variable::get_hash): Hash the actual constructor.
36649 * ipa-icf.h (sem_item): Add add_expr.
36650 (sem_function): Update prototype of hash_stmt
36652 2015-02-28 Martin Liska <mliska@suse.cz>
36653 Jan Hubicka <hubicka@ucw.cz>
36656 * ipa-icf-gimple.c (func_checker::compare_function_decl):
36658 (func_checker::compare_variable_decl): Skip symtab vars.
36659 (func_checker::compare_cst_or_decl): Update.
36660 * ipa-icf.c (sem_function::parse): Do not consider aliases.
36661 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
36662 use correct symtab predicates.
36663 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
36664 (sem_variable::parse): Update comment.
36665 (sem_item_optimizer::build_graph): Consider ultimate aliases
36668 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36670 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
36673 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36675 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
36676 (sem_variable::merge) Likewise.
36678 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36680 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
36681 target; also match flag_ipa_devirt.
36683 2015-03-01 Martin Liska <mliska@suse.cz>
36684 Jan Hubicka <hubicka@ucw.cz>
36686 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
36687 Validate variable alignment.
36688 * ipa-icf.c (sem_function::equals_private): Be more precise
36689 about non-common function attributes.
36690 (sem_variable::equals): Likewise.
36692 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36695 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
36696 across COMDAT group boundary.
36698 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36701 * ipa-icf.c (clear_decl_rtl): New function.
36702 (sem_function::merge): Clear RTL before forming alias.
36703 (sem_variable::merge): Clear RTL before forming alias.
36705 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
36708 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
36710 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
36712 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
36715 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36717 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
36718 a typo in the description.
36720 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36723 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36724 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
36725 * lra-constraints.c: Include "params.h".
36726 (EBB_PROBABILITY_CUTOFF): Use
36727 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
36728 (lra_inheritance): Use '<' instead of '<=' for
36729 EBB_PROBABILITY_CUTOFF.
36730 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
36733 2015-02-27 Martin Liska <mliska@suse.cz>
36735 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
36736 vector length condition.
36738 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
36740 * doc/extend.texi (x86 transactional memory intrinsics):
36741 Reorganize discussion of _xbegin. Clarify that the return
36742 value is a bit mask. Expand example and move to end of section.
36744 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36745 Aldy Hernandez <aldyh@redhat.com>
36747 PR rtl-optimization/65220
36748 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
36750 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
36753 * lra-remat.c (update_scratch_ops): New.
36754 (do_remat): Call it.
36755 * lra.c (lra_register_new_scratch_op): New. Take code from ...
36756 (remove_scratches): ... here.
36757 * lra-int.h (lra_register_new_scratch_op): New prototype.
36759 2015-02-27 Marek Polacek <polacek@redhat.com>
36762 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
36763 -Wformat-signedness anymore.
36765 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36767 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
36769 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
36771 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36773 * config/s390/s390.c (enum s390_builtin):
36774 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
36775 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
36776 (s390_init_builtins): Generate new builtin functions.
36777 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
36778 (s390_sfpc, s390_efpc): New pattern definitions.
36780 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36782 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
36783 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
36784 (s390_builtin_decls): New array.
36785 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
36786 (s390_builtin_decl): New function.
36787 (TARGET_BUILTIN_DECL): Define macro.
36789 2015-02-27 Richard Biener <rguenther@suse.de>
36791 PR middle-end/63175
36792 * builtins.c (get_object_alignment_2): Make sure to re-apply
36793 the ANDed mask after recursing to its operand gets us a new
36794 misalignment bit position.
36796 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
36797 Martin Liska <mliska@suse.cz>
36800 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
36801 Use address_matters_p.
36802 (redirect_all_callers, set_addressable): New functions.
36803 (sem_function::merge): Reorganize and fix merging issues.
36804 (sem_variable::merge): Likewise.
36805 (sem_variable::compare_sections): Remove.
36806 * common.opt (fmerge-all-constants, fmerge-constants): Remove
36808 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
36810 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
36812 (address_matters_1): New function.
36813 (symtab_node::address_matters_p): New function.
36814 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
36815 check for merged flag.
36816 * cgraph.h (address_matters_p): Declare.
36817 (symtab_node::address_taken_from_non_vtable_p): Remove.
36818 (symtab_node::address_can_be_compared_p): New method.
36819 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
36820 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
36822 (comdat_can_be_unshared_p_1) Use address_matters_p.
36823 (update_vtable_references): Fix formating.
36824 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
36825 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
36826 * cgraphclones.c: Preserve merged and icf_merged flags.
36828 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
36830 * doc/extend.texi (Function Attributes): Fix spelling and typos.
36831 (Label Attributes): Likewise.
36832 (Cilk Plus Builtins): Likewise.
36833 (ARC SIMD Built-in Functions): Likewise.
36834 (ARM C Language Extensions (ACLE)): Likewise.
36835 (PowerPC Built-in Functions): Likewise.
36836 (PowerPC Hardware Transactional Memory Built-in Functions):
36839 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36841 PR tree-optimization/65216
36842 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
36843 new stmt and new SSA_NAME for lhs whenever the arguments have
36844 changed and weren't just swapped. Fix comment typo.
36846 PR tree-optimization/65215
36847 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
36848 for PDP endian targets.
36849 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
36850 Fix up formatting issues.
36851 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
36852 size is smaller than the original, adjust MEM_REF offset by the
36853 difference of sizes. Use is_gimple_mem_ref_addr instead of
36854 is_gimple_min_invariant test to avoid adding address temporaries.
36856 2015-02-26 Martin Liska <mliska@suse.cz>
36857 Jan Hubicka <hubicka@ucw.cz>
36860 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
36861 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
36862 (sem_item_optimizer::process_cong_reduction): Include division by
36863 sensitive references.
36864 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
36865 * ipa-ref.c (ipa_ref::address_matters_p): New function.
36866 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
36868 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
36871 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
36873 * config/avr/avr.c: Same.
36874 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
36875 Refuse any constant address not in 0..0xbf.
36876 * config/avr/avr.md (*mov<mode>, *movsf): Remove
36877 tiny_valid_direct_memory_access_range from insn conditions.
36878 (mov<mode>): Don't special-case expansion of avrtiny addresses.
36880 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
36883 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
36884 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
36885 * config/sh/predicates.md (const_logical_operand): New predicate.
36886 * config/sh/sh.md: Add new peephole2 patterns.
36888 2015-02-26 Marek Polacek <polacek@redhat.com>
36891 * ipa-inline.c (early_inliner): Recompute inline parameters.
36893 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
36896 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
36897 instructions with TImode operands are included in the analysis.
36899 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36901 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
36902 of an EDGE_FSM_THREAD.
36904 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
36906 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
36908 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
36911 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
36913 2015-02-26 Sebastian Pop <s.pop@samsung.com>
36915 PR tree-optimization/65048
36916 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
36917 (thread_through_all_blocks): Call valid_jump_thread_path.
36918 Remove invalid FSM jump-thread paths.
36920 2015-02-26 Jakub Jelinek <jakub@redhat.com>
36922 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
36923 (ipa_write_optimization_summaries): Likewise.
36924 * tree-streamer.h: Include data-streamer.h.
36925 (streamer_mode_table): Declare extern variable.
36926 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
36927 * lto-streamer-out.c (lto_output_init_mode_table,
36928 lto_write_mode_table): New functions.
36929 (produce_asm_for_decls): Call lto_write_mode_table when streaming
36931 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
36932 (lto_create_simple_input_block): Add mode_table argument to the
36933 lto_input_block constructors.
36934 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
36936 * data-streamer-in.c (string_for_index): Likewise.
36937 * ipa-inline-analysis.c (inline_read_section): Likewise.
36938 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
36939 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
36940 * lto-streamer-in.c (lto_read_body_or_constructor,
36941 lto_input_toplevel_asms): Likewise.
36942 (lto_input_mode_table): New function.
36943 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
36944 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
36945 Use bp_pack_machine_mode.
36946 * real.h (struct real_format): Add name field.
36947 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
36948 (class lto_input_block): Add mode_table member.
36949 (lto_input_block::lto_input_block): Add mode_table_ argument,
36950 initialize mode_table.
36951 (struct lto_file_decl_data): Add mode_table field.
36952 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
36953 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
36954 unpack_ts_decl_common_value_fields,
36955 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
36956 * tree-streamer.c (streamer_mode_table): New variable.
36957 * real.c (ieee_single_format, mips_single_format,
36958 motorola_single_format, spu_single_format, ieee_double_format,
36959 mips_double_format, motorola_double_format,
36960 ieee_extended_motorola_format, ieee_extended_intel_96_format,
36961 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
36962 ibm_extended_format, mips_extended_format, ieee_quad_format,
36963 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
36964 decimal_single_format, decimal_double_format, decimal_quad_format,
36965 ieee_half_format, arm_half_format, real_internal_format): Add name
36967 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
36969 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
36972 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
36973 reordering for selective scheduling.
36975 2015-02-26 Terry Guo <terry.guo@arm.com>
36977 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
36978 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
36979 (arm_arch_no_volatile_ce): Declare new global variable.
36980 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
36981 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
36982 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
36983 (TARGET_NO_VOLATILE_CE): New macro.
36984 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
36985 volatile memory access in IT block
36987 2015-02-25 Kai Tietz <ktietz@redhat.com>
36989 PR tree-optimization/61917
36990 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
36991 that reduc_def_stmt is null.
36993 2015-02-25 Martin Liska <mliska@suse.cz>
36995 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
36996 hard register variables.
36998 2015-02-25 Kai Tietz <ktietz@redhat.com>
37001 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
37002 (symtab::noninterposable_alias): Likewise.
37004 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
37007 * config/i386/i386.c (ix86_function_arg_regno_p): Support
37009 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
37011 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
37014 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
37015 as split condition; force split via '#' in output pattern.
37017 2015-02-25 Richard Biener <rguenther@suse.de>
37018 Kai Tietz <ktietz@redhat.com>
37020 PR tree-optimization/61917
37021 * tree-vect-loop.c (vectorizable_reduction): Allow
37022 vect_internal_def without reduction to exit graceful.
37024 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37027 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
37028 only with NONDEBUG_INSN_P.
37030 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
37032 Use variadic macros with avr-log.c.
37034 * config/avr/avr-protos.h (avr_vdump): New prototype.
37035 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
37036 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
37037 * config/avr/avr-log.c: Adjust comments.
37038 (avr_vdump): New function.
37039 (avr_vadump): Pass caller as 2nd argument instead of format string.
37040 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
37041 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
37043 2015-02-25 Jakub Jelinek <jakub@redhat.com>
37046 * target.def (target_option_stream_in): New target hook.
37047 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
37048 targetm.target_option.post_stream_in if non-NULL.
37049 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
37050 * doc/tm.texi: Updated.
37051 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
37053 (TARGET_OPTION_POST_STREAM_IN): Redefine.
37055 2015-02-24 Jeff Law <law@redhat.com>
37058 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
37059 of operand 0 and operand 2.
37060 (zero_cost_loop_end, loop_end): Similarly.
37062 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
37064 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
37067 2015-02-24 DJ Delorie <dj@redhat.com>
37069 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
37070 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
37071 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
37072 instead of hardcoding SImode.
37074 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
37076 * omp-low.c (create_omp_child_function): Tag entrypoint
37077 functions with a special attribute.
37079 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37082 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
37084 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
37086 PR rtl-optimization/65123
37087 * lra-remat.c (operand_to_remat): Check hard regs in insn
37090 2015-02-24 Nick Clifton <nickc@redhat.com>
37092 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
37095 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
37098 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
37099 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
37100 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
37101 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
37102 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
37103 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
37104 (BUILT_IN_GOACC_PARALLEL): Specify as
37105 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
37106 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
37107 * builtin-types.def
37108 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37109 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37110 Remove function types.
37111 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
37112 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
37113 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
37114 New function types.
37116 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
37118 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
37120 2015-02-24 Jakub Jelinek <jakub@redhat.com>
37122 PR tree-optimization/65170
37123 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
37124 if val[1] < 0, clear also val[2] and return 3.
37126 2015-02-24 Alan Modra <amodra@gmail.com>
37129 * config/rs6000/rs6000.c (get_memref_parts): Only return true
37130 when *base is a reg. Handle nested plus addresses. Simplify
37133 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
37135 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
37136 use natural alignment when optimizing for size.
37138 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
37141 * config/sh/sh.md (movsicc_true+3): Remove peephole.
37142 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
37143 * config/sh/sh.c (replace_n_hard_rtx): Remove.
37145 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
37148 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
37149 too big for a wide_int. Implement missing wrapping operation.
37151 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
37154 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
37155 instead of const_int 4294901760.
37157 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
37159 * config/avr/t-avr: Fix typo in comment.
37161 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
37163 * doc/rtl.texi (fma): Clarify documentation.
37165 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
37168 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
37169 over input_location.
37171 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37173 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
37174 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
37175 restrict alignments to absolute_biggest_alignment.
37176 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
37178 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
37179 * doc/tm.texi: Regenerate.
37180 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
37182 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
37185 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
37187 2015-02-20 Richard Biener <rguenther@suse.de>
37189 PR tree-optimization/65136
37190 * tree-ssa-propagate.c: Include cfgloop.h.
37191 (replace_phi_args_in): Avoid replacing loop latch edge PHI
37192 arguments with constants.
37194 2015-02-20 Jakub Jelinek <jakub@redhat.com>
37195 Martin Liska <mliska@suse.cz>
37198 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
37199 don't try to create_thunk if stdarg_p. If
37200 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
37201 redirect_callers if possible.
37202 (sem_item_optimizer::execute): Call unregister_hooks here...
37203 (ipa_icf_driver): ... instead of here.
37205 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37207 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
37208 Mark operand 0 as earlyclobber in 2nd alternative.
37209 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
37210 Write negated shift amount into QI lowpart operand 0 and use it
37212 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
37214 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37216 * cgraph.h (clone_function_name_1): Declare.
37217 * cgraphclones.c (clone_function_name_1): New function.
37218 (clone_function_name): Use it.
37219 * lto-partition.c: Include "stringpool.h".
37220 (must_not_rename, maybe_rewrite_identifier)
37221 (validize_symbol_for_target): New static functions.
37222 (privatize_symbol_name): Use must_not_rename.
37223 (promote_symbol): Call validize_symbol_for_target.
37224 (lto_promote_cross_file_statics): Likewise.
37225 (lto_promote_statics_nonwpa): Likewise.
37227 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
37230 * config/avr/avr.md (pushhi_insn): New insn.
37231 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
37233 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
37234 Jakub Jelinek <jakub@redhat.com>
37236 * tree-streamer.c (preload_common_nodes): Don't preload
37237 TI_VA_LIST* for offloading.
37238 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
37241 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
37243 * config/pa/pa.c (pa_emit_move_sequence): Always force
37244 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
37247 * config/pa/pa.c (pa_reloc_rw_mask): New function.
37248 (TARGET_ASM_RELOC_RW_MASK): Define.
37249 (pa_cannot_force_const_mem): Revert previous change.
37251 2015-02-19 Martin Jambor <mjmabor@suse.cz>
37252 Jan Hubicka <hubicka@ucw.cz>
37255 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
37256 across jump functions.
37258 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
37260 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
37262 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
37264 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
37266 2015-02-19 Richard Henderson <rth@redhat.com>
37268 PR middle-end/65074
37269 * varasm.c (default_binds_local_p_2): Don't test node->definition;
37270 test DECL_EXTERNAL independent of symtab_node.
37272 2015-02-19 Jakub Jelinek <jakub@redhat.com>
37275 * varpool.c (varpool_node::get_constructor): Return early
37276 if this->lto_file_data is NULL.
37278 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
37280 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
37281 (rank_for_schedule_debug): Update.
37282 (ready_sort): Make static. Move sorting logic to ...
37283 (ready_sort_debug, ready_sort_real): New static functions.
37284 (schedule_block): Sort both debug insns and real insns in preparation
37285 for ready list trimming. Improve debug output.
37286 * sched-int.h (ready_sort): Remove global declaration.
37288 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
37290 * ipa-icf.c (sem_function::equals_private): Adjust.
37291 (sem_function::bb_dict_test): Take a vec<int> * instead of
37293 * ipa-icf.h (bb_dict_test): Likewise.
37295 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37297 PR gcov-profile/64634
37298 * tree-eh.c (frob_into_branch_around): Fix up typos
37299 in function comment.
37300 (lower_catch): Put eh_seq resulting from EH lowering of
37301 the cleanup sequence after the cleanup rather than before it.
37303 2015-02-18 Tom de Vries <tom@codesourcery.com>
37305 * common.opt (fstdarg-opt): New option.
37306 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
37307 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
37308 (@item -fstdarg-opt): New item.
37310 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
37313 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
37314 for common symbols.
37316 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37318 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
37320 (ALL_HOST_OBJS): Add mkoffload.o.
37321 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
37323 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
37325 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
37326 (compare_virtual_tables): Be smarter about skipping typeinfos;
37327 do sane output on virtual table table mismatch.
37328 (warn_odr): Be ready for forward declarations of enums;
37329 output sane info on base mismatch and virtual table mismatch.
37330 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
37331 when only one type is polymorphic.
37332 (get_odr_type): Fix hashtable corruption.
37333 (dump_odr_type): Dump mangled names.
37335 2015-02-18 Richard Biener <rguenther@suse.de>
37337 PR tree-optimization/65063
37338 * tree-predcom.c (determine_unroll_factor): Return 1 if we
37339 have replaced looparound PHIs.
37341 2015-02-18 Martin Liska <mliska@suse.cz>
37343 * lto-streamer.c (lto_streamer_init): Encapsulate
37344 streamer_check_handled_ts_structures with checking macro.
37346 2015-02-18 Jakub Jelinek <jakub@redhat.com>
37349 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
37350 section if !implicit_section.
37351 (cgraph_node::create_version_clone_with_body): Likewise.
37352 * trans-mem.c (ipa_tm_create_version): Likewise.
37354 2015-02-18 Richard Biener <rguenther@suse.de>
37356 PR tree-optimization/62217
37357 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
37360 2015-02-18 Marek Polacek <polacek@redhat.com>
37363 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
37364 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
37365 is in range [-16K, -1]. Don't issue run-time error if
37366 (ptr > ptr + offset).
37368 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
37370 * doc/install.texi (nvptx-*-none): New section.
37371 * doc/invoke.texi (Nvidia PTX Options): Likewise.
37372 * config/nvptx/nvptx.opt: Update.
37374 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
37375 (access_check): New functions, copied from
37376 config/i386/intelmic-mkoffload.c.
37377 (main): For non-installed testing, look in all COMPILER_PATHs for
37380 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
37382 2015-02-18 Andrew Pinski <apinski@cavium.com>
37383 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
37385 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
37386 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
37388 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37390 * ipa-visibility.c (function_and_variable_visibility): Only
37391 check locality if node is not already local.
37392 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37393 call_for_symbol_and_aliases instead of
37394 call_for_symbol_thunks_and_aliases.
37395 (ipa_inline): Likewise.
37396 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37397 first walk aliases.
37398 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37399 call_for_symbol_and_aliases.
37400 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37401 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37402 (ipa_propagate_frequency): Update.
37403 (ipa_profile): Add opt_for_fn gueards.
37405 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37407 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
37408 * doc/invoke.texi (SH options): Document it.
37409 * config/sh/sh.c (sh_insn_length_adjustment): Check
37410 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
37412 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
37414 * common.opt (fipa-cp-alignment): New.
37415 * ipa-cp.c (ipcp_store_alignment_results): Check
37416 flag_ipa_cp_alignment.
37417 * opts.c (default_options_table): Enable -fipa-cp-alignment for
37419 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
37420 * doc/invoke.texi: Document -fipa-cp-alignment.
37422 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
37425 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
37426 to nil. Adjust comments.
37428 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
37430 * ipa-visibility.c (function_and_variable_visibility): Only
37431 check locality if node is not already local.
37432 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
37433 call_for_symbol_and_aliases instead of
37434 call_for_symbol_thunks_and_aliases.
37435 (ipa_inline): Likewise.
37436 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
37437 first walk aliases.
37438 * ipa.c (symbol_table::remove_unreachable_nodes): Use
37439 call_for_symbol_and_aliases.
37440 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
37441 (ipa_propagate_frequency_1): Use it; use opt_for_fn
37442 (ipa_propagate_frequency): Update.
37443 (ipa_profile): Add opt_for_fn guards.
37445 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
37447 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
37448 skipping of "strange" tokens.
37450 2015-02-17 Jeff Law <law@redhat.com>
37452 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
37455 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
37457 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
37458 as forcing a HARD_DEP between instructions, thereby
37459 disallowing rewriting to break dependencies.
37461 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37463 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
37464 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
37465 variables in boundary that have no inlitalizer encoded and are
37467 * varasm.c (default_binds_local_p_2): External definitions do not
37468 count as definitions here.
37470 2015-02-16 Jeff Law <law@redhat.com>
37472 PR tree-optimization/64823
37473 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
37475 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37476 threading through blocks with PHIs, but no statements.
37477 (thread_through_normal_block): Distinguish between blocks where
37478 we did not process all the statements and blocks with no statements.
37480 2015-02-16 Jakub Jelinek <jakub@redhat.com>
37481 James Greenhalgh <james.greenhalgh@arm.com>
37484 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
37485 section if not linkonce. Fix up formatting.
37486 (cgraph_node::create_version_clone_with_body): Copy section.
37487 * trans-mem.c (ipa_tm_create_version): Likewise.
37489 2015-02-16 Richard Biener <rguenther@suse.de>
37491 PR tree-optimization/65077
37492 * tree-ssa-structalias.c (get_constraint_for_1): Handle
37493 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
37494 (find_func_aliases): Allow float values to carry pointers again.
37496 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
37498 * doc/install.texi (Specific): Reorder targets list to put
37499 aarch64 in alphabetical order. Add a link to aarch64*-*-*
37502 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
37503 David Edelsohn <dje.gcc@gmail.com>
37506 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
37507 mapping class to external variable or function reference.
37508 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
37511 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
37514 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
37515 ASM_WEAKEN_DECL if defined.
37517 2015-02-16 Richard Biener <rguenther@suse.de>
37520 * varasm.c (default_file_start): For LTO produced units
37521 emit <artificial> as file directive.
37523 2015-02-16 Richard Biener <rguenther@suse.de>
37525 PR tree-optimization/63593
37526 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
37527 stmts and releasing SSA names until...
37528 (execute_pred_commoning): ... after processing all chains.
37530 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
37533 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
37534 external functions.
37536 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
37538 * doc/bugreport.texi: Adjust section titles throughout the file
37539 to use "Title Case".
37540 * doc/extend.texi: Likewise.
37541 * doc/gcov.texi: Likewise.
37542 * doc/implement-c.texi: Likewise.
37543 * doc/implement-cxx.texi: Likewise.
37544 * doc/invoke.texi: Likewise.
37545 * doc/objc.texi: Likewise.
37546 * doc/standards.texi: Likewise.
37547 * doc/trouble.texi: Likewise.
37549 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
37551 * cgraph.h (symtab_node::has_aliases_p): Simplify.
37552 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
37553 * tree.c (lookup_binfo_at_offset): Make static.
37554 (get_binfo_at_offset): Do not shadow offset; add explanatory
37557 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
37559 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
37560 for all floading point loads and stores except those using a register
37562 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
37565 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37567 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
37568 (do_estimate_growth_1): Record if any uninlinable edge was seen.
37569 (estimate_growth): Handle uninlinable edges correctly.
37570 (check_callers): New.
37571 (growth_likely_positive): Handle aliases correctly.
37573 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
37575 * ipa-chkp.c: Use iterate_direct_aliases.
37576 * symtab.c (resolution_used_from_other_file_p): Move inline.
37577 (symtab_node::create_reference): Fix formating.
37578 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37579 (symtab_node::iterate_reference): Move inline.
37580 (symtab_node::iterate_referring): Move inline.
37581 (symtab_node::iterate_direct_aliases): Move inline.
37582 (symtab_node::used_from_object_file_p_worker): Inline into ...
37583 (symtab_node::used_from_object_file_p): ... this one; move inline.
37584 (symtab_node::call_for_symbol_and_aliases): Move inline;
37585 use iterate_direct_aliases.
37586 (symtab_node::call_for_symbol_and_aliases_1): New method.
37587 (cgraph_node::call_for_symbol_and_aliases): Move inline;
37588 use iterate_direct_aliases.
37589 (cgraph_node::call_for_symbol_and_aliases_1): New method.
37590 (varpool_node::call_for_node_and_aliases): Rename to ...
37591 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
37592 use iterate_direct_aliases.
37593 (varpool_node::call_for_symbol_and_aliases_1): New method.
37594 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
37595 (ipa_discover_readonly_nonaddressable_var): Update.
37596 * ipa-devirt.c: Fix formating.
37597 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
37599 (cgraph_node::call_for_symbol_and_aliases): Move inline.
37600 (cgraph_node::call_for_symbol_and_aliases_1): New function..
37601 * cgraph.h (used_from_object_file_p_worker): Remove.
37602 (resolution_used_from_other_file_p): Move inline.
37603 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
37604 (symtab_node::iterate_reference): Move inline.
37605 (symtab_node::iterate_referring): Move inline.
37606 (symtab_node::iterate_direct_aliases): Move inline.
37607 (symtab_node::used_from_object_file_p_worker): Inline into ...
37608 (symtab_node::used_from_object_file_p): Move inline.
37609 * tree-emutls.c (ipa_lower_emutls): Update.
37610 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
37611 (varpool_node::call_for_node_and_aliases): Remove.
37613 2015-02-14 Jakub Jelinek <jakub@redhat.com>
37615 PR tree-optimization/62209
37616 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
37617 op == range->exp, insert seq and gimplified code after labels
37618 instead of after the phi.
37620 2015-02-13 Jeff Law <law@redhat.com>
37623 Revert my change for tree-optimization/64823.
37625 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37627 PR tree-optimization/65053
37628 * tree-ssa-phiopt.c (value_replacement): When moving assign before
37629 cond, either reset VR on lhs or set it to phi result VR.
37631 2015-02-13 Jeff Law <law@redhat.com>
37633 PR tree-optimization/64823
37634 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
37635 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
37636 threading through blocks with PHIs, but no statements.
37637 (thread_through_normal_block): Distinguish between blocks where
37638 we did not process all the statements and blocks with no statements.
37640 PR rtl-optimization/47477
37641 * match.pd (convert (plus/minus (convert @0) (convert @1): New
37642 simplifier to narrow arithmetic.
37644 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
37647 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
37648 polymorphic call info when type is not known to be preserved.
37650 2015-02-13 Maritn Jambor <mjambor@suse.cz>
37653 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
37654 (inline_call): Use it.
37656 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
37658 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
37659 GOMP_DEVICE_NVIDIA_PTX.
37661 2015-02-13 Jakub Jelinek <jakub@redhat.com>
37664 * stmt.c (emit_case_nodes): Use void_type_node instead of
37665 NULL_TREE as LABEL_DECL type.
37667 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
37669 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
37671 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
37672 symbolic references to data to be forced to constant memory on the
37675 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
37677 PR tree-optimization/65002
37678 * tree-cfg.c (pass_data_fixup_cfg): Don't update
37680 * tree-sra.c (some_callers_have_no_vuse_p): New.
37681 (ipa_early_sra): Reject functions whose callers
37682 assume function is read only.
37684 2015-02-13 Richard Biener <rguenther@suse.de>
37687 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
37688 for LTO produced CUs.
37690 2015-02-13 Bin Cheng <bin.cheng@arm.com>
37692 PR tree-optimization/64705
37693 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
37694 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
37695 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
37696 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
37697 expand_simple_operations.
37699 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
37700 Richard Henderson <rth@redhat.com>
37703 * cgraphunit.c (cgraph_node::finalize_function): Set definition
37704 before notice_global_symbol.
37705 (varpool_node::finalize_decl): Likewise.
37706 * varasm.c (default_binds_local_p_2): Rename from
37707 default_binds_local_p_1, add weak_dominate argument. Use direct
37708 returns instead of assigning to local variable. Unify varpool and
37709 cgraph paths via symtab_node. Reject undef weak variables before
37710 testing visibility. Reorder tests for simplicity.
37711 (default_binds_local_p): Use default_binds_local_p_2.
37712 (default_binds_local_p_1): Likewise.
37713 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
37715 (default_elf_asm_output_external): Emit visibility when specified.
37717 2015-02-13 Alan Modra <amodra@gmail.com>
37719 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
37720 code setting up r11 for out-of-line fp restore.
37722 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
37724 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
37725 (muser-mode): Likewise.
37727 2015-02-13 Alan Modra <amodra@gmail.com>
37729 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
37730 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
37732 2015-02-12 David Howells <dhowells@redhat.com>
37734 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
37736 * tree-ssa-uninit.c (dump_predicates): Likewise.
37737 * opts.c (print_filtered_help): Likewise.
37739 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37741 * dwarf2out.c (output_die): Use "%s", name instead of name to
37742 avoid -Wformat-security warning.
37744 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
37745 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37746 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
37747 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
37749 2015-02-12 Jason Merrill <jason@redhat.com>
37751 * common.opt (-flifetime-dse): New.
37753 2015-02-12 Jakub Jelinek <jakub@redhat.com>
37756 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
37758 PR tree-optimization/65014
37759 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
37760 use original second operand of arg0 or arg1 instead of
37761 that adjusted by STRIP_NOPS.
37763 2015-02-11 Jeff Law <law@redhat.com>
37766 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
37767 that needs to be queued, just queue it for a single cycle.
37769 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
37771 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
37772 bodies of thunks; comment on why.
37773 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
37774 symbols are extern.
37776 2015-02-11 Richard Henderson <rth@redhat.com>
37779 * tree-eh.c (mark_reachable_handlers): Mark source and destination
37780 regions of __builtin_eh_copy_values.
37782 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37784 PR middle-end/65003
37785 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
37786 ultimate alias is MEM with SYMBOL_REF satisfying
37787 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
37788 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
37790 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
37792 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
37793 "diagnostic-core.h".
37794 (main): Initialize progname, and call diagnostic_initialize.
37796 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
37797 instead of __OPENMP_TARGET__.
37799 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
37800 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
37801 hard-coding PTX_ID.
37803 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
37805 * doc/sourcebuild.texi (pie_enabled): Document.
37807 2015-02-11 Martin Liska <mliska@suse.cz>
37810 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
37811 a return value for call to a function that is noreturn.
37813 2015-02-11 Richard Biener <rguenther@suse.de>
37816 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
37819 2015-02-11 Andrew Pinski <apinski@cavium.com>
37822 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
37823 Change the first argument type to size_type_node and add another
37825 (aarch64_simd_expand_builtin): Handle the new argument to
37826 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
37827 print an out when the first two arguments are not
37828 nonzero integer constants.
37829 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
37830 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
37832 2015-02-11 Jakub Jelinek <jakub@redhat.com>
37835 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
37836 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
37837 (ix86_set_current_function): Rewritten.
37838 (ix86_add_new_builtins): Temporarily clear current_target_pragma
37839 when creating builtin fndecls.
37841 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37844 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
37846 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
37847 have no comdat group.
37848 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
37849 (lto_output_varpool_node): Always output alias info.
37850 (output_refs): Output refs of boundary aliases, too.
37851 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
37852 (output_symtab): Output call eges in thunks in boundary.
37853 (get_alias_symbol): Remove.
37854 (input_node, input_varpool_node): Do not special case weakrefs.
37855 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
37856 alias and thunks targets in the boundary; do not take removed symbols
37857 from their comdat groups.
37858 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
37859 (cgraph_node::global_info): Remove.
37860 (cgraph_node::rtl_info): Look through aliases and thunks.
37861 * cgrpah.h (global_info): Remove.
37862 (non_local_p): Remove.
37864 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37865 Sandra Loosemore <sandra@codesourcery.com>
37867 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
37868 to inline asm. List dialects in proper order.
37870 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37871 Sandra Loosemore <sandra@codesourcery.com>
37873 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
37875 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
37877 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
37878 modified) reference to Solaris.
37880 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
37882 * doc/extend.texi (Extended Asm): Fix typos.
37884 2015-02-10 Jakub Jelinek <jakub@redhat.com>
37887 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
37889 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
37892 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
37893 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
37894 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
37895 * config/sh/constraints.md (Ara, Add): New constraints.
37896 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
37898 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
37899 atomic_mem_operand_0. Don't use force_reg on the memory address.
37900 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
37901 Sra constraint. Convert to insn_and_split. Add workaround for
37903 (atomic_compare_and_swap<mode>_hard): Copy to
37904 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
37905 Use atomic_mem_operand_0 predicate.
37906 (atomic_compare_and_swap<mode>_soft_gusa,
37907 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
37908 AraAdd constraints.
37909 (atomic_compare_and_swap<mode>_soft_tcb,
37910 atomic_compare_and_swap<mode>_soft_imask,
37911 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
37912 atomic_mem_operand_0 predicate and SraSdd constraints.
37913 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
37915 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
37916 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
37917 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
37918 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
37919 force_reg on the memory address.
37920 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
37921 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
37922 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
37923 atomic_mem_operand_1 predicate and Sra constraint.
37924 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
37925 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37926 Use atomic_mem_operand_1 predicate.
37927 (atomic_<fetchop_name><mode>_hard): Copy to
37928 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
37929 Use atomic_mem_operand_1 predicate.
37930 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
37931 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37932 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
37933 insn_and_split. Use atomic_mem_operand_1 predicate.
37934 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
37935 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
37936 Use atomic_mem_operand_1 predicate.
37937 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
37938 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
37939 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
37940 in generated insn with original mem operand before emitting the insn.
37941 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
37942 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
37943 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
37944 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
37945 Use atomic_mem_operand_1 predicate and AraAdd constraints.
37946 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
37947 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
37948 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
37949 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
37950 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
37951 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
37952 atomic_not_fetch<mode>_soft_tcb,
37953 atomic_<fetchop_name>_fetch<mode>_soft_imask,
37954 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
37955 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
37956 Use atomic_mem_operand_1 predicate and SraSdd constraints.
37958 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
37960 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
37961 and 3 earlyclobber operands.
37963 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37965 * common.opt (fstack-reuse): Mark as optimization.
37967 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
37970 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
37972 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
37974 PR tree-optimization/64326
37975 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
37977 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
37979 PR gcov-profile/61889
37980 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
37982 2015-02-10 Richard Biener <rguenther@suse.de>
37984 PR tree-optimization/64995
37985 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
37986 value we use is final.
37987 (visit_reference_op_store): Always valueize op.
37988 (visit_use): Properly valueize vuses.
37990 2015-02-10 Richard Biener <rguenther@suse.de>
37992 PR tree-optimization/64909
37993 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
37994 pass a scalar-stmt count estimate to the cost model.
37995 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
37997 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
37999 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
38000 enabled by default together with var-tracking.
38002 2015-02-10 Nick Clifton <nickc@redhat.com>
38004 * config/rl78/rl78.c: Remove DIV attribute code accidentally
38005 included in previous rl78 commit.
38007 2015-02-10 Richard Biener <rguenther@suse.de>
38009 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
38010 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
38011 return the bitpack.
38013 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38015 PR gcov-profile/61889
38016 * config.in: regenerate.
38017 * configure.in: Likewise.
38018 * configure.ac: Check for ftw.h.
38019 * gcov-tool.c: Check for ftw.h before using nftw.
38021 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
38024 * ipa-visibility.c (update_visibility_by_resolution_info): Only
38025 assert when not in lto mode.
38027 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
38029 * ira-color.c (setup_left_conflict_sizes_p): Simplify
38030 initialization/assignment of conflict_size.
38032 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
38035 * ipa-cp.c (gather_caller_stats): Skip thunks.
38036 (propagate_constants_topo): Skip aliases.
38038 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
38041 * config/sh/sh.c (sh_option_override): Don't change
38042 -freorder-blocks-and-partition to -freorder-blocks even when
38043 unwinding is enabled.
38044 (sh_can_follow_jump): Return false if the followee jump is
38045 a crossing jump when -freorder-blocks-and-partition is specified.
38046 * config/sh/sh.md (*jump_compact_crossing): New insn.
38048 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
38049 Kaz Kojima <kkojima@gcc.gnu.org>
38052 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
38053 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
38054 (sh_can_redirect_branch): Rename to ...
38055 (sh_can_follow_jump): ... this. Constify argument types.
38056 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
38057 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
38058 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
38059 * doc/tm.texi: Regenerate.
38061 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38064 * builtins.c (expand_builtin): Call targetm.expand_builtin
38065 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
38067 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38070 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
38072 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38075 * ipa-icf.c (set_local): New function.
38076 (sem_function::merge): Use it.
38078 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38080 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
38081 (add_type_duplicate): Fix comparison of BINFOs.
38083 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38085 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
38086 on getting VOID pointer.
38088 2015-02-09 Jakub Jelinek <jakub@redhat.com>
38091 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
38094 2015-02-09 Richard Biener <rguenther@suse.de>
38096 * genmatch.c (replace_id): Copy expr_type.
38098 2015-02-09 Richard Biener <rguenther@suse.de>
38100 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
38101 (streamer_write_tree_bitfields): Declare.
38102 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
38103 properly unpack padding.
38104 (unpack_value_fields): Inline ...
38105 (streamer_read_tree_bitfields): ... here.
38106 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
38107 and properly add padding bits.
38108 (streamer_pack_tree_bitfields): Fold into ...
38109 (streamer_write_tree_bitfields): ... this new function,
38110 exposing the bitpack object.
38111 * lto-streamer-out.c (lto_write_tree_1): Call
38112 streamer_write_tree_bitfields.
38114 2015-02-09 Richard Biener <rguenther@suse.de>
38116 PR tree-optimization/54000
38117 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
38118 (struct ivopts_data): Add loop_loc member.
38119 (tree_ssa_iv_optimize_loop): Dump loop location.
38120 (create_new_ivs): Likewise, also dump number of IVs generated.
38122 2015-02-09 Martin Liska <mliska@suse.cz>
38124 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
38125 just if not yet registered.
38126 (ipa_icf_generate_summary): Register callgraph hooks.
38128 2015-02-08 Andrew Pinski <apinski@cavium.com>
38130 * config/aarch64/aarch64.c (gty_dummy): Delete.
38132 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38135 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
38136 (cgraph_node::local_p): Remove thunk related FIXME.
38138 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38141 * i386.c (ix86_function_regparm): Look through aliases to see if callee
38142 is local and optimized.
38143 (ix86_function_sseregparm): Likewise; also use target's SSE math
38144 settings; error out instead of silently generating wrong code
38146 (init_cumulative_args): Look through aliases.
38148 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38151 * ipa-split.c (execute_split_functions): Split if function has aliases.
38153 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
38156 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
38157 aliases before trying to expand it.
38158 (cgraph_node::expand_thunk): Fix formating.
38160 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
38162 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
38163 (Using Assembly Language with C): Expand introduction.
38164 (Basic Asm): Copy-edit. Add more information about uses of
38166 (Extended Asm): Copy-edit. Document new escape syntax and
38168 (Global Reg Vars): Copy-edit.
38169 (Local Reg Vars): Likewise.
38171 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
38175 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
38176 (DBX_CONTIN_CHAR): Define.
38178 2015-02-06 Sebastian Pop <s.pop@samsung.com>
38179 Brian Rzycki <b.rzycki@samsung.com>
38181 PR tree-optimization/64878
38182 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
38183 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
38184 Stop recursion at loop phi nodes after having visited a loop phi node.
38186 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38188 * toplev.c (process_options): Change flag_ipa_ra before creating
38189 optimization_{default,current}_node.
38192 * cgraphunit.c (cgraph_node::expand_thunk): If
38193 restype is not is_gimple_reg_type nor the thunk_fndecl
38194 returns aggregate_value_p, set restmp to a temporary variable
38195 instead of resdecl.
38197 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
38199 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
38201 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
38204 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
38205 add a general secondary reload handler for SDmode, unless we have
38206 both read/write support for SDmode.
38208 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38210 PR middle-end/64937
38211 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
38212 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
38213 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
38214 1 before, push it to abstract_vec.
38215 (dwarf2out_abstract_function): Adjust caller. Don't call
38216 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
38217 DECL_ABSTRACT_P flags for all abstract_vec elts.
38219 2015-02-06 Renlin Li <renlin.li@arm.com>
38221 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
38223 * tree-ssa.c (execute_update_addresses_taken): Likewise.
38225 2015-02-06 Jeff Law <law@redhat.com>
38228 * config/h8300/h8300.c (push): New argument "in_prologue".
38229 Pass "in_prologue" along to "F".
38230 (h8300_push_pop): Corresponding changes.
38231 (h8300_expand_prologue): Likewise.
38232 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
38234 2015-02-06 Jakub Jelinek <jakub@redhat.com>
38236 PR rtl-optimization/64957
38238 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
38239 IOR rather than for AND.
38241 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
38244 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
38245 of shift-add and (add + shift) operations. Rename local variable.
38247 2015-02-05 Jeff Law <law@redhat.com>
38250 * config/h8300/constraints.md (U): Correctly dectect
38251 "eightbit_data" memory addresses.
38252 * config/h8300/h8300.c (eightbit_constant_address_p): Also
38253 handle (const (plus (symbol_ref (x)))) where x is declared
38254 as an 8-bit data memory address.
38255 * config/h8300/h8300.md (call, call_value): Correctly detect
38256 "funcvec" functions.
38259 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
38260 24 to 28 bits for the H8/300.
38262 2015-02-06 Alan Modra <amodra@gmail.com>
38265 * config/rs6000/rs6000.c (chain_already_loaded): New function.
38266 (rs6000_call_aix): Use it.
38268 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
38270 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
38273 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
38275 * config/h8300/constraints.md ("U" constraint): Use strict
38276 variant of REG_OK_FOR_BASE_P after reload has started.
38278 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
38280 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
38281 define to zero if !TARGET_NEON.
38282 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
38284 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38285 Trevor Saunders <tsaunders@mozilla.com>
38288 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
38290 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38293 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
38294 when removing varpool nodes.
38296 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38299 * varpool.c (varpool_node::remove): Fix order of variables.
38301 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38304 * ipa-inline.c (inline_small_functions): Fix ordering issue between
38305 speculation resolution and key updates.
38307 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38309 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
38310 about not letting any speculative edges unupdated.
38312 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38315 * gcov-io.c (gcov_var): Export.
38317 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38319 PR middle-end/64922
38320 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
38321 edges that become speculative.
38323 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38325 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
38326 or DW_LANG_Fortran08.
38327 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
38329 (gen_compile_unit_die): Handle "GNU Fortran2003" and
38330 "GNU Fortran2008" language strings.
38331 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
38332 * langhooks.h (lang_GNU_Fortran): New prototype.
38333 * langhooks.c (lang_GNU_Fortran): New function.
38334 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
38337 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38339 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
38340 (RTX_OK_FOR_OLO10_P): Likewise.
38342 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
38344 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
38346 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
38348 PR middle-end/64922
38349 * gimple.c: Include gimple-ssa.h.
38350 (maybe_remove_unused_call_args): New function.
38351 * gimple.h (maybe_remove_unused_call_args): Declare.
38352 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
38353 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
38354 * gimple-fold.c (gimple_fold_call): Likewise.
38356 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
38358 PR rtl-optimization/64905
38359 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
38360 pointer alignment if it isn't needed.
38362 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38364 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
38365 cortex-a72.cortex-a53.
38366 * config/aarch64/aarch64-tune.md: Regenerate.
38367 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
38369 2015-02-04 Nick Clifton <nickc@redhat.com>
38371 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
38374 2015-02-04 Jakub Jelinek <jakub@redhat.com>
38376 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
38377 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
38378 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
38380 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
38381 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
38382 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
38383 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
38384 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
38385 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
38386 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
38387 * tree-core.h (enum built_in_function): In between
38388 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
38389 for builtins that use DEF_BUILTIN_CHKP macro.
38391 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
38394 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
38395 operands for tcc_comparison exprs. Fix typos.
38398 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
38399 of two XORs that have an intervening AND or IOR.
38402 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
38403 simplification of XOR of AND to not allocate new rtx before
38404 committing to a simplification.
38406 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38408 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
38409 manual swaps in all peepholes.
38411 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38413 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
38414 of manual swapping implementation.
38415 (aarch64_expand_vec_perm_const_1): Likewise.
38417 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
38419 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
38420 (generic_addrcost_table): Remove NAMED_PARAM.
38421 (cortexa57_addrcost_table): Likewise.
38422 (xgene1_addrcost_table): Likewise.
38423 (generic_regmove_table): Likewise.
38424 (cortexa53_regmove_table): Likewise.
38425 (xgene1_regmove_table): Likewise.
38426 (generic_vector_table): Likewise.
38427 (cortexa57_vector_table): Likewise.
38428 (xgene1_vector_table): Likewise.
38429 (generic_tunings): Likewise.
38430 (cortexa53_tunings): Likewise.
38431 (cortexa57_tunings): Likewise.
38432 (xgene1_tunings): Likewise.
38434 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
38436 * config/arm/arm-cores.def: Add cortex-a72 and
38437 cortex-a72.cortex-a53.
38438 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
38439 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
38440 * config/arm/arm-tune.md: Regenerate.
38441 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
38442 "cortex-a72.cortex-a53".
38443 * doc/invoke.texi (ARM Options/-mtune): Likewise.
38445 2015-02-04 Nick Clifton <nickc@redhat.com>
38448 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
38450 (nonimmediate_di_operand): Likewise.
38452 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
38453 prefixes of known F5 using MSP430 MCUs.
38455 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38457 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
38458 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
38459 instead of __builtin_sqrt.
38461 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
38463 * varasm.c (do_assemble_alias): Follow transparent alias
38465 (default_assemble_visibility): Follow transparent alias
38466 chain for decl name.
38468 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
38470 PR middle-end/62103
38471 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
38472 to compute size of referenced value in the constant case.
38474 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38476 PR rtl-optimization/64756
38477 * cse.c (invalidate_dest): New function.
38478 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
38479 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
38480 invalidate and do not record it.
38482 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
38485 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
38486 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
38487 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
38488 atomic_nand<mode>_soft_tcb): New insns.
38489 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
38490 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
38491 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
38492 Split into atomic_not_fetchsi_hard if operands[0] is unused.
38493 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
38494 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38495 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
38496 atomic_not<mode>_hard if operands[0] is unused.
38497 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
38498 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
38499 if operands[0] is unused.
38500 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
38501 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
38502 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
38503 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38505 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
38506 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38507 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
38508 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
38509 if operands[0] is unused.
38510 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
38511 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
38512 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
38513 atomic_nand_fetchsi_hard if operands[0] is unused.
38514 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
38515 atomic_nand<mode>_hard if operands[0] is unused.
38516 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
38517 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
38518 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
38519 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38520 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
38521 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
38522 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
38523 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
38524 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
38525 atomic_not<mode>_hard if operands[0] is unused.
38526 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
38527 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
38529 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38530 into atomic_not<mode>_soft_tcb if operands[0] is unused.
38531 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
38532 atomic_nand<mode>_hard if operands[0] is unused.
38533 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
38534 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
38536 2015-02-03 David Malcolm <dmalcolm@redhat.com>
38539 * Makefile.in (GCC_OBJS): Add gcc-main.o.
38540 * gcc-main.c: New file, containing "main" taken from gcc.c.
38541 * gcc.c (do_self_spec): Free decoded_options.
38542 (class driver): Move declaration to gcc.h.
38543 (main): Move declaration and implementation to new file
38545 (driver_get_configure_time_options): New function.
38546 * gcc.h (class driver): Move this declaration here, from
38548 (driver_get_configure_time_options): New declaration.
38550 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
38552 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
38553 cross-module inlining.
38554 * cgraph.h (cgraph_node): Add flag merged.
38555 * ipa-icf.c (sem_function::merge): Maintain it.
38557 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
38559 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
38560 instead of OBJECT_P.
38562 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
38565 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
38566 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
38567 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
38568 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
38570 2015-02-03 Jakub Jelinek <jakub@redhat.com>
38573 * combine.c (reg_n_sets_max): New variable.
38574 (can_change_dest_mode, reg_nonzero_bits_for_combine,
38575 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
38576 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
38577 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
38578 (rest_of_handle_combine): Initialize reg_n_sets_max.
38580 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
38582 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
38583 if some always_inline was inlined, apply changes before inlining
38586 2015-02-02 David Malcolm <dmalcolm@redhat.com>
38589 * config/arm/arm.c (arm_option_override): Set
38590 arm_selected_arch/cpu/tune to NULL on entry.
38592 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
38593 Andrew Pinski <pinskia@gcc.gnu.org>
38594 Jakub Jelinek <jakub@gcc.gnu.org>
38597 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
38598 integer typing for small model. Use IN_RANGE.
38600 2015-02-02 Richard Biener <rguenther@suse.de>
38602 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
38603 * tree-vrp.c (vrp_valueize_1): Likewise.
38605 2015-02-02 Alan Modra <amodra@gmail.com>
38607 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
38608 than mem for toc_restore.
38609 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
38610 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
38611 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
38613 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
38616 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
38617 explicit default options.
38619 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
38622 * ipa-utils.c (ipa_merge_profiles): Add release argument.
38623 * ipa-icf.c (sem_function::merge): Do not release body when merging.
38624 * ipa-utils.h (ipa_merge_profiles): Update prototype.
38626 2015-02-01 Jakub Jelinek <jakub@redhat.com>
38629 * cfgexpand.c (deep_ter_debug_map): New variable.
38630 (avoid_deep_ter_for_debug): New function.
38631 (expand_debug_expr): If TERed SSA_NAME is in
38632 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
38633 instead of trying to expand SSA_NAME's def stmt.
38634 (expand_debug_locations): When expanding debug bind
38635 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
38636 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
38638 (pass_expand::execute): Call avoid_deep_ter_for_debug on
38639 all debug bind stmts. Delete deep_ter_debug_map after
38640 expand_debug_location if non-NULL and clear it.
38642 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
38645 * config/sh/sync.md (atomic_fetch_notsi_hard,
38646 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
38647 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
38648 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
38649 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
38650 atomic_not_fetch<mode>_soft_imask): New insns.
38652 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
38654 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
38655 (rank_for_schedule_debug): Split from ...
38656 (rank_for_schedule): ... this.
38657 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
38658 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
38660 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38662 * doc/md.texi (Machine Constraints): Alphabetize table by target.
38663 * doc/extend.texi (x86 Variable Attributes): Move section to
38664 correct alphabetization after renaming.
38665 (x86 Type Attributes): Likewise.
38666 (Target Builtins): Re-alphabetize menu.
38667 (x86 Built-in Functions): Move section to correct alphabetization
38669 (x86 transactional memory intrinsics): Likewise.
38670 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
38671 and x86 Windows Options in table and menu.
38672 (x86 Options): Move section to correct alphabetization after
38674 (x86 Windows Options): Likewise.
38676 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
38678 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
38679 preferred names of the architecture and its 32- and 64-bit
38681 * doc/invoke.texi: Likewise.
38682 * doc/md.texi: Likewise.
38684 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38687 * config/i386/predicates.md (address_no_seg_operand): Reject
38688 non-CONST_INT_P operands in invalid mode.
38690 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
38692 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
38693 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
38694 * config/i386/predicates.md (address_no_seg_operand): Call
38695 address_operand with VOIDmode.
38696 (vsib_address_operand): Ditto.
38697 (address_mpx_no_base_operand): Ditto.
38698 (address_mpx_no_index_operand): Ditto.
38700 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38703 * lra-constraints.c (original_subreg_reg_mode): New.
38704 (simplify_operand_subreg): Try to simplify subreg of const. Use
38705 original_subreg_reg_mode for it.
38706 (swap_operands): Update original_subreg_reg_mode.
38707 (curr_insn_transform): Set up original_subreg_reg_mode.
38709 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
38712 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
38714 (process_alt_operands): Use it.
38715 (curr_insn_transform): Check the optional reload pseudo class is
38718 2015-01-30 Joseph Myers <joseph@codesourcery.com>
38720 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
38721 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
38723 * toplev.h (init_asm_output): Update comment on use of
38724 UNKNOWN_LOCATION with fatal_error.
38725 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
38726 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
38727 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
38728 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
38729 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
38730 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
38731 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
38732 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
38733 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
38734 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
38735 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
38736 fatal_error changed to pass input_location as first argument.
38738 2015-01-30 Martin Liska <mliska@suse.cz>
38740 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
38741 in #pragma GCC diagnostic guards.
38743 2015-01-30 Richard Biener <rguenther@suse.de>
38745 PR tree-optimization/64829
38746 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
38747 not add a widening conversion pattern but hand off extra
38748 widenings to callers.
38749 (vect_recog_widen_mult_pattern): Handle extra widening produced
38750 by vect_handle_widen_op_by_const.
38751 (vect_recog_widen_shift_pattern): Likewise.
38752 (vect_pattern_recog_1): Remove excess vertical space in dumping.
38753 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
38754 (vect_init_vector_1): Likewise.
38755 (vect_get_vec_def_for_operand): Likewise.
38756 (vect_finish_stmt_generation): Likewise.
38757 (vectorizable_load): Likewise.
38758 (vect_analyze_stmt): Likewise.
38759 (vect_is_simple_use): Likewise.
38761 2015-01-29 Jeff Law <law@redhat.com>
38763 * combine.c (try_combine): Fix typo in comment.
38765 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
38768 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
38769 (rs6000_stack_info): Add assert.
38770 (rs6000_output_savres_externs): New function, split off from...
38771 (rs6000_output_function_prologue): ... here. Do not call it for
38774 2015-01-29 Jeff Law <law@redhat.com>
38777 * combine.c (try_combine): If I0 is a memory load and I3 a store
38778 to a related address, increase the "goodness" of doing a 4-insn
38779 combination with I0-I3.
38780 (make_field_assignment): Handle SUBREGs in the ior+and case.
38782 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
38784 PR tree-optimization/64746
38785 * tree-if-conv.c (mask_exists): New function.
38786 (predicate_mem_writes): Save created mask with given size for further
38788 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
38789 (ifcvt_repair_bool_pattern): Collect all statements that are root
38790 of bool pattern and use iterative algorithm to remove multiple uses
38791 of predicates, display number of required iterations.
38793 2015-01-29 Richard Biener <rguenther@suse.de>
38795 PR tree-optimization/64853
38796 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
38797 stmt will get simulated again.
38798 * tree-ssa-ccp.c (valueize_op_1): Likewise.
38800 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38802 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
38803 return_in_pc. Remove redundant assignments.
38804 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
38805 (arm_expand_epilogue): Don't compare boolean with true in if condition.
38807 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
38809 * config/i386/i386.c (ix86_mode_after): Make static.
38811 2015-01-29 Richard Biener <rguenther@suse.de>
38813 PR tree-optimization/64844
38814 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
38815 dump cost model analysis.
38816 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
38817 Do not register adjusted load/store costs here.
38819 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38820 Uros Bizjak <ubizjak@gmail.com>
38822 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
38823 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
38824 using x86_use_pseudo_pic_reg.
38825 * config/i386/i386.c (ix86_conditional_register_usage): Remove
38826 support for fixed PIC register.
38827 (ix86_use_pseudo_pic_reg): Not static any more.
38829 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
38831 PR middle-end/64805
38832 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
38833 to avoid error in cgraph node verification.
38835 2015-01-29 Marek Polacek <polacek@redhat.com>
38837 * doc/standards.texi: Reflect that the default for C is gnu11.
38839 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
38842 * reorg.c (switch_text_sections_between_p): New function.
38843 (relax_delay_slots): Call it when testing if the jump insn
38844 is removable. Use targetm.can_follow_jump when testing if
38845 the conditional branch can follow an unconditional jump.
38847 2015-01-27 Caroline Tice <cmtice@google.com>
38849 Committing VTV Cywin/Ming patch for Patrick Wollgast
38850 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
38851 if -fvtable-verify=preinit/std is used.
38852 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
38853 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
38854 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
38855 if -fvtable-verify=preinit/std is used.
38856 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
38857 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
38858 if -fvtable-verify=preinit/std is used.
38859 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
38860 * config/i386/mingw32.h (LIB_SPEC): Likewise.
38861 * varasm.c (assemble_variable): Add code to properly set the comdat
38862 section and name for the .vtable_map_vars section in case the
38863 target is PE or COFF.
38865 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38868 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
38869 make sane BB profile.
38870 (cgraph_node::expand_thunk): Make sane BB profile.
38871 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
38872 * cgraph.h (init_lowered_empty_function): Update prototype.
38873 * config/i386/i386.c (make_resolver_func): Update call.
38874 * predict.c (gate): Disable branch prediction pass if
38875 profile is already there.
38877 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
38879 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
38880 * opth-gen.awk: Likewise.
38881 * common.opt: Mark flag_fp_contract_mode as Optimization.
38883 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
38885 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
38886 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
38888 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
38891 * config/sh/predicates.md (atomic_arith_operand,
38892 atomic_logical_operand): Remove.
38893 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
38894 (atomic_arith_operand_0): New predicate.
38895 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
38896 Use atomic_arith_operand_0 for input values.
38897 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
38898 atomic_compare_and_swap<mode>_soft_gusa,
38899 atomic_compare_and_swap<mode>_soft_tcb,
38900 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
38901 arith_reg_operand instead of register_operand.
38902 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
38903 atomic_arith_operand_0 for newval input.
38904 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
38905 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
38906 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
38907 arith_reg_operand instead of register_operand.
38908 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
38909 fetchop_predicate_1, fetchop_constraint_1_llcs,
38910 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
38911 fetchop_constraint_1_imask): New code iterator attributes.
38912 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
38913 register_operand. Use fetchop_predicate_1.
38914 (atomic_fetch_<fetchop_name>si_hard,
38915 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
38916 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
38917 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
38918 and arith_reg_operand instead of register_operand. Use
38919 fetchop_predicate_1, fetchop_constraint_1_gusa.
38920 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
38921 and arith_reg_operand instead of register_operand. Use
38922 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
38924 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
38925 and arith_reg_operand instead of register_operand. Use
38926 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
38928 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
38929 register_operand. Use atomic_logical_operand_1.
38930 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
38931 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
38932 arith_reg_operand instead of register_operand.
38933 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
38934 Use arith_reg_dest and arith_reg_operand instead of register_operand.
38935 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
38936 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
38937 register_operand. Use fetchop_predicate_1.
38938 (atomic_<fetchop_name>_fetchsi_hard,
38939 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
38940 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38941 fetchop_constraint_1_llcs.
38942 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
38943 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38944 fetchop_constraint_1_gusa.
38945 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
38946 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38947 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
38948 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
38949 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
38950 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
38951 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
38952 register_operand. Use atomic_logical_operand_1.
38953 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
38954 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
38955 arith_reg_operand instead of register_operand.
38956 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
38957 arith_reg_operand instead of register_operand. Use logical_operand
38958 and K08. Adjust asm sequence to allow R0 usage.
38959 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
38960 arith_reg_operand instead of register_operand. Use logical_operand
38963 2015-01-28 Jakub Jelinek <jakub@redhat.com>
38966 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
38967 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
38968 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
38969 only get_full_len HOST_WIDE_INTs from get_val () array rather than
38970 all bits in *val_wide.
38972 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
38974 * varpool.c (tls_model_names): Fix names.
38975 (varpool_node::dump): Dump tls- prefix for tls models.
38977 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
38978 Bernd Schmidt <bernds@codesourcery.com>
38979 Nathan Sidwell <nathan@codesourcery.com>
38981 * config/nvptx/mkoffload.c: New file.
38982 * config/nvptx/t-nvptx: Add build rules for it.
38983 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
38984 (extra_programs): Add mkoffload.
38985 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
38987 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
38989 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
38991 PR middle-end/64809
38992 * cfgexpand.c (reorder_operands): Skip debug gimples.
38994 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
38996 PR tree-optimization/64277
38997 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
38998 range info when possible to refine estimation.
39000 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
39002 PR tree-optimization/64718
39003 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
39004 be a 16bit unsigned integer when n->range is 16.
39005 (bswap_replace): Convert src to that type if necessary for all bswap
39006 sizes. Fix rotation right notation in nearby comment. Use bswap_type
39007 set in pass_optimize_bswap::execute ().
39009 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
39011 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
39012 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
39013 integer and floating point variants.
39014 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
39016 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
39018 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
39019 for all vector modes.
39021 2015-01-28 Jakub Jelinek <jakub@redhat.com>
39024 * doc/sourcebuild.texi (comdat_group): Document.
39026 2015-01-28 Terry Guo <terry.guo@arm.com>
39028 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
39030 2015-01-27 David Malcolm <dmalcolm@redhat.com>
39032 * toplev.c (print_version): Add param "show_global_state", and
39033 only print GGC and plugin information if it is true.
39034 (init_asm_output): Pass in "true" for the new param when calling
39036 (process_options): Likewise.
39037 (toplev::main): Likewise.
39038 * toplev.h (print_version): Add new param to decl.
39040 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39044 * tree.c (lookup_binfo_at_offset): New function.
39045 (get_binfo_at_offset): Use it.
39047 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
39050 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
39051 on vtable being vtable.
39053 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
39055 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
39056 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
39057 -mhotpatch= option.
39058 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
39059 -mno-hotpatch options. Change syntax of -mhotpatch= option.
39060 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
39062 (s390_hotpatch_trampoline_halfwords_max): Renamed.
39063 (s390_hotpatch_hw_max): New name.
39064 (s390_hotpatch_trampoline_halfwords): Renamed.
39065 (s390_hotpatch_hw_before_label): New name.
39066 (get_hotpatch_attribute): Removed.
39067 (s390_hotpatch_hw_after_label): New name.
39068 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
39070 (s390_attribute_table): Ditto.
39071 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
39072 (s390_function_num_hotpatch_hw): New name.
39073 Remove special handling of inline functions and hotpatching.
39074 Return number of nops before and after the function label.
39075 (s390_can_inline_p): Removed.
39076 (s390_asm_output_function_label): Emit a configurable number of nops
39077 after the function label.
39078 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
39079 (TARGET_CAN_INLINE_P) Removed.
39080 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
39082 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39083 Jiong Wang <jiong.wang@arm.com>
39085 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
39087 (cb<optab><mode>1): Likewise.
39088 * config/aarch64/iterators.md (bcond): New define_code_attr.
39090 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39092 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
39095 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39097 * config/s390/s390.c (s390_register_move_cost): Increase costs for
39100 2015-01-27 Richard Biener <rguenther@suse.de>
39102 * tree-vrp.c (update_value_range): Intersect the range with
39103 old recorded SSA name range information.
39105 2015-01-27 Nick Clifton <nickc@redhat.com>
39107 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
39108 BC, DE and HL registers directly, not via AX.
39109 When decrementing the stack pointer by a large amount, transfer SP
39110 into AX and perform the subtraction there.
39111 (rl78_expand_epilogue): Perform the inverse of the above
39114 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39116 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
39118 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39119 Yury Gribov <y.gribov@samsung.com>
39122 * ubsan.c (ubsan_source_location): Refactor code.
39123 (ubsan_type_descriptor): Update type size. Refactor code.
39125 2015-01-27 Richard Biener <rguenther@suse.de>
39127 PR tree-optimization/56273
39128 PR tree-optimization/59124
39129 PR tree-optimization/64277
39130 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
39131 from the first VRP pass.
39133 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39136 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
39137 handle the first argument in the same loop as all the other arguments.
39139 PR rtl-optimization/61058
39140 * jump.c (cleanup_barriers): Update basic block boundaries
39141 if BLOCK_FOR_INSN is non-NULL on PREV.
39143 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
39145 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
39146 bounds narrowing, already instrumented calls and calls to
39147 not instrumentable functions.
39149 2015-01-27 Jakub Jelinek <jakub@redhat.com>
39151 PR tree-optimization/64807
39152 * wide-int.cc (wi::divmod_internal): Clear
39153 b_dividend[dividend_blocks_needed].
39155 2015-01-26 DJ Delorie <dj@redhat.com>
39157 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
39158 volatile memory references.
39160 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
39163 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
39165 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
39166 shifts if it already fits into K08.
39168 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39171 * ipa-inline.c (inline_small_functions): Print "unknown" even
39172 if edge->call_stmt is non-NULL, but has builtins or unknown
39175 PR middle-end/64421
39176 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
39177 with asterisk, skip the first character.
39179 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39182 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
39185 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
39188 * config/i386/i386.md (*movdi_internal): Also check operand 0
39189 to determine TYPE_LEA operand.
39190 (*movsi_internal): Ditto.
39192 2015-01-26 Jakub Jelinek <jakub@redhat.com>
39194 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
39195 OPTION_MASK_QUAD_MEMORY_ATOMIC.
39197 2015-01-26 Renlin Li <renlin.li@arm.com>
39199 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
39201 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
39204 2015-01-26 Richard Biener <rguenther@suse.de>
39206 PR middle-end/64764
39207 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
39208 combining two BIT_AND_EXPR predicates.
39210 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
39213 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
39215 2015-01-26 Terry Guo <terry.guo@arm.com>
39217 * config/arm/arm.c (arm_file_start): Update the assignment of
39218 Tag_ABI_HardFP_use.
39220 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
39222 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
39224 config/arm/arm.md: Include the new Cortex-A57 model.
39225 (generic_sched): Don't use generic_sched when tuning for
39228 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
39229 Uros Bizjak <ubizjak@gmail.com>
39231 * config/i386/i386.c (get_builtin_code_for_version): Add
39232 support for BMI and BMI2 multiversion functions.
39234 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39236 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
39237 (extract_bit_field): Likewise.
39238 (extract_low_bits): Likewise.
39239 (expand_mult): Likewise.
39240 (expand_mult_highpart_adjust): Likewise.
39242 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
39244 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
39245 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
39246 * config/i386/i386.c (processor_model): Add
39247 M_INTEL_COREI7_BROADWELL.
39248 (arch_names_table): Add "broadwell".
39250 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
39259 * config/sh/sh-protos.h
39260 (sh_extending_set_of_reg::can_use_as_unextended_reg,
39261 sh_extending_set_of_reg::use_as_unextended_reg,
39262 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
39263 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
39264 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
39265 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
39266 (sh_treg_insns): New class.
39267 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
39268 (scope_counter): New class.
39269 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
39270 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
39271 sh_extending_set_of_reg::can_use_as_unextended_reg,
39272 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
39273 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
39274 sh_split_treg_set_expr): New functions.
39275 (addsubcosts): Handle treg_set_expr.
39276 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
39277 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
39278 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
39279 (sh_insn_operands_modified_between_p): Make non-static.
39280 * config/sh/predicates.md (zero_extend_movu_operand): Allow
39281 simple_mem_operand in addition to displacement_mem_operand.
39282 (zero_extend_operand): Don't allow zero_extend_movu_operand.
39283 (treg_set_expr, treg_set_expr_not_const01,
39284 arith_reg_or_treg_set_expr): New predicates.
39285 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
39286 arith_or_int_operand instead of logical_operand. Convert to
39287 insn_and_split. Try to optimize constant operand in splitter.
39288 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
39289 (*tstqi_t_zero): Delete.
39290 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
39291 (tstsi_t_and_not): Delete.
39292 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
39293 Convert to insn_and_split.
39294 (unnamed split, tstsi_t_zero_extract_xor,
39295 tstsi_t_zero_extract_subreg_xor_little,
39296 tstsi_t_zero_extract_subreg_xor_big): Delete.
39297 (*tstsi_t_shift_mask): New insn_and_split.
39298 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
39299 to recombine with surrounding insns when splitting.
39300 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
39301 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
39302 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
39303 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
39304 (*cbranch_div0s: Delete.
39305 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39306 Try to recombine with surrounding insns when splitting. Add operand
39308 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
39309 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
39310 *addc_r_r_msb, *addc_2r_msb): Delete.
39311 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
39313 (*addc_negreg_t): New insn_and_split.
39314 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
39315 Try to recombine with surrounding insns when splitting.
39316 Add operand order variants.
39317 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
39318 insn_and_split patterns.
39319 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
39320 surrounding insns when splitting.
39321 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
39322 (*rotcl): Likewise. Add zero_extract variant.
39323 (*ashrsi2_31): New insn_and_split.
39324 (*negc): Convert to insn_and_split. Use treg_set_expr.
39325 (*zero_extend<mode>si2_disp_mem): Update comment.
39326 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
39328 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
39329 with surrounding insns when splitting.
39330 (any_treg_expr_to_reg): New insn_and_split.
39331 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
39332 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
39333 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
39334 *zero_extract_2): New single bit zero extract patterns.
39335 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
39336 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
39337 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
39338 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
39340 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
39341 register_operand for set source.
39343 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
39345 * i386.opt (prefetch_sse): New targetsave.
39346 * i386.c (ix86_function_specific_save): Save prefetch_sse.
39347 (ix86_function_specific_restore): Restore prefetch_sse and initialize
39348 ix86_cost/ix86_tune_cost.
39350 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39352 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
39353 Support the JIT by using 0 as the language type.
39355 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
39358 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
39359 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
39360 (mark_regno_live, process_bb_lives): Pass new parameter value to
39361 make_hard_regno_born.
39363 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39365 PR rtl-optimization/63637
39366 PR rtl-optimization/60663
39367 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
39368 if elt->cost is MAX_COST for ASM_OPERANDS.
39369 (find_sets_in_insn): Fix up comment typo.
39370 (cse_insn): Don't set src_volatile for all non-volatile
39371 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
39372 or with "memory" clobber. Set elt->cost to MAX_COST
39373 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
39374 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
39376 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39378 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
39381 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
39383 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
39384 libgcc/config/i386/elf-lib.h.
39386 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39389 * gcc.c (print_configuration): Don't print a blank line at the end
39391 (run_attempt): ... but here unstead.
39393 PR middle-end/64734
39394 * omp-low.c (scan_sharing_clauses): Don't ignore
39395 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
39396 on target data/update constructs.
39398 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
39401 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
39402 (DEBUG_RELOAD): Removed define.
39403 (m32c_limit_reload_class): Enable traces with if DEBUG0.
39404 (m32c_function_arg): Added a type cast.
39405 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
39406 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
39407 * config/m32c/bitops.md (andqi3_16): Likewise.
39408 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
39409 (push_a01_l): Likewise.
39411 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39414 * main.c (main): Construct toplev instances with init_signals=true.
39415 * toplev.c (general_init): Add param "init_signals", and use it to
39416 conditionalize the calls to signal and host_hooks.extra_signals.
39417 (toplev::toplev): Add param "init_signals".
39418 (toplev::main): When invoking general_init, pass m_init_signals
39419 to control whether signal-handlers are installed.
39420 * toplev.h (toplev::toplev): Add param "init_signals".
39421 (toplev::m_init_signals): New field.
39423 2015-01-23 David Malcolm <dmalcolm@redhat.com>
39426 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
39427 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
39428 latter may be affected by the former (e.g. on i686).
39430 2015-01-23 Martin Liska <mliska@suse.cz>
39432 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
39433 false positive during profiledbootstrap.
39435 2015-01-23 Tom de Vries <tom@codesourcery.com>
39438 * lto-opts.c (lto_write_options): Output non-explicit conservative
39440 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
39441 (append_compiler_options): Pass -fopenacc through.
39443 2015-01-23 Tom de Vries <tom@codesourcery.com>
39446 * lto-opts.c (lto_write_options): Output non-explicit conservative
39448 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
39449 (append_compiler_options): Pass -fopenmp through.
39451 2015-01-23 Jakub Jelinek <jakub@redhat.com>
39454 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
39457 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
39458 * diagnostic.def (DK_ICE_NOBT): New kind.
39459 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
39460 like DK_ICE, but never print backtrace.
39461 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
39462 (internal_error_no_backtrace): New function.
39463 * gcc.c (execute): Use internal_error_no_backtrace instead of
39466 2015-01-22 Jeff Law <law@redhat.com>
39469 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
39470 improve code density for small immediate to memory case.
39471 (insv): Better handle bitfield assignments when the field is
39472 being set to all ones.
39473 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
39476 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
39477 Jakub Jelinek <jakub@redhat.com>
39479 PR middle-end/64729
39480 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
39481 for !TARGET_LIBC_PROVIDES_SSP version and
39482 -fstack-protector-{all,strong,explicit} otherwise.
39483 * config/freebsd.h (LINK_SSP_SPEC): Handle
39484 -fstack-protector-{strong,explicit}.
39486 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
39487 H.J. Lu <hongjiu.lu@intel.com>
39490 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
39493 2015-01-22 Wei Mi <wmi@google.com>
39495 PR rtl-optimization/64557
39496 * dse.c (record_store): Call get_addr for mem_addr.
39497 (check_mem_read_rtx): Likewise.
39499 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
39501 * fold-const.c (const_binop): Add early return for non-tcc_binary.
39503 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
39505 * toplev.c (init_local_tick): Process the failure when read
39506 fails for random_seed.
39508 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
39509 'pretty_name' to avoid memory overflow.
39511 2015-01-22 Richard Biener <rguenther@suse.de>
39513 PR middle-end/64728
39514 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
39515 abnormal coalescing on undefined SSA names.
39517 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
39521 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
39523 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
39525 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
39527 PR middle-end/63325
39528 * fold-const.c (fold_checksum_tree): Don't include value of
39529 expr->decl_with_vis.symtab_node in the checksum.
39531 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39533 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
39535 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
39538 * gcc.c (insert_comments): New function.
39539 (try_generate_repro): Call it.
39540 (append_text): Removed.
39542 2015-01-22 Richard Biener <rguenther@suse.de>
39544 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
39545 with IL incompatible options. Properly honor user optimize
39548 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
39550 PR rtl-optimization/64682
39551 * combine.c (distribute_notes): When moving a death note for
39552 a register that is set in the new I2, make sure to put it
39553 before that new I2.
39555 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
39557 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
39558 not TARGET_DEFAULT.
39560 2015-01-21 Jakub Jelinek <jakub@redhat.com>
39563 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
39564 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
39565 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
39568 * doc/invoke.texi (-fsanitize=vptr): Document.
39570 PR rtl-optimization/62078
39571 * dse.c: Include cfgcleanup.h.
39572 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
39573 anything call purge_all_dead_edges and cleanup_cfg at the end
39576 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
39578 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
39581 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
39583 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
39586 2015-01-21 David Sherwood <david.sherwood@arm.com>
39587 Tejas Belagod <Tejas.Belagod@arm.com>
39589 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
39590 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
39591 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
39594 2015-01-21 David Sherwood <david.sherwood@arm.com>
39595 Tejas Belagod <Tejas.Belagod@arm.com>
39597 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
39598 (aarch64_reverse_mask): New decls.
39599 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
39600 (insn_count): New mode_attr.
39601 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
39602 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
39603 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
39604 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
39605 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
39606 (aarch64_simd_st4): New patterns.
39607 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
39608 (aarch64_reverse_mask): New functions.
39610 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39612 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
39614 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
39615 addressing modes for BE.
39616 (aarch64_print_operand): Add 'R' specifier.
39617 (aarch64_simd_disambiguate_copy): Delete.
39618 (aarch64_simd_emit_reg_reg_move): New function.
39619 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
39620 in define_splits for structural moves.
39621 (mov<mode>): Use less restrictive predicates.
39622 (*aarch64_mov<mode>): Simplify and only allow for LE.
39623 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
39625 2015-01-21 Alan Hayward <alan.hayward@arm.com>
39627 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
39629 2015-01-21 Richard Henderson <rth@redhat.com>
39632 * ccmp.c (used_in_cond_stmt_p): Remove.
39633 (expand_ccmp_expr): Don't use it.
39635 2015-01-21 Nick Clifton <nickc@redhat.com>
39637 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
39640 2015-01-21 Richard Biener <rguenther@suse.de>
39642 PR middle-end/64313
39643 * tree-core.h (builtin_info, builtin_info_type): Turn from
39644 an object with two arrays into an array of an object with
39645 decl and two flags, implicit_p and declared_p.
39646 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
39647 set_builtin_decl, set_builtin_decl_implicit_p,
39648 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
39649 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
39650 * builtins.c (builtin_info): Adjust.
39651 * gimplify.c (gimplify_addr_expr): References to builtins
39652 that have been declared by the user makes them eligible for
39653 use by the compiler. Call set_builtin_decl_implicit_p on them.
39655 2015-01-20 Jeff Law <law@redhat.com>
39658 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
39659 allow pc-relative addresses in operand predicates or constraints.
39661 2015-01-21 Bin Cheng <bin.cheng@arm.com>
39663 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
39664 neon on aarch32 processors for stringops.
39666 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39669 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
39671 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39674 * ipa-inline.c: Include lto-streamer.h
39675 (report_inline_failed_reason): Output source file differences and
39676 flags on optimization/target node mismatch.
39677 (can_inline_edge_p): Consider caller to be the outer inline function;
39678 be less restrictive about matching opimize and optimize_size attributes.
39679 (inline_account_function_p): Break out from ...
39680 (inline_small_functions): ... here.
39681 * ipa-inline-transform.c (clone_inlined_nodes): Use
39682 inline_account_function_p.
39683 (inline_call): Use optimize attribution; use inline_account_function_p.
39684 (inline_transform): Use opt_for_fn.
39685 * ipa-inline.h (inline_account_function_p): Declare.
39687 2015-01-20 Jakub Jelinek <jakub@redhat.com>
39690 * dwarf2out.c (decl_piece_node): Don't put bitsize into
39691 mode if bitsize <= 0.
39692 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
39693 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
39694 sizes and positions.
39696 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
39698 * config/nios2/nios2.c (nios2_asm_file_end): Implement
39699 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
39701 (TARGET_ASM_FILE_END): Define.
39703 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39705 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
39706 (struct tune_params): Use the enum.
39707 * arm.c (arm_*_tune): Update.
39708 (arm_option_override): Update.
39710 2015-01-20 Richard Biener <rguenther@suse.de>
39713 * ipa-reference.c (add_static_var): Inline ...
39714 (analyze_function): ... here after splitting out from ...
39715 (is_proper_for_analysis): ... this.
39717 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
39720 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
39721 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
39722 replace the conditional with it's true branch.
39723 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
39724 (arm_lra_p): Remove.
39726 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
39728 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
39730 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
39732 * config/tilegx/mul-tables.c: Move symtab.h include after
39733 coretypes.h include.
39734 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
39735 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
39736 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
39737 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
39738 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
39740 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
39744 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39746 PR rtl-optimization/64081
39747 * loop-iv.c (def_pred_latch_p): New function.
39748 (latch_dominating_def): Allow specific cases with non-single
39750 (iv_get_reaching_def): Likewise.
39751 (check_complex_exit_p): New function.
39752 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39753 with exits not executing on any iteration.
39755 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39758 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
39759 to set branch cost.
39761 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39764 * i386.c (gate): Check flag_expensive_optimizations and
39766 (ix86_option_override_internal): Drop optimize_size condition
39767 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
39768 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
39769 MASK_PREFER_AVX128.
39770 (ix86_avx256_split_vector_move_misalign,
39771 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
39772 * sse.md (all uses of TARGET_PREFER_AVX128): Add
39773 optimize_insn_for_speed_p check.
39775 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
39777 * config/mips/mips.h (FP_ASM_SPEC): New define.
39778 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
39781 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
39784 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
39785 nullptr for insn when reaching the first insn.
39786 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
39787 (sh_insn_operands_modified_between_p): Add nullptr check.
39788 (sh_find_extending_set_of_reg): Fix log message. Don't accept
39789 sign extending mem load if the insn contains any UNSPEC or
39792 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39794 * params.def (inline-unit-growth): Drop to 15%.
39795 * invoke.texi (inline-unit-growth): Document change.
39797 2015-01-19 Martin Liska <mliska@suse.cz>
39800 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
39801 function for second argument of OBJ_TYPE_REF.
39803 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39806 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
39807 whether function is an alias.
39809 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
39811 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
39814 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
39816 PR rtl-optimization/64671
39817 * lra-remat.c (operand_to_remat): Don't consider jump and call
39820 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
39823 * config/rs6000/default64.h: Include rs6000-cpus.def.
39824 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
39825 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
39826 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
39828 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
39830 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
39831 pseudo-op to specify assembler dialect.
39833 2015-01-19 Martin Liska <mliska@suse.cz>
39836 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
39837 Handle safe potentially removed nodes during filtering.
39839 2015-01-19 Martin Liska <mliska@suse.cz>
39841 * doc/extend.texi (no_icf): Add new attribute description.
39842 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
39843 where the pass attempts to merge a function with no_icf attribute.
39845 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
39848 * doc/md.texi (ARM Options): Document register constraints.
39850 2015-01-19 Jiong Wang <jiong.wang@arm.com>
39851 Andrew Pinski <apinski@cavium.com>
39854 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
39855 (ashl<mode>3): Don't expand if operands[2] is not constant.
39857 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39860 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
39861 Match xor-and-xor RTL pattern.
39863 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
39865 PR rtl-optimization/64081
39866 * loop-iv.c (def_pred_latch_p): New function.
39867 (latch_dominating_def): Allow specific cases with non-single
39869 (iv_get_reaching_def): Likewise.
39870 (check_complex_exit_p): New function.
39871 (check_simple_exit): Use check_complex_exit_p to allow certain cases
39872 with exits not executing on any iteration.
39874 2015-01-19 Jakub Jelinek <jakub@redhat.com>
39876 * common.opt (fgraphite): Fix a typo.
39878 2015-01-19 Felix Yang <felix.yang@huawei.com>
39880 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
39882 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
39883 uminp, smax_nanp, smin_nanp): New builtins.
39884 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
39885 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
39886 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
39887 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
39888 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
39889 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
39890 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
39891 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
39892 vpminnms_f32): Rewrite using builtin functions.
39894 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
39897 * omp-low.c (offload_symbol_decl): Remove variable.
39898 (get_offload_symbol_decl): Remove function.
39899 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
39900 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
39901 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
39902 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
39903 BUILT_IN_GOACC_UPDATE don't pass it at all.
39905 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39907 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
39910 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
39912 * ipa-chkp.c (chkp_produce_thunks): Add early param
39913 to split thunks production into two passes. Keep
39914 'always_inline' function bodies after the first pass.
39915 (pass_data_ipa_chkp_early_produce_thunks): New.
39916 (pass_ipa_chkp_early_produce_thunks): New.
39917 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
39918 chkp_produce_thunks signature.
39919 (make_pass_ipa_chkp_early_produce_thunks): New.
39920 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
39921 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
39922 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
39924 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39926 * cgraph.c (cgraph_node::dump): Dump profile flags.
39928 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
39931 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
39932 reg appear first in the parallel.
39934 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39936 * ipa-reference.c (set_reference_optimization_summary,
39937 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
39939 (ignore_module_statics): New static var.
39940 (propagate_bits): If ipa-reference is disabled, do not look into local
39942 (analyze_function): Disable analysis when ipa_reference is disabled.
39943 (generate_summary): Do not dump when reference is disabled;
39944 collect vars accessed from functions with ipa-reference disabled.
39945 (get_read_write_all_from_node): When ipa-reference is disabled, use the
39947 (gate): Enable for LTO.
39948 (ignore_edge_p): New function.
39949 (propagate): Skip functions w/o ipa-reference analysis.
39950 * optc-save-gen.awk: Handle optimize_debug correctly.
39951 * opth-gen.awk: Likewise.
39952 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
39953 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
39954 fira-share-save-slots, fira-share-spill-slots,
39955 fmodulo-sched-allow-regmoves, fpartial-inlining,
39956 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
39957 ftracer, ftree-parallelize-loops, fassociative-math,
39958 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
39960 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
39961 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
39963 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
39966 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
39969 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
39971 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
39973 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
39975 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
39976 Remove duplicate option listings.
39978 2015-01-18 Felix Yang <felix.yang@huawei.com>
39980 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
39981 (autofdo_source_profile::get_callsite_total_count,
39982 function_instance::get_function_instance_by_decl,
39983 string_table::get_index, string_table::get_index_by_decl,
39984 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
39985 Fix comment typos. Reformatting and minor code rearrangement.
39987 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39989 * config/rs6000/rs6000.md (probe_stack): Delete.
39990 (probe_stack_address): New.
39992 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39994 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
39995 to test for 32-bit ABIs, not !TARGET_POWERPC64.
39997 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
39999 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
40000 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
40001 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
40003 (rs6000_libcall_value): Use the new function.
40005 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
40007 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
40009 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
40011 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
40012 implement a more precise life analysis for it during backward scan.
40014 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
40016 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
40018 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
40020 PR rtl-optimization/52773
40021 * calls.c (emit_library_call_value): When pushing arguments use
40022 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
40023 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
40024 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
40026 2015-01-17 Jeff Law <law@redhat.com>
40028 PR rtl-optimization/32790
40029 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
40030 not ZERO_EXTEND in SET_DESTs.
40032 2015-01-17 Alan Modra <amodra@gmail.com>
40034 * cprop.c (do_local_cprop): Revert last change.
40036 2015-01-16 DJ Delorie <dj@redhat.com>
40037 Nick Clifton <nickc@redhat.com>
40039 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
40040 (addhi3_real): Likewise. Fix [HL+0] syntax.
40041 (subqi3_real): Likewise.
40042 (subhi3_real): Likewise.
40043 (cbranchqi4_real): Likewise. Allow saddr,#imm.
40044 (cbranchhi4_real): Likewise.
40045 (cbranchhi4_real_inverted): Likewise.
40046 (cbranchsi4_real_lt): Likewise.
40047 (cbranchsi4_real_ge): Likewise.
40048 (cbranchsi4_real_ge): Likewise.
40049 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
40050 (sub<mode>3_virt): Likewise.
40051 (cbranchqi4_virt): Likewise.
40052 (cbranchhi4_virt): Likewise.
40053 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
40054 always use '[reg+imm]' even when imm is zero.
40055 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
40056 (rl78_general_operand): New.
40057 (rl78_nonimmediate_operand): New.
40058 (rl78_nonfar_operand): Use them.
40059 (rl78_nonfar_nonimm_operand): Likewise.
40060 (rl78_stack_based_mem): Fix.
40061 * config/rl78/constraints.md (Ibqi): New.
40066 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
40067 (iorqi3): Likewise.
40068 (xorqi3): Likewise.
40069 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
40071 * config/rl78/constrains (Qs8): New constraint.
40072 * config/rl78/rl78.c (rl78_flags_already_set): New function.
40073 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
40074 * config/rl78/rl78-real.md (update_Z): New attribute.
40075 Update patterns to set it.
40076 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
40077 shorter compare and branch sequence can be used.
40078 (cbranchhi4_real): Likewise.
40079 (cbranchhi4_real_inverted): Likewise.
40081 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
40082 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
40084 * config/rl78/rl78.c (rl78_get_name_encoding): New.
40085 (rl78_option_override): Allow -mes0 only if C.
40086 (characterize_address): Support subregs of symbol_refs.
40087 (rl78_addr_space_address_mode): Move. Add __near.
40088 (rl78_far_p): Likewise.
40089 (rl78_addr_space_pointer_mode): Likewise.
40090 (rl78_as_legitimate_address): Likewise.
40091 (rl78_addr_space_subset_p): Likewise.
40092 (rl78_addr_space_convert): Likewise.
40093 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
40094 symbols with -mes0.
40095 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
40097 (rl78_alloc_physical_registers_op1): Change logic to prefer
40098 symbol[BC] addressing.
40099 (frodata_section): New.
40100 (rl78_asm_init_sections): Initialize it.
40101 (rl78_select_section): Put __far readonly symbols in .frodata.
40102 (rl78_make_type_far): New.
40103 (rl78_insert_attributes): Force all readonly symbols to be
40105 (rl78_asm_out_integer): New.
40106 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
40107 * config/rl78/rl78.opt (-mes0): New.
40109 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
40110 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
40111 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
40112 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
40113 (rl78_saddr_p): New.
40114 (rl78_output_aligned_common): New.
40115 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
40116 (rl78_handle_saddr_attribute): New.
40117 (rl78_handle_naked_attribute): New.
40118 (rl78_attribute_table): Add saddr.
40119 (rl78_print_operand_1): Don't print '!' on saddr operands.
40120 (rl78_print_operand_1): Strip encodings.
40122 (rl78_strip_name_encoding): New.
40123 (rl78_attrlist_to_encoding): New.
40124 (rl78_encode_section_info): New.
40125 (rl78_asm_init_sections): New.
40126 (rl78_select_section): New.
40127 (rl78_output_labelref): New.
40128 (rl78_output_aligned_common): New.
40129 (rl78_asm_out_integer): New.
40130 (rl78_asm_ctor_dtor): New.
40131 (rl78_asm_constructor): New.
40132 (rl78_asm_destructor): New.
40134 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
40135 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
40136 (transcode_memory_rtx): Update.
40137 (rl78_expand_epilogue): Use A_REG instead of 0.
40139 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40141 * config/arm/arm-protos.h (struct tune_params): New field
40142 sched_autopref_queue_depth.
40143 * config/arm/arm.c (sched-int.h): Include header.
40144 (arm_first_cycle_multipass_dfa_lookahead_guard,)
40145 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
40146 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
40147 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
40148 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
40149 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
40150 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
40151 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
40152 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
40153 * config/arm/t-arm (arm.o): Update.
40154 * haifa-sched.c (update_insn_after_change): Update.
40155 (rank_for_schedule): Use auto-prefetcher model, if requested.
40156 (autopref_multipass_init): New static function.
40157 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
40158 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
40159 variable for debug dumps.
40160 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
40161 (autopref_multipass_dfa_lookahead_guard): New global function that
40162 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
40163 (init_h_i_d): Update.
40164 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
40165 * sched-int.h (enum autopref_multipass_data_status): New const enum.
40166 (autopref_multipass_data_): Structure for auto-prefetcher data.
40167 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
40168 (struct _haifa_insn_data:autopref_multipass_data): New field.
40169 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
40170 (autopref_multipass_dfa_lookahead_guard): Declare.
40172 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40174 * rtlanal.c (get_base_term): Handle SCRATCH.
40176 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40178 * config/aarch64/aarch64.c
40179 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
40180 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40182 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
40183 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
40185 2015-01-17 Alan Modra <amodra@gmail.com>
40187 * cprop.c (do_local_cprop): Disallow replacement of fixed
40190 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40193 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
40196 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
40198 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
40199 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
40201 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40203 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
40204 * config/arm/thumb1.md: ... Here.
40206 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40208 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
40209 TImode for TARGET_32BIT.
40211 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40213 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
40214 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
40216 (rs6000_abi_word_mode): New function.
40218 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40220 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
40221 instead of UNITS_PER_WORD to describe the size of stack slots.
40223 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40225 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
40226 as rs6000_promote_function_mode. Move comment to there.
40227 (rs6000_promote_function_mode): New function.
40229 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
40231 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
40232 -mpowerpc64 is active.
40234 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40236 PR middle-end/64353
40237 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
40240 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40242 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
40243 introduced in revision 219724.
40245 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40246 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
40249 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
40250 destination is not a GP reg.
40251 (*movdi_aarch64): Likewise.
40253 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
40256 * config/rs6000/default64.h: Revert ISA change.
40258 2015-01-16 Richard Biener <rguenther@suse.de>
40260 PR middle-end/64614
40261 * tree-ssa-uninit.c: Include tree-cfg.h.
40262 (MAX_SWITCH_CASES): New define.
40263 (convert_control_dep_chain_into_preds): Handle switch statements.
40264 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
40265 (normalize_one_pred_1): Do not split bit-manipulations.
40268 2015-01-16 Richard Biener <rguenther@suse.de>
40270 PR tree-optimization/64568
40271 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
40272 complex load rewriting for TARGET_MEM_REFs.
40274 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
40276 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
40278 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
40281 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
40283 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
40284 (aarch64_lra_p): Remove.
40286 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
40289 * ipa-chkp.h (chkp_instrumentable_p): New.
40290 * ipa-chkp.c: Include tree-inline.h.
40291 (chkp_instrumentable_p): New.
40292 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
40293 Fix processing of not instrumentable functions.
40294 (chkp_versioning): Use chkp_instrumentable_p. Warn about
40295 not instrumentable functions.
40296 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
40297 chkp_instrumentable_p.
40298 * tree-inline.h (copy_forbidden): New.
40299 * tree-inline.c (copy_forbidden): Not static anymore.
40301 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
40303 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
40306 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40308 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
40309 type OP_OUT to OP_INOUT.
40311 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
40313 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
40314 (high x) y) to y if x and y have the same base.
40316 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
40318 * config/arm/cortex-a57.md: New.
40319 * config/aarch64/aarch64.md: Include it.
40320 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
40321 * config/aarch64/aarch64-tune.md: Regenerate.
40323 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
40326 * ccmp.c (expand_ccmp_next): New function.
40327 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
40328 and compare insn sequence.
40329 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
40330 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
40331 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
40332 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
40333 (*ccmp_ior): Changed to ccmp_ior<mode>.
40334 (cmp<mode>): New pattern.
40335 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
40337 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
40339 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
40341 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
40342 _mm256_bsrli_epi128): New.
40343 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
40345 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40347 * expmed.c (store_bit_field_using_insv): Improve warning message.
40348 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
40350 2015-01-15 Jiong Wang <jiong.wang@arm.com>
40352 PR rtl-optimization/64011
40353 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
40354 there is partial overflow.
40356 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40358 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
40360 (nds32_expand_epilogue_v3pop): Likewise.
40361 * config/nds32/nds32.md (sibcall): Define this for sibling call
40363 (sibcall_register): Likewise.
40364 (sibcall_immediate): Likewise.
40365 (sibcall_value): Likewise.
40366 (sibcall_value_register): Likewise.
40367 (sibcall_value_immediate): Likewise.
40368 (sibcall_epilogue): Likewise.
40369 (epilogue): Pass false to indicate this is not a sibcall epilogue.
40370 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
40371 (nds32_expand_epilogue_v3pop): Likewise.
40373 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40375 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
40376 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
40377 (return_internal): New.
40378 (return): Define this named pattern.
40379 (simple_return): Define this named pattern.
40380 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
40381 pattern instead of unspec_volatile_func_return.
40382 (nds32_expand_epilogue_v3pop): Likewise.
40383 (nds32_can_use_return_insn): New function.
40385 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40387 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
40388 * config/nds32/nds32.md (pop25return): New.
40389 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
40390 pop25return pattern.
40392 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40394 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
40395 -mforbid-fp-as-gp, and -mex9 options.
40397 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
40399 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
40400 remove -mgp-direct option.
40402 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40404 * doc/invoke.texi (--param early-inlining-insns): Update default value.
40405 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
40407 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40409 * ipa-inline.c (inline_small_functions): Work around hints
40412 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
40415 * doc/invoke.texi (Option Summary): Document new Nios II
40417 (Nios II Options): Likewise.
40418 * config/nios2/nios2.opt: Add -mgpopt= option support.
40419 Modify existing -mgpopt and -mno-gpopt options to be aliases.
40420 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
40421 * config/nios2/nios2.c (nios2_option_override): Adjust
40422 -mgpopt defaulting.
40423 (nios2_in_small_data_p): Return true for explicit small data
40424 sections even with -G0.
40425 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
40428 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40431 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
40433 (inline_call): Fix removal of aliases.
40435 2015-01-15 Jakub Jelinek <jakub@redhat.com>
40437 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
40438 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
40439 * opts.c (common_handle_option): Add -fsanitize=vptr.
40440 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
40441 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
40442 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
40443 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
40444 (ubsan_expand_vptr_ifn): New prototype.
40445 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
40446 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
40447 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
40448 expand_LOOP_VECTORIZED): Make argument nameless, remove
40450 (expand_UBSAN_VPTR): New function.
40451 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
40453 (UBSAN_VPTR): New internal function.
40454 * sanopt.c (tree_map_traits): Renamed to ...
40455 (sanopt_tree_map_traits): ... this.
40456 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
40457 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
40458 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
40459 (maybe_optimize_ubsan_vptr_ifn): New function.
40460 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
40461 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
40463 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
40464 internal calls like pure functions for aliasing, even when they
40465 have other side-effects that prevent making them ECF_PURE.
40466 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
40467 (ubsan_expand_vptr_ifn): New function.
40469 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
40471 PR rtl-optimization/64110
40472 * stmt.c (parse_output_constraint): Process '^' and '$'.
40473 (parse_input_constraint): Ditto.
40474 * lra-constraints.c (process_alt_operands): Process the new
40476 * ira-costs.c (record_reg_classes): Process the new constraint
40478 * genoutput.c (indep_constraints): Add '^' and '$'.
40479 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
40480 * doc/md.texi: Add description of the new constraints.
40482 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
40483 Bernd Schmidt <bernds@codesourcery.com>
40484 Cesar Philippidis <cesar@codesourcery.com>
40485 James Norris <jnorris@codesourcery.com>
40486 Tom de Vries <tom@codesourcery.com>
40487 Ilmir Usmanov <i.usmanov@samsung.com>
40488 Dmitry Bocharnikov <dmitry.b@samsung.com>
40489 Evgeny Gavrin <e.gavrin@samsung.com>
40490 Jakub Jelinek <jakub@redhat.com>
40492 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
40493 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
40494 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
40495 New function types.
40496 * builtins.c: Include "gomp-constants.h".
40497 (expand_builtin_acc_on_device): New function.
40498 (expand_builtin, is_inexpensive_builtin): Handle
40499 BUILT_IN_ACC_ON_DEVICE.
40500 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
40502 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
40504 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
40505 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
40506 i386/intelmic-offload.h.
40507 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
40508 to libgomp and its dependencies.
40509 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
40510 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
40511 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
40512 * config/ia64/hpux.h (LIB_SPEC): Likewise.
40513 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
40514 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
40515 * doc/generic.texi: Update for OpenACC changes.
40516 * doc/gimple.texi: Likewise.
40517 * doc/invoke.texi: Likewise.
40518 * doc/sourcebuild.texi: Likewise.
40519 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
40520 GF_OMP_FOR_KIND_OACC_LOOP.
40521 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
40522 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
40523 GF_OMP_TARGET_KIND_OACC_UPDATE,
40524 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40526 * gimple.c: Update comments for OpenACC changes.
40527 * gimple.def: Likewise.
40528 * gimple.h: Likewise.
40529 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
40530 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40531 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
40532 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
40533 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
40535 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
40536 * gimplify.c: Include "gomp-constants.h".
40537 Update comments for OpenACC changes.
40538 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
40539 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
40540 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40541 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
40542 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40543 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40544 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
40545 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40546 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
40548 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
40549 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40550 OMP_CLAUSE_SET_MAP_KIND.
40551 (gimplify_oacc_cache): New function.
40552 (gimplify_omp_for): Handle OACC_LOOP.
40553 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
40555 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
40556 OACC_EXIT_DATA, OACC_UPDATE.
40557 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
40558 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
40559 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
40560 (gimplify_body): Consider flag_openacc next to flag_openmp.
40561 * lto-streamer-out.c: Include "gomp-constants.h".
40562 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
40563 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
40564 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
40565 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
40566 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
40567 (BUILT_IN_ACC_ON_DEVICE): New builtins.
40568 * omp-low.c: Include "gomp-constants.h".
40569 Update comments for OpenACC changes.
40570 (struct omp_context): Add reduction_map, gwv_below, gwv_this
40572 (extract_omp_for_data, use_pointer_for_field, install_var_field)
40573 (new_omp_context, delete_omp_context, scan_sharing_clauses)
40574 (create_omp_child_function, scan_omp_for, scan_omp_target)
40575 (check_omp_nesting_restrictions, lower_reduction_clauses)
40576 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
40577 Update for OpenACC changes.
40578 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
40579 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
40580 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
40581 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
40582 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
40583 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
40585 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
40586 Handle GF_OMP_FOR_KIND_OACC_LOOP.
40587 (expand_omp_target, lower_omp_target): Handle
40588 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
40589 GF_OMP_TARGET_KIND_OACC_UPDATE,
40590 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
40591 GF_OMP_TARGET_KIND_OACC_DATA.
40592 (pass_expand_omp::execute, execute_lower_omp)
40593 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
40595 (offload_symbol_decl): New variable.
40596 (oacc_get_reduction_array_id, oacc_max_threads)
40597 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
40598 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
40599 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
40600 (oacc_gimple_assign, oacc_initialize_reduction_data)
40601 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
40603 (is_targetreg_ctx): Remove function.
40604 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
40605 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
40606 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
40607 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
40608 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
40609 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
40610 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
40611 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
40612 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
40613 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
40614 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
40615 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
40616 * tree-core.h: Update comments for OpenACC changes.
40617 (enum omp_clause_map_kind): Remove.
40618 (struct tree_omp_clause): Change type of map_kind member from enum
40619 omp_clause_map_kind to unsigned char.
40620 * tree-inline.c: Update comments for OpenACC changes.
40621 * tree-nested.c: Likewise. Include "gomp-constants.h".
40622 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
40623 (convert_tramp_reference_stmt, convert_gimple_call): Update for
40624 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
40625 OMP_CLAUSE_SET_MAP_KIND.
40626 * tree-pretty-print.c: Include "gomp-constants.h".
40627 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
40628 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
40629 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
40630 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
40631 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
40632 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
40633 instead of OMP_CLAUSE_MAP_*.
40634 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
40635 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
40636 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
40637 * tree-streamer-in.c: Include "gomp-constants.h".
40638 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
40639 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
40640 * tree-streamer-out.c: Include "gomp-constants.h".
40641 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
40643 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
40644 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
40645 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
40646 * tree.c (omp_clause_num_ops): Update accordingly.
40647 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
40649 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
40650 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
40651 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
40652 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
40653 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
40654 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
40655 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
40656 (OMP_CLAUSE_SET_MAP_KIND): New macro.
40657 * varpool.c (varpool_node::get_create): Consider flag_openacc next
40659 * config/i386/intelmic-offload.h: New file.
40660 * config/nvptx/offload.h: Likewise.
40662 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40664 * explow.h: Remove duplicate contents.
40665 * dojump.h: Likewise.
40667 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
40669 * arm.c (arm_xgene_tune): Add default initializer for instruction
40672 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
40676 * ipa.c (symbol_table::remove_unreachable_nodes):
40677 Do not put abstract origins into boundary.
40679 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
40681 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
40682 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
40684 2015-01-15 Steve Ellcey <sellcey@mips.com>
40686 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
40687 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
40688 builtins.def, and chkp-builtins.def.
40690 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
40692 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
40695 2015-01-15 Richard Biener <rguenther@suse.de>
40697 PR tree-optimization/61743
40698 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
40699 information on PHIs for some simple cases.
40701 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40703 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
40705 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
40706 * config/arm/arm-cores.def (xgene1): New entry.
40707 * config/arm/arm-tables.opt: Regenerate.
40708 * config/arm/arm-tune.md: Regenerate.
40709 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
40711 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
40713 * tree-if-conv.c: Include hash-map.h.
40714 (aggressive_if_conv): New variable.
40715 (fold_build_cond_expr): Add simplification of non-zero condition.
40716 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
40717 destination block is not always executed.
40718 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
40719 than two predecessors if AGGRESSIVE_IF_CONV is true.
40720 (if_convertible_stmt_p): Fix commentary.
40721 (all_preds_critical_p): New function.
40722 (has_pred_critical_p): New function.
40723 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
40724 BB can have more than two predecessors and all incoming edges can be
40726 (predicate_bbs): Skip predication for loop exit block, use build2_loc
40727 to compute predicate for true edge.
40728 (find_phi_replacement_condition): Delete this function.
40729 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
40730 Allow interchange PHI arguments if EXTENDED is false.
40731 Change check that block containing reduction statement candidate
40732 is predecessor of phi-block since phi may have more than two arguments.
40733 (phi_args_hash_traits): New helper structure.
40734 (struct phi_args_hash_traits): New type.
40735 (phi_args_hash_traits::hash): New function.
40736 (phi_args_hash_traits::equal_keys): New function.
40737 (gen_phi_arg_condition): New function.
40738 (predicate_scalar_phi): Add handling of phi nodes with more than two
40739 arguments, delete COND and TRUE_BB arguments, insert body of
40740 find_phi_replacement_condition to predicate ordinary phi nodes.
40741 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
40742 delete call of find_phi_replacement_condition and invoke
40743 predicate_scalar_phi with two arguments.
40744 (insert_gimplified_predicates): Add assert that non-predicated block
40745 don't have statements to insert.
40746 (ifcvt_split_critical_edges): New function.
40747 (ifcvt_split_def_stmt): Likewise.
40748 (ifcvt_walk_pattern_tree): Likewise.
40749 (stmt_is_root_of_bool_pattern): Likewise.
40750 (ifcvt_repair_bool_pattern): Likewise.
40751 (ifcvt_local_dce): Likewise.
40752 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
40753 is copy of inner or outer loop force_vectorize field, invoke
40754 ifcvt_split_critical_edges, ifcvt_local_dce and
40755 ifcvt_repair_bool_pattern for aggressive if-conversion.
40757 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
40759 * config/aarch64/aarch64.md: Include xgene1.md.
40760 * config/aarch64/xgene1.md: New file.
40762 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
40764 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
40765 xgene1 (APM XGene-1) core definition.
40766 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
40767 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
40768 * doc/invoke.texi: Document -mcpu=xgene1.
40770 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
40772 * dojump.h: New header file.
40773 * explow.h: Likewise.
40774 * expr.h: Remove includes.
40775 Move expmed.c prototypes to expmed.h.
40776 Move dojump.c prototypes to dojump.h.
40777 Move alias.c prototypes to alias.h.
40778 Move explow.c prototypes to explow.h.
40779 Move calls.c prototypes to calls.h.
40780 Move emit-rtl.c prototypes to emit-rtl.h.
40781 Move varasm.c prototypes to varasm.h.
40782 Move stmt.c prototypes to stmt.h.
40783 (saved_pending_stack_adjust): Move to dojump.h.
40784 (adjust_address): Move to explow.h.
40785 (adjust_address_nv): Move to emit-rtl.h.
40786 (adjust_bitfield_address): Likewise.
40787 (adjust_bitfield_address_size): Likewise.
40788 (adjust_bitfield_address_nv): Likewise.
40789 (adjust_automodify_address_nv): Likewise.
40790 * explow.c (expr_size): Move to expr.c.
40791 (int_expr_size): Likewise.
40792 (tree_expr_size): Likewise.
40793 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40794 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40795 * genemit.c (main): Generate includes statistics.h, real.h,
40796 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
40798 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
40799 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
40800 explow.h, emit-rtl.h, stmt.h.
40801 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
40802 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
40803 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
40804 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
40805 emit-rtl.h, varasm.h, stmt.h.
40806 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
40807 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
40808 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
40809 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
40810 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
40811 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
40812 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
40813 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
40814 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
40815 tm.h tree.h varasm.h vec.h wide-int.h.
40816 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40817 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40818 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
40819 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
40820 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
40821 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
40822 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
40823 * loop-iv.c: Likewise.
40824 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
40825 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
40826 statistics.h stmt.h tree.h varasm.h wide-int.h.
40827 * lra-constraints.c: Likewise.
40828 * lra-eliminations.c: Likewise.
40829 * lra-lives.c: Likewise.
40830 * lra-remat.c: Likewise.
40831 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40832 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
40833 statistics.h stmt.h tree.h varasm.h wide-int.h.
40834 * hw-doloop.c: Likewise.
40835 * ira-color.c: Likewise.
40836 * ira-emit.c: Likewise.
40837 * loop-doloop.c: Likewise.
40838 * loop-invariant.c: Likewise.
40839 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40840 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
40841 statistics.h stmt.h tree.h varasm.h wide-int.h.
40842 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
40843 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
40844 statistics.h stmt.h tree.h varasm.h wide-int.h.
40845 * combine-stack-adj.c: Likewise.
40848 * ifcvt.c: Likewise.
40849 * ira-costs.c: Likewise.
40850 * jump.c: Likewise.
40851 * lra-coalesce.c: Likewise.
40852 * lra-spills.c: Likewise.
40853 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40854 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
40855 stmt.h varasm.h wide-int.h.
40856 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
40857 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40859 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
40860 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
40861 statistics.h stmt.h varasm.h wide-int.h.
40862 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
40863 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
40864 varasm.h wide-int.h.
40865 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
40866 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
40867 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
40868 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
40869 statistics.h stmt.h.
40870 * config/tilepro/tilepro.c: Likewise.
40871 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
40872 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
40873 * config/pdp11/pdp11.c: Likewise.
40874 * config/xtensa/xtensa.c: Likewise.
40875 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
40876 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
40878 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40879 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40880 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
40881 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40882 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
40883 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
40884 * rtl-chkp.c: Likewise.
40885 * tree-chkp-opt.c: Likewise.
40886 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
40887 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
40888 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
40889 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40890 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
40891 statistics.h stmt.h.
40892 * tree-vect-data-refs.c: Likewise.
40893 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
40894 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40895 rtl.h statistics.h stmt.h varasm.h.
40896 * internal-fn.c: Likewise.
40897 * ipa-icf-gimple.c: Likewise.
40898 * lto-section-out.c: Likewise.
40899 * tree-data-ref.c: Likewise.
40900 * tree-nested.c: Likewise.
40901 * tree-outof-ssa.c: Likewise.
40902 * tree-predcom.c: Likewise.
40903 * tree-pretty-print.c: Likewise.
40904 * tree-scalar-evolution.c: Likewise.
40905 * tree-ssa-strlen.c: Likewise.
40906 * tree-vect-loop.c: Likewise.
40907 * tree-vect-patterns.c: Likewise.
40908 * tree-vect-slp.c: Likewise.
40909 * tree-vect-stmts.c: Likewise.
40910 * tsan.c: Likewise.
40911 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40912 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
40914 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
40915 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
40916 statistics.h stmt.h varasm.h.
40917 * loop-unroll.c: Likewise.
40918 * ubsan.c: Likewise.
40919 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
40920 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
40922 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40923 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
40924 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
40925 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40926 statistics.h stmt.h.
40927 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
40928 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
40929 statistics.h stmt.h varasm.h.
40930 * gimple-match-head.c: Likewise.
40931 * lto-cgraph.c: Likewise.
40932 * lto-section-in.c: Likewise.
40933 * lto-streamer-in.c: Likewise.
40934 * lto-streamer-out.c: Likewise.
40935 * tree-affine.c: Likewise.
40936 * tree-cfg.c: Likewise.
40937 * tree-cfgcleanup.c: Likewise.
40938 * tree-if-conv.c: Likewise.
40939 * tree-into-ssa.c: Likewise.
40940 * tree-ssa-alias.c: Likewise.
40941 * tree-ssa-copyrename.c: Likewise.
40942 * tree-ssa-dse.c: Likewise.
40943 * tree-ssa-forwprop.c: Likewise.
40944 * tree-ssa-live.c: Likewise.
40945 * tree-ssa-math-opts.c: Likewise.
40946 * tree-ssa-pre.c: Likewise.
40947 * tree-ssa-sccvn.c: Likewise.
40948 * tree-tailcall.c: Likewise.
40949 * tree-vect-generic.c: Likewise.
40950 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40951 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
40952 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40953 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
40954 * varasm.c: Likewise.
40955 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40956 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
40958 * init-regs.c: Likewise.
40960 * omp-low.c: Likewise.
40961 * stack-ptr-mod.c: Likewise.
40962 * tree-ssa-reassoc.c: Likewise.
40963 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40964 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
40966 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40967 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
40968 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40969 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
40970 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40971 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
40972 * tree-ssa-phiopt.c: Likewise.
40973 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40974 fixed-value.h hashtab.h real.h statistics.h stmt.h.
40975 * config/fr30/fr30.c: Likewise.
40976 * config/frv/frv.c: Likewise.
40977 * expr.c: Likewise.
40978 * final.c: Likewise.
40979 * optabs.c: Likewise.
40980 * passes.c: Likewise.
40981 * simplify-rtx.c: Likewise.
40982 * stmt.c: Likewise.
40983 * toplev.c: Likewise.
40984 * var-tracking.c: Likewise.
40985 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40986 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
40987 * lower-subreg.c: Likewise.
40988 * postreload-gcse.c: Likewise.
40990 * reginfo.c: Likewise.
40991 * store-motion.c: Likewise.
40992 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40993 fixed-value.h hashtab.h real.h stmt.h varasm.h.
40994 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40995 fixed-value.h hashtab.h statistics.h stmt.h.
40996 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
40997 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
40998 * except.c: Likewise.
40999 * explow.c: Likewise.
41000 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41001 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
41003 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41004 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
41005 * tree-ssa-structalias.c: Likewise.
41006 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41007 fixed-value.h insn-config.h real.h statistics.h.
41008 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41009 fixed-value.h insn-config.h real.h statistics.h stmt.h.
41010 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41011 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41012 * cfgbuild.c: Likewise.
41013 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41014 fixed-value.h real.h rtl.h statistics.h stmt.h.
41015 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41016 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41017 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41018 fixed-value.h real.h statistics.h stmt.h.
41019 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
41020 fixed-value.h real.h statistics.h stmt.h varasm.h.
41021 * cprop.c: Likewise.
41022 * modulo-sched.c: Likewise.
41023 * postreload.c: Likewise.
41024 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41025 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
41026 statistics.h stmt.h varasm.h.
41027 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
41028 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41029 rtl.h statistics.h stmt.h varasm.h.
41030 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
41031 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
41033 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
41034 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
41036 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
41037 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
41039 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
41040 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41041 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41042 function.h real.h statistics.h stmt.h varasm.h.
41043 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41044 insn-config.h real.h statistics.h stmt.h.
41045 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
41046 statistics.h stmt.h.
41047 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
41048 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
41049 statistics.h stmt.h varasm.h.
41050 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
41051 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
41052 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41053 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
41054 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
41055 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
41056 statistics.h stmt.h varasm.h.
41057 * ipa-polymorphic-call.c: Likewise.
41058 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
41059 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41060 statistics.h stmt.h.
41061 * config/c6x/c6x.c: Likewise.
41062 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
41063 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
41064 statistics.h stmt.h varasm.h.
41065 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
41066 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
41068 * ipa-split.c: Likewise.
41069 * tree-eh.c: Likewise.
41070 * tree-ssa-dce.c: Likewise.
41071 * tree-ssa-loop-niter.c: Likewise.
41072 * tree-vrp.c: Likewise.
41073 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
41074 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
41076 * config/nds32/nds32-fp-as-gp.c: Likewise.
41077 * config/nds32/nds32-intrinsic.c: Likewise.
41078 * config/nds32/nds32-isr.c: Likewise.
41079 * config/nds32/nds32-md-auxiliary.c: Likewise.
41080 * config/nds32/nds32-memory-manipulation.c: Likewise.
41081 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
41082 * config/nds32/nds32-predicates.c: Likewise.
41083 * config/nds32/nds32.c: Likewise.
41084 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
41085 fixed-value.h hashtab.h real.h statistics.h.
41086 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
41087 fixed-value.h hashtab.h real.h statistics.h stmt.h.
41088 * config/arm/arm.c: Likewise.
41089 * config/avr/avr.c: Likewise.
41090 * config/bfin/bfin.c: Likewise.
41091 * config/h8300/h8300.c: Likewise.
41092 * config/i386/i386.c: Likewise.
41093 * config/ia64/ia64.c: Likewise.
41094 * config/iq2000/iq2000.c: Likewise.
41095 * config/m32c/m32c.c: Likewise.
41096 * config/m32r/m32r.c: Likewise.
41097 * config/m68k/m68k.c: Likewise.
41098 * config/mcore/mcore.c: Likewise.
41099 * config/mep/mep.c: Likewise.
41100 * config/mips/mips.c: Likewise.
41101 * config/mn10300/mn10300.c: Likewise.
41102 * config/moxie/moxie.c: Likewise.
41103 * config/pa/pa.c: Likewise.
41104 * config/rl78/rl78.c: Likewise.
41105 * config/rx/rx.c: Likewise.
41106 * config/s390/s390.c: Likewise.
41107 * config/sh/sh.c: Likewise.
41108 * config/sparc/sparc.c: Likewise.
41109 * config/spu/spu.c: Likewise.
41110 * config/stormy16/stormy16.c: Likewise.
41111 * config/v850/v850.c: Likewise.
41112 * config/vax/vax.c: Likewise.
41113 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
41114 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
41115 * config/msp430/msp430.c: Likewise.
41116 * predict.c: Likewise.
41117 * value-prof.c: Likewise.
41118 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
41119 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
41120 * config/microblaze/microblaze.c: Likewise.
41121 * config/nios2/nios2.c: Likewise.
41122 * config/rs6000/rs6000.c: Likewise.
41123 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41124 insn-config.h real.h rtl.h statistics.h stmt.h.
41125 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
41126 insn-config.h real.h statistics.h stmt.h.
41127 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
41128 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
41129 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
41130 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
41131 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
41132 fixed-value.h real.h statistics.h stmt.h.
41133 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
41134 fixed-value.h statistics.h stmt.h.
41135 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
41138 2015-01-15 Jakub Jelinek <jakub@redhat.com>
41140 * gengtype.c (create_user_defined_type): Workaround
41141 -Wmaybe-uninitialized false positives.
41142 * cse.c (fold_rtx): Likewise.
41143 * loop-invariant.c (gain_for_invariant): Likewise.
41145 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
41147 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
41148 set the memory attributes in all cases but clear MEM_EXPR if need be.
41150 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
41152 PR tree-optimization/64434
41153 * cfgexpand.c (reorder_operands): New function.
41154 (expand_gimple_basic_block): Insert call of reorder_operands if
41157 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
41159 * config/mips/micromips.md (*swp): Remove explicit parallel.
41160 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
41161 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
41162 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
41163 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
41164 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
41165 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
41166 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
41167 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
41168 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
41169 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
41170 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
41171 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
41172 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
41173 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
41174 (mips_wrdsp): Likewise.
41175 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
41177 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
41178 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
41179 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
41180 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
41181 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
41182 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
41183 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
41184 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
41185 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
41187 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41189 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
41190 (mips_print_operand): Support 'y' to print exact log2 in decimal
41192 * config/mips/mips.h (ISA_HAS_LSA): New define.
41193 (ISA_HAS_DLSA): Likewise.
41194 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
41195 * config/mips/predicates.md (const_immlsa_operand): New predicate.
41197 2015-01-15 Martin Liska <mliska@suse.cz>
41200 * optc-save-gen.awk: Add support for array types.
41202 2015-01-15 Richard Biener <rguenther@suse.de>
41204 PR middle-end/64365
41205 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
41206 for MEM_REF access functions with the same base can never partially
41209 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
41211 * common.opt: New option -fstack-protector-explicit.
41212 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
41213 (stack_protect_decl_phase): Handle stack_protect attribute for
41214 explicit stack protection requests.
41215 (expand_used_vars): Similarly.
41216 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
41217 * doc/extend.texi: Add documentation for "stack_protect" attribute.
41218 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
41220 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
41223 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
41225 (sh_extending_set_of_reg): New struct.
41226 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
41227 sh_remove_reg_dead_or_unused_notes): New Declarations.
41228 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
41229 sh_find_extending_set_of_reg, sh_split_tst_subregs,
41230 sh_extending_set_of_reg::use_as_extended_reg): New functions.
41231 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
41232 convert to insn_and_split and use new function sh_split_tst_subregs.
41234 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
41236 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
41238 (Optimization Options): Move -fuse-ld documentation to...
41239 (Link Options): ...here.
41241 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41243 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
41245 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
41246 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
41247 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
41248 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
41249 instead of ZR for the memory operand of LL/SC.
41250 (compare_and_swap_12, sync_add<mode>): Likewise.
41251 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
41252 (sync_new_<optab>_12, sync_nand_12): Likewise.
41253 (sync_old_nand_12, sync_new_nand_12): Likewise.
41254 (sync_sub<mode>, sync_old_add<mode>): Likewise.
41255 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
41256 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
41257 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
41258 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
41259 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
41260 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
41261 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
41262 * doc/md.texi (ZC): Update description.
41264 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41266 * builtins.c (expand_builtin_atomic_exchange): Remove error when
41267 memory model is CONSUME.
41268 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
41269 expand_builtin_atomic_store): Change invalid memory model errors to
41271 (expand_builtin_atomic_clear): Change invalid model errors to warnings
41272 and issue warning for CONSUME.
41274 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
41276 * lto-cgraph: Update function comments for
41277 lto_symtab_encoder_encode_*.
41279 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41281 * Makefile.in (site.exp): Do not set ENABLE_LTO.
41283 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
41285 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
41286 * lto-cgraph.c (select_what_to_stream): Remove argument, use
41287 lto_stream_offload_p instead.
41288 * lto-streamer.h (select_what_to_stream): Remove argument.
41289 * passes.c (ipa_write_summaries): Likewise.
41290 * tree-pass.h (ipa_write_summaries): Likewise.
41292 2015-01-14 Richard Biener <rguenther@suse.de>
41294 PR tree-optimization/59354
41295 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
41296 groups larger than the slp group size as having gaps.
41298 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
41300 PR middle-end/59448
41301 * builtins.c (get_memmodel): Promote consume to acquire always.
41303 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41306 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
41309 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41312 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
41314 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
41315 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
41316 AVX512VBMI, as it implies AVX512BW.
41318 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
41321 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
41322 (vec_unpacks_hi_v16sf): Ditto.
41324 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41326 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
41329 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41331 * doc/invoke.texi (mapcs): Mention deprecation.
41332 (mapcs-frame): Likewise.
41334 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
41337 * config/arm/arm.c (callee_saved_reg_p): Define.
41338 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
41339 register is callee saved instead of !call_used_regs[reg].
41340 (thumb1_compute_save_reg_mask): Likewise.
41342 2015-01-14 Hale Wang <hale.wang@arm.com>
41344 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
41347 2015-01-14 Richard Biener <rguenther@suse.de>
41350 * tree-inline.c (insert_debug_decl_map): Check destination
41351 function MAY_HAVE_DEBUG_STMTS.
41352 (insert_init_debug_bind): Likewise.
41353 (insert_init_stmt): Remove redundant check.
41354 (remap_gimple_stmt): Drop debug stmts if the destination
41355 function has var-tracking assignments disabled.
41357 2015-01-14 Martin Liska <mliska@suse.cz>
41359 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
41360 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
41362 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41365 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
41366 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
41368 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
41370 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
41371 level from an ARCH; do not inject the default.
41372 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
41373 MIPS_ISA_LEVEL_SPEC.
41374 (MIPS_ISA_NAN2008_SPEC): Update comment.
41375 (BASE_DRIVER_SELF_SPECS): Likewise.
41376 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
41377 MIPS_DEFAULT_ISA_LEVEL_SPEC.
41378 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
41379 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
41380 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
41382 2015-01-14 Richard Biener <rguenther@suse.de>
41384 PR tree-optimization/64493
41385 PR tree-optimization/64495
41386 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
41387 assign the proper vectorized PHI to the inner loop exit PHIs.
41389 2015-01-14 Joey Ye <joey.ye@arm.com>
41391 * config/arm/arm.c (arm_compute_save_reg_mask):
41392 Do not save lr in case of tail call.
41393 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
41395 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
41397 * tree-vrp.c (check_array_ref): Emit more warnings
41398 for warn_array_bounds >= 2.
41399 * common.opt: New option -Warray-bounds=.
41400 * doc/invoke.texi: Document -Warray-bounds=.
41402 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
41404 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
41405 (mforbid-fp-as-gp): Remove.
41407 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
41408 (nds32_symbol_load_store_p): Remove.
41409 (nds32_fp_as_gp_check_available): Clean up implementation.
41410 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
41412 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
41413 fp-as-gp and ex9 cases.
41415 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41417 * tree-profile.c (init_ic_make_global_vars): Drop workaround
41418 for bintuils bug 14342.
41419 (init_ic_make_global_vars): Likewise.
41420 (gimple_init_edge_profiler): Likewise.
41421 (gimple_gen_ic_func_profiler): Likewise.
41423 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
41425 * ipa-inline.c (inline_small_functions): Swap the operands in
41428 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41431 * ipa-inline-analysis.c (node_growth_cache): Remove.
41432 (initialize_growth_caches): Do not initialize it.
41433 (free_growth_caches): Do not free it.
41434 (do_estimate_growth): Rename to ...
41435 (estimate_growth): ... this one; drop growth cache code.
41436 (growth_likely_positive): Always go the heuristics way.
41437 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
41438 (reset_edge_caches): Do not reset node growth.
41439 (heap_edge_removal_hook): Do not maintain cache.
41440 (inline_small_functions): Likewise; strenghten sanity check.
41441 (ipa_inline): Do not maintain caches.
41442 * ipa-inline.h (node_growth_cache): Remove.
41443 (do_estimate_growth): Remove to ...
41444 (estimate_growth): this one; remove inline version.
41445 (reset_node_growth_cache): Remove.
41447 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
41450 * ipa-inline.c (inline_small_functions): Update callee keys after
41451 resolving speculation
41452 (inline_small_functions): Always check monotonicity of the queue.
41454 2015-01-13 Marek Polacek <polacek@redhat.com>
41456 PR middle-end/64391
41457 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
41459 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41461 PR rtl-optimization/64286
41462 * ree.c (combine_reaching_defs): Move part of comment earlier,
41463 remove !SCALAR_INT_MODE_P check.
41464 (add_removable_extension): Don't add vector mode
41465 extensions if all uses of the source register aren't the same
41468 2015-01-13 Renlin Li <renlin.li@arm.com>
41470 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
41471 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
41473 2015-01-13 Martin Liska <mliska@suse.cz>
41475 * ipa-icf.c (sem_function::equals_private): Call new functions
41476 cl_target_option_print_diff and cl_optimization_print_diff.
41477 * optc-save-gen.awk (cl_target_option_print_diff): New function.
41478 (cl_optimization_print_diff): Likewise.
41479 * opth-gen.awk: Likewise.
41481 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
41483 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
41484 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
41485 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
41486 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
41487 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
41488 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
41490 2015-01-13 Andrew Pinski <apinski@cavium.com>
41492 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
41493 instead of src mode.
41495 2015-01-13 Richard Biener <rguenther@suse.de>
41498 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
41501 2015-01-13 Andrew Pinski <apinski@cavium.com>
41503 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
41505 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
41507 2015-01-13 Jakub Jelinek <jakub@redhat.com>
41509 PR middle-end/63974
41510 * cfgexpand.c (expand_computed_goto): Don't call
41511 convert_memory_address here.
41513 2015-01-13 Richard Biener <rguenther@suse.de>
41515 PR tree-optimization/64406
41516 * tree-loop-distibution.c (pass_loop_distribution::execute):
41517 Reset the SCEV hashtable if we distributed anything.
41519 2015-01-13 Richard Biener <rguenther@suse.de>
41521 PR tree-optimization/64404
41522 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
41523 SLP types for CSEd loads.
41525 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
41527 PR tree-optimization/64436
41528 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
41529 merge of two symbolic numbers for a bitwise OR to ...
41530 (perform_symbolic_merge): This. Also fix computation of the range and
41531 end of the symbolic number corresponding to the result of a bitwise OR.
41533 2015-01-13 Richard Biener <rguenther@suse.de>
41535 PR tree-optimization/64568
41536 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
41537 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
41539 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41541 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
41542 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
41544 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41546 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
41547 target-specific symbol_ref flag.
41548 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
41549 resides in rodata section.
41550 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
41551 (nds32_encode_section_info): New function.
41553 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41555 * config/nds32/nds32.md (call): Use pseudo instruction bal which
41556 clobbers TA_REGNUM if large code model is specified.
41557 (call_register): Likewise.
41558 (call_immediate): Likewise.
41559 (call_value): Likewise.
41560 (call_value_register): Likewise.
41561 (call_value_immediate): Likewise.
41563 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41565 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
41566 (TARGET_CMODEL_MEDIUM): New macro.
41567 (TARGET_CMODEL_LARGE): New macro.
41568 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
41569 code model setting in assembly code.
41571 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41573 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
41574 Remove MASK_GP_DIRECT flag.
41575 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
41576 one of the multilib default options.
41577 * config/nds32/nds32.opt (mgp-direct): Remove.
41578 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
41579 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
41581 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
41583 * config/nds32/nds32.opt (mcmodel): Add new option.
41584 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
41585 to describe code model.
41587 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
41590 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
41592 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
41594 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
41595 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
41596 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
41597 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
41598 __builtin_sh_set_fpscr.
41600 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41602 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
41603 after a funtion name just to indicate it is a function.
41604 ([-fsanitize-undefined-trap-on-error]): Likewise.
41605 ([-fdbg-cnt=]): Likewise.
41606 ([-mmemcpy]): Likewise.
41607 ([-mflush-func]): Likewise.
41608 ([-msynci]): Likewise.
41610 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
41612 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
41615 2015-01-12 Jakub Jelinek <jakub@redhat.com>
41617 PR tree-optimization/64563
41618 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
41619 instead of != VR_VARYING.
41622 * config/i386/i386.c (ix86_expand_prologue): Add
41623 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
41625 PR tree-optimization/64454
41626 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
41627 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
41628 for signed or [0, op1 - 1] for unsigned modulo.
41629 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
41630 even if op1 does not satisfy integer_pow2p.
41633 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
41635 2015-01-12 Jeff Law <law@redhat.com>
41638 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
41639 (trunchiqi2, truncsihi2): Similarly.
41641 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
41642 rather than calling F.
41644 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
41646 * tsan.c (instrument_expr): Use force_gimple_operand.
41647 Use may_be_nonaddressable_p instead of is_gimple_addressable.
41649 2015-01-12 Richard Biener <rguenther@suse.de>
41651 PR tree-optimization/64530
41652 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
41655 2015-01-12 Richard Biener <rguenther@suse.de>
41657 PR middle-end/64357
41658 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
41661 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41663 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
41664 Cortex-A17 tuning parameters.
41665 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
41667 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41669 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
41670 * config/arm/arm.c (arm_macro_fusion_p): New function.
41671 (arm_macro_fusion_pair_p): Likewise.
41672 (TARGET_SCHED_MACRO_FUSION_P): Define.
41673 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
41674 (ARM_FUSE_NOTHING): Likewise.
41675 (ARM_FUSE_MOVW_MOVT): Likewise.
41676 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
41677 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
41678 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
41679 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
41680 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
41681 arm_cortex_a5_tune): Specify fuseable_ops value.
41683 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
41686 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
41687 test for PIE with copy reloc.
41688 * configure: Regenerated.
41690 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41692 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
41694 (arm_tls_descseq_addr): Likewise.
41695 (arm_gen_movmemqi): Likewise.
41696 (arm_expand_epilogue_apcs_frame): Likewise.
41697 (arm_expand_epilogue): Likewise.
41698 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
41701 2015-01-12 Martin Liska <mliska@suse.cz>
41704 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
41705 volatility for correct operands.
41707 2015-01-12 Martin Liska <mliska@suse.cz>
41709 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
41710 indication that a function is not leaf.
41711 (sem_function::compare_polymorphic_p): Likewise.
41713 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41715 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
41716 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
41717 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
41718 fold-const.h, tree-check.h.
41720 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41724 * ipa-inline.c (compute_uninlined_call_time,
41725 compute_inlined_call_time): Use counts for extra precision when
41727 (big_speedup_p): Fix formating.
41728 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
41729 (relative_time_benefit): Remove.
41730 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
41731 merge guessed and read profile paths.
41732 (inline_small_functions): Count only !optimize_size functions into
41733 initial size; be more lax about sanity check when profile is used;
41734 be sure to update inlined function profile when profile is read.
41736 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
41739 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
41740 cost when edge becomes direct.
41741 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
41742 is resolved or when introducing new speculation.
41744 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
41748 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
41749 '||' to fix typo issue.
41751 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
41752 accept and return NULL.
41754 2015-01-12 Martin Liska <mliska@suse.cz>
41756 * cgraph.c (cgraph_edge::remove_callee): Move function to header
41757 file for being inlined.
41758 (cgraph_set_edge_callee): Delete.
41759 (cgraph_edge::redirect_callee): Move function to header file
41761 (cgraph_edge::make_direct): Use new function.
41762 (cgraph_edge::dump_edge_flags): New function created from
41763 static dump_edge_flags function.
41764 (cgraph_node::dump): Use new function.
41765 (cgraph_edge::verify_count_and_frequency): New function created
41766 from verify_edge_count_and_frequency.
41767 (cgraph_edge::verify_corresponds_to_fndecl): New function created
41768 from verify_edge_corresponds_to_fndecl.
41769 (verify_edge_corresponds_to_fndecl): Delete.
41770 (cgraph_node::verify_node): Use new function.
41771 * cgraph.h (cgraph_edge::set_callee): New function.
41772 (cgraph_edge::dump_edge_flags): Likewise.
41773 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
41775 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
41777 * ipa-utils.c (estimate_function_body_sizes): Do not
41778 free node params when called late with early=true.
41780 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
41782 * doc/md.texi (Instruction Patterns): Rewrite text for
41784 (Example): Likewise.
41786 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
41788 * doc/invoke.texi (Option Summary): Break long lines.
41789 [(-fdiagnostics-color)]: Put long literal in @smallexample
41791 [(-fsanitize-recover)]: Likewise.
41792 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
41793 [(-ffast-math)]: Likewise.
41794 [(--param max-inline-insns-recursive)]: Likewise.
41795 [(--param max-inline-recursive-depth)]: Likewise.
41796 [(-mno-text-section-literals)]: Likewise.
41798 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
41800 * doc/install.texi: Update for libgomp being renamed from "GNU
41801 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
41803 * doc/sourcebuild.texi: Likewise.
41805 2015-01-10 Anthony Green <green@moxielogic.com>
41807 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
41808 mul.x availability for moxiebox configuration.
41810 2015-01-09 Anthony Green <green@moxielogic.com>
41812 * config/moxie/moxie.md: Tabify assembly output.
41814 2015-01-09 Anthony Green <green@moxielogic.com>
41816 * config/moxie/moxie.md (CC_REG): Correct register definition.
41818 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
41820 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
41821 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
41824 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41826 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
41828 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
41829 Jakub Jelinek <jakub@redhat.com>
41831 PR middle-end/64412
41832 * lto-streamer.h (lto_stream_offload_p): New declaration.
41833 * lto-streamer.c (lto_stream_offload_p): New variable.
41834 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
41835 at the same time as section_name_prefix.
41836 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
41837 if lto_stream_offload_p.
41838 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
41839 stream TREE_TARGET_OPTION if lto_stream_offload_p.
41840 (write_ts_function_decl_tree_pointers): Don't
41841 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
41842 * tree-streamer-in.c (unpack_value_fields): Don't stream
41843 TREE_TARGET_OPTION in if ACCEL_COMPILER.
41844 (lto_input_ts_function_decl_tree_pointers): Don't stream
41845 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
41846 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
41847 instead of section_name_prefix string comparisons.
41849 2015-01-09 Jakub Jelinek <jakub@redhat.com>
41851 PR rtl-optimization/64536
41852 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
41855 2015-01-09 Michael Collison <michael.collison@linaro.org>
41857 PR tree-optimization/64322
41858 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
41859 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
41861 2015-01-09 Tom de Vries <tom@codesourcery.com>
41863 PR rtl-optimization/64539
41864 * regcprop.c (kill_clobbered_values): Factor out of ...
41865 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
41866 instead of note_stores with kill_clobbered_value.
41868 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41870 * ginclude/unwind-arm-common.h: Revert previous commit.
41872 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
41874 * config.gcc (arm*-*-freebsd*): New configuration.
41875 * config/arm/freebsd.h: New file.
41876 * config.host: Add extra components for arm*-*-freebsd*.
41877 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
41878 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
41880 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41882 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
41884 * config/rs6000/t-rtems: Add e6500 multilibs.
41886 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41888 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
41891 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41893 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
41894 MULTILIB_EXCEPTIONS.
41896 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41898 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
41899 MULTILIB_EXCEPTIONS.
41901 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
41903 * config/arm/t-rtems-eabi: Rename to...
41904 * config/arm/t-rtems: ...this.
41905 * config/arm/rtems-eabi.h: Rename to...
41906 * config/arm/rtems.h: ...this.
41907 * config.gcc (arm*-*-rtems*): Reflect changes above.
41909 2015-01-09 Richard Biener <rguenther@suse.de>
41911 PR tree-optimization/64410
41912 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
41914 (execute_update_addresses_taken): Deal with that.
41915 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
41916 loads/stores for complex variables.
41918 2015-01-09 Martin Liska <mliska@suse.cz>
41920 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
41922 (func_checker::compare_memory_operand): New function.
41923 (func_checker::compare_operand): Split case to newly
41925 (func_checker::compare_cst_or_decl): New function.
41926 (func_checker::compare_gimple_call): Identify
41928 (func_checker::compare_gimple_assign): Likewise.
41929 * ipa-icf-gimple.h: New function.
41931 2015-01-09 Martin Liska <mliska@suse.cz>
41934 * sreal.c (sreal::dump): Change unsigned format to signed for
41936 (sreal::to_double): Replace exp2 with scalbln.
41938 2015-01-09 Martin Liska <mliska@suse.cz>
41940 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
41941 * ipa-icf.c (sem_function::equals_private): Add support for target and
41942 (sem_item_optimizer::merge_classes): Remove redundant function
41943 optimization flags comparison.
41944 * tree.h (target_opts_for_fn): New function.
41946 2015-01-09 Tom de Vries <tom@codesourcery.com>
41948 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
41950 2015-01-09 Kito Cheng <kito@0xlab.org>
41952 PR rtl-optimization/64348
41953 * lra-constraints.c (split_reg): Fix caller-save store/restore
41954 instruction generation.
41956 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
41958 PR gcov-profile/61790
41959 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
41960 long long. Fallback to int64_t if host doesn't have long long and
41961 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
41963 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41965 PR tree-optimization/63989
41966 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
41967 from 1000 to 10000.
41968 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
41969 (get_stridx): If we don't have a record for certain SSA_NAME,
41970 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
41971 constant offset, call get_stridx_plus_constant.
41972 (get_stridx_plus_constant): New function.
41973 (zero_length_string): Don't use get_stridx here.
41976 PR middle-end/64388
41977 * dse.c (struct insn_info): Mention frame_read set also
41978 before reload for tail calls on some targets.
41979 (scan_insn): Revert 2014-12-22 change. Set frame_read
41980 also before reload for tail calls if
41981 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
41982 instead of add_non_frame_wild_read for non-const/memset
41983 tail calls after reload.
41985 2015-01-08 Jason Merrill <jason@redhat.com>
41987 * ubsan.c (do_ubsan_in_current_function): New.
41988 (pass_ubsan::gate): Use it.
41989 * ubsan.h: Declare it.
41990 * convert.c (convert_to_integer): Use it.
41992 2015-01-08 Jakub Jelinek <jakub@redhat.com>
41995 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
41996 compare_code when it is unconditionally overwritten afterwards.
41997 Use ix86_reverse_condition instead of reverse_condition. Don't
41998 change code if *reverse_condition* returned UNKNOWN and don't
41999 swap ct/cf and negate diff in that case.
42001 2015-01-08 Mike Stump <mikestump@comcast.net>
42003 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
42004 (pass_tsan_O0::gate): Likewise.
42005 * extend.texi (Function Attributes): Add no_sanitize_thread
42008 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
42010 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
42011 for registering builtins.
42012 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
42013 add -fopenmp to the argv_obstack used when invoking
42014 compile_for_target.
42016 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
42017 add "-m32" or "-m64" to argv_obstack.
42018 (generate_host_descr_file): Likewise, when invoking host_compiler.
42019 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
42022 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42024 * config/sh/sh-mem.cc: Use constant as second operand when emitting
42027 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
42030 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
42031 constant load if constant operand fits into I08.
42033 2015-01-08 Jakub Jelinek <jakub@redhat.com>
42036 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
42037 and TREE_THIS_VOLATILE for MEM_REFs.
42038 (build5_stat): Fix up initialization of TREE_READONLY and
42039 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
42041 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
42044 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
42045 of r for the second alternative of the destination operand.
42047 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
42050 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
42052 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42054 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
42056 ([-fivar-visibility], [-fvisibility]): Likewise.
42058 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
42060 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
42061 the file where @code, @command, etc is more appropriate.
42063 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
42065 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
42066 of -mrecip= documentation.
42068 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
42071 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
42072 correct reload handler if -m32 -mpowerpc64 is used.
42074 2015-01-06 Tom de Vries <tom@codesourcery.com>
42076 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
42078 2015-01-08 Christian Bruel <christian.bruel@st.com>
42081 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
42083 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
42085 PR tree-optimization/63259
42086 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
42087 if optab exists for 16bit byteswap.
42089 2015-01-06 Jakub Jelinek <jakub@redhat.com>
42091 * opts.c (common_handle_option): Add support for
42092 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
42093 * doc/invoke.texi: Document -fno-sanitize=all,
42094 -f{,no-}sanitize-recover=all. Document that
42095 -fsanitize=float-cast-overflow is not enabled
42096 by -fsanitize=undefined. Fix up documentation
42097 of -f{,no-}sanitize-recover.
42099 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
42101 * config.gcc: Add Visium support.
42102 * configure.ac: Likewise.
42103 * configure: Regenerate.
42104 * doc/extend.texi (interrupt attribute): Add Visium.
42105 * doc/invoke.texi: Document Visium options.
42106 * doc/install.texi: Document Visium target.
42107 * doc/md.texi: Document Visium constraints.
42108 * common/config/visium: New directory.
42109 * config/visium: Likewise.
42111 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42113 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
42114 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
42116 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
42118 * combine.c (combine_validate_cost): Do not count the cost of a
42119 split I2 twice. Do not display it twice in the dump, either.
42121 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42123 Revert parts of r219199.
42124 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
42126 ([-Wtraditional]): Restore markup on <limits.h>.
42128 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
42131 * doc/invoke.texi: Document -Wsuggest-override.
42133 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
42135 PR rtl-optimization/64287
42136 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
42137 (process_options): Disable flag_ipa_ra if profiling.
42139 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
42141 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
42143 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
42145 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
42146 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
42147 put under #if TARGET_LOOPS guard.
42149 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
42151 * config/i386/i386.c (output_387_binary_op): Use std::swap.
42153 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
42155 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
42156 * rtl.h (refers_to_regno_p): Add overload.
42158 * bt-load.c: Likewise.
42159 * combine.c: Likewise.
42160 * df-scan.c: Likewise.
42161 * sched-deps.c: Likewise.
42162 * config/s390/s390.c: Likewise.
42163 * config/m32r/m32r.c: Likewise.
42164 * config/rs6000/spe.md: Likewise.
42165 * config/rs6000/rs6000.c: Likewise.
42166 * config/pa/pa.c: Likewise.
42167 * config/stormy16/stormy16.c: Likewise.
42168 * config/cris/cris.c: Likewise.
42169 * config/arc/arc.md: Likewise.
42170 * config/arc/arc.c: Likewise.
42171 * config/sh/sh.md: Likewise.
42172 * config/sh/sh.c: Likewise.
42173 * config/frv/frv.c: Likewise.
42175 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42178 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
42179 call as cleanup of the whole body.
42180 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
42181 * tsan.c (replace_func_exit): New function.
42182 (instrument_func_exit): Moved earlier.
42183 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
42184 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
42186 (tsan_pass): Don't call instrument_func_exit.
42187 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
42188 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
42192 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
42193 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
42194 it to libubsan handler instead of EXPR. Fold comparisons earlier,
42195 if the result is integer_zerop, return NULL_TREE.
42196 * convert.c (convert_to_integer): Pass expr as ARG.
42198 PR tree-optimization/64465
42199 * tree-inline.c (redirect_all_calls): During inlining
42200 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
42201 changed the stmt to a non-throwing call.
42203 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
42205 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
42206 etc markup throughout the file.
42208 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
42210 Enable experimental TSAN support for Ada.
42211 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
42213 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42215 PR tree-optimization/64494
42216 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
42217 clear SSA_NAME_ANTI_RANGE_P flag.
42219 2015-01-05 Marek Polacek <polacek@redhat.com>
42221 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
42223 2015-01-05 Jakub Jelinek <jakub@redhat.com>
42225 Update copyright years.
42227 * gcc.c (process_command): Update copyright notice dates.
42228 * gcov-dump.c: Ditto.
42230 * doc/cpp.texi: Bump @copying's copyright year.
42231 * doc/cppinternals.texi: Ditto.
42232 * doc/gcc.texi: Ditto.
42233 * doc/gccint.texi: Ditto.
42234 * doc/gcov.texi: Ditto.
42235 * doc/install.texi: Ditto.
42236 * doc/invoke.texi: Ditto.
42238 * auto-profile.c, auto-profile.h: Fix up Copyright line.
42240 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
42242 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
42244 ([-fvtable-verify], [-fvtv-debug]): Likewise.
42245 ([-Wabi]): Likewise.
42246 ([-fmessage-length]): Likewise.
42247 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
42248 ([-Wno-discarded-qualifiers]): Likewise.
42249 ([-Wnodiscarded-array-qualifiers]): Likewise.
42250 ([-Wno-virtual-move-assign]): Likewise.
42251 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
42252 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
42253 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
42254 ([-fsanitize-undefined-trap-on-error]): Likewise.
42255 ([-floop-interchange]): Likewise.
42256 ([-ftree-coalesce-inlined-vars]): Likewise.
42257 ([-fvect-cost-model]): Likewise.
42258 ([-flto]): Likewise.
42259 ([--param]): Likewise.
42260 (Spec Files): Likewise.
42261 ([-mstrict-align]): Likewise.
42262 ([-mfix-cortex-a53-835769]): Likewise.
42263 ([-march], [-mtune]): Likewise.
42264 ([-mpic-register]): Likewise.
42265 ([-munaligned-access]): Likewise.
42266 ([-msp8]): Likewise.
42267 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
42268 (AVR Built-in Macros): Likewise.
42269 ([-mpreferred-stack-boundary]): Likewise.
42270 ([-mtune-crtl]): Likewise.
42271 ([-mashf]): Likewise.
42272 ([-mmcu=]): Likewise.
42273 ([-minrt]): Likewise.
42274 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
42275 ([-mupper-regs]): Likewise.
42276 ([-matomic-model]): Likewise.
42277 ([-mdiv]): Likewise.
42278 ([-mzdcbranch]): Likewise.
42279 ([-mdisable-callt]): Likewise.
42280 ([-msoft-float]): Likewise.
42281 ([-m8byte-align]): Likewise.
42282 ([-fstack-reuse]): Likewise.
42284 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42286 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
42287 Fix markup, light copy-editing.
42288 ([-fauto-profile]): Rewrite to fix formatting and content
42291 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42293 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
42294 Copy-edit description.
42295 ([-fisolate-erroneous-paths-attribute]): Likewise.
42296 * common.opt (fisolate-erroneous-paths-dereference):
42297 Copy-edit description.
42298 (fisolate-erroneous-paths-attribute): Likewise.
42300 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42302 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
42305 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
42307 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
42308 ([-fvtv-debug]): Likewise.
42309 ([-Wc++-compat]): Likewise.
42310 ([-Wc++11-compat]): Likewise.
42311 ([-Wc++14-compat]): Likewise.
42312 ([-Wno-sized-deallocation]): Likewise.
42313 ([-femit-class-debug-always]): Likewise.
42314 ([-femit-struct-debug-detailed]): Likewise.
42315 ([-fno-keep-inline-dllexport]): Likewise.
42316 ([-fira-algorithm]): Likewise.
42317 ([-fira-region]): Likewise.
42318 ([-flra-remat]): Likewise.
42319 ([-fipa-ra]): Likewise.
42320 ([-fhoist-adjacent-loads]): Likewise.
42321 ([-fisolate-erroneous-paths-dereference]): Likewise.
42322 ([-fisolate-erroneous-paths-attribute]): Likewise.
42323 ([-ftree-switch-conversion]): Likewise.
42324 ([-ftree-tail-merge]): Likewise.
42325 ([-ftree-loop-if-convert]): Likewise.
42326 ([-ftree-loop-if-convert-stores]): Likewise.
42327 ([-ftree-loop-distribution]): Likewise.
42328 ([-ftree-loop-distribute-patterns]): Likewise.
42329 ([-flto-compression-level]): Likewise.
42330 ([-flto-report]): Likewise.
42331 ([-flto-report-wpa]): Likewise.
42332 ([-fuse-linker-plugin]): Likewise.
42333 ([-mfix-cortex-a53-835769]): Likewise.
42334 ([-mno-fix-cortex-a53-835769]): Likewise.
42335 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
42336 explicit listing; add a note to the discussion indicating they
42337 exist. Reorder table to group similar options. Add missing
42338 @opindex entries. Add @need commands throughout the table to
42339 allow it to be split across multiple pages.
42340 ([-m8bit-idiv]): Fix @opindex.
42341 ([-mavx256-split-unaligned-load]): Likewise.
42342 ([-mavx256-split-unaligned-store]): Likewise.
42343 ([-mstack-protector-guard]): Likewise.
42344 ([-mcpu=]): Likewise.
42345 ([-mcpu]): Likewise.
42346 ([-mpointer-size=]): Likewise.
42348 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
42350 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
42351 instead of `m' constraint. Likewise for unnamed movb comparison
42352 patterns using reg_before_reload_operand predicate.
42353 * config/pa/predicates.md (reg_before_reload_operand): Tighten
42354 predicate to reject register index and LO_SUM DLT memory forms
42357 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42359 * doc/invoke.texi (Option Summary): Fix spelling of
42360 -fdevirtualize-at-ltrans.
42361 ([-fdevirtualize]): Fix markup.
42362 ([-fdevirtualize-speculatively]): Fix typo.
42363 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
42364 implementor-speaky.
42365 * common.opt (fdevirtualize-at-ltrans): Likewise.
42366 * ipa-devirt.c: Fix typos in comments throughout the file.
42367 (ipa_devirt): Fix typos in format strings for dump output.
42369 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
42371 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
42372 discussion of defaults, light copy-editing.
42374 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42376 * tsan.c (instrument_expr): corrected previous checkin.
42378 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
42380 Instrument bit field and unaligned accesses for TSAN.
42381 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
42382 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
42383 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
42384 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
42385 unaligned memory regions.
42387 2015-01-01 Anthony Green <green@moxielogic.com>
42389 * config/moxie/predicates.md (moxie_general_movsrc_operand):
42390 Restrict move source register offsets to 16 bits.
42392 Copyright (C) 2015 Free Software Foundation, Inc.
42394 Copying and distribution of this file, with or without modification,
42395 are permitted in any medium without royalty provided the copyright
42396 notice and this notice are preserved.